@infisale-client/api 1.1.25 → 1.1.26
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 +96 -32
- package/dist/api/api.js +87 -22
- package/dist/api/api.mjs +87 -22
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -779,7 +779,13 @@ export interface IBrandCollectionQueryParams {
|
|
|
779
779
|
* @type {string}
|
|
780
780
|
* @memberof IBrandCollectionQueryParams
|
|
781
781
|
*/
|
|
782
|
-
'company_id'
|
|
782
|
+
'company_id'?: string;
|
|
783
|
+
/**
|
|
784
|
+
*
|
|
785
|
+
* @type {string}
|
|
786
|
+
* @memberof IBrandCollectionQueryParams
|
|
787
|
+
*/
|
|
788
|
+
'domain'?: string;
|
|
783
789
|
/**
|
|
784
790
|
*
|
|
785
791
|
* @type {ContentStatusEnum}
|
|
@@ -1065,7 +1071,13 @@ export interface ICategoryCollectionQueryParams {
|
|
|
1065
1071
|
* @type {string}
|
|
1066
1072
|
* @memberof ICategoryCollectionQueryParams
|
|
1067
1073
|
*/
|
|
1068
|
-
'company_id'
|
|
1074
|
+
'company_id'?: string;
|
|
1075
|
+
/**
|
|
1076
|
+
*
|
|
1077
|
+
* @type {string}
|
|
1078
|
+
* @memberof ICategoryCollectionQueryParams
|
|
1079
|
+
*/
|
|
1080
|
+
'domain'?: string;
|
|
1069
1081
|
/**
|
|
1070
1082
|
*
|
|
1071
1083
|
* @type {ContentStatusEnum}
|
|
@@ -5600,12 +5612,6 @@ export interface IResetPasswordRequest {
|
|
|
5600
5612
|
* @memberof IResetPasswordRequest
|
|
5601
5613
|
*/
|
|
5602
5614
|
'code': string;
|
|
5603
|
-
/**
|
|
5604
|
-
*
|
|
5605
|
-
* @type {string}
|
|
5606
|
-
* @memberof IResetPasswordRequest
|
|
5607
|
-
*/
|
|
5608
|
-
'email': string;
|
|
5609
5615
|
}
|
|
5610
5616
|
/**
|
|
5611
5617
|
*
|
|
@@ -8219,6 +8225,13 @@ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
8219
8225
|
* @throws {RequiredError}
|
|
8220
8226
|
*/
|
|
8221
8227
|
socialLogin: (domain: string, iSocialLoginRequest: ISocialLoginRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8228
|
+
/**
|
|
8229
|
+
*
|
|
8230
|
+
* @param {string} code
|
|
8231
|
+
* @param {*} [options] Override http request option.
|
|
8232
|
+
* @throws {RequiredError}
|
|
8233
|
+
*/
|
|
8234
|
+
verifyCode: (code: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8222
8235
|
};
|
|
8223
8236
|
/**
|
|
8224
8237
|
* AuthApi - functional programming interface
|
|
@@ -8281,6 +8294,13 @@ export declare const AuthApiFp: (configuration?: Configuration) => {
|
|
|
8281
8294
|
* @throws {RequiredError}
|
|
8282
8295
|
*/
|
|
8283
8296
|
socialLogin(domain: string, iSocialLoginRequest: ISocialLoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ILoginResponse>>;
|
|
8297
|
+
/**
|
|
8298
|
+
*
|
|
8299
|
+
* @param {string} code
|
|
8300
|
+
* @param {*} [options] Override http request option.
|
|
8301
|
+
* @throws {RequiredError}
|
|
8302
|
+
*/
|
|
8303
|
+
verifyCode(code: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserResponse>>;
|
|
8284
8304
|
};
|
|
8285
8305
|
/**
|
|
8286
8306
|
* AuthApi - factory interface
|
|
@@ -8336,6 +8356,13 @@ export declare const AuthApiFactory: (configuration?: Configuration, basePath?:
|
|
|
8336
8356
|
* @throws {RequiredError}
|
|
8337
8357
|
*/
|
|
8338
8358
|
socialLogin(requestParameters: AuthApiSocialLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<ILoginResponse>;
|
|
8359
|
+
/**
|
|
8360
|
+
*
|
|
8361
|
+
* @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
|
|
8362
|
+
* @param {*} [options] Override http request option.
|
|
8363
|
+
* @throws {RequiredError}
|
|
8364
|
+
*/
|
|
8365
|
+
verifyCode(requestParameters: AuthApiVerifyCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserResponse>;
|
|
8339
8366
|
};
|
|
8340
8367
|
/**
|
|
8341
8368
|
* Request parameters for forgotPassword operation in AuthApi.
|
|
@@ -8470,6 +8497,19 @@ export interface AuthApiSocialLoginRequest {
|
|
|
8470
8497
|
*/
|
|
8471
8498
|
readonly iSocialLoginRequest: ISocialLoginRequest;
|
|
8472
8499
|
}
|
|
8500
|
+
/**
|
|
8501
|
+
* Request parameters for verifyCode operation in AuthApi.
|
|
8502
|
+
* @export
|
|
8503
|
+
* @interface AuthApiVerifyCodeRequest
|
|
8504
|
+
*/
|
|
8505
|
+
export interface AuthApiVerifyCodeRequest {
|
|
8506
|
+
/**
|
|
8507
|
+
*
|
|
8508
|
+
* @type {string}
|
|
8509
|
+
* @memberof AuthApiVerifyCode
|
|
8510
|
+
*/
|
|
8511
|
+
readonly code: string;
|
|
8512
|
+
}
|
|
8473
8513
|
/**
|
|
8474
8514
|
* AuthApi - object-oriented interface
|
|
8475
8515
|
* @export
|
|
@@ -8533,6 +8573,14 @@ export declare class AuthApi extends BaseAPI {
|
|
|
8533
8573
|
* @memberof AuthApi
|
|
8534
8574
|
*/
|
|
8535
8575
|
socialLogin(requestParameters: AuthApiSocialLoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ILoginResponse, any>>;
|
|
8576
|
+
/**
|
|
8577
|
+
*
|
|
8578
|
+
* @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
|
|
8579
|
+
* @param {*} [options] Override http request option.
|
|
8580
|
+
* @throws {RequiredError}
|
|
8581
|
+
* @memberof AuthApi
|
|
8582
|
+
*/
|
|
8583
|
+
verifyCode(requestParameters: AuthApiVerifyCodeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserResponse, any>>;
|
|
8536
8584
|
}
|
|
8537
8585
|
/**
|
|
8538
8586
|
* BasketApi - axios parameter creator
|
|
@@ -8837,7 +8885,6 @@ export declare const BrandApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
8837
8885
|
getBrandById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8838
8886
|
/**
|
|
8839
8887
|
*
|
|
8840
|
-
* @param {string} companyId
|
|
8841
8888
|
* @param {number} [page]
|
|
8842
8889
|
* @param {number} [itemsPerPage]
|
|
8843
8890
|
* @param {string} [search]
|
|
@@ -8846,11 +8893,13 @@ export declare const BrandApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
8846
8893
|
* @param {string} [dateField]
|
|
8847
8894
|
* @param {OrderEnum} [order]
|
|
8848
8895
|
* @param {string} [sort]
|
|
8896
|
+
* @param {string} [companyId]
|
|
8897
|
+
* @param {string} [domain]
|
|
8849
8898
|
* @param {ContentStatusEnum} [status]
|
|
8850
8899
|
* @param {*} [options] Override http request option.
|
|
8851
8900
|
* @throws {RequiredError}
|
|
8852
8901
|
*/
|
|
8853
|
-
getBrands: (
|
|
8902
|
+
getBrands: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, companyId?: string, domain?: string, status?: ContentStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8854
8903
|
/**
|
|
8855
8904
|
*
|
|
8856
8905
|
* @param {string} id
|
|
@@ -8895,7 +8944,6 @@ export declare const BrandApiFp: (configuration?: Configuration) => {
|
|
|
8895
8944
|
getBrandById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBrandResponse>>;
|
|
8896
8945
|
/**
|
|
8897
8946
|
*
|
|
8898
|
-
* @param {string} companyId
|
|
8899
8947
|
* @param {number} [page]
|
|
8900
8948
|
* @param {number} [itemsPerPage]
|
|
8901
8949
|
* @param {string} [search]
|
|
@@ -8904,11 +8952,13 @@ export declare const BrandApiFp: (configuration?: Configuration) => {
|
|
|
8904
8952
|
* @param {string} [dateField]
|
|
8905
8953
|
* @param {OrderEnum} [order]
|
|
8906
8954
|
* @param {string} [sort]
|
|
8955
|
+
* @param {string} [companyId]
|
|
8956
|
+
* @param {string} [domain]
|
|
8907
8957
|
* @param {ContentStatusEnum} [status]
|
|
8908
8958
|
* @param {*} [options] Override http request option.
|
|
8909
8959
|
* @throws {RequiredError}
|
|
8910
8960
|
*/
|
|
8911
|
-
getBrands(
|
|
8961
|
+
getBrands(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, companyId?: string, domain?: string, status?: ContentStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBrandsResponse>>;
|
|
8912
8962
|
/**
|
|
8913
8963
|
*
|
|
8914
8964
|
* @param {string} id
|
|
@@ -8957,7 +9007,7 @@ export declare const BrandApiFactory: (configuration?: Configuration, basePath?:
|
|
|
8957
9007
|
* @param {*} [options] Override http request option.
|
|
8958
9008
|
* @throws {RequiredError}
|
|
8959
9009
|
*/
|
|
8960
|
-
getBrands(requestParameters
|
|
9010
|
+
getBrands(requestParameters?: BrandApiGetBrandsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBrandsResponse>;
|
|
8961
9011
|
/**
|
|
8962
9012
|
*
|
|
8963
9013
|
* @param {BrandApiUpdateBrandRequest} requestParameters Request parameters.
|
|
@@ -9024,12 +9074,6 @@ export interface BrandApiGetBrandByIdRequest {
|
|
|
9024
9074
|
* @interface BrandApiGetBrandsRequest
|
|
9025
9075
|
*/
|
|
9026
9076
|
export interface BrandApiGetBrandsRequest {
|
|
9027
|
-
/**
|
|
9028
|
-
*
|
|
9029
|
-
* @type {string}
|
|
9030
|
-
* @memberof BrandApiGetBrands
|
|
9031
|
-
*/
|
|
9032
|
-
readonly companyId: string;
|
|
9033
9077
|
/**
|
|
9034
9078
|
*
|
|
9035
9079
|
* @type {number}
|
|
@@ -9078,6 +9122,18 @@ export interface BrandApiGetBrandsRequest {
|
|
|
9078
9122
|
* @memberof BrandApiGetBrands
|
|
9079
9123
|
*/
|
|
9080
9124
|
readonly sort?: string;
|
|
9125
|
+
/**
|
|
9126
|
+
*
|
|
9127
|
+
* @type {string}
|
|
9128
|
+
* @memberof BrandApiGetBrands
|
|
9129
|
+
*/
|
|
9130
|
+
readonly companyId?: string;
|
|
9131
|
+
/**
|
|
9132
|
+
*
|
|
9133
|
+
* @type {string}
|
|
9134
|
+
* @memberof BrandApiGetBrands
|
|
9135
|
+
*/
|
|
9136
|
+
readonly domain?: string;
|
|
9081
9137
|
/**
|
|
9082
9138
|
*
|
|
9083
9139
|
* @type {ContentStatusEnum}
|
|
@@ -9150,7 +9206,7 @@ export declare class BrandApi extends BaseAPI {
|
|
|
9150
9206
|
* @throws {RequiredError}
|
|
9151
9207
|
* @memberof BrandApi
|
|
9152
9208
|
*/
|
|
9153
|
-
getBrands(requestParameters
|
|
9209
|
+
getBrands(requestParameters?: BrandApiGetBrandsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBrandsResponse, any>>;
|
|
9154
9210
|
/**
|
|
9155
9211
|
*
|
|
9156
9212
|
* @param {BrandApiUpdateBrandRequest} requestParameters Request parameters.
|
|
@@ -9188,7 +9244,6 @@ export declare const CategoryApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
9188
9244
|
getAllCategories: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9189
9245
|
/**
|
|
9190
9246
|
*
|
|
9191
|
-
* @param {string} companyId
|
|
9192
9247
|
* @param {number} [page]
|
|
9193
9248
|
* @param {number} [itemsPerPage]
|
|
9194
9249
|
* @param {string} [search]
|
|
@@ -9197,11 +9252,13 @@ export declare const CategoryApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
9197
9252
|
* @param {string} [dateField]
|
|
9198
9253
|
* @param {OrderEnum} [order]
|
|
9199
9254
|
* @param {string} [sort]
|
|
9255
|
+
* @param {string} [companyId]
|
|
9256
|
+
* @param {string} [domain]
|
|
9200
9257
|
* @param {ContentStatusEnum} [status]
|
|
9201
9258
|
* @param {*} [options] Override http request option.
|
|
9202
9259
|
* @throws {RequiredError}
|
|
9203
9260
|
*/
|
|
9204
|
-
getCategories: (
|
|
9261
|
+
getCategories: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, companyId?: string, domain?: string, status?: ContentStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9205
9262
|
/**
|
|
9206
9263
|
*
|
|
9207
9264
|
* @param {string} companyId
|
|
@@ -9253,7 +9310,6 @@ export declare const CategoryApiFp: (configuration?: Configuration) => {
|
|
|
9253
9310
|
getAllCategories(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCategoriesResponse>>;
|
|
9254
9311
|
/**
|
|
9255
9312
|
*
|
|
9256
|
-
* @param {string} companyId
|
|
9257
9313
|
* @param {number} [page]
|
|
9258
9314
|
* @param {number} [itemsPerPage]
|
|
9259
9315
|
* @param {string} [search]
|
|
@@ -9262,11 +9318,13 @@ export declare const CategoryApiFp: (configuration?: Configuration) => {
|
|
|
9262
9318
|
* @param {string} [dateField]
|
|
9263
9319
|
* @param {OrderEnum} [order]
|
|
9264
9320
|
* @param {string} [sort]
|
|
9321
|
+
* @param {string} [companyId]
|
|
9322
|
+
* @param {string} [domain]
|
|
9265
9323
|
* @param {ContentStatusEnum} [status]
|
|
9266
9324
|
* @param {*} [options] Override http request option.
|
|
9267
9325
|
* @throws {RequiredError}
|
|
9268
9326
|
*/
|
|
9269
|
-
getCategories(
|
|
9327
|
+
getCategories(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, companyId?: string, domain?: string, status?: ContentStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICategoriesResponse>>;
|
|
9270
9328
|
/**
|
|
9271
9329
|
*
|
|
9272
9330
|
* @param {string} companyId
|
|
@@ -9322,7 +9380,7 @@ export declare const CategoryApiFactory: (configuration?: Configuration, basePat
|
|
|
9322
9380
|
* @param {*} [options] Override http request option.
|
|
9323
9381
|
* @throws {RequiredError}
|
|
9324
9382
|
*/
|
|
9325
|
-
getCategories(requestParameters
|
|
9383
|
+
getCategories(requestParameters?: CategoryApiGetCategoriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICategoriesResponse>;
|
|
9326
9384
|
/**
|
|
9327
9385
|
*
|
|
9328
9386
|
* @param {CategoryApiGetCategoryAttributesRequest} requestParameters Request parameters.
|
|
@@ -9390,12 +9448,6 @@ export interface CategoryApiGetAllCategoriesRequest {
|
|
|
9390
9448
|
* @interface CategoryApiGetCategoriesRequest
|
|
9391
9449
|
*/
|
|
9392
9450
|
export interface CategoryApiGetCategoriesRequest {
|
|
9393
|
-
/**
|
|
9394
|
-
*
|
|
9395
|
-
* @type {string}
|
|
9396
|
-
* @memberof CategoryApiGetCategories
|
|
9397
|
-
*/
|
|
9398
|
-
readonly companyId: string;
|
|
9399
9451
|
/**
|
|
9400
9452
|
*
|
|
9401
9453
|
* @type {number}
|
|
@@ -9444,6 +9496,18 @@ export interface CategoryApiGetCategoriesRequest {
|
|
|
9444
9496
|
* @memberof CategoryApiGetCategories
|
|
9445
9497
|
*/
|
|
9446
9498
|
readonly sort?: string;
|
|
9499
|
+
/**
|
|
9500
|
+
*
|
|
9501
|
+
* @type {string}
|
|
9502
|
+
* @memberof CategoryApiGetCategories
|
|
9503
|
+
*/
|
|
9504
|
+
readonly companyId?: string;
|
|
9505
|
+
/**
|
|
9506
|
+
*
|
|
9507
|
+
* @type {string}
|
|
9508
|
+
* @memberof CategoryApiGetCategories
|
|
9509
|
+
*/
|
|
9510
|
+
readonly domain?: string;
|
|
9447
9511
|
/**
|
|
9448
9512
|
*
|
|
9449
9513
|
* @type {ContentStatusEnum}
|
|
@@ -9534,7 +9598,7 @@ export declare class CategoryApi extends BaseAPI {
|
|
|
9534
9598
|
* @throws {RequiredError}
|
|
9535
9599
|
* @memberof CategoryApi
|
|
9536
9600
|
*/
|
|
9537
|
-
getCategories(requestParameters
|
|
9601
|
+
getCategories(requestParameters?: CategoryApiGetCategoriesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICategoriesResponse, any>>;
|
|
9538
9602
|
/**
|
|
9539
9603
|
*
|
|
9540
9604
|
* @param {CategoryApiGetCategoryAttributesRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -1067,6 +1067,34 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1067
1067
|
options: localVarRequestOptions,
|
|
1068
1068
|
};
|
|
1069
1069
|
},
|
|
1070
|
+
/**
|
|
1071
|
+
*
|
|
1072
|
+
* @param {string} code
|
|
1073
|
+
* @param {*} [options] Override http request option.
|
|
1074
|
+
* @throws {RequiredError}
|
|
1075
|
+
*/
|
|
1076
|
+
verifyCode: async (code, options = {}) => {
|
|
1077
|
+
// verify required parameter 'code' is not null or undefined
|
|
1078
|
+
(0, common_1.assertParamExists)('verifyCode', 'code', code);
|
|
1079
|
+
const localVarPath = `/api/auth/verify-code/{code}`
|
|
1080
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
1081
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1082
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1083
|
+
let baseOptions;
|
|
1084
|
+
if (configuration) {
|
|
1085
|
+
baseOptions = configuration.baseOptions;
|
|
1086
|
+
}
|
|
1087
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1088
|
+
const localVarHeaderParameter = {};
|
|
1089
|
+
const localVarQueryParameter = {};
|
|
1090
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1092
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1093
|
+
return {
|
|
1094
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1095
|
+
options: localVarRequestOptions,
|
|
1096
|
+
};
|
|
1097
|
+
},
|
|
1070
1098
|
};
|
|
1071
1099
|
};
|
|
1072
1100
|
exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
|
|
@@ -1168,6 +1196,18 @@ const AuthApiFp = function (configuration) {
|
|
|
1168
1196
|
const localVarOperationServerBasePath = base_1.operationServerMap['AuthApi.socialLogin']?.[localVarOperationServerIndex]?.url;
|
|
1169
1197
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1170
1198
|
},
|
|
1199
|
+
/**
|
|
1200
|
+
*
|
|
1201
|
+
* @param {string} code
|
|
1202
|
+
* @param {*} [options] Override http request option.
|
|
1203
|
+
* @throws {RequiredError}
|
|
1204
|
+
*/
|
|
1205
|
+
async verifyCode(code, options) {
|
|
1206
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyCode(code, options);
|
|
1207
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1208
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AuthApi.verifyCode']?.[localVarOperationServerIndex]?.url;
|
|
1209
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1210
|
+
},
|
|
1171
1211
|
};
|
|
1172
1212
|
};
|
|
1173
1213
|
exports.AuthApiFp = AuthApiFp;
|
|
@@ -1241,6 +1281,15 @@ const AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1241
1281
|
socialLogin(requestParameters, options) {
|
|
1242
1282
|
return localVarFp.socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(axios, basePath));
|
|
1243
1283
|
},
|
|
1284
|
+
/**
|
|
1285
|
+
*
|
|
1286
|
+
* @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
|
|
1287
|
+
* @param {*} [options] Override http request option.
|
|
1288
|
+
* @throws {RequiredError}
|
|
1289
|
+
*/
|
|
1290
|
+
verifyCode(requestParameters, options) {
|
|
1291
|
+
return localVarFp.verifyCode(requestParameters.code, options).then((request) => request(axios, basePath));
|
|
1292
|
+
},
|
|
1244
1293
|
};
|
|
1245
1294
|
};
|
|
1246
1295
|
exports.AuthApiFactory = AuthApiFactory;
|
|
@@ -1321,6 +1370,16 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
1321
1370
|
socialLogin(requestParameters, options) {
|
|
1322
1371
|
return (0, exports.AuthApiFp)(this.configuration).socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1323
1372
|
}
|
|
1373
|
+
/**
|
|
1374
|
+
*
|
|
1375
|
+
* @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
|
|
1376
|
+
* @param {*} [options] Override http request option.
|
|
1377
|
+
* @throws {RequiredError}
|
|
1378
|
+
* @memberof AuthApi
|
|
1379
|
+
*/
|
|
1380
|
+
verifyCode(requestParameters, options) {
|
|
1381
|
+
return (0, exports.AuthApiFp)(this.configuration).verifyCode(requestParameters.code, options).then((request) => request(this.axios, this.basePath));
|
|
1382
|
+
}
|
|
1324
1383
|
}
|
|
1325
1384
|
exports.AuthApi = AuthApi;
|
|
1326
1385
|
/**
|
|
@@ -1802,7 +1861,6 @@ const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1802
1861
|
},
|
|
1803
1862
|
/**
|
|
1804
1863
|
*
|
|
1805
|
-
* @param {string} companyId
|
|
1806
1864
|
* @param {number} [page]
|
|
1807
1865
|
* @param {number} [itemsPerPage]
|
|
1808
1866
|
* @param {string} [search]
|
|
@@ -1811,13 +1869,13 @@ const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1811
1869
|
* @param {string} [dateField]
|
|
1812
1870
|
* @param {OrderEnum} [order]
|
|
1813
1871
|
* @param {string} [sort]
|
|
1872
|
+
* @param {string} [companyId]
|
|
1873
|
+
* @param {string} [domain]
|
|
1814
1874
|
* @param {ContentStatusEnum} [status]
|
|
1815
1875
|
* @param {*} [options] Override http request option.
|
|
1816
1876
|
* @throws {RequiredError}
|
|
1817
1877
|
*/
|
|
1818
|
-
getBrands: async (
|
|
1819
|
-
// verify required parameter 'companyId' is not null or undefined
|
|
1820
|
-
(0, common_1.assertParamExists)('getBrands', 'companyId', companyId);
|
|
1878
|
+
getBrands: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options = {}) => {
|
|
1821
1879
|
const localVarPath = `/api/brands`;
|
|
1822
1880
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1823
1881
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1859,6 +1917,9 @@ const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1859
1917
|
if (companyId !== undefined) {
|
|
1860
1918
|
localVarQueryParameter['company_id'] = companyId;
|
|
1861
1919
|
}
|
|
1920
|
+
if (domain !== undefined) {
|
|
1921
|
+
localVarQueryParameter['domain'] = domain;
|
|
1922
|
+
}
|
|
1862
1923
|
if (status !== undefined) {
|
|
1863
1924
|
localVarQueryParameter['status'] = status;
|
|
1864
1925
|
}
|
|
@@ -1963,7 +2024,6 @@ const BrandApiFp = function (configuration) {
|
|
|
1963
2024
|
},
|
|
1964
2025
|
/**
|
|
1965
2026
|
*
|
|
1966
|
-
* @param {string} companyId
|
|
1967
2027
|
* @param {number} [page]
|
|
1968
2028
|
* @param {number} [itemsPerPage]
|
|
1969
2029
|
* @param {string} [search]
|
|
@@ -1972,12 +2032,14 @@ const BrandApiFp = function (configuration) {
|
|
|
1972
2032
|
* @param {string} [dateField]
|
|
1973
2033
|
* @param {OrderEnum} [order]
|
|
1974
2034
|
* @param {string} [sort]
|
|
2035
|
+
* @param {string} [companyId]
|
|
2036
|
+
* @param {string} [domain]
|
|
1975
2037
|
* @param {ContentStatusEnum} [status]
|
|
1976
2038
|
* @param {*} [options] Override http request option.
|
|
1977
2039
|
* @throws {RequiredError}
|
|
1978
2040
|
*/
|
|
1979
|
-
async getBrands(
|
|
1980
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrands(
|
|
2041
|
+
async getBrands(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options) {
|
|
2042
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrands(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options);
|
|
1981
2043
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1982
2044
|
const localVarOperationServerBasePath = base_1.operationServerMap['BrandApi.getBrands']?.[localVarOperationServerIndex]?.url;
|
|
1983
2045
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2047,8 +2109,8 @@ const BrandApiFactory = function (configuration, basePath, axios) {
|
|
|
2047
2109
|
* @param {*} [options] Override http request option.
|
|
2048
2110
|
* @throws {RequiredError}
|
|
2049
2111
|
*/
|
|
2050
|
-
getBrands(requestParameters, options) {
|
|
2051
|
-
return localVarFp.getBrands(requestParameters.
|
|
2112
|
+
getBrands(requestParameters = {}, options) {
|
|
2113
|
+
return localVarFp.getBrands(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
2052
2114
|
},
|
|
2053
2115
|
/**
|
|
2054
2116
|
*
|
|
@@ -2116,8 +2178,8 @@ class BrandApi extends base_1.BaseAPI {
|
|
|
2116
2178
|
* @throws {RequiredError}
|
|
2117
2179
|
* @memberof BrandApi
|
|
2118
2180
|
*/
|
|
2119
|
-
getBrands(requestParameters, options) {
|
|
2120
|
-
return (0, exports.BrandApiFp)(this.configuration).getBrands(requestParameters.
|
|
2181
|
+
getBrands(requestParameters = {}, options) {
|
|
2182
|
+
return (0, exports.BrandApiFp)(this.configuration).getBrands(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
2121
2183
|
}
|
|
2122
2184
|
/**
|
|
2123
2185
|
*
|
|
@@ -2226,7 +2288,6 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2226
2288
|
},
|
|
2227
2289
|
/**
|
|
2228
2290
|
*
|
|
2229
|
-
* @param {string} companyId
|
|
2230
2291
|
* @param {number} [page]
|
|
2231
2292
|
* @param {number} [itemsPerPage]
|
|
2232
2293
|
* @param {string} [search]
|
|
@@ -2235,13 +2296,13 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2235
2296
|
* @param {string} [dateField]
|
|
2236
2297
|
* @param {OrderEnum} [order]
|
|
2237
2298
|
* @param {string} [sort]
|
|
2299
|
+
* @param {string} [companyId]
|
|
2300
|
+
* @param {string} [domain]
|
|
2238
2301
|
* @param {ContentStatusEnum} [status]
|
|
2239
2302
|
* @param {*} [options] Override http request option.
|
|
2240
2303
|
* @throws {RequiredError}
|
|
2241
2304
|
*/
|
|
2242
|
-
getCategories: async (
|
|
2243
|
-
// verify required parameter 'companyId' is not null or undefined
|
|
2244
|
-
(0, common_1.assertParamExists)('getCategories', 'companyId', companyId);
|
|
2305
|
+
getCategories: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options = {}) => {
|
|
2245
2306
|
const localVarPath = `/api/categories`;
|
|
2246
2307
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2247
2308
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2283,6 +2344,9 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2283
2344
|
if (companyId !== undefined) {
|
|
2284
2345
|
localVarQueryParameter['company_id'] = companyId;
|
|
2285
2346
|
}
|
|
2347
|
+
if (domain !== undefined) {
|
|
2348
|
+
localVarQueryParameter['domain'] = domain;
|
|
2349
|
+
}
|
|
2286
2350
|
if (status !== undefined) {
|
|
2287
2351
|
localVarQueryParameter['status'] = status;
|
|
2288
2352
|
}
|
|
@@ -2433,7 +2497,6 @@ const CategoryApiFp = function (configuration) {
|
|
|
2433
2497
|
},
|
|
2434
2498
|
/**
|
|
2435
2499
|
*
|
|
2436
|
-
* @param {string} companyId
|
|
2437
2500
|
* @param {number} [page]
|
|
2438
2501
|
* @param {number} [itemsPerPage]
|
|
2439
2502
|
* @param {string} [search]
|
|
@@ -2442,12 +2505,14 @@ const CategoryApiFp = function (configuration) {
|
|
|
2442
2505
|
* @param {string} [dateField]
|
|
2443
2506
|
* @param {OrderEnum} [order]
|
|
2444
2507
|
* @param {string} [sort]
|
|
2508
|
+
* @param {string} [companyId]
|
|
2509
|
+
* @param {string} [domain]
|
|
2445
2510
|
* @param {ContentStatusEnum} [status]
|
|
2446
2511
|
* @param {*} [options] Override http request option.
|
|
2447
2512
|
* @throws {RequiredError}
|
|
2448
2513
|
*/
|
|
2449
|
-
async getCategories(
|
|
2450
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(
|
|
2514
|
+
async getCategories(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options) {
|
|
2515
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options);
|
|
2451
2516
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2452
2517
|
const localVarOperationServerBasePath = base_1.operationServerMap['CategoryApi.getCategories']?.[localVarOperationServerIndex]?.url;
|
|
2453
2518
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2532,8 +2597,8 @@ const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
|
2532
2597
|
* @param {*} [options] Override http request option.
|
|
2533
2598
|
* @throws {RequiredError}
|
|
2534
2599
|
*/
|
|
2535
|
-
getCategories(requestParameters, options) {
|
|
2536
|
-
return localVarFp.getCategories(requestParameters.
|
|
2600
|
+
getCategories(requestParameters = {}, options) {
|
|
2601
|
+
return localVarFp.getCategories(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
2537
2602
|
},
|
|
2538
2603
|
/**
|
|
2539
2604
|
*
|
|
@@ -2609,8 +2674,8 @@ class CategoryApi extends base_1.BaseAPI {
|
|
|
2609
2674
|
* @throws {RequiredError}
|
|
2610
2675
|
* @memberof CategoryApi
|
|
2611
2676
|
*/
|
|
2612
|
-
getCategories(requestParameters, options) {
|
|
2613
|
-
return (0, exports.CategoryApiFp)(this.configuration).getCategories(requestParameters.
|
|
2677
|
+
getCategories(requestParameters = {}, options) {
|
|
2678
|
+
return (0, exports.CategoryApiFp)(this.configuration).getCategories(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
2614
2679
|
}
|
|
2615
2680
|
/**
|
|
2616
2681
|
*
|
package/dist/api/api.mjs
CHANGED
|
@@ -1053,6 +1053,34 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1053
1053
|
options: localVarRequestOptions,
|
|
1054
1054
|
};
|
|
1055
1055
|
},
|
|
1056
|
+
/**
|
|
1057
|
+
*
|
|
1058
|
+
* @param {string} code
|
|
1059
|
+
* @param {*} [options] Override http request option.
|
|
1060
|
+
* @throws {RequiredError}
|
|
1061
|
+
*/
|
|
1062
|
+
verifyCode: async (code, options = {}) => {
|
|
1063
|
+
// verify required parameter 'code' is not null or undefined
|
|
1064
|
+
assertParamExists('verifyCode', 'code', code);
|
|
1065
|
+
const localVarPath = `/api/auth/verify-code/{code}`
|
|
1066
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
1067
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1068
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1069
|
+
let baseOptions;
|
|
1070
|
+
if (configuration) {
|
|
1071
|
+
baseOptions = configuration.baseOptions;
|
|
1072
|
+
}
|
|
1073
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1074
|
+
const localVarHeaderParameter = {};
|
|
1075
|
+
const localVarQueryParameter = {};
|
|
1076
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1077
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1078
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1079
|
+
return {
|
|
1080
|
+
url: toPathString(localVarUrlObj),
|
|
1081
|
+
options: localVarRequestOptions,
|
|
1082
|
+
};
|
|
1083
|
+
},
|
|
1056
1084
|
};
|
|
1057
1085
|
};
|
|
1058
1086
|
/**
|
|
@@ -1153,6 +1181,18 @@ export const AuthApiFp = function (configuration) {
|
|
|
1153
1181
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.socialLogin']?.[localVarOperationServerIndex]?.url;
|
|
1154
1182
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1155
1183
|
},
|
|
1184
|
+
/**
|
|
1185
|
+
*
|
|
1186
|
+
* @param {string} code
|
|
1187
|
+
* @param {*} [options] Override http request option.
|
|
1188
|
+
* @throws {RequiredError}
|
|
1189
|
+
*/
|
|
1190
|
+
async verifyCode(code, options) {
|
|
1191
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyCode(code, options);
|
|
1192
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1193
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.verifyCode']?.[localVarOperationServerIndex]?.url;
|
|
1194
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1195
|
+
},
|
|
1156
1196
|
};
|
|
1157
1197
|
};
|
|
1158
1198
|
/**
|
|
@@ -1225,6 +1265,15 @@ export const AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1225
1265
|
socialLogin(requestParameters, options) {
|
|
1226
1266
|
return localVarFp.socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(axios, basePath));
|
|
1227
1267
|
},
|
|
1268
|
+
/**
|
|
1269
|
+
*
|
|
1270
|
+
* @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
|
|
1271
|
+
* @param {*} [options] Override http request option.
|
|
1272
|
+
* @throws {RequiredError}
|
|
1273
|
+
*/
|
|
1274
|
+
verifyCode(requestParameters, options) {
|
|
1275
|
+
return localVarFp.verifyCode(requestParameters.code, options).then((request) => request(axios, basePath));
|
|
1276
|
+
},
|
|
1228
1277
|
};
|
|
1229
1278
|
};
|
|
1230
1279
|
/**
|
|
@@ -1304,6 +1353,16 @@ export class AuthApi extends BaseAPI {
|
|
|
1304
1353
|
socialLogin(requestParameters, options) {
|
|
1305
1354
|
return AuthApiFp(this.configuration).socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1306
1355
|
}
|
|
1356
|
+
/**
|
|
1357
|
+
*
|
|
1358
|
+
* @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
|
|
1359
|
+
* @param {*} [options] Override http request option.
|
|
1360
|
+
* @throws {RequiredError}
|
|
1361
|
+
* @memberof AuthApi
|
|
1362
|
+
*/
|
|
1363
|
+
verifyCode(requestParameters, options) {
|
|
1364
|
+
return AuthApiFp(this.configuration).verifyCode(requestParameters.code, options).then((request) => request(this.axios, this.basePath));
|
|
1365
|
+
}
|
|
1307
1366
|
}
|
|
1308
1367
|
/**
|
|
1309
1368
|
* BasketApi - axios parameter creator
|
|
@@ -1780,7 +1839,6 @@ export const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1780
1839
|
},
|
|
1781
1840
|
/**
|
|
1782
1841
|
*
|
|
1783
|
-
* @param {string} companyId
|
|
1784
1842
|
* @param {number} [page]
|
|
1785
1843
|
* @param {number} [itemsPerPage]
|
|
1786
1844
|
* @param {string} [search]
|
|
@@ -1789,13 +1847,13 @@ export const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1789
1847
|
* @param {string} [dateField]
|
|
1790
1848
|
* @param {OrderEnum} [order]
|
|
1791
1849
|
* @param {string} [sort]
|
|
1850
|
+
* @param {string} [companyId]
|
|
1851
|
+
* @param {string} [domain]
|
|
1792
1852
|
* @param {ContentStatusEnum} [status]
|
|
1793
1853
|
* @param {*} [options] Override http request option.
|
|
1794
1854
|
* @throws {RequiredError}
|
|
1795
1855
|
*/
|
|
1796
|
-
getBrands: async (
|
|
1797
|
-
// verify required parameter 'companyId' is not null or undefined
|
|
1798
|
-
assertParamExists('getBrands', 'companyId', companyId);
|
|
1856
|
+
getBrands: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options = {}) => {
|
|
1799
1857
|
const localVarPath = `/api/brands`;
|
|
1800
1858
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1801
1859
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1837,6 +1895,9 @@ export const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1837
1895
|
if (companyId !== undefined) {
|
|
1838
1896
|
localVarQueryParameter['company_id'] = companyId;
|
|
1839
1897
|
}
|
|
1898
|
+
if (domain !== undefined) {
|
|
1899
|
+
localVarQueryParameter['domain'] = domain;
|
|
1900
|
+
}
|
|
1840
1901
|
if (status !== undefined) {
|
|
1841
1902
|
localVarQueryParameter['status'] = status;
|
|
1842
1903
|
}
|
|
@@ -1940,7 +2001,6 @@ export const BrandApiFp = function (configuration) {
|
|
|
1940
2001
|
},
|
|
1941
2002
|
/**
|
|
1942
2003
|
*
|
|
1943
|
-
* @param {string} companyId
|
|
1944
2004
|
* @param {number} [page]
|
|
1945
2005
|
* @param {number} [itemsPerPage]
|
|
1946
2006
|
* @param {string} [search]
|
|
@@ -1949,12 +2009,14 @@ export const BrandApiFp = function (configuration) {
|
|
|
1949
2009
|
* @param {string} [dateField]
|
|
1950
2010
|
* @param {OrderEnum} [order]
|
|
1951
2011
|
* @param {string} [sort]
|
|
2012
|
+
* @param {string} [companyId]
|
|
2013
|
+
* @param {string} [domain]
|
|
1952
2014
|
* @param {ContentStatusEnum} [status]
|
|
1953
2015
|
* @param {*} [options] Override http request option.
|
|
1954
2016
|
* @throws {RequiredError}
|
|
1955
2017
|
*/
|
|
1956
|
-
async getBrands(
|
|
1957
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrands(
|
|
2018
|
+
async getBrands(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options) {
|
|
2019
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrands(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options);
|
|
1958
2020
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1959
2021
|
const localVarOperationServerBasePath = operationServerMap['BrandApi.getBrands']?.[localVarOperationServerIndex]?.url;
|
|
1960
2022
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2023,8 +2085,8 @@ export const BrandApiFactory = function (configuration, basePath, axios) {
|
|
|
2023
2085
|
* @param {*} [options] Override http request option.
|
|
2024
2086
|
* @throws {RequiredError}
|
|
2025
2087
|
*/
|
|
2026
|
-
getBrands(requestParameters, options) {
|
|
2027
|
-
return localVarFp.getBrands(requestParameters.
|
|
2088
|
+
getBrands(requestParameters = {}, options) {
|
|
2089
|
+
return localVarFp.getBrands(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
2028
2090
|
},
|
|
2029
2091
|
/**
|
|
2030
2092
|
*
|
|
@@ -2091,8 +2153,8 @@ export class BrandApi extends BaseAPI {
|
|
|
2091
2153
|
* @throws {RequiredError}
|
|
2092
2154
|
* @memberof BrandApi
|
|
2093
2155
|
*/
|
|
2094
|
-
getBrands(requestParameters, options) {
|
|
2095
|
-
return BrandApiFp(this.configuration).getBrands(requestParameters.
|
|
2156
|
+
getBrands(requestParameters = {}, options) {
|
|
2157
|
+
return BrandApiFp(this.configuration).getBrands(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
2096
2158
|
}
|
|
2097
2159
|
/**
|
|
2098
2160
|
*
|
|
@@ -2200,7 +2262,6 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2200
2262
|
},
|
|
2201
2263
|
/**
|
|
2202
2264
|
*
|
|
2203
|
-
* @param {string} companyId
|
|
2204
2265
|
* @param {number} [page]
|
|
2205
2266
|
* @param {number} [itemsPerPage]
|
|
2206
2267
|
* @param {string} [search]
|
|
@@ -2209,13 +2270,13 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2209
2270
|
* @param {string} [dateField]
|
|
2210
2271
|
* @param {OrderEnum} [order]
|
|
2211
2272
|
* @param {string} [sort]
|
|
2273
|
+
* @param {string} [companyId]
|
|
2274
|
+
* @param {string} [domain]
|
|
2212
2275
|
* @param {ContentStatusEnum} [status]
|
|
2213
2276
|
* @param {*} [options] Override http request option.
|
|
2214
2277
|
* @throws {RequiredError}
|
|
2215
2278
|
*/
|
|
2216
|
-
getCategories: async (
|
|
2217
|
-
// verify required parameter 'companyId' is not null or undefined
|
|
2218
|
-
assertParamExists('getCategories', 'companyId', companyId);
|
|
2279
|
+
getCategories: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options = {}) => {
|
|
2219
2280
|
const localVarPath = `/api/categories`;
|
|
2220
2281
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2221
2282
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2257,6 +2318,9 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2257
2318
|
if (companyId !== undefined) {
|
|
2258
2319
|
localVarQueryParameter['company_id'] = companyId;
|
|
2259
2320
|
}
|
|
2321
|
+
if (domain !== undefined) {
|
|
2322
|
+
localVarQueryParameter['domain'] = domain;
|
|
2323
|
+
}
|
|
2260
2324
|
if (status !== undefined) {
|
|
2261
2325
|
localVarQueryParameter['status'] = status;
|
|
2262
2326
|
}
|
|
@@ -2406,7 +2470,6 @@ export const CategoryApiFp = function (configuration) {
|
|
|
2406
2470
|
},
|
|
2407
2471
|
/**
|
|
2408
2472
|
*
|
|
2409
|
-
* @param {string} companyId
|
|
2410
2473
|
* @param {number} [page]
|
|
2411
2474
|
* @param {number} [itemsPerPage]
|
|
2412
2475
|
* @param {string} [search]
|
|
@@ -2415,12 +2478,14 @@ export const CategoryApiFp = function (configuration) {
|
|
|
2415
2478
|
* @param {string} [dateField]
|
|
2416
2479
|
* @param {OrderEnum} [order]
|
|
2417
2480
|
* @param {string} [sort]
|
|
2481
|
+
* @param {string} [companyId]
|
|
2482
|
+
* @param {string} [domain]
|
|
2418
2483
|
* @param {ContentStatusEnum} [status]
|
|
2419
2484
|
* @param {*} [options] Override http request option.
|
|
2420
2485
|
* @throws {RequiredError}
|
|
2421
2486
|
*/
|
|
2422
|
-
async getCategories(
|
|
2423
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(
|
|
2487
|
+
async getCategories(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options) {
|
|
2488
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options);
|
|
2424
2489
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2425
2490
|
const localVarOperationServerBasePath = operationServerMap['CategoryApi.getCategories']?.[localVarOperationServerIndex]?.url;
|
|
2426
2491
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2504,8 +2569,8 @@ export const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
|
2504
2569
|
* @param {*} [options] Override http request option.
|
|
2505
2570
|
* @throws {RequiredError}
|
|
2506
2571
|
*/
|
|
2507
|
-
getCategories(requestParameters, options) {
|
|
2508
|
-
return localVarFp.getCategories(requestParameters.
|
|
2572
|
+
getCategories(requestParameters = {}, options) {
|
|
2573
|
+
return localVarFp.getCategories(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
2509
2574
|
},
|
|
2510
2575
|
/**
|
|
2511
2576
|
*
|
|
@@ -2580,8 +2645,8 @@ export class CategoryApi extends BaseAPI {
|
|
|
2580
2645
|
* @throws {RequiredError}
|
|
2581
2646
|
* @memberof CategoryApi
|
|
2582
2647
|
*/
|
|
2583
|
-
getCategories(requestParameters, options) {
|
|
2584
|
-
return CategoryApiFp(this.configuration).getCategories(requestParameters.
|
|
2648
|
+
getCategories(requestParameters = {}, options) {
|
|
2649
|
+
return CategoryApiFp(this.configuration).getCategories(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
2585
2650
|
}
|
|
2586
2651
|
/**
|
|
2587
2652
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.26",
|
|
4
4
|
"description": "api-sdk",
|
|
5
5
|
"author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
|
|
6
6
|
"homepage": "https://github.com/infisale/infisale-client#readme",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"bugs": {
|
|
37
37
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "c3d8bb7be01888d5dd08ea8d1083c0f7628a50e4"
|
|
40
40
|
}
|