@infisale-client/api 1.2.0 → 1.2.2
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 +80 -12
- package/dist/api/api.js +60 -25
- package/dist/api/api.mjs +60 -25
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -4739,6 +4739,18 @@ export interface IPageGetAllQueryParams {
|
|
|
4739
4739
|
* @memberof IPageGetAllQueryParams
|
|
4740
4740
|
*/
|
|
4741
4741
|
'domain'?: string;
|
|
4742
|
+
/**
|
|
4743
|
+
*
|
|
4744
|
+
* @type {string}
|
|
4745
|
+
* @memberof IPageGetAllQueryParams
|
|
4746
|
+
*/
|
|
4747
|
+
'search'?: string;
|
|
4748
|
+
/**
|
|
4749
|
+
*
|
|
4750
|
+
* @type {string}
|
|
4751
|
+
* @memberof IPageGetAllQueryParams
|
|
4752
|
+
*/
|
|
4753
|
+
'template'?: string;
|
|
4742
4754
|
/**
|
|
4743
4755
|
*
|
|
4744
4756
|
* @type {Array<PageTypeEnum>}
|
|
@@ -8465,13 +8477,13 @@ export interface SetCompanySenderEmailRequest {
|
|
|
8465
8477
|
* @type {string}
|
|
8466
8478
|
* @memberof SetCompanySenderEmailRequest
|
|
8467
8479
|
*/
|
|
8468
|
-
'
|
|
8480
|
+
'senderName': string;
|
|
8469
8481
|
/**
|
|
8470
8482
|
*
|
|
8471
8483
|
* @type {string}
|
|
8472
8484
|
* @memberof SetCompanySenderEmailRequest
|
|
8473
8485
|
*/
|
|
8474
|
-
'
|
|
8486
|
+
'senderEmail': string;
|
|
8475
8487
|
}
|
|
8476
8488
|
/**
|
|
8477
8489
|
*
|
|
@@ -10160,10 +10172,12 @@ export declare const CollectionApiAxiosParamCreator: (configuration?: Configurat
|
|
|
10160
10172
|
/**
|
|
10161
10173
|
*
|
|
10162
10174
|
* @param {string} companyId
|
|
10175
|
+
* @param {string} [search]
|
|
10176
|
+
* @param {string} [template]
|
|
10163
10177
|
* @param {*} [options] Override http request option.
|
|
10164
10178
|
* @throws {RequiredError}
|
|
10165
10179
|
*/
|
|
10166
|
-
getAllCollections: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10180
|
+
getAllCollections: (companyId: string, search?: string, template?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10167
10181
|
/**
|
|
10168
10182
|
*
|
|
10169
10183
|
* @param {string} id
|
|
@@ -10198,10 +10212,11 @@ export declare const CollectionApiAxiosParamCreator: (configuration?: Configurat
|
|
|
10198
10212
|
/**
|
|
10199
10213
|
*
|
|
10200
10214
|
* @param {string} companyId
|
|
10215
|
+
* @param {string} [template]
|
|
10201
10216
|
* @param {*} [options] Override http request option.
|
|
10202
10217
|
* @throws {RequiredError}
|
|
10203
10218
|
*/
|
|
10204
|
-
getFirstCollection: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10219
|
+
getFirstCollection: (companyId: string, template?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10205
10220
|
/**
|
|
10206
10221
|
*
|
|
10207
10222
|
* @param {string} id
|
|
@@ -10233,10 +10248,12 @@ export declare const CollectionApiFp: (configuration?: Configuration) => {
|
|
|
10233
10248
|
/**
|
|
10234
10249
|
*
|
|
10235
10250
|
* @param {string} companyId
|
|
10251
|
+
* @param {string} [search]
|
|
10252
|
+
* @param {string} [template]
|
|
10236
10253
|
* @param {*} [options] Override http request option.
|
|
10237
10254
|
* @throws {RequiredError}
|
|
10238
10255
|
*/
|
|
10239
|
-
getAllCollections(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCollectionsResponse>>;
|
|
10256
|
+
getAllCollections(companyId: string, search?: string, template?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCollectionsResponse>>;
|
|
10240
10257
|
/**
|
|
10241
10258
|
*
|
|
10242
10259
|
* @param {string} id
|
|
@@ -10271,10 +10288,11 @@ export declare const CollectionApiFp: (configuration?: Configuration) => {
|
|
|
10271
10288
|
/**
|
|
10272
10289
|
*
|
|
10273
10290
|
* @param {string} companyId
|
|
10291
|
+
* @param {string} [template]
|
|
10274
10292
|
* @param {*} [options] Override http request option.
|
|
10275
10293
|
* @throws {RequiredError}
|
|
10276
10294
|
*/
|
|
10277
|
-
getFirstCollection(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICollectionResponse>>;
|
|
10295
|
+
getFirstCollection(companyId: string, template?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICollectionResponse>>;
|
|
10278
10296
|
/**
|
|
10279
10297
|
*
|
|
10280
10298
|
* @param {string} id
|
|
@@ -10384,6 +10402,18 @@ export interface CollectionApiGetAllCollectionsRequest {
|
|
|
10384
10402
|
* @memberof CollectionApiGetAllCollections
|
|
10385
10403
|
*/
|
|
10386
10404
|
readonly companyId: string;
|
|
10405
|
+
/**
|
|
10406
|
+
*
|
|
10407
|
+
* @type {string}
|
|
10408
|
+
* @memberof CollectionApiGetAllCollections
|
|
10409
|
+
*/
|
|
10410
|
+
readonly search?: string;
|
|
10411
|
+
/**
|
|
10412
|
+
*
|
|
10413
|
+
* @type {string}
|
|
10414
|
+
* @memberof CollectionApiGetAllCollections
|
|
10415
|
+
*/
|
|
10416
|
+
readonly template?: string;
|
|
10387
10417
|
}
|
|
10388
10418
|
/**
|
|
10389
10419
|
* Request parameters for getCollectionById operation in CollectionApi.
|
|
@@ -10496,6 +10526,12 @@ export interface CollectionApiGetFirstCollectionRequest {
|
|
|
10496
10526
|
* @memberof CollectionApiGetFirstCollection
|
|
10497
10527
|
*/
|
|
10498
10528
|
readonly companyId: string;
|
|
10529
|
+
/**
|
|
10530
|
+
*
|
|
10531
|
+
* @type {string}
|
|
10532
|
+
* @memberof CollectionApiGetFirstCollection
|
|
10533
|
+
*/
|
|
10534
|
+
readonly template?: string;
|
|
10499
10535
|
}
|
|
10500
10536
|
/**
|
|
10501
10537
|
* Request parameters for updateCollection operation in CollectionApi.
|
|
@@ -13012,11 +13048,13 @@ export declare const PageApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
13012
13048
|
*
|
|
13013
13049
|
* @param {string} [companyId]
|
|
13014
13050
|
* @param {string} [domain]
|
|
13051
|
+
* @param {string} [search]
|
|
13052
|
+
* @param {string} [template]
|
|
13015
13053
|
* @param {Array<PageTypeEnum>} [type]
|
|
13016
13054
|
* @param {*} [options] Override http request option.
|
|
13017
13055
|
* @throws {RequiredError}
|
|
13018
13056
|
*/
|
|
13019
|
-
getAllPages: (companyId?: string, domain?: string, type?: Array<PageTypeEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13057
|
+
getAllPages: (companyId?: string, domain?: string, search?: string, template?: string, type?: Array<PageTypeEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13020
13058
|
/**
|
|
13021
13059
|
*
|
|
13022
13060
|
* @param {string} id
|
|
@@ -13038,10 +13076,11 @@ export declare const PageApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
13038
13076
|
* @param {string} type
|
|
13039
13077
|
* @param {string} [companyId]
|
|
13040
13078
|
* @param {string} [domain]
|
|
13079
|
+
* @param {string} [template]
|
|
13041
13080
|
* @param {*} [options] Override http request option.
|
|
13042
13081
|
* @throws {RequiredError}
|
|
13043
13082
|
*/
|
|
13044
|
-
getPageByType: (type: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13083
|
+
getPageByType: (type: string, companyId?: string, domain?: string, template?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13045
13084
|
/**
|
|
13046
13085
|
*
|
|
13047
13086
|
* @param {number} [page]
|
|
@@ -13099,11 +13138,13 @@ export declare const PageApiFp: (configuration?: Configuration) => {
|
|
|
13099
13138
|
*
|
|
13100
13139
|
* @param {string} [companyId]
|
|
13101
13140
|
* @param {string} [domain]
|
|
13141
|
+
* @param {string} [search]
|
|
13142
|
+
* @param {string} [template]
|
|
13102
13143
|
* @param {Array<PageTypeEnum>} [type]
|
|
13103
13144
|
* @param {*} [options] Override http request option.
|
|
13104
13145
|
* @throws {RequiredError}
|
|
13105
13146
|
*/
|
|
13106
|
-
getAllPages(companyId?: string, domain?: string, type?: Array<PageTypeEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPagesResponse>>;
|
|
13147
|
+
getAllPages(companyId?: string, domain?: string, search?: string, template?: string, type?: Array<PageTypeEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPagesResponse>>;
|
|
13107
13148
|
/**
|
|
13108
13149
|
*
|
|
13109
13150
|
* @param {string} id
|
|
@@ -13125,10 +13166,11 @@ export declare const PageApiFp: (configuration?: Configuration) => {
|
|
|
13125
13166
|
* @param {string} type
|
|
13126
13167
|
* @param {string} [companyId]
|
|
13127
13168
|
* @param {string} [domain]
|
|
13169
|
+
* @param {string} [template]
|
|
13128
13170
|
* @param {*} [options] Override http request option.
|
|
13129
13171
|
* @throws {RequiredError}
|
|
13130
13172
|
*/
|
|
13131
|
-
getPageByType(type: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPageResponse>>;
|
|
13173
|
+
getPageByType(type: string, companyId?: string, domain?: string, template?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPageResponse>>;
|
|
13132
13174
|
/**
|
|
13133
13175
|
*
|
|
13134
13176
|
* @param {number} [page]
|
|
@@ -13276,6 +13318,18 @@ export interface PageApiGetAllPagesRequest {
|
|
|
13276
13318
|
* @memberof PageApiGetAllPages
|
|
13277
13319
|
*/
|
|
13278
13320
|
readonly domain?: string;
|
|
13321
|
+
/**
|
|
13322
|
+
*
|
|
13323
|
+
* @type {string}
|
|
13324
|
+
* @memberof PageApiGetAllPages
|
|
13325
|
+
*/
|
|
13326
|
+
readonly search?: string;
|
|
13327
|
+
/**
|
|
13328
|
+
*
|
|
13329
|
+
* @type {string}
|
|
13330
|
+
* @memberof PageApiGetAllPages
|
|
13331
|
+
*/
|
|
13332
|
+
readonly template?: string;
|
|
13279
13333
|
/**
|
|
13280
13334
|
*
|
|
13281
13335
|
* @type {Array<PageTypeEnum>}
|
|
@@ -13345,6 +13399,12 @@ export interface PageApiGetPageByTypeRequest {
|
|
|
13345
13399
|
* @memberof PageApiGetPageByType
|
|
13346
13400
|
*/
|
|
13347
13401
|
readonly domain?: string;
|
|
13402
|
+
/**
|
|
13403
|
+
*
|
|
13404
|
+
* @type {string}
|
|
13405
|
+
* @memberof PageApiGetPageByType
|
|
13406
|
+
*/
|
|
13407
|
+
readonly template?: string;
|
|
13348
13408
|
}
|
|
13349
13409
|
/**
|
|
13350
13410
|
* Request parameters for getPages operation in PageApi.
|
|
@@ -13884,10 +13944,11 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
13884
13944
|
/**
|
|
13885
13945
|
*
|
|
13886
13946
|
* @param {string} companyId
|
|
13947
|
+
* @param {string} [template]
|
|
13887
13948
|
* @param {*} [options] Override http request option.
|
|
13888
13949
|
* @throws {RequiredError}
|
|
13889
13950
|
*/
|
|
13890
|
-
getFirstProduct: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13951
|
+
getFirstProduct: (companyId: string, template?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13891
13952
|
/**
|
|
13892
13953
|
*
|
|
13893
13954
|
* @param {string} id
|
|
@@ -13973,10 +14034,11 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
13973
14034
|
/**
|
|
13974
14035
|
*
|
|
13975
14036
|
* @param {string} companyId
|
|
14037
|
+
* @param {string} [template]
|
|
13976
14038
|
* @param {*} [options] Override http request option.
|
|
13977
14039
|
* @throws {RequiredError}
|
|
13978
14040
|
*/
|
|
13979
|
-
getFirstProduct(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductResponse>>;
|
|
14041
|
+
getFirstProduct(companyId: string, template?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductResponse>>;
|
|
13980
14042
|
/**
|
|
13981
14043
|
*
|
|
13982
14044
|
* @param {string} id
|
|
@@ -14163,6 +14225,12 @@ export interface ProductApiGetFirstProductRequest {
|
|
|
14163
14225
|
* @memberof ProductApiGetFirstProduct
|
|
14164
14226
|
*/
|
|
14165
14227
|
readonly companyId: string;
|
|
14228
|
+
/**
|
|
14229
|
+
*
|
|
14230
|
+
* @type {string}
|
|
14231
|
+
* @memberof ProductApiGetFirstProduct
|
|
14232
|
+
*/
|
|
14233
|
+
readonly template?: string;
|
|
14166
14234
|
}
|
|
14167
14235
|
/**
|
|
14168
14236
|
* Request parameters for getProductById operation in ProductApi.
|
package/dist/api/api.js
CHANGED
|
@@ -2798,10 +2798,12 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2798
2798
|
/**
|
|
2799
2799
|
*
|
|
2800
2800
|
* @param {string} companyId
|
|
2801
|
+
* @param {string} [search]
|
|
2802
|
+
* @param {string} [template]
|
|
2801
2803
|
* @param {*} [options] Override http request option.
|
|
2802
2804
|
* @throws {RequiredError}
|
|
2803
2805
|
*/
|
|
2804
|
-
getAllCollections: async (companyId, options = {}) => {
|
|
2806
|
+
getAllCollections: async (companyId, search, template, options = {}) => {
|
|
2805
2807
|
// verify required parameter 'companyId' is not null or undefined
|
|
2806
2808
|
(0, common_1.assertParamExists)('getAllCollections', 'companyId', companyId);
|
|
2807
2809
|
const localVarPath = `/api/collections/get/all`;
|
|
@@ -2817,6 +2819,12 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2817
2819
|
if (companyId !== undefined) {
|
|
2818
2820
|
localVarQueryParameter['companyId'] = companyId;
|
|
2819
2821
|
}
|
|
2822
|
+
if (search !== undefined) {
|
|
2823
|
+
localVarQueryParameter['search'] = search;
|
|
2824
|
+
}
|
|
2825
|
+
if (template !== undefined) {
|
|
2826
|
+
localVarQueryParameter['template'] = template;
|
|
2827
|
+
}
|
|
2820
2828
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2821
2829
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2822
2830
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2960,10 +2968,11 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2960
2968
|
/**
|
|
2961
2969
|
*
|
|
2962
2970
|
* @param {string} companyId
|
|
2971
|
+
* @param {string} [template]
|
|
2963
2972
|
* @param {*} [options] Override http request option.
|
|
2964
2973
|
* @throws {RequiredError}
|
|
2965
2974
|
*/
|
|
2966
|
-
getFirstCollection: async (companyId, options = {}) => {
|
|
2975
|
+
getFirstCollection: async (companyId, template, options = {}) => {
|
|
2967
2976
|
// verify required parameter 'companyId' is not null or undefined
|
|
2968
2977
|
(0, common_1.assertParamExists)('getFirstCollection', 'companyId', companyId);
|
|
2969
2978
|
const localVarPath = `/api/collections/get/first`;
|
|
@@ -2979,6 +2988,9 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2979
2988
|
if (companyId !== undefined) {
|
|
2980
2989
|
localVarQueryParameter['companyId'] = companyId;
|
|
2981
2990
|
}
|
|
2991
|
+
if (template !== undefined) {
|
|
2992
|
+
localVarQueryParameter['template'] = template;
|
|
2993
|
+
}
|
|
2982
2994
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2983
2995
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2984
2996
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3057,11 +3069,13 @@ const CollectionApiFp = function (configuration) {
|
|
|
3057
3069
|
/**
|
|
3058
3070
|
*
|
|
3059
3071
|
* @param {string} companyId
|
|
3072
|
+
* @param {string} [search]
|
|
3073
|
+
* @param {string} [template]
|
|
3060
3074
|
* @param {*} [options] Override http request option.
|
|
3061
3075
|
* @throws {RequiredError}
|
|
3062
3076
|
*/
|
|
3063
|
-
async getAllCollections(companyId, options) {
|
|
3064
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(companyId, options);
|
|
3077
|
+
async getAllCollections(companyId, search, template, options) {
|
|
3078
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(companyId, search, template, options);
|
|
3065
3079
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3066
3080
|
const localVarOperationServerBasePath = base_1.operationServerMap['CollectionApi.getAllCollections']?.[localVarOperationServerIndex]?.url;
|
|
3067
3081
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3115,11 +3129,12 @@ const CollectionApiFp = function (configuration) {
|
|
|
3115
3129
|
/**
|
|
3116
3130
|
*
|
|
3117
3131
|
* @param {string} companyId
|
|
3132
|
+
* @param {string} [template]
|
|
3118
3133
|
* @param {*} [options] Override http request option.
|
|
3119
3134
|
* @throws {RequiredError}
|
|
3120
3135
|
*/
|
|
3121
|
-
async getFirstCollection(companyId, options) {
|
|
3122
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(companyId, options);
|
|
3136
|
+
async getFirstCollection(companyId, template, options) {
|
|
3137
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(companyId, template, options);
|
|
3123
3138
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3124
3139
|
const localVarOperationServerBasePath = base_1.operationServerMap['CollectionApi.getFirstCollection']?.[localVarOperationServerIndex]?.url;
|
|
3125
3140
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3172,7 +3187,7 @@ const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3172
3187
|
* @throws {RequiredError}
|
|
3173
3188
|
*/
|
|
3174
3189
|
getAllCollections(requestParameters, options) {
|
|
3175
|
-
return localVarFp.getAllCollections(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
3190
|
+
return localVarFp.getAllCollections(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(axios, basePath));
|
|
3176
3191
|
},
|
|
3177
3192
|
/**
|
|
3178
3193
|
*
|
|
@@ -3208,7 +3223,7 @@ const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3208
3223
|
* @throws {RequiredError}
|
|
3209
3224
|
*/
|
|
3210
3225
|
getFirstCollection(requestParameters, options) {
|
|
3211
|
-
return localVarFp.getFirstCollection(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
3226
|
+
return localVarFp.getFirstCollection(requestParameters.companyId, requestParameters.template, options).then((request) => request(axios, basePath));
|
|
3212
3227
|
},
|
|
3213
3228
|
/**
|
|
3214
3229
|
*
|
|
@@ -3257,7 +3272,7 @@ class CollectionApi extends base_1.BaseAPI {
|
|
|
3257
3272
|
* @memberof CollectionApi
|
|
3258
3273
|
*/
|
|
3259
3274
|
getAllCollections(requestParameters, options) {
|
|
3260
|
-
return (0, exports.CollectionApiFp)(this.configuration).getAllCollections(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
3275
|
+
return (0, exports.CollectionApiFp)(this.configuration).getAllCollections(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
|
|
3261
3276
|
}
|
|
3262
3277
|
/**
|
|
3263
3278
|
*
|
|
@@ -3297,7 +3312,7 @@ class CollectionApi extends base_1.BaseAPI {
|
|
|
3297
3312
|
* @memberof CollectionApi
|
|
3298
3313
|
*/
|
|
3299
3314
|
getFirstCollection(requestParameters, options) {
|
|
3300
|
-
return (0, exports.CollectionApiFp)(this.configuration).getFirstCollection(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
3315
|
+
return (0, exports.CollectionApiFp)(this.configuration).getFirstCollection(requestParameters.companyId, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
|
|
3301
3316
|
}
|
|
3302
3317
|
/**
|
|
3303
3318
|
*
|
|
@@ -6351,11 +6366,13 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6351
6366
|
*
|
|
6352
6367
|
* @param {string} [companyId]
|
|
6353
6368
|
* @param {string} [domain]
|
|
6369
|
+
* @param {string} [search]
|
|
6370
|
+
* @param {string} [template]
|
|
6354
6371
|
* @param {Array<PageTypeEnum>} [type]
|
|
6355
6372
|
* @param {*} [options] Override http request option.
|
|
6356
6373
|
* @throws {RequiredError}
|
|
6357
6374
|
*/
|
|
6358
|
-
getAllPages: async (companyId, domain, type, options = {}) => {
|
|
6375
|
+
getAllPages: async (companyId, domain, search, template, type, options = {}) => {
|
|
6359
6376
|
const localVarPath = `/api/pages/get/all`;
|
|
6360
6377
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6361
6378
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6372,6 +6389,12 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6372
6389
|
if (domain !== undefined) {
|
|
6373
6390
|
localVarQueryParameter['domain'] = domain;
|
|
6374
6391
|
}
|
|
6392
|
+
if (search !== undefined) {
|
|
6393
|
+
localVarQueryParameter['search'] = search;
|
|
6394
|
+
}
|
|
6395
|
+
if (template !== undefined) {
|
|
6396
|
+
localVarQueryParameter['template'] = template;
|
|
6397
|
+
}
|
|
6375
6398
|
if (type) {
|
|
6376
6399
|
localVarQueryParameter['type'] = type;
|
|
6377
6400
|
}
|
|
@@ -6452,10 +6475,11 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6452
6475
|
* @param {string} type
|
|
6453
6476
|
* @param {string} [companyId]
|
|
6454
6477
|
* @param {string} [domain]
|
|
6478
|
+
* @param {string} [template]
|
|
6455
6479
|
* @param {*} [options] Override http request option.
|
|
6456
6480
|
* @throws {RequiredError}
|
|
6457
6481
|
*/
|
|
6458
|
-
getPageByType: async (type, companyId, domain, options = {}) => {
|
|
6482
|
+
getPageByType: async (type, companyId, domain, template, options = {}) => {
|
|
6459
6483
|
// verify required parameter 'type' is not null or undefined
|
|
6460
6484
|
(0, common_1.assertParamExists)('getPageByType', 'type', type);
|
|
6461
6485
|
const localVarPath = `/api/pages/type/{type}`
|
|
@@ -6475,6 +6499,9 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6475
6499
|
if (domain !== undefined) {
|
|
6476
6500
|
localVarQueryParameter['domain'] = domain;
|
|
6477
6501
|
}
|
|
6502
|
+
if (template !== undefined) {
|
|
6503
|
+
localVarQueryParameter['template'] = template;
|
|
6504
|
+
}
|
|
6478
6505
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6479
6506
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6480
6507
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -6660,12 +6687,14 @@ const PageApiFp = function (configuration) {
|
|
|
6660
6687
|
*
|
|
6661
6688
|
* @param {string} [companyId]
|
|
6662
6689
|
* @param {string} [domain]
|
|
6690
|
+
* @param {string} [search]
|
|
6691
|
+
* @param {string} [template]
|
|
6663
6692
|
* @param {Array<PageTypeEnum>} [type]
|
|
6664
6693
|
* @param {*} [options] Override http request option.
|
|
6665
6694
|
* @throws {RequiredError}
|
|
6666
6695
|
*/
|
|
6667
|
-
async getAllPages(companyId, domain, type, options) {
|
|
6668
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(companyId, domain, type, options);
|
|
6696
|
+
async getAllPages(companyId, domain, search, template, type, options) {
|
|
6697
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(companyId, domain, search, template, type, options);
|
|
6669
6698
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6670
6699
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getAllPages']?.[localVarOperationServerIndex]?.url;
|
|
6671
6700
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6701,11 +6730,12 @@ const PageApiFp = function (configuration) {
|
|
|
6701
6730
|
* @param {string} type
|
|
6702
6731
|
* @param {string} [companyId]
|
|
6703
6732
|
* @param {string} [domain]
|
|
6733
|
+
* @param {string} [template]
|
|
6704
6734
|
* @param {*} [options] Override http request option.
|
|
6705
6735
|
* @throws {RequiredError}
|
|
6706
6736
|
*/
|
|
6707
|
-
async getPageByType(type, companyId, domain, options) {
|
|
6708
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, options);
|
|
6737
|
+
async getPageByType(type, companyId, domain, template, options) {
|
|
6738
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, template, options);
|
|
6709
6739
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6710
6740
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
|
|
6711
6741
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6793,7 +6823,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6793
6823
|
* @throws {RequiredError}
|
|
6794
6824
|
*/
|
|
6795
6825
|
getAllPages(requestParameters = {}, options) {
|
|
6796
|
-
return localVarFp.getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
6826
|
+
return localVarFp.getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.search, requestParameters.template, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
6797
6827
|
},
|
|
6798
6828
|
/**
|
|
6799
6829
|
*
|
|
@@ -6820,7 +6850,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6820
6850
|
* @throws {RequiredError}
|
|
6821
6851
|
*/
|
|
6822
6852
|
getPageByType(requestParameters, options) {
|
|
6823
|
-
return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
6853
|
+
return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, requestParameters.template, options).then((request) => request(axios, basePath));
|
|
6824
6854
|
},
|
|
6825
6855
|
/**
|
|
6826
6856
|
*
|
|
@@ -6887,7 +6917,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
6887
6917
|
* @memberof PageApi
|
|
6888
6918
|
*/
|
|
6889
6919
|
getAllPages(requestParameters = {}, options) {
|
|
6890
|
-
return (0, exports.PageApiFp)(this.configuration).getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
6920
|
+
return (0, exports.PageApiFp)(this.configuration).getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.search, requestParameters.template, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
6891
6921
|
}
|
|
6892
6922
|
/**
|
|
6893
6923
|
*
|
|
@@ -6917,7 +6947,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
6917
6947
|
* @memberof PageApi
|
|
6918
6948
|
*/
|
|
6919
6949
|
getPageByType(requestParameters, options) {
|
|
6920
|
-
return (0, exports.PageApiFp)(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
6950
|
+
return (0, exports.PageApiFp)(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
|
|
6921
6951
|
}
|
|
6922
6952
|
/**
|
|
6923
6953
|
*
|
|
@@ -7444,10 +7474,11 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7444
7474
|
/**
|
|
7445
7475
|
*
|
|
7446
7476
|
* @param {string} companyId
|
|
7477
|
+
* @param {string} [template]
|
|
7447
7478
|
* @param {*} [options] Override http request option.
|
|
7448
7479
|
* @throws {RequiredError}
|
|
7449
7480
|
*/
|
|
7450
|
-
getFirstProduct: async (companyId, options = {}) => {
|
|
7481
|
+
getFirstProduct: async (companyId, template, options = {}) => {
|
|
7451
7482
|
// verify required parameter 'companyId' is not null or undefined
|
|
7452
7483
|
(0, common_1.assertParamExists)('getFirstProduct', 'companyId', companyId);
|
|
7453
7484
|
const localVarPath = `/api/products/get/first`;
|
|
@@ -7463,6 +7494,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7463
7494
|
if (companyId !== undefined) {
|
|
7464
7495
|
localVarQueryParameter['companyId'] = companyId;
|
|
7465
7496
|
}
|
|
7497
|
+
if (template !== undefined) {
|
|
7498
|
+
localVarQueryParameter['template'] = template;
|
|
7499
|
+
}
|
|
7466
7500
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7467
7501
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7468
7502
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -7741,11 +7775,12 @@ const ProductApiFp = function (configuration) {
|
|
|
7741
7775
|
/**
|
|
7742
7776
|
*
|
|
7743
7777
|
* @param {string} companyId
|
|
7778
|
+
* @param {string} [template]
|
|
7744
7779
|
* @param {*} [options] Override http request option.
|
|
7745
7780
|
* @throws {RequiredError}
|
|
7746
7781
|
*/
|
|
7747
|
-
async getFirstProduct(companyId, options) {
|
|
7748
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(companyId, options);
|
|
7782
|
+
async getFirstProduct(companyId, template, options) {
|
|
7783
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(companyId, template, options);
|
|
7749
7784
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7750
7785
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getFirstProduct']?.[localVarOperationServerIndex]?.url;
|
|
7751
7786
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7872,7 +7907,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7872
7907
|
* @throws {RequiredError}
|
|
7873
7908
|
*/
|
|
7874
7909
|
getFirstProduct(requestParameters, options) {
|
|
7875
|
-
return localVarFp.getFirstProduct(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
7910
|
+
return localVarFp.getFirstProduct(requestParameters.companyId, requestParameters.template, options).then((request) => request(axios, basePath));
|
|
7876
7911
|
},
|
|
7877
7912
|
/**
|
|
7878
7913
|
*
|
|
@@ -7967,7 +8002,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
7967
8002
|
* @memberof ProductApi
|
|
7968
8003
|
*/
|
|
7969
8004
|
getFirstProduct(requestParameters, options) {
|
|
7970
|
-
return (0, exports.ProductApiFp)(this.configuration).getFirstProduct(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
8005
|
+
return (0, exports.ProductApiFp)(this.configuration).getFirstProduct(requestParameters.companyId, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
|
|
7971
8006
|
}
|
|
7972
8007
|
/**
|
|
7973
8008
|
*
|
package/dist/api/api.mjs
CHANGED
|
@@ -2767,10 +2767,12 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2767
2767
|
/**
|
|
2768
2768
|
*
|
|
2769
2769
|
* @param {string} companyId
|
|
2770
|
+
* @param {string} [search]
|
|
2771
|
+
* @param {string} [template]
|
|
2770
2772
|
* @param {*} [options] Override http request option.
|
|
2771
2773
|
* @throws {RequiredError}
|
|
2772
2774
|
*/
|
|
2773
|
-
getAllCollections: async (companyId, options = {}) => {
|
|
2775
|
+
getAllCollections: async (companyId, search, template, options = {}) => {
|
|
2774
2776
|
// verify required parameter 'companyId' is not null or undefined
|
|
2775
2777
|
assertParamExists('getAllCollections', 'companyId', companyId);
|
|
2776
2778
|
const localVarPath = `/api/collections/get/all`;
|
|
@@ -2786,6 +2788,12 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2786
2788
|
if (companyId !== undefined) {
|
|
2787
2789
|
localVarQueryParameter['companyId'] = companyId;
|
|
2788
2790
|
}
|
|
2791
|
+
if (search !== undefined) {
|
|
2792
|
+
localVarQueryParameter['search'] = search;
|
|
2793
|
+
}
|
|
2794
|
+
if (template !== undefined) {
|
|
2795
|
+
localVarQueryParameter['template'] = template;
|
|
2796
|
+
}
|
|
2789
2797
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2790
2798
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2791
2799
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2929,10 +2937,11 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2929
2937
|
/**
|
|
2930
2938
|
*
|
|
2931
2939
|
* @param {string} companyId
|
|
2940
|
+
* @param {string} [template]
|
|
2932
2941
|
* @param {*} [options] Override http request option.
|
|
2933
2942
|
* @throws {RequiredError}
|
|
2934
2943
|
*/
|
|
2935
|
-
getFirstCollection: async (companyId, options = {}) => {
|
|
2944
|
+
getFirstCollection: async (companyId, template, options = {}) => {
|
|
2936
2945
|
// verify required parameter 'companyId' is not null or undefined
|
|
2937
2946
|
assertParamExists('getFirstCollection', 'companyId', companyId);
|
|
2938
2947
|
const localVarPath = `/api/collections/get/first`;
|
|
@@ -2948,6 +2957,9 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2948
2957
|
if (companyId !== undefined) {
|
|
2949
2958
|
localVarQueryParameter['companyId'] = companyId;
|
|
2950
2959
|
}
|
|
2960
|
+
if (template !== undefined) {
|
|
2961
|
+
localVarQueryParameter['template'] = template;
|
|
2962
|
+
}
|
|
2951
2963
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2952
2964
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2953
2965
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3025,11 +3037,13 @@ export const CollectionApiFp = function (configuration) {
|
|
|
3025
3037
|
/**
|
|
3026
3038
|
*
|
|
3027
3039
|
* @param {string} companyId
|
|
3040
|
+
* @param {string} [search]
|
|
3041
|
+
* @param {string} [template]
|
|
3028
3042
|
* @param {*} [options] Override http request option.
|
|
3029
3043
|
* @throws {RequiredError}
|
|
3030
3044
|
*/
|
|
3031
|
-
async getAllCollections(companyId, options) {
|
|
3032
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(companyId, options);
|
|
3045
|
+
async getAllCollections(companyId, search, template, options) {
|
|
3046
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(companyId, search, template, options);
|
|
3033
3047
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3034
3048
|
const localVarOperationServerBasePath = operationServerMap['CollectionApi.getAllCollections']?.[localVarOperationServerIndex]?.url;
|
|
3035
3049
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3083,11 +3097,12 @@ export const CollectionApiFp = function (configuration) {
|
|
|
3083
3097
|
/**
|
|
3084
3098
|
*
|
|
3085
3099
|
* @param {string} companyId
|
|
3100
|
+
* @param {string} [template]
|
|
3086
3101
|
* @param {*} [options] Override http request option.
|
|
3087
3102
|
* @throws {RequiredError}
|
|
3088
3103
|
*/
|
|
3089
|
-
async getFirstCollection(companyId, options) {
|
|
3090
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(companyId, options);
|
|
3104
|
+
async getFirstCollection(companyId, template, options) {
|
|
3105
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(companyId, template, options);
|
|
3091
3106
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3092
3107
|
const localVarOperationServerBasePath = operationServerMap['CollectionApi.getFirstCollection']?.[localVarOperationServerIndex]?.url;
|
|
3093
3108
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3139,7 +3154,7 @@ export const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3139
3154
|
* @throws {RequiredError}
|
|
3140
3155
|
*/
|
|
3141
3156
|
getAllCollections(requestParameters, options) {
|
|
3142
|
-
return localVarFp.getAllCollections(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
3157
|
+
return localVarFp.getAllCollections(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(axios, basePath));
|
|
3143
3158
|
},
|
|
3144
3159
|
/**
|
|
3145
3160
|
*
|
|
@@ -3175,7 +3190,7 @@ export const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3175
3190
|
* @throws {RequiredError}
|
|
3176
3191
|
*/
|
|
3177
3192
|
getFirstCollection(requestParameters, options) {
|
|
3178
|
-
return localVarFp.getFirstCollection(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
3193
|
+
return localVarFp.getFirstCollection(requestParameters.companyId, requestParameters.template, options).then((request) => request(axios, basePath));
|
|
3179
3194
|
},
|
|
3180
3195
|
/**
|
|
3181
3196
|
*
|
|
@@ -3223,7 +3238,7 @@ export class CollectionApi extends BaseAPI {
|
|
|
3223
3238
|
* @memberof CollectionApi
|
|
3224
3239
|
*/
|
|
3225
3240
|
getAllCollections(requestParameters, options) {
|
|
3226
|
-
return CollectionApiFp(this.configuration).getAllCollections(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
3241
|
+
return CollectionApiFp(this.configuration).getAllCollections(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
|
|
3227
3242
|
}
|
|
3228
3243
|
/**
|
|
3229
3244
|
*
|
|
@@ -3263,7 +3278,7 @@ export class CollectionApi extends BaseAPI {
|
|
|
3263
3278
|
* @memberof CollectionApi
|
|
3264
3279
|
*/
|
|
3265
3280
|
getFirstCollection(requestParameters, options) {
|
|
3266
|
-
return CollectionApiFp(this.configuration).getFirstCollection(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
3281
|
+
return CollectionApiFp(this.configuration).getFirstCollection(requestParameters.companyId, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
|
|
3267
3282
|
}
|
|
3268
3283
|
/**
|
|
3269
3284
|
*
|
|
@@ -6296,11 +6311,13 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6296
6311
|
*
|
|
6297
6312
|
* @param {string} [companyId]
|
|
6298
6313
|
* @param {string} [domain]
|
|
6314
|
+
* @param {string} [search]
|
|
6315
|
+
* @param {string} [template]
|
|
6299
6316
|
* @param {Array<PageTypeEnum>} [type]
|
|
6300
6317
|
* @param {*} [options] Override http request option.
|
|
6301
6318
|
* @throws {RequiredError}
|
|
6302
6319
|
*/
|
|
6303
|
-
getAllPages: async (companyId, domain, type, options = {}) => {
|
|
6320
|
+
getAllPages: async (companyId, domain, search, template, type, options = {}) => {
|
|
6304
6321
|
const localVarPath = `/api/pages/get/all`;
|
|
6305
6322
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6306
6323
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6317,6 +6334,12 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6317
6334
|
if (domain !== undefined) {
|
|
6318
6335
|
localVarQueryParameter['domain'] = domain;
|
|
6319
6336
|
}
|
|
6337
|
+
if (search !== undefined) {
|
|
6338
|
+
localVarQueryParameter['search'] = search;
|
|
6339
|
+
}
|
|
6340
|
+
if (template !== undefined) {
|
|
6341
|
+
localVarQueryParameter['template'] = template;
|
|
6342
|
+
}
|
|
6320
6343
|
if (type) {
|
|
6321
6344
|
localVarQueryParameter['type'] = type;
|
|
6322
6345
|
}
|
|
@@ -6397,10 +6420,11 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6397
6420
|
* @param {string} type
|
|
6398
6421
|
* @param {string} [companyId]
|
|
6399
6422
|
* @param {string} [domain]
|
|
6423
|
+
* @param {string} [template]
|
|
6400
6424
|
* @param {*} [options] Override http request option.
|
|
6401
6425
|
* @throws {RequiredError}
|
|
6402
6426
|
*/
|
|
6403
|
-
getPageByType: async (type, companyId, domain, options = {}) => {
|
|
6427
|
+
getPageByType: async (type, companyId, domain, template, options = {}) => {
|
|
6404
6428
|
// verify required parameter 'type' is not null or undefined
|
|
6405
6429
|
assertParamExists('getPageByType', 'type', type);
|
|
6406
6430
|
const localVarPath = `/api/pages/type/{type}`
|
|
@@ -6420,6 +6444,9 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6420
6444
|
if (domain !== undefined) {
|
|
6421
6445
|
localVarQueryParameter['domain'] = domain;
|
|
6422
6446
|
}
|
|
6447
|
+
if (template !== undefined) {
|
|
6448
|
+
localVarQueryParameter['template'] = template;
|
|
6449
|
+
}
|
|
6423
6450
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6424
6451
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6425
6452
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -6604,12 +6631,14 @@ export const PageApiFp = function (configuration) {
|
|
|
6604
6631
|
*
|
|
6605
6632
|
* @param {string} [companyId]
|
|
6606
6633
|
* @param {string} [domain]
|
|
6634
|
+
* @param {string} [search]
|
|
6635
|
+
* @param {string} [template]
|
|
6607
6636
|
* @param {Array<PageTypeEnum>} [type]
|
|
6608
6637
|
* @param {*} [options] Override http request option.
|
|
6609
6638
|
* @throws {RequiredError}
|
|
6610
6639
|
*/
|
|
6611
|
-
async getAllPages(companyId, domain, type, options) {
|
|
6612
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(companyId, domain, type, options);
|
|
6640
|
+
async getAllPages(companyId, domain, search, template, type, options) {
|
|
6641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(companyId, domain, search, template, type, options);
|
|
6613
6642
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6614
6643
|
const localVarOperationServerBasePath = operationServerMap['PageApi.getAllPages']?.[localVarOperationServerIndex]?.url;
|
|
6615
6644
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6645,11 +6674,12 @@ export const PageApiFp = function (configuration) {
|
|
|
6645
6674
|
* @param {string} type
|
|
6646
6675
|
* @param {string} [companyId]
|
|
6647
6676
|
* @param {string} [domain]
|
|
6677
|
+
* @param {string} [template]
|
|
6648
6678
|
* @param {*} [options] Override http request option.
|
|
6649
6679
|
* @throws {RequiredError}
|
|
6650
6680
|
*/
|
|
6651
|
-
async getPageByType(type, companyId, domain, options) {
|
|
6652
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, options);
|
|
6681
|
+
async getPageByType(type, companyId, domain, template, options) {
|
|
6682
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, template, options);
|
|
6653
6683
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6654
6684
|
const localVarOperationServerBasePath = operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
|
|
6655
6685
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6736,7 +6766,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6736
6766
|
* @throws {RequiredError}
|
|
6737
6767
|
*/
|
|
6738
6768
|
getAllPages(requestParameters = {}, options) {
|
|
6739
|
-
return localVarFp.getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
6769
|
+
return localVarFp.getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.search, requestParameters.template, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
6740
6770
|
},
|
|
6741
6771
|
/**
|
|
6742
6772
|
*
|
|
@@ -6763,7 +6793,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6763
6793
|
* @throws {RequiredError}
|
|
6764
6794
|
*/
|
|
6765
6795
|
getPageByType(requestParameters, options) {
|
|
6766
|
-
return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
6796
|
+
return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, requestParameters.template, options).then((request) => request(axios, basePath));
|
|
6767
6797
|
},
|
|
6768
6798
|
/**
|
|
6769
6799
|
*
|
|
@@ -6829,7 +6859,7 @@ export class PageApi extends BaseAPI {
|
|
|
6829
6859
|
* @memberof PageApi
|
|
6830
6860
|
*/
|
|
6831
6861
|
getAllPages(requestParameters = {}, options) {
|
|
6832
|
-
return PageApiFp(this.configuration).getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
6862
|
+
return PageApiFp(this.configuration).getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.search, requestParameters.template, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
6833
6863
|
}
|
|
6834
6864
|
/**
|
|
6835
6865
|
*
|
|
@@ -6859,7 +6889,7 @@ export class PageApi extends BaseAPI {
|
|
|
6859
6889
|
* @memberof PageApi
|
|
6860
6890
|
*/
|
|
6861
6891
|
getPageByType(requestParameters, options) {
|
|
6862
|
-
return PageApiFp(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
6892
|
+
return PageApiFp(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
|
|
6863
6893
|
}
|
|
6864
6894
|
/**
|
|
6865
6895
|
*
|
|
@@ -7381,10 +7411,11 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7381
7411
|
/**
|
|
7382
7412
|
*
|
|
7383
7413
|
* @param {string} companyId
|
|
7414
|
+
* @param {string} [template]
|
|
7384
7415
|
* @param {*} [options] Override http request option.
|
|
7385
7416
|
* @throws {RequiredError}
|
|
7386
7417
|
*/
|
|
7387
|
-
getFirstProduct: async (companyId, options = {}) => {
|
|
7418
|
+
getFirstProduct: async (companyId, template, options = {}) => {
|
|
7388
7419
|
// verify required parameter 'companyId' is not null or undefined
|
|
7389
7420
|
assertParamExists('getFirstProduct', 'companyId', companyId);
|
|
7390
7421
|
const localVarPath = `/api/products/get/first`;
|
|
@@ -7400,6 +7431,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7400
7431
|
if (companyId !== undefined) {
|
|
7401
7432
|
localVarQueryParameter['companyId'] = companyId;
|
|
7402
7433
|
}
|
|
7434
|
+
if (template !== undefined) {
|
|
7435
|
+
localVarQueryParameter['template'] = template;
|
|
7436
|
+
}
|
|
7403
7437
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7404
7438
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7405
7439
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -7677,11 +7711,12 @@ export const ProductApiFp = function (configuration) {
|
|
|
7677
7711
|
/**
|
|
7678
7712
|
*
|
|
7679
7713
|
* @param {string} companyId
|
|
7714
|
+
* @param {string} [template]
|
|
7680
7715
|
* @param {*} [options] Override http request option.
|
|
7681
7716
|
* @throws {RequiredError}
|
|
7682
7717
|
*/
|
|
7683
|
-
async getFirstProduct(companyId, options) {
|
|
7684
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(companyId, options);
|
|
7718
|
+
async getFirstProduct(companyId, template, options) {
|
|
7719
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(companyId, template, options);
|
|
7685
7720
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7686
7721
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getFirstProduct']?.[localVarOperationServerIndex]?.url;
|
|
7687
7722
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7807,7 +7842,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7807
7842
|
* @throws {RequiredError}
|
|
7808
7843
|
*/
|
|
7809
7844
|
getFirstProduct(requestParameters, options) {
|
|
7810
|
-
return localVarFp.getFirstProduct(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
7845
|
+
return localVarFp.getFirstProduct(requestParameters.companyId, requestParameters.template, options).then((request) => request(axios, basePath));
|
|
7811
7846
|
},
|
|
7812
7847
|
/**
|
|
7813
7848
|
*
|
|
@@ -7901,7 +7936,7 @@ export class ProductApi extends BaseAPI {
|
|
|
7901
7936
|
* @memberof ProductApi
|
|
7902
7937
|
*/
|
|
7903
7938
|
getFirstProduct(requestParameters, options) {
|
|
7904
|
-
return ProductApiFp(this.configuration).getFirstProduct(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
7939
|
+
return ProductApiFp(this.configuration).getFirstProduct(requestParameters.companyId, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
|
|
7905
7940
|
}
|
|
7906
7941
|
/**
|
|
7907
7942
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
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",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "3cb2ec854a960845a98e9316932587953369cf49"
|
|
41
41
|
}
|