@infisale-client/api 1.2.86 → 1.2.87

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
@@ -6099,37 +6099,37 @@ export type IPaymentPostRequestPeriodEnum = typeof IPaymentPostRequestPeriodEnum
6099
6099
  /**
6100
6100
  *
6101
6101
  * @export
6102
- * @interface IPaymentResponse
6102
+ * @interface IPaymentsResponse
6103
6103
  */
6104
- export interface IPaymentResponse {
6104
+ export interface IPaymentsResponse {
6105
6105
  /**
6106
6106
  *
6107
6107
  * @type {number}
6108
- * @memberof IPaymentResponse
6108
+ * @memberof IPaymentsResponse
6109
6109
  */
6110
6110
  'totalPages': number;
6111
6111
  /**
6112
6112
  *
6113
6113
  * @type {number}
6114
- * @memberof IPaymentResponse
6114
+ * @memberof IPaymentsResponse
6115
6115
  */
6116
6116
  'page': number;
6117
6117
  /**
6118
6118
  *
6119
6119
  * @type {number}
6120
- * @memberof IPaymentResponse
6120
+ * @memberof IPaymentsResponse
6121
6121
  */
6122
6122
  'itemsPerPage': number;
6123
6123
  /**
6124
6124
  *
6125
6125
  * @type {number}
6126
- * @memberof IPaymentResponse
6126
+ * @memberof IPaymentsResponse
6127
6127
  */
6128
6128
  'total': number;
6129
6129
  /**
6130
6130
  *
6131
6131
  * @type {Array<IPayment>}
6132
- * @memberof IPaymentResponse
6132
+ * @memberof IPaymentsResponse
6133
6133
  */
6134
6134
  'data': Array<IPayment>;
6135
6135
  }
@@ -14041,10 +14041,12 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
14041
14041
  /**
14042
14042
  *
14043
14043
  * @param {string} id
14044
+ * @param {number} [itemsPerPage]
14045
+ * @param {number} [page]
14044
14046
  * @param {*} [options] Override http request option.
14045
14047
  * @throws {RequiredError}
14046
14048
  */
14047
- getCompanyPayments: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14049
+ getCompanyPayments: (id: string, itemsPerPage?: number, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14048
14050
  /**
14049
14051
  *
14050
14052
  * @param {string} id
@@ -14289,10 +14291,12 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
14289
14291
  /**
14290
14292
  *
14291
14293
  * @param {string} id
14294
+ * @param {number} [itemsPerPage]
14295
+ * @param {number} [page]
14292
14296
  * @param {*} [options] Override http request option.
14293
14297
  * @throws {RequiredError}
14294
14298
  */
14295
- getCompanyPayments(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPaymentResponse>>;
14299
+ getCompanyPayments(id: string, itemsPerPage?: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPaymentsResponse>>;
14296
14300
  /**
14297
14301
  *
14298
14302
  * @param {string} id
@@ -14514,7 +14518,7 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
14514
14518
  * @param {*} [options] Override http request option.
14515
14519
  * @throws {RequiredError}
14516
14520
  */
14517
- getCompanyPayments(requestParameters: CompanyApiGetCompanyPaymentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IPaymentResponse>;
14521
+ getCompanyPayments(requestParameters: CompanyApiGetCompanyPaymentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IPaymentsResponse>;
14518
14522
  /**
14519
14523
  *
14520
14524
  * @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
@@ -14970,6 +14974,18 @@ export interface CompanyApiGetCompanyPaymentsRequest {
14970
14974
  * @memberof CompanyApiGetCompanyPayments
14971
14975
  */
14972
14976
  readonly id: string;
14977
+ /**
14978
+ *
14979
+ * @type {number}
14980
+ * @memberof CompanyApiGetCompanyPayments
14981
+ */
14982
+ readonly itemsPerPage?: number;
14983
+ /**
14984
+ *
14985
+ * @type {number}
14986
+ * @memberof CompanyApiGetCompanyPayments
14987
+ */
14988
+ readonly page?: number;
14973
14989
  }
14974
14990
  /**
14975
14991
  * Request parameters for getCompanyProductReviews operation in CompanyApi.
@@ -15352,7 +15368,7 @@ export declare class CompanyApi extends BaseAPI {
15352
15368
  * @throws {RequiredError}
15353
15369
  * @memberof CompanyApi
15354
15370
  */
15355
- getCompanyPayments(requestParameters: CompanyApiGetCompanyPaymentsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IPaymentResponse, any>>;
15371
+ getCompanyPayments(requestParameters: CompanyApiGetCompanyPaymentsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IPaymentsResponse, any>>;
15356
15372
  /**
15357
15373
  *
15358
15374
  * @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -4213,10 +4213,12 @@ const CompanyApiAxiosParamCreator = function (configuration) {
4213
4213
  /**
4214
4214
  *
4215
4215
  * @param {string} id
4216
+ * @param {number} [itemsPerPage]
4217
+ * @param {number} [page]
4216
4218
  * @param {*} [options] Override http request option.
4217
4219
  * @throws {RequiredError}
4218
4220
  */
4219
- getCompanyPayments: async (id, options = {}) => {
4221
+ getCompanyPayments: async (id, itemsPerPage, page, options = {}) => {
4220
4222
  // verify required parameter 'id' is not null or undefined
4221
4223
  (0, common_1.assertParamExists)('getCompanyPayments', 'id', id);
4222
4224
  const localVarPath = `/api/companies/{id}/payments`
@@ -4230,6 +4232,12 @@ const CompanyApiAxiosParamCreator = function (configuration) {
4230
4232
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4231
4233
  const localVarHeaderParameter = {};
4232
4234
  const localVarQueryParameter = {};
4235
+ if (itemsPerPage !== undefined) {
4236
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
4237
+ }
4238
+ if (page !== undefined) {
4239
+ localVarQueryParameter['page'] = page;
4240
+ }
4233
4241
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4234
4242
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4235
4243
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -4881,11 +4889,13 @@ const CompanyApiFp = function (configuration) {
4881
4889
  /**
4882
4890
  *
4883
4891
  * @param {string} id
4892
+ * @param {number} [itemsPerPage]
4893
+ * @param {number} [page]
4884
4894
  * @param {*} [options] Override http request option.
4885
4895
  * @throws {RequiredError}
4886
4896
  */
4887
- async getCompanyPayments(id, options) {
4888
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPayments(id, options);
4897
+ async getCompanyPayments(id, itemsPerPage, page, options) {
4898
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPayments(id, itemsPerPage, page, options);
4889
4899
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4890
4900
  const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyPayments']?.[localVarOperationServerIndex]?.url;
4891
4901
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5211,7 +5221,7 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
5211
5221
  * @throws {RequiredError}
5212
5222
  */
5213
5223
  getCompanyPayments(requestParameters, options) {
5214
- return localVarFp.getCompanyPayments(requestParameters.id, options).then((request) => request(axios, basePath));
5224
+ return localVarFp.getCompanyPayments(requestParameters.id, requestParameters.itemsPerPage, requestParameters.page, options).then((request) => request(axios, basePath));
5215
5225
  },
5216
5226
  /**
5217
5227
  *
@@ -5498,7 +5508,7 @@ class CompanyApi extends base_1.BaseAPI {
5498
5508
  * @memberof CompanyApi
5499
5509
  */
5500
5510
  getCompanyPayments(requestParameters, options) {
5501
- return (0, exports.CompanyApiFp)(this.configuration).getCompanyPayments(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
5511
+ return (0, exports.CompanyApiFp)(this.configuration).getCompanyPayments(requestParameters.id, requestParameters.itemsPerPage, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
5502
5512
  }
5503
5513
  /**
5504
5514
  *
package/dist/api/api.mjs CHANGED
@@ -4177,10 +4177,12 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
4177
4177
  /**
4178
4178
  *
4179
4179
  * @param {string} id
4180
+ * @param {number} [itemsPerPage]
4181
+ * @param {number} [page]
4180
4182
  * @param {*} [options] Override http request option.
4181
4183
  * @throws {RequiredError}
4182
4184
  */
4183
- getCompanyPayments: async (id, options = {}) => {
4185
+ getCompanyPayments: async (id, itemsPerPage, page, options = {}) => {
4184
4186
  // verify required parameter 'id' is not null or undefined
4185
4187
  assertParamExists('getCompanyPayments', 'id', id);
4186
4188
  const localVarPath = `/api/companies/{id}/payments`
@@ -4194,6 +4196,12 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
4194
4196
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4195
4197
  const localVarHeaderParameter = {};
4196
4198
  const localVarQueryParameter = {};
4199
+ if (itemsPerPage !== undefined) {
4200
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
4201
+ }
4202
+ if (page !== undefined) {
4203
+ localVarQueryParameter['page'] = page;
4204
+ }
4197
4205
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4198
4206
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4199
4207
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -4844,11 +4852,13 @@ export const CompanyApiFp = function (configuration) {
4844
4852
  /**
4845
4853
  *
4846
4854
  * @param {string} id
4855
+ * @param {number} [itemsPerPage]
4856
+ * @param {number} [page]
4847
4857
  * @param {*} [options] Override http request option.
4848
4858
  * @throws {RequiredError}
4849
4859
  */
4850
- async getCompanyPayments(id, options) {
4851
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPayments(id, options);
4860
+ async getCompanyPayments(id, itemsPerPage, page, options) {
4861
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPayments(id, itemsPerPage, page, options);
4852
4862
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4853
4863
  const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyPayments']?.[localVarOperationServerIndex]?.url;
4854
4864
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5173,7 +5183,7 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
5173
5183
  * @throws {RequiredError}
5174
5184
  */
5175
5185
  getCompanyPayments(requestParameters, options) {
5176
- return localVarFp.getCompanyPayments(requestParameters.id, options).then((request) => request(axios, basePath));
5186
+ return localVarFp.getCompanyPayments(requestParameters.id, requestParameters.itemsPerPage, requestParameters.page, options).then((request) => request(axios, basePath));
5177
5187
  },
5178
5188
  /**
5179
5189
  *
@@ -5459,7 +5469,7 @@ export class CompanyApi extends BaseAPI {
5459
5469
  * @memberof CompanyApi
5460
5470
  */
5461
5471
  getCompanyPayments(requestParameters, options) {
5462
- return CompanyApiFp(this.configuration).getCompanyPayments(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
5472
+ return CompanyApiFp(this.configuration).getCompanyPayments(requestParameters.id, requestParameters.itemsPerPage, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
5463
5473
  }
5464
5474
  /**
5465
5475
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.2.86",
3
+ "version": "1.2.87",
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": "b4d72ad087dec98f5f24eb46bf5bf319826c318d"
40
+ "gitHead": "d0e994e8a21df80f67ff804ad6ed9bd27cc1821e"
41
41
  }