@gewis/sudosos-client 0.0.0-develop.7e2ceab → 0.0.0-develop.ac42a8c

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
@@ -1683,11 +1683,11 @@ export interface CreateContainerRequest {
1683
1683
  */
1684
1684
  'public': boolean;
1685
1685
  /**
1686
- * Id of the user who will own the container, if undefined it will default to the token ID.
1686
+ * Id of the organ that will own the container
1687
1687
  * @type {number}
1688
1688
  * @memberof CreateContainerRequest
1689
1689
  */
1690
- 'ownerId'?: number;
1690
+ 'ownerId': number;
1691
1691
  }
1692
1692
  /**
1693
1693
  *
@@ -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
@@ -5605,6 +5636,85 @@ export interface TransferResponse {
5605
5636
  */
5606
5637
  'sellerPayout'?: SellerPayoutResponse;
5607
5638
  }
5639
+ /**
5640
+ *
5641
+ * @export
5642
+ * @interface TransferSummaryResponse
5643
+ */
5644
+ export interface TransferSummaryResponse {
5645
+ /**
5646
+ *
5647
+ * @type {TransferAggregateResponse}
5648
+ * @memberof TransferSummaryResponse
5649
+ */
5650
+ 'total': TransferAggregateResponse;
5651
+ /**
5652
+ *
5653
+ * @type {TransferAggregateResponse}
5654
+ * @memberof TransferSummaryResponse
5655
+ */
5656
+ 'deposits': TransferAggregateResponse;
5657
+ /**
5658
+ *
5659
+ * @type {TransferAggregateResponse}
5660
+ * @memberof TransferSummaryResponse
5661
+ */
5662
+ 'payoutRequests': TransferAggregateResponse;
5663
+ /**
5664
+ *
5665
+ * @type {TransferAggregateResponse}
5666
+ * @memberof TransferSummaryResponse
5667
+ */
5668
+ 'sellerPayouts': TransferAggregateResponse;
5669
+ /**
5670
+ *
5671
+ * @type {TransferAggregateResponse}
5672
+ * @memberof TransferSummaryResponse
5673
+ */
5674
+ 'invoices': TransferAggregateResponse;
5675
+ /**
5676
+ *
5677
+ * @type {TransferAggregateResponse}
5678
+ * @memberof TransferSummaryResponse
5679
+ */
5680
+ 'creditInvoices': TransferAggregateResponse;
5681
+ /**
5682
+ *
5683
+ * @type {TransferAggregateResponse}
5684
+ * @memberof TransferSummaryResponse
5685
+ */
5686
+ 'fines': TransferAggregateResponse;
5687
+ /**
5688
+ *
5689
+ * @type {TransferAggregateResponse}
5690
+ * @memberof TransferSummaryResponse
5691
+ */
5692
+ 'waivedFines': TransferAggregateResponse;
5693
+ /**
5694
+ *
5695
+ * @type {TransferAggregateResponse}
5696
+ * @memberof TransferSummaryResponse
5697
+ */
5698
+ 'writeOffs': TransferAggregateResponse;
5699
+ /**
5700
+ *
5701
+ * @type {TransferAggregateResponse}
5702
+ * @memberof TransferSummaryResponse
5703
+ */
5704
+ 'inactiveAdministrativeCosts': TransferAggregateResponse;
5705
+ /**
5706
+ *
5707
+ * @type {TransferAggregateResponse}
5708
+ * @memberof TransferSummaryResponse
5709
+ */
5710
+ 'manualCreations': TransferAggregateResponse;
5711
+ /**
5712
+ *
5713
+ * @type {TransferAggregateResponse}
5714
+ * @memberof TransferSummaryResponse
5715
+ */
5716
+ 'manualDeletions': TransferAggregateResponse;
5717
+ }
5608
5718
  /**
5609
5719
  *
5610
5720
  * @export
@@ -11031,12 +11141,13 @@ export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuratio
11031
11141
  * @param {boolean} [returnEntries] Boolean if invoice entries should be returned
11032
11142
  * @param {string} [fromDate] Start date for selected invoices (inclusive)
11033
11143
  * @param {string} [tillDate] End date for selected invoices (exclusive)
11144
+ * @param {string} [description] Filter invoices by description (partial match)
11034
11145
  * @param {number} [take] How many entries the endpoint should return
11035
11146
  * @param {number} [skip] How many entries should be skipped (for pagination)
11036
11147
  * @param {*} [options] Override http request option.
11037
11148
  * @throws {RequiredError}
11038
11149
  */
