@infisale-client/api 1.2.1 → 1.2.3

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 CHANGED
@@ -68,6 +68,7 @@ export declare const ComponentContentTypeEnum: {
68
68
  readonly CAROUSEL_ITEM: "carousel-item";
69
69
  readonly GRID_ITEM: "grid-item";
70
70
  readonly ANNOUNCEMENT_ITEM: "announcement-item";
71
+ readonly ACCORDION_ITEM: "accordion-item";
71
72
  };
72
73
  export type ComponentContentTypeEnum = typeof ComponentContentTypeEnum[keyof typeof ComponentContentTypeEnum];
73
74
  /**
@@ -4739,6 +4740,18 @@ export interface IPageGetAllQueryParams {
4739
4740
  * @memberof IPageGetAllQueryParams
4740
4741
  */
4741
4742
  'domain'?: string;
4743
+ /**
4744
+ *
4745
+ * @type {string}
4746
+ * @memberof IPageGetAllQueryParams
4747
+ */
4748
+ 'search'?: string;
4749
+ /**
4750
+ *
4751
+ * @type {string}
4752
+ * @memberof IPageGetAllQueryParams
4753
+ */
4754
+ 'template'?: string;
4742
4755
  /**
4743
4756
  *
4744
4757
  * @type {Array<PageTypeEnum>}
@@ -6350,6 +6363,12 @@ export interface ITemplateResponseComponentsInnerContentsInnerConfig {
6350
6363
  * @interface ITemplateResponseComponentsInnerIdentity
6351
6364
  */
