Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions reference/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15153,6 +15153,19 @@ components:
description: |
String denoting the full name of an employee.
example: Jon Snow
delegation_access_scope:
type: array
description: |
List of scopes for the delegate.
items:
type: string
enum:
- ALL
- SUBMIT
- APPROVE
example:
- SUBMIT
- APPROVE
delegatees:
type: object
additionalProperties: false
Expand Down Expand Up @@ -15196,17 +15209,9 @@ components:
Date and time till which the delegation is active. If null, delegation is active indefinitely.
nullable: true
scopes:
type: array
allOf:
- $ref: '#/components/schemas/delegation_access_scope'
nullable: true
items:
type: string
enum:
- ALL
- SUBMIT
- APPROVE
example:
- SUBMIT
- APPROVE
category_out_embed:
type: object
nullable: true
Expand Down Expand Up @@ -15736,6 +15741,10 @@ components:
description: |
Date and time till which the delegation is active. If null, delegation is active indefinitely.
nullable: true
scopes:
allOf:
- $ref: '#/components/schemas/delegation_access_scope'
nullable: true
invitation_in:
type: object
additionalProperties: false
Expand Down
25 changes: 15 additions & 10 deletions reference/approver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9411,6 +9411,19 @@ components:
description: |
String denoting the full name of an employee.
example: Jon Snow
delegation_access_scope:
type: array
description: |
List of scopes for the delegate.
items:
type: string
enum:
- ALL
- SUBMIT
- APPROVE
example:
- SUBMIT
- APPROVE
delegatees:
type: object
additionalProperties: false
Expand Down Expand Up @@ -9454,17 +9467,9 @@ components:
Date and time till which the delegation is active. If null, delegation is active indefinitely.
nullable: true
scopes:
type: array
allOf:
- $ref: '#/components/schemas/delegation_access_scope'
nullable: true
items:
type: string
enum:
- ALL
- SUBMIT
- APPROVE
example:
- SUBMIT
- APPROVE
employee_out:
type: object
additionalProperties: false
Expand Down
25 changes: 15 additions & 10 deletions reference/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,19 @@ components:
description: |
String denoting the full name of an employee.
example: Jon Snow
delegation_access_scope:
type: array
description: |
List of scopes for the delegate.
items:
type: string
enum:
- ALL
- SUBMIT
- APPROVE
example:
- SUBMIT
- APPROVE
delegatees:
type: object
additionalProperties: false
Expand Down Expand Up @@ -1633,17 +1646,9 @@ components:
Date and time till which the delegation is active. If null, delegation is active indefinitely.
nullable: true
scopes:
type: array
allOf:
- $ref: '#/components/schemas/delegation_access_scope'
nullable: true
items:
type: string
enum:
- ALL
- SUBMIT
- APPROVE
example:
- SUBMIT
- APPROVE
category_out_embed:
type: object
nullable: true
Expand Down
29 changes: 19 additions & 10 deletions reference/spender.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14620,6 +14620,19 @@ components:
description: |
String denoting the full name of an employee.
example: Jon Snow
delegation_access_scope:
type: array
description: |
List of scopes for the delegate.
items:
type: string
enum:
- ALL
- SUBMIT
- APPROVE
example:
- SUBMIT
- APPROVE
delegatees:
type: object
additionalProperties: false
Expand Down Expand Up @@ -14663,17 +14676,9 @@ components:
Date and time till which the delegation is active. If null, delegation is active indefinitely.
nullable: true
scopes:
type: array
allOf:
- $ref: '#/components/schemas/delegation_access_scope'
nullable: true
items:
type: string
enum:
- ALL
- SUBMIT
- APPROVE
example:
- SUBMIT
- APPROVE
spender_employee_out:
type: object
additionalProperties: false
Expand Down Expand Up @@ -15088,6 +15093,10 @@ components:
description: |
Date and time till which the delegation is active. If null, delegation is active indefinitely.
nullable: true
scopes:
allOf:
- $ref: '#/components/schemas/delegation_access_scope'
nullable: true
spender_delegatees_post_out:
type: object
additionalProperties: false
Expand Down
4 changes: 4 additions & 0 deletions src/components/schemas/employee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,10 @@ spender_delegatees_post_in:
description: |
Date and time till which the delegation is active. If null, delegation is active indefinitely.
nullable: True
scopes:
allOf:
- $ref: './fields.yaml#/delegation_access_scope'
nullable: True

spender_delegatees_post_out:
type: object
Expand Down
24 changes: 16 additions & 8 deletions src/components/schemas/fields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,15 @@ contains_operator:
Value signifying the operator for the field
example: IN

delegation_access_scope:
type: array
description: |
List of scopes for the delegate.
items:
type: string
enum: [ALL, SUBMIT, APPROVE]
example: ["SUBMIT", "APPROVE"]

expense_policy_rule_embed:
type: object
additionalProperties: false
Expand Down Expand Up @@ -1646,15 +1655,9 @@ delegatees:
Date and time till which the delegation is active. If null, delegation is active indefinitely.
nullable: True
scopes:
type: array
allOf:
- $ref: './fields.yaml#/delegation_access_scope'
nullable: True
items:
type: string
enum:
- ALL
- SUBMIT
- APPROVE
example: ["SUBMIT", "APPROVE"]

locale:
type: object
Expand Down Expand Up @@ -1982,6 +1985,11 @@ delegatee:
description: |
Date and time till which the delegation is active. If null, delegation is active indefinitely.
nullable: True
scopes:
allOf:
- $ref: './fields.yaml#/delegation_access_scope'
nullable: True


subscribed_resources:
type: array
Expand Down
Loading