@munchi_oy/core 1.9.76 → 1.9.77

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.
@@ -5009,6 +5009,62 @@ export interface DiscoverTerminalDto {
5009
5009
  */
5010
5010
  'provider': PaymentProvider;
5011
5011
  }
5012
+ /**
5013
+ *
5014
+ * @export
5015
+ * @interface DisplayInitBodyDto
5016
+ */
5017
+ export interface DisplayInitBodyDto {
5018
+ /**
5019
+ * Optional human-readable label for the display device.
5020
+ * @type {string}
5021
+ * @memberof DisplayInitBodyDto
5022
+ */
5023
+ 'displayName'?: string | null;
5024
+ }
5025
+ /**
5026
+ *
5027
+ * @export
5028
+ * @interface DisplayInitResponseDto
5029
+ */
5030
+ export interface DisplayInitResponseDto {
5031
+ /**
5032
+ * Server-issued display identity.
5033
+ * @type {string}
5034
+ * @memberof DisplayInitResponseDto
5035
+ */
5036
+ 'displayId': string;
5037
+ /**
5038
+ * Short pairing code shown on the display.
5039
+ * @type {string}
5040
+ * @memberof DisplayInitResponseDto
5041
+ */
5042
+ 'code': string;
5043
+ /**
5044
+ * One-time nonce carried in the pairing QR.
5045
+ * @type {string}
5046
+ * @memberof DisplayInitResponseDto
5047
+ */
5048
+ 'nonce': string;
5049
+ /**
5050
+ * Ably channel the display subscribes to for the ack.
5051
+ * @type {string}
5052
+ * @memberof DisplayInitResponseDto
5053
+ */
5054
+ 'pairingChannel': string;
5055
+ /**
5056
+ * Epoch ms when the code/nonce expires.
5057
+ * @type {number}
5058
+ * @memberof DisplayInitResponseDto
5059
+ */
5060
+ 'expiresAt': number;
5061
+ /**
5062
+ * Ably TokenRequest scoped to the pairing channel.
5063
+ * @type {object}
5064
+ * @memberof DisplayInitResponseDto
5065
+ */
5066
+ 'ablyTokenRequest': object;
5067
+ }
5012
5068
  /**
5013
5069
  *
5014
5070
  * @export
@@ -12223,6 +12279,68 @@ export interface PaginationDto {
12223
12279
  */
12224
12280
  'totalPages': number;
12225
12281
  }
12282
+ /**
12283
+ *
12284
+ * @export
12285
+ * @interface PairDisplayBodyDto
12286
+ */
12287
+ export interface PairDisplayBodyDto {
12288
+ /**
12289
+ * Stable POS device identifier.
12290
+ * @type {string}
12291
+ * @memberof PairDisplayBodyDto
12292
+ */
12293
+ 'posDeviceId': string;
12294
+ /**
12295
+ * Pairing code entered on the POS.
12296
+ * @type {string}
12297
+ * @memberof PairDisplayBodyDto
12298
+ */
12299
+ 'code'?: string;
12300
+ /**
12301
+ * Display id (QR path, with nonce).
12302
+ * @type {string}
12303
+ * @memberof PairDisplayBodyDto
12304
+ */
12305
+ 'displayId'?: string;
12306
+ /**
12307
+ * One-time nonce (QR path).
12308
+ * @type {string}
12309
+ * @memberof PairDisplayBodyDto
12310
+ */
12311
+ 'nonce'?: string;
12312
+ /**
12313
+ * Business to pair to; must be in the caller\'s scope.
12314
+ * @type {number}
12315
+ * @memberof PairDisplayBodyDto
12316
+ */
12317
+ 'businessId'?: number;
12318
+ }
12319
+ /**
12320
+ *
12321
+ * @export
12322
+ * @interface PairDisplayResponseDto
12323
+ */
12324
+ export interface PairDisplayResponseDto {
12325
+ /**
12326
+ *
12327
+ * @type {string}
12328
+ * @memberof PairDisplayResponseDto
12329
+ */
12330
+ 'sessionId': string;
12331
+ /**
12332
+ *
12333
+ * @type {string}
12334
+ * @memberof PairDisplayResponseDto
12335
+ */
12336
+ 'sessionChannel': string;
12337
+ /**
12338
+ *
12339
+ * @type {string}
12340
+ * @memberof PairDisplayResponseDto
12341
+ */
12342
+ 'displayId': string;
12343
+ }
12226
12344
  /**
12227
12345
  *
12228
12346
  * @export
@@ -18424,6 +18542,55 @@ export interface ReportingCategoryDto {
18424
18542
  */
18425
18543
  'updated_at': string;
18426
18544
  }
