@munchi_oy/core 1.9.107 → 1.9.111

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.
@@ -2472,6 +2472,16 @@ export interface CategoryDto {
2472
2472
  */
2473
2473
  'subcategories': Array<SubcategoryDto>;
2474
2474
  }
2475
+ /**
2476
+ *
2477
+ * @export
2478
+ * @enum {string}
2479
+ */
2480
+ export declare const CdsSessionRole: {
2481
+ readonly Pos: "pos";
2482
+ readonly Display: "display";
2483
+ };
2484
+ export type CdsSessionRole = typeof CdsSessionRole[keyof typeof CdsSessionRole];
2475
2485
  /**
2476
2486
  *
2477
2487
  * @export
@@ -19646,11 +19656,11 @@ export interface RequestSessionTokenBodyDto {
19646
19656
  */
19647
19657
  'sessionId': string;
19648
19658
  /**
19649
- * Which device is requesting the token.
19650
- * @type {string}
19659
+ *
19660
+ * @type {CdsSessionRole}
19651
19661
  * @memberof RequestSessionTokenBodyDto
19652
19662
  */
19653
- 'role': RoleEnum;
19663
+ 'role': CdsSessionRole;
19654
19664
  /**
19655
19665
  * Requesting device id (posDeviceId or displayId).
19656
19666
  * @type {string}
@@ -19658,11 +19668,6 @@ export interface RequestSessionTokenBodyDto {
19658
19668
  */
19659
19669
  'deviceId': string;
19660
19670
  }
19661
- export declare const RoleEnum: {
19662
- readonly Pos: "pos";
19663
- readonly Display: "display";
19664
- };
19665
- export type RoleEnum = typeof RoleEnum[keyof typeof RoleEnum];
19666
19671
  /**
19667
19672
  *
19668
19673
  * @export
@@ -23676,6 +23681,44 @@ export interface UnlockTerminalDto {
23676
23681
  */
23677
23682
  'employeeId': string;
23678
23683
  }
23684
+ /**
23685
+ *
23686
+ * @export
23687
+ * @interface UnpairDisplayBodyDto
23688
+ */
23689
+ export interface UnpairDisplayBodyDto {
23690
+ /**
23691
+ * Session id of the binding to tear down.
23692
+ * @type {string}
23693
+ * @memberof UnpairDisplayBodyDto
23694
+ */
23695
+ 'sessionId': string;
23696
+ /**
23697
+ *
23698
+ * @type {CdsSessionRole}
23699
+ * @memberof UnpairDisplayBodyDto
23700
+ */
23701
+ 'role': CdsSessionRole;
23702
+ /**
23703
+ * Requesting device id (posDeviceId or displayId).
23704
+ * @type {string}
23705
+ * @memberof UnpairDisplayBodyDto
23706
+ */
23707
+ 'deviceId': string;
23708
+ }
23709
+ /**
23710
+ *
23711
+ * @export
23712
+ * @interface UnpairDisplayResponseDto
23713
+ */
23714
+ export interface UnpairDisplayResponseDto {
23715
+ /**
23716
+ * True once the binding is cleared (or already gone).
23717
+ * @type {boolean}
23718
+ * @memberof UnpairDisplayResponseDto
23719
+ */
23720
+ 'success': boolean;
23721
+ }
23679
23722
  /**
23680
23723
  *
23681
23724
  * @export
@@ -30259,6 +30302,14 @@ export declare const DisplayApiAxiosParamCreator: (configuration?: Configuration
30259
30302
  * @throws {RequiredError}
30260
30303
  */
