@infisale-client/api 1.2.89 → 1.2.91

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
@@ -137,11 +137,11 @@ export declare const ComponentTypeEnum: {
137
137
  readonly COLLECTION_LIST: "collection-list";
138
138
  readonly CATEGORY_LIST: "category-list";
139
139
  readonly BRAND_LIST: "brand-list";
140
+ readonly BLOG_LIST: "blog-list";
140
141
  readonly RICH_TEXT: "rich-text";
141
142
  readonly BANNER_WITH_TEXT: "banner-with-text";
142
143
  readonly ACCORDION: "accordion";
143
144
  readonly VIDEO: "video";
144
- readonly BLOG_LIST: "blog-list";
145
145
  readonly HEADER: "header";
146
146
  readonly ANNOUNCEMENT: "announcement";
147
147
  readonly FOOTER: "footer";
@@ -7747,6 +7747,30 @@ export interface ITemplateResponseComponentsInner {
7747
7747
  * @memberof ITemplateResponseComponentsInner
7748
7748
  */
7749
7749
  'contents': Array<ITemplateResponseComponentsInnerContentsInner>;
7750
+ /**
7751
+ *
7752
+ * @type {ITemplateResponseComponentsInnerBlogs}
7753
+ * @memberof ITemplateResponseComponentsInner
7754
+ */
7755
+ 'blogs'?: ITemplateResponseComponentsInnerBlogs;
7756
+ /**
7757
+ *
7758
+ * @type {Array<ICollectionResponse>}
7759
+ * @memberof ITemplateResponseComponentsInner
7760
+ */
7761
+ 'collections'?: Array<ICollectionResponse>;
7762
+ /**
7763
+ *
7764
+ * @type {Array<IBrandResponse>}
7765
+ * @memberof ITemplateResponseComponentsInner
7766
+ */
7767
+ 'brands'?: Array<IBrandResponse>;
7768
+ /**
7769
+ *
7770
+ * @type {Array<ICategoryResponse>}
7771
+ * @memberof ITemplateResponseComponentsInner
7772
+ */
7773
+ 'categories'?: Array<ICategoryResponse>;
7750
7774
  /**
7751
7775
  *
7752
7776
  * @type {ITemplateResponseComponentsInnerProducts}
@@ -7778,6 +7802,31 @@ export interface ITemplateResponseComponentsInner {
7778
7802
  */
7779
7803
  '_id': string;
7780
7804
  }
7805
+ /**
7806
+ *
7807
+ * @export
7808
+ * @interface ITemplateResponseComponentsInnerBlogs
7809
+ */
7810
+ export interface ITemplateResponseComponentsInnerBlogs {
7811
+ /**
7812
+ *
7813
+ * @type {number}
7814
+ * @memberof ITemplateResponseComponentsInnerBlogs
7815
+ */
7816
+ 'limit'?: number;
7817
+ /**
7818
+ *
7819
+ * @type {Array<IPageResponse>}
7820
+ * @memberof ITemplateResponseComponentsInnerBlogs
7821
+ */
7822
+ 'list'?: Array<IPageResponse>;
7823
+ /**
7824
+ *
7825
+ * @type {Array<IPageResponse>}
7826
+ * @memberof ITemplateResponseComponentsInnerBlogs
7827
+ */
7828
+ 'items'?: Array<IPageResponse>;
7829
+ }
7781
7830
  /**
7782
7831
  *
7783
7832
  * @export
@@ -12587,10 +12636,11 @@ export declare const BrandApiAxiosParamCreator: (configuration?: Configuration)
12587
12636
  /**
12588
12637
  *
12589
12638
  * @param {string} companyId
12639
+ * @param {string} [search]
12590
12640
  * @param {*} [options] Override http request option.
12591
12641
  * @throws {RequiredError}
12592
12642
  */
12593
- getAllBrands: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12643
+ getAllBrands: (companyId: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12594
12644
  /**
12595
12645
  *
12596
12646
  * @param {string} id
@@ -12646,10 +12696,11 @@ export declare const BrandApiFp: (configuration?: Configuration) => {
12646
12696
  /**
12647
12697
  *
12648
12698
  * @param {string} companyId
12699
+ * @param {string} [search]
12649
12700
  * @param {*} [options] Override http request option.
12650
12701
  * @throws {RequiredError}
12651
12702
  */
12652
- getAllBrands(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBrandsResponse>>;
12703
+ getAllBrands(companyId: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBrandsResponse>>;
12653
12704
  /**
12654
12705
  *
12655
12706
  * @param {string} id
@@ -12769,6 +12820,12 @@ export interface BrandApiGetAllBrandsRequest {
12769
12820
  * @memberof BrandApiGetAllBrands
12770
12821
  */
12771
12822
  readonly companyId: string;
12823
+ /**
12824
+ *
12825
+ * @type {string}
12826
+ * @memberof BrandApiGetAllBrands
12827
+ */
12828
+ readonly search?: string;
12772
12829
  }
12773
12830
  /**
12774
12831
  * Request parameters for getBrandById operation in BrandApi.
@@ -12961,10 +13018,11 @@ export declare const CategoryApiAxiosParamCreator: (configuration?: Configuratio
12961
13018
  /**
12962
13019
  *
12963
13020
  * @param {string} companyId
13021
+ * @param {string} [search]
12964
13022
  * @param {*} [options] Override http request option.
12965
13023
  * @throws {RequiredError}
12966
13024
  */
12967
- getAllCategories: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13025
+ getAllCategories: (companyId: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12968
13026
  /**
12969
13027
  *
12970
13028
  * @param {string} companyId
@@ -13034,10 +13092,11 @@ export declare const CategoryApiFp: (configuration?: Configuration) => {
13034
13092
  /**
13035
13093
  *
13036
13094
  * @param {string} companyId
13095
+ * @param {string} [search]
13037
13096
  * @param {*} [options] Override http request option.
13038
13097
  * @throws {RequiredError}
13039
13098
  */
13040
- getAllCategories(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCategoriesResponse>>;
13099
+ getAllCategories(companyId: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCategoriesResponse>>;
13041
13100
  /**
13042
13101
  *
13043
13102
  * @param {string} companyId
@@ -13185,6 +13244,12 @@ export interface CategoryApiGetAllCategoriesRequest {
13185
13244
  * @memberof CategoryApiGetAllCategories
13186
13245
  */
13187
13246
  readonly companyId: string;
13247
+ /**
13248
+ *
13249
+ * @type {string}
13250
+ * @memberof CategoryApiGetAllCategories
13251
+ */
13252
+ readonly search?: string;
13188
13253
  }
13189
13254
  /**
13190
13255
  * Request parameters for getAllCategoriesTree operation in CategoryApi.
package/dist/api/api.js CHANGED
@@ -142,11 +142,11 @@ exports.ComponentTypeEnum = {
142
142
  COLLECTION_LIST: 'collection-list',
143
143
  CATEGORY_LIST: 'category-list',
144
144
  BRAND_LIST: 'brand-list',
145
+ BLOG_LIST: 'blog-list',
145
146
  RICH_TEXT: 'rich-text',
146
147
  BANNER_WITH_TEXT: 'banner-with-text',
147
148
  ACCORDION: 'accordion',
148
149
  VIDEO: 'video',
149
- BLOG_LIST: 'blog-list',
150
150
  HEADER: 'header',
151
151
  ANNOUNCEMENT: 'announcement',
152
152
  FOOTER: 'footer',
@@ -2088,10 +2088,11 @@ const BrandApiAxiosParamCreator = function (configuration) {
2088
2088
  /**
2089
2089
  *
2090
2090
  * @param {string} companyId
2091
+ * @param {string} [search]
2091
2092
  * @param {*} [options] Override http request option.
2092
2093
  * @throws {RequiredError}
2093
2094
  */
2094
- getAllBrands: async (companyId, options = {}) => {
2095
+ getAllBrands: async (companyId, search, options = {}) => {
2095
2096
  // verify required parameter 'companyId' is not null or undefined
2096
2097
  (0, common_1.assertParamExists)('getAllBrands', 'companyId', companyId);
2097
2098
  const localVarPath = `/api/brands/get/all`;
@@ -2107,6 +2108,9 @@ const BrandApiAxiosParamCreator = function (configuration) {
2107
2108
  if (companyId !== undefined) {
2108
2109
  localVarQueryParameter['companyId'] = companyId;
2109
2110
  }
2111
+ if (search !== undefined) {
2112
+ localVarQueryParameter['search'] = search;
2113
+ }
2110
2114
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2111
2115
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2112
2116
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2285,11 +2289,12 @@ const BrandApiFp = function (configuration) {
2285
2289
  /**
2286
2290
  *
2287
2291
  * @param {string} companyId
2292
+ * @param {string} [search]
2288
2293
  * @param {*} [options] Override http request option.
2289
2294
  * @throws {RequiredError}
2290
2295
  */
2291
- async getAllBrands(companyId, options) {
2292
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllBrands(companyId, options);
2296
+ async getAllBrands(companyId, search, options) {
2297
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllBrands(companyId, search, options);
2293
2298
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2294
2299
  const localVarOperationServerBasePath = base_1.operationServerMap['BrandApi.getAllBrands']?.[localVarOperationServerIndex]?.url;
2295
2300
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2376,7 +2381,7 @@ const BrandApiFactory = function (configuration, basePath, axios) {
2376
2381
  * @throws {RequiredError}
2377
2382
  */
2378
2383
  getAllBrands(requestParameters, options) {
2379
- return localVarFp.getAllBrands(requestParameters.companyId, options).then((request) => request(axios, basePath));
2384
+ return localVarFp.getAllBrands(requestParameters.companyId, requestParameters.search, options).then((request) => request(axios, basePath));
2380
2385
  },
2381
2386
  /**
2382
2387
  *
@@ -2443,7 +2448,7 @@ class BrandApi extends base_1.BaseAPI {
2443
2448
  * @memberof BrandApi
2444
2449
  */
2445
2450
  getAllBrands(requestParameters, options) {
2446
- return (0, exports.BrandApiFp)(this.configuration).getAllBrands(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
2451
+ return (0, exports.BrandApiFp)(this.configuration).getAllBrands(requestParameters.companyId, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2447
2452
  }
2448
2453
  /**
2449
2454
  *
@@ -2550,10 +2555,11 @@ const CategoryApiAxiosParamCreator = function (configuration) {
2550
2555
  /**
2551
2556
  *
2552
2557
  * @param {string} companyId
2558
+ * @param {string} [search]
2553
2559
  * @param {*} [options] Override http request option.
2554
2560
  * @throws {RequiredError}
2555
2561
  */
2556
- getAllCategories: async (companyId, options = {}) => {
2562
+ getAllCategories: async (companyId, search, options = {}) => {
2557
2563
  // verify required parameter 'companyId' is not null or undefined
2558
2564
  (0, common_1.assertParamExists)('getAllCategories', 'companyId', companyId);
2559
2565
  const localVarPath = `/api/categories/get/all`;
@@ -2569,6 +2575,9 @@ const CategoryApiAxiosParamCreator = function (configuration) {
2569
2575
  if (companyId !== undefined) {
2570
2576
  localVarQueryParameter['companyId'] = companyId;
2571
2577
  }
2578
+ if (search !== undefined) {
2579
+ localVarQueryParameter['search'] = search;
2580
+ }
2572
2581
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2573
2582
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2574
2583
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2807,11 +2816,12 @@ const CategoryApiFp = function (configuration) {
2807
2816
  /**
2808
2817
  *
2809
2818
  * @param {string} companyId
2819
+ * @param {string} [search]
2810
2820
  * @param {*} [options] Override http request option.
2811
2821
  * @throws {RequiredError}
2812
2822
  */
2813
- async getAllCategories(companyId, options) {
2814
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategories(companyId, options);
2823
+ async getAllCategories(companyId, search, options) {
2824
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategories(companyId, search, options);
2815
2825
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2816
2826
  const localVarOperationServerBasePath = base_1.operationServerMap['CategoryApi.getAllCategories']?.[localVarOperationServerIndex]?.url;
2817
2827
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2922,7 +2932,7 @@ const CategoryApiFactory = function (configuration, basePath, axios) {
2922
2932
  * @throws {RequiredError}
2923
2933
  */
2924
2934
  getAllCategories(requestParameters, options) {
2925
- return localVarFp.getAllCategories(requestParameters.companyId, options).then((request) => request(axios, basePath));
2935
+ return localVarFp.getAllCategories(requestParameters.companyId, requestParameters.search, options).then((request) => request(axios, basePath));
2926
2936
  },
2927
2937
  /**
2928
2938
  *
@@ -3007,7 +3017,7 @@ class CategoryApi extends base_1.BaseAPI {
3007
3017
  * @memberof CategoryApi
3008
3018
  */
3009
3019
  getAllCategories(requestParameters, options) {
3010
- return (0, exports.CategoryApiFp)(this.configuration).getAllCategories(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
3020
+ return (0, exports.CategoryApiFp)(this.configuration).getAllCategories(requestParameters.companyId, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
3011
3021
  }
3012
3022
  /**
3013
3023
  *
package/dist/api/api.mjs CHANGED
@@ -130,11 +130,11 @@ export const ComponentTypeEnum = {
130
130
  COLLECTION_LIST: 'collection-list',
131
131
  CATEGORY_LIST: 'category-list',
132
132
  BRAND_LIST: 'brand-list',
133
+ BLOG_LIST: 'blog-list',
133
134
  RICH_TEXT: 'rich-text',
134
135
  BANNER_WITH_TEXT: 'banner-with-text',
135
136
  ACCORDION: 'accordion',
136
137
  VIDEO: 'video',
137
- BLOG_LIST: 'blog-list',
138
138
  HEADER: 'header',
139
139
  ANNOUNCEMENT: 'announcement',
140
140
  FOOTER: 'footer',
@@ -2064,10 +2064,11 @@ export const BrandApiAxiosParamCreator = function (configuration) {
2064
2064
  /**
2065
2065
  *
2066
2066
  * @param {string} companyId
2067
+ * @param {string} [search]
2067
2068
  * @param {*} [options] Override http request option.
2068
2069
  * @throws {RequiredError}
2069
2070
  */
2070
- getAllBrands: async (companyId, options = {}) => {
2071
+ getAllBrands: async (companyId, search, options = {}) => {
2071
2072
  // verify required parameter 'companyId' is not null or undefined
2072
2073
  assertParamExists('getAllBrands', 'companyId', companyId);
2073
2074
  const localVarPath = `/api/brands/get/all`;
@@ -2083,6 +2084,9 @@ export const BrandApiAxiosParamCreator = function (configuration) {
2083
2084
  if (companyId !== undefined) {
2084
2085
  localVarQueryParameter['companyId'] = companyId;
2085
2086
  }
2087
+ if (search !== undefined) {
2088
+ localVarQueryParameter['search'] = search;
2089
+ }
2086
2090
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2087
2091
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2088
2092
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2260,11 +2264,12 @@ export const BrandApiFp = function (configuration) {
2260
2264
  /**
2261
2265
  *
2262
2266
  * @param {string} companyId
2267
+ * @param {string} [search]
2263
2268
  * @param {*} [options] Override http request option.
2264
2269
  * @throws {RequiredError}
2265
2270
  */
2266
- async getAllBrands(companyId, options) {
2267
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllBrands(companyId, options);
2271
+ async getAllBrands(companyId, search, options) {
2272
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllBrands(companyId, search, options);
2268
2273
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2269
2274
  const localVarOperationServerBasePath = operationServerMap['BrandApi.getAllBrands']?.[localVarOperationServerIndex]?.url;
2270
2275
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2350,7 +2355,7 @@ export const BrandApiFactory = function (configuration, basePath, axios) {
2350
2355
  * @throws {RequiredError}
2351
2356
  */
2352
2357
  getAllBrands(requestParameters, options) {
2353
- return localVarFp.getAllBrands(requestParameters.companyId, options).then((request) => request(axios, basePath));
2358
+ return localVarFp.getAllBrands(requestParameters.companyId, requestParameters.search, options).then((request) => request(axios, basePath));
2354
2359
  },
2355
2360
  /**
2356
2361
  *
@@ -2416,7 +2421,7 @@ export class BrandApi extends BaseAPI {
2416
2421
  * @memberof BrandApi
2417
2422
  */
2418
2423
  getAllBrands(requestParameters, options) {
2419
- return BrandApiFp(this.configuration).getAllBrands(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
2424
+ return BrandApiFp(this.configuration).getAllBrands(requestParameters.companyId, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2420
2425
  }
2421
2426
  /**
2422
2427
  *
@@ -2522,10 +2527,11 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
2522
2527
  /**
2523
2528
  *
2524
2529
  * @param {string} companyId
2530
+ * @param {string} [search]
2525
2531
  * @param {*} [options] Override http request option.
2526
2532
  * @throws {RequiredError}
2527
2533
  */
2528
- getAllCategories: async (companyId, options = {}) => {
2534
+ getAllCategories: async (companyId, search, options = {}) => {
2529
2535
  // verify required parameter 'companyId' is not null or undefined
2530
2536
  assertParamExists('getAllCategories', 'companyId', companyId);
2531
2537
  const localVarPath = `/api/categories/get/all`;
@@ -2541,6 +2547,9 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
2541
2547
  if (companyId !== undefined) {
2542
2548
  localVarQueryParameter['companyId'] = companyId;
2543
2549
  }
2550
+ if (search !== undefined) {
2551
+ localVarQueryParameter['search'] = search;
2552
+ }
2544
2553
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2545
2554
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2546
2555
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2778,11 +2787,12 @@ export const CategoryApiFp = function (configuration) {
2778
2787
  /**
2779
2788
  *
2780
2789
  * @param {string} companyId
2790
+ * @param {string} [search]
2781
2791
  * @param {*} [options] Override http request option.
2782
2792
  * @throws {RequiredError}
2783
2793
  */
2784
- async getAllCategories(companyId, options) {
2785
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategories(companyId, options);
2794
+ async getAllCategories(companyId, search, options) {
2795
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategories(companyId, search, options);
2786
2796
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2787
2797
  const localVarOperationServerBasePath = operationServerMap['CategoryApi.getAllCategories']?.[localVarOperationServerIndex]?.url;
2788
2798
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2892,7 +2902,7 @@ export const CategoryApiFactory = function (configuration, basePath, axios) {
2892
2902
  * @throws {RequiredError}
2893
2903
  */
2894
2904
  getAllCategories(requestParameters, options) {
2895
- return localVarFp.getAllCategories(requestParameters.companyId, options).then((request) => request(axios, basePath));
2905
+ return localVarFp.getAllCategories(requestParameters.companyId, requestParameters.search, options).then((request) => request(axios, basePath));
2896
2906
  },
2897
2907
  /**
2898
2908
  *
@@ -2976,7 +2986,7 @@ export class CategoryApi extends BaseAPI {
2976
2986
  * @memberof CategoryApi
2977
2987
  */
2978
2988
  getAllCategories(requestParameters, options) {
2979
- return CategoryApiFp(this.configuration).getAllCategories(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
2989
+ return CategoryApiFp(this.configuration).getAllCategories(requestParameters.companyId, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2980
2990
  }
2981
2991
  /**
2982
2992
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.2.89",
3
+ "version": "1.2.91",
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": "37d034eb6f5eea1774d699ff99383f5345b2b42a"
40
+ "gitHead": "81bcdc34c428fb53d0d5c4b89c298e09b68a50a4"
41
41
  }