@munchi_oy/core 1.9.76 → 1.9.78

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.
@@ -927,6 +927,12 @@ export interface BusinessInfoResponseDto {
927
927
  * @memberof BusinessInfoResponseDto
928
928
  */
929
929
  'logoUrl': string | null;
930
+ /**
931
+ * The URL of the business banner
932
+ * @type {string}
933
+ * @memberof BusinessInfoResponseDto
934
+ */
935
+ 'bannerUrl': string | null;
930
936
  /**
931
937
  * The phone of the business
932
938
  * @type {string}
@@ -1074,6 +1080,12 @@ export interface BusinessInfoV2ResponseDto {
1074
1080
  * @memberof BusinessInfoV2ResponseDto
1075
1081
  */
1076
1082
  'logoUrl': string | null;
1083
+ /**
1084
+ * The URL of the business banner
1085
+ * @type {string}
1086
+ * @memberof BusinessInfoV2ResponseDto
1087
+ */
1088
+ 'bannerUrl': string | null;
1077
1089
  /**
1078
1090
  * The phone of the business
1079
1091
  * @type {string}
@@ -5009,6 +5021,62 @@ export interface DiscoverTerminalDto {
5009
5021
  */
5010
5022
  'provider': PaymentProvider;
5011
5023
  }
5024
+ /**
5025
+ *
5026
+ * @export
5027
+ * @interface DisplayInitBodyDto
5028
+ */
5029
+ export interface DisplayInitBodyDto {
5030
+ /**
5031
+ * Optional human-readable label for the display device.
5032
+ * @type {string}
5033
+ * @memberof DisplayInitBodyDto
5034
+ */
5035
+ 'displayName'?: string | null;
5036
+ }
5037
+ /**
5038
+ *
5039
+ * @export
5040
+ * @interface DisplayInitResponseDto
5041
+ */
5042
+ export interface DisplayInitResponseDto {
5043
+ /**
5044
+ * Server-issued display identity.
5045
+ * @type {string}
5046
+ * @memberof DisplayInitResponseDto
5047
+ */
5048
+ 'displayId': string;
5049
+ /**
5050
+ * Short pairing code shown on the display.
5051
+ * @type {string}
5052
+ * @memberof DisplayInitResponseDto
5053
+ */
5054
+ 'code': string;
5055
+ /**
5056
+ * One-time nonce carried in the pairing QR.
5057
+ * @type {string}
5058
+ * @memberof DisplayInitResponseDto
5059
+ */
5060
+ 'nonce': string;
5061
+ /**
5062
+ * Ably channel the display subscribes to for the ack.
5063
+ * @type {string}
5064
+ * @memberof DisplayInitResponseDto
5065
+ */
5066
+ 'pairingChannel': string;
5067
+ /**
5068
+ * Epoch ms when the code/nonce expires.
5069
+ * @type {number}
5070
+ * @memberof DisplayInitResponseDto
5071
+ */
5072
+ 'expiresAt': number;
5073
+ /**
5074
+ * Ably TokenRequest scoped to the pairing channel.
5075
+ * @type {object}
5076
+ * @memberof DisplayInitResponseDto
5077
+ */
5078
+ 'ablyTokenRequest': object;
5079
+ }
5012
5080
  /**
5013
5081
  *
5014
5082
  * @export
@@ -12223,6 +12291,68 @@ export interface PaginationDto {
12223
12291
  */
12224
12292
  'totalPages': number;
12225
12293
  }
