@munchi_oy/core 1.9.10 → 1.9.13
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 +255 -77
- 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 +381 -124
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -4761,6 +4761,24 @@ export interface ExtendedProductDto {
|
|
|
4761
4761
|
* @memberof ExtendedProductDto
|
|
4762
4762
|
*/
|
|
4763
4763
|
'images': string;
|
|
4764
|
+
/**
|
|
4765
|
+
* SKU of the product
|
|
4766
|
+
* @type {object}
|
|
4767
|
+
* @memberof ExtendedProductDto
|
|
4768
|
+
*/
|
|
4769
|
+
'sku'?: object | null;
|
|
4770
|
+
/**
|
|
4771
|
+
* Primary barcode value of the product
|
|
4772
|
+
* @type {object}
|
|
4773
|
+
* @memberof ExtendedProductDto
|
|
4774
|
+
*/
|
|
4775
|
+
'barcode'?: object | null;
|
|
4776
|
+
/**
|
|
4777
|
+
* Alternative barcode value of the product
|
|
4778
|
+
* @type {object}
|
|
4779
|
+
* @memberof ExtendedProductDto
|
|
4780
|
+
*/
|
|
4781
|
+
'barcode_alternative'?: object | null;
|
|
4764
4782
|
/**
|
|
4765
4783
|
* Category ID the product belongs to
|
|
4766
4784
|
* @type {number}
|
|
@@ -4905,12 +4923,6 @@ export interface ExtendedProductDto {
|
|
|
4905
4923
|
* @memberof ExtendedProductDto
|
|
4906
4924
|
*/
|
|
4907
4925
|
'channel_configs': Array<ChannelConfig>;
|
|
4908
|
-
/**
|
|
4909
|
-
* SKU of the product
|
|
4910
|
-
* @type {string}
|
|
4911
|
-
* @memberof ExtendedProductDto
|
|
4912
|
-
*/
|
|
4913
|
-
'sku'?: string;
|
|
4914
4926
|
}
|
|
4915
4927
|
|
|
4916
4928
|
|
|
@@ -10422,6 +10434,24 @@ export interface OrderingCoProductDto {
|
|
|
10422
10434
|
* @memberof OrderingCoProductDto
|
|
10423
10435
|
*/
|
|
10424
10436
|
'images': string;
|
|
10437
|
+
/**
|
|
10438
|
+
* SKU of the product
|
|
10439
|
+
* @type {object}
|
|
10440
|
+
* @memberof OrderingCoProductDto
|
|
10441
|
+
*/
|
|
10442
|
+
'sku'?: object | null;
|
|
10443
|
+
/**
|
|
10444
|
+
* Primary barcode value of the product
|
|
10445
|
+
* @type {object}
|
|
10446
|
+
* @memberof OrderingCoProductDto
|
|
10447
|
+
*/
|
|
10448
|
+
'barcode'?: object | null;
|
|
10449
|
+
/**
|
|
10450
|
+
* Alternative barcode value of the product
|
|
10451
|
+
* @type {object}
|
|
10452
|
+
* @memberof OrderingCoProductDto
|
|
10453
|
+
*/
|
|
10454
|
+
'barcode_alternative'?: object | null;
|
|
10425
10455
|
/**
|
|
10426
10456
|
* Category ID the product belongs to
|
|
10427
10457
|
* @type {number}
|
|
@@ -10927,7 +10957,10 @@ export const PaymentMethod = {
|
|
|
10927
10957
|
WoltBenefit: 'WoltBenefit',
|
|
10928
10958
|
Fundis: 'Fundis',
|
|
10929
10959
|
UberEats: 'UberEats',
|
|
10930
|
-
MunchiGiftCard: 'MunchiGiftCard'
|
|
10960
|
+
MunchiGiftCard: 'MunchiGiftCard',
|
|
10961
|
+
WoltManual: 'WoltManual',
|
|
10962
|
+
MotoralLaksu: 'MotoralLaksu',
|
|
10963
|
+
ResQ: 'ResQ'
|
|
10931
10964
|
} as const;
|
|
10932
10965
|
|
|
10933
10966
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
@@ -12368,6 +12401,24 @@ export interface PosItemDto {
|
|
|
12368
12401
|
* @memberof PosItemDto
|
|
12369
12402
|
*/
|
|
12370
12403
|
'images': string;
|
|
12404
|
+
/**
|
|
12405
|
+
* SKU of the product
|
|
12406
|
+
* @type {object}
|
|
12407
|
+
* @memberof PosItemDto
|
|
12408
|
+
*/
|
|
12409
|
+
'sku'?: object | null;
|
|
12410
|
+
/**
|
|
12411
|
+
* Primary barcode value of the product
|
|
12412
|
+
* @type {object}
|
|
12413
|
+
* @memberof PosItemDto
|
|
12414
|
+
*/
|
|
12415
|
+
'barcode'?: object | null;
|
|
12416
|
+
/**
|
|
12417
|
+
* Alternative barcode value of the product
|
|
12418
|
+
* @type {object}
|
|
12419
|
+
* @memberof PosItemDto
|
|
12420
|
+
*/
|
|
12421
|
+
'barcode_alternative'?: object | null;
|
|
12371
12422
|
/**
|
|
12372
12423
|
* Category ID the product belongs to
|
|
12373
12424
|
* @type {number}
|
|
@@ -12512,12 +12563,6 @@ export interface PosItemDto {
|
|
|
12512
12563
|
* @memberof PosItemDto
|
|
12513
12564
|
*/
|
|
12514
12565
|
'channel_configs': Array<ChannelConfig>;
|
|
12515
|
-
/**
|
|
12516
|
-
* SKU of the product
|
|
12517
|
-
* @type {string}
|
|
12518
|
-
* @memberof PosItemDto
|
|
12519
|
-
*/
|
|
12520
|
-
'sku'?: string;
|
|
12521
12566
|
/**
|
|
12522
12567
|
* Order identifier
|
|
12523
12568
|
* @type {string}
|
|
@@ -14394,6 +14439,19 @@ export interface ProductDto {
|
|
|
14394
14439
|
*/
|
|
14395
14440
|
'options': Array<OptionDto>;
|
|
14396
14441
|
}
|
|
14442
|
+
/**
|
|
14443
|
+
*
|
|
14444
|
+
* @export
|
|
14445
|
+
* @interface ProductSkuResponseDto
|
|
14446
|
+
*/
|
|
14447
|
+
export interface ProductSkuResponseDto {
|
|
14448
|
+
/**
|
|
14449
|
+
* SKU stored for the product
|
|
14450
|
+
* @type {string}
|
|
14451
|
+
* @memberof ProductSkuResponseDto
|
|
14452
|
+
*/
|
|
14453
|
+
'sku': string;
|
|
14454
|
+
}
|
|
14397
14455
|
/**
|
|
14398
14456
|
*
|
|
14399
14457
|
* @export
|
|
@@ -14430,6 +14488,24 @@ export interface ProductWithCategoryDto {
|
|
|
14430
14488
|
* @memberof ProductWithCategoryDto
|
|
14431
14489
|
*/
|
|
14432
14490
|
'images': string;
|
|
14491
|
+
/**
|
|
14492
|
+
* SKU of the product
|
|
14493
|
+
* @type {object}
|
|
14494
|
+
* @memberof ProductWithCategoryDto
|
|
14495
|
+
*/
|
|
14496
|
+
'sku'?: object | null;
|
|
14497
|
+
/**
|
|
14498
|
+
* Primary barcode value of the product
|
|
14499
|
+
* @type {object}
|
|
14500
|
+
* @memberof ProductWithCategoryDto
|
|
14501
|
+
*/
|
|
14502
|
+
'barcode'?: object | null;
|
|
14503
|
+
/**
|
|
14504
|
+
* Alternative barcode value of the product
|
|
14505
|
+
* @type {object}
|
|
14506
|
+
* @memberof ProductWithCategoryDto
|
|
14507
|
+
*/
|
|
14508
|
+
'barcode_alternative'?: object | null;
|
|
14433
14509
|
/**
|
|
14434
14510
|
* Category ID the product belongs to
|
|
14435
14511
|
* @type {number}
|
|
@@ -18590,6 +18666,19 @@ export interface UpdatePosGlobalSettingsDto {
|
|
|
18590
18666
|
*/
|
|
18591
18667
|
'hidePosOrdersInOm': boolean;
|
|
18592
18668
|
}
|
|
18669
|
+
/**
|
|
18670
|
+
*
|
|
18671
|
+
* @export
|
|
18672
|
+
* @interface UpdateProductSkuDto
|
|
18673
|
+
*/
|
|
18674
|
+
export interface UpdateProductSkuDto {
|
|
18675
|
+
/**
|
|
18676
|
+
* SKU to save for the product
|
|
18677
|
+
* @type {string}
|
|
18678
|
+
* @memberof UpdateProductSkuDto
|
|
18679
|
+
*/
|
|
18680
|
+
'sku': string;
|
|
18681
|
+
}
|
|
18593
18682
|
/**
|
|
18594
18683
|
*
|
|
18595
18684
|
* @export
|
|
@@ -19013,7 +19102,10 @@ export const NameEnum = {
|
|
|
19013
19102
|
WoltBenefit: 'WoltBenefit',
|
|
19014
19103
|
Fundis: 'Fundis',
|
|
19015
19104
|
UberEats: 'UberEats',
|
|
19016
|
-
MunchiGiftCard: 'MunchiGiftCard'
|
|
19105
|
+
MunchiGiftCard: 'MunchiGiftCard',
|
|
19106
|
+
WoltManual: 'WoltManual',
|
|
19107
|
+
MotoralLaksu: 'MotoralLaksu',
|
|
19108
|
+
ResQ: 'ResQ'
|
|
19017
19109
|
} as const;
|
|
19018
19110
|
|
|
19019
19111
|
export type NameEnum = typeof NameEnum[keyof typeof NameEnum];
|
|
@@ -22565,6 +22657,42 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
22565
22657
|
options: localVarRequestOptions,
|
|
22566
22658
|
};
|
|
22567
22659
|
},
|
|
22660
|
+
/**
|
|
22661
|
+
*
|
|
22662
|
+
* @summary Authorize user
|
|
22663
|
+
* @param {CredentialDto} credentialDto
|
|
22664
|
+
* @param {*} [options] Override http request option.
|
|
22665
|
+
* @throws {RequiredError}
|
|
22666
|
+
*/
|
|
22667
|
+
login: async (credentialDto: CredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22668
|
+
// verify required parameter 'credentialDto' is not null or undefined
|
|
22669
|
+
assertParamExists('login', 'credentialDto', credentialDto)
|
|
22670
|
+
const localVarPath = `/api/v1/auth/login`;
|
|
22671
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22672
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22673
|
+
let baseOptions;
|
|
22674
|
+
if (configuration) {
|
|
22675
|
+
baseOptions = configuration.baseOptions;
|
|
22676
|
+
}
|
|
22677
|
+
|
|
22678
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
22679
|
+
const localVarHeaderParameter = {} as any;
|
|
22680
|
+
const localVarQueryParameter = {} as any;
|
|
22681
|
+
|
|
22682
|
+
|
|
22683
|
+
|
|
22684
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22685
|
+
|
|
22686
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22687
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22688
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22689
|
+
localVarRequestOptions.data = serializeDataIfNeeded(credentialDto, localVarRequestOptions, configuration)
|
|
22690
|
+
|
|
22691
|
+
return {
|
|
22692
|
+
url: toPathString(localVarUrlObj),
|
|
22693
|
+
options: localVarRequestOptions,
|
|
22694
|
+
};
|
|
22695
|
+
},
|
|
22568
22696
|
/**
|
|
22569
22697
|
*
|
|
22570
22698
|
* @summary Log out the user
|
|
@@ -22651,6 +22779,17 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
22651
22779
|
const localVarAxiosArgs = await localVarAxiosParamCreator.firebaseAuth(options);
|
|
22652
22780
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22653
22781
|
},
|
|
22782
|
+
/**
|
|
22783
|
+
*
|
|
22784
|
+
* @summary Authorize user
|
|
22785
|
+
* @param {CredentialDto} credentialDto
|
|
22786
|
+
* @param {*} [options] Override http request option.
|
|
22787
|
+
* @throws {RequiredError}
|
|
22788
|
+
*/
|
|
22789
|
+
async login(credentialDto: CredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
|
|
22790
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.login(credentialDto, options);
|
|
22791
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22792
|
+
},
|
|
22654
22793
|
/**
|
|
22655
22794
|
*
|
|
22656
22795
|
* @summary Log out the user
|
|
@@ -22691,6 +22830,16 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
22691
22830
|
firebaseAuth(options?: any): AxiosPromise<FirebaseTokenDto> {
|
|
22692
22831
|
return localVarFp.firebaseAuth(options).then((request) => request(axios, basePath));
|
|
22693
22832
|
},
|
|
22833
|
+
/**
|
|
22834
|
+
*
|
|
22835
|
+
* @summary Authorize user
|
|
22836
|
+
* @param {CredentialDto} credentialDto
|
|
22837
|
+
* @param {*} [options] Override http request option.
|
|
22838
|
+
* @throws {RequiredError}
|
|
22839
|
+
*/
|
|
22840
|
+
login(credentialDto: CredentialDto, options?: any): AxiosPromise<LoginResponseDto> {
|
|
22841
|
+
return localVarFp.login(credentialDto, options).then((request) => request(axios, basePath));
|
|
22842
|
+
},
|
|
22694
22843
|
/**
|
|
22695
22844
|
*
|
|
22696
22845
|
* @summary Log out the user
|
|
@@ -22728,6 +22877,16 @@ export interface AuthApiInterface {
|
|
|
22728
22877
|
*/
|
|
22729
22878
|
firebaseAuth(options?: AxiosRequestConfig): AxiosPromise<FirebaseTokenDto>;
|
|
22730
22879
|
|
|
22880
|
+
/**
|
|
22881
|
+
*
|
|
22882
|
+
* @summary Authorize user
|
|
22883
|
+
* @param {CredentialDto} credentialDto
|
|
22884
|
+
* @param {*} [options] Override http request option.
|
|
22885
|
+
* @throws {RequiredError}
|
|
22886
|
+
* @memberof AuthApiInterface
|
|
22887
|
+
*/
|
|
22888
|
+
login(credentialDto: CredentialDto, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto>;
|
|
22889
|
+
|
|
22731
22890
|
/**
|
|
22732
22891
|
*
|
|
22733
22892
|
* @summary Log out the user
|
|
@@ -22767,6 +22926,18 @@ export class AuthApi extends BaseAPI implements AuthApiInterface {
|
|
|
22767
22926
|
return AuthApiFp(this.configuration).firebaseAuth(options).then((request) => request(this.axios, this.basePath));
|
|
22768
22927
|
}
|
|
22769
22928
|
|
|
22929
|
+
/**
|
|
22930
|
+
*
|
|
22931
|
+
* @summary Authorize user
|
|
22932
|
+
* @param {CredentialDto} credentialDto
|
|
22933
|
+
* @param {*} [options] Override http request option.
|
|
22934
|
+
* @throws {RequiredError}
|
|
22935
|
+
* @memberof AuthApi
|
|
22936
|
+
*/
|
|
22937
|
+
public login(credentialDto: CredentialDto, options?: AxiosRequestConfig) {
|
|
22938
|
+
return AuthApiFp(this.configuration).login(credentialDto, options).then((request) => request(this.axios, this.basePath));
|
|
22939
|
+
}
|
|
22940
|
+
|
|
22770
22941
|
/**
|
|
22771
22942
|
*
|
|
22772
22943
|
* @summary Log out the user
|
|
@@ -29974,116 +30145,6 @@ export class LoyaltyIntegerationsApi extends BaseAPI implements LoyaltyIntegerat
|
|
|
29974
30145
|
}
|
|
29975
30146
|
|
|
29976
30147
|
|
|
29977
|
-
/**
|
|
29978
|
-
* MApi - axios parameter creator
|
|
29979
|
-
* @export
|
|
29980
|
-
*/
|
|
29981
|
-
export const MApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
29982
|
-
return {
|
|
29983
|
-
/**
|
|
29984
|
-
*
|
|
29985
|
-
* @param {*} [options] Override http request option.
|
|
29986
|
-
* @throws {RequiredError}
|
|
29987
|
-
*/
|
|
29988
|
-
munchiLogin: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29989
|
-
const localVarPath = `/api/v1/auth/login`;
|
|
29990
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29991
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29992
|
-
let baseOptions;
|
|
29993
|
-
if (configuration) {
|
|
29994
|
-
baseOptions = configuration.baseOptions;
|
|
29995
|
-
}
|
|
29996
|
-
|
|
29997
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29998
|
-
const localVarHeaderParameter = {} as any;
|
|
29999
|
-
const localVarQueryParameter = {} as any;
|
|
30000
|
-
|
|
30001
|
-
|
|
30002
|
-
|
|
30003
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30004
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30005
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30006
|
-
|
|
30007
|
-
return {
|
|
30008
|
-
url: toPathString(localVarUrlObj),
|
|
30009
|
-
options: localVarRequestOptions,
|
|
30010
|
-
};
|
|
30011
|
-
},
|
|
30012
|
-
}
|
|
30013
|
-
};
|
|
30014
|
-
|
|
30015
|
-
/**
|
|
30016
|
-
* MApi - functional programming interface
|
|
30017
|
-
* @export
|
|
30018
|
-
*/
|
|
30019
|
-
export const MApiFp = function(configuration?: Configuration) {
|
|
30020
|
-
const localVarAxiosParamCreator = MApiAxiosParamCreator(configuration)
|
|
30021
|
-
return {
|
|
30022
|
-
/**
|
|
30023
|
-
*
|
|
30024
|
-
* @param {*} [options] Override http request option.
|
|
30025
|
-
* @throws {RequiredError}
|
|
30026
|
-
*/
|
|
30027
|
-
async munchiLogin(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
30028
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.munchiLogin(options);
|
|
30029
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30030
|
-
},
|
|
30031
|
-
}
|
|
30032
|
-
};
|
|
30033
|
-
|
|
30034
|
-
/**
|
|
30035
|
-
* MApi - factory interface
|
|
30036
|
-
* @export
|
|
30037
|
-
*/
|
|
30038
|
-
export const MApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
30039
|
-
const localVarFp = MApiFp(configuration)
|
|
30040
|
-
return {
|
|
30041
|
-
/**
|
|
30042
|
-
*
|
|
30043
|
-
* @param {*} [options] Override http request option.
|
|
30044
|
-
* @throws {RequiredError}
|
|
30045
|
-
*/
|
|
30046
|
-
munchiLogin(options?: any): AxiosPromise<void> {
|
|
30047
|
-
return localVarFp.munchiLogin(options).then((request) => request(axios, basePath));
|
|
30048
|
-
},
|
|
30049
|
-
};
|
|
30050
|
-
};
|
|
30051
|
-
|
|
30052
|
-
/**
|
|
30053
|
-
* MApi - interface
|
|
30054
|
-
* @export
|
|
30055
|
-
* @interface MApi
|
|
30056
|
-
*/
|
|
30057
|
-
export interface MApiInterface {
|
|
30058
|
-
/**
|
|
30059
|
-
*
|
|
30060
|
-
* @param {*} [options] Override http request option.
|
|
30061
|
-
* @throws {RequiredError}
|
|
30062
|
-
* @memberof MApiInterface
|
|
30063
|
-
*/
|
|
30064
|
-
munchiLogin(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
30065
|
-
|
|
30066
|
-
}
|
|
30067
|
-
|
|
30068
|
-
/**
|
|
30069
|
-
* MApi - object-oriented interface
|
|
30070
|
-
* @export
|
|
30071
|
-
* @class MApi
|
|
30072
|
-
* @extends {BaseAPI}
|
|
30073
|
-
*/
|
|
30074
|
-
export class MApi extends BaseAPI implements MApiInterface {
|
|
30075
|
-
/**
|
|
30076
|
-
*
|
|
30077
|
-
* @param {*} [options] Override http request option.
|
|
30078
|
-
* @throws {RequiredError}
|
|
30079
|
-
* @memberof MApi
|
|
30080
|
-
*/
|
|
30081
|
-
public munchiLogin(options?: AxiosRequestConfig) {
|
|
30082
|
-
return MApiFp(this.configuration).munchiLogin(options).then((request) => request(this.axios, this.basePath));
|
|
30083
|
-
}
|
|
30084
|
-
}
|
|
30085
|
-
|
|
30086
|
-
|
|
30087
30148
|
/**
|
|
30088
30149
|
* MenuApi - axios parameter creator
|
|
30089
30150
|
* @export
|
|
@@ -34214,6 +34275,48 @@ export class PluginApi extends BaseAPI implements PluginApiInterface {
|
|
|
34214
34275
|
*/
|
|
34215
34276
|
export const ProductApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34216
34277
|
return {
|
|
34278
|
+
/**
|
|
34279
|
+
*
|
|
34280
|
+
* @summary Generate and save an 8-digit product SKU in Ordering
|
|
34281
|
+
* @param {string} businessId Business ID
|
|
34282
|
+
* @param {string} categoryId Category ID
|
|
34283
|
+
* @param {string} productId Product ID
|
|
34284
|
+
* @param {*} [options] Override http request option.
|
|
34285
|
+
* @throws {RequiredError}
|
|
34286
|
+
*/
|
|
34287
|
+
generateProductSkuV2: async (businessId: string, categoryId: string, productId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
34288
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
34289
|
+
assertParamExists('generateProductSkuV2', 'businessId', businessId)
|
|
34290
|
+
// verify required parameter 'categoryId' is not null or undefined
|
|
34291
|
+
assertParamExists('generateProductSkuV2', 'categoryId', categoryId)
|
|
34292
|
+
// verify required parameter 'productId' is not null or undefined
|
|
34293
|
+
assertParamExists('generateProductSkuV2', 'productId', productId)
|
|
34294
|
+
const localVarPath = `/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku/generate`
|
|
34295
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
34296
|
+
.replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)))
|
|
34297
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
34298
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34299
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34300
|
+
let baseOptions;
|
|
34301
|
+
if (configuration) {
|
|
34302
|
+
baseOptions = configuration.baseOptions;
|
|
34303
|
+
}
|
|
34304
|
+
|
|
34305
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
34306
|
+
const localVarHeaderParameter = {} as any;
|
|
34307
|
+
const localVarQueryParameter = {} as any;
|
|
34308
|
+
|
|
34309
|
+
|
|
34310
|
+
|
|
34311
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34312
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34313
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34314
|
+
|
|
34315
|
+
return {
|
|
34316
|
+
url: toPathString(localVarUrlObj),
|
|
34317
|
+
options: localVarRequestOptions,
|
|
34318
|
+
};
|
|
34319
|
+
},
|
|
34217
34320
|
/**
|
|
34218
34321
|
* Update inventory settings for multiple channels at once
|
|
34219
34322
|
* @summary Update channel inventory (POS, Kiosk, etc.)
|
|
@@ -34257,6 +34360,54 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
34257
34360
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34258
34361
|
localVarRequestOptions.data = serializeDataIfNeeded(updateChannelInventoryDto, localVarRequestOptions, configuration)
|
|
34259
34362
|
|
|
34363
|
+
return {
|
|
34364
|
+
url: toPathString(localVarUrlObj),
|
|
34365
|
+
options: localVarRequestOptions,
|
|
34366
|
+
};
|
|
34367
|
+
},
|
|
34368
|
+
/**
|
|
34369
|
+
*
|
|
34370
|
+
* @summary Update product SKU in Ordering
|
|
34371
|
+
* @param {string} businessId Business ID
|
|
34372
|
+
* @param {string} categoryId Category ID
|
|
34373
|
+
* @param {string} productId Product ID
|
|
34374
|
+
* @param {UpdateProductSkuDto} updateProductSkuDto SKU update payload
|
|
34375
|
+
* @param {*} [options] Override http request option.
|
|
34376
|
+
* @throws {RequiredError}
|
|
34377
|
+
*/
|
|
34378
|
+
updateProductSkuV2: async (businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
34379
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
34380
|
+
assertParamExists('updateProductSkuV2', 'businessId', businessId)
|
|
34381
|
+
// verify required parameter 'categoryId' is not null or undefined
|
|
34382
|
+
assertParamExists('updateProductSkuV2', 'categoryId', categoryId)
|
|
34383
|
+
// verify required parameter 'productId' is not null or undefined
|
|
34384
|
+
assertParamExists('updateProductSkuV2', 'productId', productId)
|
|
34385
|
+
// verify required parameter 'updateProductSkuDto' is not null or undefined
|
|
34386
|
+
assertParamExists('updateProductSkuV2', 'updateProductSkuDto', updateProductSkuDto)
|
|
34387
|
+
const localVarPath = `/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/sku`
|
|
34388
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
34389
|
+
.replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)))
|
|
34390
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
34391
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34392
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34393
|
+
let baseOptions;
|
|
34394
|
+
if (configuration) {
|
|
34395
|
+
baseOptions = configuration.baseOptions;
|
|
34396
|
+
}
|
|
34397
|
+
|
|
34398
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
34399
|
+
const localVarHeaderParameter = {} as any;
|
|
34400
|
+
const localVarQueryParameter = {} as any;
|
|
34401
|
+
|
|
34402
|
+
|
|
34403
|
+
|
|
34404
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34405
|
+
|
|
34406
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34407
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34408
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34409
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateProductSkuDto, localVarRequestOptions, configuration)
|
|
34410
|
+
|
|
34260
34411
|
return {
|
|
34261
34412
|
url: toPathString(localVarUrlObj),
|
|
34262
34413
|
options: localVarRequestOptions,
|
|
@@ -34272,6 +34423,19 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
34272
34423
|
export const ProductApiFp = function(configuration?: Configuration) {
|
|
34273
34424
|
const localVarAxiosParamCreator = ProductApiAxiosParamCreator(configuration)
|
|
34274
34425
|
return {
|
|
34426
|
+
/**
|
|
34427
|
+
*
|
|
34428
|
+
* @summary Generate and save an 8-digit product SKU in Ordering
|
|
34429
|
+
* @param {string} businessId Business ID
|
|
34430
|
+
* @param {string} categoryId Category ID
|
|
34431
|
+
* @param {string} productId Product ID
|
|
34432
|
+
* @param {*} [options] Override http request option.
|
|
34433
|
+
* @throws {RequiredError}
|
|
34434
|
+
*/
|
|
34435
|
+
async generateProductSkuV2(businessId: string, categoryId: string, productId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSkuResponseDto>> {
|
|
34436
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generateProductSkuV2(businessId, categoryId, productId, options);
|
|
34437
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
34438
|
+
},
|
|
34275
34439
|
/**
|
|
34276
34440
|
* Update inventory settings for multiple channels at once
|
|
34277
34441
|
* @summary Update channel inventory (POS, Kiosk, etc.)
|
|
@@ -34286,6 +34450,20 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
|
34286
34450
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateChannelInventoryV2(businessId, categoryId, productId, updateChannelInventoryDto, options);
|
|
34287
34451
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
34288
34452
|
},
|
|
34453
|
+
/**
|
|
34454
|
+
*
|
|
34455
|
+
* @summary Update product SKU in Ordering
|
|
34456
|
+
* @param {string} businessId Business ID
|
|
34457
|
+
* @param {string} categoryId Category ID
|
|
34458
|
+
* @param {string} productId Product ID
|
|
34459
|
+
* @param {UpdateProductSkuDto} updateProductSkuDto SKU update payload
|
|
34460
|
+
* @param {*} [options] Override http request option.
|
|
34461
|
+
* @throws {RequiredError}
|
|
34462
|
+
*/
|
|
34463
|
+
async updateProductSkuV2(businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSkuResponseDto>> {
|
|
34464
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductSkuV2(businessId, categoryId, productId, updateProductSkuDto, options);
|
|
34465
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
34466
|
+
},
|
|
34289
34467
|
}
|
|
34290
34468
|
};
|
|
34291
34469
|
|
|
@@ -34296,6 +34474,18 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
|
34296
34474
|
export const ProductApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
34297
34475
|
const localVarFp = ProductApiFp(configuration)
|
|
34298
34476
|
return {
|
|
34477
|
+
/**
|
|
34478
|
+
*
|
|
34479
|
+
* @summary Generate and save an 8-digit product SKU in Ordering
|
|
34480
|
+
* @param {string} businessId Business ID
|
|
34481
|
+
* @param {string} categoryId Category ID
|
|
34482
|
+
* @param {string} productId Product ID
|
|
34483
|
+
* @param {*} [options] Override http request option.
|
|
34484
|
+
* @throws {RequiredError}
|
|
34485
|
+
*/
|
|
34486
|
+
generateProductSkuV2(businessId: string, categoryId: string, productId: string, options?: any): AxiosPromise<ProductSkuResponseDto> {
|
|
34487
|
+
return localVarFp.generateProductSkuV2(businessId, categoryId, productId, options).then((request) => request(axios, basePath));
|
|
34488
|
+
},
|
|
34299
34489
|
/**
|
|
34300
34490
|
* Update inventory settings for multiple channels at once
|
|
34301
34491
|
* @summary Update channel inventory (POS, Kiosk, etc.)
|
|
@@ -34309,6 +34499,19 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
|
34309
34499
|
updateChannelInventoryV2(businessId: string, categoryId: string, productId: string, updateChannelInventoryDto: UpdateChannelInventoryDto, options?: any): AxiosPromise<Array<ChannelInventoryResponseDto>> {
|
|
34310
34500
|
return localVarFp.updateChannelInventoryV2(businessId, categoryId, productId, updateChannelInventoryDto, options).then((request) => request(axios, basePath));
|
|
34311
34501
|
},
|
|
34502
|
+
/**
|
|
34503
|
+
*
|
|
34504
|
+
* @summary Update product SKU in Ordering
|
|
34505
|
+
* @param {string} businessId Business ID
|
|
34506
|
+
* @param {string} categoryId Category ID
|
|
34507
|
+
* @param {string} productId Product ID
|
|
34508
|
+
* @param {UpdateProductSkuDto} updateProductSkuDto SKU update payload
|
|
34509
|
+
* @param {*} [options] Override http request option.
|
|
34510
|
+
* @throws {RequiredError}
|
|
34511
|
+
*/
|
|
34512
|
+
updateProductSkuV2(businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: any): AxiosPromise<ProductSkuResponseDto> {
|
|
34513
|
+
return localVarFp.updateProductSkuV2(businessId, categoryId, productId, updateProductSkuDto, options).then((request) => request(axios, basePath));
|
|
34514
|
+
},
|
|
34312
34515
|
};
|
|
34313
34516
|
};
|
|
34314
34517
|
|
|
@@ -34318,6 +34521,18 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
|
34318
34521
|
* @interface ProductApi
|
|
34319
34522
|
*/
|
|
34320
34523
|
export interface ProductApiInterface {
|
|
34524
|
+
/**
|
|
34525
|
+
*
|
|
34526
|
+
* @summary Generate and save an 8-digit product SKU in Ordering
|
|
34527
|
+
* @param {string} businessId Business ID
|
|
34528
|
+
* @param {string} categoryId Category ID
|
|
34529
|
+
* @param {string} productId Product ID
|
|
34530
|
+
* @param {*} [options] Override http request option.
|
|
34531
|
+
* @throws {RequiredError}
|
|
34532
|
+
* @memberof ProductApiInterface
|
|
34533
|
+
*/
|
|
34534
|
+
generateProductSkuV2(businessId: string, categoryId: string, productId: string, options?: AxiosRequestConfig): AxiosPromise<ProductSkuResponseDto>;
|
|
34535
|
+
|
|
34321
34536
|
/**
|
|
34322
34537
|
* Update inventory settings for multiple channels at once
|
|
34323
34538
|
* @summary Update channel inventory (POS, Kiosk, etc.)
|
|
@@ -34331,6 +34546,19 @@ export interface ProductApiInterface {
|
|
|
34331
34546
|
*/
|
|
34332
34547
|
updateChannelInventoryV2(businessId: string, categoryId: string, productId: string, updateChannelInventoryDto: UpdateChannelInventoryDto, options?: AxiosRequestConfig): AxiosPromise<Array<ChannelInventoryResponseDto>>;
|
|
34333
34548
|
|
|
34549
|
+
/**
|
|
34550
|
+
*
|
|
34551
|
+
* @summary Update product SKU in Ordering
|
|
34552
|
+
* @param {string} businessId Business ID
|
|
34553
|
+
* @param {string} categoryId Category ID
|
|
34554
|
+
* @param {string} productId Product ID
|
|
34555
|
+
* @param {UpdateProductSkuDto} updateProductSkuDto SKU update payload
|
|
34556
|
+
* @param {*} [options] Override http request option.
|
|
34557
|
+
* @throws {RequiredError}
|
|
34558
|
+
* @memberof ProductApiInterface
|
|
34559
|
+
*/
|
|
34560
|
+
updateProductSkuV2(businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: AxiosRequestConfig): AxiosPromise<ProductSkuResponseDto>;
|
|
34561
|
+
|
|
34334
34562
|
}
|
|
34335
34563
|
|
|
34336
34564
|
/**
|
|
@@ -34340,6 +34568,20 @@ export interface ProductApiInterface {
|
|
|
34340
34568
|
* @extends {BaseAPI}
|
|
34341
34569
|
*/
|
|
34342
34570
|
export class ProductApi extends BaseAPI implements ProductApiInterface {
|
|
34571
|
+
/**
|
|
34572
|
+
*
|
|
34573
|
+
* @summary Generate and save an 8-digit product SKU in Ordering
|
|
34574
|
+
* @param {string} businessId Business ID
|
|
34575
|
+
* @param {string} categoryId Category ID
|
|
34576
|
+
* @param {string} productId Product ID
|
|
34577
|
+
* @param {*} [options] Override http request option.
|
|
34578
|
+
* @throws {RequiredError}
|
|
34579
|
+
* @memberof ProductApi
|
|
34580
|
+
*/
|
|
34581
|
+
public generateProductSkuV2(businessId: string, categoryId: string, productId: string, options?: AxiosRequestConfig) {
|
|
34582
|
+
return ProductApiFp(this.configuration).generateProductSkuV2(businessId, categoryId, productId, options).then((request) => request(this.axios, this.basePath));
|
|
34583
|
+
}
|
|
34584
|
+
|
|
34343
34585
|
/**
|
|
34344
34586
|
* Update inventory settings for multiple channels at once
|
|
34345
34587
|
* @summary Update channel inventory (POS, Kiosk, etc.)
|
|
@@ -34354,6 +34596,21 @@ export class ProductApi extends BaseAPI implements ProductApiInterface {
|
|
|
34354
34596
|
public updateChannelInventoryV2(businessId: string, categoryId: string, productId: string, updateChannelInventoryDto: UpdateChannelInventoryDto, options?: AxiosRequestConfig) {
|
|
34355
34597
|
return ProductApiFp(this.configuration).updateChannelInventoryV2(businessId, categoryId, productId, updateChannelInventoryDto, options).then((request) => request(this.axios, this.basePath));
|
|
34356
34598
|
}
|
|
34599
|
+
|
|
34600
|
+
/**
|
|
34601
|
+
*
|
|
34602
|
+
* @summary Update product SKU in Ordering
|
|
34603
|
+
* @param {string} businessId Business ID
|
|
34604
|
+
* @param {string} categoryId Category ID
|
|
34605
|
+
* @param {string} productId Product ID
|
|
34606
|
+
* @param {UpdateProductSkuDto} updateProductSkuDto SKU update payload
|
|
34607
|
+
* @param {*} [options] Override http request option.
|
|
34608
|
+
* @throws {RequiredError}
|
|
34609
|
+
* @memberof ProductApi
|
|
34610
|
+
*/
|
|
34611
|
+
public updateProductSkuV2(businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: AxiosRequestConfig) {
|
|
34612
|
+
return ProductApiFp(this.configuration).updateProductSkuV2(businessId, categoryId, productId, updateProductSkuDto, options).then((request) => request(this.axios, this.basePath));
|
|
34613
|
+
}
|
|
34357
34614
|
}
|
|
34358
34615
|
|
|
34359
34616
|
|
package/package.json
CHANGED
package/src/version.ts
CHANGED