@infisale-client/api 1.1.24 → 1.1.25
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 +16 -16
- package/dist/api/api.js +33 -33
- package/dist/api/api.mjs +33 -33
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -1426,7 +1426,7 @@ export interface ICollectionCollectionsQueryParams {
|
|
|
1426
1426
|
* @type {string}
|
|
1427
1427
|
* @memberof ICollectionCollectionsQueryParams
|
|
1428
1428
|
*/
|
|
1429
|
-
'
|
|
1429
|
+
'company_id': string;
|
|
1430
1430
|
/**
|
|
1431
1431
|
*
|
|
1432
1432
|
* @type {ContentStatusEnum}
|
|
@@ -9581,11 +9581,11 @@ export declare const CollectionApiAxiosParamCreator: (configuration?: Configurat
|
|
|
9581
9581
|
deleteCollection: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9582
9582
|
/**
|
|
9583
9583
|
*
|
|
9584
|
-
* @param {string}
|
|
9584
|
+
* @param {string} companyId
|
|
9585
9585
|
* @param {*} [options] Override http request option.
|
|
9586
9586
|
* @throws {RequiredError}
|
|
9587
9587
|
*/
|
|
9588
|
-
getAllCollections: (
|
|
9588
|
+
getAllCollections: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9589
9589
|
/**
|
|
9590
9590
|
*
|
|
9591
9591
|
* @param {string} id
|
|
@@ -9603,7 +9603,7 @@ export declare const CollectionApiAxiosParamCreator: (configuration?: Configurat
|
|
|
9603
9603
|
getCollectionBySlug: (slug: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9604
9604
|
/**
|
|
9605
9605
|
*
|
|
9606
|
-
* @param {string}
|
|
9606
|
+
* @param {string} companyId
|
|
9607
9607
|
* @param {number} [page]
|
|
9608
9608
|
* @param {number} [itemsPerPage]
|
|
9609
9609
|
* @param {string} [search]
|
|
@@ -9616,14 +9616,14 @@ export declare const CollectionApiAxiosParamCreator: (configuration?: Configurat
|
|
|
9616
9616
|
* @param {*} [options] Override http request option.
|
|
9617
9617
|
* @throws {RequiredError}
|
|
9618
9618
|
*/
|
|
9619
|
-
getCollections: (
|
|
9619
|
+
getCollections: (companyId: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, status?: ContentStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9620
9620
|
/**
|
|
9621
9621
|
*
|
|
9622
|
-
* @param {string}
|
|
9622
|
+
* @param {string} companyId
|
|
9623
9623
|
* @param {*} [options] Override http request option.
|
|
9624
9624
|
* @throws {RequiredError}
|
|
9625
9625
|
*/
|
|
9626
|
-
getFirstCollection: (
|
|
9626
|
+
getFirstCollection: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9627
9627
|
/**
|
|
9628
9628
|
*
|
|
9629
9629
|
* @param {string} id
|
|
@@ -9654,11 +9654,11 @@ export declare const CollectionApiFp: (configuration?: Configuration) => {
|
|
|
9654
9654
|
deleteCollection(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
9655
9655
|
/**
|
|
9656
9656
|
*
|
|
9657
|
-
* @param {string}
|
|
9657
|
+
* @param {string} companyId
|
|
9658
9658
|
* @param {*} [options] Override http request option.
|
|
9659
9659
|
* @throws {RequiredError}
|
|
9660
9660
|
*/
|
|
9661
|
-
getAllCollections(
|
|
9661
|
+
getAllCollections(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCollectionsResponse>>;
|
|
9662
9662
|
/**
|
|
9663
9663
|
*
|
|
9664
9664
|
* @param {string} id
|
|
@@ -9676,7 +9676,7 @@ export declare const CollectionApiFp: (configuration?: Configuration) => {
|
|
|
9676
9676
|
getCollectionBySlug(slug: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICollectionResponse>>;
|
|
9677
9677
|
/**
|
|
9678
9678
|
*
|
|
9679
|
-
* @param {string}
|
|
9679
|
+
* @param {string} companyId
|
|
9680
9680
|
* @param {number} [page]
|
|
9681
9681
|
* @param {number} [itemsPerPage]
|
|
9682
9682
|
* @param {string} [search]
|
|
@@ -9689,14 +9689,14 @@ export declare const CollectionApiFp: (configuration?: Configuration) => {
|
|
|
9689
9689
|
* @param {*} [options] Override http request option.
|
|
9690
9690
|
* @throws {RequiredError}
|
|
9691
9691
|
*/
|
|
9692
|
-
getCollections(
|
|
9692
|
+
getCollections(companyId: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, status?: ContentStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICollectionsResponse>>;
|
|
9693
9693
|
/**
|
|
9694
9694
|
*
|
|
9695
|
-
* @param {string}
|
|
9695
|
+
* @param {string} companyId
|
|
9696
9696
|
* @param {*} [options] Override http request option.
|
|
9697
9697
|
* @throws {RequiredError}
|
|
9698
9698
|
*/
|
|
9699
|
-
getFirstCollection(
|
|
9699
|
+
getFirstCollection(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICollectionResponse>>;
|
|
9700
9700
|
/**
|
|
9701
9701
|
*
|
|
9702
9702
|
* @param {string} id
|
|
@@ -9805,7 +9805,7 @@ export interface CollectionApiGetAllCollectionsRequest {
|
|
|
9805
9805
|
* @type {string}
|
|
9806
9806
|
* @memberof CollectionApiGetAllCollections
|
|
9807
9807
|
*/
|
|
9808
|
-
readonly
|
|
9808
|
+
readonly companyId: string;
|
|
9809
9809
|
}
|
|
9810
9810
|
/**
|
|
9811
9811
|
* Request parameters for getCollectionById operation in CollectionApi.
|
|
@@ -9850,7 +9850,7 @@ export interface CollectionApiGetCollectionsRequest {
|
|
|
9850
9850
|
* @type {string}
|
|
9851
9851
|
* @memberof CollectionApiGetCollections
|
|
9852
9852
|
*/
|
|
9853
|
-
readonly
|
|
9853
|
+
readonly companyId: string;
|
|
9854
9854
|
/**
|
|
9855
9855
|
*
|
|
9856
9856
|
* @type {number}
|
|
@@ -9917,7 +9917,7 @@ export interface CollectionApiGetFirstCollectionRequest {
|
|
|
9917
9917
|
* @type {string}
|
|
9918
9918
|
* @memberof CollectionApiGetFirstCollection
|
|
9919
9919
|
*/
|
|
9920
|
-
readonly
|
|
9920
|
+
readonly companyId: string;
|
|
9921
9921
|
}
|
|
9922
9922
|
/**
|
|
9923
9923
|
* Request parameters for updateCollection operation in CollectionApi.
|
package/dist/api/api.js
CHANGED
|
@@ -2709,13 +2709,13 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2709
2709
|
},
|
|
2710
2710
|
/**
|
|
2711
2711
|
*
|
|
2712
|
-
* @param {string}
|
|
2712
|
+
* @param {string} companyId
|
|
2713
2713
|
* @param {*} [options] Override http request option.
|
|
2714
2714
|
* @throws {RequiredError}
|
|
2715
2715
|
*/
|
|
2716
|
-
getAllCollections: async (
|
|
2717
|
-
// verify required parameter '
|
|
2718
|
-
(0, common_1.assertParamExists)('getAllCollections', '
|
|
2716
|
+
getAllCollections: async (companyId, options = {}) => {
|
|
2717
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2718
|
+
(0, common_1.assertParamExists)('getAllCollections', 'companyId', companyId);
|
|
2719
2719
|
const localVarPath = `/api/collections/get/all`;
|
|
2720
2720
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2721
2721
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2726,8 +2726,8 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2726
2726
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2727
2727
|
const localVarHeaderParameter = {};
|
|
2728
2728
|
const localVarQueryParameter = {};
|
|
2729
|
-
if (
|
|
2730
|
-
localVarQueryParameter['
|
|
2729
|
+
if (companyId !== undefined) {
|
|
2730
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2731
2731
|
}
|
|
2732
2732
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2733
2733
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2801,7 +2801,7 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2801
2801
|
},
|
|
2802
2802
|
/**
|
|
2803
2803
|
*
|
|
2804
|
-
* @param {string}
|
|
2804
|
+
* @param {string} companyId
|
|
2805
2805
|
* @param {number} [page]
|
|
2806
2806
|
* @param {number} [itemsPerPage]
|
|
2807
2807
|
* @param {string} [search]
|
|
@@ -2814,9 +2814,9 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2814
2814
|
* @param {*} [options] Override http request option.
|
|
2815
2815
|
* @throws {RequiredError}
|
|
2816
2816
|
*/
|
|
2817
|
-
getCollections: async (
|
|
2818
|
-
// verify required parameter '
|
|
2819
|
-
(0, common_1.assertParamExists)('getCollections', '
|
|
2817
|
+
getCollections: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
|
|
2818
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2819
|
+
(0, common_1.assertParamExists)('getCollections', 'companyId', companyId);
|
|
2820
2820
|
const localVarPath = `/api/collections`;
|
|
2821
2821
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2822
2822
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2855,8 +2855,8 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2855
2855
|
if (sort !== undefined) {
|
|
2856
2856
|
localVarQueryParameter['sort'] = sort;
|
|
2857
2857
|
}
|
|
2858
|
-
if (
|
|
2859
|
-
localVarQueryParameter['
|
|
2858
|
+
if (companyId !== undefined) {
|
|
2859
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2860
2860
|
}
|
|
2861
2861
|
if (status !== undefined) {
|
|
2862
2862
|
localVarQueryParameter['status'] = status;
|
|
@@ -2871,13 +2871,13 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2871
2871
|
},
|
|
2872
2872
|
/**
|
|
2873
2873
|
*
|
|
2874
|
-
* @param {string}
|
|
2874
|
+
* @param {string} companyId
|
|
2875
2875
|
* @param {*} [options] Override http request option.
|
|
2876
2876
|
* @throws {RequiredError}
|
|
2877
2877
|
*/
|
|
2878
|
-
getFirstCollection: async (
|
|
2879
|
-
// verify required parameter '
|
|
2880
|
-
(0, common_1.assertParamExists)('getFirstCollection', '
|
|
2878
|
+
getFirstCollection: async (companyId, options = {}) => {
|
|
2879
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2880
|
+
(0, common_1.assertParamExists)('getFirstCollection', 'companyId', companyId);
|
|
2881
2881
|
const localVarPath = `/api/collections/get/first`;
|
|
2882
2882
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2883
2883
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2888,8 +2888,8 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2888
2888
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2889
2889
|
const localVarHeaderParameter = {};
|
|
2890
2890
|
const localVarQueryParameter = {};
|
|
2891
|
-
if (
|
|
2892
|
-
localVarQueryParameter['
|
|
2891
|
+
if (companyId !== undefined) {
|
|
2892
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2893
2893
|
}
|
|
2894
2894
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2895
2895
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2968,12 +2968,12 @@ const CollectionApiFp = function (configuration) {
|
|
|
2968
2968
|
},
|
|
2969
2969
|
/**
|
|
2970
2970
|
*
|
|
2971
|
-
* @param {string}
|
|
2971
|
+
* @param {string} companyId
|
|
2972
2972
|
* @param {*} [options] Override http request option.
|
|
2973
2973
|
* @throws {RequiredError}
|
|
2974
2974
|
*/
|
|
2975
|
-
async getAllCollections(
|
|
2976
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(
|
|
2975
|
+
async getAllCollections(companyId, options) {
|
|
2976
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(companyId, options);
|
|
2977
2977
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2978
2978
|
const localVarOperationServerBasePath = base_1.operationServerMap['CollectionApi.getAllCollections']?.[localVarOperationServerIndex]?.url;
|
|
2979
2979
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3005,7 +3005,7 @@ const CollectionApiFp = function (configuration) {
|
|
|
3005
3005
|
},
|
|
3006
3006
|
/**
|
|
3007
3007
|
*
|
|
3008
|
-
* @param {string}
|
|
3008
|
+
* @param {string} companyId
|
|
3009
3009
|
* @param {number} [page]
|
|
3010
3010
|
* @param {number} [itemsPerPage]
|
|
3011
3011
|
* @param {string} [search]
|
|
@@ -3018,20 +3018,20 @@ const CollectionApiFp = function (configuration) {
|
|
|
3018
3018
|
* @param {*} [options] Override http request option.
|
|
3019
3019
|
* @throws {RequiredError}
|
|
3020
3020
|
*/
|
|
3021
|
-
async getCollections(
|
|
3022
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollections(
|
|
3021
|
+
async getCollections(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
|
|
3022
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollections(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
|
|
3023
3023
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3024
3024
|
const localVarOperationServerBasePath = base_1.operationServerMap['CollectionApi.getCollections']?.[localVarOperationServerIndex]?.url;
|
|
3025
3025
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3026
3026
|
},
|
|
3027
3027
|
/**
|
|
3028
3028
|
*
|
|
3029
|
-
* @param {string}
|
|
3029
|
+
* @param {string} companyId
|
|
3030
3030
|
* @param {*} [options] Override http request option.
|
|
3031
3031
|
* @throws {RequiredError}
|
|
3032
3032
|
*/
|
|
3033
|
-
async getFirstCollection(
|
|
3034
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(
|
|
3033
|
+
async getFirstCollection(companyId, options) {
|
|
3034
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(companyId, options);
|
|
3035
3035
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3036
3036
|
const localVarOperationServerBasePath = base_1.operationServerMap['CollectionApi.getFirstCollection']?.[localVarOperationServerIndex]?.url;
|
|
3037
3037
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3084,7 +3084,7 @@ const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3084
3084
|
* @throws {RequiredError}
|
|
3085
3085
|
*/
|
|
3086
3086
|
getAllCollections(requestParameters, options) {
|
|
3087
|
-
return localVarFp.getAllCollections(requestParameters.
|
|
3087
|
+
return localVarFp.getAllCollections(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
3088
3088
|
},
|
|
3089
3089
|
/**
|
|
3090
3090
|
*
|
|
@@ -3111,7 +3111,7 @@ const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3111
3111
|
* @throws {RequiredError}
|
|
3112
3112
|
*/
|
|
3113
3113
|
getCollections(requestParameters, options) {
|
|
3114
|
-
return localVarFp.getCollections(requestParameters.
|
|
3114
|
+
return localVarFp.getCollections(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
3115
3115
|
},
|
|
3116
3116
|
/**
|
|
3117
3117
|
*
|
|
@@ -3120,7 +3120,7 @@ const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3120
3120
|
* @throws {RequiredError}
|
|
3121
3121
|
*/
|
|
3122
3122
|
getFirstCollection(requestParameters, options) {
|
|
3123
|
-
return localVarFp.getFirstCollection(requestParameters.
|
|
3123
|
+
return localVarFp.getFirstCollection(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
3124
3124
|
},
|
|
3125
3125
|
/**
|
|
3126
3126
|
*
|
|
@@ -3169,7 +3169,7 @@ class CollectionApi extends base_1.BaseAPI {
|
|
|
3169
3169
|
* @memberof CollectionApi
|
|
3170
3170
|
*/
|
|
3171
3171
|
getAllCollections(requestParameters, options) {
|
|
3172
|
-
return (0, exports.CollectionApiFp)(this.configuration).getAllCollections(requestParameters.
|
|
3172
|
+
return (0, exports.CollectionApiFp)(this.configuration).getAllCollections(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
3173
3173
|
}
|
|
3174
3174
|
/**
|
|
3175
3175
|
*
|
|
@@ -3199,7 +3199,7 @@ class CollectionApi extends base_1.BaseAPI {
|
|
|
3199
3199
|
* @memberof CollectionApi
|
|
3200
3200
|
*/
|
|
3201
3201
|
getCollections(requestParameters, options) {
|
|
3202
|
-
return (0, exports.CollectionApiFp)(this.configuration).getCollections(requestParameters.
|
|
3202
|
+
return (0, exports.CollectionApiFp)(this.configuration).getCollections(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
3203
3203
|
}
|
|
3204
3204
|
/**
|
|
3205
3205
|
*
|
|
@@ -3209,7 +3209,7 @@ class CollectionApi extends base_1.BaseAPI {
|
|
|
3209
3209
|
* @memberof CollectionApi
|
|
3210
3210
|
*/
|
|
3211
3211
|
getFirstCollection(requestParameters, options) {
|
|
3212
|
-
return (0, exports.CollectionApiFp)(this.configuration).getFirstCollection(requestParameters.
|
|
3212
|
+
return (0, exports.CollectionApiFp)(this.configuration).getFirstCollection(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
3213
3213
|
}
|
|
3214
3214
|
/**
|
|
3215
3215
|
*
|
package/dist/api/api.mjs
CHANGED
|
@@ -2679,13 +2679,13 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2679
2679
|
},
|
|
2680
2680
|
/**
|
|
2681
2681
|
*
|
|
2682
|
-
* @param {string}
|
|
2682
|
+
* @param {string} companyId
|
|
2683
2683
|
* @param {*} [options] Override http request option.
|
|
2684
2684
|
* @throws {RequiredError}
|
|
2685
2685
|
*/
|
|
2686
|
-
getAllCollections: async (
|
|
2687
|
-
// verify required parameter '
|
|
2688
|
-
assertParamExists('getAllCollections', '
|
|
2686
|
+
getAllCollections: async (companyId, options = {}) => {
|
|
2687
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2688
|
+
assertParamExists('getAllCollections', 'companyId', companyId);
|
|
2689
2689
|
const localVarPath = `/api/collections/get/all`;
|
|
2690
2690
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2691
2691
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2696,8 +2696,8 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2696
2696
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2697
2697
|
const localVarHeaderParameter = {};
|
|
2698
2698
|
const localVarQueryParameter = {};
|
|
2699
|
-
if (
|
|
2700
|
-
localVarQueryParameter['
|
|
2699
|
+
if (companyId !== undefined) {
|
|
2700
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2701
2701
|
}
|
|
2702
2702
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2703
2703
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2771,7 +2771,7 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2771
2771
|
},
|
|
2772
2772
|
/**
|
|
2773
2773
|
*
|
|
2774
|
-
* @param {string}
|
|
2774
|
+
* @param {string} companyId
|
|
2775
2775
|
* @param {number} [page]
|
|
2776
2776
|
* @param {number} [itemsPerPage]
|
|
2777
2777
|
* @param {string} [search]
|
|
@@ -2784,9 +2784,9 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2784
2784
|
* @param {*} [options] Override http request option.
|
|
2785
2785
|
* @throws {RequiredError}
|
|
2786
2786
|
*/
|
|
2787
|
-
getCollections: async (
|
|
2788
|
-
// verify required parameter '
|
|
2789
|
-
assertParamExists('getCollections', '
|
|
2787
|
+
getCollections: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
|
|
2788
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2789
|
+
assertParamExists('getCollections', 'companyId', companyId);
|
|
2790
2790
|
const localVarPath = `/api/collections`;
|
|
2791
2791
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2792
2792
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2825,8 +2825,8 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2825
2825
|
if (sort !== undefined) {
|
|
2826
2826
|
localVarQueryParameter['sort'] = sort;
|
|
2827
2827
|
}
|
|
2828
|
-
if (
|
|
2829
|
-
localVarQueryParameter['
|
|
2828
|
+
if (companyId !== undefined) {
|
|
2829
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2830
2830
|
}
|
|
2831
2831
|
if (status !== undefined) {
|
|
2832
2832
|
localVarQueryParameter['status'] = status;
|
|
@@ -2841,13 +2841,13 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2841
2841
|
},
|
|
2842
2842
|
/**
|
|
2843
2843
|
*
|
|
2844
|
-
* @param {string}
|
|
2844
|
+
* @param {string} companyId
|
|
2845
2845
|
* @param {*} [options] Override http request option.
|
|
2846
2846
|
* @throws {RequiredError}
|
|
2847
2847
|
*/
|
|
2848
|
-
getFirstCollection: async (
|
|
2849
|
-
// verify required parameter '
|
|
2850
|
-
assertParamExists('getFirstCollection', '
|
|
2848
|
+
getFirstCollection: async (companyId, options = {}) => {
|
|
2849
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2850
|
+
assertParamExists('getFirstCollection', 'companyId', companyId);
|
|
2851
2851
|
const localVarPath = `/api/collections/get/first`;
|
|
2852
2852
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2853
2853
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2858,8 +2858,8 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
2858
2858
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2859
2859
|
const localVarHeaderParameter = {};
|
|
2860
2860
|
const localVarQueryParameter = {};
|
|
2861
|
-
if (
|
|
2862
|
-
localVarQueryParameter['
|
|
2861
|
+
if (companyId !== undefined) {
|
|
2862
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2863
2863
|
}
|
|
2864
2864
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2865
2865
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2937,12 +2937,12 @@ export const CollectionApiFp = function (configuration) {
|
|
|
2937
2937
|
},
|
|
2938
2938
|
/**
|
|
2939
2939
|
*
|
|
2940
|
-
* @param {string}
|
|
2940
|
+
* @param {string} companyId
|
|
2941
2941
|
* @param {*} [options] Override http request option.
|
|
2942
2942
|
* @throws {RequiredError}
|
|
2943
2943
|
*/
|
|
2944
|
-
async getAllCollections(
|
|
2945
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(
|
|
2944
|
+
async getAllCollections(companyId, options) {
|
|
2945
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCollections(companyId, options);
|
|
2946
2946
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2947
2947
|
const localVarOperationServerBasePath = operationServerMap['CollectionApi.getAllCollections']?.[localVarOperationServerIndex]?.url;
|
|
2948
2948
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2974,7 +2974,7 @@ export const CollectionApiFp = function (configuration) {
|
|
|
2974
2974
|
},
|
|
2975
2975
|
/**
|
|
2976
2976
|
*
|
|
2977
|
-
* @param {string}
|
|
2977
|
+
* @param {string} companyId
|
|
2978
2978
|
* @param {number} [page]
|
|
2979
2979
|
* @param {number} [itemsPerPage]
|
|
2980
2980
|
* @param {string} [search]
|
|
@@ -2987,20 +2987,20 @@ export const CollectionApiFp = function (configuration) {
|
|
|
2987
2987
|
* @param {*} [options] Override http request option.
|
|
2988
2988
|
* @throws {RequiredError}
|
|
2989
2989
|
*/
|
|
2990
|
-
async getCollections(
|
|
2991
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollections(
|
|
2990
|
+
async getCollections(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
|
|
2991
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollections(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
|
|
2992
2992
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2993
2993
|
const localVarOperationServerBasePath = operationServerMap['CollectionApi.getCollections']?.[localVarOperationServerIndex]?.url;
|
|
2994
2994
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2995
2995
|
},
|
|
2996
2996
|
/**
|
|
2997
2997
|
*
|
|
2998
|
-
* @param {string}
|
|
2998
|
+
* @param {string} companyId
|
|
2999
2999
|
* @param {*} [options] Override http request option.
|
|
3000
3000
|
* @throws {RequiredError}
|
|
3001
3001
|
*/
|
|
3002
|
-
async getFirstCollection(
|
|
3003
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(
|
|
3002
|
+
async getFirstCollection(companyId, options) {
|
|
3003
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstCollection(companyId, options);
|
|
3004
3004
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3005
3005
|
const localVarOperationServerBasePath = operationServerMap['CollectionApi.getFirstCollection']?.[localVarOperationServerIndex]?.url;
|
|
3006
3006
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3052,7 +3052,7 @@ export const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3052
3052
|
* @throws {RequiredError}
|
|
3053
3053
|
*/
|
|
3054
3054
|
getAllCollections(requestParameters, options) {
|
|
3055
|
-
return localVarFp.getAllCollections(requestParameters.
|
|
3055
|
+
return localVarFp.getAllCollections(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
3056
3056
|
},
|
|
3057
3057
|
/**
|
|
3058
3058
|
*
|
|
@@ -3079,7 +3079,7 @@ export const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3079
3079
|
* @throws {RequiredError}
|
|
3080
3080
|
*/
|
|
3081
3081
|
getCollections(requestParameters, options) {
|
|
3082
|
-
return localVarFp.getCollections(requestParameters.
|
|
3082
|
+
return localVarFp.getCollections(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
3083
3083
|
},
|
|
3084
3084
|
/**
|
|
3085
3085
|
*
|
|
@@ -3088,7 +3088,7 @@ export const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
3088
3088
|
* @throws {RequiredError}
|
|
3089
3089
|
*/
|
|
3090
3090
|
getFirstCollection(requestParameters, options) {
|
|
3091
|
-
return localVarFp.getFirstCollection(requestParameters.
|
|
3091
|
+
return localVarFp.getFirstCollection(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
3092
3092
|
},
|
|
3093
3093
|
/**
|
|
3094
3094
|
*
|
|
@@ -3136,7 +3136,7 @@ export class CollectionApi extends BaseAPI {
|
|
|
3136
3136
|
* @memberof CollectionApi
|
|
3137
3137
|
*/
|
|
3138
3138
|
getAllCollections(requestParameters, options) {
|
|
3139
|
-
return CollectionApiFp(this.configuration).getAllCollections(requestParameters.
|
|
3139
|
+
return CollectionApiFp(this.configuration).getAllCollections(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
3140
3140
|
}
|
|
3141
3141
|
/**
|
|
3142
3142
|
*
|
|
@@ -3166,7 +3166,7 @@ export class CollectionApi extends BaseAPI {
|
|
|
3166
3166
|
* @memberof CollectionApi
|
|
3167
3167
|
*/
|
|
3168
3168
|
getCollections(requestParameters, options) {
|
|
3169
|
-
return CollectionApiFp(this.configuration).getCollections(requestParameters.
|
|
3169
|
+
return CollectionApiFp(this.configuration).getCollections(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
3170
3170
|
}
|
|
3171
3171
|
/**
|
|
3172
3172
|
*
|
|
@@ -3176,7 +3176,7 @@ export class CollectionApi extends BaseAPI {
|
|
|
3176
3176
|
* @memberof CollectionApi
|
|
3177
3177
|
*/
|
|
3178
3178
|
getFirstCollection(requestParameters, options) {
|
|
3179
|
-
return CollectionApiFp(this.configuration).getFirstCollection(requestParameters.
|
|
3179
|
+
return CollectionApiFp(this.configuration).getFirstCollection(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
3180
3180
|
}
|
|
3181
3181
|
/**
|
|
3182
3182
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.25",
|
|
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",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"bugs": {
|
|
37
37
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "48cae91737103ce6d0d0ecf70c248c48e87d60ba"
|
|
40
40
|
}
|