@infisale-client/api 1.1.24 → 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 +112 -48
- package/dist/api/api.js +120 -55
- package/dist/api/api.mjs +120 -55
- 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}
|
|
@@ -1426,7 +1438,7 @@ export interface ICollectionCollectionsQueryParams {
|
|
|
1426
1438
|
* @type {string}
|
|
1427
1439
|
* @memberof ICollectionCollectionsQueryParams
|
|
1428
1440
|
*/
|
|
1429
|
-
'
|
|
1441
|
+
'company_id': string;
|
|
1430
1442
|
/**
|
|
1431
1443
|
*
|
|
1432
1444
|
* @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.
|
|
@@ -9581,11 +9645,11 @@ export declare const CollectionApiAxiosParamCreator: (configuration?: Configurat
|
|
|
9581
9645
|
deleteCollection: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9582
9646
|
/**
|
|
9583
9647
|
*
|
|
9584
|
-
* @param {string}
|
|
9648
|
+
* @param {string} companyId
|
|
9585
9649
|
* @param {*} [options] Override http request option.
|
|
9586
9650
|
* @throws {RequiredError}
|
|
9587
9651
|
*/
|
|
9588
|
-
getAllCollections: (
|
|
9652
|
+
getAllCollections: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9589
9653
|
/**
|
|
9590
9654
|
*
|
|
9591
9655
|
* @param {string} id
|
|
@@ -9603,7 +9667,7 @@ export declare const CollectionApiAxiosParamCreator: (configuration?: Configurat
|
|
|
9603
9667
|
getCollectionBySlug: (slug: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9604
9668
|
/**
|
|
9605
9669
|
*
|
|
9606
|
-
* @param {string}
|
|
9670
|
+
* @param {string} companyId
|
|
9607
9671
|
* @param {number} [page]
|
|
9608
9672
|
* @param {number} [itemsPerPage]
|
|
9609
9673
|
* @param {string} [search]
|
|
@@ -9616,14 +9680,14 @@ export declare const CollectionApiAxiosParamCreator: (configuration?: Configurat
|
|
|
9616
9680
|
* @param {*} [options] Override http request option.
|
|
9617
9681
|
* @throws {RequiredError}
|
|
9618
9682
|
*/
|
|
9619
|
-
getCollections: (
|
|
9683
|
+
getCollections: (companyId: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, status?: ContentStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9620
9684
|
/**
|
|
9621
9685
|
*
|
|
9622
|
-
* @param {string}
|
|
9686
|
+
* @param {string} companyId
|
|
9623
9687
|
* @param {*} [options] Override http request option.
|
|
9624
9688
|
* @throws {RequiredError}
|
|
9625
9689
|
*/
|
|
9626
|
-
getFirstCollection: (
|
|
9690
|
+
getFirstCollection: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9627
9691
|
/**
|
|
9628
9692
|
*
|
|
9629
9693
|
* @param {string} id
|
|
@@ -9654,11 +9718,11 @@ export declare const CollectionApiFp: (configuration?: Configuration) => {
|
|
|
9654
9718
|
deleteCollection(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
9655
9719
|
/**
|
|
9656
9720
|
*
|
|
9657
|
-
* @param {string}
|
|
9721
|
+
* @param {string} companyId
|
|
9658
9722
|
* @param {*} [options] Override http request option.
|
|
9659
9723
|
* @throws {RequiredError}
|
|
9660
9724
|
*/
|
|
9661
|
-
getAllCollections(
|
|
9725
|
+
getAllCollections(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCollectionsResponse>>;
|
|
9662
9726
|
/**
|
|
9663
9727
|
*
|
|
9664
9728
|
* @param {string} id
|
|
@@ -9676,7 +9740,7 @@ export declare const CollectionApiFp: (configuration?: Configuration) => {
|
|
|
9676
9740
|
getCollectionBySlug(slug: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICollectionResponse>>;
|
|
9677
9741
|
/**
|
|
9678
9742
|
*
|
|
9679
|
-
* @param {string}
|
|
9743
|
+
* @param {string} companyId
|
|
9680
9744
|
* @param {number} [page]
|
|
9681
9745
|
* @param {number} [itemsPerPage]
|
|
9682
9746
|
* @param {string} [search]
|
|
@@ -9689,14 +9753,14 @@ export declare const CollectionApiFp: (configuration?: Configuration) => {
|
|
|
9689
9753
|
* @param {*} [options] Override http request option.
|
|
9690
9754
|
* @throws {RequiredError}
|
|
9691
9755
|
*/
|
|
9692
|
-
getCollections(
|
|
9756
|
+
getCollections(companyId: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, status?: ContentStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICollectionsResponse>>;
|
|
9693
9757
|
/**
|
|
9694
9758
|
*
|
|
9695
|
-
* @param {string}
|
|
9759
|
+
* @param {string} companyId
|
|
9696
9760
|
* @param {*} [options] Override http request option.
|
|
9697
9761
|
* @throws {RequiredError}
|
|
9698
9762
|
*/
|
|
9699
|
-
getFirstCollection(
|
|
9763
|
+
getFirstCollection(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICollectionResponse>>;
|
|
9700
9764
|
/**
|
|
9701
9765
|
*
|
|
9702
9766
|
* @param {string} id
|
|
@@ -9805,7 +9869,7 @@ export interface CollectionApiGetAllCollectionsRequest {
|
|
|
9805
9869
|
* @type {string}
|
|
9806
9870
|
* @memberof CollectionApiGetAllCollections
|
|
9807
9871
|
*/
|
|
9808
|
-
readonly
|
|
9872
|
+
readonly companyId: string;
|
|
9809
9873
|
}
|
|
9810
9874
|
/**
|
|
9811
9875
|
* Request parameters for getCollectionById operation in CollectionApi.
|
|
@@ -9850,7 +9914,7 @@ export interface CollectionApiGetCollectionsRequest {
|
|
|
9850
9914
|
* @type {string}
|
|
9851
9915
|
* @memberof CollectionApiGetCollections
|
|
9852
9916
|
*/
|
|
9853
|
-
readonly
|
|
9917
|
+
readonly companyId: string;
|
|
9854
9918
|
/**
|
|
9855
9919
|
*
|
|
9856
9920
|
* @type {number}
|
|
@@ -9917,7 +9981,7 @@ export interface CollectionApiGetFirstCollectionRequest {
|
|
|
9917
9981
|
* @type {string}
|
|
9918
9982
|
* @memberof CollectionApiGetFirstCollection
|
|
9919
9983
|
*/
|
|
9920
|
-
readonly
|
|
9984
|
+
readonly companyId: string;
|
|
9921
9985
|
}
|
|
9922
9986
|
/**
|
|
9923
9987
|
* Request parameters for updateCollection operation in CollectionApi.
|
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
|
*
|
|
@@ -2709,13 +2774,13 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2709
2774
|
},
|
|
2710
2775
|
/**
|
|
2711
2776
|
*
|
|
2712
|
-
* @param {string}
|
|
2777
|
+
* @param {string} companyId
|
|
2713
2778
|
* @param {*} [options] Override http request option.
|
|
2714
2779
|
* @throws {RequiredError}
|
|
2715
2780
|
*/
|
|
2716
|
-
getAllCollections: async (
|
|
2717
|
-
// verify required parameter '
|
|
2718
|
-
(0, common_1.assertParamExists)('getAllCollections', '
|
|
2781
|
+
getAllCollections: async (companyId, options = {}) => {
|
|
2782
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2783
|
+
(0, common_1.assertParamExists)('getAllCollections', 'companyId', companyId);
|
|
2719
2784
|
const localVarPath = `/api/collections/get/all`;
|
|
2720
2785
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2721
2786
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2726,8 +2791,8 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2726
2791
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2727
2792
|
const localVarHeaderParameter = {};
|
|
2728
2793
|
const localVarQueryParameter = {};
|
|
2729
|
-
if (
|
|
2730
|
-
localVarQueryParameter['
|
|
2794
|
+
if (companyId !== undefined) {
|
|
2795
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2731
2796
|
}
|
|
2732
2797
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2733
2798
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2801,7 +2866,7 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2801
2866
|
},
|
|
2802
2867
|
/**
|
|
2803
2868
|
*
|
|
2804
|
-
* @param {string}
|
|
2869
|
+
* @param {string} companyId
|
|
2805
2870
|
* @param {number} [page]
|
|
2806
2871
|
* @param {number} [itemsPerPage]
|
|
2807
2872
|
* @param {string} [search]
|
|
@@ -2814,9 +2879,9 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2814
2879
|
* @param {*} [options] Override http request option.
|
|
2815
2880
|
* @throws {RequiredError}
|
|
2816
2881
|
*/
|
|
2817
|
-
getCollections: async (
|
|
2818
|
-
// verify required parameter '
|
|
2819
|
-
(0, common_1.assertParamExists)('getCollections', '
|
|
2882
|
+
getCollections: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
|
|
2883
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2884
|
+
(0, common_1.assertParamExists)('getCollections', 'companyId', companyId);
|
|
2820
2885
|
const localVarPath = `/api/collections`;
|
|
2821
2886
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2822
2887
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2855,8 +2920,8 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2855
2920
|
if (sort !== undefined) {
|
|
2856
2921
|
localVarQueryParameter['sort'] = sort;
|
|
2857
2922
|
}
|
|
2858
|
-
if (
|
|
2859
|
-
localVarQueryParameter['
|
|
2923
|
+
if (companyId !== undefined) {
|
|
2924
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2860
2925
|
}
|
|
2861
2926
|
if (status !== undefined) {
|
|
2862
2927
|
localVarQueryParameter['status'] = status;
|
|
@@ -2871,13 +2936,13 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2871
2936
|
},
|
|
2872
2937
|
/**
|
|
2873
2938
|
*
|
|
2874
|
-
* @param {string}
|
|
2939
|
+
* @param {string} companyId
|
|
2875
2940
|
* @param {*} [options] Override http request option.
|
|
2876
2941
|
* @throws {RequiredError}
|
|
2877
2942
|
*/
|
|
2878
|
-
getFirstCollection: async (
|
|
2879
|
-
// verify required parameter '
|
|
2880
|
-
(0, common_1.assertParamExists)('getFirstCollection', '
|
|
2943
|
+
getFirstCollection: async (companyId, options = {}) => {
|
|
2944
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2945
|
+
(0, common_1.assertParamExists)('getFirstCollection', 'companyId', companyId);
|
|
2881
2946
|
const localVarPath = `/api/collections/get/first`;
|
|
2882
2947
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2883
2948
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2888,8 +2953,8 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2888
2953
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2889
2954
|
const localVarHeaderParameter = {};
|
|
2890
2955
|
const localVarQueryParameter = {};
|
|
2891
|
-
if (
|
|
2892
|
-
localVarQueryParameter['
|
|
2956
|
+
if (companyId !== undefined) {
|
|
2957
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2893
2958
|
}
|
|
2894
2959
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2895
2960
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2968,12 +3033,12 @@ const CollectionApiFp = function (configuration) {
|
|
|
2968
3033
|
},
|
|
2969
3034
|
/**
|
|
2970
3035
|
*
|
|
2971
|
-
* @param {string}
|
|
3036
|
+
* @param {string} companyId
|
|
2972
3037
|
* @param {*} [options] Override http request option.
|
|
2973
3038
|
* @throws {RequiredError}
|
|
2974
3039
|
*/
|
|
2975
|
-
async getAllCollections(
|
|
2976
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(
|
|
3040
|
+
async getAllCollections(companyId, options) {
|
|
3041
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(companyId, options);
|
|
2977
3042
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2978
3043
|
const localVarOperationServerBasePath = base_1.operationServerMap['CollectionApi.getAllCollections']?.[localVarOperationServerIndex]?.url;
|
|
2979
3044
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3005,7 +3070,7 @@ const CollectionApiFp = function (configuration) {
|
|
|
3005
3070
|
},
|
|
3006
3071
|
/**
|
|
3007
3072
|
*
|
|
3008
|
-
* @param {string}
|
|
3073
|
+
* @param {string} companyId
|
|
3009
3074
|
* @param {number} [page]
|
|
3010
3075
|
* @param {number} [itemsPerPage]
|
|
3011
3076
|
* @param {string} [search]
|
|
@@ -3018,20 +3083,20 @@ const CollectionApiFp = function (configuration) {
|
|
|
3018
3083
|
* @param {*} [options] Override http request option.
|
|
3019
3084
|
* @throws {RequiredError}
|
|
3020
3085
|
*/
|
|
3021
|
-
async getCollections(
|
|
3022
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollections(
|
|
3086
|
+
async getCollections(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
|
|
3087
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollections(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
|
|
3023
3088
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3024
3089
|
const localVarOperationServerBasePath = base_1.operationServerMap['CollectionApi.getCollections']?.[localVarOperationServerIndex]?.url;
|
|
3025
3090
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3026
3091
|
},
|
|
3027
3092
|
/**
|
|
3028
3093
|
*
|
|
3029
|
-
* @param {string}
|
|
3094
|
+
* @param {string} companyId
|
|
3030
3095
|
* @param {*} [options] Override http request option.
|
|
3031
3096
|
* @throws {RequiredError}
|
|
3032
3097
|
*/
|
|
3033
|
-
async getFirstCollection(
|
|
3034
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(
|
|
3098
|
+
async getFirstCollection(companyId, options) {
|
|
3099
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(companyId, options);
|
|
3035
3100
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3036
3101
|
const localVarOperationServerBasePath = base_1.operationServerMap['CollectionApi.getFirstCollection']?.[localVarOperationServerIndex]?.url;
|
|
3037
3102
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3084,7 +3149,7 @@ const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3084
3149
|
* @throws {RequiredError}
|
|
3085
3150
|
*/
|
|
3086
3151
|
getAllCollections(requestParameters, options) {
|
|
3087
|
-
return localVarFp.getAllCollections(requestParameters.
|
|
3152
|
+
return localVarFp.getAllCollections(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
3088
3153
|
},
|
|
3089
3154
|
/**
|
|
3090
3155
|
*
|
|
@@ -3111,7 +3176,7 @@ const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3111
3176
|
* @throws {RequiredError}
|
|
3112
3177
|
*/
|
|
3113
3178
|
getCollections(requestParameters, options) {
|
|
3114
|
-
return localVarFp.getCollections(requestParameters.
|
|
3179
|
+
return localVarFp.getCollections(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
3115
3180
|
},
|
|
3116
3181
|
/**
|
|
3117
3182
|
*
|
|
@@ -3120,7 +3185,7 @@ const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3120
3185
|
* @throws {RequiredError}
|
|
3121
3186
|
*/
|
|
3122
3187
|
getFirstCollection(requestParameters, options) {
|
|
3123
|
-
return localVarFp.getFirstCollection(requestParameters.
|
|
3188
|
+
return localVarFp.getFirstCollection(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
3124
3189
|
},
|
|
3125
3190
|
/**
|
|
3126
3191
|
*
|
|
@@ -3169,7 +3234,7 @@ class CollectionApi extends base_1.BaseAPI {
|
|
|
3169
3234
|
* @memberof CollectionApi
|
|
3170
3235
|
*/
|
|
3171
3236
|
getAllCollections(requestParameters, options) {
|
|
3172
|
-
return (0, exports.CollectionApiFp)(this.configuration).getAllCollections(requestParameters.
|
|
3237
|
+
return (0, exports.CollectionApiFp)(this.configuration).getAllCollections(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
3173
3238
|
}
|
|
3174
3239
|
/**
|
|
3175
3240
|
*
|
|
@@ -3199,7 +3264,7 @@ class CollectionApi extends base_1.BaseAPI {
|
|
|
3199
3264
|
* @memberof CollectionApi
|
|
3200
3265
|
*/
|
|
3201
3266
|
getCollections(requestParameters, options) {
|
|
3202
|
-
return (0, exports.CollectionApiFp)(this.configuration).getCollections(requestParameters.
|
|
3267
|
+
return (0, exports.CollectionApiFp)(this.configuration).getCollections(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
3203
3268
|
}
|
|
3204
3269
|
/**
|
|
3205
3270
|
*
|
|
@@ -3209,7 +3274,7 @@ class CollectionApi extends base_1.BaseAPI {
|
|
|
3209
3274
|
* @memberof CollectionApi
|
|
3210
3275
|
*/
|
|
3211
3276
|
getFirstCollection(requestParameters, options) {
|
|
3212
|
-
return (0, exports.CollectionApiFp)(this.configuration).getFirstCollection(requestParameters.
|
|
3277
|
+
return (0, exports.CollectionApiFp)(this.configuration).getFirstCollection(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
3213
3278
|
}
|
|
3214
3279
|
/**
|
|
3215
3280
|
*
|
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
|
*
|
|
@@ -2679,13 +2744,13 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2679
2744
|
},
|
|
2680
2745
|
/**
|
|
2681
2746
|
*
|
|
2682
|
-
* @param {string}
|
|
2747
|
+
* @param {string} companyId
|
|
2683
2748
|
* @param {*} [options] Override http request option.
|
|
2684
2749
|
* @throws {RequiredError}
|
|
2685
2750
|
*/
|
|
2686
|
-
getAllCollections: async (
|
|
2687
|
-
// verify required parameter '
|
|
2688
|
-
assertParamExists('getAllCollections', '
|
|
2751
|
+
getAllCollections: async (companyId, options = {}) => {
|
|
2752
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2753
|
+
assertParamExists('getAllCollections', 'companyId', companyId);
|
|
2689
2754
|
const localVarPath = `/api/collections/get/all`;
|
|
2690
2755
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2691
2756
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2696,8 +2761,8 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2696
2761
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2697
2762
|
const localVarHeaderParameter = {};
|
|
2698
2763
|
const localVarQueryParameter = {};
|
|
2699
|
-
if (
|
|
2700
|
-
localVarQueryParameter['
|
|
2764
|
+
if (companyId !== undefined) {
|
|
2765
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2701
2766
|
}
|
|
2702
2767
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2703
2768
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2771,7 +2836,7 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2771
2836
|
},
|
|
2772
2837
|
/**
|
|
2773
2838
|
*
|
|
2774
|
-
* @param {string}
|
|
2839
|
+
* @param {string} companyId
|
|
2775
2840
|
* @param {number} [page]
|
|
2776
2841
|
* @param {number} [itemsPerPage]
|
|
2777
2842
|
* @param {string} [search]
|
|
@@ -2784,9 +2849,9 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2784
2849
|
* @param {*} [options] Override http request option.
|
|
2785
2850
|
* @throws {RequiredError}
|
|
2786
2851
|
*/
|
|
2787
|
-
getCollections: async (
|
|
2788
|
-
// verify required parameter '
|
|
2789
|
-
assertParamExists('getCollections', '
|
|
2852
|
+
getCollections: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
|
|
2853
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2854
|
+
assertParamExists('getCollections', 'companyId', companyId);
|
|
2790
2855
|
const localVarPath = `/api/collections`;
|
|
2791
2856
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2792
2857
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2825,8 +2890,8 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2825
2890
|
if (sort !== undefined) {
|
|
2826
2891
|
localVarQueryParameter['sort'] = sort;
|
|
2827
2892
|
}
|
|
2828
|
-
if (
|
|
2829
|
-
localVarQueryParameter['
|
|
2893
|
+
if (companyId !== undefined) {
|
|
2894
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2830
2895
|
}
|
|
2831
2896
|
if (status !== undefined) {
|
|
2832
2897
|
localVarQueryParameter['status'] = status;
|
|
@@ -2841,13 +2906,13 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2841
2906
|
},
|
|
2842
2907
|
/**
|
|
2843
2908
|
*
|
|
2844
|
-
* @param {string}
|
|
2909
|
+
* @param {string} companyId
|
|
2845
2910
|
* @param {*} [options] Override http request option.
|
|
2846
2911
|
* @throws {RequiredError}
|
|
2847
2912
|
*/
|
|
2848
|
-
getFirstCollection: async (
|
|
2849
|
-
// verify required parameter '
|
|
2850
|
-
assertParamExists('getFirstCollection', '
|
|
2913
|
+
getFirstCollection: async (companyId, options = {}) => {
|
|
2914
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2915
|
+
assertParamExists('getFirstCollection', 'companyId', companyId);
|
|
2851
2916
|
const localVarPath = `/api/collections/get/first`;
|
|
2852
2917
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2853
2918
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2858,8 +2923,8 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2858
2923
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2859
2924
|
const localVarHeaderParameter = {};
|
|
2860
2925
|
const localVarQueryParameter = {};
|
|
2861
|
-
if (
|
|
2862
|
-
localVarQueryParameter['
|
|
2926
|
+
if (companyId !== undefined) {
|
|
2927
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2863
2928
|
}
|
|
2864
2929
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2865
2930
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2937,12 +3002,12 @@ export const CollectionApiFp = function (configuration) {
|
|
|
2937
3002
|
},
|
|
2938
3003
|
/**
|
|
2939
3004
|
*
|
|
2940
|
-
* @param {string}
|
|
3005
|
+
* @param {string} companyId
|
|
2941
3006
|
* @param {*} [options] Override http request option.
|
|
2942
3007
|
* @throws {RequiredError}
|
|
2943
3008
|
*/
|
|
2944
|
-
async getAllCollections(
|
|
2945
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(
|
|
3009
|
+
async getAllCollections(companyId, options) {
|
|
3010
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(companyId, options);
|
|
2946
3011
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2947
3012
|
const localVarOperationServerBasePath = operationServerMap['CollectionApi.getAllCollections']?.[localVarOperationServerIndex]?.url;
|
|
2948
3013
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2974,7 +3039,7 @@ export const CollectionApiFp = function (configuration) {
|
|
|
2974
3039
|
},
|
|
2975
3040
|
/**
|
|
2976
3041
|
*
|
|
2977
|
-
* @param {string}
|
|
3042
|
+
* @param {string} companyId
|
|
2978
3043
|
* @param {number} [page]
|
|
2979
3044
|
* @param {number} [itemsPerPage]
|
|
2980
3045
|
* @param {string} [search]
|
|
@@ -2987,20 +3052,20 @@ export const CollectionApiFp = function (configuration) {
|
|
|
2987
3052
|
* @param {*} [options] Override http request option.
|
|
2988
3053
|
* @throws {RequiredError}
|
|
2989
3054
|
*/
|
|
2990
|
-
async getCollections(
|
|
2991
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollections(
|
|
3055
|
+
async getCollections(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
|
|
3056
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollections(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
|
|
2992
3057
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2993
3058
|
const localVarOperationServerBasePath = operationServerMap['CollectionApi.getCollections']?.[localVarOperationServerIndex]?.url;
|
|
2994
3059
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2995
3060
|
},
|
|
2996
3061
|
/**
|
|
2997
3062
|
*
|
|
2998
|
-
* @param {string}
|
|
3063
|
+
* @param {string} companyId
|
|
2999
3064
|
* @param {*} [options] Override http request option.
|
|
3000
3065
|
* @throws {RequiredError}
|
|
3001
3066
|
*/
|
|
3002
|
-
async getFirstCollection(
|
|
3003
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(
|
|
3067
|
+
async getFirstCollection(companyId, options) {
|
|
3068
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(companyId, options);
|
|
3004
3069
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3005
3070
|
const localVarOperationServerBasePath = operationServerMap['CollectionApi.getFirstCollection']?.[localVarOperationServerIndex]?.url;
|
|
3006
3071
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3052,7 +3117,7 @@ export const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3052
3117
|
* @throws {RequiredError}
|
|
3053
3118
|
*/
|
|
3054
3119
|
getAllCollections(requestParameters, options) {
|
|
3055
|
-
return localVarFp.getAllCollections(requestParameters.
|
|
3120
|
+
return localVarFp.getAllCollections(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
3056
3121
|
},
|
|
3057
3122
|
/**
|
|
3058
3123
|
*
|
|
@@ -3079,7 +3144,7 @@ export const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3079
3144
|
* @throws {RequiredError}
|
|
3080
3145
|
*/
|
|
3081
3146
|
getCollections(requestParameters, options) {
|
|
3082
|
-
return localVarFp.getCollections(requestParameters.
|
|
3147
|
+
return localVarFp.getCollections(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
3083
3148
|
},
|
|
3084
3149
|
/**
|
|
3085
3150
|
*
|
|
@@ -3088,7 +3153,7 @@ export const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3088
3153
|
* @throws {RequiredError}
|
|
3089
3154
|
*/
|
|
3090
3155
|
getFirstCollection(requestParameters, options) {
|
|
3091
|
-
return localVarFp.getFirstCollection(requestParameters.
|
|
3156
|
+
return localVarFp.getFirstCollection(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
3092
3157
|
},
|
|
3093
3158
|
/**
|
|
3094
3159
|
*
|
|
@@ -3136,7 +3201,7 @@ export class CollectionApi extends BaseAPI {
|
|
|
3136
3201
|
* @memberof CollectionApi
|
|
3137
3202
|
*/
|
|
3138
3203
|
getAllCollections(requestParameters, options) {
|
|
3139
|
-
return CollectionApiFp(this.configuration).getAllCollections(requestParameters.
|
|
3204
|
+
return CollectionApiFp(this.configuration).getAllCollections(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
3140
3205
|
}
|
|
3141
3206
|
/**
|
|
3142
3207
|
*
|
|
@@ -3166,7 +3231,7 @@ export class CollectionApi extends BaseAPI {
|
|
|
3166
3231
|
* @memberof CollectionApi
|
|
3167
3232
|
*/
|
|
3168
3233
|
getCollections(requestParameters, options) {
|
|
3169
|
-
return CollectionApiFp(this.configuration).getCollections(requestParameters.
|
|
3234
|
+
return CollectionApiFp(this.configuration).getCollections(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
3170
3235
|
}
|
|
3171
3236
|
/**
|
|
3172
3237
|
*
|
|
@@ -3176,7 +3241,7 @@ export class CollectionApi extends BaseAPI {
|
|
|
3176
3241
|
* @memberof CollectionApi
|
|
3177
3242
|
*/
|
|
3178
3243
|
getFirstCollection(requestParameters, options) {
|
|
3179
|
-
return CollectionApiFp(this.configuration).getFirstCollection(requestParameters.
|
|
3244
|
+
return CollectionApiFp(this.configuration).getFirstCollection(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
3180
3245
|
}
|
|
3181
3246
|
/**
|
|
3182
3247
|
*
|
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
|
}
|