6352
6365
  export interface ITemplateResponseComponentsInnerIdentity {
6366
+ /**
6367
+ *
6368
+ * @type {IProductResponse}
6369
+ * @memberof ITemplateResponseComponentsInnerIdentity
6370
+ */
6371
+ 'singleProduct'?: IProductResponse;
6353
6372
  /**
6354
6373
  *
6355
6374
  * @type {Array<ITemplateResponseComponentsInnerIdentityButtonsInner>}
@@ -10160,10 +10179,12 @@ export declare const CollectionApiAxiosParamCreator: (configuration?: Configurat
10160
10179
  /**
10161
10180
  *
10162
10181
  * @param {string} companyId
10182
+ * @param {string} [search]
10183
+ * @param {string} [template]
10163
10184
  * @param {*} [options] Override http request option.
10164
10185
  * @throws {RequiredError}
10165
10186
  */
10166
- getAllCollections: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10187
+ getAllCollections: (companyId: string, search?: string, template?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10167
10188
  /**
10168
10189
  *
10169
10190
  * @param {string} id
@@ -10198,10 +10219,11 @@ export declare const CollectionApiAxiosParamCreator: (configuration?: Configurat
10198
10219
  /**
10199
10220
  *
10200
10221
  * @param {string} companyId
10222
+ * @param {string} [template]
10201
10223
  * @param {*} [options] Override http request option.
10202
10224
  * @throws {RequiredError}
10203
10225
  */
10204
- getFirstCollection: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10226
+ getFirstCollection: (companyId: string, template?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10205
10227
  /**
10206
10228
  *
10207
10229
  * @param {string} id
@@ -10233,10 +10255,12 @@ export declare const CollectionApiFp: (configuration?: Configuration) => {
10233
10255
  /**
10234
10256
  *
10235
10257
  * @param {string} companyId
10258
+ * @param {string} [search]
10259
+ * @param {string} [template]
10236
10260
  * @param {*} [options] Override http request option.
10237
10261
  * @throws {RequiredError}
10238
10262
  */
10239
- getAllCollections(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCollectionsResponse>>;
10263
+ getAllCollections(companyId: string, search?: string, template?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCollectionsResponse>>;
10240
10264
  /**
10241
10265
  *
10242
10266
  * @param {string} id
@@ -10271,10 +10295,11 @@ export declare const CollectionApiFp: (configuration?: Configuration) => {
10271
10295
  /**
10272
10296
  *
10273
10297
  * @param {string} companyId
10298
+ * @param {string} [template]
10274
10299
  * @param {*} [options] Override http request option.
10275
10300
  * @throws {RequiredError}
10276
10301
  */
10277
- getFirstCollection(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICollectionResponse>>;
10302
+ getFirstCollection(companyId: string, template?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICollectionResponse>>;
10278
10303
  /**
10279
10304
  *
10280
10305
  * @param {string} id
@@ -10384,6 +10409,18 @@ export interface CollectionApiGetAllCollectionsRequest {
10384
10409
  * @memberof CollectionApiGetAllCollections
10385
10410
  */
10386
10411
  readonly companyId: string;
10412
+ /**
10413
+ *
10414
+ * @type {string}
10415
+ * @memberof CollectionApiGetAllCollections
10416
+ */
10417
+ readonly search?: string;
10418
+ /**
10419
+ *
10420
+ * @type {string}
10421
+ * @memberof CollectionApiGetAllCollections
10422
+ */
10423
+ readonly template?: string;
10387
10424
  }
10388
10425
  /**
10389
10426
  * Request parameters for getCollectionById operation in CollectionApi.
@@ -10496,6 +10533,12 @@ export interface CollectionApiGetFirstCollectionRequest {
10496
10533
  * @memberof CollectionApiGetFirstCollection
10497
10534
  */
10498
10535
  readonly companyId: string;
10536
+ /**
10537
+ *
10538
+ * @type {string}
10539
+ * @memberof CollectionApiGetFirstCollection
10540
+ */
10541
+ readonly template?: string;
10499
10542
  }
10500
10543
  /**
10501
10544
  * Request parameters for updateCollection operation in CollectionApi.
@@ -13012,11 +13055,13 @@ export declare const PageApiAxiosParamCreator: (configuration?: Configuration) =
13012
13055
  *
13013
13056
  * @param {string} [companyId]
13014
13057
  * @param {string} [domain]
13058
+ * @param {string} [search]
13059
+ * @param {string} [template]
13015
13060
  * @param {Array<PageTypeEnum>} [type]
13016
13061
  * @param {*} [options] Override http request option.
13017
13062
  * @throws {RequiredError}
13018
13063
  */
13019
- getAllPages: (companyId?: string, domain?: string, type?: Array<PageTypeEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13064
+ getAllPages: (companyId?: string, domain?: string, search?: string, template?: string, type?: Array<PageTypeEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13020
13065
  /**
13021
13066
  *
13022
13067
  * @param {string} id
@@ -13038,10 +13083,11 @@ export declare const PageApiAxiosParamCreator: (configuration?: Configuration) =
13038
13083
  * @param {string} type
13039
13084
  * @param {string} [companyId]
13040
13085
  * @param {string} [domain]
13086
+ * @param {string} [template]
13041
13087
  * @param {*} [options] Override http request option.
13042
13088
  * @throws {RequiredError}
13043
13089
  */
13044
- getPageByType: (type: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13090
+ getPageByType: (type: string, companyId?: string, domain?: string, template?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13045
13091
  /**
13046
13092
  *
13047
13093
  * @param {number} [page]
@@ -13099,11 +13145,13 @@ export declare const PageApiFp: (configuration?: Configuration) => {
13099
13145
  *
13100
13146
  * @param {string} [companyId]
13101
13147
  * @param {string} [domain]
13148
+ * @param {string} [search]
13149
+ * @param {string} [template]
13102
13150
  * @param {Array<PageTypeEnum>} [type]
13103
13151
  * @param {*} [options] Override http request option.
13104
13152
  * @throws {RequiredError}
13105
13153
  */
13106
- getAllPages(companyId?: string, domain?: string, type?: Array<PageTypeEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPagesResponse>>;
13154
+ getAllPages(companyId?: string, domain?: string, search?: string, template?: string, type?: Array<PageTypeEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPagesResponse>>;
13107
13155
  /**
13108
13156
  *
13109
13157
  * @param {string} id
@@ -13125,10 +13173,11 @@ export declare const PageApiFp: (configuration?: Configuration) => {
13125
13173
  * @param {string} type
13126
13174
  * @param {string} [companyId]
13127
13175
  * @param {string} [domain]
13176
+ * @param {string} [template]
13128
13177
  * @param {*} [options] Override http request option.
13129
13178
  * @throws {RequiredError}
13130
13179
  */
13131
- getPageByType(type: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPageResponse>>;
13180
+ getPageByType(type: string, companyId?: string, domain?: string, template?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPageResponse>>;
13132
13181
  /**
13133
13182
  *
13134
13183
  * @param {number} [page]
@@ -13276,6 +13325,18 @@ export interface PageApiGetAllPagesRequest {
13276
13325
  * @memberof PageApiGetAllPages
13277
13326
  */
13278
13327
  readonly domain?: string;
13328
+ /**
13329
+ *
13330
+ * @type {string}
13331
+ * @memberof PageApiGetAllPages
13332
+ */
13333
+ readonly search?: string;
13334
+ /**
13335
+ *
13336
+ * @type {string}
13337
+ * @memberof PageApiGetAllPages
13338
+ */
13339
+ readonly template?: string;
13279
13340
  /**
13280
13341
  *
13281
13342
  * @type {Array<PageTypeEnum>}
@@ -13345,6 +13406,12 @@ export interface PageApiGetPageByTypeRequest {
13345
13406
  * @memberof PageApiGetPageByType
13346
13407
  */
13347
13408
  readonly domain?: string;
13409
+ /**
13410
+ *
13411
+ * @type {string}
13412
+ * @memberof PageApiGetPageByType
13413
+ */
13414
+ readonly template?: string;
13348
13415
  }
13349
13416
  /**
13350
13417
  * Request parameters for getPages operation in PageApi.
@@ -13884,10 +13951,11 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
13884
13951
  /**
13885
13952
  *
13886
13953
  * @param {string} companyId
13954
+ * @param {string} [template]
13887
13955
  * @param {*} [options] Override http request option.
13888
13956
  * @throws {RequiredError}
13889
13957
  */
13890
- getFirstProduct: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13958
+ getFirstProduct: (companyId: string, template?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13891
13959
  /**
13892
13960
  *
13893
13961
  * @param {string} id
@@ -13973,10 +14041,11 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
13973
14041
  /**
13974
14042
  *
13975
14043
  * @param {string} companyId
14044
+ * @param {string} [template]
13976
14045
  * @param {*} [options] Override http request option.
13977
14046
  * @throws {RequiredError}
13978
14047
  */
13979
- getFirstProduct(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductResponse>>;
14048
+ getFirstProduct(companyId: string, template?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IProductResponse>>;
13980
14049
  /**
13981
14050
  *
13982
14051
  * @param {string} id
@@ -14163,6 +14232,12 @@ export interface ProductApiGetFirstProductRequest {
14163
14232
  * @memberof ProductApiGetFirstProduct
14164
14233
  */
14165
14234
  readonly companyId: string;
14235
+ /**
14236
+ *
14237
+ * @type {string}
14238
+ * @memberof ProductApiGetFirstProduct
14239
+ */
14240
+ readonly template?: string;
14166
14241
  }
14167
14242
  /**
14168
14243
  * Request parameters for getProductById operation in ProductApi.
package/dist/api/api.js CHANGED
@@ -76,7 +76,8 @@ exports.ComponentContentTypeEnum = {
76
76
  INVENTORY_STATUS: 'inventory-status',
77
77
  CAROUSEL_ITEM: 'carousel-item',
78
78
  GRID_ITEM: 'grid-item',
79
- ANNOUNCEMENT_ITEM: 'announcement-item'
79
+ ANNOUNCEMENT_ITEM: 'announcement-item',
80
+ ACCORDION_ITEM: 'accordion-item'
80
81
  };
81
82
  /**
82
83
  *
@@ -2798,10 +2799,12 @@ const CollectionApiAxiosParamCreator = function (configuration) {
2798
2799
  /**
2799
2800
  *
2800
2801
  * @param {string} companyId
2802
+ * @param {string} [search]
2803
+ * @param {string} [template]
2801
2804
  * @param {*} [options] Override http request option.
2802
2805
  * @throws {RequiredError}
2803
2806
  */
2804
- getAllCollections: async (companyId, options = {}) => {
2807
+ getAllCollections: async (companyId, search, template, options = {}) => {
2805
2808
  // verify required parameter 'companyId' is not null or undefined
2806
2809
  (0, common_1.assertParamExists)('getAllCollections', 'companyId', companyId);
2807
2810
  const localVarPath = `/api/collections/get/all`;
@@ -2817,6 +2820,12 @@ const CollectionApiAxiosParamCreator = function (configuration) {
2817
2820
  if (companyId !== undefined) {
2818
2821
  localVarQueryParameter['companyId'] = companyId;
2819
2822
  }
2823
+ if (search !== undefined) {
2824
+ localVarQueryParameter['search'] = search;
2825
+ }
2826
+ if (template !== undefined) {
2827
+ localVarQueryParameter['template'] = template;
2828
+ }
2820
2829
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2821
2830
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2822
2831
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2960,10 +2969,11 @@ const CollectionApiAxiosParamCreator = function (configuration) {
2960
2969
  /**
2961
2970
  *
2962
2971
  * @param {string} companyId
2972
+ * @param {string} [template]
2963
2973
  * @param {*} [options] Override http request option.
2964
2974
  * @throws {RequiredError}
2965
2975
  */
2966
- getFirstCollection: async (companyId, options = {}) => {
2976
+ getFirstCollection: async (companyId, template, options = {}) => {
2967
2977
  // verify required parameter 'companyId' is not null or undefined
2968
2978
  (0, common_1.assertParamExists)('getFirstCollection', 'companyId', companyId);
2969
2979
  const localVarPath = `/api/collections/get/first`;
@@ -2979,6 +2989,9 @@ const CollectionApiAxiosParamCreator = function (configuration) {
2979
2989
  if (companyId !== undefined) {
2980
2990
  localVarQueryParameter['companyId'] = companyId;
2981
2991
  }
2992
+ if (template !== undefined) {
2993
+ localVarQueryParameter['template'] = template;
2994
+ }
2982
2995
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2983
2996
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2984
2997
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3057,11 +3070,13 @@ const CollectionApiFp = function (configuration) {
3057
3070
  /**
3058
3071
  *
3059
3072
  * @param {string} companyId
3073
+ * @param {string} [search]
3074
+ * @param {string} [template]
3060
3075
  * @param {*} [options] Override http request option.
3061
3076
  * @throws {RequiredError}
3062
3077
  */
3063
- async getAllCollections(companyId, options) {
3064
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(companyId, options);
3078
+ async getAllCollections(companyId, search, template, options) {
3079
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(companyId, search, template, options);
3065
3080
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3066
3081
  const localVarOperationServerBasePath = base_1.operationServerMap['CollectionApi.getAllCollections']?.[localVarOperationServerIndex]?.url;
3067
3082
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3115,11 +3130,12 @@ const CollectionApiFp = function (configuration) {
3115
3130
  /**
3116
3131
  *
3117
3132
  * @param {string} companyId
3133
+ * @param {string} [template]
3118
3134
  * @param {*} [options] Override http request option.
3119
3135
  * @throws {RequiredError}
3120
3136
  */
3121
- async getFirstCollection(companyId, options) {
3122
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(companyId, options);
3137
+ async getFirstCollection(companyId, template, options) {
3138
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(companyId, template, options);
3123
3139
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3124
3140
  const localVarOperationServerBasePath = base_1.operationServerMap['CollectionApi.getFirstCollection']?.[localVarOperationServerIndex]?.url;
3125
3141
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3172,7 +3188,7 @@ const CollectionApiFactory = function (configuration, basePath, axios) {
3172
3188
  * @throws {RequiredError}
3173
3189
  */
3174
3190
  getAllCollections(requestParameters, options) {
3175
- return localVarFp.getAllCollections(requestParameters.companyId, options).then((request) => request(axios, basePath));
3191
+ return localVarFp.getAllCollections(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(axios, basePath));
3176
3192
  },
3177
3193
  /**
3178
3194
  *
@@ -3208,7 +3224,7 @@ const CollectionApiFactory = function (configuration, basePath, axios) {
3208
3224
  * @throws {RequiredError}
3209
3225
  */
3210
3226
  getFirstCollection(requestParameters, options) {
3211
- return localVarFp.getFirstCollection(requestParameters.companyId, options).then((request) => request(axios, basePath));
3227
+ return localVarFp.getFirstCollection(requestParameters.companyId, requestParameters.template, options).then((request) => request(axios, basePath));
3212
3228
  },
3213
3229
  /**
3214
3230
  *
@@ -3257,7 +3273,7 @@ class CollectionApi extends base_1.BaseAPI {
3257
3273
  * @memberof CollectionApi
3258
3274
  */
3259
3275
  getAllCollections(requestParameters, options) {
3260
- return (0, exports.CollectionApiFp)(this.configuration).getAllCollections(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
3276
+ return (0, exports.CollectionApiFp)(this.configuration).getAllCollections(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
3261
3277
  }
3262
3278
  /**
3263
3279
  *
@@ -3297,7 +3313,7 @@ class CollectionApi extends base_1.BaseAPI {
3297
3313
  * @memberof CollectionApi
3298
3314
  */
3299
3315
  getFirstCollection(requestParameters, options) {
3300
- return (0, exports.CollectionApiFp)(this.configuration).getFirstCollection(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
3316
+ return (0, exports.CollectionApiFp)(this.configuration).getFirstCollection(requestParameters.companyId, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
3301
3317
  }
3302
3318
  /**
3303
3319
  *
@@ -6351,11 +6367,13 @@ const PageApiAxiosParamCreator = function (configuration) {
6351
6367
  *
6352
6368
  * @param {string} [companyId]
6353
6369
  * @param {string} [domain]
6370
+ * @param {string} [search]
6371
+ * @param {string} [template]
6354
6372
  * @param {Array<PageTypeEnum>} [type]
6355
6373
  * @param {*} [options] Override http request option.
6356
6374
  * @throws {RequiredError}
6357
6375
  */
6358
- getAllPages: async (companyId, domain, type, options = {}) => {
6376
+ getAllPages: async (companyId, domain, search, template, type, options = {}) => {
6359
6377
  const localVarPath = `/api/pages/get/all`;
6360
6378
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6361
6379
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -6372,6 +6390,12 @@ const PageApiAxiosParamCreator = function (configuration) {
6372
6390
  if (domain !== undefined) {
6373
6391
  localVarQueryParameter['domain'] = domain;
6374
6392
  }
6393
+ if (search !== undefined) {
6394
+ localVarQueryParameter['search'] = search;
6395
+ }
6396
+ if (template !== undefined) {
6397
+ localVarQueryParameter['template'] = template;
6398
+ }
6375
6399
  if (type) {
6376
6400
  localVarQueryParameter['type'] = type;
6377
6401
  }
@@ -6452,10 +6476,11 @@ const PageApiAxiosParamCreator = function (configuration) {
6452
6476
  * @param {string} type
6453
6477
  * @param {string} [companyId]
6454
6478
  * @param {string} [domain]
6479
+ * @param {string} [template]
6455
6480
  * @param {*} [options] Override http request option.
6456
6481
  * @throws {RequiredError}
6457
6482
  */
6458
- getPageByType: async (type, companyId, domain, options = {}) => {
6483
+ getPageByType: async (type, companyId, domain, template, options = {}) => {
6459
6484
  // verify required parameter 'type' is not null or undefined
6460
6485
  (0, common_1.assertParamExists)('getPageByType', 'type', type);
6461
6486
  const localVarPath = `/api/pages/type/{type}`
@@ -6475,6 +6500,9 @@ const PageApiAxiosParamCreator = function (configuration) {
6475
6500
  if (domain !== undefined) {
6476
6501
  localVarQueryParameter['domain'] = domain;
6477
6502
  }
6503
+ if (template !== undefined) {
6504
+ localVarQueryParameter['template'] = template;
6505
+ }
6478
6506
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6479
6507
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6480
6508
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -6660,12 +6688,14 @@ const PageApiFp = function (configuration) {
6660
6688
  *
6661
6689
  * @param {string} [companyId]
6662
6690
  * @param {string} [domain]
6691
+ * @param {string} [search]
6692
+ * @param {string} [template]
6663
6693
  * @param {Array<PageTypeEnum>} [type]
6664
6694
  * @param {*} [options] Override http request option.
6665
6695
  * @throws {RequiredError}
6666
6696
  */
6667
- async getAllPages(companyId, domain, type, options) {
6668
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(companyId, domain, type, options);
6697
+ async getAllPages(companyId, domain, search, template, type, options) {
6698
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(companyId, domain, search, template, type, options);
6669
6699
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6670
6700
  const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getAllPages']?.[localVarOperationServerIndex]?.url;
6671
6701
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -6701,11 +6731,12 @@ const PageApiFp = function (configuration) {
6701
6731
  * @param {string} type
6702
6732
  * @param {string} [companyId]
6703
6733
  * @param {string} [domain]
6734
+ * @param {string} [template]
6704
6735
  * @param {*} [options] Override http request option.
6705
6736
  * @throws {RequiredError}
6706
6737
  */
6707
- async getPageByType(type, companyId, domain, options) {
6708
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, options);
6738
+ async getPageByType(type, companyId, domain, template, options) {
6739
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, template, options);
6709
6740
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6710
6741
  const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
6711
6742
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -6793,7 +6824,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
6793
6824
  * @throws {RequiredError}
6794
6825
  */
6795
6826
  getAllPages(requestParameters = {}, options) {
6796
- return localVarFp.getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.type, options).then((request) => request(axios, basePath));
6827
+ return localVarFp.getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.search, requestParameters.template, requestParameters.type, options).then((request) => request(axios, basePath));
6797
6828
  },
6798
6829
  /**
6799
6830
  *
@@ -6820,7 +6851,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
6820
6851
  * @throws {RequiredError}
6821
6852
  */
6822
6853
  getPageByType(requestParameters, options) {
6823
- return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
6854
+ return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, requestParameters.template, options).then((request) => request(axios, basePath));
6824
6855
  },
6825
6856
  /**
6826
6857
  *
@@ -6887,7 +6918,7 @@ class PageApi extends base_1.BaseAPI {
6887
6918
  * @memberof PageApi
6888
6919
  */
6889
6920
  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));
6921
+ 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
6922
  }
6892
6923
  /**
6893
6924
  *
@@ -6917,7 +6948,7 @@ class PageApi extends base_1.BaseAPI {
6917
6948
  * @memberof PageApi
6918
6949
  */
6919
6950
  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));
6951
+ return (0, exports.PageApiFp)(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
6921
6952
  }
6922
6953
  /**
6923
6954
  *
@@ -7444,10 +7475,11 @@ const ProductApiAxiosParamCreator = function (configuration) {
7444
7475
  /**
7445
7476
  *
7446
7477
  * @param {string} companyId
7478
+ * @param {string} [template]
7447
7479
  * @param {*} [options] Override http request option.
7448
7480
  * @throws {RequiredError}
7449
7481
  */
7450
- getFirstProduct: async (companyId, options = {}) => {
7482
+ getFirstProduct: async (companyId, template, options = {}) => {
7451
7483
  // verify required parameter 'companyId' is not null or undefined
7452
7484
  (0, common_1.assertParamExists)('getFirstProduct', 'companyId', companyId);
7453
7485
  const localVarPath = `/api/products/get/first`;
@@ -7463,6 +7495,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
7463
7495
  if (companyId !== undefined) {
7464
7496
  localVarQueryParameter['companyId'] = companyId;
7465
7497
  }
7498
+ if (template !== undefined) {
7499
+ localVarQueryParameter['template'] = template;
7500
+ }
7466
7501
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7467
7502
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7468
7503
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -7741,11 +7776,12 @@ const ProductApiFp = function (configuration) {
7741
7776
  /**
7742
7777
  *
7743
7778
  * @param {string} companyId
7779
+ * @param {string} [template]
7744
7780
  * @param {*} [options] Override http request option.
7745
7781
  * @throws {RequiredError}
7746
7782
  */
7747
- async getFirstProduct(companyId, options) {
7748
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(companyId, options);
7783
+ async getFirstProduct(companyId, template, options) {
7784
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(companyId, template, options);
7749
7785
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7750
7786
  const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getFirstProduct']?.[localVarOperationServerIndex]?.url;
7751
7787
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -7872,7 +7908,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
7872
7908
  * @throws {RequiredError}
7873
7909
  */
7874
7910
  getFirstProduct(requestParameters, options) {
7875
- return localVarFp.getFirstProduct(requestParameters.companyId, options).then((request) => request(axios, basePath));
7911
+ return localVarFp.getFirstProduct(requestParameters.companyId, requestParameters.template, options).then((request) => request(axios, basePath));
7876
7912
  },
7877
7913
  /**
7878
7914
  *
@@ -7967,7 +8003,7 @@ class ProductApi extends base_1.BaseAPI {
7967
8003
  * @memberof ProductApi
7968
8004
  */
7969
8005
  getFirstProduct(requestParameters, options) {
7970
- return (0, exports.ProductApiFp)(this.configuration).getFirstProduct(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
8006
+ return (0, exports.ProductApiFp)(this.configuration).getFirstProduct(requestParameters.companyId, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
7971
8007
  }
7972
8008
  /**
7973
8009
  *
package/dist/api/api.mjs CHANGED
@@ -65,7 +65,8 @@ export const ComponentContentTypeEnum = {
65
65
  INVENTORY_STATUS: 'inventory-status',
66
66
  CAROUSEL_ITEM: 'carousel-item',
67
67
  GRID_ITEM: 'grid-item',
68
- ANNOUNCEMENT_ITEM: 'announcement-item'
68
+ ANNOUNCEMENT_ITEM: 'announcement-item',
69
+ ACCORDION_ITEM: 'accordion-item'
69
70
  };
70
71
  /**
71
72
  *
@@ -2767,10 +2768,12 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
2767
2768
  /**
2768
2769
  *
2769
2770
  * @param {string} companyId
2771
+ * @param {string} [search]
2772
+ * @param {string} [template]
2770
2773
  * @param {*} [options] Override http request option.
2771
2774
  * @throws {RequiredError}
2772
2775
  */
2773
- getAllCollections: async (companyId, options = {}) => {
2776
+ getAllCollections: async (companyId, search, template, options = {}) => {
2774
2777
  // verify required parameter 'companyId' is not null or undefined
2775
2778
  assertParamExists('getAllCollections', 'companyId', companyId);
2776
2779
  const localVarPath = `/api/collections/get/all`;
@@ -2786,6 +2789,12 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
2786
2789
  if (companyId !== undefined) {
2787
2790
  localVarQueryParameter['companyId'] = companyId;
2788
2791
  }
2792
+ if (search !== undefined) {
2793
+ localVarQueryParameter['search'] = search;
2794
+ }
2795
+ if (template !== undefined) {
2796
+ localVarQueryParameter['template'] = template;
2797
+ }
2789
2798
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2790
2799
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2791
2800
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2929,10 +2938,11 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
2929
2938
  /**
2930
2939
  *
2931
2940
  * @param {string} companyId
2941
+ * @param {string} [template]
2932
2942
  * @param {*} [options] Override http request option.
2933
2943
  * @throws {RequiredError}
2934
2944
  */
2935
- getFirstCollection: async (companyId, options = {}) => {
2945
+ getFirstCollection: async (companyId, template, options = {}) => {
2936
2946
  // verify required parameter 'companyId' is not null or undefined
2937
2947
  assertParamExists('getFirstCollection', 'companyId', companyId);
2938
2948
  const localVarPath = `/api/collections/get/first`;
@@ -2948,6 +2958,9 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
2948
2958
  if (companyId !== undefined) {
2949
2959
  localVarQueryParameter['companyId'] = companyId;
2950
2960
  }
2961
+ if (template !== undefined) {
2962
+ localVarQueryParameter['template'] = template;
2963
+ }
2951
2964
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2952
2965
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2953
2966
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3025,11 +3038,13 @@ export const CollectionApiFp = function (configuration) {
3025
3038
  /**
3026
3039
  *
3027
3040
  * @param {string} companyId
3041
+ * @param {string} [search]
3042
+ * @param {string} [template]
3028
3043
  * @param {*} [options] Override http request option.
3029
3044
  * @throws {RequiredError}
3030
3045
  */
3031
- async getAllCollections(companyId, options) {
3032
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(companyId, options);
3046
+ async getAllCollections(companyId, search, template, options) {
3047
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(companyId, search, template, options);
3033
3048
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3034
3049
  const localVarOperationServerBasePath = operationServerMap['CollectionApi.getAllCollections']?.[localVarOperationServerIndex]?.url;
3035
3050
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3083,11 +3098,12 @@ export const CollectionApiFp = function (configuration) {
3083
3098
  /**
3084
3099
  *
3085
3100
  * @param {string} companyId
3101
+ * @param {string} [template]
3086
3102
  * @param {*} [options] Override http request option.
3087
3103
  * @throws {RequiredError}
3088
3104
  */
3089
- async getFirstCollection(companyId, options) {
3090
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(companyId, options);
3105
+ async getFirstCollection(companyId, template, options) {
3106
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(companyId, template, options);
3091
3107
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3092
3108
  const localVarOperationServerBasePath = operationServerMap['CollectionApi.getFirstCollection']?.[localVarOperationServerIndex]?.url;
3093
3109
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3139,7 +3155,7 @@ export const CollectionApiFactory = function (configuration, basePath, axios) {
3139
3155
  * @throws {RequiredError}
3140
3156
  */
3141
3157
  getAllCollections(requestParameters, options) {
3142
- return localVarFp.getAllCollections(requestParameters.companyId, options).then((request) => request(axios, basePath));
3158
+ return localVarFp.getAllCollections(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(axios, basePath));
3143
3159
  },
3144
3160
  /**
3145
3161
  *
@@ -3175,7 +3191,7 @@ export const CollectionApiFactory = function (configuration, basePath, axios) {
3175
3191
  * @throws {RequiredError}
3176
3192
  */
3177
3193
  getFirstCollection(requestParameters, options) {
3178
- return localVarFp.getFirstCollection(requestParameters.companyId, options).then((request) => request(axios, basePath));
3194
+ return localVarFp.getFirstCollection(requestParameters.companyId, requestParameters.template, options).then((request) => request(axios, basePath));
3179
3195
  },
3180
3196
  /**
3181
3197
  *
@@ -3223,7 +3239,7 @@ export class CollectionApi extends BaseAPI {
3223
3239
  * @memberof CollectionApi
3224
3240
  */
3225
3241
  getAllCollections(requestParameters, options) {
3226
- return CollectionApiFp(this.configuration).getAllCollections(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
3242
+ return CollectionApiFp(this.configuration).getAllCollections(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
3227
3243
  }
3228
3244
  /**
3229
3245
  *
@@ -3263,7 +3279,7 @@ export class CollectionApi extends BaseAPI {
3263
3279
  * @memberof CollectionApi
3264
3280
  */
3265
3281
  getFirstCollection(requestParameters, options) {
3266
- return CollectionApiFp(this.configuration).getFirstCollection(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
3282
+ return CollectionApiFp(this.configuration).getFirstCollection(requestParameters.companyId, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
3267
3283
  }
3268
3284
  /**
3269
3285
  *
@@ -6296,11 +6312,13 @@ export const PageApiAxiosParamCreator = function (configuration) {
6296
6312
  *
6297
6313
  * @param {string} [companyId]
6298
6314
  * @param {string} [domain]
6315
+ * @param {string} [search]
6316
+ * @param {string} [template]
6299
6317
  * @param {Array<PageTypeEnum>} [type]
6300
6318
  * @param {*} [options] Override http request option.
6301
6319
  * @throws {RequiredError}
6302
6320
  */
6303
- getAllPages: async (companyId, domain, type, options = {}) => {
6321
+ getAllPages: async (companyId, domain, search, template, type, options = {}) => {
6304
6322
  const localVarPath = `/api/pages/get/all`;
6305
6323
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6306
6324
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6317,6 +6335,12 @@ export const PageApiAxiosParamCreator = function (configuration) {
6317
6335
  if (domain !== undefined) {
6318
6336
  localVarQueryParameter['domain'] = domain;
6319
6337
  }
6338
+ if (search !== undefined) {
6339
+ localVarQueryParameter['search'] = search;
6340
+ }
6341
+ if (template !== undefined) {
6342
+ localVarQueryParameter['template'] = template;
6343
+ }
6320
6344
  if (type) {
6321
6345
  localVarQueryParameter['type'] = type;
6322
6346
  }
@@ -6397,10 +6421,11 @@ export const PageApiAxiosParamCreator = function (configuration) {
6397
6421
  * @param {string} type
6398
6422
  * @param {string} [companyId]
6399
6423
  * @param {string} [domain]
6424
+ * @param {string} [template]
6400
6425
  * @param {*} [options] Override http request option.
6401
6426
  * @throws {RequiredError}
6402
6427
  */
6403
- getPageByType: async (type, companyId, domain, options = {}) => {
6428
+ getPageByType: async (type, companyId, domain, template, options = {}) => {
6404
6429
  // verify required parameter 'type' is not null or undefined
6405
6430
  assertParamExists('getPageByType', 'type', type);
6406
6431
  const localVarPath = `/api/pages/type/{type}`
@@ -6420,6 +6445,9 @@ export const PageApiAxiosParamCreator = function (configuration) {
6420
6445
  if (domain !== undefined) {
6421
6446
  localVarQueryParameter['domain'] = domain;
6422
6447
  }
6448
+ if (template !== undefined) {
6449
+ localVarQueryParameter['template'] = template;
6450
+ }
6423
6451
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6424
6452
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6425
6453
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -6604,12 +6632,14 @@ export const PageApiFp = function (configuration) {
6604
6632
  *
6605
6633
  * @param {string} [companyId]
6606
6634
  * @param {string} [domain]
6635
+ * @param {string} [search]
6636
+ * @param {string} [template]
6607
6637
  * @param {Array<PageTypeEnum>} [type]
6608
6638
  * @param {*} [options] Override http request option.
6609
6639
  * @throws {RequiredError}
6610
6640
  */
6611
- async getAllPages(companyId, domain, type, options) {
6612
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(companyId, domain, type, options);
6641
+ async getAllPages(companyId, domain, search, template, type, options) {
6642
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(companyId, domain, search, template, type, options);
6613
6643
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6614
6644
  const localVarOperationServerBasePath = operationServerMap['PageApi.getAllPages']?.[localVarOperationServerIndex]?.url;
6615
6645
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -6645,11 +6675,12 @@ export const PageApiFp = function (configuration) {
6645
6675
  * @param {string} type
6646
6676
  * @param {string} [companyId]
6647
6677
  * @param {string} [domain]
6678
+ * @param {string} [template]
6648
6679
  * @param {*} [options] Override http request option.
6649
6680
  * @throws {RequiredError}
6650
6681
  */
6651
- async getPageByType(type, companyId, domain, options) {
6652
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, options);
6682
+ async getPageByType(type, companyId, domain, template, options) {
6683
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, template, options);
6653
6684
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6654
6685
  const localVarOperationServerBasePath = operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
6655
6686
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -6736,7 +6767,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
6736
6767
  * @throws {RequiredError}
6737
6768
  */
6738
6769
  getAllPages(requestParameters = {}, options) {
6739
- return localVarFp.getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.type, options).then((request) => request(axios, basePath));
6770
+ return localVarFp.getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.search, requestParameters.template, requestParameters.type, options).then((request) => request(axios, basePath));
6740
6771
  },
6741
6772
  /**
6742
6773
  *
@@ -6763,7 +6794,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
6763
6794
  * @throws {RequiredError}
6764
6795
  */
6765
6796
  getPageByType(requestParameters, options) {
6766
- return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
6797
+ return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, requestParameters.template, options).then((request) => request(axios, basePath));
6767
6798
  },
6768
6799
  /**
6769
6800
  *
@@ -6829,7 +6860,7 @@ export class PageApi extends BaseAPI {
6829
6860
  * @memberof PageApi
6830
6861
  */
6831
6862
  getAllPages(requestParameters = {}, options) {
6832
- return PageApiFp(this.configuration).getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
6863
+ return PageApiFp(this.configuration).getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.search, requestParameters.template, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
6833
6864
  }
6834
6865
  /**
6835
6866
  *
@@ -6859,7 +6890,7 @@ export class PageApi extends BaseAPI {
6859
6890
  * @memberof PageApi
6860
6891
  */
6861
6892
  getPageByType(requestParameters, options) {
6862
- return PageApiFp(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
6893
+ return PageApiFp(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
6863
6894
  }
6864
6895
  /**
6865
6896
  *
@@ -7381,10 +7412,11 @@ export const ProductApiAxiosParamCreator = function (configuration) {
7381
7412
  /**
7382
7413
  *
7383
7414
  * @param {string} companyId
7415
+ * @param {string} [template]
7384
7416
  * @param {*} [options] Override http request option.
7385
7417
  * @throws {RequiredError}
7386
7418
  */
7387
- getFirstProduct: async (companyId, options = {}) => {
7419
+ getFirstProduct: async (companyId, template, options = {}) => {
7388
7420
  // verify required parameter 'companyId' is not null or undefined
7389
7421
  assertParamExists('getFirstProduct', 'companyId', companyId);
7390
7422
  const localVarPath = `/api/products/get/first`;
@@ -7400,6 +7432,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
7400
7432
  if (companyId !== undefined) {
7401
7433
  localVarQueryParameter['companyId'] = companyId;
7402
7434
  }
7435
+ if (template !== undefined) {
7436
+ localVarQueryParameter['template'] = template;
7437
+ }
7403
7438
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7404
7439
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7405
7440
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -7677,11 +7712,12 @@ export const ProductApiFp = function (configuration) {
7677
7712
  /**
7678
7713
  *
7679
7714
  * @param {string} companyId
7715
+ * @param {string} [template]
7680
7716
  * @param {*} [options] Override http request option.
7681
7717
  * @throws {RequiredError}
7682
7718
  */
7683
- async getFirstProduct(companyId, options) {
7684
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(companyId, options);
7719
+ async getFirstProduct(companyId, template, options) {
7720
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(companyId, template, options);
7685
7721
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7686
7722
  const localVarOperationServerBasePath = operationServerMap['ProductApi.getFirstProduct']?.[localVarOperationServerIndex]?.url;
7687
7723
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -7807,7 +7843,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
7807
7843
  * @throws {RequiredError}
7808
7844
  */
7809
7845
  getFirstProduct(requestParameters, options) {
7810
- return localVarFp.getFirstProduct(requestParameters.companyId, options).then((request) => request(axios, basePath));
7846
+ return localVarFp.getFirstProduct(requestParameters.companyId, requestParameters.template, options).then((request) => request(axios, basePath));
7811
7847
  },
7812
7848
  /**
7813
7849
  *
@@ -7901,7 +7937,7 @@ export class ProductApi extends BaseAPI {
7901
7937
  * @memberof ProductApi
7902
7938
  */
7903
7939
  getFirstProduct(requestParameters, options) {
7904
- return ProductApiFp(this.configuration).getFirstProduct(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
7940
+ return ProductApiFp(this.configuration).getFirstProduct(requestParameters.companyId, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
7905
7941
  }
7906
7942
  /**
7907
7943
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
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": "b0891d8068a965e7e39935dbba8cdafa6921e4b9"
40
+ "gitHead": "fe377e6490470e925a4b81eabea1b2a7a34a181f"
41
41
  }