|
1
|
import { Client } from "../client.js" |
|
2
|
import { ApiKey } from "./api-key.js" |
|
3
|
import { Campaign } from "./campaign.js" |
|
4
|
import { Claim } from "./claim.js" |
|
5
|
import { Currency } from "./currency.js" |
|
6
|
import { Customer } from "./customer.js" |
|
7
|
import { CustomerGroup } from "./customer-group.js" |
|
8
|
import { DraftOrder } from "./draft-order.js" |
|
9
|
import { Exchange } from "./exchange.js" |
|
10
|
import { Fulfillment } from "./fulfillment.js" |
|
11
|
import { FulfillmentProvider } from "./fulfillment-provider.js" |
|
12
|
import { FulfillmentSet } from "./fulfillment-set.js" |
|
13
|
import { InventoryItem } from "./inventory-item.js" |
|
14
|
import { Invite } from "./invite.js" |
|
15
|
import { Notification } from "./notification.js" |
|
16
|
import { Order } from "./order.js" |
|
17
|
import { OrderEdit } from "./order-edit.js" |
|
18
|
import { Payment } from "./payment.js" |
|
19
|
import { PaymentCollection } from "./payment-collection.js" |
|
20
|
import { Plugin } from "./plugin.js" |
|
21
|
import { PriceList } from "./price-list.js" |
|
22
|
import { PricePreference } from "./price-preference.js" |
|
23
|
import { Product } from "./product.js" |
|
24
|
import { ProductCategory } from "./product-category.js" |
|
25
|
import { ProductCollection } from "./product-collection.js" |
|
26
|
import { ProductTag } from "./product-tag.js" |
|
27
|
import { ProductType } from "./product-type.js" |
|
28
|
import { ProductVariant } from "./product-variant.js" |
|
29
|
import { Promotion } from "./promotion.js" |
|
30
|
import { PropertyLabel } from "./property-label.js" |
|
31
|
import { RefundReason } from "./refund-reasons.js" |
|
32
|
import { Region } from "./region.js" |
|
33
|
import Reservation from "./reservation.js" |
|
34
|
import { Return } from "./return.js" |
|
35
|
import { ReturnReason } from "./return-reason.js" |
|
36
|
import { SalesChannel } from "./sales-channel.js" |
|
37
|
import { Search } from "./search.js" |
|
38
|
import { ShippingOption } from "./shipping-option.js" |
|
39
|
import { ShippingProfile } from "./shipping-profile.js" |
|
40
|
import { StockLocation } from "./stock-location.js" |
|
41
|
import { Store } from "./store.js" |
|
42
|
import { TaxProvider } from "./tax-provider.js" |
|
43
|
import { TaxRate } from "./tax-rate.js" |
|
44
|
import { TaxRegion } from "./tax-region.js" |
|
45
|
import { Upload } from "./upload.js" |
|
46
|
import { User } from "./user.js" |
|
47
|
import { Views } from "./views.js" |
|
48
|
import { Layouts } from "./layouts.js" |
|
49
|
import { WorkflowExecution } from "./workflow-execution.js" |
|
50
|
import { ShippingOptionType } from "./shipping-option-type.js" |
|
51
|
import { Locale } from "./locale.js" |
|
52
|
import { Translation } from "./translation.js" |
|
53
|
import { ProductOption } from "./product-option.js" |
|
54
|
import { RbacRole } from "./rbac-role.js" |
|
55
|
import { RbacPolicy } from "./rbac-policy.js" |
|
56
|
|
|
57
|
/** |
|
58
|
* The admin client provides access to admin-related resources. |
|
59
|
*/ |
|
60
|
export class Admin { |
|
61
|
/** |
|
62
|
* @tags user |
|
63
|
*/ |
|
64
|
public invite: Invite |
|
65
|
/** |
|
66
|
* @tags customer |
|
67
|
*/ |
|
68
|
public customer: Customer |
|
69
|
/** |
|
70
|
* @tags product |
|
71
|
*/ |
|
72
|
public productCollection: ProductCollection |
|
73
|
/** |
|
74
|
* @tags product |
|
75
|
*/ |
|
76
|
public productCategory: ProductCategory |
|
77
|
/** |
|
78
|
* @tags product |
|
79
|
* @since 2.16.0 |
|
80
|
*/ |
|
81
|
public productOption: ProductOption |
|
82
|
/** |
|
83
|
* @tags pricing |
|
84
|
*/ |
|
85
|
public priceList: PriceList |
|
86
|
/** |
|
87
|
* @tags pricing |
|
88
|
*/ |
|
89
|
public pricePreference: PricePreference |
|
90
|
/** |
|
91
|
* @tags product |
|
92
|
*/ |
|
93
|
public product: Product |
|
94
|
/** |
|
95
|
* @tags product |
|
96
|
*/ |
|
97
|
public productType: ProductType |
|
98
|
/** |
|
99
|
* @tags file |
|
100
|
*/ |
|
101
|
public upload: Upload |
|
102
|
/** |
|
103
|
* @tags region |
|
104
|
*/ |
|
105
|
public region: Region |
|
106
|
/** |
|
107
|
* @tags order |
|
108
|
*/ |
|
109
|
public returnReason: ReturnReason |
|
110
|
/** |
|
111
|
* @tags stock location |
|
112
|
*/ |
|
113
|
public stockLocation: StockLocation |
|
114
|
/** |
|
115
|
* @tags sales channel |
|
116
|
*/ |
|
117
|
public salesChannel: SalesChannel |
|
118
|
/** |
|
119
|
* @tags fulfillment |
|
120
|
*/ |
|
121
|
public fulfillmentSet: FulfillmentSet |
|
122
|
/** |
|
123
|
* @tags fulfillment |
|
124
|
*/ |
|
125
|
public fulfillment: Fulfillment |
|
126
|
/** |
|
127
|
* @tags fulfillment |
|
128
|
*/ |
|
129
|
public fulfillmentProvider: FulfillmentProvider |
|
130
|
/** |
|
131
|
* @tags fulfillment |
|
132
|
*/ |
|
133
|
public shippingOption: ShippingOption |
|
134
|
/** |
|
135
|
* @tags fulfillment |
|
136
|
*/ |
|
137
|
public shippingOptionType: ShippingOptionType |
|
138
|
/** |
|
139
|
* @tags fulfillment |
|
140
|
*/ |
|
141
|
public shippingProfile: ShippingProfile |
|
142
|
/** |
|
143
|
* @tags inventory |
|
144
|
*/ |
|
145
|
public inventoryItem: InventoryItem |
|
146
|
/** |
|
147
|
* @tags notification |
|
148
|
*/ |
|
149
|
public notification: Notification |
|
150
|
/** |
|
151
|
* @tags order |
|
152
|
*/ |
|
153
|
public order: Order |
|
154
|
/** |
|
155
|
* @tags order |
|
156
|
*/ |
|
157
|
public draftOrder: DraftOrder |
|
158
|
/** |
|
159
|
* @tags order |
|
160
|
*/ |
|
161
|
public orderEdit: OrderEdit |
|
162
|
/** |
|
163
|
* @tags order |
|
164
|
*/ |
|
165
|
public return: Return |
|
166
|
/** |
|
167
|
* @tags order |
|
168
|
*/ |
|
169
|
public claim: Claim |
|
170
|
/** |
|
171
|
* @tags order |
|
172
|
*/ |
|
173
|
public exchange: Exchange |
|
174
|
/** |
|
175
|
* @tags tax |
|
176
|
*/ |
|
177
|
public taxRate: TaxRate |
|
178
|
/** |
|
179
|
* @tags tax |
|
180
|
*/ |
|
181
|
public taxRegion: TaxRegion |
|
182
|
/** |
|
183
|
* @tags store |
|
184
|
*/ |
|
185
|
public store: Store |
|
186
|
/** |
|
187
|
* @tags product |
|
188
|
*/ |
|
189
|
public productTag: ProductTag |
|
190
|
/** |
|
191
|
* @tags user |
|
192
|
*/ |
|
193
|
public user: User |
|
194
|
/** |
|
195
|
* @tags currency |
|
196
|
*/ |
|
197
|
public currency: Currency |
|
198
|
/** |
|
199
|
* @tags locale |
|
200
|
* @since 2.12.3 |
|
201
|
*/ |
|
202
|
public locale: Locale |
|
203
|
/** |
|
204
|
* @tags payment |
|
205
|
*/ |
|
206
|
public payment: Payment |
|
207
|
/** |
|
208
|
* @tags product |
|
209
|
*/ |
|
210
|
public productVariant: ProductVariant |
|
211
|
/** |
|
212
|
* @tags order |
|
213
|
*/ |
|
214
|
public refundReason: RefundReason |
|
215
|
/** |
|
216
|
* @tags payment |
|
217
|
*/ |
|
218
|
public paymentCollection: PaymentCollection |
|
219
|
/** |
|
220
|
* @tags api key |
|
221
|
*/ |
|
222
|
public apiKey: ApiKey |
|
223
|
/** |
|
224
|
* @tags workflow |
|
225
|
*/ |
|
226
|
public workflowExecution: WorkflowExecution |
|
227
|
/** |
|
228
|
* @tags inventory |
|
229
|
*/ |
|
230
|
public reservation: Reservation |
|
231
|
/** |
|
232
|
* @tags customer |
|
233
|
*/ |
|
234
|
public customerGroup: CustomerGroup |
|
235
|
/** |
|
236
|
* @tags promotion |
|
237
|
*/ |
|
238
|
public promotion: Promotion |
|
239
|
/** |
|
240
|
* @tags tax |
|
241
|
*/ |
|
242
|
public taxProvider: TaxProvider |
|
243
|
/** |
|
244
|
* @tags translations |
|
245
|
*/ |
|
246
|
public translation: Translation |
|
247
|
/** |
|
248
|
* @tags promotion |
|
249
|
*/ |
|
250
|
public campaign: Campaign |
|
251
|
/** |
|
252
|
* @tags plugin |
|
253
|
*/ |
|
254
|
public plugin: Plugin |
|
255
|
/** |
|
256
|
* @tags search |
|
257
|
*/ |
|
258
|
public search: Search |
|
259
|
/** |
|
260
|
* @tags views |
|
261
|
* @featureFlag view_configurations |
|
262
|
*/ |
|
263
|
public views: Views |
|
264
|
/** |
|
265
|
* @tags property-labels |
|
266
|
* @featureFlag view_configurations |
|
267
|
*/ |
|
268
|
public propertyLabel: PropertyLabel |
|
269
|
/** |
|
270
|
* @tags layouts |
|
271
|
*/ |
|
272
|
public layouts: Layouts |
|
273
|
/** |
|
274
|
* @tags rbac |
|
275
|
* @since 2.15.5 |
|
276
|
*/ |
|
277
|
public rbacRole: RbacRole |
|
278
|
/** |
|
279
|
* @tags rbac |
|
280
|
* @since 2.15.5 |
|
281
|
*/ |
|
282
|
public rbacPolicy: RbacPolicy |
|
283
|
|
|
284
|
constructor(client: Client) { |
|
285
|
this.invite = new Invite(client) |
|
286
|
this.customer = new Customer(client) |
|
287
|
this.productCollection = new ProductCollection(client) |
|
288
|
this.productCategory = new ProductCategory(client) |
|
289
|
this.productOption = new ProductOption(client) |
|
290
|
this.priceList = new PriceList(client) |
|
291
|
this.pricePreference = new PricePreference(client) |
|
292
|
this.product = new Product(client) |
|
293
|
this.productType = new ProductType(client) |
|
294
|
this.upload = new Upload(client) |
|
295
|
this.region = new Region(client) |
|
296
|
this.returnReason = new ReturnReason(client) |
|
297
|
this.stockLocation = new StockLocation(client) |
|
298
|
this.salesChannel = new SalesChannel(client) |
|
299
|
this.fulfillmentSet = new FulfillmentSet(client) |
|
300
|
this.fulfillment = new Fulfillment(client) |
|
301
|
this.fulfillmentProvider = new FulfillmentProvider(client) |
|
302
|
this.shippingOption = new ShippingOption(client) |
|
303
|
this.shippingOptionType = new ShippingOptionType(client) |
|
304
|
this.shippingProfile = new ShippingProfile(client) |
|
305
|
this.inventoryItem = new InventoryItem(client) |
|
306
|
this.notification = new Notification(client) |
|
307
|
this.order = new Order(client) |
|
308
|
this.draftOrder = new DraftOrder(client) |
|
309
|
this.orderEdit = new OrderEdit(client) |
|
310
|
this.return = new Return(client) |
|
311
|
this.claim = new Claim(client) |
|
312
|
this.taxRate = new TaxRate(client) |
|
313
|
this.taxRegion = new TaxRegion(client) |
|
314
|
this.translation = new Translation(client) |
|
315
|
this.store = new Store(client) |
|
316
|
this.productTag = new ProductTag(client) |
|
317
|
this.user = new User(client) |
|
318
|
this.locale = new Locale(client) |
|
319
|
this.currency = new Currency(client) |
|
320
|
this.payment = new Payment(client) |
|
321
|
this.productVariant = new ProductVariant(client) |
|
322
|
this.refundReason = new RefundReason(client) |
|
323
|
this.exchange = new Exchange(client) |
|
324
|
this.paymentCollection = new PaymentCollection(client) |
|
325
|
this.apiKey = new ApiKey(client) |
|
326
|
this.workflowExecution = new WorkflowExecution(client) |
|
327
|
this.reservation = new Reservation(client) |
|
328
|
this.customerGroup = new CustomerGroup(client) |
|
329
|
this.promotion = new Promotion(client) |
|
330
|
this.campaign = new Campaign(client) |
|
331
|
this.plugin = new Plugin(client) |
|
332
|
this.search = new Search(client) |
|
333
|
this.taxProvider = new TaxProvider(client) |
|
334
|
this.views = new Views(client) |
|
335
|
this.propertyLabel = new PropertyLabel(client) |
|
336
|
this.layouts = new Layouts(client) |
|
337
|
this.rbacRole = new RbacRole(client) |
|
338
|
this.rbacPolicy = new RbacPolicy(client) |
|
339
|
} |
|
340
|
} |