@munchi_oy/core 1.9.19 → 1.9.23
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/dist/generated/api.d.ts +584 -0
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +958 -1
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -9492,6 +9492,12 @@ export interface OrderEventDto {
|
|
|
9492
9492
|
* @memberof OrderEventDto
|
|
9493
9493
|
*/
|
|
9494
9494
|
'order': object;
|
|
9495
|
+
/**
|
|
9496
|
+
* Timestamp when the order was accepted
|
|
9497
|
+
* @type {string}
|
|
9498
|
+
* @memberof OrderEventDto
|
|
9499
|
+
*/
|
|
9500
|
+
'acceptedAt'?: string | null;
|
|
9495
9501
|
/**
|
|
9496
9502
|
* Flag to indicate if only cancelled items are included
|
|
9497
9503
|
* @type {boolean}
|
|
@@ -12041,7 +12047,8 @@ export interface PaymentTerminalDtoStation {
|
|
|
12041
12047
|
|
|
12042
12048
|
export const PaymentTypeEnum = {
|
|
12043
12049
|
Cash: 'cash',
|
|
12044
|
-
Card: 'card'
|
|
12050
|
+
Card: 'card',
|
|
12051
|
+
PayOnDelivery: 'pay_on_delivery'
|
|
12045
12052
|
} as const;
|
|
12046
12053
|
|
|
12047
12054
|
export type PaymentTypeEnum = typeof PaymentTypeEnum[keyof typeof PaymentTypeEnum];
|
|
@@ -13334,6 +13341,12 @@ export interface PosOrderItemDto {
|
|
|
13334
13341
|
* @memberof PosOrderItemDto
|
|
13335
13342
|
*/
|
|
13336
13343
|
'printerType'?: PrinterTypeEnum;
|
|
13344
|
+
/**
|
|
13345
|
+
* Resolved target printer address; null/undefined means print on all kitchen printers
|
|
13346
|
+
* @type {string}
|
|
13347
|
+
* @memberof PosOrderItemDto
|
|
13348
|
+
*/
|
|
13349
|
+
'printerId'?: string | null;
|
|
13337
13350
|
/**
|
|
13338
13351
|
*
|
|
13339
13352
|
* @type {Array<PosOrderOptionDto>}
|
|
@@ -14187,6 +14200,118 @@ export interface PriceSummaryDto {
|
|
|
14187
14200
|
*/
|
|
14188
14201
|
'totalNet': number;
|
|
14189
14202
|
}
|
|
14203
|
+
/**
|
|
14204
|
+
*
|
|
14205
|
+
* @export
|
|
14206
|
+
* @interface PrintPolicyDto
|
|
14207
|
+
*/
|
|
14208
|
+
export interface PrintPolicyDto {
|
|
14209
|
+
/**
|
|
14210
|
+
*
|
|
14211
|
+
* @type {number}
|
|
14212
|
+
* @memberof PrintPolicyDto
|
|
14213
|
+
*/
|
|
14214
|
+
'id': number;
|
|
14215
|
+
/**
|
|
14216
|
+
*
|
|
14217
|
+
* @type {number}
|
|
14218
|
+
* @memberof PrintPolicyDto
|
|
14219
|
+
*/
|
|
14220
|
+
'business_id': number;
|
|
14221
|
+
/**
|
|
14222
|
+
*
|
|
14223
|
+
* @type {number}
|
|
14224
|
+
* @memberof PrintPolicyDto
|
|
14225
|
+
*/
|
|
14226
|
+
'printer_id': number;
|
|
14227
|
+
/**
|
|
14228
|
+
*
|
|
14229
|
+
* @type {number}
|
|
14230
|
+
* @memberof PrintPolicyDto
|
|
14231
|
+
*/
|
|
14232
|
+
'product_id'?: number;
|
|
14233
|
+
/**
|
|
14234
|
+
*
|
|
14235
|
+
* @type {number}
|
|
14236
|
+
* @memberof PrintPolicyDto
|
|
14237
|
+
*/
|
|
14238
|
+
'category_id'?: number;
|
|
14239
|
+
}
|
|
14240
|
+
/**
|
|
14241
|
+
*
|
|
14242
|
+
* @export
|
|
14243
|
+
* @enum {string}
|
|
14244
|
+
*/
|
|
14245
|
+
|
|
14246
|
+
export const PrinterConnectionType = {
|
|
14247
|
+
Bluetooth: 'bluetooth',
|
|
14248
|
+
Network: 'network'
|
|
14249
|
+
} as const;
|
|
14250
|
+
|
|
14251
|
+
export type PrinterConnectionType = typeof PrinterConnectionType[keyof typeof PrinterConnectionType];
|
|
14252
|
+
|
|
14253
|
+
|
|
14254
|
+
/**
|
|
14255
|
+
*
|
|
14256
|
+
* @export
|
|
14257
|
+
* @interface PrinterDto
|
|
14258
|
+
*/
|
|
14259
|
+
export interface PrinterDto {
|
|
14260
|
+
/**
|
|
14261
|
+
*
|
|
14262
|
+
* @type {number}
|
|
14263
|
+
* @memberof PrinterDto
|
|
14264
|
+
*/
|
|
14265
|
+
'id': number;
|
|
14266
|
+
/**
|
|
14267
|
+
*
|
|
14268
|
+
* @type {number}
|
|
14269
|
+
* @memberof PrinterDto
|
|
14270
|
+
*/
|
|
14271
|
+
'businessId': number;
|
|
14272
|
+
/**
|
|
14273
|
+
*
|
|
14274
|
+
* @type {PrinterConnectionType}
|
|
14275
|
+
* @memberof PrinterDto
|
|
14276
|
+
*/
|
|
14277
|
+
'type': PrinterConnectionType;
|
|
14278
|
+
/**
|
|
14279
|
+
*
|
|
14280
|
+
* @type {string}
|
|
14281
|
+
* @memberof PrinterDto
|
|
14282
|
+
*/
|
|
14283
|
+
'address': string;
|
|
14284
|
+
/**
|
|
14285
|
+
*
|
|
14286
|
+
* @type {PrinterModelType}
|
|
14287
|
+
* @memberof PrinterDto
|
|
14288
|
+
*/
|
|
14289
|
+
'model': PrinterModelType;
|
|
14290
|
+
/**
|
|
14291
|
+
*
|
|
14292
|
+
* @type {string}
|
|
14293
|
+
* @memberof PrinterDto
|
|
14294
|
+
*/
|
|
14295
|
+
'name': string;
|
|
14296
|
+
}
|
|
14297
|
+
|
|
14298
|
+
|
|
14299
|
+
/**
|
|
14300
|
+
*
|
|
14301
|
+
* @export
|
|
14302
|
+
* @enum {string}
|
|
14303
|
+
*/
|
|
14304
|
+
|
|
14305
|
+
export const PrinterModelType = {
|
|
14306
|
+
Epson: 'epson',
|
|
14307
|
+
Star: 'star',
|
|
14308
|
+
Sunmi: 'sunmi',
|
|
14309
|
+
Label: 'label'
|
|
14310
|
+
} as const;
|
|
14311
|
+
|
|
14312
|
+
export type PrinterModelType = typeof PrinterModelType[keyof typeof PrinterModelType];
|
|
14313
|
+
|
|
14314
|
+
|
|
14190
14315
|
/**
|
|
14191
14316
|
*
|
|
14192
14317
|
* @export
|
|
@@ -18621,6 +18746,12 @@ export interface UnifiedProductDto {
|
|
|
18621
18746
|
* @memberof UnifiedProductDto
|
|
18622
18747
|
*/
|
|
18623
18748
|
'comment'?: string | null;
|
|
18749
|
+
/**
|
|
18750
|
+
* Resolved target printer address; null/undefined means print on all kitchen printers
|
|
18751
|
+
* @type {string}
|
|
18752
|
+
* @memberof UnifiedProductDto
|
|
18753
|
+
*/
|
|
18754
|
+
'printerId'?: string | null;
|
|
18624
18755
|
/**
|
|
18625
18756
|
*
|
|
18626
18757
|
* @type {KitchenItemStatus}
|
|
@@ -19066,6 +19197,31 @@ export interface UpsertBusinessDto {
|
|
|
19066
19197
|
}
|
|
19067
19198
|
|
|
19068
19199
|
|
|
19200
|
+
/**
|
|
19201
|
+
*
|
|
19202
|
+
* @export
|
|
19203
|
+
* @interface UpsertCategoryPrintPolicyDto
|
|
19204
|
+
*/
|
|
19205
|
+
export interface UpsertCategoryPrintPolicyDto {
|
|
19206
|
+
/**
|
|
19207
|
+
* Ordering business ID
|
|
19208
|
+
* @type {number}
|
|
19209
|
+
* @memberof UpsertCategoryPrintPolicyDto
|
|
19210
|
+
*/
|
|
19211
|
+
'businessId': number;
|
|
19212
|
+
/**
|
|
19213
|
+
* External category ID
|
|
19214
|
+
* @type {number}
|
|
19215
|
+
* @memberof UpsertCategoryPrintPolicyDto
|
|
19216
|
+
*/
|
|
19217
|
+
'categoryId': number;
|
|
19218
|
+
/**
|
|
19219
|
+
* Target printer row ID
|
|
19220
|
+
* @type {number}
|
|
19221
|
+
* @memberof UpsertCategoryPrintPolicyDto
|
|
19222
|
+
*/
|
|
19223
|
+
'printerId': number;
|
|
19224
|
+
}
|
|
19069
19225
|
/**
|
|
19070
19226
|
*
|
|
19071
19227
|
* @export
|
|
@@ -19397,6 +19553,70 @@ export interface UpsertPaymentOptionsDto {
|
|
|
19397
19553
|
*/
|
|
19398
19554
|
'options': Array<UpsertPaymentOptionDto>;
|
|
19399
19555
|
}
|
|
19556
|
+
/**
|
|
19557
|
+
*
|
|
19558
|
+
* @export
|
|
19559
|
+
* @interface UpsertPrinterDto
|
|
19560
|
+
*/
|
|
19561
|
+
export interface UpsertPrinterDto {
|
|
19562
|
+
/**
|
|
19563
|
+
* Ordering business ID
|
|
19564
|
+
* @type {number}
|
|
19565
|
+
* @memberof UpsertPrinterDto
|
|
19566
|
+
*/
|
|
19567
|
+
'businessId': number;
|
|
19568
|
+
/**
|
|
19569
|
+
*
|
|
19570
|
+
* @type {PrinterConnectionType}
|
|
19571
|
+
* @memberof UpsertPrinterDto
|
|
19572
|
+
*/
|
|
19573
|
+
'type': PrinterConnectionType;
|
|
19574
|
+
/**
|
|
19575
|
+
* Printer address (network host:port or bluetooth MAC)
|
|
19576
|
+
* @type {string}
|
|
19577
|
+
* @memberof UpsertPrinterDto
|
|
19578
|
+
*/
|
|
19579
|
+
'address': string;
|
|
19580
|
+
/**
|
|
19581
|
+
*
|
|
19582
|
+
* @type {PrinterModelType}
|
|
19583
|
+
* @memberof UpsertPrinterDto
|
|
19584
|
+
*/
|
|
19585
|
+
'model': PrinterModelType;
|
|
19586
|
+
/**
|
|
19587
|
+
* Display name
|
|
19588
|
+
* @type {string}
|
|
19589
|
+
* @memberof UpsertPrinterDto
|
|
19590
|
+
*/
|
|
19591
|
+
'name': string;
|
|
19592
|
+
}
|
|
19593
|
+
|
|
19594
|
+
|
|
19595
|
+
/**
|
|
19596
|
+
*
|
|
19597
|
+
* @export
|
|
19598
|
+
* @interface UpsertProductPrintPolicyDto
|
|
19599
|
+
*/
|
|
19600
|
+
export interface UpsertProductPrintPolicyDto {
|
|
19601
|
+
/**
|
|
19602
|
+
* Ordering business ID
|
|
19603
|
+
* @type {number}
|
|
19604
|
+
* @memberof UpsertProductPrintPolicyDto
|
|
19605
|
+
*/
|
|
19606
|
+
'businessId': number;
|
|
19607
|
+
/**
|
|
19608
|
+
* External product ID
|
|
19609
|
+
* @type {number}
|
|
19610
|
+
* @memberof UpsertProductPrintPolicyDto
|
|
19611
|
+
*/
|
|
19612
|
+
'productId': number;
|
|
19613
|
+
/**
|
|
19614
|
+
* Target printer row ID
|
|
19615
|
+
* @type {number}
|
|
19616
|
+
* @memberof UpsertProductPrintPolicyDto
|
|
19617
|
+
*/
|
|
19618
|
+
'printerId': number;
|
|
19619
|
+
}
|
|
19400
19620
|
/**
|
|
19401
19621
|
*
|
|
19402
19622
|
* @export
|
|
@@ -35139,6 +35359,743 @@ export class PluginApi extends BaseAPI implements PluginApiInterface {
|
|
|
35139
35359
|
}
|
|
35140
35360
|
|
|
35141
35361
|
|
|
35362
|
+
/**
|
|
35363
|
+
* PrintersApi - axios parameter creator
|
|
35364
|
+
* @export
|
|
35365
|
+
*/
|
|
35366
|
+
export const PrintersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
35367
|
+
return {
|
|
35368
|
+
/**
|
|
35369
|
+
*
|
|
35370
|
+
* @param {number} businessId
|
|
35371
|
+
* @param {number} categoryId
|
|
35372
|
+
* @param {*} [options] Override http request option.
|
|
35373
|
+
* @throws {RequiredError}
|
|
35374
|
+
*/
|
|
35375
|
+
deleteCategoryPolicy: async (businessId: number, categoryId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35376
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
35377
|
+
assertParamExists('deleteCategoryPolicy', 'businessId', businessId)
|
|
35378
|
+
// verify required parameter 'categoryId' is not null or undefined
|
|
35379
|
+
assertParamExists('deleteCategoryPolicy', 'categoryId', categoryId)
|
|
35380
|
+
const localVarPath = `/api/v1/printer/policies/category`;
|
|
35381
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35382
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35383
|
+
let baseOptions;
|
|
35384
|
+
if (configuration) {
|
|
35385
|
+
baseOptions = configuration.baseOptions;
|
|
35386
|
+
}
|
|
35387
|
+
|
|
35388
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
35389
|
+
const localVarHeaderParameter = {} as any;
|
|
35390
|
+
const localVarQueryParameter = {} as any;
|
|
35391
|
+
|
|
35392
|
+
if (businessId !== undefined) {
|
|
35393
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
35394
|
+
}
|
|
35395
|
+
|
|
35396
|
+
if (categoryId !== undefined) {
|
|
35397
|
+
localVarQueryParameter['categoryId'] = categoryId;
|
|
35398
|
+
}
|
|
35399
|
+
|
|
35400
|
+
|
|
35401
|
+
|
|
35402
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35403
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35404
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35405
|
+
|
|
35406
|
+
return {
|
|
35407
|
+
url: toPathString(localVarUrlObj),
|
|
35408
|
+
options: localVarRequestOptions,
|
|
35409
|
+
};
|
|
35410
|
+
},
|
|
35411
|
+
/**
|
|
35412
|
+
*
|
|
35413
|
+
* @param {number} id
|
|
35414
|
+
* @param {*} [options] Override http request option.
|
|
35415
|
+
* @throws {RequiredError}
|
|
35416
|
+
*/
|
|
35417
|
+
deletePrinter: async (id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35418
|
+
// verify required parameter 'id' is not null or undefined
|
|
35419
|
+
assertParamExists('deletePrinter', 'id', id)
|
|
35420
|
+
const localVarPath = `/api/v1/printer/{id}`
|
|
35421
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
35422
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35423
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35424
|
+
let baseOptions;
|
|
35425
|
+
if (configuration) {
|
|
35426
|
+
baseOptions = configuration.baseOptions;
|
|
35427
|
+
}
|
|
35428
|
+
|
|
35429
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
35430
|
+
const localVarHeaderParameter = {} as any;
|
|
35431
|
+
const localVarQueryParameter = {} as any;
|
|
35432
|
+
|
|
35433
|
+
|
|
35434
|
+
|
|
35435
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35436
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35437
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35438
|
+
|
|
35439
|
+
return {
|
|
35440
|
+
url: toPathString(localVarUrlObj),
|
|
35441
|
+
options: localVarRequestOptions,
|
|
35442
|
+
};
|
|
35443
|
+
},
|
|
35444
|
+
/**
|
|
35445
|
+
*
|
|
35446
|
+
* @param {number} businessId
|
|
35447
|
+
* @param {number} productId
|
|
35448
|
+
* @param {*} [options] Override http request option.
|
|
35449
|
+
* @throws {RequiredError}
|
|
35450
|
+
*/
|
|
35451
|
+
deleteProductPolicy: async (businessId: number, productId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35452
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
35453
|
+
assertParamExists('deleteProductPolicy', 'businessId', businessId)
|
|
35454
|
+
// verify required parameter 'productId' is not null or undefined
|
|
35455
|
+
assertParamExists('deleteProductPolicy', 'productId', productId)
|
|
35456
|
+
const localVarPath = `/api/v1/printer/policies/product`;
|
|
35457
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35458
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35459
|
+
let baseOptions;
|
|
35460
|
+
if (configuration) {
|
|
35461
|
+
baseOptions = configuration.baseOptions;
|
|
35462
|
+
}
|
|
35463
|
+
|
|
35464
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
35465
|
+
const localVarHeaderParameter = {} as any;
|
|
35466
|
+
const localVarQueryParameter = {} as any;
|
|
35467
|
+
|
|
35468
|
+
if (businessId !== undefined) {
|
|
35469
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
35470
|
+
}
|
|
35471
|
+
|
|
35472
|
+
if (productId !== undefined) {
|
|
35473
|
+
localVarQueryParameter['productId'] = productId;
|
|
35474
|
+
}
|
|
35475
|
+
|
|
35476
|
+
|
|
35477
|
+
|
|
35478
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35479
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35480
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35481
|
+
|
|
35482
|
+
return {
|
|
35483
|
+
url: toPathString(localVarUrlObj),
|
|
35484
|
+
options: localVarRequestOptions,
|
|
35485
|
+
};
|
|
35486
|
+
},
|
|
35487
|
+
/**
|
|
35488
|
+
*
|
|
35489
|
+
* @param {number} businessId
|
|
35490
|
+
* @param {*} [options] Override http request option.
|
|
35491
|
+
* @throws {RequiredError}
|
|
35492
|
+
*/
|
|
35493
|
+
listCategoryPolicies: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35494
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
35495
|
+
assertParamExists('listCategoryPolicies', 'businessId', businessId)
|
|
35496
|
+
const localVarPath = `/api/v1/printer/policies/category`;
|
|
35497
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35498
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35499
|
+
let baseOptions;
|
|
35500
|
+
if (configuration) {
|
|
35501
|
+
baseOptions = configuration.baseOptions;
|
|
35502
|
+
}
|
|
35503
|
+
|
|
35504
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
35505
|
+
const localVarHeaderParameter = {} as any;
|
|
35506
|
+
const localVarQueryParameter = {} as any;
|
|
35507
|
+
|
|
35508
|
+
if (businessId !== undefined) {
|
|
35509
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
35510
|
+
}
|
|
35511
|
+
|
|
35512
|
+
|
|
35513
|
+
|
|
35514
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35515
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35516
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35517
|
+
|
|
35518
|
+
return {
|
|
35519
|
+
url: toPathString(localVarUrlObj),
|
|
35520
|
+
options: localVarRequestOptions,
|
|
35521
|
+
};
|
|
35522
|
+
},
|
|
35523
|
+
/**
|
|
35524
|
+
*
|
|
35525
|
+
* @param {number} businessId
|
|
35526
|
+
* @param {*} [options] Override http request option.
|
|
35527
|
+
* @throws {RequiredError}
|
|
35528
|
+
*/
|
|
35529
|
+
listPrinters: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35530
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
35531
|
+
assertParamExists('listPrinters', 'businessId', businessId)
|
|
35532
|
+
const localVarPath = `/api/v1/printer`;
|
|
35533
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35534
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35535
|
+
let baseOptions;
|
|
35536
|
+
if (configuration) {
|
|
35537
|
+
baseOptions = configuration.baseOptions;
|
|
35538
|
+
}
|
|
35539
|
+
|
|
35540
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
35541
|
+
const localVarHeaderParameter = {} as any;
|
|
35542
|
+
const localVarQueryParameter = {} as any;
|
|
35543
|
+
|
|
35544
|
+
if (businessId !== undefined) {
|
|
35545
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
35546
|
+
}
|
|
35547
|
+
|
|
35548
|
+
|
|
35549
|
+
|
|
35550
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35551
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35552
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35553
|
+
|
|
35554
|
+
return {
|
|
35555
|
+
url: toPathString(localVarUrlObj),
|
|
35556
|
+
options: localVarRequestOptions,
|
|
35557
|
+
};
|
|
35558
|
+
},
|
|
35559
|
+
/**
|
|
35560
|
+
*
|
|
35561
|
+
* @param {number} businessId
|
|
35562
|
+
* @param {*} [options] Override http request option.
|
|
35563
|
+
* @throws {RequiredError}
|
|
35564
|
+
*/
|
|
35565
|
+
listProductPolicies: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35566
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
35567
|
+
assertParamExists('listProductPolicies', 'businessId', businessId)
|
|
35568
|
+
const localVarPath = `/api/v1/printer/policies/product`;
|
|
35569
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35570
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35571
|
+
let baseOptions;
|
|
35572
|
+
if (configuration) {
|
|
35573
|
+
baseOptions = configuration.baseOptions;
|
|
35574
|
+
}
|
|
35575
|
+
|
|
35576
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
35577
|
+
const localVarHeaderParameter = {} as any;
|
|
35578
|
+
const localVarQueryParameter = {} as any;
|
|
35579
|
+
|
|
35580
|
+
if (businessId !== undefined) {
|
|
35581
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
35582
|
+
}
|
|
35583
|
+
|
|
35584
|
+
|
|
35585
|
+
|
|
35586
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35587
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35588
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35589
|
+
|
|
35590
|
+
return {
|
|
35591
|
+
url: toPathString(localVarUrlObj),
|
|
35592
|
+
options: localVarRequestOptions,
|
|
35593
|
+
};
|
|
35594
|
+
},
|
|
35595
|
+
/**
|
|
35596
|
+
*
|
|
35597
|
+
* @param {UpsertCategoryPrintPolicyDto} upsertCategoryPrintPolicyDto
|
|
35598
|
+
* @param {*} [options] Override http request option.
|
|
35599
|
+
* @throws {RequiredError}
|
|
35600
|
+
*/
|
|
35601
|
+
upsertCategoryPolicy: async (upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35602
|
+
// verify required parameter 'upsertCategoryPrintPolicyDto' is not null or undefined
|
|
35603
|
+
assertParamExists('upsertCategoryPolicy', 'upsertCategoryPrintPolicyDto', upsertCategoryPrintPolicyDto)
|
|
35604
|
+
const localVarPath = `/api/v1/printer/policies/category`;
|
|
35605
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35606
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35607
|
+
let baseOptions;
|
|
35608
|
+
if (configuration) {
|
|
35609
|
+
baseOptions = configuration.baseOptions;
|
|
35610
|
+
}
|
|
35611
|
+
|
|
35612
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
35613
|
+
const localVarHeaderParameter = {} as any;
|
|
35614
|
+
const localVarQueryParameter = {} as any;
|
|
35615
|
+
|
|
35616
|
+
|
|
35617
|
+
|
|
35618
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
35619
|
+
|
|
35620
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35621
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35622
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35623
|
+
localVarRequestOptions.data = serializeDataIfNeeded(upsertCategoryPrintPolicyDto, localVarRequestOptions, configuration)
|
|
35624
|
+
|
|
35625
|
+
return {
|
|
35626
|
+
url: toPathString(localVarUrlObj),
|
|
35627
|
+
options: localVarRequestOptions,
|
|
35628
|
+
};
|
|
35629
|
+
},
|
|
35630
|
+
/**
|
|
35631
|
+
*
|
|
35632
|
+
* @param {UpsertPrinterDto} upsertPrinterDto
|
|
35633
|
+
* @param {*} [options] Override http request option.
|
|
35634
|
+
* @throws {RequiredError}
|
|
35635
|
+
*/
|
|
35636
|
+
upsertPrinter: async (upsertPrinterDto: UpsertPrinterDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35637
|
+
// verify required parameter 'upsertPrinterDto' is not null or undefined
|
|
35638
|
+
assertParamExists('upsertPrinter', 'upsertPrinterDto', upsertPrinterDto)
|
|
35639
|
+
const localVarPath = `/api/v1/printer`;
|
|
35640
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35641
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35642
|
+
let baseOptions;
|
|
35643
|
+
if (configuration) {
|
|
35644
|
+
baseOptions = configuration.baseOptions;
|
|
35645
|
+
}
|
|
35646
|
+
|
|
35647
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
35648
|
+
const localVarHeaderParameter = {} as any;
|
|
35649
|
+
const localVarQueryParameter = {} as any;
|
|
35650
|
+
|
|
35651
|
+
|
|
35652
|
+
|
|
35653
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
35654
|
+
|
|
35655
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35656
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35657
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35658
|
+
localVarRequestOptions.data = serializeDataIfNeeded(upsertPrinterDto, localVarRequestOptions, configuration)
|
|
35659
|
+
|
|
35660
|
+
return {
|
|
35661
|
+
url: toPathString(localVarUrlObj),
|
|
35662
|
+
options: localVarRequestOptions,
|
|
35663
|
+
};
|
|
35664
|
+
},
|
|
35665
|
+
/**
|
|
35666
|
+
*
|
|
35667
|
+
* @param {UpsertProductPrintPolicyDto} upsertProductPrintPolicyDto
|
|
35668
|
+
* @param {*} [options] Override http request option.
|
|
35669
|
+
* @throws {RequiredError}
|
|
35670
|
+
*/
|
|
35671
|
+
upsertProductPolicy: async (upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35672
|
+
// verify required parameter 'upsertProductPrintPolicyDto' is not null or undefined
|
|
35673
|
+
assertParamExists('upsertProductPolicy', 'upsertProductPrintPolicyDto', upsertProductPrintPolicyDto)
|
|
35674
|
+
const localVarPath = `/api/v1/printer/policies/product`;
|
|
35675
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35676
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35677
|
+
let baseOptions;
|
|
35678
|
+
if (configuration) {
|
|
35679
|
+
baseOptions = configuration.baseOptions;
|
|
35680
|
+
}
|
|
35681
|
+
|
|
35682
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
35683
|
+
const localVarHeaderParameter = {} as any;
|
|
35684
|
+
const localVarQueryParameter = {} as any;
|
|
35685
|
+
|
|
35686
|
+
|
|
35687
|
+
|
|
35688
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
35689
|
+
|
|
35690
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35691
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35692
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35693
|
+
localVarRequestOptions.data = serializeDataIfNeeded(upsertProductPrintPolicyDto, localVarRequestOptions, configuration)
|
|
35694
|
+
|
|
35695
|
+
return {
|
|
35696
|
+
url: toPathString(localVarUrlObj),
|
|
35697
|
+
options: localVarRequestOptions,
|
|
35698
|
+
};
|
|
35699
|
+
},
|
|
35700
|
+
}
|
|
35701
|
+
};
|
|
35702
|
+
|
|
35703
|
+
/**
|
|
35704
|
+
* PrintersApi - functional programming interface
|
|
35705
|
+
* @export
|
|
35706
|
+
*/
|
|
35707
|
+
export const PrintersApiFp = function(configuration?: Configuration) {
|
|
35708
|
+
const localVarAxiosParamCreator = PrintersApiAxiosParamCreator(configuration)
|
|
35709
|
+
return {
|
|
35710
|
+
/**
|
|
35711
|
+
*
|
|
35712
|
+
* @param {number} businessId
|
|
35713
|
+
* @param {number} categoryId
|
|
35714
|
+
* @param {*} [options] Override http request option.
|
|
35715
|
+
* @throws {RequiredError}
|
|
35716
|
+
*/
|
|
35717
|
+
async deleteCategoryPolicy(businessId: number, categoryId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
35718
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCategoryPolicy(businessId, categoryId, options);
|
|
35719
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35720
|
+
},
|
|
35721
|
+
/**
|
|
35722
|
+
*
|
|
35723
|
+
* @param {number} id
|
|
35724
|
+
* @param {*} [options] Override http request option.
|
|
35725
|
+
* @throws {RequiredError}
|
|
35726
|
+
*/
|
|
35727
|
+
async deletePrinter(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
35728
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePrinter(id, options);
|
|
35729
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35730
|
+
},
|
|
35731
|
+
/**
|
|
35732
|
+
*
|
|
35733
|
+
* @param {number} businessId
|
|
35734
|
+
* @param {number} productId
|
|
35735
|
+
* @param {*} [options] Override http request option.
|
|
35736
|
+
* @throws {RequiredError}
|
|
35737
|
+
*/
|
|
35738
|
+
async deleteProductPolicy(businessId: number, productId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
35739
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductPolicy(businessId, productId, options);
|
|
35740
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35741
|
+
},
|
|
35742
|
+
/**
|
|
35743
|
+
*
|
|
35744
|
+
* @param {number} businessId
|
|
35745
|
+
* @param {*} [options] Override http request option.
|
|
35746
|
+
* @throws {RequiredError}
|
|
35747
|
+
*/
|
|
35748
|
+
async listCategoryPolicies(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PrintPolicyDto>>> {
|
|
35749
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCategoryPolicies(businessId, options);
|
|
35750
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35751
|
+
},
|
|
35752
|
+
/**
|
|
35753
|
+
*
|
|
35754
|
+
* @param {number} businessId
|
|
35755
|
+
* @param {*} [options] Override http request option.
|
|
35756
|
+
* @throws {RequiredError}
|
|
35757
|
+
*/
|
|
35758
|
+
async listPrinters(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PrinterDto>>> {
|
|
35759
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPrinters(businessId, options);
|
|
35760
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35761
|
+
},
|
|
35762
|
+
/**
|
|
35763
|
+
*
|
|
35764
|
+
* @param {number} businessId
|
|
35765
|
+
* @param {*} [options] Override http request option.
|
|
35766
|
+
* @throws {RequiredError}
|
|
35767
|
+
*/
|
|
35768
|
+
async listProductPolicies(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PrintPolicyDto>>> {
|
|
35769
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductPolicies(businessId, options);
|
|
35770
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35771
|
+
},
|
|
35772
|
+
/**
|
|
35773
|
+
*
|
|
35774
|
+
* @param {UpsertCategoryPrintPolicyDto} upsertCategoryPrintPolicyDto
|
|
35775
|
+
* @param {*} [options] Override http request option.
|
|
35776
|
+
* @throws {RequiredError}
|
|
35777
|
+
*/
|
|
35778
|
+
async upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrintPolicyDto>> {
|
|
35779
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.upsertCategoryPolicy(upsertCategoryPrintPolicyDto, options);
|
|
35780
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35781
|
+
},
|
|
35782
|
+
/**
|
|
35783
|
+
*
|
|
35784
|
+
* @param {UpsertPrinterDto} upsertPrinterDto
|
|
35785
|
+
* @param {*} [options] Override http request option.
|
|
35786
|
+
* @throws {RequiredError}
|
|
35787
|
+
*/
|
|
35788
|
+
async upsertPrinter(upsertPrinterDto: UpsertPrinterDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrinterDto>> {
|
|
35789
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.upsertPrinter(upsertPrinterDto, options);
|
|
35790
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35791
|
+
},
|
|
35792
|
+
/**
|
|
35793
|
+
*
|
|
35794
|
+
* @param {UpsertProductPrintPolicyDto} upsertProductPrintPolicyDto
|
|
35795
|
+
* @param {*} [options] Override http request option.
|
|
35796
|
+
* @throws {RequiredError}
|
|
35797
|
+
*/
|
|
35798
|
+
async upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrintPolicyDto>> {
|
|
35799
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.upsertProductPolicy(upsertProductPrintPolicyDto, options);
|
|
35800
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35801
|
+
},
|
|
35802
|
+
}
|
|
35803
|
+
};
|
|
35804
|
+
|
|
35805
|
+
/**
|
|
35806
|
+
* PrintersApi - factory interface
|
|
35807
|
+
* @export
|
|
35808
|
+
*/
|
|
35809
|
+
export const PrintersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
35810
|
+
const localVarFp = PrintersApiFp(configuration)
|
|
35811
|
+
return {
|
|
35812
|
+
/**
|
|
35813
|
+
*
|
|
35814
|
+
* @param {number} businessId
|
|
35815
|
+
* @param {number} categoryId
|
|
35816
|
+
* @param {*} [options] Override http request option.
|
|
35817
|
+
* @throws {RequiredError}
|
|
35818
|
+
*/
|
|
35819
|
+
deleteCategoryPolicy(businessId: number, categoryId: number, options?: any): AxiosPromise<void> {
|
|
35820
|
+
return localVarFp.deleteCategoryPolicy(businessId, categoryId, options).then((request) => request(axios, basePath));
|
|
35821
|
+
},
|
|
35822
|
+
/**
|
|
35823
|
+
*
|
|
35824
|
+
* @param {number} id
|
|
35825
|
+
* @param {*} [options] Override http request option.
|
|
35826
|
+
* @throws {RequiredError}
|
|
35827
|
+
*/
|
|
35828
|
+
deletePrinter(id: number, options?: any): AxiosPromise<void> {
|
|
35829
|
+
return localVarFp.deletePrinter(id, options).then((request) => request(axios, basePath));
|
|
35830
|
+
},
|
|
35831
|
+
/**
|
|
35832
|
+
*
|
|
35833
|
+
* @param {number} businessId
|
|
35834
|
+
* @param {number} productId
|
|
35835
|
+
* @param {*} [options] Override http request option.
|
|
35836
|
+
* @throws {RequiredError}
|
|
35837
|
+
*/
|
|
35838
|
+
deleteProductPolicy(businessId: number, productId: number, options?: any): AxiosPromise<void> {
|
|
35839
|
+
return localVarFp.deleteProductPolicy(businessId, productId, options).then((request) => request(axios, basePath));
|
|
35840
|
+
},
|
|
35841
|
+
/**
|
|
35842
|
+
*
|
|
35843
|
+
* @param {number} businessId
|
|
35844
|
+
* @param {*} [options] Override http request option.
|
|
35845
|
+
* @throws {RequiredError}
|
|
35846
|
+
*/
|
|
35847
|
+
listCategoryPolicies(businessId: number, options?: any): AxiosPromise<Array<PrintPolicyDto>> {
|
|
35848
|
+
return localVarFp.listCategoryPolicies(businessId, options).then((request) => request(axios, basePath));
|
|
35849
|
+
},
|
|
35850
|
+
/**
|
|
35851
|
+
*
|
|
35852
|
+
* @param {number} businessId
|
|
35853
|
+
* @param {*} [options] Override http request option.
|
|
35854
|
+
* @throws {RequiredError}
|
|
35855
|
+
*/
|
|
35856
|
+
listPrinters(businessId: number, options?: any): AxiosPromise<Array<PrinterDto>> {
|
|
35857
|
+
return localVarFp.listPrinters(businessId, options).then((request) => request(axios, basePath));
|
|
35858
|
+
},
|
|
35859
|
+
/**
|
|
35860
|
+
*
|
|
35861
|
+
* @param {number} businessId
|
|
35862
|
+
* @param {*} [options] Override http request option.
|
|
35863
|
+
* @throws {RequiredError}
|
|
35864
|
+
*/
|
|
35865
|
+
listProductPolicies(businessId: number, options?: any): AxiosPromise<Array<PrintPolicyDto>> {
|
|
35866
|
+
return localVarFp.listProductPolicies(businessId, options).then((request) => request(axios, basePath));
|
|
35867
|
+
},
|
|
35868
|
+
/**
|
|
35869
|
+
*
|
|
35870
|
+
* @param {UpsertCategoryPrintPolicyDto} upsertCategoryPrintPolicyDto
|
|
35871
|
+
* @param {*} [options] Override http request option.
|
|
35872
|
+
* @throws {RequiredError}
|
|
35873
|
+
*/
|
|
35874
|
+
upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: any): AxiosPromise<PrintPolicyDto> {
|
|
35875
|
+
return localVarFp.upsertCategoryPolicy(upsertCategoryPrintPolicyDto, options).then((request) => request(axios, basePath));
|
|
35876
|
+
},
|
|
35877
|
+
/**
|
|
35878
|
+
*
|
|
35879
|
+
* @param {UpsertPrinterDto} upsertPrinterDto
|
|
35880
|
+
* @param {*} [options] Override http request option.
|
|
35881
|
+
* @throws {RequiredError}
|
|
35882
|
+
*/
|
|
35883
|
+
upsertPrinter(upsertPrinterDto: UpsertPrinterDto, options?: any): AxiosPromise<PrinterDto> {
|
|
35884
|
+
return localVarFp.upsertPrinter(upsertPrinterDto, options).then((request) => request(axios, basePath));
|
|
35885
|
+
},
|
|
35886
|
+
/**
|
|
35887
|
+
*
|
|
35888
|
+
* @param {UpsertProductPrintPolicyDto} upsertProductPrintPolicyDto
|
|
35889
|
+
* @param {*} [options] Override http request option.
|
|
35890
|
+
* @throws {RequiredError}
|
|
35891
|
+
*/
|
|
35892
|
+
upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: any): AxiosPromise<PrintPolicyDto> {
|
|
35893
|
+
return localVarFp.upsertProductPolicy(upsertProductPrintPolicyDto, options).then((request) => request(axios, basePath));
|
|
35894
|
+
},
|
|
35895
|
+
};
|
|
35896
|
+
};
|
|
35897
|
+
|
|
35898
|
+
/**
|
|
35899
|
+
* PrintersApi - interface
|
|
35900
|
+
* @export
|
|
35901
|
+
* @interface PrintersApi
|
|
35902
|
+
*/
|
|
35903
|
+
export interface PrintersApiInterface {
|
|
35904
|
+
/**
|
|
35905
|
+
*
|
|
35906
|
+
* @param {number} businessId
|
|
35907
|
+
* @param {number} categoryId
|
|
35908
|
+
* @param {*} [options] Override http request option.
|
|
35909
|
+
* @throws {RequiredError}
|
|
35910
|
+
* @memberof PrintersApiInterface
|
|
35911
|
+
*/
|
|
35912
|
+
deleteCategoryPolicy(businessId: number, categoryId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
35913
|
+
|
|
35914
|
+
/**
|
|
35915
|
+
*
|
|
35916
|
+
* @param {number} id
|
|
35917
|
+
* @param {*} [options] Override http request option.
|
|
35918
|
+
* @throws {RequiredError}
|
|
35919
|
+
* @memberof PrintersApiInterface
|
|
35920
|
+
*/
|
|
35921
|
+
deletePrinter(id: number, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
35922
|
+
|
|
35923
|
+
/**
|
|
35924
|
+
*
|
|
35925
|
+
* @param {number} businessId
|
|
35926
|
+
* @param {number} productId
|
|
35927
|
+
* @param {*} [options] Override http request option.
|
|
35928
|
+
* @throws {RequiredError}
|
|
35929
|
+
* @memberof PrintersApiInterface
|
|
35930
|
+
*/
|
|
35931
|
+
deleteProductPolicy(businessId: number, productId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
35932
|
+
|
|
35933
|
+
/**
|
|
35934
|
+
*
|
|
35935
|
+
* @param {number} businessId
|
|
35936
|
+
* @param {*} [options] Override http request option.
|
|
35937
|
+
* @throws {RequiredError}
|
|
35938
|
+
* @memberof PrintersApiInterface
|
|
35939
|
+
*/
|
|
35940
|
+
listCategoryPolicies(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<PrintPolicyDto>>;
|
|
35941
|
+
|
|
35942
|
+
/**
|
|
35943
|
+
*
|
|
35944
|
+
* @param {number} businessId
|
|
35945
|
+
* @param {*} [options] Override http request option.
|
|
35946
|
+
* @throws {RequiredError}
|
|
35947
|
+
* @memberof PrintersApiInterface
|
|
35948
|
+
*/
|
|
35949
|
+
listPrinters(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<PrinterDto>>;
|
|
35950
|
+
|
|
35951
|
+
/**
|
|
35952
|
+
*
|
|
35953
|
+
* @param {number} businessId
|
|
35954
|
+
* @param {*} [options] Override http request option.
|
|
35955
|
+
* @throws {RequiredError}
|
|
35956
|
+
* @memberof PrintersApiInterface
|
|
35957
|
+
*/
|
|
35958
|
+
listProductPolicies(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<PrintPolicyDto>>;
|
|
35959
|
+
|
|
35960
|
+
/**
|
|
35961
|
+
*
|
|
35962
|
+
* @param {UpsertCategoryPrintPolicyDto} upsertCategoryPrintPolicyDto
|
|
35963
|
+
* @param {*} [options] Override http request option.
|
|
35964
|
+
* @throws {RequiredError}
|
|
35965
|
+
* @memberof PrintersApiInterface
|
|
35966
|
+
*/
|
|
35967
|
+
upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig): AxiosPromise<PrintPolicyDto>;
|
|
35968
|
+
|
|
35969
|
+
/**
|
|
35970
|
+
*
|
|
35971
|
+
* @param {UpsertPrinterDto} upsertPrinterDto
|
|
35972
|
+
* @param {*} [options] Override http request option.
|
|
35973
|
+
* @throws {RequiredError}
|
|
35974
|
+
* @memberof PrintersApiInterface
|
|
35975
|
+
*/
|
|
35976
|
+
upsertPrinter(upsertPrinterDto: UpsertPrinterDto, options?: AxiosRequestConfig): AxiosPromise<PrinterDto>;
|
|
35977
|
+
|
|
35978
|
+
/**
|
|
35979
|
+
*
|
|
35980
|
+
* @param {UpsertProductPrintPolicyDto} upsertProductPrintPolicyDto
|
|
35981
|
+
* @param {*} [options] Override http request option.
|
|
35982
|
+
* @throws {RequiredError}
|
|
35983
|
+
* @memberof PrintersApiInterface
|
|
35984
|
+
*/
|
|
35985
|
+
upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig): AxiosPromise<PrintPolicyDto>;
|
|
35986
|
+
|
|
35987
|
+
}
|
|
35988
|
+
|
|
35989
|
+
/**
|
|
35990
|
+
* PrintersApi - object-oriented interface
|
|
35991
|
+
* @export
|
|
35992
|
+
* @class PrintersApi
|
|
35993
|
+
* @extends {BaseAPI}
|
|
35994
|
+
*/
|
|
35995
|
+
export class PrintersApi extends BaseAPI implements PrintersApiInterface {
|
|
35996
|
+
/**
|
|
35997
|
+
*
|
|
35998
|
+
* @param {number} businessId
|
|
35999
|
+
* @param {number} categoryId
|
|
36000
|
+
* @param {*} [options] Override http request option.
|
|
36001
|
+
* @throws {RequiredError}
|
|
36002
|
+
* @memberof PrintersApi
|
|
36003
|
+
*/
|
|
36004
|
+
public deleteCategoryPolicy(businessId: number, categoryId: number, options?: AxiosRequestConfig) {
|
|
36005
|
+
return PrintersApiFp(this.configuration).deleteCategoryPolicy(businessId, categoryId, options).then((request) => request(this.axios, this.basePath));
|
|
36006
|
+
}
|
|
36007
|
+
|
|
36008
|
+
/**
|
|
36009
|
+
*
|
|
36010
|
+
* @param {number} id
|
|
36011
|
+
* @param {*} [options] Override http request option.
|
|
36012
|
+
* @throws {RequiredError}
|
|
36013
|
+
* @memberof PrintersApi
|
|
36014
|
+
*/
|
|
36015
|
+
public deletePrinter(id: number, options?: AxiosRequestConfig) {
|
|
36016
|
+
return PrintersApiFp(this.configuration).deletePrinter(id, options).then((request) => request(this.axios, this.basePath));
|
|
36017
|
+
}
|
|
36018
|
+
|
|
36019
|
+
/**
|
|
36020
|
+
*
|
|
36021
|
+
* @param {number} businessId
|
|
36022
|
+
* @param {number} productId
|
|
36023
|
+
* @param {*} [options] Override http request option.
|
|
36024
|
+
* @throws {RequiredError}
|
|
36025
|
+
* @memberof PrintersApi
|
|
36026
|
+
*/
|
|
36027
|
+
public deleteProductPolicy(businessId: number, productId: number, options?: AxiosRequestConfig) {
|
|
36028
|
+
return PrintersApiFp(this.configuration).deleteProductPolicy(businessId, productId, options).then((request) => request(this.axios, this.basePath));
|
|
36029
|
+
}
|
|
36030
|
+
|
|
36031
|
+
/**
|
|
36032
|
+
*
|
|
36033
|
+
* @param {number} businessId
|
|
36034
|
+
* @param {*} [options] Override http request option.
|
|
36035
|
+
* @throws {RequiredError}
|
|
36036
|
+
* @memberof PrintersApi
|
|
36037
|
+
*/
|
|
36038
|
+
public listCategoryPolicies(businessId: number, options?: AxiosRequestConfig) {
|
|
36039
|
+
return PrintersApiFp(this.configuration).listCategoryPolicies(businessId, options).then((request) => request(this.axios, this.basePath));
|
|
36040
|
+
}
|
|
36041
|
+
|
|
36042
|
+
/**
|
|
36043
|
+
*
|
|
36044
|
+
* @param {number} businessId
|
|
36045
|
+
* @param {*} [options] Override http request option.
|
|
36046
|
+
* @throws {RequiredError}
|
|
36047
|
+
* @memberof PrintersApi
|
|
36048
|
+
*/
|
|
36049
|
+
public listPrinters(businessId: number, options?: AxiosRequestConfig) {
|
|
36050
|
+
return PrintersApiFp(this.configuration).listPrinters(businessId, options).then((request) => request(this.axios, this.basePath));
|
|
36051
|
+
}
|
|
36052
|
+
|
|
36053
|
+
/**
|
|
36054
|
+
*
|
|
36055
|
+
* @param {number} businessId
|
|
36056
|
+
* @param {*} [options] Override http request option.
|
|
36057
|
+
* @throws {RequiredError}
|
|
36058
|
+
* @memberof PrintersApi
|
|
36059
|
+
*/
|
|
36060
|
+
public listProductPolicies(businessId: number, options?: AxiosRequestConfig) {
|
|
36061
|
+
return PrintersApiFp(this.configuration).listProductPolicies(businessId, options).then((request) => request(this.axios, this.basePath));
|
|
36062
|
+
}
|
|
36063
|
+
|
|
36064
|
+
/**
|
|
36065
|
+
*
|
|
36066
|
+
* @param {UpsertCategoryPrintPolicyDto} upsertCategoryPrintPolicyDto
|
|
36067
|
+
* @param {*} [options] Override http request option.
|
|
36068
|
+
* @throws {RequiredError}
|
|
36069
|
+
* @memberof PrintersApi
|
|
36070
|
+
*/
|
|
36071
|
+
public upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig) {
|
|
36072
|
+
return PrintersApiFp(this.configuration).upsertCategoryPolicy(upsertCategoryPrintPolicyDto, options).then((request) => request(this.axios, this.basePath));
|
|
36073
|
+
}
|
|
36074
|
+
|
|
36075
|
+
/**
|
|
36076
|
+
*
|
|
36077
|
+
* @param {UpsertPrinterDto} upsertPrinterDto
|
|
36078
|
+
* @param {*} [options] Override http request option.
|
|
36079
|
+
* @throws {RequiredError}
|
|
36080
|
+
* @memberof PrintersApi
|
|
36081
|
+
*/
|
|
36082
|
+
public upsertPrinter(upsertPrinterDto: UpsertPrinterDto, options?: AxiosRequestConfig) {
|
|
36083
|
+
return PrintersApiFp(this.configuration).upsertPrinter(upsertPrinterDto, options).then((request) => request(this.axios, this.basePath));
|
|
36084
|
+
}
|
|
36085
|
+
|
|
36086
|
+
/**
|
|
36087
|
+
*
|
|
36088
|
+
* @param {UpsertProductPrintPolicyDto} upsertProductPrintPolicyDto
|
|
36089
|
+
* @param {*} [options] Override http request option.
|
|
36090
|
+
* @throws {RequiredError}
|
|
36091
|
+
* @memberof PrintersApi
|
|
36092
|
+
*/
|
|
36093
|
+
public upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig) {
|
|
36094
|
+
return PrintersApiFp(this.configuration).upsertProductPolicy(upsertProductPrintPolicyDto, options).then((request) => request(this.axios, this.basePath));
|
|
36095
|
+
}
|
|
36096
|
+
}
|
|
36097
|
+
|
|
36098
|
+
|
|
35142
36099
|
/**
|
|
35143
36100
|
* ProductApi - axios parameter creator
|
|
35144
36101
|
* @export
|