@ikas/api-client 0.0.1-canary.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/Jenkinsfile +92 -0
  2. package/README.md +2 -0
  3. package/codegen/admin.yml +9 -0
  4. package/dist/api/admin/admin-client.d.ts +8 -0
  5. package/dist/api/admin/admin-client.js +33 -0
  6. package/dist/api/admin/admin-client.js.map +1 -0
  7. package/dist/api/admin/common-gql.d.ts +4 -0
  8. package/dist/api/admin/common-gql.js +14 -0
  9. package/dist/api/admin/common-gql.js.map +1 -0
  10. package/dist/api/admin/generated/index.d.ts +2105 -0
  11. package/dist/api/admin/generated/index.js +340 -0
  12. package/dist/api/admin/generated/index.js.map +1 -0
  13. package/dist/api/admin/index.d.ts +4 -0
  14. package/dist/api/admin/index.js +17 -0
  15. package/dist/api/admin/index.js.map +1 -0
  16. package/dist/api/admin/mutation-gql.d.ts +6 -0
  17. package/dist/api/admin/mutation-gql.js +40 -0
  18. package/dist/api/admin/mutation-gql.js.map +1 -0
  19. package/dist/api/admin/mutation.d.ts +41 -0
  20. package/dist/api/admin/mutation.js +268 -0
  21. package/dist/api/admin/mutation.js.map +1 -0
  22. package/dist/api/admin/query-gql.d.ts +6 -0
  23. package/dist/api/admin/query-gql.js +34 -0
  24. package/dist/api/admin/query-gql.js.map +1 -0
  25. package/dist/api/admin/query.d.ts +33 -0
  26. package/dist/api/admin/query.js +205 -0
  27. package/dist/api/admin/query.js.map +1 -0
  28. package/dist/api/base.d.ts +44 -0
  29. package/dist/api/base.js +181 -0
  30. package/dist/api/base.js.map +1 -0
  31. package/dist/api/index.d.ts +2 -0
  32. package/dist/api/index.js +15 -0
  33. package/dist/api/index.js.map +1 -0
  34. package/dist/api/oauth/index.d.ts +11 -0
  35. package/dist/api/oauth/index.js +100 -0
  36. package/dist/api/oauth/index.js.map +1 -0
  37. package/dist/api/oauth/models.d.ts +35 -0
  38. package/dist/api/oauth/models.js +23 -0
  39. package/dist/api/oauth/models.js.map +1 -0
  40. package/dist/globals/constants.d.ts +13 -0
  41. package/dist/globals/constants.js +15 -0
  42. package/dist/globals/constants.js.map +1 -0
  43. package/dist/globals/index.d.ts +1 -0
  44. package/dist/globals/index.js +14 -0
  45. package/dist/globals/index.js.map +1 -0
  46. package/dist/helpers/index.d.ts +1 -0
  47. package/dist/helpers/index.js +14 -0
  48. package/dist/helpers/index.js.map +1 -0
  49. package/dist/helpers/webhook-validate.d.ts +1 -0
  50. package/dist/helpers/webhook-validate.js +67 -0
  51. package/dist/helpers/webhook-validate.js.map +1 -0
  52. package/dist/index.d.ts +21 -0
  53. package/dist/index.js +33 -0
  54. package/dist/index.js.map +1 -0
  55. package/dist/models/base.d.ts +7 -0
  56. package/dist/models/base.js +3 -0
  57. package/dist/models/base.js.map +1 -0
  58. package/dist/models/index.d.ts +1 -0
  59. package/dist/models/index.js +14 -0
  60. package/dist/models/index.js.map +1 -0
  61. package/dist/models/webhook/index.d.ts +1 -0
  62. package/dist/models/webhook/index.js +14 -0
  63. package/dist/models/webhook/index.js.map +1 -0
  64. package/dist/models/webhook/models.d.ts +68 -0
  65. package/dist/models/webhook/models.js +19 -0
  66. package/dist/models/webhook/models.js.map +1 -0
  67. package/dist/models/webhook/product.d.ts +19 -0
  68. package/dist/models/webhook/product.js +3 -0
  69. package/dist/models/webhook/product.js.map +1 -0
  70. package/package.json +51 -0
  71. package/src/api/admin/admin-client.ts +15 -0
  72. package/src/api/admin/common-gql.ts +425 -0
  73. package/src/api/admin/generated/index.ts +2373 -0
  74. package/src/api/admin/index.ts +4 -0
  75. package/src/api/admin/mutation-gql.ts +255 -0
  76. package/src/api/admin/mutation.ts +195 -0
  77. package/src/api/admin/query-gql.ts +434 -0
  78. package/src/api/admin/query.ts +119 -0
  79. package/src/api/base.ts +133 -0
  80. package/src/api/index.ts +2 -0
  81. package/src/api/oauth/index.ts +47 -0
  82. package/src/api/oauth/models.ts +37 -0
  83. package/src/globals/constants.ts +19 -0
  84. package/src/globals/index.ts +1 -0
  85. package/src/helpers/index.ts +1 -0
  86. package/src/helpers/webhook-validate.ts +17 -0
  87. package/src/index.ts +34 -0
  88. package/src/models/base.ts +7 -0
  89. package/src/models/index.ts +1 -0
  90. package/src/models/webhook/index.ts +1 -0
  91. package/src/models/webhook/models.ts +90 -0
  92. package/tsconfig.json +25 -0
