@infisale-client/api 1.1.10 → 1.1.12
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 +104 -59
- package/dist/api/api.js +71 -7
- package/dist/api/api.mjs +71 -7
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -2744,24 +2744,6 @@ export interface ICompanyResponse {
|
|
|
2744
2744
|
* @memberof ICompanyResponse
|
|
2745
2745
|
*/
|
|
2746
2746
|
'main'?: PickICompanyNameOrDomainsOrIdOrUsersOrLanguage;
|
|
2747
|
-
/**
|
|
2748
|
-
*
|
|
2749
|
-
* @type {IUserResponse}
|
|
2750
|
-
* @memberof ICompanyResponse
|
|
2751
|
-
*/
|
|
2752
|
-
'owner': IUserResponse;
|
|
2753
|
-
/**
|
|
2754
|
-
*
|
|
2755
|
-
* @type {Array<ICompanyResponseUsersInner>}
|
|
2756
|
-
* @memberof ICompanyResponse
|
|
2757
|
-
*/
|
|
2758
|
-
'users': Array<ICompanyResponseUsersInner>;
|
|
2759
|
-
/**
|
|
2760
|
-
*
|
|
2761
|
-
* @type {IPlanResponse}
|
|
2762
|
-
* @memberof ICompanyResponse
|
|
2763
|
-
*/
|
|
2764
|
-
'_plan': IPlanResponse;
|
|
2765
2747
|
/**
|
|
2766
2748
|
*
|
|
2767
2749
|
* @type {ICompanyResponseConfig}
|
|
@@ -3101,31 +3083,6 @@ export interface ICompanyResponseSenderEmailDnsRecordsInner {
|
|
|
3101
3083
|
*/
|
|
3102
3084
|
'key': string;
|
|
3103
3085
|
}
|
|
3104
|
-
/**
|
|
3105
|
-
*
|
|
3106
|
-
* @export
|
|
3107
|
-
* @interface ICompanyResponseUsersInner
|
|
3108
|
-
*/
|
|
3109
|
-
export interface ICompanyResponseUsersInner {
|
|
3110
|
-
/**
|
|
3111
|
-
*
|
|
3112
|
-
* @type {CompanyUserStatusEnum}
|
|
3113
|
-
* @memberof ICompanyResponseUsersInner
|
|
3114
|
-
*/
|
|
3115
|
-
'status': CompanyUserStatusEnum;
|
|
3116
|
-
/**
|
|
3117
|
-
*
|
|
3118
|
-
* @type {string}
|
|
3119
|
-
* @memberof ICompanyResponseUsersInner
|
|
3120
|
-
*/
|
|
3121
|
-
'role': string;
|
|
3122
|
-
/**
|
|
3123
|
-
*
|
|
3124
|
-
* @type {IUserResponse}
|
|
3125
|
-
* @memberof ICompanyResponseUsersInner
|
|
3126
|
-
*/
|
|
3127
|
-
'user': IUserResponse;
|
|
3128
|
-
}
|
|
3129
3086
|
/**
|
|
3130
3087
|
*
|
|
3131
3088
|
* @export
|
|
@@ -3315,6 +3272,44 @@ export interface ICompanyUsersCollectionQueryParams {
|
|
|
3315
3272
|
*/
|
|
3316
3273
|
'status'?: CompanyUserStatusEnum;
|
|
3317
3274
|
}
|
|
3275
|
+
/**
|
|
3276
|
+
*
|
|
3277
|
+
* @export
|
|
3278
|
+
* @interface ICompanyUsersResponse
|
|
3279
|
+
*/
|
|
3280
|
+
export interface ICompanyUsersResponse {
|
|
3281
|
+
/**
|
|
3282
|
+
*
|
|
3283
|
+
* @type {Array<ICompanyUsersResponseUsersInner>}
|
|
3284
|
+
* @memberof ICompanyUsersResponse
|
|
3285
|
+
*/
|
|
3286
|
+
'users': Array<ICompanyUsersResponseUsersInner>;
|
|
3287
|
+
}
|
|
3288
|
+
/**
|
|
3289
|
+
*
|
|
3290
|
+
* @export
|
|
3291
|
+
* @interface ICompanyUsersResponseUsersInner
|
|
3292
|
+
*/
|
|
3293
|
+
export interface ICompanyUsersResponseUsersInner {
|
|
3294
|
+
/**
|
|
3295
|
+
*
|
|
3296
|
+
* @type {CompanyUserStatusEnum}
|
|
3297
|
+
* @memberof ICompanyUsersResponseUsersInner
|
|
3298
|
+
*/
|
|
3299
|
+
'status': CompanyUserStatusEnum;
|
|
3300
|
+
/**
|
|
3301
|
+
*
|
|
3302
|
+
* @type {string}
|
|
3303
|
+
* @memberof ICompanyUsersResponseUsersInner
|
|
3304
|
+
*/
|
|
3305
|
+
'role': string;
|
|
3306
|
+
/**
|
|
3307
|
+
*
|
|
3308
|
+
* @type {PickIUserIdOrNameOrEmail}
|
|
3309
|
+
* @memberof ICompanyUsersResponseUsersInner
|
|
3310
|
+
*/
|
|
3311
|
+
'user': PickIUserIdOrNameOrEmail;
|
|
3312
|
+
}
|
|
3318
3313
|
/**
|
|
3319
3314
|
*
|
|
3320
3315
|
* @export
|
|
@@ -9167,7 +9162,15 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
|
|
|
9167
9162
|
* @param {*} [options] Override http request option.
|
|
9168
9163
|
* @throws {RequiredError}
|
|
9169
9164
|
*/
|
|
9170
|
-
|
|
9165
|
+
getCompanyCustomers: (id: string, page?: number, itemsPerPage?: PaginationLimitEnum, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, status?: CompanyUserStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9166
|
+
/**
|
|
9167
|
+
*
|
|
9168
|
+
* @param {string} id
|
|
9169
|
+
* @param {CompanyUserStatusEnum} [status]
|
|
9170
|
+
* @param {*} [options] Override http request option.
|
|
9171
|
+
* @throws {RequiredError}
|
|
9172
|
+
*/
|
|
9173
|
+
getCompanyUsers: (id: string, status?: CompanyUserStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9171
9174
|
/**
|
|
9172
9175
|
*
|
|
9173
9176
|
* @param {string} id
|
|
@@ -9331,7 +9334,15 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
|
|
|
9331
9334
|
* @param {*} [options] Override http request option.
|
|
9332
9335
|
* @throws {RequiredError}
|
|
9333
9336
|
*/
|
|
9334
|
-
|
|
9337
|
+
getCompanyCustomers(id: string, page?: number, itemsPerPage?: PaginationLimitEnum, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, status?: CompanyUserStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUsersResponse>>;
|
|
9338
|
+
/**
|
|
9339
|
+
*
|
|
9340
|
+
* @param {string} id
|
|
9341
|
+
* @param {CompanyUserStatusEnum} [status]
|
|
9342
|
+
* @param {*} [options] Override http request option.
|
|
9343
|
+
* @throws {RequiredError}
|
|
9344
|
+
*/
|
|
9345
|
+
getCompanyUsers(id: string, status?: CompanyUserStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyUsersResponse>>;
|
|
9335
9346
|
/**
|
|
9336
9347
|
*
|
|
9337
9348
|
* @param {string} id
|
|
@@ -9465,13 +9476,20 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
|
|
|
9465
9476
|
* @throws {RequiredError}
|
|
9466
9477
|
*/
|
|
9467
9478
|
getCompanyById(requestParameters: CompanyApiGetCompanyByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyResponse>;
|
|
9479
|
+
/**
|
|
9480
|
+
*
|
|
9481
|
+
* @param {CompanyApiGetCompanyCustomersRequest} requestParameters Request parameters.
|
|
9482
|
+
* @param {*} [options] Override http request option.
|
|
9483
|
+
* @throws {RequiredError}
|
|
9484
|
+
*/
|
|
9485
|
+
getCompanyCustomers(requestParameters: CompanyApiGetCompanyCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUsersResponse>;
|
|
9468
9486
|
/**
|
|
9469
9487
|
*
|
|
9470
9488
|
* @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
|
|
9471
9489
|
* @param {*} [options] Override http request option.
|
|
9472
9490
|
* @throws {RequiredError}
|
|
9473
9491
|
*/
|
|
9474
|
-
getCompanyUsers(requestParameters: CompanyApiGetCompanyUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
9492
|
+
getCompanyUsers(requestParameters: CompanyApiGetCompanyUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyUsersResponse>;
|
|
9475
9493
|
/**
|
|
9476
9494
|
*
|
|
9477
9495
|
* @param {CompanyApiGetCompanyVersionsRequest} requestParameters Request parameters.
|
|
@@ -9737,65 +9755,84 @@ export interface CompanyApiGetCompanyByIdRequest {
|
|
|
9737
9755
|
readonly id: string;
|
|
9738
9756
|
}
|
|
9739
9757
|
/**
|
|
9740
|
-
* Request parameters for
|
|
9758
|
+
* Request parameters for getCompanyCustomers operation in CompanyApi.
|
|
9741
9759
|
* @export
|
|
9742
|
-
* @interface
|
|
9760
|
+
* @interface CompanyApiGetCompanyCustomersRequest
|
|
9743
9761
|
*/
|
|
9744
|
-
export interface
|
|
9762
|
+
export interface CompanyApiGetCompanyCustomersRequest {
|
|
9745
9763
|
/**
|
|
9746
9764
|
*
|
|
9747
9765
|
* @type {string}
|
|
9748
|
-
* @memberof
|
|
9766
|
+
* @memberof CompanyApiGetCompanyCustomers
|
|
9749
9767
|
*/
|
|
9750
9768
|
readonly id: string;
|
|
9751
9769
|
/**
|
|
9752
9770
|
*
|
|
9753
9771
|
* @type {number}
|
|
9754
|
-
* @memberof
|
|
9772
|
+
* @memberof CompanyApiGetCompanyCustomers
|
|
9755
9773
|
*/
|
|
9756
9774
|
readonly page?: number;
|
|
9757
9775
|
/**
|
|
9758
9776
|
*
|
|
9759
9777
|
* @type {PaginationLimitEnum}
|
|
9760
|
-
* @memberof
|
|
9778
|
+
* @memberof CompanyApiGetCompanyCustomers
|
|
9761
9779
|
*/
|
|
9762
9780
|
readonly itemsPerPage?: PaginationLimitEnum;
|
|
9763
9781
|
/**
|
|
9764
9782
|
*
|
|
9765
9783
|
* @type {string}
|
|
9766
|
-
* @memberof
|
|
9784
|
+
* @memberof CompanyApiGetCompanyCustomers
|
|
9767
9785
|
*/
|
|
9768
9786
|
readonly search?: string;
|
|
9769
9787
|
/**
|
|
9770
9788
|
*
|
|
9771
9789
|
* @type {string}
|
|
9772
|
-
* @memberof
|
|
9790
|
+
* @memberof CompanyApiGetCompanyCustomers
|
|
9773
9791
|
*/
|
|
9774
9792
|
readonly startDate?: string;
|
|
9775
9793
|
/**
|
|
9776
9794
|
*
|
|
9777
9795
|
* @type {string}
|
|
9778
|
-
* @memberof
|
|
9796
|
+
* @memberof CompanyApiGetCompanyCustomers
|
|
9779
9797
|
*/
|
|
9780
9798
|
readonly endDate?: string;
|
|
9781
9799
|
/**
|
|
9782
9800
|
*
|
|
9783
9801
|
* @type {string}
|
|
9784
|
-
* @memberof
|
|
9802
|
+
* @memberof CompanyApiGetCompanyCustomers
|
|
9785
9803
|
*/
|
|
9786
9804
|
readonly dateField?: string;
|
|
9787
9805
|
/**
|
|
9788
9806
|
*
|
|
9789
9807
|
* @type {OrderEnum}
|
|
9790
|
-
* @memberof
|
|
9808
|
+
* @memberof CompanyApiGetCompanyCustomers
|
|
9791
9809
|
*/
|
|
9792
9810
|
readonly order?: OrderEnum;
|
|
9793
9811
|
/**
|
|
9794
9812
|
*
|
|
9795
9813
|
* @type {string}
|
|
9796
|
-
* @memberof
|
|
9814
|
+
* @memberof CompanyApiGetCompanyCustomers
|
|
9797
9815
|
*/
|
|
9798
9816
|
readonly sort?: string;
|
|
9817
|
+
/**
|
|
9818
|
+
*
|
|
9819
|
+
* @type {CompanyUserStatusEnum}
|
|
9820
|
+
* @memberof CompanyApiGetCompanyCustomers
|
|
9821
|
+
*/
|
|
9822
|
+
readonly status?: CompanyUserStatusEnum;
|
|
9823
|
+
}
|
|
9824
|
+
/**
|
|
9825
|
+
* Request parameters for getCompanyUsers operation in CompanyApi.
|
|
9826
|
+
* @export
|
|
9827
|
+
* @interface CompanyApiGetCompanyUsersRequest
|
|
9828
|
+
*/
|
|
9829
|
+
export interface CompanyApiGetCompanyUsersRequest {
|
|
9830
|
+
/**
|
|
9831
|
+
*
|
|
9832
|
+
* @type {string}
|
|
9833
|
+
* @memberof CompanyApiGetCompanyUsers
|
|
9834
|
+
*/
|
|
9835
|
+
readonly id: string;
|
|
9799
9836
|
/**
|
|
9800
9837
|
*
|
|
9801
9838
|
* @type {CompanyUserStatusEnum}
|
|
@@ -10034,6 +10071,14 @@ export declare class CompanyApi extends BaseAPI {
|
|
|
10034
10071
|
* @memberof CompanyApi
|
|
10035
10072
|
*/
|
|
10036
10073
|
getCompanyById(requestParameters: CompanyApiGetCompanyByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyResponse, any>>;
|
|
10074
|
+
/**
|
|
10075
|
+
*
|
|
10076
|
+
* @param {CompanyApiGetCompanyCustomersRequest} requestParameters Request parameters.
|
|
10077
|
+
* @param {*} [options] Override http request option.
|
|
10078
|
+
* @throws {RequiredError}
|
|
10079
|
+
* @memberof CompanyApi
|
|
10080
|
+
*/
|
|
10081
|
+
getCompanyCustomers(requestParameters: CompanyApiGetCompanyCustomersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUsersResponse, any>>;
|
|
10037
10082
|
/**
|
|
10038
10083
|
*
|
|
10039
10084
|
* @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
|
|
@@ -10041,7 +10086,7 @@ export declare class CompanyApi extends BaseAPI {
|
|
|
10041
10086
|
* @throws {RequiredError}
|
|
10042
10087
|
* @memberof CompanyApi
|
|
10043
10088
|
*/
|
|
10044
|
-
getCompanyUsers(requestParameters: CompanyApiGetCompanyUsersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
10089
|
+
getCompanyUsers(requestParameters: CompanyApiGetCompanyUsersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyUsersResponse, any>>;
|
|
10045
10090
|
/**
|
|
10046
10091
|
*
|
|
10047
10092
|
* @param {CompanyApiGetCompanyVersionsRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -3578,10 +3578,10 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3578
3578
|
* @param {*} [options] Override http request option.
|
|
3579
3579
|
* @throws {RequiredError}
|
|
3580
3580
|
*/
|
|
3581
|
-
|
|
3581
|
+
getCompanyCustomers: async (id, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
|
|
3582
3582
|
// verify required parameter 'id' is not null or undefined
|
|
3583
|
-
(0, common_1.assertParamExists)('
|
|
3584
|
-
const localVarPath = `/api/companies/{id}/
|
|
3583
|
+
(0, common_1.assertParamExists)('getCompanyCustomers', 'id', id);
|
|
3584
|
+
const localVarPath = `/api/companies/{id}/customers`
|
|
3585
3585
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3586
3586
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3587
3587
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3631,6 +3631,38 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3631
3631
|
options: localVarRequestOptions,
|
|
3632
3632
|
};
|
|
3633
3633
|
},
|
|
3634
|
+
/**
|
|
3635
|
+
*
|
|
3636
|
+
* @param {string} id
|
|
3637
|
+
* @param {CompanyUserStatusEnum} [status]
|
|
3638
|
+
* @param {*} [options] Override http request option.
|
|
3639
|
+
* @throws {RequiredError}
|
|
3640
|
+
*/
|
|
3641
|
+
getCompanyUsers: async (id, status, options = {}) => {
|
|
3642
|
+
// verify required parameter 'id' is not null or undefined
|
|
3643
|
+
(0, common_1.assertParamExists)('getCompanyUsers', 'id', id);
|
|
3644
|
+
const localVarPath = `/api/companies/{id}/users`
|
|
3645
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3646
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3647
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3648
|
+
let baseOptions;
|
|
3649
|
+
if (configuration) {
|
|
3650
|
+
baseOptions = configuration.baseOptions;
|
|
3651
|
+
}
|
|
3652
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3653
|
+
const localVarHeaderParameter = {};
|
|
3654
|
+
const localVarQueryParameter = {};
|
|
3655
|
+
if (status !== undefined) {
|
|
3656
|
+
localVarQueryParameter['status'] = status;
|
|
3657
|
+
}
|
|
3658
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3659
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3660
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3661
|
+
return {
|
|
3662
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3663
|
+
options: localVarRequestOptions,
|
|
3664
|
+
};
|
|
3665
|
+
},
|
|
3634
3666
|
/**
|
|
3635
3667
|
*
|
|
3636
3668
|
* @param {string} id
|
|
@@ -4041,8 +4073,21 @@ const CompanyApiFp = function (configuration) {
|
|
|
4041
4073
|
* @param {*} [options] Override http request option.
|
|
4042
4074
|
* @throws {RequiredError}
|
|
4043
4075
|
*/
|
|
4044
|
-
async
|
|
4045
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4076
|
+
async getCompanyCustomers(id, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
|
|
4077
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyCustomers(id, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
|
|
4078
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4079
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyCustomers']?.[localVarOperationServerIndex]?.url;
|
|
4080
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4081
|
+
},
|
|
4082
|
+
/**
|
|
4083
|
+
*
|
|
4084
|
+
* @param {string} id
|
|
4085
|
+
* @param {CompanyUserStatusEnum} [status]
|
|
4086
|
+
* @param {*} [options] Override http request option.
|
|
4087
|
+
* @throws {RequiredError}
|
|
4088
|
+
*/
|
|
4089
|
+
async getCompanyUsers(id, status, options) {
|
|
4090
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyUsers(id, status, options);
|
|
4046
4091
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4047
4092
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyUsers']?.[localVarOperationServerIndex]?.url;
|
|
4048
4093
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4242,6 +4287,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
4242
4287
|
getCompanyById(requestParameters, options) {
|
|
4243
4288
|
return localVarFp.getCompanyById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
4244
4289
|
},
|
|
4290
|
+
/**
|
|
4291
|
+
*
|
|
4292
|
+
* @param {CompanyApiGetCompanyCustomersRequest} requestParameters Request parameters.
|
|
4293
|
+
* @param {*} [options] Override http request option.
|
|
4294
|
+
* @throws {RequiredError}
|
|
4295
|
+
*/
|
|
4296
|
+
getCompanyCustomers(requestParameters, options) {
|
|
4297
|
+
return localVarFp.getCompanyCustomers(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
4298
|
+
},
|
|
4245
4299
|
/**
|
|
4246
4300
|
*
|
|
4247
4301
|
* @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
|
|
@@ -4249,7 +4303,7 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
4249
4303
|
* @throws {RequiredError}
|
|
4250
4304
|
*/
|
|
4251
4305
|
getCompanyUsers(requestParameters, options) {
|
|
4252
|
-
return localVarFp.getCompanyUsers(requestParameters.id, requestParameters.
|
|
4306
|
+
return localVarFp.getCompanyUsers(requestParameters.id, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
4253
4307
|
},
|
|
4254
4308
|
/**
|
|
4255
4309
|
*
|
|
@@ -4423,6 +4477,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
4423
4477
|
getCompanyById(requestParameters, options) {
|
|
4424
4478
|
return (0, exports.CompanyApiFp)(this.configuration).getCompanyById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4425
4479
|
}
|
|
4480
|
+
/**
|
|
4481
|
+
*
|
|
4482
|
+
* @param {CompanyApiGetCompanyCustomersRequest} requestParameters Request parameters.
|
|
4483
|
+
* @param {*} [options] Override http request option.
|
|
4484
|
+
* @throws {RequiredError}
|
|
4485
|
+
* @memberof CompanyApi
|
|
4486
|
+
*/
|
|
4487
|
+
getCompanyCustomers(requestParameters, options) {
|
|
4488
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanyCustomers(requestParameters.id, 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));
|
|
4489
|
+
}
|
|
4426
4490
|
/**
|
|
4427
4491
|
*
|
|
4428
4492
|
* @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
|
|
@@ -4431,7 +4495,7 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
4431
4495
|
* @memberof CompanyApi
|
|
4432
4496
|
*/
|
|
4433
4497
|
getCompanyUsers(requestParameters, options) {
|
|
4434
|
-
return (0, exports.CompanyApiFp)(this.configuration).getCompanyUsers(requestParameters.id, requestParameters.
|
|
4498
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanyUsers(requestParameters.id, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
4435
4499
|
}
|
|
4436
4500
|
/**
|
|
4437
4501
|
*
|
package/dist/api/api.mjs
CHANGED
|
@@ -3544,10 +3544,10 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3544
3544
|
* @param {*} [options] Override http request option.
|
|
3545
3545
|
* @throws {RequiredError}
|
|
3546
3546
|
*/
|
|
3547
|
-
|
|
3547
|
+
getCompanyCustomers: async (id, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
|
|
3548
3548
|
// verify required parameter 'id' is not null or undefined
|
|
3549
|
-
assertParamExists('
|
|
3550
|
-
const localVarPath = `/api/companies/{id}/
|
|
3549
|
+
assertParamExists('getCompanyCustomers', 'id', id);
|
|
3550
|
+
const localVarPath = `/api/companies/{id}/customers`
|
|
3551
3551
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3552
3552
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3553
3553
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3597,6 +3597,38 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3597
3597
|
options: localVarRequestOptions,
|
|
3598
3598
|
};
|
|
3599
3599
|
},
|
|
3600
|
+
/**
|
|
3601
|
+
*
|
|
3602
|
+
* @param {string} id
|
|
3603
|
+
* @param {CompanyUserStatusEnum} [status]
|
|
3604
|
+
* @param {*} [options] Override http request option.
|
|
3605
|
+
* @throws {RequiredError}
|
|
3606
|
+
*/
|
|
3607
|
+
getCompanyUsers: async (id, status, options = {}) => {
|
|
3608
|
+
// verify required parameter 'id' is not null or undefined
|
|
3609
|
+
assertParamExists('getCompanyUsers', 'id', id);
|
|
3610
|
+
const localVarPath = `/api/companies/{id}/users`
|
|
3611
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3612
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3613
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3614
|
+
let baseOptions;
|
|
3615
|
+
if (configuration) {
|
|
3616
|
+
baseOptions = configuration.baseOptions;
|
|
3617
|
+
}
|
|
3618
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3619
|
+
const localVarHeaderParameter = {};
|
|
3620
|
+
const localVarQueryParameter = {};
|
|
3621
|
+
if (status !== undefined) {
|
|
3622
|
+
localVarQueryParameter['status'] = status;
|
|
3623
|
+
}
|
|
3624
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3625
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3626
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3627
|
+
return {
|
|
3628
|
+
url: toPathString(localVarUrlObj),
|
|
3629
|
+
options: localVarRequestOptions,
|
|
3630
|
+
};
|
|
3631
|
+
},
|
|
3600
3632
|
/**
|
|
3601
3633
|
*
|
|
3602
3634
|
* @param {string} id
|
|
@@ -4006,8 +4038,21 @@ export const CompanyApiFp = function (configuration) {
|
|
|
4006
4038
|
* @param {*} [options] Override http request option.
|
|
4007
4039
|
* @throws {RequiredError}
|
|
4008
4040
|
*/
|
|
4009
|
-
async
|
|
4010
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4041
|
+
async getCompanyCustomers(id, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
|
|
4042
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyCustomers(id, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
|
|
4043
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4044
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyCustomers']?.[localVarOperationServerIndex]?.url;
|
|
4045
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4046
|
+
},
|
|
4047
|
+
/**
|
|
4048
|
+
*
|
|
4049
|
+
* @param {string} id
|
|
4050
|
+
* @param {CompanyUserStatusEnum} [status]
|
|
4051
|
+
* @param {*} [options] Override http request option.
|
|
4052
|
+
* @throws {RequiredError}
|
|
4053
|
+
*/
|
|
4054
|
+
async getCompanyUsers(id, status, options) {
|
|
4055
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyUsers(id, status, options);
|
|
4011
4056
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4012
4057
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyUsers']?.[localVarOperationServerIndex]?.url;
|
|
4013
4058
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4206,6 +4251,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
4206
4251
|
getCompanyById(requestParameters, options) {
|
|
4207
4252
|
return localVarFp.getCompanyById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
4208
4253
|
},
|
|
4254
|
+
/**
|
|
4255
|
+
*
|
|
4256
|
+
* @param {CompanyApiGetCompanyCustomersRequest} requestParameters Request parameters.
|
|
4257
|
+
* @param {*} [options] Override http request option.
|
|
4258
|
+
* @throws {RequiredError}
|
|
4259
|
+
*/
|
|
4260
|
+
getCompanyCustomers(requestParameters, options) {
|
|
4261
|
+
return localVarFp.getCompanyCustomers(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
4262
|
+
},
|
|
4209
4263
|
/**
|
|
4210
4264
|
*
|
|
4211
4265
|
* @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
|
|
@@ -4213,7 +4267,7 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
4213
4267
|
* @throws {RequiredError}
|
|
4214
4268
|
*/
|
|
4215
4269
|
getCompanyUsers(requestParameters, options) {
|
|
4216
|
-
return localVarFp.getCompanyUsers(requestParameters.id, requestParameters.
|
|
4270
|
+
return localVarFp.getCompanyUsers(requestParameters.id, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
4217
4271
|
},
|
|
4218
4272
|
/**
|
|
4219
4273
|
*
|
|
@@ -4386,6 +4440,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
4386
4440
|
getCompanyById(requestParameters, options) {
|
|
4387
4441
|
return CompanyApiFp(this.configuration).getCompanyById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4388
4442
|
}
|
|
4443
|
+
/**
|
|
4444
|
+
*
|
|
4445
|
+
* @param {CompanyApiGetCompanyCustomersRequest} requestParameters Request parameters.
|
|
4446
|
+
* @param {*} [options] Override http request option.
|
|
4447
|
+
* @throws {RequiredError}
|
|
4448
|
+
* @memberof CompanyApi
|
|
4449
|
+
*/
|
|
4450
|
+
getCompanyCustomers(requestParameters, options) {
|
|
4451
|
+
return CompanyApiFp(this.configuration).getCompanyCustomers(requestParameters.id, 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));
|
|
4452
|
+
}
|
|
4389
4453
|
/**
|
|
4390
4454
|
*
|
|
4391
4455
|
* @param {CompanyApiGetCompanyUsersRequest} requestParameters Request parameters.
|
|
@@ -4394,7 +4458,7 @@ export class CompanyApi extends BaseAPI {
|
|
|
4394
4458
|
* @memberof CompanyApi
|
|
4395
4459
|
*/
|
|
4396
4460
|
getCompanyUsers(requestParameters, options) {
|
|
4397
|
-
return CompanyApiFp(this.configuration).getCompanyUsers(requestParameters.id, requestParameters.
|
|
4461
|
+
return CompanyApiFp(this.configuration).getCompanyUsers(requestParameters.id, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
4398
4462
|
}
|
|
4399
4463
|
/**
|
|
4400
4464
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
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": "6e81ee18dfce3d11777fff8e09d1731deedb8cb8"
|
|
40
40
|
}
|