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
28 changes: 28 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
**Api changes**

<details>
<summary>Added Enum(s)</summary>

- added enum `ViewMyShoppingLists` to type `Permission`
- added enum `ViewOthersShoppingLists` to type `Permission`
- added enum `UpdateMyShoppingLists` to type `Permission`
- added enum `UpdateOthersShoppingLists` to type `Permission`
- added enum `CreateMyShoppingLists` to type `Permission`
- added enum `CreateOthersShoppingLists` to type `Permission`
- added enum `DeleteMyShoppingLists` to type `Permission`
- added enum `DeleteOthersShoppingLists` to type `Permission`
</details>


<details>
<summary>Added Type(s)</summary>

Expand All @@ -17,6 +31,9 @@
<details>
<summary>Added Resource(s)</summary>

- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/shopping-lists`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/shopping-lists/key={key}`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/shopping-lists/{ID}`
- added resource `/{projectKey}/business-units/key={key}/associates/{associateId}`
- added resource `/{projectKey}/business-units/{businessUnitId}/associates/{associateId}`
- added resource `/{projectKey}/in-store/key={storeKey}/business-units/key={key}/associates/{associateId}`
Expand All @@ -27,6 +44,17 @@
<details>
<summary>Added Method(s)</summary>

- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().get()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().head()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().post()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withKey().get()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withKey().head()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withKey().post()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withKey().delete()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withId().get()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withId().head()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withId().post()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().shoppingLists().withId().delete()`
- added method `apiRoot.withProjectKey().businessUnits().keyWithKeyValueAssociatesWithAssociateIdValue().get()`
- added method `apiRoot.withProjectKey().businessUnits().withBusinessUnitIdValueAssociatesWithAssociateIdValue().get()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().businessUnits().keyWithKeyValueAssociatesWithAssociateIdValue().get()`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -896,13 +896,20 @@ input ApproverHierarchyDraft {
tiers: [ApproverConjunctionDraft!]!
}

type AsAssociate implements CartQueryInterface & OrderQueryInterface & QuoteQueryInterface & QuoteRequestQueryInterface {
type AsAssociate implements CartQueryInterface & OrderQueryInterface & QuoteQueryInterface & QuoteRequestQueryInterface & ShoppingListQueryInterface {
cart(id: String!): Cart
carts(where: String, sort: [String!], limit: Int, offset: Int): CartQueryResult!
order(
"Queries with specified ID"
id: String, orderNumber: String): Order
orders(where: String, sort: [String!], limit: Int, offset: Int): OrderQueryResult!
shoppingList(
"Queries with specified ID"
id: String,

"Queries with specified key"
key: String): ShoppingList
shoppingLists(where: String, sort: [String!], limit: Int, offset: Int): ShoppingListQueryResult!
quoteRequest(
"Queries with specified ID"
id: String,
Expand Down Expand Up @@ -6162,12 +6169,18 @@ type Mutation {
createShoppingList(draft: ShoppingListDraft!,

"The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions."
storeKey: KeyReferenceInput): ShoppingList
storeKey: KeyReferenceInput,

"Create/modify entity as an associate in business-unit."
asAssociate: AsAssociateArgument): ShoppingList
updateShoppingList(version: Long!, actions: [ShoppingListUpdateAction!]!,

"The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions."
storeKey: KeyReferenceInput,

"Create/modify entity as an associate in business-unit."
asAssociate: AsAssociateArgument,

"Queries with specified ID"
id: String,

Expand All @@ -6178,6 +6191,9 @@ type Mutation {
"The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions."
storeKey: KeyReferenceInput,

"Create/modify entity as an associate in business-unit."
asAssociate: AsAssociateArgument,

"Queries with specified ID"
id: String,

Expand Down Expand Up @@ -7593,14 +7609,18 @@ enum Permission {
CreateMyOrdersFromMyCarts
CreateMyOrdersFromMyQuotes
CreateMyQuoteRequestsFromMyCarts
CreateMyShoppingLists
CreateOrdersFromOthersCarts
CreateOrdersFromOthersQuotes
CreateOthersCarts
CreateOthersShoppingLists
CreateQuoteRequestsFromOthersCarts
DeclineMyQuotes
DeclineOthersQuotes
DeleteMyCarts
DeleteMyShoppingLists
DeleteOthersCarts
DeleteOthersShoppingLists
ReassignMyQuotes
ReassignOthersQuotes
RenegotiateMyQuotes
Expand All @@ -7612,18 +7632,22 @@ enum Permission {
UpdateMyCarts
UpdateMyOrders
UpdateMyQuoteRequests
UpdateMyShoppingLists
UpdateOthersCarts
UpdateOthersOrders
UpdateOthersQuoteRequests
UpdateOthersShoppingLists
UpdateParentUnit
ViewMyCarts
ViewMyOrders
ViewMyQuoteRequests
ViewMyQuotes
ViewMyShoppingLists
ViewOthersCarts
ViewOthersOrders
ViewOthersQuoteRequests
ViewOthersQuotes
ViewOthersShoppingLists
}

type PlainEnumValue {
Expand Down Expand Up @@ -12277,6 +12301,10 @@ input SetShoppingListAnonymousId {
anonymousId: String
}

input SetShoppingListBusinessUnit {
businessUnit: ResourceIdentifierInput!
}

input SetShoppingListCustomField {
name: String!
value: String
Expand Down Expand Up @@ -13539,6 +13567,8 @@ type ShoppingList implements Versioned & ReferenceExpandable {
slugAllLocales: [LocalizedString!]
customerRef: Reference
customer: Customer
businessUnit: BusinessUnit
businessUnitRef: KeyReference
storeRef: KeyReference
store: Store
anonymousId: String
Expand All @@ -13557,6 +13587,7 @@ type ShoppingList implements Versioned & ReferenceExpandable {
input ShoppingListDraft {
name: [LocalizedStringItemInputType!]!
description: [LocalizedStringItemInputType!]
businessUnit: ResourceIdentifierInput
lineItems: [ShoppingListLineItemDraft!] = []
textLineItems: [TextLineItemDraft!] = []
custom: CustomFieldsDraft
Expand Down Expand Up @@ -13657,6 +13688,7 @@ input ShoppingListUpdateAction {
removeLineItem: RemoveShoppingListLineItem
removeTextLineItem: RemoveShoppingListTextLineItem
setAnonymousId: SetShoppingListAnonymousId
setBusinessUnit: SetShoppingListBusinessUnit
setCustomField: SetShoppingListCustomField
setCustomType: SetShoppingListCustomType
setCustomer: SetShoppingListCustomer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCar
apiHttpClient, projectKey, associateId, businessUnitKey);
}

public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsRequestBuilder shoppingLists() {
return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsRequestBuilder(
apiHttpClient, projectKey, associateId, businessUnitKey);
}

public ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersRequestBuilder orders() {
return new ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersRequestBuilder(
apiHttpClient, projectKey, associateId, businessUnitKey);
Expand Down
Loading