@munchi_oy/core 1.6.0 → 1.7.2

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.
@@ -921,6 +921,61 @@ export interface BusinessInfoResponseDtoLoyaltyPlan {
921
921
  */
922
922
  'expire_after_minutes': number | null;
923
923
  }
924
+ /**
925
+ *
926
+ * @export
927
+ * @interface BusinessInfoV2ResponseDto
928
+ */
929
+ export interface BusinessInfoV2ResponseDto {
930
+ /**
931
+ * The ID of the business
932
+ * @type {number}
933
+ * @memberof BusinessInfoV2ResponseDto
934
+ */
935
+ 'businessId': number;
936
+ /**
937
+ * The name of the business
938
+ * @type {string}
939
+ * @memberof BusinessInfoV2ResponseDto
940
+ */
941
+ 'businessName': string;
942
+ /**
943
+ * The URL of the business logo
944
+ * @type {string}
945
+ * @memberof BusinessInfoV2ResponseDto
946
+ */
947
+ 'logoUrl': string | null;
948
+ /**
949
+ * The phone of the business
950
+ * @type {string}
951
+ * @memberof BusinessInfoV2ResponseDto
952
+ */
953
+ 'phone'?: string | null;
954
+ /**
955
+ *
956
+ * @type {BusinessInfoResponseDtoLoyaltyPlan}
957
+ * @memberof BusinessInfoV2ResponseDto
958
+ */
959
+ 'loyaltyPlan': BusinessInfoResponseDtoLoyaltyPlan | null;
960
+ /**
961
+ *
962
+ * @type {BusinessInfoResponseDtoDetail}
963
+ * @memberof BusinessInfoV2ResponseDto
964
+ */
965
+ 'detail': BusinessInfoResponseDtoDetail;
966
+ /**
967
+ * Email address of the business
968
+ * @type {string}
969
+ * @memberof BusinessInfoV2ResponseDto
970
+ */
971
+ 'businessEmail': string | null;
972
+ /**
973
+ * KDS profiles linked to the business
974
+ * @type {Array<KdsProfileResponseDto>}
975
+ * @memberof BusinessInfoV2ResponseDto
976
+ */
977
+ 'kdsProfiles': Array<KdsProfileResponseDto>;
978
+ }
924
979
  /**
925
980
  *
926
981
  * @export
@@ -1046,6 +1101,25 @@ export interface BusinessPermissionResponseDto {
1046
1101
  */
1047
1102
  'updatedAt': string;
1048
1103
  }
1104
+ /**
1105
+ *
1106
+ * @export
1107
+ * @interface BusinessProvidersSupportedIntegrationsResponseDto
1108
+ */
1109
+ export interface BusinessProvidersSupportedIntegrationsResponseDto {
1110
+ /**
1111
+ * Business ID
1112
+ * @type {number}
1113
+ * @memberof BusinessProvidersSupportedIntegrationsResponseDto
1114
+ */
1115
+ 'businessId': number;
1116
+ /**
1117
+ * Providers and their supported integrations for this business
1118
+ * @type {Array<ProviderSupportedIntegrationsDto>}
1119
+ * @memberof BusinessProvidersSupportedIntegrationsResponseDto
1120
+ */
1121
+ 'providers': Array<ProviderSupportedIntegrationsDto>;
1122
+ }
1049
1123
  /**
1050
1124
  *
1051
1125
  * @export
@@ -4864,6 +4938,7 @@ export declare const IntegrationType: {
4864
4938
  readonly Orders: "ORDERS";
4865
4939
  readonly Menu: "MENU";
4866
4940
  readonly Venue: "VENUE";
4941
+ readonly Kds: "KDS";
4867
4942
  };
4868
4943
  export type IntegrationType = typeof IntegrationType[keyof typeof IntegrationType];
4869
4944
  /**
@@ -5427,6 +5502,25 @@ export interface KdsOrderSubOptionDto {
5427
5502
  */
5428
5503
  'updatedAt': string;
5429
5504
  }
