@gewis/sudosos-client 0.0.0-develop.efea20e → 1.29.0

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.d.ts CHANGED
@@ -2724,6 +2724,37 @@ export interface InactiveAdministrativeCostResponse {
2724
2724
  */
2725
2725
  'transfer': TransferResponse;
2726
2726
  }
2727
+ /**
2728
+ *
2729
+ * @export
2730
+ * @interface InvoiceDriftResponse
2731
+ */
2732
+ export interface InvoiceDriftResponse {
2733
+ /**
2734
+ *
2735
+ * @type {BaseInvoiceResponse}
2736
+ * @memberof InvoiceDriftResponse
2737
+ */
2738
+ 'invoice': BaseInvoiceResponse;
2739
+ /**
2740
+ *
2741
+ * @type {DineroObjectResponse}
2742
+ * @memberof InvoiceDriftResponse
2743
+ */
2744
+ 'actualAmount': DineroObjectResponse;
2745
+ /**
2746
+ *
2747
+ * @type {DineroObjectResponse}
2748
+ * @memberof InvoiceDriftResponse
2749
+ */
2750
+ 'expectedAmount': DineroObjectResponse;
2751
+ /**
2752
+ *
2753
+ * @type {DineroObjectResponse}
2754
+ * @memberof InvoiceDriftResponse
2755
+ */
2756
+ 'deltaAmount': DineroObjectResponse;
2757
+ }
2727
2758
  /**
2728
2759
  *
2729
2760
  * @export
@@ -6497,6 +6528,25 @@ export interface UserWithIndex {
6497
6528
  */
6498
6529
  'index': number;
6499
6530
  }
6531
+ /**
6532
+ *
6533
+ * @export
6534
+ * @interface ValidationResponse
6535
+ */
6536
+ export interface ValidationResponse {
6537
+ /**
6538
+ * Whether the request passed validation.
6539
+ * @type {boolean}
6540
+ * @memberof ValidationResponse
6541
+ */
6542
+ 'valid': boolean;
6543
+ /**
6544
+ * List of validation error messages.
6545
+ * @type {Array<string>}
6546
+ * @memberof ValidationResponse
6547
+ */
6548
+ 'errors': Array<string>;
6549
+ }
6500
6550
  /**
6501
6551
  *
6502
6552
  * @export
@@ -11127,6 +11177,13 @@ export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuratio
11127
11177
  * @throws {RequiredError}
11128
11178
  */
