@infisale-client/api 1.2.39 → 1.2.40
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 +117 -0
- package/dist/api/api.js +61 -0
- package/dist/api/api.mjs +61 -0
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -695,6 +695,50 @@ export interface IAllCategoriesResponse {
|
|
|
695
695
|
*/
|
|
696
696
|
'data': Array<PickICategoryResponseIdOrContentsOrAttributes>;
|
|
697
697
|
}
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @export
|
|
701
|
+
* @interface IAllCategoriesTreeResponse
|
|
702
|
+
*/
|
|
703
|
+
export interface IAllCategoriesTreeResponse {
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @type {Array<IAllCategoriesTreeResponseDataInner>}
|
|
707
|
+
* @memberof IAllCategoriesTreeResponse
|
|
708
|
+
*/
|
|
709
|
+
'data': Array<IAllCategoriesTreeResponseDataInner>;
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
*
|
|
713
|
+
* @export
|
|
714
|
+
* @interface IAllCategoriesTreeResponseDataInner
|
|
715
|
+
*/
|
|
716
|
+
export interface IAllCategoriesTreeResponseDataInner {
|
|
717
|
+
/**
|
|
718
|
+
*
|
|
719
|
+
* @type {Array<SubCategories>}
|
|
720
|
+
* @memberof IAllCategoriesTreeResponseDataInner
|
|
721
|
+
*/
|
|
722
|
+
'subCategories': Array<SubCategories>;
|
|
723
|
+
/**
|
|
724
|
+
*
|
|
725
|
+
* @type {Array<ICategoryResponseAttributesInner>}
|
|
726
|
+
* @memberof IAllCategoriesTreeResponseDataInner
|
|
727
|
+
*/
|
|
728
|
+
'attributes': Array<ICategoryResponseAttributesInner>;
|
|
729
|
+
/**
|
|
730
|
+
* Make all properties in T optional
|
|
731
|
+
* @type {object}
|
|
732
|
+
* @memberof IAllCategoriesTreeResponseDataInner
|
|
733
|
+
*/
|
|
734
|
+
'contents': object;
|
|
735
|
+
/**
|
|
736
|
+
*
|
|
737
|
+
* @type {string}
|
|
738
|
+
* @memberof IAllCategoriesTreeResponseDataInner
|
|
739
|
+
*/
|
|
740
|
+
'_id': string;
|
|
741
|
+
}
|
|
698
742
|
/**
|
|
699
743
|
*
|
|
700
744
|
* @export
|
|
@@ -9906,6 +9950,37 @@ export declare const SitemapTypeEnum: {
|
|
|
9906
9950
|
readonly BLOG: "blog";
|
|
9907
9951
|
};
|
|
9908
9952
|
export type SitemapTypeEnum = typeof SitemapTypeEnum[keyof typeof SitemapTypeEnum];
|
|
9953
|
+
/**
|
|
9954
|
+
*
|
|
9955
|
+
* @export
|
|
9956
|
+
* @interface SubCategories
|
|
9957
|
+
*/
|
|
9958
|
+
export interface SubCategories {
|
|
9959
|
+
/**
|
|
9960
|
+
*
|
|
9961
|
+
* @type {Array<SubCategories>}
|
|
9962
|
+
* @memberof SubCategories
|
|
9963
|
+
*/
|
|
9964
|
+
'subCategories': Array<SubCategories>;
|
|
9965
|
+
/**
|
|
9966
|
+
*
|
|
9967
|
+
* @type {Array<ICategoryResponseAttributesInner>}
|
|
9968
|
+
* @memberof SubCategories
|
|
9969
|
+
*/
|
|
9970
|
+
'attributes': Array<ICategoryResponseAttributesInner>;
|
|
9971
|
+
/**
|
|
9972
|
+
* Make all properties in T optional
|
|
9973
|
+
* @type {object}
|
|
9974
|
+
* @memberof SubCategories
|
|
9975
|
+
*/
|
|
9976
|
+
'contents': object;
|
|
9977
|
+
/**
|
|
9978
|
+
*
|
|
9979
|
+
* @type {string}
|
|
9980
|
+
* @memberof SubCategories
|
|
9981
|
+
*/
|
|
9982
|
+
'_id': string;
|
|
9983
|
+
}
|
|
9909
9984
|
/**
|
|
9910
9985
|
*
|
|
9911
9986
|
* @export
|
|
@@ -11227,6 +11302,13 @@ export declare const CategoryApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
11227
11302
|
* @throws {RequiredError}
|
|
11228
11303
|
*/
|
|
11229
11304
|
getAllCategories: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11305
|
+
/**
|
|
11306
|
+
*
|
|
11307
|
+
* @param {string} companyId
|
|
11308
|
+
* @param {*} [options] Override http request option.
|
|
11309
|
+
* @throws {RequiredError}
|
|
11310
|
+
*/
|
|
11311
|
+
getAllCategoriesTree: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11230
11312
|
/**
|
|
11231
11313
|
*
|
|
11232
11314
|
* @param {number} [page]
|
|
@@ -11293,6 +11375,13 @@ export declare const CategoryApiFp: (configuration?: Configuration) => {
|
|
|
11293
11375
|
* @throws {RequiredError}
|
|
11294
11376
|
*/
|
|
11295
11377
|
getAllCategories(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCategoriesResponse>>;
|
|
11378
|
+
/**
|
|
11379
|
+
*
|
|
11380
|
+
* @param {string} companyId
|
|
11381
|
+
* @param {*} [options] Override http request option.
|
|
11382
|
+
* @throws {RequiredError}
|
|
11383
|
+
*/
|
|
11384
|
+
getAllCategoriesTree(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCategoriesTreeResponse>>;
|
|
11296
11385
|
/**
|
|
11297
11386
|
*
|
|
11298
11387
|
* @param {number} [page]
|
|
@@ -11359,6 +11448,13 @@ export declare const CategoryApiFactory: (configuration?: Configuration, basePat
|
|
|
11359
11448
|
* @throws {RequiredError}
|
|
11360
11449
|
*/
|
|
11361
11450
|
getAllCategories(requestParameters: CategoryApiGetAllCategoriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<IAllCategoriesResponse>;
|
|
11451
|
+
/**
|
|
11452
|
+
*
|
|
11453
|
+
* @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
|
|
11454
|
+
* @param {*} [options] Override http request option.
|
|
11455
|
+
* @throws {RequiredError}
|
|
11456
|
+
*/
|
|
11457
|
+
getAllCategoriesTree(requestParameters: CategoryApiGetAllCategoriesTreeRequest, options?: RawAxiosRequestConfig): AxiosPromise<IAllCategoriesTreeResponse>;
|
|
11362
11458
|
/**
|
|
11363
11459
|
*
|
|
11364
11460
|
* @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
|
|
@@ -11427,6 +11523,19 @@ export interface CategoryApiGetAllCategoriesRequest {
|
|
|
11427
11523
|
*/
|
|
11428
11524
|
readonly companyId: string;
|
|
11429
11525
|
}
|
|
11526
|
+
/**
|
|
11527
|
+
* Request parameters for getAllCategoriesTree operation in CategoryApi.
|
|
11528
|
+
* @export
|
|
11529
|
+
* @interface CategoryApiGetAllCategoriesTreeRequest
|
|
11530
|
+
*/
|
|
11531
|
+
export interface CategoryApiGetAllCategoriesTreeRequest {
|
|
11532
|
+
/**
|
|
11533
|
+
*
|
|
11534
|
+
* @type {string}
|
|
11535
|
+
* @memberof CategoryApiGetAllCategoriesTree
|
|
11536
|
+
*/
|
|
11537
|
+
readonly companyId: string;
|
|
11538
|
+
}
|
|
11430
11539
|
/**
|
|
11431
11540
|
* Request parameters for getCategories operation in CategoryApi.
|
|
11432
11541
|
* @export
|
|
@@ -11576,6 +11685,14 @@ export declare class CategoryApi extends BaseAPI {
|
|
|
11576
11685
|
* @memberof CategoryApi
|
|
11577
11686
|
*/
|
|
11578
11687
|
getAllCategories(requestParameters: CategoryApiGetAllCategoriesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IAllCategoriesResponse, any>>;
|
|
11688
|
+
/**
|
|
11689
|
+
*
|
|
11690
|
+
* @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
|
|
11691
|
+
* @param {*} [options] Override http request option.
|
|
11692
|
+
* @throws {RequiredError}
|
|
11693
|
+
* @memberof CategoryApi
|
|
11694
|
+
*/
|
|
11695
|
+
getAllCategoriesTree(requestParameters: CategoryApiGetAllCategoriesTreeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IAllCategoriesTreeResponse, any>>;
|
|
11579
11696
|
/**
|
|
11580
11697
|
*
|
|
11581
11698
|
* @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -2511,6 +2511,36 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2511
2511
|
options: localVarRequestOptions,
|
|
2512
2512
|
};
|
|
2513
2513
|
},
|
|
2514
|
+
/**
|
|
2515
|
+
*
|
|
2516
|
+
* @param {string} companyId
|
|
2517
|
+
* @param {*} [options] Override http request option.
|
|
2518
|
+
* @throws {RequiredError}
|
|
2519
|
+
*/
|
|
2520
|
+
getAllCategoriesTree: async (companyId, options = {}) => {
|
|
2521
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2522
|
+
(0, common_1.assertParamExists)('getAllCategoriesTree', 'companyId', companyId);
|
|
2523
|
+
const localVarPath = `/api/categories/get/all-tree`;
|
|
2524
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2525
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2526
|
+
let baseOptions;
|
|
2527
|
+
if (configuration) {
|
|
2528
|
+
baseOptions = configuration.baseOptions;
|
|
2529
|
+
}
|
|
2530
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2531
|
+
const localVarHeaderParameter = {};
|
|
2532
|
+
const localVarQueryParameter = {};
|
|
2533
|
+
if (companyId !== undefined) {
|
|
2534
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
2535
|
+
}
|
|
2536
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2537
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2538
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2539
|
+
return {
|
|
2540
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2541
|
+
options: localVarRequestOptions,
|
|
2542
|
+
};
|
|
2543
|
+
},
|
|
2514
2544
|
/**
|
|
2515
2545
|
*
|
|
2516
2546
|
* @param {number} [page]
|
|
@@ -2720,6 +2750,18 @@ const CategoryApiFp = function (configuration) {
|
|
|
2720
2750
|
const localVarOperationServerBasePath = base_1.operationServerMap['CategoryApi.getAllCategories']?.[localVarOperationServerIndex]?.url;
|
|
2721
2751
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2722
2752
|
},
|
|
2753
|
+
/**
|
|
2754
|
+
*
|
|
2755
|
+
* @param {string} companyId
|
|
2756
|
+
* @param {*} [options] Override http request option.
|
|
2757
|
+
* @throws {RequiredError}
|
|
2758
|
+
*/
|
|
2759
|
+
async getAllCategoriesTree(companyId, options) {
|
|
2760
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategoriesTree(companyId, options);
|
|
2761
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2762
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CategoryApi.getAllCategoriesTree']?.[localVarOperationServerIndex]?.url;
|
|
2763
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2764
|
+
},
|
|
2723
2765
|
/**
|
|
2724
2766
|
*
|
|
2725
2767
|
* @param {number} [page]
|
|
@@ -2816,6 +2858,15 @@ const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
|
2816
2858
|
getAllCategories(requestParameters, options) {
|
|
2817
2859
|
return localVarFp.getAllCategories(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2818
2860
|
},
|
|
2861
|
+
/**
|
|
2862
|
+
*
|
|
2863
|
+
* @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
|
|
2864
|
+
* @param {*} [options] Override http request option.
|
|
2865
|
+
* @throws {RequiredError}
|
|
2866
|
+
*/
|
|
2867
|
+
getAllCategoriesTree(requestParameters, options) {
|
|
2868
|
+
return localVarFp.getAllCategoriesTree(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2869
|
+
},
|
|
2819
2870
|
/**
|
|
2820
2871
|
*
|
|
2821
2872
|
* @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
|
|
@@ -2892,6 +2943,16 @@ class CategoryApi extends base_1.BaseAPI {
|
|
|
2892
2943
|
getAllCategories(requestParameters, options) {
|
|
2893
2944
|
return (0, exports.CategoryApiFp)(this.configuration).getAllCategories(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2894
2945
|
}
|
|
2946
|
+
/**
|
|
2947
|
+
*
|
|
2948
|
+
* @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
|
|
2949
|
+
* @param {*} [options] Override http request option.
|
|
2950
|
+
* @throws {RequiredError}
|
|
2951
|
+
* @memberof CategoryApi
|
|
2952
|
+
*/
|
|
2953
|
+
getAllCategoriesTree(requestParameters, options) {
|
|
2954
|
+
return (0, exports.CategoryApiFp)(this.configuration).getAllCategoriesTree(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2955
|
+
}
|
|
2895
2956
|
/**
|
|
2896
2957
|
*
|
|
2897
2958
|
* @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
|
package/dist/api/api.mjs
CHANGED
|
@@ -2484,6 +2484,36 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2484
2484
|
options: localVarRequestOptions,
|
|
2485
2485
|
};
|
|
2486
2486
|
},
|
|
2487
|
+
/**
|
|
2488
|
+
*
|
|
2489
|
+
* @param {string} companyId
|
|
2490
|
+
* @param {*} [options] Override http request option.
|
|
2491
|
+
* @throws {RequiredError}
|
|
2492
|
+
*/
|
|
2493
|
+
getAllCategoriesTree: async (companyId, options = {}) => {
|
|
2494
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2495
|
+
assertParamExists('getAllCategoriesTree', 'companyId', companyId);
|
|
2496
|
+
const localVarPath = `/api/categories/get/all-tree`;
|
|
2497
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2498
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2499
|
+
let baseOptions;
|
|
2500
|
+
if (configuration) {
|
|
2501
|
+
baseOptions = configuration.baseOptions;
|
|
2502
|
+
}
|
|
2503
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2504
|
+
const localVarHeaderParameter = {};
|
|
2505
|
+
const localVarQueryParameter = {};
|
|
2506
|
+
if (companyId !== undefined) {
|
|
2507
|
+
localVarQueryParameter['companyId'] = companyId;
|
|
2508
|
+
}
|
|
2509
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2510
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2511
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2512
|
+
return {
|
|
2513
|
+
url: toPathString(localVarUrlObj),
|
|
2514
|
+
options: localVarRequestOptions,
|
|
2515
|
+
};
|
|
2516
|
+
},
|
|
2487
2517
|
/**
|
|
2488
2518
|
*
|
|
2489
2519
|
* @param {number} [page]
|
|
@@ -2692,6 +2722,18 @@ export const CategoryApiFp = function (configuration) {
|
|
|
2692
2722
|
const localVarOperationServerBasePath = operationServerMap['CategoryApi.getAllCategories']?.[localVarOperationServerIndex]?.url;
|
|
2693
2723
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2694
2724
|
},
|
|
2725
|
+
/**
|
|
2726
|
+
*
|
|
2727
|
+
* @param {string} companyId
|
|
2728
|
+
* @param {*} [options] Override http request option.
|
|
2729
|
+
* @throws {RequiredError}
|
|
2730
|
+
*/
|
|
2731
|
+
async getAllCategoriesTree(companyId, options) {
|
|
2732
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategoriesTree(companyId, options);
|
|
2733
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2734
|
+
const localVarOperationServerBasePath = operationServerMap['CategoryApi.getAllCategoriesTree']?.[localVarOperationServerIndex]?.url;
|
|
2735
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2736
|
+
},
|
|
2695
2737
|
/**
|
|
2696
2738
|
*
|
|
2697
2739
|
* @param {number} [page]
|
|
@@ -2787,6 +2829,15 @@ export const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
|
2787
2829
|
getAllCategories(requestParameters, options) {
|
|
2788
2830
|
return localVarFp.getAllCategories(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2789
2831
|
},
|
|
2832
|
+
/**
|
|
2833
|
+
*
|
|
2834
|
+
* @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
|
|
2835
|
+
* @param {*} [options] Override http request option.
|
|
2836
|
+
* @throws {RequiredError}
|
|
2837
|
+
*/
|
|
2838
|
+
getAllCategoriesTree(requestParameters, options) {
|
|
2839
|
+
return localVarFp.getAllCategoriesTree(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2840
|
+
},
|
|
2790
2841
|
/**
|
|
2791
2842
|
*
|
|
2792
2843
|
* @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
|
|
@@ -2862,6 +2913,16 @@ export class CategoryApi extends BaseAPI {
|
|
|
2862
2913
|
getAllCategories(requestParameters, options) {
|
|
2863
2914
|
return CategoryApiFp(this.configuration).getAllCategories(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2864
2915
|
}
|
|
2916
|
+
/**
|
|
2917
|
+
*
|
|
2918
|
+
* @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
|
|
2919
|
+
* @param {*} [options] Override http request option.
|
|
2920
|
+
* @throws {RequiredError}
|
|
2921
|
+
* @memberof CategoryApi
|
|
2922
|
+
*/
|
|
2923
|
+
getAllCategoriesTree(requestParameters, options) {
|
|
2924
|
+
return CategoryApiFp(this.configuration).getAllCategoriesTree(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2925
|
+
}
|
|
2865
2926
|
/**
|
|
2866
2927
|
*
|
|
2867
2928
|
* @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.40",
|
|
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": "e1912d682b9f6092c6d8d90ad959f4fa0481245a"
|
|
41
41
|
}
|