Skip to content

Commit

Permalink
Update schema files
Browse files Browse the repository at this point in the history
  • Loading branch information
EC2 Default User committed May 12, 2022
1 parent 7cb5533 commit b7d747e
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 32 deletions.
49 changes: 41 additions & 8 deletions _sdk_compatible/open-api-3/api-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5497,37 +5497,37 @@
"$ref": "#/components/schemas/userCapability"
},
"deals": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"transfers": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"docs": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"doc_postings": {
"$ref": "#/components/schemas/userCapability"
},
"receipts": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"receipt_stream_editor": {
"$ref": "#/components/schemas/userCapability"
},
"expense_applications": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"spreadsheets": {
"$ref": "#/components/schemas/userCapability"
},
"payment_requests": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"request_forms": {
"$ref": "#/components/schemas/userCapability"
},
"approval_requests": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"reports": {
"$ref": "#/components/schemas/userCapability"
Expand Down Expand Up @@ -5566,7 +5566,7 @@
"$ref": "#/components/schemas/userCapability"
},
"manual_journals": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"fixed_assets": {
"$ref": "#/components/schemas/userCapability"
Expand Down Expand Up @@ -30653,6 +30653,39 @@
}
}
},
"userCapabilityWithSelfOnly": {
"type": "object",
"properties": {
"read": {
"type": "boolean",
"description": "閲覧",
"example": true
},
"create": {
"type": "boolean",
"description": "作成",
"example": true
},
"update": {
"type": "boolean",
"description": "更新",
"example": true
},
"destroy": {
"type": "boolean",
"description": "削除",
"example": true
},
"allowed_target": {
"type": "string",
"description": "「自分のみ」がonになっている場合はself_only、offになっている場合はallになります。",
"enum": [
"self_only",
"all"
]
}
}
},
"receipt": {
"type": "object",
"required": [
Expand Down
41 changes: 33 additions & 8 deletions _sdk_compatible/open-api-3/api-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9875,7 +9875,7 @@ paths:
approval_flow_routes:
"$ref": "#/components/schemas/userCapability"
approval_requests:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
backups:
"$ref": "#/components/schemas/userCapability"
bank_accountant_staff_users:
Expand All @@ -9891,15 +9891,15 @@ paths:
deal_templates:
"$ref": "#/components/schemas/userCapability"
deals:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
doc_postings:
"$ref": "#/components/schemas/userCapability"
docs:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
expense_application_templates:
"$ref": "#/components/schemas/userCapability"
expense_applications:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
fixed_assets:
"$ref": "#/components/schemas/userCapability"
inventory_refreshes:
Expand All @@ -9911,7 +9911,7 @@ paths:
manual_journal_templates:
"$ref": "#/components/schemas/userCapability"
manual_journals:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
month_end:
"$ref": "#/components/schemas/userCapability"
oauth_applications:
Expand All @@ -9925,11 +9925,11 @@ paths:
payment_records:
"$ref": "#/components/schemas/userCapability"
payment_requests:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
receipt_stream_editor:
"$ref": "#/components/schemas/userCapability"
receipts:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
reports:
"$ref": "#/components/schemas/userCapability"
reports_bs:
Expand Down Expand Up @@ -9973,7 +9973,7 @@ paths:
taxes:
"$ref": "#/components/schemas/userCapability"
transfers:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
user_matchers:
"$ref": "#/components/schemas/userCapability"
wallet_txns:
Expand Down Expand Up @@ -28185,6 +28185,31 @@ components:
example: true
type: boolean
type: object
userCapabilityWithSelfOnly:
properties:
allowed_target:
description: "「自分のみ」がonになっている場合はself_only、offになっている場合はallになります。"
enum:
- self_only
- all
type: string
create:
description: 作成
example: true
type: boolean
destroy:
description: 削除
example: true
type: boolean
read:
description: 閲覧
example: true
type: boolean
update:
description: 更新
example: true
type: boolean
type: object
userParams:
properties:
display_name:
Expand Down
49 changes: 41 additions & 8 deletions v2020_06_15/open-api-3/api-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5496,37 +5496,37 @@
"$ref": "#/components/schemas/userCapability"
},
"deals": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"transfers": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"docs": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"doc_postings": {
"$ref": "#/components/schemas/userCapability"
},
"receipts": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"receipt_stream_editor": {
"$ref": "#/components/schemas/userCapability"
},
"expense_applications": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"spreadsheets": {
"$ref": "#/components/schemas/userCapability"
},
"payment_requests": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"request_forms": {
"$ref": "#/components/schemas/userCapability"
},
"approval_requests": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"reports": {
"$ref": "#/components/schemas/userCapability"
Expand Down Expand Up @@ -5565,7 +5565,7 @@
"$ref": "#/components/schemas/userCapability"
},
"manual_journals": {
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
},
"fixed_assets": {
"$ref": "#/components/schemas/userCapability"
Expand Down Expand Up @@ -30647,6 +30647,39 @@
}
}
},
"userCapabilityWithSelfOnly": {
"type": "object",
"properties": {
"read": {
"type": "boolean",
"description": "閲覧",
"example": true
},
"create": {
"type": "boolean",
"description": "作成",
"example": true
},
"update": {
"type": "boolean",
"description": "更新",
"example": true
},
"destroy": {
"type": "boolean",
"description": "削除",
"example": true
},
"allowed_target": {
"type": "string",
"description": "「自分のみ」がonになっている場合はself_only、offになっている場合はallになります。",
"enum": [
"self_only",
"all"
]
}
}
},
"receipt": {
"type": "object",
"required": [
Expand Down
41 changes: 33 additions & 8 deletions v2020_06_15/open-api-3/api-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13507,7 +13507,7 @@ paths:
approval_flow_routes:
"$ref": "#/components/schemas/userCapability"
approval_requests:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
backups:
"$ref": "#/components/schemas/userCapability"
bank_accountant_staff_users:
Expand All @@ -13523,15 +13523,15 @@ paths:
deal_templates:
"$ref": "#/components/schemas/userCapability"
deals:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
doc_postings:
"$ref": "#/components/schemas/userCapability"
docs:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
expense_application_templates:
"$ref": "#/components/schemas/userCapability"
expense_applications:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
fixed_assets:
"$ref": "#/components/schemas/userCapability"
inventory_refreshes:
Expand All @@ -13543,7 +13543,7 @@ paths:
manual_journal_templates:
"$ref": "#/components/schemas/userCapability"
manual_journals:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
month_end:
"$ref": "#/components/schemas/userCapability"
oauth_applications:
Expand All @@ -13557,11 +13557,11 @@ paths:
payment_records:
"$ref": "#/components/schemas/userCapability"
payment_requests:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
receipt_stream_editor:
"$ref": "#/components/schemas/userCapability"
receipts:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
reports:
"$ref": "#/components/schemas/userCapability"
reports_bs:
Expand Down Expand Up @@ -13605,7 +13605,7 @@ paths:
taxes:
"$ref": "#/components/schemas/userCapability"
transfers:
"$ref": "#/components/schemas/userCapability"
"$ref": "#/components/schemas/userCapabilityWithSelfOnly"
user_matchers:
"$ref": "#/components/schemas/userCapability"
wallet_txns:
Expand Down Expand Up @@ -32058,6 +32058,31 @@ components:
example: true
type: boolean
type: object
userCapabilityWithSelfOnly:
properties:
allowed_target:
description: "「自分のみ」がonになっている場合はself_only、offになっている場合はallになります。"
enum:
- self_only
- all
type: string
create:
description: 作成
example: true
type: boolean
destroy:
description: 削除
example: true
type: boolean
read:
description: 閲覧
example: true
type: boolean
update:
description: 更新
example: true
type: boolean
type: object
userParams:
properties:
display_name:
Expand Down

0 comments on commit b7d747e

Please sign in to comment.