@munchi_oy/core 1.9.6 → 1.9.8
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/dist/generated/api.d.ts +243 -0
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +287 -1
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -396,6 +396,16 @@ export interface AmountDto {
|
|
|
396
396
|
*/
|
|
397
397
|
'currency': string;
|
|
398
398
|
}
|
|
399
|
+
/**
|
|
400
|
+
*
|
|
401
|
+
* @export
|
|
402
|
+
* @enum {string}
|
|
403
|
+
*/
|
|
404
|
+
export declare const AutonomousVehicleType: {
|
|
405
|
+
readonly Sidewalk: "VEHICLE_TYPE_SIDEWALK";
|
|
406
|
+
readonly FlyingDrone: "VEHICLE_TYPE_FLYING_DRONE";
|
|
407
|
+
};
|
|
408
|
+
export type AutonomousVehicleType = typeof AutonomousVehicleType[keyof typeof AutonomousVehicleType];
|
|
399
409
|
/**
|
|
400
410
|
*
|
|
401
411
|
* @export
|
|
@@ -3200,6 +3210,12 @@ export interface CreateMunchiGiftCardResponseDto {
|
|
|
3200
3210
|
* @memberof CreateMunchiGiftCardResponseDto
|
|
3201
3211
|
*/
|
|
3202
3212
|
'code': string;
|
|
3213
|
+
/**
|
|
3214
|
+
* Placeholder gift card link used by the POS to render a QR code.
|
|
3215
|
+
* @type {string}
|
|
3216
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3217
|
+
*/
|
|
3218
|
+
'href'?: string | null;
|
|
3203
3219
|
/**
|
|
3204
3220
|
*
|
|
3205
3221
|
* @type {CurrencyCode}
|
|
@@ -3736,6 +3752,12 @@ export interface DeliveryDto {
|
|
|
3736
3752
|
* @memberof DeliveryDto
|
|
3737
3753
|
*/
|
|
3738
3754
|
'deliveryFee': number;
|
|
3755
|
+
/**
|
|
3756
|
+
*
|
|
3757
|
+
* @type {AutonomousVehicleType}
|
|
3758
|
+
* @memberof DeliveryDto
|
|
3759
|
+
*/
|
|
3760
|
+
'autonomousVehicleType'?: AutonomousVehicleType | null;
|
|
3739
3761
|
}
|
|
3740
3762
|
/**
|
|
3741
3763
|
* Delivery location details
|
|
@@ -5024,12 +5046,62 @@ export interface FirebaseTokenDto {
|
|
|
5024
5046
|
*/
|
|
5025
5047
|
'customToken': string;
|
|
5026
5048
|
}
|
|
5049
|
+
/**
|
|
5050
|
+
*
|
|
5051
|
+
* @export
|
|
5052
|
+
* @interface GetMunchiGiftCardDataDto
|
|
5053
|
+
*/
|
|
5054
|
+
export interface GetMunchiGiftCardDataDto {
|
|
5055
|
+
/**
|
|
5056
|
+
*
|
|
5057
|
+
* @type {number}
|
|
5058
|
+
* @memberof GetMunchiGiftCardDataDto
|
|
5059
|
+
*/
|
|
5060
|
+
'orderingBusinessId': number;
|
|
5061
|
+
/**
|
|
5062
|
+
*
|
|
5063
|
+
* @type {string}
|
|
5064
|
+
* @memberof GetMunchiGiftCardDataDto
|
|
5065
|
+
*/
|
|
5066
|
+
'startDate'?: string;
|
|
5067
|
+
/**
|
|
5068
|
+
*
|
|
5069
|
+
* @type {string}
|
|
5070
|
+
* @memberof GetMunchiGiftCardDataDto
|
|
5071
|
+
*/
|
|
5072
|
+
'endDate'?: string;
|
|
5073
|
+
}
|
|
5074
|
+
/**
|
|
5075
|
+
*
|
|
5076
|
+
* @export
|
|
5077
|
+
* @interface GetMunchiGiftCardDataResponseDto
|
|
5078
|
+
*/
|
|
5079
|
+
export interface GetMunchiGiftCardDataResponseDto {
|
|
5080
|
+
/**
|
|
5081
|
+
*
|
|
5082
|
+
* @type {MunchiGiftCardBusinessDataDto}
|
|
5083
|
+
* @memberof GetMunchiGiftCardDataResponseDto
|
|
5084
|
+
*/
|
|
5085
|
+
'business': MunchiGiftCardBusinessDataDto;
|
|
5086
|
+
/**
|
|
5087
|
+
*
|
|
5088
|
+
* @type {Array<MunchiGiftCardDataItemDto>}
|
|
5089
|
+
* @memberof GetMunchiGiftCardDataResponseDto
|
|
5090
|
+
*/
|
|
5091
|
+
'giftCards': Array<MunchiGiftCardDataItemDto>;
|
|
5092
|
+
}
|
|
5027
5093
|
/**
|
|
5028
5094
|
*
|
|
5029
5095
|
* @export
|
|
5030
5096
|
* @interface GetPaymentReferenceDto
|
|
5031
5097
|
*/
|
|
5032
5098
|
export interface GetPaymentReferenceDto {
|
|
5099
|
+
/**
|
|
5100
|
+
* The id of the business
|
|
5101
|
+
* @type {number}
|
|
5102
|
+
* @memberof GetPaymentReferenceDto
|
|
5103
|
+
*/
|
|
5104
|
+
'businessId': number;
|
|
5033
5105
|
/**
|
|
5034
5106
|
*
|
|
5035
5107
|
* @type {PaymentProvider}
|
|
@@ -5363,6 +5435,7 @@ export declare const IntegrationType: {
|
|
|
5363
5435
|
readonly Menu: "MENU";
|
|
5364
5436
|
readonly Venue: "VENUE";
|
|
5365
5437
|
readonly Kds: "KDS";
|
|
5438
|
+
readonly Ayce: "AYCE";
|
|
5366
5439
|
};
|
|
5367
5440
|
export type IntegrationType = typeof IntegrationType[keyof typeof IntegrationType];
|
|
5368
5441
|
/**
|
|
@@ -8097,6 +8170,116 @@ export interface MoneyDto {
|
|
|
8097
8170
|
*/
|
|
8098
8171
|
'currency': string;
|
|
8099
8172
|
}
|
|
8173
|
+
/**
|
|
8174
|
+
*
|
|
8175
|
+
* @export
|
|
8176
|
+
* @interface MunchiGiftCardBusinessDataDto
|
|
8177
|
+
*/
|
|
8178
|
+
export interface MunchiGiftCardBusinessDataDto {
|
|
8179
|
+
/**
|
|
8180
|
+
*
|
|
8181
|
+
* @type {number}
|
|
8182
|
+
* @memberof MunchiGiftCardBusinessDataDto
|
|
8183
|
+
*/
|
|
8184
|
+
'orderingBusinessId': number;
|
|
8185
|
+
/**
|
|
8186
|
+
*
|
|
8187
|
+
* @type {string}
|
|
8188
|
+
* @memberof MunchiGiftCardBusinessDataDto
|
|
8189
|
+
*/
|
|
8190
|
+
'name': string;
|
|
8191
|
+
/**
|
|
8192
|
+
*
|
|
8193
|
+
* @type {string}
|
|
8194
|
+
* @memberof MunchiGiftCardBusinessDataDto
|
|
8195
|
+
*/
|
|
8196
|
+
'email'?: string | null;
|
|
8197
|
+
/**
|
|
8198
|
+
*
|
|
8199
|
+
* @type {string}
|
|
8200
|
+
* @memberof MunchiGiftCardBusinessDataDto
|
|
8201
|
+
*/
|
|
8202
|
+
'timezone'?: string | null;
|
|
8203
|
+
}
|
|
8204
|
+
/**
|
|
8205
|
+
*
|
|
8206
|
+
* @export
|
|
8207
|
+
* @interface MunchiGiftCardDataItemDto
|
|
8208
|
+
*/
|
|
8209
|
+
export interface MunchiGiftCardDataItemDto {
|
|
8210
|
+
/**
|
|
8211
|
+
*
|
|
8212
|
+
* @type {string}
|
|
8213
|
+
* @memberof MunchiGiftCardDataItemDto
|
|
8214
|
+
*/
|
|
8215
|
+
'id': string;
|
|
8216
|
+
/**
|
|
8217
|
+
*
|
|
8218
|
+
* @type {string}
|
|
8219
|
+
* @memberof MunchiGiftCardDataItemDto
|
|
8220
|
+
*/
|
|
8221
|
+
'code': string;
|
|
8222
|
+
/**
|
|
8223
|
+
* Placeholder gift card link used by the POS to render a QR code.
|
|
8224
|
+
* @type {string}
|
|
8225
|
+
* @memberof MunchiGiftCardDataItemDto
|
|
8226
|
+
*/
|
|
8227
|
+
'href'?: string | null;
|
|
8228
|
+
/**
|
|
8229
|
+
*
|
|
8230
|
+
* @type {CurrencyCode}
|
|
8231
|
+
* @memberof MunchiGiftCardDataItemDto
|
|
8232
|
+
*/
|
|
8233
|
+
'currency': CurrencyCode;
|
|
8234
|
+
/**
|
|
8235
|
+
* Initial balance stored in cents.
|
|
8236
|
+
* @type {number}
|
|
8237
|
+
* @memberof MunchiGiftCardDataItemDto
|
|
8238
|
+
*/
|
|
8239
|
+
'initialBalance': number;
|
|
8240
|
+
/**
|
|
8241
|
+
* Remaining balance stored in cents.
|
|
8242
|
+
* @type {number}
|
|
8243
|
+
* @memberof MunchiGiftCardDataItemDto
|
|
8244
|
+
*/
|
|
8245
|
+
'remainingBalance': number;
|
|
8246
|
+
/**
|
|
8247
|
+
*
|
|
8248
|
+
* @type {string}
|
|
8249
|
+
* @memberof MunchiGiftCardDataItemDto
|
|
8250
|
+
*/
|
|
8251
|
+
'purchaserName'?: string | null;
|
|
8252
|
+
/**
|
|
8253
|
+
*
|
|
8254
|
+
* @type {string}
|
|
8255
|
+
* @memberof MunchiGiftCardDataItemDto
|
|
8256
|
+
*/
|
|
8257
|
+
'purchaserEmail'?: string | null;
|
|
8258
|
+
/**
|
|
8259
|
+
*
|
|
8260
|
+
* @type {string}
|
|
8261
|
+
* @memberof MunchiGiftCardDataItemDto
|
|
8262
|
+
*/
|
|
8263
|
+
'phoneCountryCode'?: string | null;
|
|
8264
|
+
/**
|
|
8265
|
+
*
|
|
8266
|
+
* @type {string}
|
|
8267
|
+
* @memberof MunchiGiftCardDataItemDto
|
|
8268
|
+
*/
|
|
8269
|
+
'phoneNumber'?: string | null;
|
|
8270
|
+
/**
|
|
8271
|
+
*
|
|
8272
|
+
* @type {string}
|
|
8273
|
+
* @memberof MunchiGiftCardDataItemDto
|
|
8274
|
+
*/
|
|
8275
|
+
'expiresAt'?: string | null;
|
|
8276
|
+
/**
|
|
8277
|
+
*
|
|
8278
|
+
* @type {string}
|
|
8279
|
+
* @memberof MunchiGiftCardDataItemDto
|
|
8280
|
+
*/
|
|
8281
|
+
'createdAt': string;
|
|
8282
|
+
}
|
|
8100
8283
|
/**
|
|
8101
8284
|
*
|
|
8102
8285
|
* @export
|
|
@@ -9472,6 +9655,12 @@ export interface OrderResponseDtoDelivery {
|
|
|
9472
9655
|
* @memberof OrderResponseDtoDelivery
|
|
9473
9656
|
*/
|
|
9474
9657
|
'deliveryFee': number;
|
|
9658
|
+
/**
|
|
9659
|
+
*
|
|
9660
|
+
* @type {AutonomousVehicleType}
|
|
9661
|
+
* @memberof OrderResponseDtoDelivery
|
|
9662
|
+
*/
|
|
9663
|
+
'autonomousVehicleType'?: AutonomousVehicleType | null;
|
|
9475
9664
|
}
|
|
9476
9665
|
/**
|
|
9477
9666
|
* Preorder details
|
|
@@ -16577,6 +16766,12 @@ export interface UnifiedDeliveryDto {
|
|
|
16577
16766
|
* @deprecated
|
|
16578
16767
|
*/
|
|
16579
16768
|
'location'?: UnifiedDeliveryDtoLocation | null;
|
|
16769
|
+
/**
|
|
16770
|
+
*
|
|
16771
|
+
* @type {AutonomousVehicleType}
|
|
16772
|
+
* @memberof UnifiedDeliveryDto
|
|
16773
|
+
*/
|
|
16774
|
+
'autonomousVehicleType'?: AutonomousVehicleType | null;
|
|
16580
16775
|
}
|
|
16581
16776
|
/**
|
|
16582
16777
|
* Nested location object (deprecated, use formattedAddress/city/country directly)
|
|
@@ -17218,6 +17413,12 @@ export interface UnifiedOrderResponseDtoDelivery {
|
|
|
17218
17413
|
* @deprecated
|
|
17219
17414
|
*/
|
|
17220
17415
|
'location'?: UnifiedDeliveryDtoLocation | null;
|
|
17416
|
+
/**
|
|
17417
|
+
*
|
|
17418
|
+
* @type {AutonomousVehicleType}
|
|
17419
|
+
* @memberof UnifiedOrderResponseDtoDelivery
|
|
17420
|
+
*/
|
|
17421
|
+
'autonomousVehicleType'?: AutonomousVehicleType | null;
|
|
17221
17422
|
}
|
|
17222
17423
|
/**
|
|
17223
17424
|
* Invoice company details attached to the POS order. POS only
|
|
@@ -25885,6 +26086,14 @@ export declare const MunchiGiftCardApiAxiosParamCreator: (configuration?: Config
|
|
|
25885
26086
|
* @throws {RequiredError}
|
|
25886
26087
|
*/
|
|
25887
26088
|
createMunchiGiftCard: (createMunchiGiftCardDto: CreateMunchiGiftCardDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26089
|
+
/**
|
|
26090
|
+
*
|
|
26091
|
+
* @summary Get Munchi gift card data
|
|
26092
|
+
* @param {GetMunchiGiftCardDataDto} getMunchiGiftCardDataDto
|
|
26093
|
+
* @param {*} [options] Override http request option.
|
|
26094
|
+
* @throws {RequiredError}
|
|
26095
|
+
*/
|
|
26096
|
+
getMunchiGiftCardData: (getMunchiGiftCardDataDto: GetMunchiGiftCardDataDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
25888
26097
|
/**
|
|
25889
26098
|
*
|
|
25890
26099
|
* @summary Redeem a first-party Munchi gift card
|
|
@@ -25915,6 +26124,14 @@ export declare const MunchiGiftCardApiFp: (configuration?: Configuration) => {
|
|
|
25915
26124
|
* @throws {RequiredError}
|
|
25916
26125
|
*/
|
|
25917
26126
|
createMunchiGiftCard(createMunchiGiftCardDto: CreateMunchiGiftCardDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMunchiGiftCardResponseDto>>;
|
|
26127
|
+
/**
|
|
26128
|
+
*
|
|
26129
|
+
* @summary Get Munchi gift card data
|
|
26130
|
+
* @param {GetMunchiGiftCardDataDto} getMunchiGiftCardDataDto
|
|
26131
|
+
* @param {*} [options] Override http request option.
|
|
26132
|
+
* @throws {RequiredError}
|
|
26133
|
+
*/
|
|
26134
|
+
getMunchiGiftCardData(getMunchiGiftCardDataDto: GetMunchiGiftCardDataDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMunchiGiftCardDataResponseDto>>;
|
|
25918
26135
|
/**
|
|
25919
26136
|
*
|
|
25920
26137
|
* @summary Redeem a first-party Munchi gift card
|
|
@@ -25945,6 +26162,14 @@ export declare const MunchiGiftCardApiFactory: (configuration?: Configuration, b
|
|
|
25945
26162
|
* @throws {RequiredError}
|
|
25946
26163
|
*/
|
|
25947
26164
|
createMunchiGiftCard(createMunchiGiftCardDto: CreateMunchiGiftCardDto, options?: any): AxiosPromise<CreateMunchiGiftCardResponseDto>;
|
|
26165
|
+
/**
|
|
26166
|
+
*
|
|
26167
|
+
* @summary Get Munchi gift card data
|
|
26168
|
+
* @param {GetMunchiGiftCardDataDto} getMunchiGiftCardDataDto
|
|
26169
|
+
* @param {*} [options] Override http request option.
|
|
26170
|
+
* @throws {RequiredError}
|
|
26171
|
+
*/
|
|
26172
|
+
getMunchiGiftCardData(getMunchiGiftCardDataDto: GetMunchiGiftCardDataDto, options?: any): AxiosPromise<GetMunchiGiftCardDataResponseDto>;
|
|
25948
26173
|
/**
|
|
25949
26174
|
*
|
|
25950
26175
|
* @summary Redeem a first-party Munchi gift card
|
|
@@ -25977,6 +26202,15 @@ export interface MunchiGiftCardApiInterface {
|
|
|
25977
26202
|
* @memberof MunchiGiftCardApiInterface
|
|
25978
26203
|
*/
|
|
25979
26204
|
createMunchiGiftCard(createMunchiGiftCardDto: CreateMunchiGiftCardDto, options?: AxiosRequestConfig): AxiosPromise<CreateMunchiGiftCardResponseDto>;
|
|
26205
|
+
/**
|
|
26206
|
+
*
|
|
26207
|
+
* @summary Get Munchi gift card data
|
|
26208
|
+
* @param {GetMunchiGiftCardDataDto} getMunchiGiftCardDataDto
|
|
26209
|
+
* @param {*} [options] Override http request option.
|
|
26210
|
+
* @throws {RequiredError}
|
|
26211
|
+
* @memberof MunchiGiftCardApiInterface
|
|
26212
|
+
*/
|
|
26213
|
+
getMunchiGiftCardData(getMunchiGiftCardDataDto: GetMunchiGiftCardDataDto, options?: AxiosRequestConfig): AxiosPromise<GetMunchiGiftCardDataResponseDto>;
|
|
25980
26214
|
/**
|
|
25981
26215
|
*
|
|
25982
26216
|
* @summary Redeem a first-party Munchi gift card
|
|
@@ -26012,6 +26246,15 @@ export declare class MunchiGiftCardApi extends BaseAPI implements MunchiGiftCard
|
|
|
26012
26246
|
* @memberof MunchiGiftCardApi
|
|
26013
26247
|
*/
|
|
26014
26248
|
createMunchiGiftCard(createMunchiGiftCardDto: CreateMunchiGiftCardDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMunchiGiftCardResponseDto, any, {}>>;
|
|
26249
|
+
/**
|
|
26250
|
+
*
|
|
26251
|
+
* @summary Get Munchi gift card data
|
|
26252
|
+
* @param {GetMunchiGiftCardDataDto} getMunchiGiftCardDataDto
|
|
26253
|
+
* @param {*} [options] Override http request option.
|
|
26254
|
+
* @throws {RequiredError}
|
|
26255
|
+
* @memberof MunchiGiftCardApi
|
|
26256
|
+
*/
|
|
26257
|
+
getMunchiGiftCardData(getMunchiGiftCardDataDto: GetMunchiGiftCardDataDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMunchiGiftCardDataResponseDto, any, {}>>;
|
|
26015
26258
|
/**
|
|
26016
26259
|
*
|
|
26017
26260
|
* @summary Redeem a first-party Munchi gift card
|