11129
11179
  getEligibleTransactions: (forId: number, fromDate: string, tillDate?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11180
+ /**
11181
+ *
11182
+ * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
11183
+ * @param {*} [options] Override http request option.
11184
+ * @throws {RequiredError}
11185
+ */
11186
+ getInvoiceDrift: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11130
11187
  /**
11131
11188
  *
11132
11189
  * @summary Get an invoice pdf.
@@ -11227,6 +11284,13 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
11227
11284
  * @throws {RequiredError}
11228
11285
  */
11229
11286
  getEligibleTransactions(forId: number, fromDate: string, tillDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionResponse>>;
11287
+ /**
11288
+ *
11289
+ * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
11290
+ * @param {*} [options] Override http request option.
11291
+ * @throws {RequiredError}
11292
+ */
11293
+ getInvoiceDrift(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InvoiceDriftResponse>>>;
11230
11294
  /**
11231
11295
  *
11232
11296
  * @summary Get an invoice pdf.
@@ -11317,6 +11381,13 @@ export declare const InvoicesApiFactory: (configuration?: Configuration, basePat
11317
11381
  * @throws {RequiredError}
11318
11382
  */
11319
11383
  getEligibleTransactions(requestParameters: InvoicesApiGetEligibleTransactionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<TransactionResponse>;
11384
+ /**
11385
+ *
11386
+ * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
11387
+ * @param {*} [options] Override http request option.
11388
+ * @throws {RequiredError}
11389
+ */
11390
+ getInvoiceDrift(options?: RawAxiosRequestConfig): AxiosPromise<Array<InvoiceDriftResponse>>;
11320
11391
  /**
11321
11392
  *
11322
11393
  * @summary Get an invoice pdf.
@@ -11624,6 +11695,14 @@ export declare class InvoicesApi extends BaseAPI {
11624
11695
  * @memberof InvoicesApi
11625
11696
  */
11626
11697
  getEligibleTransactions(requestParameters: InvoicesApiGetEligibleTransactionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TransactionResponse, any, {}>>;
11698
+ /**
11699
+ *
11700
+ * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
11701
+ * @param {*} [options] Override http request option.
11702
+ * @throws {RequiredError}
11703
+ * @memberof InvoicesApi
11704
+ */
11705
+ getInvoiceDrift(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InvoiceDriftResponse[], any, {}>>;
11627
11706
  /**
11628
11707
  *
11629
11708
  * @summary Get an invoice pdf.
package/dist/api.js CHANGED
@@ -5907,6 +5907,34 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
5907
5907
  options: localVarRequestOptions,
5908
5908
  };
5909
5909
  },
5910
+ /**
5911
+ *
5912
+ * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
5913
+ * @param {*} [options] Override http request option.
5914
+ * @throws {RequiredError}
5915
+ */
5916
+ getInvoiceDrift: async (options = {}) => {
5917
+ const localVarPath = `/invoices/drift`;
5918
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5919
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5920
+ let baseOptions;
5921
+ if (configuration) {
5922
+ baseOptions = configuration.baseOptions;
5923
+ }
5924
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5925
+ const localVarHeaderParameter = {};
5926
+ const localVarQueryParameter = {};
5927
+ // authentication JWT required
5928
+ // http bearer authentication required
5929
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5930
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5931
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5932
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5933
+ return {
5934
+ url: (0, common_1.toPathString)(localVarUrlObj),
5935
+ options: localVarRequestOptions,
5936
+ };
5937
+ },
5910
5938
  /**
5911
5939
  *
5912
5940
  * @summary Get an invoice pdf.
@@ -6170,6 +6198,18 @@ const InvoicesApiFp = function (configuration) {
6170
6198
  const operationBasePath = base_1.operationServerMap['InvoicesApi.getEligibleTransactions']?.[index]?.url;
6171
6199
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6172
6200
  },
6201
+ /**
6202
+ *
6203
+ * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
6204
+ * @param {*} [options] Override http request option.
6205
+ * @throws {RequiredError}
6206
+ */
6207
+ async getInvoiceDrift(options) {
6208
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoiceDrift(options);
6209
+ const index = configuration?.serverIndex ?? 0;
6210
+ const operationBasePath = base_1.operationServerMap['InvoicesApi.getInvoiceDrift']?.[index]?.url;
6211
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6212
+ },
6173
6213
  /**
6174
6214
  *
6175
6215
  * @summary Get an invoice pdf.
@@ -6299,6 +6339,15 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
6299
6339
  getEligibleTransactions(requestParameters, options) {
6300
6340
  return localVarFp.getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(axios, basePath));
6301
6341
  },
6342
+ /**
6343
+ *
6344
+ * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
6345
+ * @param {*} [options] Override http request option.
6346
+ * @throws {RequiredError}
6347
+ */
6348
+ getInvoiceDrift(options) {
6349
+ return localVarFp.getInvoiceDrift(options).then((request) => request(axios, basePath));
6350
+ },
6302
6351
  /**
6303
6352
  *
6304
6353
  * @summary Get an invoice pdf.
@@ -6414,6 +6463,16 @@ class InvoicesApi extends base_1.BaseAPI {
6414
6463
  getEligibleTransactions(requestParameters, options) {
6415
6464
  return (0, exports.InvoicesApiFp)(this.configuration).getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(this.axios, this.basePath));
6416
6465
  }
6466
+ /**
6467
+ *
6468
+ * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
6469
+ * @param {*} [options] Override http request option.
6470
+ * @throws {RequiredError}
6471
+ * @memberof InvoicesApi
6472
+ */
6473
+ getInvoiceDrift(options) {
6474
+ return (0, exports.InvoicesApiFp)(this.configuration).getInvoiceDrift(options).then((request) => request(this.axios, this.basePath));
6475
+ }
6417
6476
  /**
6418
6477
  *
6419
6478
  * @summary Get an invoice pdf.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gewis/sudosos-client",
3
- "version": "0.0.0-develop.efea20e",
3
+ "version": "1.29.0",
4
4
  "description": "Auto-generated TypeScript-Axios client for the SudoSOS API",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "main": "dist/index.js",