18545
+ /**
18546
+ *
18547
+ * @export
18548
+ * @interface RequestSessionTokenBodyDto
18549
+ */
18550
+ export interface RequestSessionTokenBodyDto {
18551
+ /**
18552
+ *
18553
+ * @type {string}
18554
+ * @memberof RequestSessionTokenBodyDto
18555
+ */
18556
+ 'sessionId': string;
18557
+ /**
18558
+ * Which device is requesting the token.
18559
+ * @type {string}
18560
+ * @memberof RequestSessionTokenBodyDto
18561
+ */
18562
+ 'role': RoleEnum;
18563
+ /**
18564
+ * Requesting device id (posDeviceId or displayId).
18565
+ * @type {string}
18566
+ * @memberof RequestSessionTokenBodyDto
18567
+ */
18568
+ 'deviceId': string;
18569
+ }
18570
+ export declare const RoleEnum: {
18571
+ readonly Pos: "pos";
18572
+ readonly Display: "display";
18573
+ };
18574
+ export type RoleEnum = typeof RoleEnum[keyof typeof RoleEnum];
18575
+ /**
18576
+ *
18577
+ * @export
18578
+ * @interface RequestSessionTokenResponseDto
18579
+ */
18580
+ export interface RequestSessionTokenResponseDto {
18581
+ /**
18582
+ * Ably TokenRequest scoped to the session channel.
18583
+ * @type {object}
18584
+ * @memberof RequestSessionTokenResponseDto
18585
+ */
18586
+ 'ablyTokenRequest': object;
18587
+ /**
18588
+ *
18589
+ * @type {string}
18590
+ * @memberof RequestSessionTokenResponseDto
18591
+ */
18592
+ 'sessionChannel': string;
18593
+ }
18427
18594
  /**
18428
18595
  *
18429
18596
  * @export
@@ -28304,6 +28471,165 @@ export declare class CoursesApi extends BaseAPI implements CoursesApiInterface {
28304
28471
  */
28305
28472
  getCourses(businessId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CourseDto[], any, {}>>;
28306
28473
  }
