@infisale-client/api-client 1.2.3 → 1.2.5
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/api/api.d.ts +272 -4
- package/dist/api/api.js +358 -2
- package/dist/api/api.mjs +352 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -662,7 +662,7 @@ export interface IBasketResponse {
|
|
|
662
662
|
* @type {string}
|
|
663
663
|
* @memberof IBasketResponse
|
|
664
664
|
*/
|
|
665
|
-
'user'
|
|
665
|
+
'user'?: string;
|
|
666
666
|
/**
|
|
667
667
|
*
|
|
668
668
|
* @type {Array<IBasketResponseItemsInner>}
|
|
@@ -696,10 +696,10 @@ export interface IBasketResponseItemsInner {
|
|
|
696
696
|
'amount': number;
|
|
697
697
|
/**
|
|
698
698
|
*
|
|
699
|
-
* @type {
|
|
699
|
+
* @type {IProductResponse}
|
|
700
700
|
* @memberof IBasketResponseItemsInner
|
|
701
701
|
*/
|
|
702
|
-
'product':
|
|
702
|
+
'product': IProductResponse;
|
|
703
703
|
/**
|
|
704
704
|
*
|
|
705
705
|
* @type {string}
|
|
@@ -7137,7 +7137,7 @@ export interface PickIBasketExcludeKeyofIBasketItems {
|
|
|
7137
7137
|
* @type {string}
|
|
7138
7138
|
* @memberof PickIBasketExcludeKeyofIBasketItems
|
|
7139
7139
|
*/
|
|
7140
|
-
'user'
|
|
7140
|
+
'user'?: string;
|
|
7141
7141
|
}
|
|
7142
7142
|
/**
|
|
7143
7143
|
* From T, pick a set of properties whose keys are in the union K
|
|
@@ -9054,6 +9054,274 @@ export declare class AuthApi extends BaseAPI {
|
|
|
9054
9054
|
*/
|
|
9055
9055
|
socialLogin(requestParameters: AuthApiSocialLoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ILoginResponse, any>>;
|
|
9056
9056
|
}
|
|
9057
|
+
/**
|
|
9058
|
+
* BasketApi - axios parameter creator
|
|
9059
|
+
* @export
|
|
9060
|
+
*/
|
|
9061
|
+
export declare const BasketApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
9062
|
+
/**
|
|
9063
|
+
*
|
|
9064
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
9065
|
+
* @param {string} [basketId]
|
|
9066
|
+
* @param {*} [options] Override http request option.
|
|
9067
|
+
* @throws {RequiredError}
|
|
9068
|
+
*/
|
|
9069
|
+
addProductToBasket: (iAddProductToBasketRequest: IAddProductToBasketRequest, basketId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9070
|
+
/**
|
|
9071
|
+
*
|
|
9072
|
+
* @param {string} itemId
|
|
9073
|
+
* @param {string} [basketId]
|
|
9074
|
+
* @param {*} [options] Override http request option.
|
|
9075
|
+
* @throws {RequiredError}
|
|
9076
|
+
*/
|
|
9077
|
+
deleteProductFromBasket: (itemId: string, basketId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9078
|
+
/**
|
|
9079
|
+
*
|
|
9080
|
+
* @param {string} [id]
|
|
9081
|
+
* @param {*} [options] Override http request option.
|
|
9082
|
+
* @throws {RequiredError}
|
|
9083
|
+
*/
|
|
9084
|
+
getBasket: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9085
|
+
/**
|
|
9086
|
+
*
|
|
9087
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
9088
|
+
* @param {*} [options] Override http request option.
|
|
9089
|
+
* @throws {RequiredError}
|
|
9090
|
+
*/
|
|
9091
|
+
mergeBasket: (iBasketMergeRequest: IBasketMergeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9092
|
+
/**
|
|
9093
|
+
*
|
|
9094
|
+
* @param {string} itemId
|
|
9095
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
9096
|
+
* @param {string} [basketId]
|
|
9097
|
+
* @param {*} [options] Override http request option.
|
|
9098
|
+
* @throws {RequiredError}
|
|
9099
|
+
*/
|
|
9100
|
+
updateAmount: (itemId: string, iBasketUpdateAmountRequest: IBasketUpdateAmountRequest, basketId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9101
|
+
};
|
|
9102
|
+
/**
|
|
9103
|
+
* BasketApi - functional programming interface
|
|
9104
|
+
* @export
|
|
9105
|
+
*/
|
|
9106
|
+
export declare const BasketApiFp: (configuration?: Configuration) => {
|
|
9107
|
+
/**
|
|
9108
|
+
*
|
|
9109
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
9110
|
+
* @param {string} [basketId]
|
|
9111
|
+
* @param {*} [options] Override http request option.
|
|
9112
|
+
* @throws {RequiredError}
|
|
9113
|
+
*/
|
|
9114
|
+
addProductToBasket(iAddProductToBasketRequest: IAddProductToBasketRequest, basketId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
9115
|
+
/**
|
|
9116
|
+
*
|
|
9117
|
+
* @param {string} itemId
|
|
9118
|
+
* @param {string} [basketId]
|
|
9119
|
+
* @param {*} [options] Override http request option.
|
|
9120
|
+
* @throws {RequiredError}
|
|
9121
|
+
*/
|
|
9122
|
+
deleteProductFromBasket(itemId: string, basketId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
9123
|
+
/**
|
|
9124
|
+
*
|
|
9125
|
+
* @param {string} [id]
|
|
9126
|
+
* @param {*} [options] Override http request option.
|
|
9127
|
+
* @throws {RequiredError}
|
|
9128
|
+
*/
|
|
9129
|
+
getBasket(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
|
|
9130
|
+
/**
|
|
9131
|
+
*
|
|
9132
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
9133
|
+
* @param {*} [options] Override http request option.
|
|
9134
|
+
* @throws {RequiredError}
|
|
9135
|
+
*/
|
|
9136
|
+
mergeBasket(iBasketMergeRequest: IBasketMergeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
9137
|
+
/**
|
|
9138
|
+
*
|
|
9139
|
+
* @param {string} itemId
|
|
9140
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
9141
|
+
* @param {string} [basketId]
|
|
9142
|
+
* @param {*} [options] Override http request option.
|
|
9143
|
+
* @throws {RequiredError}
|
|
9144
|
+
*/
|
|
9145
|
+
updateAmount(itemId: string, iBasketUpdateAmountRequest: IBasketUpdateAmountRequest, basketId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
9146
|
+
};
|
|
9147
|
+
/**
|
|
9148
|
+
* BasketApi - factory interface
|
|
9149
|
+
* @export
|
|
9150
|
+
*/
|
|
9151
|
+
export declare const BasketApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
9152
|
+
/**
|
|
9153
|
+
*
|
|
9154
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
9155
|
+
* @param {*} [options] Override http request option.
|
|
9156
|
+
* @throws {RequiredError}
|
|
9157
|
+
*/
|
|
9158
|
+
addProductToBasket(requestParameters: BasketApiAddProductToBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
9159
|
+
/**
|
|
9160
|
+
*
|
|
9161
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
9162
|
+
* @param {*} [options] Override http request option.
|
|
9163
|
+
* @throws {RequiredError}
|
|
9164
|
+
*/
|
|
9165
|
+
deleteProductFromBasket(requestParameters: BasketApiDeleteProductFromBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
9166
|
+
/**
|
|
9167
|
+
*
|
|
9168
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
9169
|
+
* @param {*} [options] Override http request option.
|
|
9170
|
+
* @throws {RequiredError}
|
|
9171
|
+
*/
|
|
9172
|
+
getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketResponse>;
|
|
9173
|
+
/**
|
|
9174
|
+
*
|
|
9175
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
9176
|
+
* @param {*} [options] Override http request option.
|
|
9177
|
+
* @throws {RequiredError}
|
|
9178
|
+
*/
|
|
9179
|
+
mergeBasket(requestParameters: BasketApiMergeBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
9180
|
+
/**
|
|
9181
|
+
*
|
|
9182
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
9183
|
+
* @param {*} [options] Override http request option.
|
|
9184
|
+
* @throws {RequiredError}
|
|
9185
|
+
*/
|
|
9186
|
+
updateAmount(requestParameters: BasketApiUpdateAmountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
9187
|
+
};
|
|
9188
|
+
/**
|
|
9189
|
+
* Request parameters for addProductToBasket operation in BasketApi.
|
|
9190
|
+
* @export
|
|
9191
|
+
* @interface BasketApiAddProductToBasketRequest
|
|
9192
|
+
*/
|
|
9193
|
+
export interface BasketApiAddProductToBasketRequest {
|
|
9194
|
+
/**
|
|
9195
|
+
*
|
|
9196
|
+
* @type {IAddProductToBasketRequest}
|
|
9197
|
+
* @memberof BasketApiAddProductToBasket
|
|
9198
|
+
*/
|
|
9199
|
+
readonly iAddProductToBasketRequest: IAddProductToBasketRequest;
|
|
9200
|
+
/**
|
|
9201
|
+
*
|
|
9202
|
+
* @type {string}
|
|
9203
|
+
* @memberof BasketApiAddProductToBasket
|
|
9204
|
+
*/
|
|
9205
|
+
readonly basketId?: string;
|
|
9206
|
+
}
|
|
9207
|
+
/**
|
|
9208
|
+
* Request parameters for deleteProductFromBasket operation in BasketApi.
|
|
9209
|
+
* @export
|
|
9210
|
+
* @interface BasketApiDeleteProductFromBasketRequest
|
|
9211
|
+
*/
|
|
9212
|
+
export interface BasketApiDeleteProductFromBasketRequest {
|
|
9213
|
+
/**
|
|
9214
|
+
*
|
|
9215
|
+
* @type {string}
|
|
9216
|
+
* @memberof BasketApiDeleteProductFromBasket
|
|
9217
|
+
*/
|
|
9218
|
+
readonly itemId: string;
|
|
9219
|
+
/**
|
|
9220
|
+
*
|
|
9221
|
+
* @type {string}
|
|
9222
|
+
* @memberof BasketApiDeleteProductFromBasket
|
|
9223
|
+
*/
|
|
9224
|
+
readonly basketId?: string;
|
|
9225
|
+
}
|
|
9226
|
+
/**
|
|
9227
|
+
* Request parameters for getBasket operation in BasketApi.
|
|
9228
|
+
* @export
|
|
9229
|
+
* @interface BasketApiGetBasketRequest
|
|
9230
|
+
*/
|
|
9231
|
+
export interface BasketApiGetBasketRequest {
|
|
9232
|
+
/**
|
|
9233
|
+
*
|
|
9234
|
+
* @type {string}
|
|
9235
|
+
* @memberof BasketApiGetBasket
|
|
9236
|
+
*/
|
|
9237
|
+
readonly id?: string;
|
|
9238
|
+
}
|
|
9239
|
+
/**
|
|
9240
|
+
* Request parameters for mergeBasket operation in BasketApi.
|
|
9241
|
+
* @export
|
|
9242
|
+
* @interface BasketApiMergeBasketRequest
|
|
9243
|
+
*/
|
|
9244
|
+
export interface BasketApiMergeBasketRequest {
|
|
9245
|
+
/**
|
|
9246
|
+
*
|
|
9247
|
+
* @type {IBasketMergeRequest}
|
|
9248
|
+
* @memberof BasketApiMergeBasket
|
|
9249
|
+
*/
|
|
9250
|
+
readonly iBasketMergeRequest: IBasketMergeRequest;
|
|
9251
|
+
}
|
|
9252
|
+
/**
|
|
9253
|
+
* Request parameters for updateAmount operation in BasketApi.
|
|
9254
|
+
* @export
|
|
9255
|
+
* @interface BasketApiUpdateAmountRequest
|
|
9256
|
+
*/
|
|
9257
|
+
export interface BasketApiUpdateAmountRequest {
|
|
9258
|
+
/**
|
|
9259
|
+
*
|
|
9260
|
+
* @type {string}
|
|
9261
|
+
* @memberof BasketApiUpdateAmount
|
|
9262
|
+
*/
|
|
9263
|
+
readonly itemId: string;
|
|
9264
|
+
/**
|
|
9265
|
+
*
|
|
9266
|
+
* @type {IBasketUpdateAmountRequest}
|
|
9267
|
+
* @memberof BasketApiUpdateAmount
|
|
9268
|
+
*/
|
|
9269
|
+
readonly iBasketUpdateAmountRequest: IBasketUpdateAmountRequest;
|
|
9270
|
+
/**
|
|
9271
|
+
*
|
|
9272
|
+
* @type {string}
|
|
9273
|
+
* @memberof BasketApiUpdateAmount
|
|
9274
|
+
*/
|
|
9275
|
+
readonly basketId?: string;
|
|
9276
|
+
}
|
|
9277
|
+
/**
|
|
9278
|
+
* BasketApi - object-oriented interface
|
|
9279
|
+
* @export
|
|
9280
|
+
* @class BasketApi
|
|
9281
|
+
* @extends {BaseAPI}
|
|
9282
|
+
*/
|
|
9283
|
+
export declare class BasketApi extends BaseAPI {
|
|
9284
|
+
/**
|
|
9285
|
+
*
|
|
9286
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
9287
|
+
* @param {*} [options] Override http request option.
|
|
9288
|
+
* @throws {RequiredError}
|
|
9289
|
+
* @memberof BasketApi
|
|
9290
|
+
*/
|
|
9291
|
+
addProductToBasket(requestParameters: BasketApiAddProductToBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
9292
|
+
/**
|
|
9293
|
+
*
|
|
9294
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
9295
|
+
* @param {*} [options] Override http request option.
|
|
9296
|
+
* @throws {RequiredError}
|
|
9297
|
+
* @memberof BasketApi
|
|
9298
|
+
*/
|
|
9299
|
+
deleteProductFromBasket(requestParameters: BasketApiDeleteProductFromBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
9300
|
+
/**
|
|
9301
|
+
*
|
|
9302
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
9303
|
+
* @param {*} [options] Override http request option.
|
|
9304
|
+
* @throws {RequiredError}
|
|
9305
|
+
* @memberof BasketApi
|
|
9306
|
+
*/
|
|
9307
|
+
getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketResponse, any>>;
|
|
9308
|
+
/**
|
|
9309
|
+
*
|
|
9310
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
9311
|
+
* @param {*} [options] Override http request option.
|
|
9312
|
+
* @throws {RequiredError}
|
|
9313
|
+
* @memberof BasketApi
|
|
9314
|
+
*/
|
|
9315
|
+
mergeBasket(requestParameters: BasketApiMergeBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
9316
|
+
/**
|
|
9317
|
+
*
|
|
9318
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
9319
|
+
* @param {*} [options] Override http request option.
|
|
9320
|
+
* @throws {RequiredError}
|
|
9321
|
+
* @memberof BasketApi
|
|
9322
|
+
*/
|
|
9323
|
+
updateAmount(requestParameters: BasketApiUpdateAmountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
9324
|
+
}
|
|
9057
9325
|
/**
|
|
9058
9326
|
* CollectionApi - axios parameter creator
|
|
9059
9327
|
* @export
|
package/dist/api/api.js
CHANGED
|
@@ -16,8 +16,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
20
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = void 0;
|
|
19
|
+
exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.ThemeTypeEnum = exports.TemplateTypeEnum = exports.SitemapTypeEnum = exports.ProductDetailImageZoomTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PageTypeEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.FontSizeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
|
|
20
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = void 0;
|
|
21
21
|
const axios_1 = __importDefault(require("axios"));
|
|
22
22
|
// Some imports not used depending on template conditions
|
|
23
23
|
// @ts-ignore
|
|
@@ -1346,6 +1346,362 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
exports.AuthApi = AuthApi;
|
|
1349
|
+
/**
|
|
1350
|
+
* BasketApi - axios parameter creator
|
|
1351
|
+
* @export
|
|
1352
|
+
*/
|
|
1353
|
+
const BasketApiAxiosParamCreator = function (configuration) {
|
|
1354
|
+
return {
|
|
1355
|
+
/**
|
|
1356
|
+
*
|
|
1357
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
1358
|
+
* @param {string} [basketId]
|
|
1359
|
+
* @param {*} [options] Override http request option.
|
|
1360
|
+
* @throws {RequiredError}
|
|
1361
|
+
*/
|
|
1362
|
+
addProductToBasket: async (iAddProductToBasketRequest, basketId, options = {}) => {
|
|
1363
|
+
// verify required parameter 'iAddProductToBasketRequest' is not null or undefined
|
|
1364
|
+
(0, common_1.assertParamExists)('addProductToBasket', 'iAddProductToBasketRequest', iAddProductToBasketRequest);
|
|
1365
|
+
const localVarPath = `/api/baskets/add-product`;
|
|
1366
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1367
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1368
|
+
let baseOptions;
|
|
1369
|
+
if (configuration) {
|
|
1370
|
+
baseOptions = configuration.baseOptions;
|
|
1371
|
+
}
|
|
1372
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1373
|
+
const localVarHeaderParameter = {};
|
|
1374
|
+
const localVarQueryParameter = {};
|
|
1375
|
+
if (basketId !== undefined) {
|
|
1376
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1377
|
+
}
|
|
1378
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1379
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1380
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1381
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1382
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iAddProductToBasketRequest, localVarRequestOptions, configuration);
|
|
1383
|
+
return {
|
|
1384
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1385
|
+
options: localVarRequestOptions,
|
|
1386
|
+
};
|
|
1387
|
+
},
|
|
1388
|
+
/**
|
|
1389
|
+
*
|
|
1390
|
+
* @param {string} itemId
|
|
1391
|
+
* @param {string} [basketId]
|
|
1392
|
+
* @param {*} [options] Override http request option.
|
|
1393
|
+
* @throws {RequiredError}
|
|
1394
|
+
*/
|
|
1395
|
+
deleteProductFromBasket: async (itemId, basketId, options = {}) => {
|
|
1396
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
1397
|
+
(0, common_1.assertParamExists)('deleteProductFromBasket', 'itemId', itemId);
|
|
1398
|
+
const localVarPath = `/api/baskets/delete-product/{item_id}`
|
|
1399
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1400
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1401
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1402
|
+
let baseOptions;
|
|
1403
|
+
if (configuration) {
|
|
1404
|
+
baseOptions = configuration.baseOptions;
|
|
1405
|
+
}
|
|
1406
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1407
|
+
const localVarHeaderParameter = {};
|
|
1408
|
+
const localVarQueryParameter = {};
|
|
1409
|
+
if (basketId !== undefined) {
|
|
1410
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1411
|
+
}
|
|
1412
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1413
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1414
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1415
|
+
return {
|
|
1416
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1417
|
+
options: localVarRequestOptions,
|
|
1418
|
+
};
|
|
1419
|
+
},
|
|
1420
|
+
/**
|
|
1421
|
+
*
|
|
1422
|
+
* @param {string} [id]
|
|
1423
|
+
* @param {*} [options] Override http request option.
|
|
1424
|
+
* @throws {RequiredError}
|
|
1425
|
+
*/
|
|
1426
|
+
getBasket: async (id, options = {}) => {
|
|
1427
|
+
const localVarPath = `/api/baskets/single`;
|
|
1428
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1429
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1430
|
+
let baseOptions;
|
|
1431
|
+
if (configuration) {
|
|
1432
|
+
baseOptions = configuration.baseOptions;
|
|
1433
|
+
}
|
|
1434
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1435
|
+
const localVarHeaderParameter = {};
|
|
1436
|
+
const localVarQueryParameter = {};
|
|
1437
|
+
if (id !== undefined) {
|
|
1438
|
+
localVarQueryParameter['id'] = id;
|
|
1439
|
+
}
|
|
1440
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1441
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1442
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1443
|
+
return {
|
|
1444
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1445
|
+
options: localVarRequestOptions,
|
|
1446
|
+
};
|
|
1447
|
+
},
|
|
1448
|
+
/**
|
|
1449
|
+
*
|
|
1450
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
1451
|
+
* @param {*} [options] Override http request option.
|
|
1452
|
+
* @throws {RequiredError}
|
|
1453
|
+
*/
|
|
1454
|
+
mergeBasket: async (iBasketMergeRequest, options = {}) => {
|
|
1455
|
+
// verify required parameter 'iBasketMergeRequest' is not null or undefined
|
|
1456
|
+
(0, common_1.assertParamExists)('mergeBasket', 'iBasketMergeRequest', iBasketMergeRequest);
|
|
1457
|
+
const localVarPath = `/api/baskets/merge`;
|
|
1458
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1459
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1460
|
+
let baseOptions;
|
|
1461
|
+
if (configuration) {
|
|
1462
|
+
baseOptions = configuration.baseOptions;
|
|
1463
|
+
}
|
|
1464
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1465
|
+
const localVarHeaderParameter = {};
|
|
1466
|
+
const localVarQueryParameter = {};
|
|
1467
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1468
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1469
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1470
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1471
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iBasketMergeRequest, localVarRequestOptions, configuration);
|
|
1472
|
+
return {
|
|
1473
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1474
|
+
options: localVarRequestOptions,
|
|
1475
|
+
};
|
|
1476
|
+
},
|
|
1477
|
+
/**
|
|
1478
|
+
*
|
|
1479
|
+
* @param {string} itemId
|
|
1480
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1481
|
+
* @param {string} [basketId]
|
|
1482
|
+
* @param {*} [options] Override http request option.
|
|
1483
|
+
* @throws {RequiredError}
|
|
1484
|
+
*/
|
|
1485
|
+
updateAmount: async (itemId, iBasketUpdateAmountRequest, basketId, options = {}) => {
|
|
1486
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
1487
|
+
(0, common_1.assertParamExists)('updateAmount', 'itemId', itemId);
|
|
1488
|
+
// verify required parameter 'iBasketUpdateAmountRequest' is not null or undefined
|
|
1489
|
+
(0, common_1.assertParamExists)('updateAmount', 'iBasketUpdateAmountRequest', iBasketUpdateAmountRequest);
|
|
1490
|
+
const localVarPath = `/api/baskets/update-amount/{item_id}`
|
|
1491
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1492
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1493
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1494
|
+
let baseOptions;
|
|
1495
|
+
if (configuration) {
|
|
1496
|
+
baseOptions = configuration.baseOptions;
|
|
1497
|
+
}
|
|
1498
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
1499
|
+
const localVarHeaderParameter = {};
|
|
1500
|
+
const localVarQueryParameter = {};
|
|
1501
|
+
if (basketId !== undefined) {
|
|
1502
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1503
|
+
}
|
|
1504
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1505
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1506
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1507
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1508
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iBasketUpdateAmountRequest, localVarRequestOptions, configuration);
|
|
1509
|
+
return {
|
|
1510
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1511
|
+
options: localVarRequestOptions,
|
|
1512
|
+
};
|
|
1513
|
+
},
|
|
1514
|
+
};
|
|
1515
|
+
};
|
|
1516
|
+
exports.BasketApiAxiosParamCreator = BasketApiAxiosParamCreator;
|
|
1517
|
+
/**
|
|
1518
|
+
* BasketApi - functional programming interface
|
|
1519
|
+
* @export
|
|
1520
|
+
*/
|
|
1521
|
+
const BasketApiFp = function (configuration) {
|
|
1522
|
+
const localVarAxiosParamCreator = (0, exports.BasketApiAxiosParamCreator)(configuration);
|
|
1523
|
+
return {
|
|
1524
|
+
/**
|
|
1525
|
+
*
|
|
1526
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
1527
|
+
* @param {string} [basketId]
|
|
1528
|
+
* @param {*} [options] Override http request option.
|
|
1529
|
+
* @throws {RequiredError}
|
|
1530
|
+
*/
|
|
1531
|
+
async addProductToBasket(iAddProductToBasketRequest, basketId, options) {
|
|
1532
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addProductToBasket(iAddProductToBasketRequest, basketId, options);
|
|
1533
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1534
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.addProductToBasket']?.[localVarOperationServerIndex]?.url;
|
|
1535
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1536
|
+
},
|
|
1537
|
+
/**
|
|
1538
|
+
*
|
|
1539
|
+
* @param {string} itemId
|
|
1540
|
+
* @param {string} [basketId]
|
|
1541
|
+
* @param {*} [options] Override http request option.
|
|
1542
|
+
* @throws {RequiredError}
|
|
1543
|
+
*/
|
|
1544
|
+
async deleteProductFromBasket(itemId, basketId, options) {
|
|
1545
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId, basketId, options);
|
|
1546
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1547
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.deleteProductFromBasket']?.[localVarOperationServerIndex]?.url;
|
|
1548
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1549
|
+
},
|
|
1550
|
+
/**
|
|
1551
|
+
*
|
|
1552
|
+
* @param {string} [id]
|
|
1553
|
+
* @param {*} [options] Override http request option.
|
|
1554
|
+
* @throws {RequiredError}
|
|
1555
|
+
*/
|
|
1556
|
+
async getBasket(id, options) {
|
|
1557
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(id, options);
|
|
1558
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1559
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
|
|
1560
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1561
|
+
},
|
|
1562
|
+
/**
|
|
1563
|
+
*
|
|
1564
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
1565
|
+
* @param {*} [options] Override http request option.
|
|
1566
|
+
* @throws {RequiredError}
|
|
1567
|
+
*/
|
|
1568
|
+
async mergeBasket(iBasketMergeRequest, options) {
|
|
1569
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mergeBasket(iBasketMergeRequest, options);
|
|
1570
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1571
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.mergeBasket']?.[localVarOperationServerIndex]?.url;
|
|
1572
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1573
|
+
},
|
|
1574
|
+
/**
|
|
1575
|
+
*
|
|
1576
|
+
* @param {string} itemId
|
|
1577
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1578
|
+
* @param {string} [basketId]
|
|
1579
|
+
* @param {*} [options] Override http request option.
|
|
1580
|
+
* @throws {RequiredError}
|
|
1581
|
+
*/
|
|
1582
|
+
async updateAmount(itemId, iBasketUpdateAmountRequest, basketId, options) {
|
|
1583
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, iBasketUpdateAmountRequest, basketId, options);
|
|
1584
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1585
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.updateAmount']?.[localVarOperationServerIndex]?.url;
|
|
1586
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1587
|
+
},
|
|
1588
|
+
};
|
|
1589
|
+
};
|
|
1590
|
+
exports.BasketApiFp = BasketApiFp;
|
|
1591
|
+
/**
|
|
1592
|
+
* BasketApi - factory interface
|
|
1593
|
+
* @export
|
|
1594
|
+
*/
|
|
1595
|
+
const BasketApiFactory = function (configuration, basePath, axios) {
|
|
1596
|
+
const localVarFp = (0, exports.BasketApiFp)(configuration);
|
|
1597
|
+
return {
|
|
1598
|
+
/**
|
|
1599
|
+
*
|
|
1600
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
1601
|
+
* @param {*} [options] Override http request option.
|
|
1602
|
+
* @throws {RequiredError}
|
|
1603
|
+
*/
|
|
1604
|
+
addProductToBasket(requestParameters, options) {
|
|
1605
|
+
return localVarFp.addProductToBasket(requestParameters.iAddProductToBasketRequest, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1606
|
+
},
|
|
1607
|
+
/**
|
|
1608
|
+
*
|
|
1609
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1610
|
+
* @param {*} [options] Override http request option.
|
|
1611
|
+
* @throws {RequiredError}
|
|
1612
|
+
*/
|
|
1613
|
+
deleteProductFromBasket(requestParameters, options) {
|
|
1614
|
+
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1615
|
+
},
|
|
1616
|
+
/**
|
|
1617
|
+
*
|
|
1618
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
1619
|
+
* @param {*} [options] Override http request option.
|
|
1620
|
+
* @throws {RequiredError}
|
|
1621
|
+
*/
|
|
1622
|
+
getBasket(requestParameters = {}, options) {
|
|
1623
|
+
return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1624
|
+
},
|
|
1625
|
+
/**
|
|
1626
|
+
*
|
|
1627
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
1628
|
+
* @param {*} [options] Override http request option.
|
|
1629
|
+
* @throws {RequiredError}
|
|
1630
|
+
*/
|
|
1631
|
+
mergeBasket(requestParameters, options) {
|
|
1632
|
+
return localVarFp.mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(axios, basePath));
|
|
1633
|
+
},
|
|
1634
|
+
/**
|
|
1635
|
+
*
|
|
1636
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1637
|
+
* @param {*} [options] Override http request option.
|
|
1638
|
+
* @throws {RequiredError}
|
|
1639
|
+
*/
|
|
1640
|
+
updateAmount(requestParameters, options) {
|
|
1641
|
+
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1642
|
+
},
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
exports.BasketApiFactory = BasketApiFactory;
|
|
1646
|
+
/**
|
|
1647
|
+
* BasketApi - object-oriented interface
|
|
1648
|
+
* @export
|
|
1649
|
+
* @class BasketApi
|
|
1650
|
+
* @extends {BaseAPI}
|
|
1651
|
+
*/
|
|
1652
|
+
class BasketApi extends base_1.BaseAPI {
|
|
1653
|
+
/**
|
|
1654
|
+
*
|
|
1655
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
1656
|
+
* @param {*} [options] Override http request option.
|
|
1657
|
+
* @throws {RequiredError}
|
|
1658
|
+
* @memberof BasketApi
|
|
1659
|
+
*/
|
|
1660
|
+
addProductToBasket(requestParameters, options) {
|
|
1661
|
+
return (0, exports.BasketApiFp)(this.configuration).addProductToBasket(requestParameters.iAddProductToBasketRequest, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1662
|
+
}
|
|
1663
|
+
/**
|
|
1664
|
+
*
|
|
1665
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1666
|
+
* @param {*} [options] Override http request option.
|
|
1667
|
+
* @throws {RequiredError}
|
|
1668
|
+
* @memberof BasketApi
|
|
1669
|
+
*/
|
|
1670
|
+
deleteProductFromBasket(requestParameters, options) {
|
|
1671
|
+
return (0, exports.BasketApiFp)(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1672
|
+
}
|
|
1673
|
+
/**
|
|
1674
|
+
*
|
|
1675
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
1676
|
+
* @param {*} [options] Override http request option.
|
|
1677
|
+
* @throws {RequiredError}
|
|
1678
|
+
* @memberof BasketApi
|
|
1679
|
+
*/
|
|
1680
|
+
getBasket(requestParameters = {}, options) {
|
|
1681
|
+
return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1682
|
+
}
|
|
1683
|
+
/**
|
|
1684
|
+
*
|
|
1685
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
1686
|
+
* @param {*} [options] Override http request option.
|
|
1687
|
+
* @throws {RequiredError}
|
|
1688
|
+
* @memberof BasketApi
|
|
1689
|
+
*/
|
|
1690
|
+
mergeBasket(requestParameters, options) {
|
|
1691
|
+
return (0, exports.BasketApiFp)(this.configuration).mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1692
|
+
}
|
|
1693
|
+
/**
|
|
1694
|
+
*
|
|
1695
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1696
|
+
* @param {*} [options] Override http request option.
|
|
1697
|
+
* @throws {RequiredError}
|
|
1698
|
+
* @memberof BasketApi
|
|
1699
|
+
*/
|
|
1700
|
+
updateAmount(requestParameters, options) {
|
|
1701
|
+
return (0, exports.BasketApiFp)(this.configuration).updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
exports.BasketApi = BasketApi;
|
|
1349
1705
|
/**
|
|
1350
1706
|
* CollectionApi - axios parameter creator
|
|
1351
1707
|
* @export
|
package/dist/api/api.mjs
CHANGED
|
@@ -1328,6 +1328,358 @@ export class AuthApi extends BaseAPI {
|
|
|
1328
1328
|
return AuthApiFp(this.configuration).socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
|
+
/**
|
|
1332
|
+
* BasketApi - axios parameter creator
|
|
1333
|
+
* @export
|
|
1334
|
+
*/
|
|
1335
|
+
export const BasketApiAxiosParamCreator = function (configuration) {
|
|
1336
|
+
return {
|
|
1337
|
+
/**
|
|
1338
|
+
*
|
|
1339
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
1340
|
+
* @param {string} [basketId]
|
|
1341
|
+
* @param {*} [options] Override http request option.
|
|
1342
|
+
* @throws {RequiredError}
|
|
1343
|
+
*/
|
|
1344
|
+
addProductToBasket: async (iAddProductToBasketRequest, basketId, options = {}) => {
|
|
1345
|
+
// verify required parameter 'iAddProductToBasketRequest' is not null or undefined
|
|
1346
|
+
assertParamExists('addProductToBasket', 'iAddProductToBasketRequest', iAddProductToBasketRequest);
|
|
1347
|
+
const localVarPath = `/api/baskets/add-product`;
|
|
1348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1349
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1350
|
+
let baseOptions;
|
|
1351
|
+
if (configuration) {
|
|
1352
|
+
baseOptions = configuration.baseOptions;
|
|
1353
|
+
}
|
|
1354
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1355
|
+
const localVarHeaderParameter = {};
|
|
1356
|
+
const localVarQueryParameter = {};
|
|
1357
|
+
if (basketId !== undefined) {
|
|
1358
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1359
|
+
}
|
|
1360
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1361
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1362
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1363
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1364
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iAddProductToBasketRequest, localVarRequestOptions, configuration);
|
|
1365
|
+
return {
|
|
1366
|
+
url: toPathString(localVarUrlObj),
|
|
1367
|
+
options: localVarRequestOptions,
|
|
1368
|
+
};
|
|
1369
|
+
},
|
|
1370
|
+
/**
|
|
1371
|
+
*
|
|
1372
|
+
* @param {string} itemId
|
|
1373
|
+
* @param {string} [basketId]
|
|
1374
|
+
* @param {*} [options] Override http request option.
|
|
1375
|
+
* @throws {RequiredError}
|
|
1376
|
+
*/
|
|
1377
|
+
deleteProductFromBasket: async (itemId, basketId, options = {}) => {
|
|
1378
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
1379
|
+
assertParamExists('deleteProductFromBasket', 'itemId', itemId);
|
|
1380
|
+
const localVarPath = `/api/baskets/delete-product/{item_id}`
|
|
1381
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1382
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1383
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1384
|
+
let baseOptions;
|
|
1385
|
+
if (configuration) {
|
|
1386
|
+
baseOptions = configuration.baseOptions;
|
|
1387
|
+
}
|
|
1388
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1389
|
+
const localVarHeaderParameter = {};
|
|
1390
|
+
const localVarQueryParameter = {};
|
|
1391
|
+
if (basketId !== undefined) {
|
|
1392
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1393
|
+
}
|
|
1394
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1395
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1396
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1397
|
+
return {
|
|
1398
|
+
url: toPathString(localVarUrlObj),
|
|
1399
|
+
options: localVarRequestOptions,
|
|
1400
|
+
};
|
|
1401
|
+
},
|
|
1402
|
+
/**
|
|
1403
|
+
*
|
|
1404
|
+
* @param {string} [id]
|
|
1405
|
+
* @param {*} [options] Override http request option.
|
|
1406
|
+
* @throws {RequiredError}
|
|
1407
|
+
*/
|
|
1408
|
+
getBasket: async (id, options = {}) => {
|
|
1409
|
+
const localVarPath = `/api/baskets/single`;
|
|
1410
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1411
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1412
|
+
let baseOptions;
|
|
1413
|
+
if (configuration) {
|
|
1414
|
+
baseOptions = configuration.baseOptions;
|
|
1415
|
+
}
|
|
1416
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1417
|
+
const localVarHeaderParameter = {};
|
|
1418
|
+
const localVarQueryParameter = {};
|
|
1419
|
+
if (id !== undefined) {
|
|
1420
|
+
localVarQueryParameter['id'] = id;
|
|
1421
|
+
}
|
|
1422
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1423
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1424
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1425
|
+
return {
|
|
1426
|
+
url: toPathString(localVarUrlObj),
|
|
1427
|
+
options: localVarRequestOptions,
|
|
1428
|
+
};
|
|
1429
|
+
},
|
|
1430
|
+
/**
|
|
1431
|
+
*
|
|
1432
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
1433
|
+
* @param {*} [options] Override http request option.
|
|
1434
|
+
* @throws {RequiredError}
|
|
1435
|
+
*/
|
|
1436
|
+
mergeBasket: async (iBasketMergeRequest, options = {}) => {
|
|
1437
|
+
// verify required parameter 'iBasketMergeRequest' is not null or undefined
|
|
1438
|
+
assertParamExists('mergeBasket', 'iBasketMergeRequest', iBasketMergeRequest);
|
|
1439
|
+
const localVarPath = `/api/baskets/merge`;
|
|
1440
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1441
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1442
|
+
let baseOptions;
|
|
1443
|
+
if (configuration) {
|
|
1444
|
+
baseOptions = configuration.baseOptions;
|
|
1445
|
+
}
|
|
1446
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1447
|
+
const localVarHeaderParameter = {};
|
|
1448
|
+
const localVarQueryParameter = {};
|
|
1449
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1450
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1451
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1452
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1453
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iBasketMergeRequest, localVarRequestOptions, configuration);
|
|
1454
|
+
return {
|
|
1455
|
+
url: toPathString(localVarUrlObj),
|
|
1456
|
+
options: localVarRequestOptions,
|
|
1457
|
+
};
|
|
1458
|
+
},
|
|
1459
|
+
/**
|
|
1460
|
+
*
|
|
1461
|
+
* @param {string} itemId
|
|
1462
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1463
|
+
* @param {string} [basketId]
|
|
1464
|
+
* @param {*} [options] Override http request option.
|
|
1465
|
+
* @throws {RequiredError}
|
|
1466
|
+
*/
|
|
1467
|
+
updateAmount: async (itemId, iBasketUpdateAmountRequest, basketId, options = {}) => {
|
|
1468
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
1469
|
+
assertParamExists('updateAmount', 'itemId', itemId);
|
|
1470
|
+
// verify required parameter 'iBasketUpdateAmountRequest' is not null or undefined
|
|
1471
|
+
assertParamExists('updateAmount', 'iBasketUpdateAmountRequest', iBasketUpdateAmountRequest);
|
|
1472
|
+
const localVarPath = `/api/baskets/update-amount/{item_id}`
|
|
1473
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1474
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1475
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1476
|
+
let baseOptions;
|
|
1477
|
+
if (configuration) {
|
|
1478
|
+
baseOptions = configuration.baseOptions;
|
|
1479
|
+
}
|
|
1480
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
1481
|
+
const localVarHeaderParameter = {};
|
|
1482
|
+
const localVarQueryParameter = {};
|
|
1483
|
+
if (basketId !== undefined) {
|
|
1484
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1485
|
+
}
|
|
1486
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1487
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1488
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1489
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1490
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iBasketUpdateAmountRequest, localVarRequestOptions, configuration);
|
|
1491
|
+
return {
|
|
1492
|
+
url: toPathString(localVarUrlObj),
|
|
1493
|
+
options: localVarRequestOptions,
|
|
1494
|
+
};
|
|
1495
|
+
},
|
|
1496
|
+
};
|
|
1497
|
+
};
|
|
1498
|
+
/**
|
|
1499
|
+
* BasketApi - functional programming interface
|
|
1500
|
+
* @export
|
|
1501
|
+
*/
|
|
1502
|
+
export const BasketApiFp = function (configuration) {
|
|
1503
|
+
const localVarAxiosParamCreator = BasketApiAxiosParamCreator(configuration);
|
|
1504
|
+
return {
|
|
1505
|
+
/**
|
|
1506
|
+
*
|
|
1507
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
1508
|
+
* @param {string} [basketId]
|
|
1509
|
+
* @param {*} [options] Override http request option.
|
|
1510
|
+
* @throws {RequiredError}
|
|
1511
|
+
*/
|
|
1512
|
+
async addProductToBasket(iAddProductToBasketRequest, basketId, options) {
|
|
1513
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addProductToBasket(iAddProductToBasketRequest, basketId, options);
|
|
1514
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1515
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.addProductToBasket']?.[localVarOperationServerIndex]?.url;
|
|
1516
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1517
|
+
},
|
|
1518
|
+
/**
|
|
1519
|
+
*
|
|
1520
|
+
* @param {string} itemId
|
|
1521
|
+
* @param {string} [basketId]
|
|
1522
|
+
* @param {*} [options] Override http request option.
|
|
1523
|
+
* @throws {RequiredError}
|
|
1524
|
+
*/
|
|
1525
|
+
async deleteProductFromBasket(itemId, basketId, options) {
|
|
1526
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId, basketId, options);
|
|
1527
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1528
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.deleteProductFromBasket']?.[localVarOperationServerIndex]?.url;
|
|
1529
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1530
|
+
},
|
|
1531
|
+
/**
|
|
1532
|
+
*
|
|
1533
|
+
* @param {string} [id]
|
|
1534
|
+
* @param {*} [options] Override http request option.
|
|
1535
|
+
* @throws {RequiredError}
|
|
1536
|
+
*/
|
|
1537
|
+
async getBasket(id, options) {
|
|
1538
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(id, options);
|
|
1539
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1540
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
|
|
1541
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1542
|
+
},
|
|
1543
|
+
/**
|
|
1544
|
+
*
|
|
1545
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
1546
|
+
* @param {*} [options] Override http request option.
|
|
1547
|
+
* @throws {RequiredError}
|
|
1548
|
+
*/
|
|
1549
|
+
async mergeBasket(iBasketMergeRequest, options) {
|
|
1550
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mergeBasket(iBasketMergeRequest, options);
|
|
1551
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1552
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.mergeBasket']?.[localVarOperationServerIndex]?.url;
|
|
1553
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1554
|
+
},
|
|
1555
|
+
/**
|
|
1556
|
+
*
|
|
1557
|
+
* @param {string} itemId
|
|
1558
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1559
|
+
* @param {string} [basketId]
|
|
1560
|
+
* @param {*} [options] Override http request option.
|
|
1561
|
+
* @throws {RequiredError}
|
|
1562
|
+
*/
|
|
1563
|
+
async updateAmount(itemId, iBasketUpdateAmountRequest, basketId, options) {
|
|
1564
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, iBasketUpdateAmountRequest, basketId, options);
|
|
1565
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1566
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.updateAmount']?.[localVarOperationServerIndex]?.url;
|
|
1567
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1568
|
+
},
|
|
1569
|
+
};
|
|
1570
|
+
};
|
|
1571
|
+
/**
|
|
1572
|
+
* BasketApi - factory interface
|
|
1573
|
+
* @export
|
|
1574
|
+
*/
|
|
1575
|
+
export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
1576
|
+
const localVarFp = BasketApiFp(configuration);
|
|
1577
|
+
return {
|
|
1578
|
+
/**
|
|
1579
|
+
*
|
|
1580
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
1581
|
+
* @param {*} [options] Override http request option.
|
|
1582
|
+
* @throws {RequiredError}
|
|
1583
|
+
*/
|
|
1584
|
+
addProductToBasket(requestParameters, options) {
|
|
1585
|
+
return localVarFp.addProductToBasket(requestParameters.iAddProductToBasketRequest, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1586
|
+
},
|
|
1587
|
+
/**
|
|
1588
|
+
*
|
|
1589
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1590
|
+
* @param {*} [options] Override http request option.
|
|
1591
|
+
* @throws {RequiredError}
|
|
1592
|
+
*/
|
|
1593
|
+
deleteProductFromBasket(requestParameters, options) {
|
|
1594
|
+
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1595
|
+
},
|
|
1596
|
+
/**
|
|
1597
|
+
*
|
|
1598
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
1599
|
+
* @param {*} [options] Override http request option.
|
|
1600
|
+
* @throws {RequiredError}
|
|
1601
|
+
*/
|
|
1602
|
+
getBasket(requestParameters = {}, options) {
|
|
1603
|
+
return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1604
|
+
},
|
|
1605
|
+
/**
|
|
1606
|
+
*
|
|
1607
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
1608
|
+
* @param {*} [options] Override http request option.
|
|
1609
|
+
* @throws {RequiredError}
|
|
1610
|
+
*/
|
|
1611
|
+
mergeBasket(requestParameters, options) {
|
|
1612
|
+
return localVarFp.mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(axios, basePath));
|
|
1613
|
+
},
|
|
1614
|
+
/**
|
|
1615
|
+
*
|
|
1616
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1617
|
+
* @param {*} [options] Override http request option.
|
|
1618
|
+
* @throws {RequiredError}
|
|
1619
|
+
*/
|
|
1620
|
+
updateAmount(requestParameters, options) {
|
|
1621
|
+
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1622
|
+
},
|
|
1623
|
+
};
|
|
1624
|
+
};
|
|
1625
|
+
/**
|
|
1626
|
+
* BasketApi - object-oriented interface
|
|
1627
|
+
* @export
|
|
1628
|
+
* @class BasketApi
|
|
1629
|
+
* @extends {BaseAPI}
|
|
1630
|
+
*/
|
|
1631
|
+
export class BasketApi extends BaseAPI {
|
|
1632
|
+
/**
|
|
1633
|
+
*
|
|
1634
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
1635
|
+
* @param {*} [options] Override http request option.
|
|
1636
|
+
* @throws {RequiredError}
|
|
1637
|
+
* @memberof BasketApi
|
|
1638
|
+
*/
|
|
1639
|
+
addProductToBasket(requestParameters, options) {
|
|
1640
|
+
return BasketApiFp(this.configuration).addProductToBasket(requestParameters.iAddProductToBasketRequest, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1641
|
+
}
|
|
1642
|
+
/**
|
|
1643
|
+
*
|
|
1644
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1645
|
+
* @param {*} [options] Override http request option.
|
|
1646
|
+
* @throws {RequiredError}
|
|
1647
|
+
* @memberof BasketApi
|
|
1648
|
+
*/
|
|
1649
|
+
deleteProductFromBasket(requestParameters, options) {
|
|
1650
|
+
return BasketApiFp(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
*
|
|
1654
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
1655
|
+
* @param {*} [options] Override http request option.
|
|
1656
|
+
* @throws {RequiredError}
|
|
1657
|
+
* @memberof BasketApi
|
|
1658
|
+
*/
|
|
1659
|
+
getBasket(requestParameters = {}, options) {
|
|
1660
|
+
return BasketApiFp(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
*
|
|
1664
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
1665
|
+
* @param {*} [options] Override http request option.
|
|
1666
|
+
* @throws {RequiredError}
|
|
1667
|
+
* @memberof BasketApi
|
|
1668
|
+
*/
|
|
1669
|
+
mergeBasket(requestParameters, options) {
|
|
1670
|
+
return BasketApiFp(this.configuration).mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
*
|
|
1674
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1675
|
+
* @param {*} [options] Override http request option.
|
|
1676
|
+
* @throws {RequiredError}
|
|
1677
|
+
* @memberof BasketApi
|
|
1678
|
+
*/
|
|
1679
|
+
updateAmount(requestParameters, options) {
|
|
1680
|
+
return BasketApiFp(this.configuration).updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1331
1683
|
/**
|
|
1332
1684
|
* CollectionApi - axios parameter creator
|
|
1333
1685
|
* @export
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ interface IApiClient {
|
|
|
11
11
|
CollectionApi: doc.CollectionApi;
|
|
12
12
|
ContactFormApi: doc.ContactFormApi;
|
|
13
13
|
SitemapApi: doc.SitemapApi;
|
|
14
|
+
BasketApi: doc.BasketApi;
|
|
14
15
|
interceptors: {
|
|
15
16
|
request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
|
|
16
17
|
response: AxiosInterceptorManager<AxiosResponse>;
|
|
@@ -31,6 +32,7 @@ export declare class ApiClient implements IApiClient {
|
|
|
31
32
|
CollectionApi: doc.CollectionApi;
|
|
32
33
|
ContactFormApi: doc.ContactFormApi;
|
|
33
34
|
SitemapApi: doc.SitemapApi;
|
|
35
|
+
BasketApi: doc.BasketApi;
|
|
34
36
|
interceptors: {
|
|
35
37
|
request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
|
|
36
38
|
response: AxiosInterceptorManager<AxiosResponse>;
|
package/dist/index.js
CHANGED
|
@@ -65,6 +65,7 @@ class ApiClient {
|
|
|
65
65
|
this.CollectionApi = new doc.CollectionApi(undefined, this.baseURL, this.api);
|
|
66
66
|
this.ContactFormApi = new doc.ContactFormApi(undefined, this.baseURL, this.api);
|
|
67
67
|
this.SitemapApi = new doc.SitemapApi(undefined, this.baseURL, this.api);
|
|
68
|
+
this.BasketApi = new doc.BasketApi(undefined, this.baseURL, this.api);
|
|
68
69
|
this.interceptors = {
|
|
69
70
|
request: this.api.interceptors.request,
|
|
70
71
|
response: this.api.interceptors.response,
|
package/dist/index.mjs
CHANGED
|
@@ -23,6 +23,7 @@ export class ApiClient {
|
|
|
23
23
|
this.CollectionApi = new doc.CollectionApi(undefined, this.baseURL, this.api);
|
|
24
24
|
this.ContactFormApi = new doc.ContactFormApi(undefined, this.baseURL, this.api);
|
|
25
25
|
this.SitemapApi = new doc.SitemapApi(undefined, this.baseURL, this.api);
|
|
26
|
+
this.BasketApi = new doc.BasketApi(undefined, this.baseURL, this.api);
|
|
26
27
|
this.interceptors = {
|
|
27
28
|
request: this.api.interceptors.request,
|
|
28
29
|
response: this.api.interceptors.response,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "api-client-sdk",
|
|
5
5
|
"author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
|
|
6
6
|
"homepage": "https://github.com/infisale/infisale-client#readme",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "84bd0c5ca67fccbbf22b56dab3c0b69c86aea02a"
|
|
41
41
|
}
|