@munchi_oy/core 1.9.23 → 1.9.24

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/generated/api.ts CHANGED
@@ -3156,6 +3156,25 @@ export interface CoordinateDto {
3156
3156
  */
3157
3157
  'lon': number;
3158
3158
  }
3159
+ /**
3160
+ *
3161
+ * @export
3162
+ * @interface CourseDto
3163
+ */
3164
+ export interface CourseDto {
3165
+ /**
3166
+ * Course ID
3167
+ * @type {string}
3168
+ * @memberof CourseDto
3169
+ */
3170
+ 'id': string;
3171
+ /**
3172
+ * Course name
3173
+ * @type {string}
3174
+ * @memberof CourseDto
3175
+ */
3176
+ 'name': string;
3177
+ }
3159
3178
  /**
3160
3179
  *
3161
3180
  * @export
@@ -5024,6 +5043,12 @@ export interface ExtendedProductDto {
5024
5043
  * @memberof ExtendedProductDto
5025
5044
  */
5026
5045
  'channel_configs': Array<ChannelConfig>;
5046
+ /**
5047
+ * Default course ID assigned to this product
5048
+ * @type {string}
5049
+ * @memberof ExtendedProductDto
5050
+ */
5051
+ 'default_course_id'?: string | null;
5027
5052
  }
5028
5053
 
5029
5054
 
@@ -12719,6 +12744,12 @@ export interface PosItemDto {
12719
12744
  * @memberof PosItemDto
12720
12745
  */
12721
12746
  'channel_configs': Array<ChannelConfig>;
12747
+ /**
12748
+ * Default course ID assigned to this product
12749
+ * @type {string}
12750
+ * @memberof PosItemDto
12751
+ */
12752
+ 'default_course_id'?: string | null;
12722
12753
  /**
12723
12754
  * Order identifier
12724
12755
  * @type {string}
@@ -13341,12 +13372,6 @@ export interface PosOrderItemDto {
13341
13372
  * @memberof PosOrderItemDto
13342
13373
  */
13343
13374
  '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;
13350
13375
  /**
13351
13376
  *
13352
13377
  * @type {Array<PosOrderOptionDto>}
@@ -14200,118 +14225,6 @@ export interface PriceSummaryDto {
14200
14225
  */
14201
14226
  'totalNet': number;
14202
14227
  }
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
-
14315
14228
  /**
14316
14229
  *
14317
14230
  * @export
@@ -14931,6 +14844,12 @@ export interface ProductWithCategoryDto {
14931
14844
  * @memberof ProductWithCategoryDto
14932
14845
  */
14933
14846
  'channel_configs': Array<ChannelConfig>;
14847
+ /**
14848
+ * Default course ID assigned to this product
14849
+ * @type {object}
14850
+ * @memberof ProductWithCategoryDto
14851
+ */
14852
+ 'default_course_id'?: object | null;
14934
14853
  }
14935
14854
  /**
14936
14855
  *
@@ -18746,12 +18665,6 @@ export interface UnifiedProductDto {
18746
18665
  * @memberof UnifiedProductDto
18747
18666
  */
18748
18667
  '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;
18755
18668
  /**
18756
18669
  *
18757
18670
  * @type {KitchenItemStatus}
@@ -19197,31 +19110,6 @@ export interface UpsertBusinessDto {
19197
19110
  }
19198
19111
 
19199
19112
 
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
- }
19225
19113
  /**
19226
19114
  *
19227
19115
  * @export
@@ -19553,70 +19441,6 @@ export interface UpsertPaymentOptionsDto {
19553
19441
  */
19554
19442
  'options': Array<UpsertPaymentOptionDto>;
19555
19443
  }
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
- }
19620
19444
  /**
19621
19445
  *
19622
19446
  * @export
@@ -27659,24 +27483,22 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
27659
27483
 
27660
27484
 
27661
27485
  /**
27662
- * EmployeesApi - axios parameter creator
27486
+ * CoursesApi - axios parameter creator
27663
27487
  * @export
27664
27488
  */