28474
+ /**
28475
+ * DisplayApi - axios parameter creator
28476
+ * @export
28477
+ */
28478
+ export declare const DisplayApiAxiosParamCreator: (configuration?: Configuration) => {
28479
+ /**
28480
+ *
28481
+ * @summary Register a customer display and mint a pairing token + code.
28482
+ * @param {DisplayInitBodyDto} [displayInitBodyDto]
28483
+ * @param {*} [options] Override http request option.
28484
+ * @throws {RequiredError}
28485
+ */
28486
+ init: (displayInitBodyDto?: DisplayInitBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28487
+ /**
28488
+ *
28489
+ * @summary Pair a display with the POS using its code or QR nonce.
28490
+ * @param {PairDisplayBodyDto} pairDisplayBodyDto
28491
+ * @param {*} [options] Override http request option.
28492
+ * @throws {RequiredError}
28493
+ */
28494
+ pair: (pairDisplayBodyDto: PairDisplayBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28495
+ /**
28496
+ *
28497
+ * @summary Mint a session-channel Ably token scoped to the device role.
28498
+ * @param {RequestSessionTokenBodyDto} requestSessionTokenBodyDto
28499
+ * @param {*} [options] Override http request option.
28500
+ * @throws {RequiredError}
28501
+ */
28502
+ sessionToken: (requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28503
+ };
28504
+ /**
28505
+ * DisplayApi - functional programming interface
28506
+ * @export
28507
+ */
28508
+ export declare const DisplayApiFp: (configuration?: Configuration) => {
28509
+ /**
28510
+ *
28511
+ * @summary Register a customer display and mint a pairing token + code.
28512
+ * @param {DisplayInitBodyDto} [displayInitBodyDto]
28513
+ * @param {*} [options] Override http request option.
28514
+ * @throws {RequiredError}
28515
+ */
28516
+ init(displayInitBodyDto?: DisplayInitBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisplayInitResponseDto>>;
28517
+ /**
28518
+ *
28519
+ * @summary Pair a display with the POS using its code or QR nonce.
28520
+ * @param {PairDisplayBodyDto} pairDisplayBodyDto
28521
+ * @param {*} [options] Override http request option.
28522
+ * @throws {RequiredError}
28523
+ */
28524
+ pair(pairDisplayBodyDto: PairDisplayBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PairDisplayResponseDto>>;
28525
+ /**
28526
+ *
28527
+ * @summary Mint a session-channel Ably token scoped to the device role.
28528
+ * @param {RequestSessionTokenBodyDto} requestSessionTokenBodyDto
28529
+ * @param {*} [options] Override http request option.
28530
+ * @throws {RequiredError}
28531
+ */
28532
+ sessionToken(requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestSessionTokenResponseDto>>;
28533
+ };
28534
+ /**
28535
+ * DisplayApi - factory interface
28536
+ * @export
28537
+ */
28538
+ export declare const DisplayApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
28539
+ /**
28540
+ *
28541
+ * @summary Register a customer display and mint a pairing token + code.
28542
+ * @param {DisplayInitBodyDto} [displayInitBodyDto]
28543
+ * @param {*} [options] Override http request option.
28544
+ * @throws {RequiredError}
28545
+ */
28546
+ init(displayInitBodyDto?: DisplayInitBodyDto, options?: any): AxiosPromise<DisplayInitResponseDto>;
28547
+ /**
28548
+ *
28549
+ * @summary Pair a display with the POS using its code or QR nonce.
28550
+ * @param {PairDisplayBodyDto} pairDisplayBodyDto
28551
+ * @param {*} [options] Override http request option.
28552
+ * @throws {RequiredError}
28553
+ */
28554
+ pair(pairDisplayBodyDto: PairDisplayBodyDto, options?: any): AxiosPromise<PairDisplayResponseDto>;
28555
+ /**
28556
+ *
28557
+ * @summary Mint a session-channel Ably token scoped to the device role.
28558
+ * @param {RequestSessionTokenBodyDto} requestSessionTokenBodyDto
28559
+ * @param {*} [options] Override http request option.
28560
+ * @throws {RequiredError}
28561
+ */
28562
+ sessionToken(requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: any): AxiosPromise<RequestSessionTokenResponseDto>;
28563
+ };
28564
+ /**
28565
+ * DisplayApi - interface
28566
+ * @export
28567
+ * @interface DisplayApi
28568
+ */
28569
+ export interface DisplayApiInterface {
28570
+ /**
28571
+ *
28572
+ * @summary Register a customer display and mint a pairing token + code.
28573
+ * @param {DisplayInitBodyDto} [displayInitBodyDto]
28574
+ * @param {*} [options] Override http request option.
28575
+ * @throws {RequiredError}
28576
+ * @memberof DisplayApiInterface
28577
+ */
28578
+ init(displayInitBodyDto?: DisplayInitBodyDto, options?: AxiosRequestConfig): AxiosPromise<DisplayInitResponseDto>;
28579
+ /**
28580
+ *
28581
+ * @summary Pair a display with the POS using its code or QR nonce.
28582
+ * @param {PairDisplayBodyDto} pairDisplayBodyDto
28583
+ * @param {*} [options] Override http request option.
28584
+ * @throws {RequiredError}
28585
+ * @memberof DisplayApiInterface
28586
+ */
28587
+ pair(pairDisplayBodyDto: PairDisplayBodyDto, options?: AxiosRequestConfig): AxiosPromise<PairDisplayResponseDto>;
28588
+ /**
28589
+ *
28590
+ * @summary Mint a session-channel Ably token scoped to the device role.
28591
+ * @param {RequestSessionTokenBodyDto} requestSessionTokenBodyDto
28592
+ * @param {*} [options] Override http request option.
28593
+ * @throws {RequiredError}
28594
+ * @memberof DisplayApiInterface
28595
+ */
28596
+ sessionToken(requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: AxiosRequestConfig): AxiosPromise<RequestSessionTokenResponseDto>;
28597
+ }
28598
+ /**
28599
+ * DisplayApi - object-oriented interface
28600
+ * @export
28601
+ * @class DisplayApi
28602
+ * @extends {BaseAPI}
28603
+ */
28604
+ export declare class DisplayApi extends BaseAPI implements DisplayApiInterface {
28605
+ /**
28606
+ *
28607
+ * @summary Register a customer display and mint a pairing token + code.
28608
+ * @param {DisplayInitBodyDto} [displayInitBodyDto]
28609
+ * @param {*} [options] Override http request option.
28610
+ * @throws {RequiredError}
28611
+ * @memberof DisplayApi
28612
+ */
28613
+ init(displayInitBodyDto?: DisplayInitBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DisplayInitResponseDto, any, {}>>;
28614
+ /**
28615
+ *
28616
+ * @summary Pair a display with the POS using its code or QR nonce.
28617
+ * @param {PairDisplayBodyDto} pairDisplayBodyDto
28618
+ * @param {*} [options] Override http request option.
28619
+ * @throws {RequiredError}
28620
+ * @memberof DisplayApi
28621
+ */
28622
+ pair(pairDisplayBodyDto: PairDisplayBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PairDisplayResponseDto, any, {}>>;
28623
+ /**
28624
+ *
28625
+ * @summary Mint a session-channel Ably token scoped to the device role.
28626
+ * @param {RequestSessionTokenBodyDto} requestSessionTokenBodyDto
28627
+ * @param {*} [options] Override http request option.
28628
+ * @throws {RequiredError}
28629
+ * @memberof DisplayApi
28630
+ */
28631
+ sessionToken(requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestSessionTokenResponseDto, any, {}>>;
28632
+ }
28307
28633
  /**
28308
28634
  * EmployeesApi - axios parameter creator
28309
28635
  * @export