5505
+ /**
5506
+ *
5507
+ * @export
5508
+ * @interface KdsProfileResponseDto
5509
+ */
5510
+ export interface KdsProfileResponseDto {
5511
+ /**
5512
+ * The KDS profile identifier
5513
+ * @type {string}
5514
+ * @memberof KdsProfileResponseDto
5515
+ */
5516
+ 'id': string;
5517
+ /**
5518
+ * The KDS profile name
5519
+ * @type {string}
5520
+ * @memberof KdsProfileResponseDto
5521
+ */
5522
+ 'name': string;
5523
+ }
5430
5524
  /**
5431
5525
  *
5432
5526
  * @export
@@ -12857,6 +12951,25 @@ export interface ProviderStatusResponseDto {
12857
12951
  */
12858
12952
  'open': boolean;
12859
12953
  }
12954
+ /**
12955
+ *
12956
+ * @export
12957
+ * @interface ProviderSupportedIntegrationsDto
12958
+ */
12959
+ export interface ProviderSupportedIntegrationsDto {
12960
+ /**
12961
+ *
12962
+ * @type {ProviderEnum}
12963
+ * @memberof ProviderSupportedIntegrationsDto
12964
+ */
12965
+ 'provider': ProviderEnum;
12966
+ /**
12967
+ * Integrations this provider supports
12968
+ * @type {Array<IntegrationType>}
12969
+ * @memberof ProviderSupportedIntegrationsDto
12970
+ */
12971
+ 'supportedIntegrations': Array<IntegrationType>;
12972
+ }
12860
12973
  /**
12861
12974
  *
12862
12975
  * @export
@@ -16111,11 +16224,11 @@ export interface UnifiedProductDto {
16111
16224
  */
16112
16225
  'comment'?: string | null;
16113
16226
  /**
16114
- * Current kitchen preparation status of the product
16115
- * @type {string}
16227
+ *
16228
+ * @type {KitchenItemStatus}
16116
16229
  * @memberof UnifiedProductDto
16117
16230
  */
16118
- 'kitchenStatus'?: string | null;
16231
+ 'kitchenStatus': KitchenItemStatus;
16119
16232
  /**
16120
16233
  * List of options selected for this product
16121
16234
  * @type {Array<UnifiedOptionDto>}
@@ -20384,6 +20497,13 @@ export declare const BusinessApiAxiosParamCreator: (configuration?: Configuratio
20384
20497
  * @throws {RequiredError}
20385
20498
  */
20386
20499
  getBusinessTax: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
