@munchi_oy/core 1.9.11 → 1.9.14
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 +221 -12
- 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 +310 -14
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -4589,6 +4589,24 @@ export interface ExtendedProductDto {
|
|
|
4589
4589
|
* @memberof ExtendedProductDto
|
|
4590
4590
|
*/
|
|
4591
4591
|
'images': string;
|
|
4592
|
+
/**
|
|
4593
|
+
* SKU of the product
|
|
4594
|
+
* @type {object}
|
|
4595
|
+
* @memberof ExtendedProductDto
|
|
4596
|
+
*/
|
|
4597
|
+
'sku'?: object | null;
|
|
4598
|
+
/**
|
|
4599
|
+
* Primary barcode value of the product
|
|
4600
|
+
* @type {object}
|
|
4601
|
+
* @memberof ExtendedProductDto
|
|
4602
|
+
*/
|
|
4603
|
+
'barcode'?: object | null;
|
|
4604
|
+
/**
|
|
4605
|
+
* Alternative barcode value of the product
|
|
4606
|
+
* @type {object}
|
|
4607
|
+
* @memberof ExtendedProductDto
|
|
4608
|
+
*/
|
|
4609
|
+
'barcode_alternative'?: object | null;
|
|
4592
4610
|
/**
|
|
4593
4611
|
* Category ID the product belongs to
|
|
4594
4612
|
* @type {number}
|
|
@@ -4733,12 +4751,6 @@ export interface ExtendedProductDto {
|
|
|
4733
4751
|
* @memberof ExtendedProductDto
|
|
4734
4752
|
*/
|
|
4735
4753
|
'channel_configs': Array<ChannelConfig>;
|
|
4736
|
-
/**
|
|
4737
|
-
* SKU of the product
|
|
4738
|
-
* @type {string}
|
|
4739
|
-
* @memberof ExtendedProductDto
|
|
4740
|
-
*/
|
|
4741
|
-
'sku'?: string;
|
|
4742
4754
|
}
|
|
4743
4755
|
/**
|
|
4744
4756
|
* Reporting category details
|
|
@@ -10128,6 +10140,24 @@ export interface OrderingCoProductDto {
|
|
|
10128
10140
|
* @memberof OrderingCoProductDto
|
|
10129
10141
|
*/
|
|
10130
10142
|
'images': string;
|
|
10143
|
+
/**
|
|
10144
|
+
* SKU of the product
|
|
10145
|
+
* @type {object}
|
|
10146
|
+
* @memberof OrderingCoProductDto
|
|
10147
|
+
*/
|
|
10148
|
+
'sku'?: object | null;
|
|
10149
|
+
/**
|
|
10150
|
+
* Primary barcode value of the product
|
|
10151
|
+
* @type {object}
|
|
10152
|
+
* @memberof OrderingCoProductDto
|
|
10153
|
+
*/
|
|
10154
|
+
'barcode'?: object | null;
|
|
10155
|
+
/**
|
|
10156
|
+
* Alternative barcode value of the product
|
|
10157
|
+
* @type {object}
|
|
10158
|
+
* @memberof OrderingCoProductDto
|
|
10159
|
+
*/
|
|
10160
|
+
'barcode_alternative'?: object | null;
|
|
10131
10161
|
/**
|
|
10132
10162
|
* Category ID the product belongs to
|
|
10133
10163
|
* @type {number}
|
|
@@ -10621,6 +10651,13 @@ export declare const PaymentMethod: {
|
|
|
10621
10651
|
readonly Fundis: "Fundis";
|
|
10622
10652
|
readonly UberEats: "UberEats";
|
|
10623
10653
|
readonly MunchiGiftCard: "MunchiGiftCard";
|
|
10654
|
+
readonly WoltManual: "WoltManual";
|
|
10655
|
+
readonly MotoralLaksu: "MotoralLaksu";
|
|
10656
|
+
readonly ResQ: "ResQ";
|
|
10657
|
+
readonly GillAndGill: "GillAndGill";
|
|
10658
|
+
readonly Kiinteisto: "Kiinteisto";
|
|
10659
|
+
readonly Jpn: "JPN";
|
|
10660
|
+
readonly NineLives: "NineLives";
|
|
10624
10661
|
};
|
|
10625
10662
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
10626
10663
|
/**
|
|
@@ -12012,6 +12049,24 @@ export interface PosItemDto {
|
|
|
12012
12049
|
* @memberof PosItemDto
|
|
12013
12050
|
*/
|
|
12014
12051
|
'images': string;
|
|
12052
|
+
/**
|
|
12053
|
+
* SKU of the product
|
|
12054
|
+
* @type {object}
|
|
12055
|
+
* @memberof PosItemDto
|
|
12056
|
+
*/
|
|
12057
|
+
'sku'?: object | null;
|
|
12058
|
+
/**
|
|
12059
|
+
* Primary barcode value of the product
|
|
12060
|
+
* @type {object}
|
|
12061
|
+
* @memberof PosItemDto
|
|
12062
|
+
*/
|
|
12063
|
+
'barcode'?: object | null;
|
|
12064
|
+
/**
|
|
12065
|
+
* Alternative barcode value of the product
|
|
12066
|
+
* @type {object}
|
|
12067
|
+
* @memberof PosItemDto
|
|
12068
|
+
*/
|
|
12069
|
+
'barcode_alternative'?: object | null;
|
|
12015
12070
|
/**
|
|
12016
12071
|
* Category ID the product belongs to
|
|
12017
12072
|
* @type {number}
|
|
@@ -12156,12 +12211,6 @@ export interface PosItemDto {
|
|
|
12156
12211
|
* @memberof PosItemDto
|
|
12157
12212
|
*/
|
|
12158
12213
|
'channel_configs': Array<ChannelConfig>;
|
|
12159
|
-
/**
|
|
12160
|
-
* SKU of the product
|
|
12161
|
-
* @type {string}
|
|
12162
|
-
* @memberof PosItemDto
|
|
12163
|
-
*/
|
|
12164
|
-
'sku'?: string;
|
|
12165
12214
|
/**
|
|
12166
12215
|
* Order identifier
|
|
12167
12216
|
* @type {string}
|
|
@@ -13987,6 +14036,19 @@ export interface ProductDto {
|
|
|
13987
14036
|
*/
|
|
13988
14037
|
'options': Array<OptionDto>;
|
|
13989
14038
|
}
|
|
14039
|
+
/**
|
|
14040
|
+
*
|
|
14041
|
+
* @export
|
|
14042
|
+
* @interface ProductSkuResponseDto
|
|
14043
|
+
*/
|
|
14044
|
+
export interface ProductSkuResponseDto {
|
|
14045
|
+
/**
|
|
14046
|
+
* SKU stored for the product
|
|
14047
|
+
* @type {string}
|
|
14048
|
+
* @memberof ProductSkuResponseDto
|
|
14049
|
+
*/
|
|
14050
|
+
'sku': string;
|
|
14051
|
+
}
|
|
13990
14052
|
/**
|
|
13991
14053
|
*
|
|
13992
14054
|
* @export
|
|
@@ -14023,6 +14085,24 @@ export interface ProductWithCategoryDto {
|
|
|
14023
14085
|
* @memberof ProductWithCategoryDto
|
|
14024
14086
|
*/
|
|
14025
14087
|
'images': string;
|
|
14088
|
+
/**
|
|
14089
|
+
* SKU of the product
|
|
14090
|
+
* @type {object}
|
|
14091
|
+
* @memberof ProductWithCategoryDto
|
|
14092
|
+
*/
|
|
14093
|
+
'sku'?: object | null;
|
|
14094
|
+
/**
|
|
14095
|
+
* Primary barcode value of the product
|
|
14096
|
+
* @type {object}
|
|
14097
|
+
* @memberof ProductWithCategoryDto
|
|
14098
|
+
*/
|
|
14099
|
+
'barcode'?: object | null;
|
|
14100
|
+
/**
|
|
14101
|
+
* Alternative barcode value of the product
|
|
14102
|
+
* @type {object}
|
|
14103
|
+
* @memberof ProductWithCategoryDto
|
|
14104
|
+
*/
|
|
14105
|
+
'barcode_alternative'?: object | null;
|
|
14026
14106
|
/**
|
|
14027
14107
|
* Category ID the product belongs to
|
|
14028
14108
|
* @type {number}
|
|
@@ -18045,6 +18125,19 @@ export interface UpdatePosGlobalSettingsDto {
|
|
|
18045
18125
|
*/
|
|
18046
18126
|
'hidePosOrdersInOm': boolean;
|
|
18047
18127
|
}
|
|
18128
|
+
/**
|
|
18129
|
+
*
|
|
18130
|
+
* @export
|
|
18131
|
+
* @interface UpdateProductSkuDto
|
|
18132
|
+
*/
|
|
18133
|
+
export interface UpdateProductSkuDto {
|
|
18134
|
+
/**
|
|
18135
|
+
* SKU to save for the product
|
|
18136
|
+
* @type {string}
|
|
18137
|
+
* @memberof UpdateProductSkuDto
|
|
18138
|
+
*/
|
|
18139
|
+
'sku': string;
|
|
18140
|
+
}
|
|
18048
18141
|
/**
|
|
18049
18142
|
*
|
|
18050
18143
|
* @export
|
|
@@ -18455,6 +18548,13 @@ export declare const NameEnum: {
|
|
|
18455
18548
|
readonly Fundis: "Fundis";
|
|
18456
18549
|
readonly UberEats: "UberEats";
|
|
18457
18550
|
readonly MunchiGiftCard: "MunchiGiftCard";
|
|
18551
|
+
readonly WoltManual: "WoltManual";
|
|
18552
|
+
readonly MotoralLaksu: "MotoralLaksu";
|
|
18553
|
+
readonly ResQ: "ResQ";
|
|
18554
|
+
readonly GillAndGill: "GillAndGill";
|
|
18555
|
+
readonly Kiinteisto: "Kiinteisto";
|
|
18556
|
+
readonly Jpn: "JPN";
|
|
18557
|
+
readonly NineLives: "NineLives";
|
|
18458
18558
|
};
|
|
18459
18559
|
export type NameEnum = typeof NameEnum[keyof typeof NameEnum];
|
|
18460
18560
|
/**
|
|
@@ -27946,6 +28046,16 @@ export declare class PluginApi extends BaseAPI implements PluginApiInterface {
|
|
|
27946
28046
|
* @export
|
|
27947
28047
|
*/
|
|
27948
28048
|
export declare const ProductApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
28049
|
+
/**
|
|
28050
|
+
*
|
|
28051
|
+
* @summary Generate and save an 8-digit product SKU in Ordering
|
|
28052
|
+
* @param {string} businessId Business ID
|
|
28053
|
+
* @param {string} categoryId Category ID
|
|
28054
|
+
* @param {string} productId Product ID
|
|
28055
|
+
* @param {*} [options] Override http request option.
|
|
28056
|
+
* @throws {RequiredError}
|
|
28057
|
+
*/
|
|
28058
|
+
generateProductSkuV2: (businessId: string, categoryId: string, productId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27949
28059
|
/**
|
|
27950
28060
|
* Update inventory settings for multiple channels at once
|
|
27951
28061
|
* @summary Update channel inventory (POS, Kiosk, etc.)
|
|
@@ -27957,12 +28067,33 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
27957
28067
|
* @throws {RequiredError}
|
|
27958
28068
|
*/
|
|
27959
28069
|
updateChannelInventoryV2: (businessId: string, categoryId: string, productId: string, updateChannelInventoryDto: UpdateChannelInventoryDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28070
|
+
/**
|
|
28071
|
+
*
|
|
28072
|
+
* @summary Update product SKU in Ordering
|
|
28073
|
+
* @param {string} businessId Business ID
|
|
28074
|
+
* @param {string} categoryId Category ID
|
|
28075
|
+
* @param {string} productId Product ID
|
|
28076
|
+
* @param {UpdateProductSkuDto} updateProductSkuDto SKU update payload
|
|
28077
|
+
* @param {*} [options] Override http request option.
|
|
28078
|
+
* @throws {RequiredError}
|
|
28079
|
+
*/
|
|
28080
|
+
updateProductSkuV2: (businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27960
28081
|
};
|
|
27961
28082
|
/**
|
|
27962
28083
|
* ProductApi - functional programming interface
|
|
27963
28084
|
* @export
|
|
27964
28085
|
*/
|
|
27965
28086
|
export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
28087
|
+
/**
|
|
28088
|
+
*
|
|
28089
|
+
* @summary Generate and save an 8-digit product SKU in Ordering
|
|
28090
|
+
* @param {string} businessId Business ID
|
|
28091
|
+
* @param {string} categoryId Category ID
|
|
28092
|
+
* @param {string} productId Product ID
|
|
28093
|
+
* @param {*} [options] Override http request option.
|
|
28094
|
+
* @throws {RequiredError}
|
|
28095
|
+
*/
|
|
28096
|
+
generateProductSkuV2(businessId: string, categoryId: string, productId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSkuResponseDto>>;
|
|
27966
28097
|
/**
|
|
27967
28098
|
* Update inventory settings for multiple channels at once
|
|
27968
28099
|
* @summary Update channel inventory (POS, Kiosk, etc.)
|
|
@@ -27974,12 +28105,33 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
27974
28105
|
* @throws {RequiredError}
|
|
27975
28106
|
*/
|
|
27976
28107
|
updateChannelInventoryV2(businessId: string, categoryId: string, productId: string, updateChannelInventoryDto: UpdateChannelInventoryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChannelInventoryResponseDto>>>;
|
|
28108
|
+
/**
|
|
28109
|
+
*
|
|
28110
|
+
* @summary Update product SKU in Ordering
|
|
28111
|
+
* @param {string} businessId Business ID
|
|
28112
|
+
* @param {string} categoryId Category ID
|
|
28113
|
+
* @param {string} productId Product ID
|
|
28114
|
+
* @param {UpdateProductSkuDto} updateProductSkuDto SKU update payload
|
|
28115
|
+
* @param {*} [options] Override http request option.
|
|
28116
|
+
* @throws {RequiredError}
|
|
28117
|
+
*/
|
|
28118
|
+
updateProductSkuV2(businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSkuResponseDto>>;
|
|
27977
28119
|
};
|
|
27978
28120
|
/**
|
|
27979
28121
|
* ProductApi - factory interface
|
|
27980
28122
|
* @export
|
|
27981
28123
|
*/
|
|
27982
28124
|
export declare const ProductApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
28125
|
+
/**
|
|
28126
|
+
*
|
|
28127
|
+
* @summary Generate and save an 8-digit product SKU in Ordering
|
|
28128
|
+
* @param {string} businessId Business ID
|
|
28129
|
+
* @param {string} categoryId Category ID
|
|
28130
|
+
* @param {string} productId Product ID
|
|
28131
|
+
* @param {*} [options] Override http request option.
|
|
28132
|
+
* @throws {RequiredError}
|
|
28133
|
+
*/
|
|
28134
|
+
generateProductSkuV2(businessId: string, categoryId: string, productId: string, options?: any): AxiosPromise<ProductSkuResponseDto>;
|
|
27983
28135
|
/**
|
|
27984
28136
|
* Update inventory settings for multiple channels at once
|
|
27985
28137
|
* @summary Update channel inventory (POS, Kiosk, etc.)
|
|
@@ -27991,6 +28143,17 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
27991
28143
|
* @throws {RequiredError}
|
|
27992
28144
|
*/
|
|
27993
28145
|
updateChannelInventoryV2(businessId: string, categoryId: string, productId: string, updateChannelInventoryDto: UpdateChannelInventoryDto, options?: any): AxiosPromise<Array<ChannelInventoryResponseDto>>;
|
|
28146
|
+
/**
|
|
28147
|
+
*
|
|
28148
|
+
* @summary Update product SKU in Ordering
|
|
28149
|
+
* @param {string} businessId Business ID
|
|
28150
|
+
* @param {string} categoryId Category ID
|
|
28151
|
+
* @param {string} productId Product ID
|
|
28152
|
+
* @param {UpdateProductSkuDto} updateProductSkuDto SKU update payload
|
|
28153
|
+
* @param {*} [options] Override http request option.
|
|
28154
|
+
* @throws {RequiredError}
|
|
28155
|
+
*/
|
|
28156
|
+
updateProductSkuV2(businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: any): AxiosPromise<ProductSkuResponseDto>;
|
|
27994
28157
|
};
|
|
27995
28158
|
/**
|
|
27996
28159
|
* ProductApi - interface
|
|
@@ -27998,6 +28161,17 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
27998
28161
|
* @interface ProductApi
|
|
27999
28162
|
*/
|
|
28000
28163
|
export interface ProductApiInterface {
|
|
28164
|
+
/**
|
|
28165
|
+
*
|
|
28166
|
+
* @summary Generate and save an 8-digit product SKU in Ordering
|
|
28167
|
+
* @param {string} businessId Business ID
|
|
28168
|
+
* @param {string} categoryId Category ID
|
|
28169
|
+
* @param {string} productId Product ID
|
|
28170
|
+
* @param {*} [options] Override http request option.
|
|
28171
|
+
* @throws {RequiredError}
|
|
28172
|
+
* @memberof ProductApiInterface
|
|
28173
|
+
*/
|
|
28174
|
+
generateProductSkuV2(businessId: string, categoryId: string, productId: string, options?: AxiosRequestConfig): AxiosPromise<ProductSkuResponseDto>;
|
|
28001
28175
|
/**
|
|
28002
28176
|
* Update inventory settings for multiple channels at once
|
|
28003
28177
|
* @summary Update channel inventory (POS, Kiosk, etc.)
|
|
@@ -28010,6 +28184,18 @@ export interface ProductApiInterface {
|
|
|
28010
28184
|
* @memberof ProductApiInterface
|
|
28011
28185
|
*/
|
|
28012
28186
|
updateChannelInventoryV2(businessId: string, categoryId: string, productId: string, updateChannelInventoryDto: UpdateChannelInventoryDto, options?: AxiosRequestConfig): AxiosPromise<Array<ChannelInventoryResponseDto>>;
|
|
28187
|
+
/**
|
|
28188
|
+
*
|
|
28189
|
+
* @summary Update product SKU in Ordering
|
|
28190
|
+
* @param {string} businessId Business ID
|
|
28191
|
+
* @param {string} categoryId Category ID
|
|
28192
|
+
* @param {string} productId Product ID
|
|
28193
|
+
* @param {UpdateProductSkuDto} updateProductSkuDto SKU update payload
|
|
28194
|
+
* @param {*} [options] Override http request option.
|
|
28195
|
+
* @throws {RequiredError}
|
|
28196
|
+
* @memberof ProductApiInterface
|
|
28197
|
+
*/
|
|
28198
|
+
updateProductSkuV2(businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: AxiosRequestConfig): AxiosPromise<ProductSkuResponseDto>;
|
|
28013
28199
|
}
|
|
28014
28200
|
/**
|
|
28015
28201
|
* ProductApi - object-oriented interface
|
|
@@ -28018,6 +28204,17 @@ export interface ProductApiInterface {
|
|
|
28018
28204
|
* @extends {BaseAPI}
|
|
28019
28205
|
*/
|
|
28020
28206
|
export declare class ProductApi extends BaseAPI implements ProductApiInterface {
|
|
28207
|
+
/**
|
|
28208
|
+
*
|
|
28209
|
+
* @summary Generate and save an 8-digit product SKU in Ordering
|
|
28210
|
+
* @param {string} businessId Business ID
|
|
28211
|
+
* @param {string} categoryId Category ID
|
|
28212
|
+
* @param {string} productId Product ID
|
|
28213
|
+
* @param {*} [options] Override http request option.
|
|
28214
|
+
* @throws {RequiredError}
|
|
28215
|
+
* @memberof ProductApi
|
|
28216
|
+
*/
|
|
28217
|
+
generateProductSkuV2(businessId: string, categoryId: string, productId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductSkuResponseDto, any, {}>>;
|
|
28021
28218
|
/**
|
|
28022
28219
|
* Update inventory settings for multiple channels at once
|
|
28023
28220
|
* @summary Update channel inventory (POS, Kiosk, etc.)
|
|
@@ -28030,6 +28227,18 @@ export declare class ProductApi extends BaseAPI implements ProductApiInterface {
|
|
|
28030
28227
|
* @memberof ProductApi
|
|
28031
28228
|
*/
|
|
28032
28229
|
updateChannelInventoryV2(businessId: string, categoryId: string, productId: string, updateChannelInventoryDto: UpdateChannelInventoryDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ChannelInventoryResponseDto[], any, {}>>;
|
|
28230
|
+
/**
|
|
28231
|
+
*
|
|
28232
|
+
* @summary Update product SKU in Ordering
|
|
28233
|
+
* @param {string} businessId Business ID
|
|
28234
|
+
* @param {string} categoryId Category ID
|
|
28235
|
+
* @param {string} productId Product ID
|
|
28236
|
+
* @param {UpdateProductSkuDto} updateProductSkuDto SKU update payload
|
|
28237
|
+
* @param {*} [options] Override http request option.
|
|
28238
|
+
* @throws {RequiredError}
|
|
28239
|
+
* @memberof ProductApi
|
|
28240
|
+
*/
|
|
28241
|
+
updateProductSkuV2(businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductSkuResponseDto, any, {}>>;
|
|
28033
28242
|
}
|
|
28034
28243
|
/**
|
|
28035
28244
|
* ProviderApi - axios parameter creator
|