27665
- export const EmployeesApiAxiosParamCreator = function (configuration?: Configuration) {
27489
+ export const CoursesApiAxiosParamCreator = function (configuration?: Configuration) {
27666
27490
  return {
27667
27491
  /**
27668
27492
  *
27669
- * @param {number} businessId
27670
- * @param {CreateEmployeeAssignmentDto} createEmployeeAssignmentDto
27493
+ * @summary Get courses for a business
27494
+ * @param {number} businessId Business ID
27671
27495
  * @param {*} [options] Override http request option.
27672
27496
  * @throws {RequiredError}
27673
27497
  */
27674
- createAssignment: async (businessId: number, createEmployeeAssignmentDto: CreateEmployeeAssignmentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
27498
+ getCourses: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
27675
27499
  // verify required parameter 'businessId' is not null or undefined
27676
- assertParamExists('createAssignment', 'businessId', businessId)
27677
- // verify required parameter 'createEmployeeAssignmentDto' is not null or undefined
27678
- assertParamExists('createAssignment', 'createEmployeeAssignmentDto', createEmployeeAssignmentDto)
27679
- const localVarPath = `/api/v1/businesses/{businessId}/assignments`
27500
+ assertParamExists('getCourses', 'businessId', businessId)
27501
+ const localVarPath = `/api/v1/courses/{businessId}`
27680
27502
  .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
27681
27503
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27682
27504
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -27685,18 +27507,19 @@ export const EmployeesApiAxiosParamCreator = function (configuration?: Configura
27685
27507
  baseOptions = configuration.baseOptions;
27686
27508
  }
27687
27509
 
27688
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27510
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27689
27511
  const localVarHeaderParameter = {} as any;
27690
27512
  const localVarQueryParameter = {} as any;
27691
27513
 
27514
+ // authentication JWT-auth required
27515
+ // http bearer authentication required
27516
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27692
27517
 
27693
-
27694
- localVarHeaderParameter['Content-Type'] = 'application/json';
27695
27518
 
27519
+
27696
27520
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27697
27521
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27698
27522
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27699
- localVarRequestOptions.data = serializeDataIfNeeded(createEmployeeAssignmentDto, localVarRequestOptions, configuration)
27700
27523
 
27701
27524
  return {
27702
27525
  url: toPathString(localVarUrlObj),
@@ -27707,102 +27530,105 @@ export const EmployeesApiAxiosParamCreator = function (configuration?: Configura
27707
27530
  };
27708
27531
 
27709
27532
  /**
27710
- * EmployeesApi - functional programming interface
27533
+ * CoursesApi - functional programming interface
27711
27534
  * @export
27712
27535
  */
27713
- export const EmployeesApiFp = function(configuration?: Configuration) {
27714
- const localVarAxiosParamCreator = EmployeesApiAxiosParamCreator(configuration)
27536
+ export const CoursesApiFp = function(configuration?: Configuration) {
27537
+ const localVarAxiosParamCreator = CoursesApiAxiosParamCreator(configuration)
27715
27538
  return {
27716
27539
  /**
27717
27540
  *
27718
- * @param {number} businessId
27719
- * @param {CreateEmployeeAssignmentDto} createEmployeeAssignmentDto
27541
+ * @summary Get courses for a business
27542
+ * @param {number} businessId Business ID
27720
27543
  * @param {*} [options] Override http request option.
27721
27544
  * @throws {RequiredError}
27722
27545
  */
27723
- async createAssignment(businessId: number, createEmployeeAssignmentDto: CreateEmployeeAssignmentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmployeeAssignmentResponseDto>> {
27724
- const localVarAxiosArgs = await localVarAxiosParamCreator.createAssignment(businessId, createEmployeeAssignmentDto, options);
27546
+ async getCourses(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CourseDto>>> {
27547
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCourses(businessId, options);
27725
27548
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
27726
27549
  },
27727
27550
  }
27728
27551
  };
27729
27552
 
27730
27553
  /**
27731
- * EmployeesApi - factory interface
27554
+ * CoursesApi - factory interface
27732
27555
  * @export
27733
27556
  */
27734
- export const EmployeesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27735
- const localVarFp = EmployeesApiFp(configuration)
27557
+ export const CoursesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27558
+ const localVarFp = CoursesApiFp(configuration)
27736
27559
  return {
27737
27560
  /**
27738
27561
  *
27739
- * @param {number} businessId
27740
- * @param {CreateEmployeeAssignmentDto} createEmployeeAssignmentDto
27562
+ * @summary Get courses for a business
27563
+ * @param {number} businessId Business ID
27741
27564
  * @param {*} [options] Override http request option.
27742
27565
  * @throws {RequiredError}
27743
27566
  */
27744
- createAssignment(businessId: number, createEmployeeAssignmentDto: CreateEmployeeAssignmentDto, options?: any): AxiosPromise<EmployeeAssignmentResponseDto> {
27745
- return localVarFp.createAssignment(businessId, createEmployeeAssignmentDto, options).then((request) => request(axios, basePath));
27567
+ getCourses(businessId: number, options?: any): AxiosPromise<Array<CourseDto>> {
27568
+ return localVarFp.getCourses(businessId, options).then((request) => request(axios, basePath));
27746
27569
  },
27747
27570
  };
27748
27571
  };
27749
27572
 
27750
27573
  /**
27751
- * EmployeesApi - interface
27574
+ * CoursesApi - interface
27752
27575
  * @export
27753
- * @interface EmployeesApi
27576
+ * @interface CoursesApi
27754
27577
  */
27755
- export interface EmployeesApiInterface {
27578
+ export interface CoursesApiInterface {
27756
27579
  /**
27757
27580
  *
27758
- * @param {number} businessId
27759
- * @param {CreateEmployeeAssignmentDto} createEmployeeAssignmentDto
27581
+ * @summary Get courses for a business
27582
+ * @param {number} businessId Business ID
27760
27583
  * @param {*} [options] Override http request option.
27761
27584
  * @throws {RequiredError}
27762
- * @memberof EmployeesApiInterface
27585
+ * @memberof CoursesApiInterface
27763
27586
  */
27764
- createAssignment(businessId: number, createEmployeeAssignmentDto: CreateEmployeeAssignmentDto, options?: AxiosRequestConfig): AxiosPromise<EmployeeAssignmentResponseDto>;
27587
+ getCourses(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<CourseDto>>;
27765
27588
 
27766
27589
  }
27767
27590
 
27768
27591
  /**
27769
- * EmployeesApi - object-oriented interface
27592
+ * CoursesApi - object-oriented interface
27770
27593
  * @export
27771
- * @class EmployeesApi
27594
+ * @class CoursesApi
27772
27595
  * @extends {BaseAPI}
27773
27596
  */
27774
- export class EmployeesApi extends BaseAPI implements EmployeesApiInterface {
27597
+ export class CoursesApi extends BaseAPI implements CoursesApiInterface {
27775
27598
  /**
27776
27599
  *
27777
- * @param {number} businessId
27778
- * @param {CreateEmployeeAssignmentDto} createEmployeeAssignmentDto
27600
+ * @summary Get courses for a business
27601
+ * @param {number} businessId Business ID
27779
27602
  * @param {*} [options] Override http request option.
27780
27603
  * @throws {RequiredError}
27781
- * @memberof EmployeesApi
27604
+ * @memberof CoursesApi
27782
27605
  */
27783
- public createAssignment(businessId: number, createEmployeeAssignmentDto: CreateEmployeeAssignmentDto, options?: AxiosRequestConfig) {
27784
- return EmployeesApiFp(this.configuration).createAssignment(businessId, createEmployeeAssignmentDto, options).then((request) => request(this.axios, this.basePath));
27606
+ public getCourses(businessId: number, options?: AxiosRequestConfig) {
27607
+ return CoursesApiFp(this.configuration).getCourses(businessId, options).then((request) => request(this.axios, this.basePath));
27785
27608
  }
27786
27609
  }
27787
27610
 
27788
27611
 
27789
27612
  /**
27790
- * GiftcardApi - axios parameter creator
27613
+ * EmployeesApi - axios parameter creator
27791
27614
  * @export
27792
27615
  */
27793
- export const GiftcardApiAxiosParamCreator = function (configuration?: Configuration) {
27616
+ export const EmployeesApiAxiosParamCreator = function (configuration?: Configuration) {
27794
27617
  return {
27795
27618
  /**
27796
27619
  *
27797
- * @summary Redeem gift card
27798
- * @param {RedeemGiftCardDto} redeemGiftCardDto
27620
+ * @param {number} businessId
27621
+ * @param {CreateEmployeeAssignmentDto} createEmployeeAssignmentDto
27799
27622
  * @param {*} [options] Override http request option.
27800
27623
  * @throws {RequiredError}
27801
27624
  */
27802
- redeemGiftCard: async (redeemGiftCardDto: RedeemGiftCardDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
27803
- // verify required parameter 'redeemGiftCardDto' is not null or undefined
27804
- assertParamExists('redeemGiftCard', 'redeemGiftCardDto', redeemGiftCardDto)
27805
- const localVarPath = `/api/v1/giftcard/redeem`;
27625
+ createAssignment: async (businessId: number, createEmployeeAssignmentDto: CreateEmployeeAssignmentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
27626
+ // verify required parameter 'businessId' is not null or undefined
27627
+ assertParamExists('createAssignment', 'businessId', businessId)
27628
+ // verify required parameter 'createEmployeeAssignmentDto' is not null or undefined
27629
+ assertParamExists('createAssignment', 'createEmployeeAssignmentDto', createEmployeeAssignmentDto)
27630
+ const localVarPath = `/api/v1/businesses/{businessId}/assignments`
27631
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
27806
27632
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27807
27633
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27808
27634
  let baseOptions;
@@ -27821,16 +27647,141 @@ export const GiftcardApiAxiosParamCreator = function (configuration?: Configurat
27821
27647
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27822
27648
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27823
27649
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27824
- localVarRequestOptions.data = serializeDataIfNeeded(redeemGiftCardDto, localVarRequestOptions, configuration)
27650
+ localVarRequestOptions.data = serializeDataIfNeeded(createEmployeeAssignmentDto, localVarRequestOptions, configuration)
27825
27651
 
27826
27652
  return {
27827
27653
  url: toPathString(localVarUrlObj),
27828
27654
  options: localVarRequestOptions,
27829
27655
  };
27830
27656
  },
27657
+ }
27658
+ };
27659
+
27660
+ /**
27661
+ * EmployeesApi - functional programming interface
27662
+ * @export
27663
+ */
27664
+ export const EmployeesApiFp = function(configuration?: Configuration) {
27665
+ const localVarAxiosParamCreator = EmployeesApiAxiosParamCreator(configuration)
27666
+ return {
27831
27667
  /**
27832
27668
  *
27833
- * @summary Validate gift card
27669
+ * @param {number} businessId
27670
+ * @param {CreateEmployeeAssignmentDto} createEmployeeAssignmentDto
27671
+ * @param {*} [options] Override http request option.
27672
+ * @throws {RequiredError}
27673
+ */
27674
+ async createAssignment(businessId: number, createEmployeeAssignmentDto: CreateEmployeeAssignmentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmployeeAssignmentResponseDto>> {
27675
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAssignment(businessId, createEmployeeAssignmentDto, options);
27676
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
27677
+ },
27678
+ }
27679
+ };
27680
+
27681
+ /**
27682
+ * EmployeesApi - factory interface
27683
+ * @export
27684
+ */
27685
+ export const EmployeesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27686
+ const localVarFp = EmployeesApiFp(configuration)
27687
+ return {
27688
+ /**
27689
+ *
27690
+ * @param {number} businessId
27691
+ * @param {CreateEmployeeAssignmentDto} createEmployeeAssignmentDto
27692
+ * @param {*} [options] Override http request option.
27693
+ * @throws {RequiredError}
27694
+ */
27695
+ createAssignment(businessId: number, createEmployeeAssignmentDto: CreateEmployeeAssignmentDto, options?: any): AxiosPromise<EmployeeAssignmentResponseDto> {
27696
+ return localVarFp.createAssignment(businessId, createEmployeeAssignmentDto, options).then((request) => request(axios, basePath));
27697
+ },
27698
+ };
27699
+ };
27700
+
27701
+ /**
27702
+ * EmployeesApi - interface
27703
+ * @export
27704
+ * @interface EmployeesApi
27705
+ */
27706
+ export interface EmployeesApiInterface {
27707
+ /**
27708
+ *
27709
+ * @param {number} businessId
27710
+ * @param {CreateEmployeeAssignmentDto} createEmployeeAssignmentDto
27711
+ * @param {*} [options] Override http request option.
27712
+ * @throws {RequiredError}
27713
+ * @memberof EmployeesApiInterface
27714
+ */
27715
+ createAssignment(businessId: number, createEmployeeAssignmentDto: CreateEmployeeAssignmentDto, options?: AxiosRequestConfig): AxiosPromise<EmployeeAssignmentResponseDto>;
27716
+
27717
+ }
27718
+
27719
+ /**
27720
+ * EmployeesApi - object-oriented interface
27721
+ * @export
27722
+ * @class EmployeesApi
27723
+ * @extends {BaseAPI}
27724
+ */
27725
+ export class EmployeesApi extends BaseAPI implements EmployeesApiInterface {
27726
+ /**
27727
+ *
27728
+ * @param {number} businessId
27729
+ * @param {CreateEmployeeAssignmentDto} createEmployeeAssignmentDto
27730
+ * @param {*} [options] Override http request option.
27731
+ * @throws {RequiredError}
27732
+ * @memberof EmployeesApi
27733
+ */
27734
+ public createAssignment(businessId: number, createEmployeeAssignmentDto: CreateEmployeeAssignmentDto, options?: AxiosRequestConfig) {
27735
+ return EmployeesApiFp(this.configuration).createAssignment(businessId, createEmployeeAssignmentDto, options).then((request) => request(this.axios, this.basePath));
27736
+ }
27737
+ }
27738
+
27739
+
27740
+ /**
27741
+ * GiftcardApi - axios parameter creator
27742
+ * @export
27743
+ */
27744
+ export const GiftcardApiAxiosParamCreator = function (configuration?: Configuration) {
27745
+ return {
27746
+ /**
27747
+ *
27748
+ * @summary Redeem gift card
27749
+ * @param {RedeemGiftCardDto} redeemGiftCardDto
27750
+ * @param {*} [options] Override http request option.
27751
+ * @throws {RequiredError}
27752
+ */
27753
+ redeemGiftCard: async (redeemGiftCardDto: RedeemGiftCardDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
27754
+ // verify required parameter 'redeemGiftCardDto' is not null or undefined
27755
+ assertParamExists('redeemGiftCard', 'redeemGiftCardDto', redeemGiftCardDto)
27756
+ const localVarPath = `/api/v1/giftcard/redeem`;
27757
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27758
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27759
+ let baseOptions;
27760
+ if (configuration) {
27761
+ baseOptions = configuration.baseOptions;
27762
+ }
27763
+
27764
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27765
+ const localVarHeaderParameter = {} as any;
27766
+ const localVarQueryParameter = {} as any;
27767
+
27768
+
27769
+
27770
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27771
+
27772
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27773
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27774
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27775
+ localVarRequestOptions.data = serializeDataIfNeeded(redeemGiftCardDto, localVarRequestOptions, configuration)
27776
+
27777
+ return {
27778
+ url: toPathString(localVarUrlObj),
27779
+ options: localVarRequestOptions,
27780
+ };
27781
+ },
27782
+ /**
27783
+ *
27784
+ * @summary Validate gift card
27834
27785
  * @param {ValidateGiftCardDto} validateGiftCardDto
27835
27786
  * @param {*} [options] Override http request option.
27836
27787
  * @throws {RequiredError}
@@ -35359,743 +35310,6 @@ export class PluginApi extends BaseAPI implements PluginApiInterface {
35359
35310
  }
35360
35311
 
35361
35312
 
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
-
36099
35313
  /**
36100
35314
  * ProductApi - axios parameter creator
36101
35315
  * @export