@@ -0,0 +1,4 @@
1
+ export * from './generated';
2
+ export * from './admin-client';
3
+ export * from './query-gql';
4
+ export * from './mutation-gql';
@@ -0,0 +1,255 @@
1
+ import { Mutation } from './generated';
2
+ import { gql } from 'graphql-request';
3
+ import { CATEGORY_GQL, ORDER_GQL, PRODUCT_GQL } from './common-gql';
4
+
5
+ type Mutations = {
6
+ [p in keyof Omit<Mutation, '__typename' | 'cancelFulfillment' | 'deleteWebhook' | 'updateOrderLine'>]: string;
7
+ };
8
+
9
+ export const DefaultMutations: Mutations = {
10
+ addCustomTimelineEntry: gql`
11
+ mutation AddCustomTimelineEntry($input: TimelineInput!) {
12
+ addCustomTimelineEntry(input: $input)
13
+ }
14
+ `,
15
+ addOrderInvoice: gql`
16
+ mutation AddOrderInvoice($input: AddOrderInvoiceInput!) {
17
+ addOrderInvoice(input: $input) {
18
+ id
19
+ }
20
+ }
21
+ `,
22
+ bulkUpdateProducts: gql`
23
+ mutation BulkUpdateProducts($input: [BulkUpdateProductsInput!]!) {
24
+ bulkUpdateProducts(input: $input)
25
+ }
26
+ `,
27
+ createMerchantAppPayment: gql`
28
+ mutation CreateMerchantAppPayment($input: MerchantAppPaymentInput!) {
29
+ createMerchantAppPayment(input: $input) {
30
+ appPaymentKey
31
+ createdAt
32
+ deleted
33
+ id
34
+ merchantPaymentUrl
35
+ name
36
+ paymentDate
37
+ prices {
38
+ period
39
+ price
40
+ }
41
+ status
42
+ storeAppId
43
+ type
44
+ updatedAt
45
+ }
46
+ }
47
+ `,
48
+ createOrderWithTransactions: gql`
49
+ mutation CreateOrderWithTransactions($input: CreateOrderWithTransactionsInput!) {
50
+ createOrderWithTransactions(input: $input) ${ORDER_GQL}
51
+ }`,
52
+ deleteCategoryList: gql`
53
+ mutation DeleteCategoryList($idList: [String!]!) {
54
+ deleteCategoryList(idList: $idList)
55
+ }
56
+ `,
57
+ deleteProductAttributeList: gql`
58
+ mutation DeleteProductAttributeList($idList: [String!]!) {
59
+ deleteProductAttributeList(idList: $idList)
60
+ }
61
+ `,
62
+ deleteProductBrandList: gql`
63
+ mutation DeleteProductBrandList($idList: [String!]!) {
64
+ deleteProductBrandList(idList: $idList)
65
+ }
66
+ `,
67
+ deleteProductList: gql`
68
+ mutation DeleteProductList($idList: [String!]!) {
69
+ deleteProductList(idList: $idList)
70
+ }
71
+ `,
72
+ deleteProductTagList: gql`
73
+ mutation DeleteProductTagList($idList: [String!]!) {
74
+ deleteProductTagList(idList: $idList)
75
+ }
76
+ `,
77
+ deleteStorefrontJSScript: gql`
78
+ mutation DeleteStorefrontJSScript($input: [String!]!) {
79
+ deleteStorefrontJSScript(storefrontIdList: $input)
80
+ }
81
+ `,
82
+ deleteVariantTypeList: gql`
83
+ mutation DeleteVariantTypeList($idList: [String!]!) {
84
+ deleteVariantTypeList(idList: $idList)
85
+ }
86
+ `,
87
+ fulfillOrder: gql`
88
+ mutation FulfillOrder($input: FulFillOrderInput!) {
89
+ fulfillOrder(input: $input) ${ORDER_GQL}
90
+ }`,
91
+ refundOrderLine: gql`
92
+ mutation RefundOrderLine($input: OrderRefundInput!) {
93
+ refundOrderLine(input: $input) ${ORDER_GQL}
94
+ }`,
95
+ saveCategory: gql`
96
+ mutation SaveCategory($input: CategoryInput!) {
97
+ saveCategory(input: $input) ${CATEGORY_GQL}
98
+ }`,
99
+ saveProduct: gql`
100
+ mutation SaveProduct($input: ProductInput!) {
101
+ saveProduct(input: $input) ${PRODUCT_GQL}
102
+ }`,
103
+ saveProductAttribute: gql`
104
+ mutation SaveProductAttribute($input: ProductAttributeInput!) {
105
+ saveProductAttribute(input: $input) {
106
+ id
107
+ createdAt
108
+ updatedAt
109
+ name
110
+ deleted
111
+ type
112
+ description
113
+ tableTemplate {
114
+ rows {
115
+ id
116
+ name
117
+ }
118
+ columns {
119
+ id
120
+ name
121
+ }
122
+ }
123
+ options {
124
+ createdAt
125
+ id
126
+ name
127
+ updatedAt
128
+ }
129
+ }
130
+ }
131
+ `,
132
+ saveProductBrand: gql`
133
+ mutation SaveProductBrand($productBrand: ProductBrandInput!) {
134
+ saveProductBrand(input: $productBrand) {
135
+ id
136
+ createdAt
137
+ updatedAt
138
+ name
139
+ imageId
140
+ salesChannelIds
141
+ orderType
142
+ deleted
143
+ metaData {
144
+ id
145
+ createdAt
146
+ updatedAt
147
+ slug
148
+ pageTitle
149
+ description
150
+ targetType
151
+ targetId
152
+ redirectTo
153
+ }
154
+ }
155
+ }
156
+ `,
157
+ saveProductStockLocations: gql`
158
+ mutation SaveProductStockLocations($input: SaveStockLocationsInput!) {
159
+ saveProductStockLocations(input: $input)
160
+ }
161
+ `,
162
+ saveProductTag: gql`
163
+ mutation SaveProductTag($productTag: ProductTagInput!) {
164
+ saveProductTag(input: $productTag) {
165
+ id
166
+ createdAt
167
+ updatedAt
168
+ name
169
+ deleted
170
+ }
171
+ }
172
+ `,
173
+ saveSalesChannel: gql`
174
+ mutation SaveSalesChannel($input: SalesChannelInput!) {
175
+ saveSalesChannel(input: $input) {
176
+ createdAt
177
+ deleted
178
+ id
179
+ name
180
+ paymentGateways {
181
+ id
182
+ order
183
+ }
184
+ priceListId
185
+ stockLocations {
186
+ id
187
+ order
188
+ }
189
+ type
190
+ updatedAt
191
+ }
192
+ }
193
+ `,
194
+ saveStorefrontJSScript: gql`
195
+ mutation SaveStorefrontJSScript($input: StorefrontJSScriptInput!) {
196
+ saveStorefrontJSScript(input: $input) {
197
+ authorizedAppId
198
+ createdAt
199
+ deleted
200
+ id
201
+ isActive
202
+ name
203
+ scriptContent
204
+ storeAppId
205
+ storefrontId
206
+ updatedAt
207
+ }
208
+ }
209
+ `,
210
+ saveVariantType: gql`
211
+ mutation SaveVariantType($input: VariantTypeInput!) {
212
+ saveVariantType(input: $input) {
213
+ id
214
+ deleted
215
+ createdAt
216
+ updatedAt
217
+ name
218
+ selectionType
219
+ values {
220
+ colorCode
221
+ createdAt
222
+ id
223
+ name
224
+ thumbnailImageId
225
+ updatedAt
226
+ }
227
+ }
228
+ }
229
+ `,
230
+ saveWebhook: gql`
231
+ mutation SaveWebhook($input: WebhookInput!) {
232
+ saveWebhook(input: $input) {
233
+ id
234
+ createdAt
235
+ updatedAt
236
+ deleted
237
+ scope
238
+ endpoint
239
+ }
240
+ }
241
+ `,
242
+ updateOrderAddresses: gql`
243
+ mutation UpdateOrderAddresses($input: UpdateOrderAddressesInput!) {
244
+ updateOrderAddresses(input: $input) ${ORDER_GQL}
245
+ }`,
246
+ updateOrderPackageStatus: gql`
247
+ mutation UpdateOrderPackageStatus($input: UpdateOrderPackageStatusInput!) {
248
+ updateOrderPackageStatus(input: $input) ${ORDER_GQL}
249
+ }`,
250
+ updateProductSalesChannelStatus: gql`
251
+ mutation UpdateProductSalesChannelStatus($input: [UpdateProductSalesChannelStatusInput!]!) {
252
+ updateProductSalesChannelStatus(input: $input)
253
+ }
254
+ `,
255
+ };
@@ -0,0 +1,195 @@
1
+ import { ikasAdminGraphQLAPIClient } from './admin-client';
2
+ import {
3
+ Mutation,
4
+ MutationaddCustomTimelineEntryArgs,
5
+ MutationaddOrderInvoiceArgs,
6
+ MutationbulkUpdateProductsArgs,
7
+ MutationcancelFulfillmentArgs,
8
+ MutationcreateMerchantAppPaymentArgs,
9
+ MutationcreateOrderWithTransactionsArgs,
10
+ MutationdeleteCategoryListArgs,
11
+ MutationdeleteProductAttributeListArgs,
12
+ MutationdeleteProductBrandListArgs,
13
+ MutationdeleteProductListArgs,
14
+ MutationdeleteProductTagListArgs,
15
+ MutationdeleteStorefrontJSScriptArgs,
16
+ MutationdeleteVariantTypeListArgs,
17
+ MutationdeleteWebhookArgs,
18
+ MutationfulfillOrderArgs,
19
+ MutationrefundOrderLineArgs,
20
+ MutationsaveCategoryArgs,
21
+ MutationsaveProductArgs,
22
+ MutationsaveProductAttributeArgs,
23
+ MutationsaveProductBrandArgs,
24
+ MutationsaveProductStockLocationsArgs,
25
+ MutationsaveProductTagArgs,
26
+ MutationsaveSalesChannelArgs,
27
+ MutationsaveStorefrontJSScriptArgs,
28
+ MutationsaveVariantTypeArgs,
29
+ MutationsaveWebhookArgs,
30
+ MutationupdateOrderAddressesArgs,
31
+ MutationupdateOrderLineArgs,
32
+ MutationupdateOrderPackageStatusArgs,
33
+ MutationupdateProductSalesChannelStatusArgs,
34
+ } from './generated';
35
+ import { APIResult, MutationOptions } from '../base';
36
+
37
+ type Mutations = {
38
+ [p in keyof Omit<Mutation, '__typename'>]: (options: MutationOptions<any>) => Promise<APIResult<Partial<Mutation[p]>>>;
39
+ };
40
+
41
+ export class AdminMutation implements Mutations {
42
+ client: ikasAdminGraphQLAPIClient<any>;
43
+
44
+ constructor(client: ikasAdminGraphQLAPIClient<any>) {
45
+ this.client = client;
46
+ }
47
+
48
+ async addCustomTimelineEntry(
49
+ options: MutationOptions<MutationaddCustomTimelineEntryArgs>,
50
+ ): Promise<APIResult<Partial<Mutation['addCustomTimelineEntry']>>> {
51
+ return this.client.mutate<Partial<Mutation['addCustomTimelineEntry']>>({ ...options, operationName: 'addCustomTimelineEntry' });
52
+ }
53
+
54
+ async addOrderInvoice(options: MutationOptions<MutationaddOrderInvoiceArgs>): Promise<APIResult<Partial<Mutation['addOrderInvoice']>>> {
55
+ return this.client.mutate<Partial<Mutation['addOrderInvoice']>>({ ...options, operationName: 'addOrderInvoice' });
56
+ }
57
+
58
+ async bulkUpdateProducts(options: MutationOptions<MutationbulkUpdateProductsArgs>): Promise<APIResult<Partial<Mutation['bulkUpdateProducts']>>> {
59
+ return this.client.mutate<Partial<Mutation['bulkUpdateProducts']>>({ ...options, operationName: 'bulkUpdateProducts' });
60
+ }
61
+
62
+ async cancelFulfillment(options: MutationOptions<MutationcancelFulfillmentArgs>): Promise<APIResult<Partial<Mutation['cancelFulfillment']>>> {
63
+ return this.client.mutate<Partial<Mutation['cancelFulfillment']>>({ ...options, operationName: 'cancelFulfillment' });
64
+ }
65
+
66
+ async createMerchantAppPayment(
67
+ options: MutationOptions<MutationcreateMerchantAppPaymentArgs>,
68
+ ): Promise<APIResult<Partial<Mutation['createMerchantAppPayment']>>> {
69
+ return this.client.mutate<Partial<Mutation['createMerchantAppPayment']>>({ ...options, operationName: 'createMerchantAppPayment' });
70
+ }
71
+
72
+ async createOrderWithTransactions(
73
+ options: MutationOptions<MutationcreateOrderWithTransactionsArgs>,
74
+ ): Promise<APIResult<Partial<Mutation['createOrderWithTransactions']>>> {
75
+ return this.client.mutate<Partial<Mutation['createOrderWithTransactions']>>({ ...options, operationName: 'createOrderWithTransactions' });
76
+ }
77
+
78
+ async deleteCategoryList(options: MutationOptions<MutationdeleteCategoryListArgs>): Promise<APIResult<Partial<Mutation['deleteCategoryList']>>> {
79
+ return this.client.mutate<Partial<Mutation['deleteCategoryList']>>({ ...options, operationName: 'deleteCategoryList' });
80
+ }
81
+
82
+ async deleteProductAttributeList(
83
+ options: MutationOptions<MutationdeleteProductAttributeListArgs>,
84
+ ): Promise<APIResult<Partial<Mutation['deleteProductAttributeList']>>> {
85
+ return this.client.mutate<Partial<Mutation['deleteProductAttributeList']>>({ ...options, operationName: 'deleteProductAttributeList' });
86
+ }
87
+
88
+ async deleteProductBrandList(
89
+ options: MutationOptions<MutationdeleteProductBrandListArgs>,
90
+ ): Promise<APIResult<Partial<Mutation['deleteProductBrandList']>>> {
91
+ return this.client.mutate<Partial<Mutation['deleteProductBrandList']>>({ ...options, operationName: 'deleteProductBrandList' });
92
+ }
93
+
94
+ async deleteProductList(options: MutationOptions<MutationdeleteProductListArgs>): Promise<APIResult<Partial<Mutation['deleteProductList']>>> {
95
+ return this.client.mutate<Partial<Mutation['deleteProductList']>>({ ...options, operationName: 'deleteProductList' });
96
+ }
97
+
98
+ async deleteProductTagList(
99
+ options: MutationOptions<MutationdeleteProductTagListArgs>,
100
+ ): Promise<APIResult<Partial<Mutation['deleteProductTagList']>>> {
101
+ return this.client.mutate<Partial<Mutation['deleteProductTagList']>>({ ...options, operationName: 'deleteProductTagList' });
102
+ }
103
+
104
+ async deleteStorefrontJSScript(
105
+ options: MutationOptions<MutationdeleteStorefrontJSScriptArgs>,
106
+ ): Promise<APIResult<Partial<Mutation['deleteStorefrontJSScript']>>> {
107
+ return this.client.mutate<Partial<Mutation['deleteStorefrontJSScript']>>({ ...options, operationName: 'deleteStorefrontJSScript' });
108
+ }
109
+
110
+ async deleteVariantTypeList(
111
+ options: MutationOptions<MutationdeleteVariantTypeListArgs>,
112
+ ): Promise<APIResult<Partial<Mutation['deleteVariantTypeList']>>> {
113
+ return this.client.mutate<Partial<Mutation['deleteVariantTypeList']>>({ ...options, operationName: 'deleteVariantTypeList' });
114
+ }
115
+
116
+ async deleteWebhook(options: MutationOptions<MutationdeleteWebhookArgs>): Promise<APIResult<Partial<Mutation['deleteWebhook']>>> {
117
+ return this.client.mutate<Partial<Mutation['deleteWebhook']>>({ ...options, operationName: 'deleteWebhook' });
118
+ }
119
+
120
+ async fulfillOrder(options: MutationOptions<MutationfulfillOrderArgs>): Promise<APIResult<Partial<Mutation['fulfillOrder']>>> {
121
+ return this.client.mutate<Partial<Mutation['fulfillOrder']>>({ ...options, operationName: 'fulfillOrder' });
122
+ }
123
+
124
+ async refundOrderLine(options: MutationOptions<MutationrefundOrderLineArgs>): Promise<APIResult<Partial<Mutation['refundOrderLine']>>> {
125
+ return this.client.mutate<Partial<Mutation['refundOrderLine']>>({ ...options, operationName: 'refundOrderLine' });
126
+ }
127
+
128
+ async saveCategory(options: MutationOptions<MutationsaveCategoryArgs>): Promise<APIResult<Partial<Mutation['saveCategory']>>> {
129
+ return this.client.mutate<Partial<Mutation['saveCategory']>>({ ...options, operationName: 'saveCategory' });
130
+ }
131
+
132
+ async saveProduct(options: MutationOptions<MutationsaveProductArgs>): Promise<APIResult<Partial<Mutation['saveProduct']>>> {
133
+ return this.client.mutate<Partial<Mutation['saveProduct']>>({ ...options, operationName: 'saveProduct' });
134
+ }
135
+
136
+ async saveProductAttribute(
137
+ options: MutationOptions<MutationsaveProductAttributeArgs>,
138
+ ): Promise<APIResult<Partial<Mutation['saveProductAttribute']>>> {
139
+ return this.client.mutate<Partial<Mutation['saveProductAttribute']>>({ ...options, operationName: 'saveProductAttribute' });
140
+ }
141
+
142
+ async saveProductBrand(options: MutationOptions<MutationsaveProductBrandArgs>): Promise<APIResult<Partial<Mutation['saveProductBrand']>>> {
143
+ return this.client.mutate<Partial<Mutation['saveProductBrand']>>({ ...options, operationName: 'saveProductBrand' });
144
+ }
145
+
146
+ async saveProductStockLocations(
147
+ options: MutationOptions<MutationsaveProductStockLocationsArgs>,
148
+ ): Promise<APIResult<Partial<Mutation['saveProductStockLocations']>>> {
149
+ return this.client.mutate<Partial<Mutation['saveProductStockLocations']>>({ ...options, operationName: 'saveProductStockLocations' });
150
+ }
151
+
152
+ async saveProductTag(options: MutationOptions<MutationsaveProductTagArgs>): Promise<APIResult<Partial<Mutation['saveProductTag']>>> {
153
+ return this.client.mutate<Partial<Mutation['saveProductTag']>>({ ...options, operationName: 'saveProductTag' });
154
+ }
155
+
156
+ async saveSalesChannel(options: MutationOptions<MutationsaveSalesChannelArgs>): Promise<APIResult<Partial<Mutation['saveSalesChannel']>>> {
157
+ return this.client.mutate<Partial<Mutation['saveSalesChannel']>>({ ...options, operationName: 'saveSalesChannel' });
158
+ }
159
+
160
+ async saveStorefrontJSScript(
161
+ options: MutationOptions<MutationsaveStorefrontJSScriptArgs>,
162
+ ): Promise<APIResult<Partial<Mutation['saveStorefrontJSScript']>>> {
163
+ return this.client.mutate<Partial<Mutation['saveStorefrontJSScript']>>({ ...options, operationName: 'saveStorefrontJSScript' });
164
+ }
165
+
166
+ async saveVariantType(options: MutationOptions<MutationsaveVariantTypeArgs>): Promise<APIResult<Partial<Mutation['saveVariantType']>>> {
167
+ return this.client.mutate<Partial<Mutation['saveVariantType']>>({ ...options, operationName: 'saveVariantType' });
168
+ }
169
+
170
+ async saveWebhook(options: MutationOptions<MutationsaveWebhookArgs>): Promise<APIResult<Partial<Mutation['saveWebhook']>>> {
171
+ return this.client.mutate<Partial<Mutation['saveWebhook']>>({ ...options, operationName: 'saveWebhook' });
172
+ }
173
+
174
+ async updateOrderAddresses(
175
+ options: MutationOptions<MutationupdateOrderAddressesArgs>,
176
+ ): Promise<APIResult<Partial<Mutation['updateOrderAddresses']>>> {
177
+ return this.client.mutate<Partial<Mutation['updateOrderAddresses']>>({ ...options, operationName: 'updateOrderAddresses' });
178
+ }
179
+
180
+ async updateOrderLine(options: MutationOptions<MutationupdateOrderLineArgs>): Promise<APIResult<Partial<Mutation['updateOrderLine']>>> {
181
+ return this.client.mutate<Partial<Mutation['updateOrderLine']>>({ ...options, operationName: 'updateOrderLine' });
182
+ }
183
+
184
+ async updateOrderPackageStatus(
185
+ options: MutationOptions<MutationupdateOrderPackageStatusArgs>,
186
+ ): Promise<APIResult<Partial<Mutation['updateOrderPackageStatus']>>> {
187
+ return this.client.mutate<Partial<Mutation['updateOrderPackageStatus']>>({ ...options, operationName: 'updateOrderPackageStatus' });
188
+ }
189
+
190
+ async updateProductSalesChannelStatus(
191
+ options: MutationOptions<MutationupdateProductSalesChannelStatusArgs>,
192
+ ): Promise<APIResult<Partial<Mutation['updateProductSalesChannelStatus']>>> {
193
+ return this.client.mutate<Partial<Mutation['updateProductSalesChannelStatus']>>({ ...options, operationName: 'updateProductSalesChannelStatus' });
194
+ }
195
+ }