30261
30304
  sessionToken: (requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30305
+ /**
30306
+ *
30307
+ * @summary Tear down the display/POS binding; callable by either paired side (idempotent).
30308
+ * @param {UnpairDisplayBodyDto} unpairDisplayBodyDto
30309
+ * @param {*} [options] Override http request option.
30310
+ * @throws {RequiredError}
30311
+ */
30312
+ unpair: (unpairDisplayBodyDto: UnpairDisplayBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30262
30313
  };
30263
30314
  /**
30264
30315
  * DisplayApi - functional programming interface
@@ -30289,6 +30340,14 @@ export declare const DisplayApiFp: (configuration?: Configuration) => {
30289
30340
  * @throws {RequiredError}
30290
30341
  */
30291
30342
  sessionToken(requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestSessionTokenResponseDto>>;
30343
+ /**
30344
+ *
30345
+ * @summary Tear down the display/POS binding; callable by either paired side (idempotent).
30346
+ * @param {UnpairDisplayBodyDto} unpairDisplayBodyDto
30347
+ * @param {*} [options] Override http request option.
30348
+ * @throws {RequiredError}
30349
+ */
30350
+ unpair(unpairDisplayBodyDto: UnpairDisplayBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnpairDisplayResponseDto>>;
30292
30351
  };
30293
30352
  /**
30294
30353
  * DisplayApi - factory interface
@@ -30319,6 +30378,14 @@ export declare const DisplayApiFactory: (configuration?: Configuration, basePath
30319
30378
  * @throws {RequiredError}
30320
30379
  */
30321
30380
  sessionToken(requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: any): AxiosPromise<RequestSessionTokenResponseDto>;
30381
+ /**
30382
+ *
30383
+ * @summary Tear down the display/POS binding; callable by either paired side (idempotent).
30384
+ * @param {UnpairDisplayBodyDto} unpairDisplayBodyDto
30385
+ * @param {*} [options] Override http request option.
30386
+ * @throws {RequiredError}
30387
+ */
30388
+ unpair(unpairDisplayBodyDto: UnpairDisplayBodyDto, options?: any): AxiosPromise<UnpairDisplayResponseDto>;
30322
30389
  };
30323
30390
  /**
30324
30391
  * DisplayApi - interface
@@ -30353,6 +30420,15 @@ export interface DisplayApiInterface {
30353
30420
  * @memberof DisplayApiInterface
30354
30421
  */
30355
30422
  sessionToken(requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: AxiosRequestConfig): AxiosPromise<RequestSessionTokenResponseDto>;
30423
+ /**
30424
+ *
30425
+ * @summary Tear down the display/POS binding; callable by either paired side (idempotent).
30426
+ * @param {UnpairDisplayBodyDto} unpairDisplayBodyDto
30427
+ * @param {*} [options] Override http request option.
30428
+ * @throws {RequiredError}
30429
+ * @memberof DisplayApiInterface
30430
+ */
30431
+ unpair(unpairDisplayBodyDto: UnpairDisplayBodyDto, options?: AxiosRequestConfig): AxiosPromise<UnpairDisplayResponseDto>;
30356
30432
  }
30357
30433
  /**
30358
30434
  * DisplayApi - object-oriented interface
@@ -30388,6 +30464,15 @@ export declare class DisplayApi extends BaseAPI implements DisplayApiInterface {
30388
30464
  * @memberof DisplayApi
30389
30465
  */