20500
+ /**
20501
+ *
20502
+ * @param {Array<number>} businessIds Business IDs to fetch provider supported integrations for
20503
+ * @param {*} [options] Override http request option.
20504
+ * @throws {RequiredError}
20505
+ */
20506
+ getProvidersSupportedIntegrations: (businessIds: Array<number>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
20387
20507
  /**
20388
20508
  *
20389
20509
  * @param {string} businessId Id of the business
@@ -20589,6 +20709,13 @@ export declare const BusinessApiFp: (configuration?: Configuration) => {
20589
20709
  * @throws {RequiredError}
20590
20710
  */
20591
20711
  getBusinessTax(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessTaxResponseDto>>>;
20712
+ /**
20713
+ *
20714
+ * @param {Array<number>} businessIds Business IDs to fetch provider supported integrations for
20715
+ * @param {*} [options] Override http request option.
20716
+ * @throws {RequiredError}
20717
+ */
20718
+ getProvidersSupportedIntegrations(businessIds: Array<number>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessProvidersSupportedIntegrationsResponseDto>>>;
20592
20719
  /**
20593
20720
  *
20594
20721
  * @param {string} businessId Id of the business
@@ -20794,6 +20921,13 @@ export declare const BusinessApiFactory: (configuration?: Configuration, basePat
20794
20921
  * @throws {RequiredError}
20795
20922
  */
20796
20923
  getBusinessTax(options?: any): AxiosPromise<Array<BusinessTaxResponseDto>>;
20924
+ /**
20925
+ *
20926
+ * @param {Array<number>} businessIds Business IDs to fetch provider supported integrations for
20927
+ * @param {*} [options] Override http request option.
20928
+ * @throws {RequiredError}
20929
+ */
20930
+ getProvidersSupportedIntegrations(businessIds: Array<number>, options?: any): AxiosPromise<Array<BusinessProvidersSupportedIntegrationsResponseDto>>;
20797
20931
  /**
20798
20932
  *
20799
20933
  * @param {string} businessId Id of the business
@@ -21018,6 +21152,14 @@ export interface BusinessApiInterface {
21018
21152
  * @memberof BusinessApiInterface
21019
21153
  */
21020
21154
  getBusinessTax(options?: AxiosRequestConfig): AxiosPromise<Array<BusinessTaxResponseDto>>;
21155
+ /**
21156
+ *
21157
+ * @param {Array<number>} businessIds Business IDs to fetch provider supported integrations for
21158
+ * @param {*} [options] Override http request option.
21159
+ * @throws {RequiredError}
21160
+ * @memberof BusinessApiInterface
21161
+ */
21162
+ getProvidersSupportedIntegrations(businessIds: Array<number>, options?: AxiosRequestConfig): AxiosPromise<Array<BusinessProvidersSupportedIntegrationsResponseDto>>;
21021
21163
  /**
21022
21164
  *
21023
21165
  * @param {string} businessId Id of the business
@@ -21249,6 +21391,14 @@ export declare class BusinessApi extends BaseAPI implements BusinessApiInterface
21249
21391
  * @memberof BusinessApi
21250
21392
  */
21251
21393
  getBusinessTax(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BusinessTaxResponseDto[], any, {}>>;
21394
+ /**
21395
+ *
21396
+ * @param {Array<number>} businessIds Business IDs to fetch provider supported integrations for
21397
+ * @param {*} [options] Override http request option.
21398
+ * @throws {RequiredError}
21399
+ * @memberof BusinessApi
21400
+ */
21401
+ getProvidersSupportedIntegrations(businessIds: Array<number>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BusinessProvidersSupportedIntegrationsResponseDto[], any, {}>>;
21252
21402
  /**
21253
21403
  *
21254
21404
  * @param {string} businessId Id of the business
@@ -27168,14 +27318,21 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
27168
27318
  * @param {*} [options] Override http request option.
27169
27319
  * @throws {RequiredError}
27170
27320
  */
27171
- getUserBusiness: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27321
+ getUserBusinessV1: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27322
+ /**
27323
+ *
27324
+ * @summary Retrieve user Business information with KDS profiles
27325
+ * @param {*} [options] Override http request option.
27326
+ * @throws {RequiredError}
27327
+ */
27328
+ getUserBusinessV2: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27172
27329
  /**
27173
27330
  *
27174
27331
  * @summary Retrieve user information
27175
27332
  * @param {*} [options] Override http request option.
27176
27333
  * @throws {RequiredError}
27177
27334
  */
27178
- getUserInfo: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27335
+ getUserInfoV1: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27179
27336
  };
27180
27337
  /**
27181
27338
  * UserApi - functional programming interface
@@ -27188,14 +27345,21 @@ export declare const UserApiFp: (configuration?: Configuration) => {
27188
27345
  * @param {*} [options] Override http request option.
27189
27346
  * @throws {RequiredError}
27190
27347
  */
27191
- getUserBusiness(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessInfoResponseDto>>>;
27348
+ getUserBusinessV1(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessInfoResponseDto>>>;
27349
+ /**
27350
+ *
27351
+ * @summary Retrieve user Business information with KDS profiles
27352
+ * @param {*} [options] Override http request option.
27353
+ * @throws {RequiredError}
27354
+ */
27355
+ getUserBusinessV2(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessInfoV2ResponseDto>>>;
27192
27356
  /**
27193
27357
  *
27194
27358
  * @summary Retrieve user information
27195
27359
  * @param {*} [options] Override http request option.
27196
27360
  * @throws {RequiredError}
27197
27361
  */
27198
- getUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserInfoResponseDto>>;
27362
+ getUserInfoV1(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserInfoResponseDto>>;
27199
27363
  };
27200
27364
  /**
27201
27365
  * UserApi - factory interface
@@ -27208,14 +27372,21 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
27208
27372
  * @param {*} [options] Override http request option.
27209
27373
  * @throws {RequiredError}
27210
27374
  */
27211
- getUserBusiness(options?: any): AxiosPromise<Array<BusinessInfoResponseDto>>;
27375
+ getUserBusinessV1(options?: any): AxiosPromise<Array<BusinessInfoResponseDto>>;
27376
+ /**
27377
+ *
27378
+ * @summary Retrieve user Business information with KDS profiles
27379
+ * @param {*} [options] Override http request option.
27380
+ * @throws {RequiredError}
27381
+ */
27382
+ getUserBusinessV2(options?: any): AxiosPromise<Array<BusinessInfoV2ResponseDto>>;
27212
27383
  /**
27213
27384
  *
27214
27385
  * @summary Retrieve user information
27215
27386
  * @param {*} [options] Override http request option.
27216
27387
  * @throws {RequiredError}
27217
27388
  */
27218
- getUserInfo(options?: any): AxiosPromise<GetUserInfoResponseDto>;
27389
+ getUserInfoV1(options?: any): AxiosPromise<GetUserInfoResponseDto>;
27219
27390
  };
27220
27391
  /**
27221
27392
  * UserApi - interface
@@ -27230,7 +27401,15 @@ export interface UserApiInterface {
27230
27401
  * @throws {RequiredError}
27231
27402
  * @memberof UserApiInterface
27232
27403
  */
27233
- getUserBusiness(options?: AxiosRequestConfig): AxiosPromise<Array<BusinessInfoResponseDto>>;
27404
+ getUserBusinessV1(options?: AxiosRequestConfig): AxiosPromise<Array<BusinessInfoResponseDto>>;
27405
+ /**
27406
+ *
27407
+ * @summary Retrieve user Business information with KDS profiles
27408
+ * @param {*} [options] Override http request option.
27409
+ * @throws {RequiredError}
27410
+ * @memberof UserApiInterface
27411
+ */
27412
+ getUserBusinessV2(options?: AxiosRequestConfig): AxiosPromise<Array<BusinessInfoV2ResponseDto>>;
27234
27413
  /**
27235
27414
  *
27236
27415
  * @summary Retrieve user information
@@ -27238,7 +27417,7 @@ export interface UserApiInterface {
27238
27417
  * @throws {RequiredError}
27239
27418
  * @memberof UserApiInterface
27240
27419
  */
27241
- getUserInfo(options?: AxiosRequestConfig): AxiosPromise<GetUserInfoResponseDto>;
27420
+ getUserInfoV1(options?: AxiosRequestConfig): AxiosPromise<GetUserInfoResponseDto>;
27242
27421
  }
27243
27422
  /**
27244
27423
  * UserApi - object-oriented interface
@@ -27254,7 +27433,15 @@ export declare class UserApi extends BaseAPI implements UserApiInterface {
27254
27433
  * @throws {RequiredError}
27255
27434
  * @memberof UserApi
27256
27435
  */
27257
- getUserBusiness(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BusinessInfoResponseDto[], any, {}>>;
27436
+ getUserBusinessV1(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BusinessInfoResponseDto[], any, {}>>;
27437
+ /**
27438
+ *
27439
+ * @summary Retrieve user Business information with KDS profiles
27440
+ * @param {*} [options] Override http request option.
27441
+ * @throws {RequiredError}
27442
+ * @memberof UserApi
27443
+ */
27444
+ getUserBusinessV2(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BusinessInfoV2ResponseDto[], any, {}>>;
27258
27445
  /**
27259
27446
  *
27260
27447
  * @summary Retrieve user information
@@ -27262,7 +27449,7 @@ export declare class UserApi extends BaseAPI implements UserApiInterface {
27262
27449
  * @throws {RequiredError}
27263
27450
  * @memberof UserApi
27264
27451
  */
27265
- getUserInfo(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserInfoResponseDto, any, {}>>;
27452
+ getUserInfoV1(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserInfoResponseDto, any, {}>>;
27266
27453
  }
27267
27454
  /**
27268
27455
  * UsersApi - axios parameter creator