11039
- getAllInvoices: (toId?: number, invoiceId?: number, currentState?: GetAllInvoicesCurrentStateEnum, returnEntries?: boolean, fromDate?: string, tillDate?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11150
+ getAllInvoices: (toId?: number, invoiceId?: number, currentState?: GetAllInvoicesCurrentStateEnum, returnEntries?: boolean, fromDate?: string, tillDate?: string, description?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11040
11151
  /**
11041
11152
  *
11042
11153
  * @summary Get eligible transactions for invoice creation.
@@ -11047,6 +11158,13 @@ export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuratio
11047
11158
  * @throws {RequiredError}
11048
11159
  */
11049
11160
  getEligibleTransactions: (forId: number, fromDate: string, tillDate?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11161
+ /**
11162
+ *
11163
+ * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
11164
+ * @param {*} [options] Override http request option.
11165
+ * @throws {RequiredError}
11166
+ */
11167
+ getInvoiceDrift: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11050
11168
  /**
11051
11169
  *
11052
11170
  * @summary Get an invoice pdf.
@@ -11130,12 +11248,13 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
11130
11248
  * @param {boolean} [returnEntries] Boolean if invoice entries should be returned
11131
11249
  * @param {string} [fromDate] Start date for selected invoices (inclusive)
11132
11250
  * @param {string} [tillDate] End date for selected invoices (exclusive)
11251
+ * @param {string} [description] Filter invoices by description (partial match)
11133
11252
  * @param {number} [take] How many entries the endpoint should return
11134
11253
  * @param {number} [skip] How many entries should be skipped (for pagination)
11135
11254
  * @param {*} [options] Override http request option.
11136
11255
  * @throws {RequiredError}
11137
11256
  */
11138
- getAllInvoices(toId?: number, invoiceId?: number, currentState?: GetAllInvoicesCurrentStateEnum, returnEntries?: boolean, fromDate?: string, tillDate?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedInvoiceResponse>>;
11257
+ getAllInvoices(toId?: number, invoiceId?: number, currentState?: GetAllInvoicesCurrentStateEnum, returnEntries?: boolean, fromDate?: string, tillDate?: string, description?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedInvoiceResponse>>;
11139
11258
  /**
11140
11259
  *
11141
11260
  * @summary Get eligible transactions for invoice creation.
@@ -11146,6 +11265,13 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
11146
11265
  * @throws {RequiredError}
11147
11266
  */
11148
11267
  getEligibleTransactions(forId: number, fromDate: string, tillDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionResponse>>;
11268
+ /**
11269
+ *
11270
+ * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
11271
+ * @param {*} [options] Override http request option.
11272
+ * @throws {RequiredError}
11273
+ */
11274
+ getInvoiceDrift(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InvoiceDriftResponse>>>;
11149
11275
  /**
11150
11276
  *
11151
11277
  * @summary Get an invoice pdf.
@@ -11236,6 +11362,13 @@ export declare const InvoicesApiFactory: (configuration?: Configuration, basePat
11236
11362
  * @throws {RequiredError}
11237
11363
  */
11238
11364
  getEligibleTransactions(requestParameters: InvoicesApiGetEligibleTransactionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<TransactionResponse>;
11365
+ /**
11366
+ *
11367
+ * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
11368
+ * @param {*} [options] Override http request option.
11369
+ * @throws {RequiredError}
11370
+ */
11371
+ getInvoiceDrift(options?: RawAxiosRequestConfig): AxiosPromise<Array<InvoiceDriftResponse>>;
11239
11372
  /**
11240
11373
  *
11241
11374
  * @summary Get an invoice pdf.
@@ -11358,6 +11491,12 @@ export interface InvoicesApiGetAllInvoicesRequest {
11358
11491
  * @memberof InvoicesApiGetAllInvoices
11359
11492
  */
11360
11493
  readonly tillDate?: string;
11494
+ /**
11495
+ * Filter invoices by description (partial match)
11496
+ * @type {string}
11497
+ * @memberof InvoicesApiGetAllInvoices
11498
+ */
11499
+ readonly description?: string;
11361
11500
  /**
11362
11501
  * How many entries the endpoint should return
11363
11502
  * @type {number}
@@ -11537,6 +11676,14 @@ export declare class InvoicesApi extends BaseAPI {
11537
11676
  * @memberof InvoicesApi
11538
11677
  */
11539
11678
  getEligibleTransactions(requestParameters: InvoicesApiGetEligibleTransactionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TransactionResponse, any, {}>>;
11679
+ /**
11680
+ *
11681
+ * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
11682
+ * @param {*} [options] Override http request option.
11683
+ * @throws {RequiredError}
11684
+ * @memberof InvoicesApi
11685
+ */
11686
+ getInvoiceDrift(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InvoiceDriftResponse[], any, {}>>;
11540
11687
  /**
11541
11688
  *
11542
11689
  * @summary Get an invoice pdf.
@@ -14980,7 +15127,7 @@ export declare const TransfersApiAxiosParamCreator: (configuration?: Configurati
14980
15127
  * @param {string} [tillDate] End date for selected transfers (exclusive)
14981
15128
  * @param {number} [fromId] Filter transfers from this user ID
14982
15129
  * @param {number} [toId] Filter transfers to this user ID
14983
- * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, invoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
15130
+ * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
14984
15131
  * @param {*} [options] Override http request option.
14985
15132
  * @throws {RequiredError}
14986
15133
  */
@@ -14993,6 +15140,17 @@ export declare const TransfersApiAxiosParamCreator: (configuration?: Configurati
14993
15140
  * @throws {RequiredError}
14994
15141
  */
14995
15142
  getTransferPdf: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15143
+ /**
15144
+ *
15145
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
15146
+ * @param {string} [fromDate] Start date for selected transfers (inclusive)
15147
+ * @param {string} [tillDate] End date for selected transfers (exclusive)
15148
+ * @param {number} [fromId] Filter transfers from this user ID
15149
+ * @param {number} [toId] Filter transfers to this user ID
15150
+ * @param {*} [options] Override http request option.
15151
+ * @throws {RequiredError}
15152
+ */
15153
+ getTransferSummary: (fromDate?: string, tillDate?: string, fromId?: number, toId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14996
15154
  };
14997
15155
  /**
14998
15156
  * TransfersApi - functional programming interface
@@ -15041,7 +15199,7 @@ export declare const TransfersApiFp: (configuration?: Configuration) => {
15041
15199
  * @param {string} [tillDate] End date for selected transfers (exclusive)
15042
15200
  * @param {number} [fromId] Filter transfers from this user ID
15043
15201
  * @param {number} [toId] Filter transfers to this user ID
15044
- * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, invoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
15202
+ * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
15045
15203
  * @param {*} [options] Override http request option.
15046
15204
  * @throws {RequiredError}
15047
15205
  */
@@ -15054,6 +15212,17 @@ export declare const TransfersApiFp: (configuration?: Configuration) => {
15054
15212
  * @throws {RequiredError}
15055
15213
  */
15056
15214
  getTransferPdf(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
15215
+ /**
15216
+ *
15217
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
15218
+ * @param {string} [fromDate] Start date for selected transfers (inclusive)
15219
+ * @param {string} [tillDate] End date for selected transfers (exclusive)
15220
+ * @param {number} [fromId] Filter transfers from this user ID
15221
+ * @param {number} [toId] Filter transfers to this user ID
15222
+ * @param {*} [options] Override http request option.
15223
+ * @throws {RequiredError}
15224
+ */
15225
+ getTransferSummary(fromDate?: string, tillDate?: string, fromId?: number, toId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransferSummaryResponse>>;
15057
15226
  };
15058
15227
  /**
15059
15228
  * TransfersApi - factory interface
@@ -15108,6 +15277,14 @@ export declare const TransfersApiFactory: (configuration?: Configuration, basePa
15108
15277
  * @throws {RequiredError}
15109
15278
  */
15110
15279
  getTransferPdf(requestParameters: TransfersApiGetTransferPdfRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
15280
+ /**
15281
+ *
15282
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
15283
+ * @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
15284
+ * @param {*} [options] Override http request option.
15285
+ * @throws {RequiredError}
15286
+ */
15287
+ getTransferSummary(requestParameters?: TransfersApiGetTransferSummaryRequest, options?: RawAxiosRequestConfig): AxiosPromise<TransferSummaryResponse>;
15111
15288
  };
15112
15289
  /**
15113
15290
  * Request parameters for createTransfer operation in TransfersApi.
@@ -15210,7 +15387,7 @@ export interface TransfersApiGetTransferAggregateRequest {
15210
15387
  */
15211
15388
  readonly toId?: number;
15212
15389
  /**
15213
- * Restrict to a specific transfer category: deposit, payoutRequest, invoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
15390
+ * Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
15214
15391
  * @type {string}
15215
15392
  * @memberof TransfersApiGetTransferAggregate
15216
15393
  */
@@ -15229,6 +15406,37 @@ export interface TransfersApiGetTransferPdfRequest {
15229
15406
  */
15230
15407
  readonly id: number;
15231
15408
  }
15409
+ /**
15410
+ * Request parameters for getTransferSummary operation in TransfersApi.
15411
+ * @export
15412
+ * @interface TransfersApiGetTransferSummaryRequest
15413
+ */
15414
+ export interface TransfersApiGetTransferSummaryRequest {
15415
+ /**
15416
+ * Start date for selected transfers (inclusive)
15417
+ * @type {string}
15418
+ * @memberof TransfersApiGetTransferSummary
15419
+ */
15420
+ readonly fromDate?: string;
15421
+ /**
15422
+ * End date for selected transfers (exclusive)
15423
+ * @type {string}
15424
+ * @memberof TransfersApiGetTransferSummary
15425
+ */
15426
+ readonly tillDate?: string;
15427
+ /**
15428
+ * Filter transfers from this user ID
15429
+ * @type {number}
15430
+ * @memberof TransfersApiGetTransferSummary
15431
+ */
15432
+ readonly fromId?: number;
15433
+ /**
15434
+ * Filter transfers to this user ID
15435
+ * @type {number}
15436
+ * @memberof TransfersApiGetTransferSummary
15437
+ */
15438
+ readonly toId?: number;
15439
+ }
15232
15440
  /**
15233
15441
  * TransfersApi - object-oriented interface
15234
15442
  * @export
@@ -15290,6 +15498,15 @@ export declare class TransfersApi extends BaseAPI {
15290
15498
  * @memberof TransfersApi
15291
15499
  */
15292
15500
  getTransferPdf(requestParameters: TransfersApiGetTransferPdfRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
15501
+ /**
15502
+ *
15503
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
15504
+ * @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
15505
+ * @param {*} [options] Override http request option.
15506
+ * @throws {RequiredError}
15507
+ * @memberof TransfersApi
15508
+ */
15509
+ getTransferSummary(requestParameters?: TransfersApiGetTransferSummaryRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TransferSummaryResponse, any, {}>>;
15293
15510
  }
15294
15511
  /**
15295
15512
  * UserNotificationPreferencesApi - axios parameter creator
package/dist/api.js CHANGED
@@ -5808,12 +5808,13 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
5808
5808
  * @param {boolean} [returnEntries] Boolean if invoice entries should be returned
5809
5809
  * @param {string} [fromDate] Start date for selected invoices (inclusive)
5810
5810
  * @param {string} [tillDate] End date for selected invoices (exclusive)
5811
+ * @param {string} [description] Filter invoices by description (partial match)
5811
5812
  * @param {number} [take] How many entries the endpoint should return
5812
5813
  * @param {number} [skip] How many entries should be skipped (for pagination)
5813
5814
  * @param {*} [options] Override http request option.
5814
5815
  * @throws {RequiredError}
5815
5816
  */
5816
- getAllInvoices: async (toId, invoiceId, currentState, returnEntries, fromDate, tillDate, take, skip, options = {}) => {
5817
+ getAllInvoices: async (toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options = {}) => {
5817
5818
  const localVarPath = `/invoices`;
5818
5819
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5819
5820
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -5845,6 +5846,9 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
5845
5846
  if (tillDate !== undefined) {
5846
5847
  localVarQueryParameter['tillDate'] = tillDate;
5847
5848
  }
5849
+ if (description !== undefined) {
5850
+ localVarQueryParameter['description'] = description;
5851
+ }
5848
5852
  if (take !== undefined) {
5849
5853
  localVarQueryParameter['take'] = take;
5850
5854
  }
@@ -5903,6 +5907,34 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
5903
5907
  options: localVarRequestOptions,
5904
5908
  };
5905
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
+ },
5906
5938
  /**
5907
5939
  *
5908
5940
  * @summary Get an invoice pdf.
@@ -6139,13 +6171,14 @@ const InvoicesApiFp = function (configuration) {
6139
6171
  * @param {boolean} [returnEntries] Boolean if invoice entries should be returned
6140
6172
  * @param {string} [fromDate] Start date for selected invoices (inclusive)
6141
6173
  * @param {string} [tillDate] End date for selected invoices (exclusive)
6174
+ * @param {string} [description] Filter invoices by description (partial match)
6142
6175
  * @param {number} [take] How many entries the endpoint should return
6143
6176
  * @param {number} [skip] How many entries should be skipped (for pagination)
6144
6177
  * @param {*} [options] Override http request option.
6145
6178
  * @throws {RequiredError}
6146
6179
  */
6147
- async getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, take, skip, options) {
6148
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, take, skip, options);
6180
+ async getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options) {
6181
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options);
6149
6182
  const index = configuration?.serverIndex ?? 0;
6150
6183
  const operationBasePath = base_1.operationServerMap['InvoicesApi.getAllInvoices']?.[index]?.url;
6151
6184
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -6165,6 +6198,18 @@ const InvoicesApiFp = function (configuration) {
6165
6198
  const operationBasePath = base_1.operationServerMap['InvoicesApi.getEligibleTransactions']?.[index]?.url;
6166
6199
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6167
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
+ },
6168
6213
  /**
6169
6214
  *
6170
6215
  * @summary Get an invoice pdf.
@@ -6282,7 +6327,7 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
6282
6327
  * @throws {RequiredError}
6283
6328
  */
6284
6329
  getAllInvoices(requestParameters = {}, options) {
6285
- return localVarFp.getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
6330
+ return localVarFp.getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.description, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
6286
6331
  },
6287
6332
  /**
6288
6333
  *
@@ -6294,6 +6339,15 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
6294
6339
  getEligibleTransactions(requestParameters, options) {
6295
6340
  return localVarFp.getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(axios, basePath));
6296
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
+ },
6297
6351
  /**
6298
6352
  *
6299
6353
  * @summary Get an invoice pdf.
@@ -6396,7 +6450,7 @@ class InvoicesApi extends base_1.BaseAPI {
6396
6450
  * @memberof InvoicesApi
6397
6451
  */
6398
6452
  getAllInvoices(requestParameters = {}, options) {
6399
- return (0, exports.InvoicesApiFp)(this.configuration).getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
6453
+ return (0, exports.InvoicesApiFp)(this.configuration).getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.description, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
6400
6454
  }
6401
6455
  /**
6402
6456
  *
@@ -6409,6 +6463,16 @@ class InvoicesApi extends base_1.BaseAPI {
6409
6463
  getEligibleTransactions(requestParameters, options) {
6410
6464
  return (0, exports.InvoicesApiFp)(this.configuration).getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(this.axios, this.basePath));
6411
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
+ }
6412
6476
  /**
6413
6477
  *
6414
6478
  * @summary Get an invoice pdf.
@@ -11260,7 +11324,7 @@ const TransfersApiAxiosParamCreator = function (configuration) {
11260
11324
  * @param {string} [tillDate] End date for selected transfers (exclusive)
11261
11325
  * @param {number} [fromId] Filter transfers from this user ID
11262
11326
  * @param {number} [toId] Filter transfers to this user ID
11263
- * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, invoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
11327
+ * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
11264
11328
  * @param {*} [options] Override http request option.
11265
11329
  * @throws {RequiredError}
11266
11330
  */
@@ -11333,6 +11397,50 @@ const TransfersApiAxiosParamCreator = function (configuration) {
11333
11397
  options: localVarRequestOptions,
11334
11398
  };
11335
11399
  },
11400
+ /**
11401
+ *
11402
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
11403
+ * @param {string} [fromDate] Start date for selected transfers (inclusive)
11404
+ * @param {string} [tillDate] End date for selected transfers (exclusive)
11405
+ * @param {number} [fromId] Filter transfers from this user ID
11406
+ * @param {number} [toId] Filter transfers to this user ID
11407
+ * @param {*} [options] Override http request option.
11408
+ * @throws {RequiredError}
11409
+ */
11410
+ getTransferSummary: async (fromDate, tillDate, fromId, toId, options = {}) => {
11411
+ const localVarPath = `/transfers/summary`;
11412
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11413
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11414
+ let baseOptions;
11415
+ if (configuration) {
11416
+ baseOptions = configuration.baseOptions;
11417
+ }
11418
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
11419
+ const localVarHeaderParameter = {};
11420
+ const localVarQueryParameter = {};
11421
+ // authentication JWT required
11422
+ // http bearer authentication required
11423
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
11424
+ if (fromDate !== undefined) {
11425
+ localVarQueryParameter['fromDate'] = fromDate;
11426
+ }
11427
+ if (tillDate !== undefined) {
11428
+ localVarQueryParameter['tillDate'] = tillDate;
11429
+ }
11430
+ if (fromId !== undefined) {
11431
+ localVarQueryParameter['fromId'] = fromId;
11432
+ }
11433
+ if (toId !== undefined) {
11434
+ localVarQueryParameter['toId'] = toId;
11435
+ }
11436
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11437
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11438
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
11439
+ return {
11440
+ url: (0, common_1.toPathString)(localVarUrlObj),
11441
+ options: localVarRequestOptions,
11442
+ };
11443
+ },
11336
11444
  };
11337
11445
  };
11338
11446
  exports.TransfersApiAxiosParamCreator = TransfersApiAxiosParamCreator;
@@ -11405,7 +11513,7 @@ const TransfersApiFp = function (configuration) {
11405
11513
  * @param {string} [tillDate] End date for selected transfers (exclusive)
11406
11514
  * @param {number} [fromId] Filter transfers from this user ID
11407
11515
  * @param {number} [toId] Filter transfers to this user ID
11408
- * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, invoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
11516
+ * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
11409
11517
  * @param {*} [options] Override http request option.
11410
11518
  * @throws {RequiredError}
11411
11519
  */
@@ -11428,6 +11536,22 @@ const TransfersApiFp = function (configuration) {
11428
11536
  const operationBasePath = base_1.operationServerMap['TransfersApi.getTransferPdf']?.[index]?.url;
11429
11537
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
11430
11538
  },
11539
+ /**
11540
+ *
11541
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
11542
+ * @param {string} [fromDate] Start date for selected transfers (inclusive)
11543
+ * @param {string} [tillDate] End date for selected transfers (exclusive)
11544
+ * @param {number} [fromId] Filter transfers from this user ID
11545
+ * @param {number} [toId] Filter transfers to this user ID
11546
+ * @param {*} [options] Override http request option.
11547
+ * @throws {RequiredError}
11548
+ */
11549
+ async getTransferSummary(fromDate, tillDate, fromId, toId, options) {
11550
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTransferSummary(fromDate, tillDate, fromId, toId, options);
11551
+ const index = configuration?.serverIndex ?? 0;
11552
+ const operationBasePath = base_1.operationServerMap['TransfersApi.getTransferSummary']?.[index]?.url;
11553
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
11554
+ },
11431
11555
  };
11432
11556
  };
11433
11557
  exports.TransfersApiFp = TransfersApiFp;
@@ -11498,6 +11622,16 @@ const TransfersApiFactory = function (configuration, basePath, axios) {
11498
11622
  getTransferPdf(requestParameters, options) {
11499
11623
  return localVarFp.getTransferPdf(requestParameters.id, options).then((request) => request(axios, basePath));
11500
11624
  },
11625
+ /**
11626
+ *
11627
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
11628
+ * @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
11629
+ * @param {*} [options] Override http request option.
11630
+ * @throws {RequiredError}
11631
+ */
11632
+ getTransferSummary(requestParameters = {}, options) {
11633
+ return localVarFp.getTransferSummary(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, options).then((request) => request(axios, basePath));
11634
+ },
11501
11635
  };
11502
11636
  };
11503
11637
  exports.TransfersApiFactory = TransfersApiFactory;
@@ -11574,6 +11708,17 @@ class TransfersApi extends base_1.BaseAPI {
11574
11708
  getTransferPdf(requestParameters, options) {
11575
11709
  return (0, exports.TransfersApiFp)(this.configuration).getTransferPdf(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
11576
11710
  }
11711
+ /**
11712
+ *
11713
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
11714
+ * @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
11715
+ * @param {*} [options] Override http request option.
11716
+ * @throws {RequiredError}
11717
+ * @memberof TransfersApi
11718
+ */
11719
+ getTransferSummary(requestParameters = {}, options) {
11720
+ return (0, exports.TransfersApiFp)(this.configuration).getTransferSummary(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, options).then((request) => request(this.axios, this.basePath));
11721
+ }
11577
11722
  }
11578
11723
  exports.TransfersApi = TransfersApi;
11579
11724
  /**
package/dist/common.d.ts CHANGED
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gewis/sudosos-client",
3
- "version": "0.0.0-develop.7e2ceab",
3
+ "version": "0.0.0-develop.ac42a8c",
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",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@openapitools/openapi-generator-cli": "^2.7.0",
23
- "typescript": "~5.5.3"
23
+ "typescript": "~5.9.3"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",