30390
30466
  sessionToken(requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestSessionTokenResponseDto, any, {}>>;
30467
+ /**
30468
+ *
30469
+ * @summary Tear down the display/POS binding; callable by either paired side (idempotent).
30470
+ * @param {UnpairDisplayBodyDto} unpairDisplayBodyDto
30471
+ * @param {*} [options] Override http request option.
30472
+ * @throws {RequiredError}
30473
+ * @memberof DisplayApi
30474
+ */
30475
+ unpair(unpairDisplayBodyDto: UnpairDisplayBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnpairDisplayResponseDto, any, {}>>;
30391
30476
  }
30392
30477
  /**
30393
30478
  * EmployeesApi - axios parameter creator
@@ -40289,11 +40374,10 @@ export declare const VivaApiAxiosParamCreator: (configuration?: Configuration) =
40289
40374
  * @param {TimeSpan} [timeSpan] Time span. Day/Week/Month/Year are computed server-side (UTC).
40290
40375
  * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
40291
40376
  * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
40292
- * @param {string} [search] Free-text search, matched against the provider transaction ID and the card\&#39;s last 4 digits.
40293
40377
  * @param {*} [options] Override http request option.
40294
40378
  * @throws {RequiredError}
40295
40379
  */
40296
- listVivaSessions: (businessId: number, page?: number, rowPerPage?: number, terminalId?: string, timeSpan?: TimeSpan, start?: string, end?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40380
+ listVivaSessions: (businessId: number, page?: number, rowPerPage?: number, terminalId?: string, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40297
40381
  /**
40298
40382
  *
40299
40383
  * @summary Refund a Viva transaction
@@ -40334,11 +40418,10 @@ export declare const VivaApiFp: (configuration?: Configuration) => {
40334
40418
  * @param {TimeSpan} [timeSpan] Time span. Day/Week/Month/Year are computed server-side (UTC).
40335
40419
  * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
40336
40420
  * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
40337
- * @param {string} [search] Free-text search, matched against the provider transaction ID and the card\&#39;s last 4 digits.
40338
40421
  * @param {*} [options] Override http request option.
40339
40422
  * @throws {RequiredError}
40340
40423
  */
40341
- listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, timeSpan?: TimeSpan, start?: string, end?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VivaA2aSessionListResponseDto>>;
40424
+ listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VivaA2aSessionListResponseDto>>;
40342
40425
  /**
40343
40426
  *
40344
40427
  * @summary Refund a Viva transaction
@@ -40379,11 +40462,10 @@ export declare const VivaApiFactory: (configuration?: Configuration, basePath?:
40379
40462
  * @param {TimeSpan} [timeSpan] Time span. Day/Week/Month/Year are computed server-side (UTC).
40380
40463
  * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
40381
40464
  * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
40382
- * @param {string} [search] Free-text search, matched against the provider transaction ID and the card\&#39;s last 4 digits.
40383
40465
  * @param {*} [options] Override http request option.
40384
40466
  * @throws {RequiredError}
40385
40467
  */
40386
- listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, timeSpan?: TimeSpan, start?: string, end?: string, search?: string, options?: any): AxiosPromise<VivaA2aSessionListResponseDto>;
40468
+ listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, timeSpan?: TimeSpan, start?: string, end?: string, options?: any): AxiosPromise<VivaA2aSessionListResponseDto>;
40387
40469
  /**
40388
40470
  *
40389
40471
  * @summary Refund a Viva transaction
@@ -40427,12 +40509,11 @@ export interface VivaApiInterface {
40427
40509
  * @param {TimeSpan} [timeSpan] Time span. Day/Week/Month/Year are computed server-side (UTC).
40428
40510
  * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
40429
40511
  * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
40430
- * @param {string} [search] Free-text search, matched against the provider transaction ID and the card\&#39;s last 4 digits.
40431
40512
  * @param {*} [options] Override http request option.
40432
40513
  * @throws {RequiredError}
40433
40514
  * @memberof VivaApiInterface
40434
40515
  */
40435
- listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, timeSpan?: TimeSpan, start?: string, end?: string, search?: string, options?: AxiosRequestConfig): AxiosPromise<VivaA2aSessionListResponseDto>;
40516
+ listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): AxiosPromise<VivaA2aSessionListResponseDto>;
40436
40517
  /**
40437
40518
  *
40438
40519
  * @summary Refund a Viva transaction
@@ -40478,12 +40559,11 @@ export declare class VivaApi extends BaseAPI implements VivaApiInterface {
40478
40559
  * @param {TimeSpan} [timeSpan] Time span. Day/Week/Month/Year are computed server-side (UTC).
40479
40560
  * @param {string} [start] Start date (ISO 8601). Required when timeSpan is CUSTOM.
40480
40561
  * @param {string} [end] End date (ISO 8601). Required when timeSpan is CUSTOM.
40481
- * @param {string} [search] Free-text search, matched against the provider transaction ID and the card\&#39;s last 4 digits.
40482
40562
  * @param {*} [options] Override http request option.
40483
40563
  * @throws {RequiredError}
40484
40564
  * @memberof VivaApi
40485
40565
  */
40486
- listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, timeSpan?: TimeSpan, start?: string, end?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VivaA2aSessionListResponseDto, any, {}>>;
40566
+ listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VivaA2aSessionListResponseDto, any, {}>>;
40487
40567
  /**
40488
40568
  *
40489
40569
  * @summary Refund a Viva transaction