12294
+ /**
12295
+ *
12296
+ * @export
12297
+ * @interface PairDisplayBodyDto
12298
+ */
12299
+ export interface PairDisplayBodyDto {
12300
+ /**
12301
+ * Stable POS device identifier.
12302
+ * @type {string}
12303
+ * @memberof PairDisplayBodyDto
12304
+ */
12305
+ 'posDeviceId': string;
12306
+ /**
12307
+ * Pairing code entered on the POS.
12308
+ * @type {string}
12309
+ * @memberof PairDisplayBodyDto
12310
+ */
12311
+ 'code'?: string;
12312
+ /**
12313
+ * Display id (QR path, with nonce).
12314
+ * @type {string}
12315
+ * @memberof PairDisplayBodyDto
12316
+ */
12317
+ 'displayId'?: string;
12318
+ /**
12319
+ * One-time nonce (QR path).
12320
+ * @type {string}
12321
+ * @memberof PairDisplayBodyDto
12322
+ */
12323
+ 'nonce'?: string;
12324
+ /**
12325
+ * Business to pair to; must be in the caller\'s scope.
12326
+ * @type {number}
12327
+ * @memberof PairDisplayBodyDto
12328
+ */
12329
+ 'businessId'?: number;
12330
+ }
12331
+ /**
12332
+ *
12333
+ * @export
12334
+ * @interface PairDisplayResponseDto
12335
+ */
12336
+ export interface PairDisplayResponseDto {
12337
+ /**
12338
+ *
12339
+ * @type {string}
12340
+ * @memberof PairDisplayResponseDto
12341
+ */
12342
+ 'sessionId': string;
12343
+ /**
12344
+ *
12345
+ * @type {string}
12346
+ * @memberof PairDisplayResponseDto
12347
+ */
12348
+ 'sessionChannel': string;
12349
+ /**
12350
+ *
12351
+ * @type {string}
12352
+ * @memberof PairDisplayResponseDto
12353
+ */
12354
+ 'displayId': string;
12355
+ }
12226
12356
  /**
12227
12357
  *
12228
12358
  * @export
@@ -18424,6 +18554,55 @@ export interface ReportingCategoryDto {
18424
18554
  */
18425
18555
  'updated_at': string;
18426
18556
  }
18557
+ /**
18558
+ *
18559
+ * @export
18560
+ * @interface RequestSessionTokenBodyDto
18561
+ */
18562
+ export interface RequestSessionTokenBodyDto {
18563
+ /**
18564
+ *
18565
+ * @type {string}
18566
+ * @memberof RequestSessionTokenBodyDto
18567
+ */
18568
+ 'sessionId': string;
18569
+ /**
18570
+ * Which device is requesting the token.
18571
+ * @type {string}
18572
+ * @memberof RequestSessionTokenBodyDto
18573
+ */
18574
+ 'role': RoleEnum;
18575
+ /**
18576
+ * Requesting device id (posDeviceId or displayId).
18577
+ * @type {string}
18578
+ * @memberof RequestSessionTokenBodyDto
18579
+ */
18580
+ 'deviceId': string;
18581
+ }
18582
+ export declare const RoleEnum: {
18583
+ readonly Pos: "pos";
18584
+ readonly Display: "display";
18585
+ };
18586
+ export type RoleEnum = typeof RoleEnum[keyof typeof RoleEnum];
18587
+ /**
18588
+ *
18589
+ * @export
18590
+ * @interface RequestSessionTokenResponseDto
18591
+ */
18592
+ export interface RequestSessionTokenResponseDto {
18593
+ /**
18594
+ * Ably TokenRequest scoped to the session channel.
18595
+ * @type {object}
18596
+ * @memberof RequestSessionTokenResponseDto
18597
+ */
18598
+ 'ablyTokenRequest': object;
18599
+ /**
18600
+ *
18601
+ * @type {string}
18602
+ * @memberof RequestSessionTokenResponseDto
18603
+ */
18604
+ 'sessionChannel': string;
18605
+ }
18427
18606
  /**
18428
18607
  *
18429
18608
  * @export
@@ -28304,6 +28483,165 @@ export declare class CoursesApi extends BaseAPI implements CoursesApiInterface {
28304
28483
  */
28305
28484
  getCourses(businessId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CourseDto[], any, {}>>;
28306
28485
  }
