@infisale-client/api-client 1.1.21 → 1.1.22
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 +68 -38
- package/dist/api/api.js +68 -57
- package/dist/api/api.mjs +68 -57
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -779,7 +779,7 @@ export interface IBrandCollectionQueryParams {
|
|
|
779
779
|
* @type {string}
|
|
780
780
|
* @memberof IBrandCollectionQueryParams
|
|
781
781
|
*/
|
|
782
|
-
'
|
|
782
|
+
'company_id': string;
|
|
783
783
|
/**
|
|
784
784
|
*
|
|
785
785
|
* @type {ContentStatusEnum}
|
|
@@ -1065,7 +1065,7 @@ export interface ICategoryCollectionQueryParams {
|
|
|
1065
1065
|
* @type {string}
|
|
1066
1066
|
* @memberof ICategoryCollectionQueryParams
|
|
1067
1067
|
*/
|
|
1068
|
-
'
|
|
1068
|
+
'company_id': string;
|
|
1069
1069
|
/**
|
|
1070
1070
|
*
|
|
1071
1071
|
* @type {ContentStatusEnum}
|
|
@@ -3384,7 +3384,7 @@ export interface IFileCollectionQueryParams {
|
|
|
3384
3384
|
* @type {string}
|
|
3385
3385
|
* @memberof IFileCollectionQueryParams
|
|
3386
3386
|
*/
|
|
3387
|
-
'
|
|
3387
|
+
'company_id': string;
|
|
3388
3388
|
/**
|
|
3389
3389
|
*
|
|
3390
3390
|
* @type {Array<FileKeywordEnum>}
|
|
@@ -3761,7 +3761,7 @@ export interface INotificationCollectionQueryParams {
|
|
|
3761
3761
|
* @type {string}
|
|
3762
3762
|
* @memberof INotificationCollectionQueryParams
|
|
3763
3763
|
*/
|
|
3764
|
-
'
|
|
3764
|
+
'company_id'?: string;
|
|
3765
3765
|
/**
|
|
3766
3766
|
*
|
|
3767
3767
|
* @type {NotificationStatusEnum}
|
|
@@ -4237,7 +4237,7 @@ export interface IPageCollectionQueryParams {
|
|
|
4237
4237
|
* @type {string}
|
|
4238
4238
|
* @memberof IPageCollectionQueryParams
|
|
4239
4239
|
*/
|
|
4240
|
-
'
|
|
4240
|
+
'company_id'?: string;
|
|
4241
4241
|
/**
|
|
4242
4242
|
*
|
|
4243
4243
|
* @type {string}
|
|
@@ -4268,7 +4268,7 @@ export interface IPageGetAllQueryParams {
|
|
|
4268
4268
|
* @type {string}
|
|
4269
4269
|
* @memberof IPageGetAllQueryParams
|
|
4270
4270
|
*/
|
|
4271
|
-
'
|
|
4271
|
+
'company_id'?: string;
|
|
4272
4272
|
/**
|
|
4273
4273
|
*
|
|
4274
4274
|
* @type {string}
|
|
@@ -4814,7 +4814,13 @@ export interface IProductCollectionQueryParams {
|
|
|
4814
4814
|
* @type {string}
|
|
4815
4815
|
* @memberof IProductCollectionQueryParams
|
|
4816
4816
|
*/
|
|
4817
|
-
'
|
|
4817
|
+
'company_id'?: string;
|
|
4818
|
+
/**
|
|
4819
|
+
*
|
|
4820
|
+
* @type {string}
|
|
4821
|
+
* @memberof IProductCollectionQueryParams
|
|
4822
|
+
*/
|
|
4823
|
+
'domain'?: string;
|
|
4818
4824
|
/**
|
|
4819
4825
|
*
|
|
4820
4826
|
* @type {string}
|
|
@@ -8801,21 +8807,21 @@ export declare const PageApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
8801
8807
|
/**
|
|
8802
8808
|
*
|
|
8803
8809
|
* @param {string} slug
|
|
8804
|
-
* @param {string} [
|
|
8810
|
+
* @param {string} [companyId]
|
|
8805
8811
|
* @param {string} [domain]
|
|
8806
8812
|
* @param {*} [options] Override http request option.
|
|
8807
8813
|
* @throws {RequiredError}
|
|
8808
8814
|
*/
|
|
8809
|
-
getPageBySlug: (slug: string,
|
|
8815
|
+
getPageBySlug: (slug: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8810
8816
|
/**
|
|
8811
8817
|
*
|
|
8812
8818
|
* @param {string} type
|
|
8813
|
-
* @param {string} [
|
|
8819
|
+
* @param {string} [companyId]
|
|
8814
8820
|
* @param {string} [domain]
|
|
8815
8821
|
* @param {*} [options] Override http request option.
|
|
8816
8822
|
* @throws {RequiredError}
|
|
8817
8823
|
*/
|
|
8818
|
-
getPageByType: (type: string,
|
|
8824
|
+
getPageByType: (type: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8819
8825
|
/**
|
|
8820
8826
|
*
|
|
8821
8827
|
* @param {number} [page]
|
|
@@ -8826,14 +8832,14 @@ export declare const PageApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
8826
8832
|
* @param {string} [dateField]
|
|
8827
8833
|
* @param {OrderEnum} [order]
|
|
8828
8834
|
* @param {string} [sort]
|
|
8829
|
-
* @param {string} [
|
|
8835
|
+
* @param {string} [companyId]
|
|
8830
8836
|
* @param {string} [domain]
|
|
8831
8837
|
* @param {PageTypeEnum} [type]
|
|
8832
8838
|
* @param {ContentStatusEnum} [status]
|
|
8833
8839
|
* @param {*} [options] Override http request option.
|
|
8834
8840
|
* @throws {RequiredError}
|
|
8835
8841
|
*/
|
|
8836
|
-
getPages: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string,
|
|
8842
|
+
getPages: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, companyId?: string, domain?: string, type?: PageTypeEnum, status?: ContentStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8837
8843
|
};
|
|
8838
8844
|
/**
|
|
8839
8845
|
* PageApi - functional programming interface
|
|
@@ -8843,21 +8849,21 @@ export declare const PageApiFp: (configuration?: Configuration) => {
|
|
|
8843
8849
|
/**
|
|
8844
8850
|
*
|
|
8845
8851
|
* @param {string} slug
|
|
8846
|
-
* @param {string} [
|
|
8852
|
+
* @param {string} [companyId]
|
|
8847
8853
|
* @param {string} [domain]
|
|
8848
8854
|
* @param {*} [options] Override http request option.
|
|
8849
8855
|
* @throws {RequiredError}
|
|
8850
8856
|
*/
|
|
8851
|
-
getPageBySlug(slug: string,
|
|
8857
|
+
getPageBySlug(slug: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPageResponse>>;
|
|
8852
8858
|
/**
|
|
8853
8859
|
*
|
|
8854
8860
|
* @param {string} type
|
|
8855
|
-
* @param {string} [
|
|
8861
|
+
* @param {string} [companyId]
|
|
8856
8862
|
* @param {string} [domain]
|
|
8857
8863
|
* @param {*} [options] Override http request option.
|
|
8858
8864
|
* @throws {RequiredError}
|
|
8859
8865
|
*/
|
|
8860
|
-
getPageByType(type: string,
|
|
8866
|
+
getPageByType(type: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPageResponse>>;
|
|
8861
8867
|
/**
|
|
8862
8868
|
*
|
|
8863
8869
|
* @param {number} [page]
|
|
@@ -8868,14 +8874,14 @@ export declare const PageApiFp: (configuration?: Configuration) => {
|
|
|
8868
8874
|
* @param {string} [dateField]
|
|
8869
8875
|
* @param {OrderEnum} [order]
|
|
8870
8876
|
* @param {string} [sort]
|
|
8871
|
-
* @param {string} [
|
|
8877
|
+
* @param {string} [companyId]
|
|
8872
8878
|
* @param {string} [domain]
|
|
8873
8879
|
* @param {PageTypeEnum} [type]
|
|
8874
8880
|
* @param {ContentStatusEnum} [status]
|
|
8875
8881
|
* @param {*} [options] Override http request option.
|
|
8876
8882
|
* @throws {RequiredError}
|
|
8877
8883
|
*/
|
|
8878
|
-
getPages(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string,
|
|
8884
|
+
getPages(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, companyId?: string, domain?: string, type?: PageTypeEnum, status?: ContentStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPagesResponse>>;
|
|
8879
8885
|
};
|
|
8880
8886
|
/**
|
|
8881
8887
|
* PageApi - factory interface
|
|
@@ -8921,7 +8927,7 @@ export interface PageApiGetPageBySlugRequest {
|
|
|
8921
8927
|
* @type {string}
|
|
8922
8928
|
* @memberof PageApiGetPageBySlug
|
|
8923
8929
|
*/
|
|
8924
|
-
readonly
|
|
8930
|
+
readonly companyId?: string;
|
|
8925
8931
|
/**
|
|
8926
8932
|
*
|
|
8927
8933
|
* @type {string}
|
|
@@ -8946,7 +8952,7 @@ export interface PageApiGetPageByTypeRequest {
|
|
|
8946
8952
|
* @type {string}
|
|
8947
8953
|
* @memberof PageApiGetPageByType
|
|
8948
8954
|
*/
|
|
8949
|
-
readonly
|
|
8955
|
+
readonly companyId?: string;
|
|
8950
8956
|
/**
|
|
8951
8957
|
*
|
|
8952
8958
|
* @type {string}
|
|
@@ -9013,7 +9019,7 @@ export interface PageApiGetPagesRequest {
|
|
|
9013
9019
|
* @type {string}
|
|
9014
9020
|
* @memberof PageApiGetPages
|
|
9015
9021
|
*/
|
|
9016
|
-
readonly
|
|
9022
|
+
readonly companyId?: string;
|
|
9017
9023
|
/**
|
|
9018
9024
|
*
|
|
9019
9025
|
* @type {string}
|
|
@@ -9073,11 +9079,12 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
9073
9079
|
/**
|
|
9074
9080
|
*
|
|
9075
9081
|
* @param {string} slug
|
|
9076
|
-
* @param {string}
|
|
9082
|
+
* @param {string} [companyId]
|
|
9083
|
+
* @param {string} [domain]
|
|
9077
9084
|
* @param {*} [options] Override http request option.
|
|
9078
9085
|
* @throws {RequiredError}
|
|
9079
9086
|
*/
|
|
9080
|
-
getProductBySlug: (slug: string, domain
|
|
9087
|
+
getProductBySlug: (slug: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9081
9088
|
/**
|
|
9082
9089
|
*
|
|
9083
9090
|
* @param {number} [page]
|
|
@@ -9088,7 +9095,8 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
9088
9095
|
* @param {string} [dateField]
|
|
9089
9096
|
* @param {OrderEnum} [order]
|
|
9090
9097
|
* @param {string} [sort]
|
|
9091
|
-
* @param {string} [
|
|
9098
|
+
* @param {string} [companyId]
|
|
9099
|
+
* @param {string} [domain]
|
|
9092
9100
|
* @param {string} [collections]
|
|
9093
9101
|
* @param {string} [category]
|
|
9094
9102
|
* @param {string} [brand]
|
|
@@ -9096,15 +9104,16 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
9096
9104
|
* @param {*} [options] Override http request option.
|
|
9097
9105
|
* @throws {RequiredError}
|
|
9098
9106
|
*/
|
|
9099
|
-
getProducts: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string,
|
|
9107
|
+
getProducts: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, companyId?: string, domain?: string, collections?: string, category?: string, brand?: string, status?: ContentStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9100
9108
|
/**
|
|
9101
9109
|
*
|
|
9102
|
-
* @param {string} company
|
|
9103
9110
|
* @param {string} search
|
|
9111
|
+
* @param {string} [companyId]
|
|
9112
|
+
* @param {string} [domain]
|
|
9104
9113
|
* @param {*} [options] Override http request option.
|
|
9105
9114
|
* @throws {RequiredError}
|
|
9106
9115
|
*/
|
|
9107
|
-
searchProducts: (
|
|
9116
|
+
searchProducts: (search: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9108
9117
|
};
|
|
9109
9118
|
/**
|
|
9110
9119
|
* ProductApi - functional programming interface
|
|
@@ -9114,11 +9123,12 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
9114
9123
|
/**
|
|
9115
9124
|
*
|
|
9116
9125
|
* @param {string} slug
|
|
9117
|
-
* @param {string}
|
|
9126
|
+
* @param {string} [companyId]
|
|
9127
|
+
* @param {string} [domain]
|
|
9118
9128
|
* @param {*} [options] Override http request option.
|
|
9119
9129
|
* @throws {RequiredError}
|
|
9120
9130
|
*/
|
|
9121
|
-
getProductBySlug(slug: string, domain
|
|
9131
|
+
getProductBySlug(slug: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductResponse>>;
|
|
9122
9132
|
/**
|
|
9123
9133
|
*
|
|
9124
9134
|
* @param {number} [page]
|
|
@@ -9129,7 +9139,8 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
9129
9139
|
* @param {string} [dateField]
|
|
9130
9140
|
* @param {OrderEnum} [order]
|
|
9131
9141
|
* @param {string} [sort]
|
|
9132
|
-
* @param {string} [
|
|
9142
|
+
* @param {string} [companyId]
|
|
9143
|
+
* @param {string} [domain]
|
|
9133
9144
|
* @param {string} [collections]
|
|
9134
9145
|
* @param {string} [category]
|
|
9135
9146
|
* @param {string} [brand]
|
|
@@ -9137,15 +9148,16 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
9137
9148
|
* @param {*} [options] Override http request option.
|
|
9138
9149
|
* @throws {RequiredError}
|
|
9139
9150
|
*/
|
|
9140
|
-
getProducts(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string,
|
|
9151
|
+
getProducts(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, companyId?: string, domain?: string, collections?: string, category?: string, brand?: string, status?: ContentStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductsResponse>>;
|
|
9141
9152
|
/**
|
|
9142
9153
|
*
|
|
9143
|
-
* @param {string} company
|
|
9144
9154
|
* @param {string} search
|
|
9155
|
+
* @param {string} [companyId]
|
|
9156
|
+
* @param {string} [domain]
|
|
9145
9157
|
* @param {*} [options] Override http request option.
|
|
9146
9158
|
* @throws {RequiredError}
|
|
9147
9159
|
*/
|
|
9148
|
-
searchProducts(
|
|
9160
|
+
searchProducts(search: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ISearchProductsResponse>>;
|
|
9149
9161
|
};
|
|
9150
9162
|
/**
|
|
9151
9163
|
* ProductApi - factory interface
|
|
@@ -9191,7 +9203,13 @@ export interface ProductApiGetProductBySlugRequest {
|
|
|
9191
9203
|
* @type {string}
|
|
9192
9204
|
* @memberof ProductApiGetProductBySlug
|
|
9193
9205
|
*/
|
|
9194
|
-
readonly
|
|
9206
|
+
readonly companyId?: string;
|
|
9207
|
+
/**
|
|
9208
|
+
*
|
|
9209
|
+
* @type {string}
|
|
9210
|
+
* @memberof ProductApiGetProductBySlug
|
|
9211
|
+
*/
|
|
9212
|
+
readonly domain?: string;
|
|
9195
9213
|
}
|
|
9196
9214
|
/**
|
|
9197
9215
|
* Request parameters for getProducts operation in ProductApi.
|
|
@@ -9252,7 +9270,13 @@ export interface ProductApiGetProductsRequest {
|
|
|
9252
9270
|
* @type {string}
|
|
9253
9271
|
* @memberof ProductApiGetProducts
|
|
9254
9272
|
*/
|
|
9255
|
-
readonly
|
|
9273
|
+
readonly companyId?: string;
|
|
9274
|
+
/**
|
|
9275
|
+
*
|
|
9276
|
+
* @type {string}
|
|
9277
|
+
* @memberof ProductApiGetProducts
|
|
9278
|
+
*/
|
|
9279
|
+
readonly domain?: string;
|
|
9256
9280
|
/**
|
|
9257
9281
|
*
|
|
9258
9282
|
* @type {string}
|
|
@@ -9289,13 +9313,19 @@ export interface ProductApiSearchProductsRequest {
|
|
|
9289
9313
|
* @type {string}
|
|
9290
9314
|
* @memberof ProductApiSearchProducts
|
|
9291
9315
|
*/
|
|
9292
|
-
readonly
|
|
9316
|
+
readonly search: string;
|
|
9293
9317
|
/**
|
|
9294
9318
|
*
|
|
9295
9319
|
* @type {string}
|
|
9296
9320
|
* @memberof ProductApiSearchProducts
|
|
9297
9321
|
*/
|
|
9298
|
-
readonly
|
|
9322
|
+
readonly companyId?: string;
|
|
9323
|
+
/**
|
|
9324
|
+
*
|
|
9325
|
+
* @type {string}
|
|
9326
|
+
* @memberof ProductApiSearchProducts
|
|
9327
|
+
*/
|
|
9328
|
+
readonly domain?: string;
|
|
9299
9329
|
}
|
|
9300
9330
|
/**
|
|
9301
9331
|
* ProductApi - object-oriented interface
|
package/dist/api/api.js
CHANGED
|
@@ -1643,12 +1643,12 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1643
1643
|
/**
|
|
1644
1644
|
*
|
|
1645
1645
|
* @param {string} slug
|
|
1646
|
-
* @param {string} [
|
|
1646
|
+
* @param {string} [companyId]
|
|
1647
1647
|
* @param {string} [domain]
|
|
1648
1648
|
* @param {*} [options] Override http request option.
|
|
1649
1649
|
* @throws {RequiredError}
|
|
1650
1650
|
*/
|
|
1651
|
-
getPageBySlug: async (slug,
|
|
1651
|
+
getPageBySlug: async (slug, companyId, domain, options = {}) => {
|
|
1652
1652
|
// verify required parameter 'slug' is not null or undefined
|
|
1653
1653
|
(0, common_1.assertParamExists)('getPageBySlug', 'slug', slug);
|
|
1654
1654
|
const localVarPath = `/api/pages/slug/{slug}`
|
|
@@ -1662,8 +1662,8 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1662
1662
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1663
1663
|
const localVarHeaderParameter = {};
|
|
1664
1664
|
const localVarQueryParameter = {};
|
|
1665
|
-
if (
|
|
1666
|
-
localVarQueryParameter['
|
|
1665
|
+
if (companyId !== undefined) {
|
|
1666
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1667
1667
|
}
|
|
1668
1668
|
if (domain !== undefined) {
|
|
1669
1669
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -1679,12 +1679,12 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1679
1679
|
/**
|
|
1680
1680
|
*
|
|
1681
1681
|
* @param {string} type
|
|
1682
|
-
* @param {string} [
|
|
1682
|
+
* @param {string} [companyId]
|
|
1683
1683
|
* @param {string} [domain]
|
|
1684
1684
|
* @param {*} [options] Override http request option.
|
|
1685
1685
|
* @throws {RequiredError}
|
|
1686
1686
|
*/
|
|
1687
|
-
getPageByType: async (type,
|
|
1687
|
+
getPageByType: async (type, companyId, domain, options = {}) => {
|
|
1688
1688
|
// verify required parameter 'type' is not null or undefined
|
|
1689
1689
|
(0, common_1.assertParamExists)('getPageByType', 'type', type);
|
|
1690
1690
|
const localVarPath = `/api/pages/type/{type}`
|
|
@@ -1698,8 +1698,8 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1698
1698
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1699
1699
|
const localVarHeaderParameter = {};
|
|
1700
1700
|
const localVarQueryParameter = {};
|
|
1701
|
-
if (
|
|
1702
|
-
localVarQueryParameter['
|
|
1701
|
+
if (companyId !== undefined) {
|
|
1702
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1703
1703
|
}
|
|
1704
1704
|
if (domain !== undefined) {
|
|
1705
1705
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -1722,14 +1722,14 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1722
1722
|
* @param {string} [dateField]
|
|
1723
1723
|
* @param {OrderEnum} [order]
|
|
1724
1724
|
* @param {string} [sort]
|
|
1725
|
-
* @param {string} [
|
|
1725
|
+
* @param {string} [companyId]
|
|
1726
1726
|
* @param {string} [domain]
|
|
1727
1727
|
* @param {PageTypeEnum} [type]
|
|
1728
1728
|
* @param {ContentStatusEnum} [status]
|
|
1729
1729
|
* @param {*} [options] Override http request option.
|
|
1730
1730
|
* @throws {RequiredError}
|
|
1731
1731
|
*/
|
|
1732
|
-
getPages: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
1732
|
+
getPages: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options = {}) => {
|
|
1733
1733
|
const localVarPath = `/api/pages`;
|
|
1734
1734
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1735
1735
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1768,8 +1768,8 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1768
1768
|
if (sort !== undefined) {
|
|
1769
1769
|
localVarQueryParameter['sort'] = sort;
|
|
1770
1770
|
}
|
|
1771
|
-
if (
|
|
1772
|
-
localVarQueryParameter['
|
|
1771
|
+
if (companyId !== undefined) {
|
|
1772
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1773
1773
|
}
|
|
1774
1774
|
if (domain !== undefined) {
|
|
1775
1775
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -1801,13 +1801,13 @@ const PageApiFp = function (configuration) {
|
|
|
1801
1801
|
/**
|
|
1802
1802
|
*
|
|
1803
1803
|
* @param {string} slug
|
|
1804
|
-
* @param {string} [
|
|
1804
|
+
* @param {string} [companyId]
|
|
1805
1805
|
* @param {string} [domain]
|
|
1806
1806
|
* @param {*} [options] Override http request option.
|
|
1807
1807
|
* @throws {RequiredError}
|
|
1808
1808
|
*/
|
|
1809
|
-
async getPageBySlug(slug,
|
|
1810
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug,
|
|
1809
|
+
async getPageBySlug(slug, companyId, domain, options) {
|
|
1810
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug, companyId, domain, options);
|
|
1811
1811
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1812
1812
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPageBySlug']?.[localVarOperationServerIndex]?.url;
|
|
1813
1813
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1815,13 +1815,13 @@ const PageApiFp = function (configuration) {
|
|
|
1815
1815
|
/**
|
|
1816
1816
|
*
|
|
1817
1817
|
* @param {string} type
|
|
1818
|
-
* @param {string} [
|
|
1818
|
+
* @param {string} [companyId]
|
|
1819
1819
|
* @param {string} [domain]
|
|
1820
1820
|
* @param {*} [options] Override http request option.
|
|
1821
1821
|
* @throws {RequiredError}
|
|
1822
1822
|
*/
|
|
1823
|
-
async getPageByType(type,
|
|
1824
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type,
|
|
1823
|
+
async getPageByType(type, companyId, domain, options) {
|
|
1824
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, options);
|
|
1825
1825
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1826
1826
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
|
|
1827
1827
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1836,15 +1836,15 @@ const PageApiFp = function (configuration) {
|
|
|
1836
1836
|
* @param {string} [dateField]
|
|
1837
1837
|
* @param {OrderEnum} [order]
|
|
1838
1838
|
* @param {string} [sort]
|
|
1839
|
-
* @param {string} [
|
|
1839
|
+
* @param {string} [companyId]
|
|
1840
1840
|
* @param {string} [domain]
|
|
1841
1841
|
* @param {PageTypeEnum} [type]
|
|
1842
1842
|
* @param {ContentStatusEnum} [status]
|
|
1843
1843
|
* @param {*} [options] Override http request option.
|
|
1844
1844
|
* @throws {RequiredError}
|
|
1845
1845
|
*/
|
|
1846
|
-
async getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
1847
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
1846
|
+
async getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options) {
|
|
1847
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options);
|
|
1848
1848
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1849
1849
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPages']?.[localVarOperationServerIndex]?.url;
|
|
1850
1850
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1866,7 +1866,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
1866
1866
|
* @throws {RequiredError}
|
|
1867
1867
|
*/
|
|
1868
1868
|
getPageBySlug(requestParameters, options) {
|
|
1869
|
-
return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.
|
|
1869
|
+
return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
1870
1870
|
},
|
|
1871
1871
|
/**
|
|
1872
1872
|
*
|
|
@@ -1875,7 +1875,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
1875
1875
|
* @throws {RequiredError}
|
|
1876
1876
|
*/
|
|
1877
1877
|
getPageByType(requestParameters, options) {
|
|
1878
|
-
return localVarFp.getPageByType(requestParameters.type, requestParameters.
|
|
1878
|
+
return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
1879
1879
|
},
|
|
1880
1880
|
/**
|
|
1881
1881
|
*
|
|
@@ -1884,7 +1884,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
1884
1884
|
* @throws {RequiredError}
|
|
1885
1885
|
*/
|
|
1886
1886
|
getPages(requestParameters = {}, options) {
|
|
1887
|
-
return localVarFp.getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
1887
|
+
return localVarFp.getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
1888
1888
|
},
|
|
1889
1889
|
};
|
|
1890
1890
|
};
|
|
@@ -1904,7 +1904,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
1904
1904
|
* @memberof PageApi
|
|
1905
1905
|
*/
|
|
1906
1906
|
getPageBySlug(requestParameters, options) {
|
|
1907
|
-
return (0, exports.PageApiFp)(this.configuration).getPageBySlug(requestParameters.slug, requestParameters.
|
|
1907
|
+
return (0, exports.PageApiFp)(this.configuration).getPageBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
1908
1908
|
}
|
|
1909
1909
|
/**
|
|
1910
1910
|
*
|
|
@@ -1914,7 +1914,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
1914
1914
|
* @memberof PageApi
|
|
1915
1915
|
*/
|
|
1916
1916
|
getPageByType(requestParameters, options) {
|
|
1917
|
-
return (0, exports.PageApiFp)(this.configuration).getPageByType(requestParameters.type, requestParameters.
|
|
1917
|
+
return (0, exports.PageApiFp)(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
1918
1918
|
}
|
|
1919
1919
|
/**
|
|
1920
1920
|
*
|
|
@@ -1924,7 +1924,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
1924
1924
|
* @memberof PageApi
|
|
1925
1925
|
*/
|
|
1926
1926
|
getPages(requestParameters = {}, options) {
|
|
1927
|
-
return (0, exports.PageApiFp)(this.configuration).getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
1927
|
+
return (0, exports.PageApiFp)(this.configuration).getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
1928
1928
|
}
|
|
1929
1929
|
}
|
|
1930
1930
|
exports.PageApi = PageApi;
|
|
@@ -1937,15 +1937,14 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1937
1937
|
/**
|
|
1938
1938
|
*
|
|
1939
1939
|
* @param {string} slug
|
|
1940
|
-
* @param {string}
|
|
1940
|
+
* @param {string} [companyId]
|
|
1941
|
+
* @param {string} [domain]
|
|
1941
1942
|
* @param {*} [options] Override http request option.
|
|
1942
1943
|
* @throws {RequiredError}
|
|
1943
1944
|
*/
|
|
1944
|
-
getProductBySlug: async (slug, domain, options = {}) => {
|
|
1945
|
+
getProductBySlug: async (slug, companyId, domain, options = {}) => {
|
|
1945
1946
|
// verify required parameter 'slug' is not null or undefined
|
|
1946
1947
|
(0, common_1.assertParamExists)('getProductBySlug', 'slug', slug);
|
|
1947
|
-
// verify required parameter 'domain' is not null or undefined
|
|
1948
|
-
(0, common_1.assertParamExists)('getProductBySlug', 'domain', domain);
|
|
1949
1948
|
const localVarPath = `/api/products/slug/{slug}`
|
|
1950
1949
|
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
1951
1950
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1957,6 +1956,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1957
1956
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1958
1957
|
const localVarHeaderParameter = {};
|
|
1959
1958
|
const localVarQueryParameter = {};
|
|
1959
|
+
if (companyId !== undefined) {
|
|
1960
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1961
|
+
}
|
|
1960
1962
|
if (domain !== undefined) {
|
|
1961
1963
|
localVarQueryParameter['domain'] = domain;
|
|
1962
1964
|
}
|
|
@@ -1978,7 +1980,8 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1978
1980
|
* @param {string} [dateField]
|
|
1979
1981
|
* @param {OrderEnum} [order]
|
|
1980
1982
|
* @param {string} [sort]
|
|
1981
|
-
* @param {string} [
|
|
1983
|
+
* @param {string} [companyId]
|
|
1984
|
+
* @param {string} [domain]
|
|
1982
1985
|
* @param {string} [collections]
|
|
1983
1986
|
* @param {string} [category]
|
|
1984
1987
|
* @param {string} [brand]
|
|
@@ -1986,7 +1989,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1986
1989
|
* @param {*} [options] Override http request option.
|
|
1987
1990
|
* @throws {RequiredError}
|
|
1988
1991
|
*/
|
|
1989
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
1992
|
+
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options = {}) => {
|
|
1990
1993
|
const localVarPath = `/api/products`;
|
|
1991
1994
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1992
1995
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2025,8 +2028,11 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2025
2028
|
if (sort !== undefined) {
|
|
2026
2029
|
localVarQueryParameter['sort'] = sort;
|
|
2027
2030
|
}
|
|
2028
|
-
if (
|
|
2029
|
-
localVarQueryParameter['
|
|
2031
|
+
if (companyId !== undefined) {
|
|
2032
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2033
|
+
}
|
|
2034
|
+
if (domain !== undefined) {
|
|
2035
|
+
localVarQueryParameter['domain'] = domain;
|
|
2030
2036
|
}
|
|
2031
2037
|
if (collections !== undefined) {
|
|
2032
2038
|
localVarQueryParameter['collections'] = collections;
|
|
@@ -2050,14 +2056,13 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2050
2056
|
},
|
|
2051
2057
|
/**
|
|
2052
2058
|
*
|
|
2053
|
-
* @param {string} company
|
|
2054
2059
|
* @param {string} search
|
|
2060
|
+
* @param {string} [companyId]
|
|
2061
|
+
* @param {string} [domain]
|
|
2055
2062
|
* @param {*} [options] Override http request option.
|
|
2056
2063
|
* @throws {RequiredError}
|
|
2057
2064
|
*/
|
|
2058
|
-
searchProducts: async (
|
|
2059
|
-
// verify required parameter 'company' is not null or undefined
|
|
2060
|
-
(0, common_1.assertParamExists)('searchProducts', 'company', company);
|
|
2065
|
+
searchProducts: async (search, companyId, domain, options = {}) => {
|
|
2061
2066
|
// verify required parameter 'search' is not null or undefined
|
|
2062
2067
|
(0, common_1.assertParamExists)('searchProducts', 'search', search);
|
|
2063
2068
|
const localVarPath = `/api/products/search`;
|
|
@@ -2070,12 +2075,15 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2070
2075
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2071
2076
|
const localVarHeaderParameter = {};
|
|
2072
2077
|
const localVarQueryParameter = {};
|
|
2073
|
-
if (company !== undefined) {
|
|
2074
|
-
localVarQueryParameter['company'] = company;
|
|
2075
|
-
}
|
|
2076
2078
|
if (search !== undefined) {
|
|
2077
2079
|
localVarQueryParameter['search'] = search;
|
|
2078
2080
|
}
|
|
2081
|
+
if (companyId !== undefined) {
|
|
2082
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2083
|
+
}
|
|
2084
|
+
if (domain !== undefined) {
|
|
2085
|
+
localVarQueryParameter['domain'] = domain;
|
|
2086
|
+
}
|
|
2079
2087
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2080
2088
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2081
2089
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2097,12 +2105,13 @@ const ProductApiFp = function (configuration) {
|
|
|
2097
2105
|
/**
|
|
2098
2106
|
*
|
|
2099
2107
|
* @param {string} slug
|
|
2100
|
-
* @param {string}
|
|
2108
|
+
* @param {string} [companyId]
|
|
2109
|
+
* @param {string} [domain]
|
|
2101
2110
|
* @param {*} [options] Override http request option.
|
|
2102
2111
|
* @throws {RequiredError}
|
|
2103
2112
|
*/
|
|
2104
|
-
async getProductBySlug(slug, domain, options) {
|
|
2105
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductBySlug(slug, domain, options);
|
|
2113
|
+
async getProductBySlug(slug, companyId, domain, options) {
|
|
2114
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductBySlug(slug, companyId, domain, options);
|
|
2106
2115
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2107
2116
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProductBySlug']?.[localVarOperationServerIndex]?.url;
|
|
2108
2117
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2117,7 +2126,8 @@ const ProductApiFp = function (configuration) {
|
|
|
2117
2126
|
* @param {string} [dateField]
|
|
2118
2127
|
* @param {OrderEnum} [order]
|
|
2119
2128
|
* @param {string} [sort]
|
|
2120
|
-
* @param {string} [
|
|
2129
|
+
* @param {string} [companyId]
|
|
2130
|
+
* @param {string} [domain]
|
|
2121
2131
|
* @param {string} [collections]
|
|
2122
2132
|
* @param {string} [category]
|
|
2123
2133
|
* @param {string} [brand]
|
|
@@ -2125,21 +2135,22 @@ const ProductApiFp = function (configuration) {
|
|
|
2125
2135
|
* @param {*} [options] Override http request option.
|
|
2126
2136
|
* @throws {RequiredError}
|
|
2127
2137
|
*/
|
|
2128
|
-
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
2129
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
2138
|
+
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options) {
|
|
2139
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options);
|
|
2130
2140
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2131
2141
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
2132
2142
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2133
2143
|
},
|
|
2134
2144
|
/**
|
|
2135
2145
|
*
|
|
2136
|
-
* @param {string} company
|
|
2137
2146
|
* @param {string} search
|
|
2147
|
+
* @param {string} [companyId]
|
|
2148
|
+
* @param {string} [domain]
|
|
2138
2149
|
* @param {*} [options] Override http request option.
|
|
2139
2150
|
* @throws {RequiredError}
|
|
2140
2151
|
*/
|
|
2141
|
-
async searchProducts(
|
|
2142
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(
|
|
2152
|
+
async searchProducts(search, companyId, domain, options) {
|
|
2153
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(search, companyId, domain, options);
|
|
2143
2154
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2144
2155
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
|
|
2145
2156
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2161,7 +2172,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2161
2172
|
* @throws {RequiredError}
|
|
2162
2173
|
*/
|
|
2163
2174
|
getProductBySlug(requestParameters, options) {
|
|
2164
|
-
return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
2175
|
+
return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
2165
2176
|
},
|
|
2166
2177
|
/**
|
|
2167
2178
|
*
|
|
@@ -2170,7 +2181,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2170
2181
|
* @throws {RequiredError}
|
|
2171
2182
|
*/
|
|
2172
2183
|
getProducts(requestParameters = {}, options) {
|
|
2173
|
-
return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
2184
|
+
return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
2174
2185
|
},
|
|
2175
2186
|
/**
|
|
2176
2187
|
*
|
|
@@ -2179,7 +2190,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2179
2190
|
* @throws {RequiredError}
|
|
2180
2191
|
*/
|
|
2181
2192
|
searchProducts(requestParameters, options) {
|
|
2182
|
-
return localVarFp.searchProducts(requestParameters.
|
|
2193
|
+
return localVarFp.searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
2183
2194
|
},
|
|
2184
2195
|
};
|
|
2185
2196
|
};
|
|
@@ -2199,7 +2210,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
2199
2210
|
* @memberof ProductApi
|
|
2200
2211
|
*/
|
|
2201
2212
|
getProductBySlug(requestParameters, options) {
|
|
2202
|
-
return (0, exports.ProductApiFp)(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
2213
|
+
return (0, exports.ProductApiFp)(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
2203
2214
|
}
|
|
2204
2215
|
/**
|
|
2205
2216
|
*
|
|
@@ -2209,7 +2220,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
2209
2220
|
* @memberof ProductApi
|
|
2210
2221
|
*/
|
|
2211
2222
|
getProducts(requestParameters = {}, options) {
|
|
2212
|
-
return (0, exports.ProductApiFp)(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
2223
|
+
return (0, exports.ProductApiFp)(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
2213
2224
|
}
|
|
2214
2225
|
/**
|
|
2215
2226
|
*
|
|
@@ -2219,7 +2230,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
2219
2230
|
* @memberof ProductApi
|
|
2220
2231
|
*/
|
|
2221
2232
|
searchProducts(requestParameters, options) {
|
|
2222
|
-
return (0, exports.ProductApiFp)(this.configuration).searchProducts(requestParameters.
|
|
2233
|
+
return (0, exports.ProductApiFp)(this.configuration).searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
2223
2234
|
}
|
|
2224
2235
|
}
|
|
2225
2236
|
exports.ProductApi = ProductApi;
|
package/dist/api/api.mjs
CHANGED
|
@@ -1617,12 +1617,12 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1617
1617
|
/**
|
|
1618
1618
|
*
|
|
1619
1619
|
* @param {string} slug
|
|
1620
|
-
* @param {string} [
|
|
1620
|
+
* @param {string} [companyId]
|
|
1621
1621
|
* @param {string} [domain]
|
|
1622
1622
|
* @param {*} [options] Override http request option.
|
|
1623
1623
|
* @throws {RequiredError}
|
|
1624
1624
|
*/
|
|
1625
|
-
getPageBySlug: async (slug,
|
|
1625
|
+
getPageBySlug: async (slug, companyId, domain, options = {}) => {
|
|
1626
1626
|
// verify required parameter 'slug' is not null or undefined
|
|
1627
1627
|
assertParamExists('getPageBySlug', 'slug', slug);
|
|
1628
1628
|
const localVarPath = `/api/pages/slug/{slug}`
|
|
@@ -1636,8 +1636,8 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1636
1636
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1637
1637
|
const localVarHeaderParameter = {};
|
|
1638
1638
|
const localVarQueryParameter = {};
|
|
1639
|
-
if (
|
|
1640
|
-
localVarQueryParameter['
|
|
1639
|
+
if (companyId !== undefined) {
|
|
1640
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1641
1641
|
}
|
|
1642
1642
|
if (domain !== undefined) {
|
|
1643
1643
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -1653,12 +1653,12 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1653
1653
|
/**
|
|
1654
1654
|
*
|
|
1655
1655
|
* @param {string} type
|
|
1656
|
-
* @param {string} [
|
|
1656
|
+
* @param {string} [companyId]
|
|
1657
1657
|
* @param {string} [domain]
|
|
1658
1658
|
* @param {*} [options] Override http request option.
|
|
1659
1659
|
* @throws {RequiredError}
|
|
1660
1660
|
*/
|
|
1661
|
-
getPageByType: async (type,
|
|
1661
|
+
getPageByType: async (type, companyId, domain, options = {}) => {
|
|
1662
1662
|
// verify required parameter 'type' is not null or undefined
|
|
1663
1663
|
assertParamExists('getPageByType', 'type', type);
|
|
1664
1664
|
const localVarPath = `/api/pages/type/{type}`
|
|
@@ -1672,8 +1672,8 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1672
1672
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1673
1673
|
const localVarHeaderParameter = {};
|
|
1674
1674
|
const localVarQueryParameter = {};
|
|
1675
|
-
if (
|
|
1676
|
-
localVarQueryParameter['
|
|
1675
|
+
if (companyId !== undefined) {
|
|
1676
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1677
1677
|
}
|
|
1678
1678
|
if (domain !== undefined) {
|
|
1679
1679
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -1696,14 +1696,14 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1696
1696
|
* @param {string} [dateField]
|
|
1697
1697
|
* @param {OrderEnum} [order]
|
|
1698
1698
|
* @param {string} [sort]
|
|
1699
|
-
* @param {string} [
|
|
1699
|
+
* @param {string} [companyId]
|
|
1700
1700
|
* @param {string} [domain]
|
|
1701
1701
|
* @param {PageTypeEnum} [type]
|
|
1702
1702
|
* @param {ContentStatusEnum} [status]
|
|
1703
1703
|
* @param {*} [options] Override http request option.
|
|
1704
1704
|
* @throws {RequiredError}
|
|
1705
1705
|
*/
|
|
1706
|
-
getPages: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
1706
|
+
getPages: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options = {}) => {
|
|
1707
1707
|
const localVarPath = `/api/pages`;
|
|
1708
1708
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1709
1709
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1742,8 +1742,8 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1742
1742
|
if (sort !== undefined) {
|
|
1743
1743
|
localVarQueryParameter['sort'] = sort;
|
|
1744
1744
|
}
|
|
1745
|
-
if (
|
|
1746
|
-
localVarQueryParameter['
|
|
1745
|
+
if (companyId !== undefined) {
|
|
1746
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1747
1747
|
}
|
|
1748
1748
|
if (domain !== undefined) {
|
|
1749
1749
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -1774,13 +1774,13 @@ export const PageApiFp = function (configuration) {
|
|
|
1774
1774
|
/**
|
|
1775
1775
|
*
|
|
1776
1776
|
* @param {string} slug
|
|
1777
|
-
* @param {string} [
|
|
1777
|
+
* @param {string} [companyId]
|
|
1778
1778
|
* @param {string} [domain]
|
|
1779
1779
|
* @param {*} [options] Override http request option.
|
|
1780
1780
|
* @throws {RequiredError}
|
|
1781
1781
|
*/
|
|
1782
|
-
async getPageBySlug(slug,
|
|
1783
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug,
|
|
1782
|
+
async getPageBySlug(slug, companyId, domain, options) {
|
|
1783
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug, companyId, domain, options);
|
|
1784
1784
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1785
1785
|
const localVarOperationServerBasePath = operationServerMap['PageApi.getPageBySlug']?.[localVarOperationServerIndex]?.url;
|
|
1786
1786
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1788,13 +1788,13 @@ export const PageApiFp = function (configuration) {
|
|
|
1788
1788
|
/**
|
|
1789
1789
|
*
|
|
1790
1790
|
* @param {string} type
|
|
1791
|
-
* @param {string} [
|
|
1791
|
+
* @param {string} [companyId]
|
|
1792
1792
|
* @param {string} [domain]
|
|
1793
1793
|
* @param {*} [options] Override http request option.
|
|
1794
1794
|
* @throws {RequiredError}
|
|
1795
1795
|
*/
|
|
1796
|
-
async getPageByType(type,
|
|
1797
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type,
|
|
1796
|
+
async getPageByType(type, companyId, domain, options) {
|
|
1797
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, options);
|
|
1798
1798
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1799
1799
|
const localVarOperationServerBasePath = operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
|
|
1800
1800
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1809,15 +1809,15 @@ export const PageApiFp = function (configuration) {
|
|
|
1809
1809
|
* @param {string} [dateField]
|
|
1810
1810
|
* @param {OrderEnum} [order]
|
|
1811
1811
|
* @param {string} [sort]
|
|
1812
|
-
* @param {string} [
|
|
1812
|
+
* @param {string} [companyId]
|
|
1813
1813
|
* @param {string} [domain]
|
|
1814
1814
|
* @param {PageTypeEnum} [type]
|
|
1815
1815
|
* @param {ContentStatusEnum} [status]
|
|
1816
1816
|
* @param {*} [options] Override http request option.
|
|
1817
1817
|
* @throws {RequiredError}
|
|
1818
1818
|
*/
|
|
1819
|
-
async getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
1820
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
1819
|
+
async getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options) {
|
|
1820
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options);
|
|
1821
1821
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1822
1822
|
const localVarOperationServerBasePath = operationServerMap['PageApi.getPages']?.[localVarOperationServerIndex]?.url;
|
|
1823
1823
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1838,7 +1838,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
1838
1838
|
* @throws {RequiredError}
|
|
1839
1839
|
*/
|
|
1840
1840
|
getPageBySlug(requestParameters, options) {
|
|
1841
|
-
return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.
|
|
1841
|
+
return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
1842
1842
|
},
|
|
1843
1843
|
/**
|
|
1844
1844
|
*
|
|
@@ -1847,7 +1847,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
1847
1847
|
* @throws {RequiredError}
|
|
1848
1848
|
*/
|
|
1849
1849
|
getPageByType(requestParameters, options) {
|
|
1850
|
-
return localVarFp.getPageByType(requestParameters.type, requestParameters.
|
|
1850
|
+
return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
1851
1851
|
},
|
|
1852
1852
|
/**
|
|
1853
1853
|
*
|
|
@@ -1856,7 +1856,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
1856
1856
|
* @throws {RequiredError}
|
|
1857
1857
|
*/
|
|
1858
1858
|
getPages(requestParameters = {}, options) {
|
|
1859
|
-
return localVarFp.getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
1859
|
+
return localVarFp.getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
1860
1860
|
},
|
|
1861
1861
|
};
|
|
1862
1862
|
};
|
|
@@ -1875,7 +1875,7 @@ export class PageApi extends BaseAPI {
|
|
|
1875
1875
|
* @memberof PageApi
|
|
1876
1876
|
*/
|
|
1877
1877
|
getPageBySlug(requestParameters, options) {
|
|
1878
|
-
return PageApiFp(this.configuration).getPageBySlug(requestParameters.slug, requestParameters.
|
|
1878
|
+
return PageApiFp(this.configuration).getPageBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
1879
1879
|
}
|
|
1880
1880
|
/**
|
|
1881
1881
|
*
|
|
@@ -1885,7 +1885,7 @@ export class PageApi extends BaseAPI {
|
|
|
1885
1885
|
* @memberof PageApi
|
|
1886
1886
|
*/
|
|
1887
1887
|
getPageByType(requestParameters, options) {
|
|
1888
|
-
return PageApiFp(this.configuration).getPageByType(requestParameters.type, requestParameters.
|
|
1888
|
+
return PageApiFp(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
1889
1889
|
}
|
|
1890
1890
|
/**
|
|
1891
1891
|
*
|
|
@@ -1895,7 +1895,7 @@ export class PageApi extends BaseAPI {
|
|
|
1895
1895
|
* @memberof PageApi
|
|
1896
1896
|
*/
|
|
1897
1897
|
getPages(requestParameters = {}, options) {
|
|
1898
|
-
return PageApiFp(this.configuration).getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
1898
|
+
return PageApiFp(this.configuration).getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
1899
1899
|
}
|
|
1900
1900
|
}
|
|
1901
1901
|
/**
|
|
@@ -1907,15 +1907,14 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1907
1907
|
/**
|
|
1908
1908
|
*
|
|
1909
1909
|
* @param {string} slug
|
|
1910
|
-
* @param {string}
|
|
1910
|
+
* @param {string} [companyId]
|
|
1911
|
+
* @param {string} [domain]
|
|
1911
1912
|
* @param {*} [options] Override http request option.
|
|
1912
1913
|
* @throws {RequiredError}
|
|
1913
1914
|
*/
|
|
1914
|
-
getProductBySlug: async (slug, domain, options = {}) => {
|
|
1915
|
+
getProductBySlug: async (slug, companyId, domain, options = {}) => {
|
|
1915
1916
|
// verify required parameter 'slug' is not null or undefined
|
|
1916
1917
|
assertParamExists('getProductBySlug', 'slug', slug);
|
|
1917
|
-
// verify required parameter 'domain' is not null or undefined
|
|
1918
|
-
assertParamExists('getProductBySlug', 'domain', domain);
|
|
1919
1918
|
const localVarPath = `/api/products/slug/{slug}`
|
|
1920
1919
|
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
1921
1920
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1927,6 +1926,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1927
1926
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1928
1927
|
const localVarHeaderParameter = {};
|
|
1929
1928
|
const localVarQueryParameter = {};
|
|
1929
|
+
if (companyId !== undefined) {
|
|
1930
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1931
|
+
}
|
|
1930
1932
|
if (domain !== undefined) {
|
|
1931
1933
|
localVarQueryParameter['domain'] = domain;
|
|
1932
1934
|
}
|
|
@@ -1948,7 +1950,8 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1948
1950
|
* @param {string} [dateField]
|
|
1949
1951
|
* @param {OrderEnum} [order]
|
|
1950
1952
|
* @param {string} [sort]
|
|
1951
|
-
* @param {string} [
|
|
1953
|
+
* @param {string} [companyId]
|
|
1954
|
+
* @param {string} [domain]
|
|
1952
1955
|
* @param {string} [collections]
|
|
1953
1956
|
* @param {string} [category]
|
|
1954
1957
|
* @param {string} [brand]
|
|
@@ -1956,7 +1959,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1956
1959
|
* @param {*} [options] Override http request option.
|
|
1957
1960
|
* @throws {RequiredError}
|
|
1958
1961
|
*/
|
|
1959
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
1962
|
+
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options = {}) => {
|
|
1960
1963
|
const localVarPath = `/api/products`;
|
|
1961
1964
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1962
1965
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1995,8 +1998,11 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1995
1998
|
if (sort !== undefined) {
|
|
1996
1999
|
localVarQueryParameter['sort'] = sort;
|
|
1997
2000
|
}
|
|
1998
|
-
if (
|
|
1999
|
-
localVarQueryParameter['
|
|
2001
|
+
if (companyId !== undefined) {
|
|
2002
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2003
|
+
}
|
|
2004
|
+
if (domain !== undefined) {
|
|
2005
|
+
localVarQueryParameter['domain'] = domain;
|
|
2000
2006
|
}
|
|
2001
2007
|
if (collections !== undefined) {
|
|
2002
2008
|
localVarQueryParameter['collections'] = collections;
|
|
@@ -2020,14 +2026,13 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2020
2026
|
},
|
|
2021
2027
|
/**
|
|
2022
2028
|
*
|
|
2023
|
-
* @param {string} company
|
|
2024
2029
|
* @param {string} search
|
|
2030
|
+
* @param {string} [companyId]
|
|
2031
|
+
* @param {string} [domain]
|
|
2025
2032
|
* @param {*} [options] Override http request option.
|
|
2026
2033
|
* @throws {RequiredError}
|
|
2027
2034
|
*/
|
|
2028
|
-
searchProducts: async (
|
|
2029
|
-
// verify required parameter 'company' is not null or undefined
|
|
2030
|
-
assertParamExists('searchProducts', 'company', company);
|
|
2035
|
+
searchProducts: async (search, companyId, domain, options = {}) => {
|
|
2031
2036
|
// verify required parameter 'search' is not null or undefined
|
|
2032
2037
|
assertParamExists('searchProducts', 'search', search);
|
|
2033
2038
|
const localVarPath = `/api/products/search`;
|
|
@@ -2040,12 +2045,15 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2040
2045
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2041
2046
|
const localVarHeaderParameter = {};
|
|
2042
2047
|
const localVarQueryParameter = {};
|
|
2043
|
-
if (company !== undefined) {
|
|
2044
|
-
localVarQueryParameter['company'] = company;
|
|
2045
|
-
}
|
|
2046
2048
|
if (search !== undefined) {
|
|
2047
2049
|
localVarQueryParameter['search'] = search;
|
|
2048
2050
|
}
|
|
2051
|
+
if (companyId !== undefined) {
|
|
2052
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2053
|
+
}
|
|
2054
|
+
if (domain !== undefined) {
|
|
2055
|
+
localVarQueryParameter['domain'] = domain;
|
|
2056
|
+
}
|
|
2049
2057
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2050
2058
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2051
2059
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2066,12 +2074,13 @@ export const ProductApiFp = function (configuration) {
|
|
|
2066
2074
|
/**
|
|
2067
2075
|
*
|
|
2068
2076
|
* @param {string} slug
|
|
2069
|
-
* @param {string}
|
|
2077
|
+
* @param {string} [companyId]
|
|
2078
|
+
* @param {string} [domain]
|
|
2070
2079
|
* @param {*} [options] Override http request option.
|
|
2071
2080
|
* @throws {RequiredError}
|
|
2072
2081
|
*/
|
|
2073
|
-
async getProductBySlug(slug, domain, options) {
|
|
2074
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductBySlug(slug, domain, options);
|
|
2082
|
+
async getProductBySlug(slug, companyId, domain, options) {
|
|
2083
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductBySlug(slug, companyId, domain, options);
|
|
2075
2084
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2076
2085
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductBySlug']?.[localVarOperationServerIndex]?.url;
|
|
2077
2086
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2086,7 +2095,8 @@ export const ProductApiFp = function (configuration) {
|
|
|
2086
2095
|
* @param {string} [dateField]
|
|
2087
2096
|
* @param {OrderEnum} [order]
|
|
2088
2097
|
* @param {string} [sort]
|
|
2089
|
-
* @param {string} [
|
|
2098
|
+
* @param {string} [companyId]
|
|
2099
|
+
* @param {string} [domain]
|
|
2090
2100
|
* @param {string} [collections]
|
|
2091
2101
|
* @param {string} [category]
|
|
2092
2102
|
* @param {string} [brand]
|
|
@@ -2094,21 +2104,22 @@ export const ProductApiFp = function (configuration) {
|
|
|
2094
2104
|
* @param {*} [options] Override http request option.
|
|
2095
2105
|
* @throws {RequiredError}
|
|
2096
2106
|
*/
|
|
2097
|
-
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
2098
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
2107
|
+
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options) {
|
|
2108
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options);
|
|
2099
2109
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2100
2110
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
2101
2111
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2102
2112
|
},
|
|
2103
2113
|
/**
|
|
2104
2114
|
*
|
|
2105
|
-
* @param {string} company
|
|
2106
2115
|
* @param {string} search
|
|
2116
|
+
* @param {string} [companyId]
|
|
2117
|
+
* @param {string} [domain]
|
|
2107
2118
|
* @param {*} [options] Override http request option.
|
|
2108
2119
|
* @throws {RequiredError}
|
|
2109
2120
|
*/
|
|
2110
|
-
async searchProducts(
|
|
2111
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(
|
|
2121
|
+
async searchProducts(search, companyId, domain, options) {
|
|
2122
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(search, companyId, domain, options);
|
|
2112
2123
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2113
2124
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
|
|
2114
2125
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2129,7 +2140,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2129
2140
|
* @throws {RequiredError}
|
|
2130
2141
|
*/
|
|
2131
2142
|
getProductBySlug(requestParameters, options) {
|
|
2132
|
-
return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
2143
|
+
return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
2133
2144
|
},
|
|
2134
2145
|
/**
|
|
2135
2146
|
*
|
|
@@ -2138,7 +2149,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2138
2149
|
* @throws {RequiredError}
|
|
2139
2150
|
*/
|
|
2140
2151
|
getProducts(requestParameters = {}, options) {
|
|
2141
|
-
return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
2152
|
+
return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
2142
2153
|
},
|
|
2143
2154
|
/**
|
|
2144
2155
|
*
|
|
@@ -2147,7 +2158,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2147
2158
|
* @throws {RequiredError}
|
|
2148
2159
|
*/
|
|
2149
2160
|
searchProducts(requestParameters, options) {
|
|
2150
|
-
return localVarFp.searchProducts(requestParameters.
|
|
2161
|
+
return localVarFp.searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
2151
2162
|
},
|
|
2152
2163
|
};
|
|
2153
2164
|
};
|
|
@@ -2166,7 +2177,7 @@ export class ProductApi extends BaseAPI {
|
|
|
2166
2177
|
* @memberof ProductApi
|
|
2167
2178
|
*/
|
|
2168
2179
|
getProductBySlug(requestParameters, options) {
|
|
2169
|
-
return ProductApiFp(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
2180
|
+
return ProductApiFp(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
2170
2181
|
}
|
|
2171
2182
|
/**
|
|
2172
2183
|
*
|
|
@@ -2176,7 +2187,7 @@ export class ProductApi extends BaseAPI {
|
|
|
2176
2187
|
* @memberof ProductApi
|
|
2177
2188
|
*/
|
|
2178
2189
|
getProducts(requestParameters = {}, options) {
|
|
2179
|
-
return ProductApiFp(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
2190
|
+
return ProductApiFp(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
2180
2191
|
}
|
|
2181
2192
|
/**
|
|
2182
2193
|
*
|
|
@@ -2186,7 +2197,7 @@ export class ProductApi extends BaseAPI {
|
|
|
2186
2197
|
* @memberof ProductApi
|
|
2187
2198
|
*/
|
|
2188
2199
|
searchProducts(requestParameters, options) {
|
|
2189
|
-
return ProductApiFp(this.configuration).searchProducts(requestParameters.
|
|
2200
|
+
return ProductApiFp(this.configuration).searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
2190
2201
|
}
|
|
2191
2202
|
}
|
|
2192
2203
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api-client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22",
|
|
4
4
|
"description": "api-client-sdk",
|
|
5
5
|
"author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
|
|
6
6
|
"homepage": "https://github.com/infisale/infisale-client#readme",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"bugs": {
|
|
37
37
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "11a0263e143de3f428f639b09f0ffc7d83696aad"
|
|
40
40
|
}
|