@ikas/api-client 0.0.1-canary.7 → 1.0.0
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.
- package/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/api/admin/admin-client.d.ts +2 -0
- package/dist/api/admin/admin-client.js +2 -0
- package/dist/api/admin/admin-client.js.map +1 -1
- package/dist/api/admin/generated/index.d.ts +631 -7
- package/dist/api/admin/generated/index.js.map +1 -1
- package/dist/api/admin/rest.d.ts +21 -0
- package/dist/api/admin/rest.js +75 -0
- package/dist/api/admin/rest.js.map +1 -0
- package/dist/api/oauth/index.d.ts +2 -1
- package/dist/api/oauth/index.js +11 -0
- package/dist/api/oauth/index.js.map +1 -1
- package/dist/api/oauth/models.d.ts +5 -0
- package/dist/globals/constants.d.ts +9 -0
- package/dist/globals/constants.js +11 -1
- package/dist/globals/constants.js.map +1 -1
- package/dist/helpers/webhook-validate.d.ts +4 -1
- package/dist/helpers/webhook-validate.js +22 -9
- package/dist/helpers/webhook-validate.js.map +1 -1
- package/dist/models/webhook/models.d.ts +1 -0
- package/package.json +6 -5
- package/Jenkinsfile +0 -92
- package/codegen/admin.yml +0 -9
- package/src/api/admin/admin-client.ts +0 -15
- package/src/api/admin/common-gql.ts +0 -425
- package/src/api/admin/generated/index.ts +0 -2708
- package/src/api/admin/index.ts +0 -4
- package/src/api/admin/mutation-gql.ts +0 -255
- package/src/api/admin/mutation.ts +0 -195
- package/src/api/admin/query-gql.ts +0 -521
- package/src/api/admin/query.ts +0 -144
- package/src/api/base.ts +0 -134
- package/src/api/index.ts +0 -2
- package/src/api/oauth/index.ts +0 -47
- package/src/api/oauth/models.ts +0 -37
- package/src/globals/constants.ts +0 -19
- package/src/globals/index.ts +0 -1
- package/src/helpers/index.ts +0 -1
- package/src/helpers/webhook-validate.ts +0 -17
- package/src/index.ts +0 -34
- package/src/models/base.ts +0 -7
- package/src/models/index.ts +0 -1
- package/src/models/webhook/index.ts +0 -1
- package/src/models/webhook/models.ts +0 -90
- package/tsconfig.json +0 -25
package/src/api/admin/index.ts
DELETED
|
@@ -1,255 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,195 +0,0 @@
|
|
|
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
|
-
}
|