28486
+ /**
28487
+ * DisplayApi - axios parameter creator
28488
+ * @export
28489
+ */
28490
+ export declare const DisplayApiAxiosParamCreator: (configuration?: Configuration) => {
28491
+ /**
28492
+ *
28493
+ * @summary Register a customer display and mint a pairing token + code.
28494
+ * @param {DisplayInitBodyDto} [displayInitBodyDto]
28495
+ * @param {*} [options] Override http request option.
28496
+ * @throws {RequiredError}
28497
+ */
28498
+ init: (displayInitBodyDto?: DisplayInitBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28499
+ /**
28500
+ *
28501
+ * @summary Pair a display with the POS using its code or QR nonce.
28502
+ * @param {PairDisplayBodyDto} pairDisplayBodyDto
28503
+ * @param {*} [options] Override http request option.
28504
+ * @throws {RequiredError}
28505
+ */
28506
+ pair: (pairDisplayBodyDto: PairDisplayBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28507
+ /**
28508
+ *
28509
+ * @summary Mint a session-channel Ably token scoped to the device role.
28510
+ * @param {RequestSessionTokenBodyDto} requestSessionTokenBodyDto
28511
+ * @param {*} [options] Override http request option.
28512
+ * @throws {RequiredError}
28513
+ */
28514
+ sessionToken: (requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28515
+ };
28516
+ /**
28517
+ * DisplayApi - functional programming interface
28518
+ * @export
28519
+ */
28520
+ export declare const DisplayApiFp: (configuration?: Configuration) => {
28521
+ /**
28522
+ *
28523
+ * @summary Register a customer display and mint a pairing token + code.
28524
+ * @param {DisplayInitBodyDto} [displayInitBodyDto]
28525
+ * @param {*} [options] Override http request option.
28526
+ * @throws {RequiredError}
28527
+ */
28528
+ init(displayInitBodyDto?: DisplayInitBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisplayInitResponseDto>>;
28529
+ /**
28530
+ *
28531
+ * @summary Pair a display with the POS using its code or QR nonce.
28532
+ * @param {PairDisplayBodyDto} pairDisplayBodyDto
28533
+ * @param {*} [options] Override http request option.
28534
+ * @throws {RequiredError}
28535
+ */
28536
+ pair(pairDisplayBodyDto: PairDisplayBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PairDisplayResponseDto>>;
28537
+ /**
28538
+ *
28539
+ * @summary Mint a session-channel Ably token scoped to the device role.
28540
+ * @param {RequestSessionTokenBodyDto} requestSessionTokenBodyDto
28541
+ * @param {*} [options] Override http request option.
28542
+ * @throws {RequiredError}
28543
+ */
28544
+ sessionToken(requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestSessionTokenResponseDto>>;
28545
+ };
28546
+ /**
28547
+ * DisplayApi - factory interface
28548
+ * @export
28549
+ */
28550
+ export declare const DisplayApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
28551
+ /**
28552
+ *
28553
+ * @summary Register a customer display and mint a pairing token + code.
28554
+ * @param {DisplayInitBodyDto} [displayInitBodyDto]
28555
+ * @param {*} [options] Override http request option.
28556
+ * @throws {RequiredError}
28557
+ */
28558
+ init(displayInitBodyDto?: DisplayInitBodyDto, options?: any): AxiosPromise<DisplayInitResponseDto>;
28559
+ /**
28560
+ *
28561
+ * @summary Pair a display with the POS using its code or QR nonce.
28562
+ * @param {PairDisplayBodyDto} pairDisplayBodyDto
28563
+ * @param {*} [options] Override http request option.
28564
+ * @throws {RequiredError}
28565
+ */
28566
+ pair(pairDisplayBodyDto: PairDisplayBodyDto, options?: any): AxiosPromise<PairDisplayResponseDto>;
28567
+ /**
28568
+ *
28569
+ * @summary Mint a session-channel Ably token scoped to the device role.
28570
+ * @param {RequestSessionTokenBodyDto} requestSessionTokenBodyDto
28571
+ * @param {*} [options] Override http request option.
28572
+ * @throws {RequiredError}
28573
+ */
28574
+ sessionToken(requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: any): AxiosPromise<RequestSessionTokenResponseDto>;
28575
+ };
28576
+ /**
28577
+ * DisplayApi - interface
28578
+ * @export
28579
+ * @interface DisplayApi
28580
+ */
28581
+ export interface DisplayApiInterface {
28582
+ /**
28583
+ *
28584
+ * @summary Register a customer display and mint a pairing token + code.
28585
+ * @param {DisplayInitBodyDto} [displayInitBodyDto]
28586
+ * @param {*} [options] Override http request option.
28587
+ * @throws {RequiredError}
28588
+ * @memberof DisplayApiInterface
28589
+ */
28590
+ init(displayInitBodyDto?: DisplayInitBodyDto, options?: AxiosRequestConfig): AxiosPromise<DisplayInitResponseDto>;
28591
+ /**
28592
+ *
28593
+ * @summary Pair a display with the POS using its code or QR nonce.
28594
+ * @param {PairDisplayBodyDto} pairDisplayBodyDto
28595
+ * @param {*} [options] Override http request option.
28596
+ * @throws {RequiredError}
28597
+ * @memberof DisplayApiInterface
28598
+ */
28599
+ pair(pairDisplayBodyDto: PairDisplayBodyDto, options?: AxiosRequestConfig): AxiosPromise<PairDisplayResponseDto>;
28600
+ /**
28601
+ *
28602
+ * @summary Mint a session-channel Ably token scoped to the device role.
28603
+ * @param {RequestSessionTokenBodyDto} requestSessionTokenBodyDto
28604
+ * @param {*} [options] Override http request option.
28605
+ * @throws {RequiredError}
28606
+ * @memberof DisplayApiInterface
28607
+ */
28608
+ sessionToken(requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: AxiosRequestConfig): AxiosPromise<RequestSessionTokenResponseDto>;
28609
+ }
28610
+ /**
28611
+ * DisplayApi - object-oriented interface
28612
+ * @export
28613
+ * @class DisplayApi
28614
+ * @extends {BaseAPI}
28615
+ */
28616
+ export declare class DisplayApi extends BaseAPI implements DisplayApiInterface {
28617
+ /**
28618
+ *
28619
+ * @summary Register a customer display and mint a pairing token + code.
28620
+ * @param {DisplayInitBodyDto} [displayInitBodyDto]
28621
+ * @param {*} [options] Override http request option.
28622
+ * @throws {RequiredError}
28623
+ * @memberof DisplayApi
28624
+ */
28625
+ init(displayInitBodyDto?: DisplayInitBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DisplayInitResponseDto, any, {}>>;
28626
+ /**
28627
+ *
28628
+ * @summary Pair a display with the POS using its code or QR nonce.
28629
+ * @param {PairDisplayBodyDto} pairDisplayBodyDto
28630
+ * @param {*} [options] Override http request option.
28631
+ * @throws {RequiredError}
28632
+ * @memberof DisplayApi
28633
+ */
28634
+ pair(pairDisplayBodyDto: PairDisplayBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PairDisplayResponseDto, any, {}>>;
28635
+ /**
28636
+ *
28637
+ * @summary Mint a session-channel Ably token scoped to the device role.
28638
+ * @param {RequestSessionTokenBodyDto} requestSessionTokenBodyDto
28639
+ * @param {*} [options] Override http request option.
28640
+ * @throws {RequiredError}
28641
+ * @memberof DisplayApi
28642
+ */
28643
+ sessionToken(requestSessionTokenBodyDto: RequestSessionTokenBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestSessionTokenResponseDto, any, {}>>;
28644
+ }
28307
28645
  /**
28308
28646
  * EmployeesApi - axios parameter creator
28309
28647
  * @export