Skip to content

Commit

Permalink
TASK: Updating RAML types, Postman and OAS definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Auto Mation committed Jan 12, 2024
1 parent 24801f9 commit 13961e9
Show file tree
Hide file tree
Showing 212 changed files with 6,805 additions and 3,280 deletions.
1,650 changes: 1,114 additions & 536 deletions oas/api/openapi.yaml

Large diffs are not rendered by default.

73 changes: 31 additions & 42 deletions oas/history/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1555,12 +1555,15 @@ components:
required:
- change
- nextValue
- previousValue
- type
properties:
type:
type: "string"
change:
type: "string"
previousValue:
$ref: '#/components/schemas/Address'
nextValue:
$ref: '#/components/schemas/Address'
AddAssetChange:
Expand Down Expand Up @@ -1653,11 +1656,11 @@ components:
previousValue:
type: "array"
items:
$ref: '#/components/schemas/ChannelRoleEnum'
$ref: '#/components/schemas/ChannelRole'
nextValue:
type: "array"
items:
$ref: '#/components/schemas/ChannelRoleEnum'
$ref: '#/components/schemas/ChannelRole'
AddCustomLineItemChange:
allOf:
- $ref: '#/components/schemas/Change'
Expand Down Expand Up @@ -1831,7 +1834,7 @@ components:
change:
type: "string"
nextValue:
$ref: '#/components/schemas/AttributeLocalizedEnumValue'
$ref: '#/components/schemas/LocalizedEnumValue'
fieldName:
type: "string"
attributeName:
Expand All @@ -1843,12 +1846,15 @@ components:
required:
- change
- nextValue
- previousValue
- type
properties:
type:
type: "string"
change:
type: "string"
previousValue:
$ref: '#/components/schemas/Location'
nextValue:
$ref: '#/components/schemas/Location'
AddOrderLineItemChange:
Expand Down Expand Up @@ -1920,7 +1926,7 @@ components:
change:
type: "string"
nextValue:
$ref: '#/components/schemas/AttributePlainEnumValue'
$ref: '#/components/schemas/EnumValue'
attributeName:
type: "string"
AddPriceChange:
Expand Down Expand Up @@ -2073,11 +2079,11 @@ components:
previousValue:
type: "array"
items:
$ref: '#/components/schemas/StateRoleEnum'
$ref: '#/components/schemas/StateRole'
nextValue:
type: "array"
items:
$ref: '#/components/schemas/StateRoleEnum'
$ref: '#/components/schemas/StateRole'
AddTaxRateChange:
allOf:
- $ref: '#/components/schemas/Change'
Expand Down Expand Up @@ -2384,26 +2390,6 @@ components:
$ref: '#/components/schemas/TextInputHint'
isSearchable:
type: "boolean"
AttributeLocalizedEnumValue:
type: "object"
required:
- key
- label
properties:
key:
type: "string"
label:
$ref: '#/components/schemas/LocalizedString'
AttributePlainEnumValue:
type: "object"
required:
- key
- label
properties:
key:
type: "string"
label:
type: "string"
AttributeType:
type: "object"
required:
Expand Down Expand Up @@ -3594,9 +3580,9 @@ components:
change:
type: "string"
previousValue:
$ref: '#/components/schemas/StateTypeEnum'
$ref: '#/components/schemas/StateType'
nextValue:
$ref: '#/components/schemas/StateTypeEnum'
$ref: '#/components/schemas/StateType'
ChangeStatusChange:
allOf:
- $ref: '#/components/schemas/Change'
Expand Down Expand Up @@ -3978,7 +3964,7 @@ components:
permyriad:
type: "integer"
format: "int32"
ChannelRoleEnum:
ChannelRole:
type: "string"
enum:
- InventorySupply
Expand Down Expand Up @@ -4918,11 +4904,11 @@ components:
previousValue:
type: "array"
items:
$ref: '#/components/schemas/ChannelRoleEnum'
$ref: '#/components/schemas/ChannelRole'
nextValue:
type: "array"
items:
$ref: '#/components/schemas/ChannelRoleEnum'
$ref: '#/components/schemas/ChannelRole'
RemoveCustomLineItemChange:
allOf:
- $ref: '#/components/schemas/Change'
Expand Down Expand Up @@ -5111,6 +5097,7 @@ components:
- type: "object"
required:
- change
- nextValue
- previousValue
- type
properties:
Expand All @@ -5120,6 +5107,8 @@ components:
type: "string"
previousValue:
$ref: '#/components/schemas/Location'
nextValue:
$ref: '#/components/schemas/Location'
RemoveOrderLineItemChange:
allOf:
- $ref: '#/components/schemas/Change'
Expand Down Expand Up @@ -5306,17 +5295,18 @@ components:
previousValue:
type: "array"
items:
$ref: '#/components/schemas/StateRoleEnum'
$ref: '#/components/schemas/StateRole'
nextValue:
type: "array"
items:
$ref: '#/components/schemas/StateRoleEnum'
$ref: '#/components/schemas/StateRole'
RemoveTaxRateChange:
allOf:
- $ref: '#/components/schemas/Change'
- type: "object"
required:
- change
- nextValue
- previousValue
- type
properties:
Expand All @@ -5326,6 +5316,8 @@ components:
type: "string"
previousValue:
$ref: '#/components/schemas/TaxRate'
nextValue:
$ref: '#/components/schemas/TaxRate'
RemoveTextLineItemChange:
allOf:
- $ref: '#/components/schemas/Change'
Expand Down Expand Up @@ -5945,11 +5937,11 @@ components:
previousValue:
type: "array"
items:
$ref: '#/components/schemas/ChannelRoleEnum'
$ref: '#/components/schemas/ChannelRole'
nextValue:
type: "array"
items:
$ref: '#/components/schemas/ChannelRoleEnum'
$ref: '#/components/schemas/ChannelRole'
SetCompanyNameChange:
allOf:
- $ref: '#/components/schemas/Change'
Expand Down Expand Up @@ -8122,11 +8114,11 @@ components:
previousValue:
type: "array"
items:
$ref: '#/components/schemas/StateRoleEnum'
$ref: '#/components/schemas/StateRole'
nextValue:
type: "array"
items:
$ref: '#/components/schemas/StateRoleEnum'
$ref: '#/components/schemas/StateRole'
SetStatusInterfaceCodeChange:
allOf:
- $ref: '#/components/schemas/Change'
Expand Down Expand Up @@ -8684,23 +8676,20 @@ components:
- Sent
- Closed
x-annotation-package: "Common"
StateRoleEnum:
StateRole:
type: "string"
enum:
- ReviewIncludedInStatistics
- Return
x-annotation-package: "Common"
StateTypeEnum:
StateType:
type: "string"
enum:
- OrderState
- LineItemState
- ProductState
- ReviewState
- PaymentState
- QuoteRequestState
- StagedQuoteState
- QuoteState
x-annotation-package: "Common"
StoreCountry:
type: "object"
Expand Down
1 change: 0 additions & 1 deletion uml/api/ApprovalFlow.puml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ interface ApprovalFlow [[ApprovalFlow.svg]] extends BaseResource {
eligibleApprovers: [[RuleApprover.svg List<RuleApprover>]]
pendingApprovers: [[RuleApprover.svg List<RuleApprover>]]
currentTierPendingApprovers: [[RuleApprover.svg List<RuleApprover>]]
custom: [[CustomFields.svg CustomFields]]
}
interface BaseResource [[BaseResource.svg]] {
id: String
Expand Down
1 change: 0 additions & 1 deletion uml/api/ApprovalFlowApproval.puml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ interface ApprovalFlow [[ApprovalFlow.svg]] {
eligibleApprovers: [[RuleApprover.svg List<RuleApprover>]]
pendingApprovers: [[RuleApprover.svg List<RuleApprover>]]
currentTierPendingApprovers: [[RuleApprover.svg List<RuleApprover>]]
custom: [[CustomFields.svg CustomFields]]
}

ApprovalFlowApproval --> ApprovalFlow #green;text:green : "approvals"
Expand Down
1 change: 0 additions & 1 deletion uml/api/ApprovalFlowRejection.puml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ interface ApprovalFlow [[ApprovalFlow.svg]] {
eligibleApprovers: [[RuleApprover.svg List<RuleApprover>]]
pendingApprovers: [[RuleApprover.svg List<RuleApprover>]]
currentTierPendingApprovers: [[RuleApprover.svg List<RuleApprover>]]
custom: [[CustomFields.svg CustomFields]]
}

ApprovalFlowRejection --> ApprovalFlow #green;text:green : "rejection"
Expand Down
24 changes: 0 additions & 24 deletions uml/api/ApprovalFlowSetCustomTypeAction.puml

This file was deleted.

1 change: 0 additions & 1 deletion uml/api/ApprovalFlowStatus.puml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ interface ApprovalFlow [[ApprovalFlow.svg]] {
eligibleApprovers: [[RuleApprover.svg List<RuleApprover>]]
pendingApprovers: [[RuleApprover.svg List<RuleApprover>]]
currentTierPendingApprovers: [[RuleApprover.svg List<RuleApprover>]]
custom: [[CustomFields.svg CustomFields]]
}
interface ApprovalFlowCompletedMessage [[ApprovalFlowCompletedMessage.svg]] {
id: String
Expand Down
12 changes: 0 additions & 12 deletions uml/api/ApprovalFlowUpdateAction.puml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,11 @@ interface ApprovalFlowRejectAction [[ApprovalFlowRejectAction.svg]] {
action: String
reason: String
}
interface ApprovalFlowSetCustomFieldAction [[ApprovalFlowSetCustomFieldAction.svg]] {
action: String
name: String
value: [[Object.svg Object]]
}
interface ApprovalFlowSetCustomTypeAction [[ApprovalFlowSetCustomTypeAction.svg]] {
action: String
type: [[TypeResourceIdentifier.svg TypeResourceIdentifier]]
fields: [[FieldContainer.svg FieldContainer]]
}
interface ApprovalFlowUpdate [[ApprovalFlowUpdate.svg]] {
version: Long
actions: [[ApprovalFlowUpdateAction.svg List<ApprovalFlowUpdateAction>]]
}
ApprovalFlowUpdateAction --> ApprovalFlowApproveAction #blue;text:blue : "action : approve"
ApprovalFlowUpdateAction --> ApprovalFlowRejectAction #blue;text:blue : "action : reject"
ApprovalFlowUpdateAction --> ApprovalFlowSetCustomFieldAction #blue;text:blue : "action : setCustomField"
ApprovalFlowUpdateAction --> ApprovalFlowSetCustomTypeAction #blue;text:blue : "action : setCustomType"
ApprovalFlowUpdateAction --> ApprovalFlowUpdate #green;text:green : "actions"
@enduml
1 change: 0 additions & 1 deletion uml/api/ApprovalRule.puml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ interface ApprovalFlow [[ApprovalFlow.svg]] {
eligibleApprovers: [[RuleApprover.svg List<RuleApprover>]]
pendingApprovers: [[RuleApprover.svg List<RuleApprover>]]
currentTierPendingApprovers: [[RuleApprover.svg List<RuleApprover>]]
custom: [[CustomFields.svg CustomFields]]
}
interface ApprovalRulePagedQueryResponse [[ApprovalRulePagedQueryResponse.svg]] {
limit: Long
Expand Down
3 changes: 0 additions & 3 deletions uml/api/AttributeReferenceTypeId.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

hide methods
enum AttributeReferenceTypeId {
ASSOCIATE_ROLE
BUSINESS_UNIT
CART
CART_DISCOUNT
CATEGORY
CHANNEL
CUSTOMER
Expand Down
Loading

0 comments on commit 13961e9

Please sign in to comment.