@infisale-client/api 1.2.90 → 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
@@ -7758,19 +7758,19 @@ export interface ITemplateResponseComponentsInner {
7758
7758
  * @type {Array<ICollectionResponse>}
7759
7759
  * @memberof ITemplateResponseComponentsInner
7760
7760
  */
7761
- 'collections': Array<ICollectionResponse>;
7761
+ 'collections'?: Array<ICollectionResponse>;
7762
7762
  /**
7763
7763
  *
7764
- * @type {Array<IBrandsResponse>}
7764
+ * @type {Array<IBrandResponse>}
7765
7765
  * @memberof ITemplateResponseComponentsInner
7766
7766
  */
7767
- 'brands': Array<IBrandsResponse>;
7767
+ 'brands'?: Array<IBrandResponse>;
7768
7768
  /**
7769
7769
  *
7770
7770
  * @type {Array<ICategoryResponse>}
7771
7771
  * @memberof ITemplateResponseComponentsInner
7772
7772
  */
7773
- 'categories': Array<ICategoryResponse>;
7773
+ 'categories'?: Array<ICategoryResponse>;
7774
7774
  /**
7775
7775
  *
7776
7776
  * @type {ITemplateResponseComponentsInnerProducts}
@@ -12636,10 +12636,11 @@ export declare const BrandApiAxiosParamCreator: (configuration?: Configuration)
12636
12636
  /**
12637
12637
  *
12638
12638
  * @param {string} companyId
12639
+ * @param {string} [search]
12639
12640
  * @param {*} [options] Override http request option.
12640
12641
  * @throws {RequiredError}
12641
12642
  */
12642
- getAllBrands: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12643
+ getAllBrands: (companyId: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12643
12644
  /**
12644
12645
  *
12645
12646
  * @param {string} id
@@ -12695,10 +12696,11 @@ export declare const BrandApiFp: (configuration?: Configuration) => {
12695
12696
  /**
12696
12697
  *
12697
12698
  * @param {string} companyId
12699
+ * @param {string} [search]
12698
12700
  * @param {*} [options] Override http request option.
12699
12701
  * @throws {RequiredError}
12700
12702
  */
12701
- 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>>;
12702
12704
  /**
12703
12705
  *
12704
12706
  * @param {string} id
@@ -12818,6 +12820,12 @@ export interface BrandApiGetAllBrandsRequest {
12818
12820
  * @memberof BrandApiGetAllBrands
12819
12821
  */
12820
12822
  readonly companyId: string;
12823
+ /**
12824
+ *
12825
+ * @type {string}
12826
+ * @memberof BrandApiGetAllBrands
12827
+ */
12828
+ readonly search?: string;
12821
12829
  }
12822
12830
  /**
12823
12831
  * Request parameters for getBrandById operation in BrandApi.
@@ -13010,10 +13018,11 @@ export declare const CategoryApiAxiosParamCreator: (configuration?: Configuratio
13010
13018
  /**
13011
13019
  *
13012
13020
  * @param {string} companyId
13021
+ * @param {string} [search]
13013
13022
  * @param {*} [options] Override http request option.
13014
13023
  * @throws {RequiredError}
13015
13024
  */
13016
- getAllCategories: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13025
+ getAllCategories: (companyId: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13017
13026
  /**
13018
13027
  *
13019
13028
  * @param {string} companyId
@@ -13083,10 +13092,11 @@ export declare const CategoryApiFp: (configuration?: Configuration) => {
13083
13092
  /**
13084
13093
  *
13085
13094
  * @param {string} companyId
13095
+ * @param {string} [search]
13086
13096
  * @param {*} [options] Override http request option.
13087
13097
  * @throws {RequiredError}
13088
13098
  */
13089
- 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>>;
13090
13100
  /**
13091
13101
  *
13092
13102
  * @param {string} companyId
@@ -13234,6 +13244,12 @@ export interface CategoryApiGetAllCategoriesRequest {
13234
13244
  * @memberof CategoryApiGetAllCategories
13235
13245
  */
13236
13246
  readonly companyId: string;
13247
+ /**
13248
+ *
13249
+ * @type {string}
13250
+ * @memberof CategoryApiGetAllCategories
13251
+ */
13252
+ readonly search?: string;
13237
13253
  }
13238
13254
  /**
13239
13255
  * Request parameters for getAllCategoriesTree operation in CategoryApi.
package/dist/api/api.js CHANGED
@@ -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
@@ -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.90",
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": "88beb5654d274143e021c62680777b01d335c0ba"
40
+ "gitHead": "81bcdc34c428fb53d0d5c4b89c298e09b68a50a4"
41
41
  }