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

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
  *
@@ -5605,6 +5605,85 @@ export interface TransferResponse {
5605
5605
  */
5606
5606
  'sellerPayout'?: SellerPayoutResponse;
5607
5607
  }
5608
+ /**
5609
+ *
5610
+ * @export
5611
+ * @interface TransferSummaryResponse
5612
+ */
5613
+ export interface TransferSummaryResponse {
5614
+ /**
5615
+ *
5616
+ * @type {TransferAggregateResponse}
5617
+ * @memberof TransferSummaryResponse
5618
+ */
5619
+ 'total': TransferAggregateResponse;
5620
+ /**
5621
+ *
5622
+ * @type {TransferAggregateResponse}
5623
+ * @memberof TransferSummaryResponse
5624
+ */
5625
+ 'deposits': TransferAggregateResponse;
5626
+ /**
5627
+ *
5628
+ * @type {TransferAggregateResponse}
5629
+ * @memberof TransferSummaryResponse
5630
+ */
5631
+ 'payoutRequests': TransferAggregateResponse;
5632
+ /**
5633
+ *
5634
+ * @type {TransferAggregateResponse}
5635
+ * @memberof TransferSummaryResponse
5636
+ */
5637
+ 'sellerPayouts': TransferAggregateResponse;
5638
+ /**
5639
+ *
5640
+ * @type {TransferAggregateResponse}
5641
+ * @memberof TransferSummaryResponse
5642
+ */
5643
+ 'invoices': TransferAggregateResponse;
5644
+ /**
5645
+ *
5646
+ * @type {TransferAggregateResponse}
5647
+ * @memberof TransferSummaryResponse
5648
+ */
5649
+ 'creditInvoices': TransferAggregateResponse;
5650
+ /**
5651
+ *
5652
+ * @type {TransferAggregateResponse}
5653
+ * @memberof TransferSummaryResponse
5654
+ */
5655
+ 'fines': TransferAggregateResponse;
5656
+ /**
5657
+ *
5658
+ * @type {TransferAggregateResponse}
5659
+ * @memberof TransferSummaryResponse
5660
+ */
5661
+ 'waivedFines': TransferAggregateResponse;
5662
+ /**
5663
+ *
5664
+ * @type {TransferAggregateResponse}
5665
+ * @memberof TransferSummaryResponse
5666
+ */
5667
+ 'writeOffs': TransferAggregateResponse;
5668
+ /**
5669
+ *
5670
+ * @type {TransferAggregateResponse}
5671
+ * @memberof TransferSummaryResponse
5672
+ */
5673
+ 'inactiveAdministrativeCosts': TransferAggregateResponse;
5674
+ /**
5675
+ *
5676
+ * @type {TransferAggregateResponse}
5677
+ * @memberof TransferSummaryResponse
5678
+ */
5679
+ 'manualCreations': TransferAggregateResponse;
5680
+ /**
5681
+ *
5682
+ * @type {TransferAggregateResponse}
5683
+ * @memberof TransferSummaryResponse
5684
+ */
5685
+ 'manualDeletions': TransferAggregateResponse;
5686
+ }
5608
5687
  /**
5609
5688
  *
5610
5689
  * @export
@@ -14988,7 +15067,7 @@ export declare const TransfersApiAxiosParamCreator: (configuration?: Configurati
14988
15067
  * @param {string} [tillDate] End date for selected transfers (exclusive)
14989
15068
  * @param {number} [fromId] Filter transfers from this user ID
14990
15069
  * @param {number} [toId] Filter transfers to this user ID
14991
- * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, invoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
15070
+ * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
14992
15071
  * @param {*} [options] Override http request option.
14993
15072
  * @throws {RequiredError}
14994
15073
  */
@@ -15001,6 +15080,17 @@ export declare const TransfersApiAxiosParamCreator: (configuration?: Configurati
15001
15080
  * @throws {RequiredError}
15002
15081
  */
15003
15082
  getTransferPdf: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15083
+ /**
15084
+ *
15085
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
15086
+ * @param {string} [fromDate] Start date for selected transfers (inclusive)
15087
+ * @param {string} [tillDate] End date for selected transfers (exclusive)
15088
+ * @param {number} [fromId] Filter transfers from this user ID
15089
+ * @param {number} [toId] Filter transfers to this user ID
15090
+ * @param {*} [options] Override http request option.
15091
+ * @throws {RequiredError}
15092
+ */
15093
+ getTransferSummary: (fromDate?: string, tillDate?: string, fromId?: number, toId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15004
15094
  };
15005
15095
  /**
15006
15096
  * TransfersApi - functional programming interface
@@ -15049,7 +15139,7 @@ export declare const TransfersApiFp: (configuration?: Configuration) => {
15049
15139
  * @param {string} [tillDate] End date for selected transfers (exclusive)
15050
15140
  * @param {number} [fromId] Filter transfers from this user ID
15051
15141
  * @param {number} [toId] Filter transfers to this user ID
15052
- * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, invoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
15142
+ * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
15053
15143
  * @param {*} [options] Override http request option.
15054
15144
  * @throws {RequiredError}
15055
15145
  */
@@ -15062,6 +15152,17 @@ export declare const TransfersApiFp: (configuration?: Configuration) => {
15062
15152
  * @throws {RequiredError}
15063
15153
  */
15064
15154
  getTransferPdf(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
15155
+ /**
15156
+ *
15157
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
15158
+ * @param {string} [fromDate] Start date for selected transfers (inclusive)
15159
+ * @param {string} [tillDate] End date for selected transfers (exclusive)
15160
+ * @param {number} [fromId] Filter transfers from this user ID
15161
+ * @param {number} [toId] Filter transfers to this user ID
15162
+ * @param {*} [options] Override http request option.
15163
+ * @throws {RequiredError}
15164
+ */
15165
+ getTransferSummary(fromDate?: string, tillDate?: string, fromId?: number, toId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransferSummaryResponse>>;
15065
15166
  };
15066
15167
  /**
15067
15168
  * TransfersApi - factory interface
@@ -15116,6 +15217,14 @@ export declare const TransfersApiFactory: (configuration?: Configuration, basePa
15116
15217
  * @throws {RequiredError}
15117
15218
  */
15118
15219
  getTransferPdf(requestParameters: TransfersApiGetTransferPdfRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
15220
+ /**
15221
+ *
15222
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
15223
+ * @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
15224
+ * @param {*} [options] Override http request option.
15225
+ * @throws {RequiredError}
15226
+ */
15227
+ getTransferSummary(requestParameters?: TransfersApiGetTransferSummaryRequest, options?: RawAxiosRequestConfig): AxiosPromise<TransferSummaryResponse>;
15119
15228
  };
15120
15229
  /**
15121
15230
  * Request parameters for createTransfer operation in TransfersApi.
@@ -15218,7 +15327,7 @@ export interface TransfersApiGetTransferAggregateRequest {
15218
15327
  */
15219
15328
  readonly toId?: number;
15220
15329
  /**
15221
- * Restrict to a specific transfer category: deposit, payoutRequest, invoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
15330
+ * Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
15222
15331
  * @type {string}
15223
15332
  * @memberof TransfersApiGetTransferAggregate
15224
15333
  */
@@ -15237,6 +15346,37 @@ export interface TransfersApiGetTransferPdfRequest {
15237
15346
  */
15238
15347
  readonly id: number;
15239
15348
  }
15349
+ /**
15350
+ * Request parameters for getTransferSummary operation in TransfersApi.
15351
+ * @export
15352
+ * @interface TransfersApiGetTransferSummaryRequest
15353
+ */
15354
+ export interface TransfersApiGetTransferSummaryRequest {
15355
+ /**
15356
+ * Start date for selected transfers (inclusive)
15357
+ * @type {string}
15358
+ * @memberof TransfersApiGetTransferSummary
15359
+ */
15360
+ readonly fromDate?: string;
15361
+ /**
15362
+ * End date for selected transfers (exclusive)
15363
+ * @type {string}
15364
+ * @memberof TransfersApiGetTransferSummary
15365
+ */
15366
+ readonly tillDate?: string;
15367
+ /**
15368
+ * Filter transfers from this user ID
15369
+ * @type {number}
15370
+ * @memberof TransfersApiGetTransferSummary
15371
+ */
15372
+ readonly fromId?: number;
15373
+ /**
15374
+ * Filter transfers to this user ID
15375
+ * @type {number}
15376
+ * @memberof TransfersApiGetTransferSummary
15377
+ */
15378
+ readonly toId?: number;
15379
+ }
15240
15380
  /**
15241
15381
  * TransfersApi - object-oriented interface
15242
15382
  * @export
@@ -15298,6 +15438,15 @@ export declare class TransfersApi extends BaseAPI {
15298
15438
  * @memberof TransfersApi
15299
15439
  */
15300
15440
  getTransferPdf(requestParameters: TransfersApiGetTransferPdfRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
15441
+ /**
15442
+ *
15443
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
15444
+ * @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
15445
+ * @param {*} [options] Override http request option.
15446
+ * @throws {RequiredError}
15447
+ * @memberof TransfersApi
15448
+ */
15449
+ getTransferSummary(requestParameters?: TransfersApiGetTransferSummaryRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TransferSummaryResponse, any, {}>>;
15301
15450
  }
15302
15451
  /**
15303
15452
  * UserNotificationPreferencesApi - axios parameter creator
package/dist/api.js CHANGED
@@ -11265,7 +11265,7 @@ const TransfersApiAxiosParamCreator = function (configuration) {
11265
11265
  * @param {string} [tillDate] End date for selected transfers (exclusive)
11266
11266
  * @param {number} [fromId] Filter transfers from this user ID
11267
11267
  * @param {number} [toId] Filter transfers to this user ID
11268
- * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, invoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
11268
+ * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
11269
11269
  * @param {*} [options] Override http request option.
11270
11270
  * @throws {RequiredError}
11271
11271
  */
@@ -11338,6 +11338,50 @@ const TransfersApiAxiosParamCreator = function (configuration) {
11338
11338
  options: localVarRequestOptions,
11339
11339
  };
11340
11340
  },
11341
+ /**
11342
+ *
11343
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
11344
+ * @param {string} [fromDate] Start date for selected transfers (inclusive)
11345
+ * @param {string} [tillDate] End date for selected transfers (exclusive)
11346
+ * @param {number} [fromId] Filter transfers from this user ID
11347
+ * @param {number} [toId] Filter transfers to this user ID
11348
+ * @param {*} [options] Override http request option.
11349
+ * @throws {RequiredError}
11350
+ */
11351
+ getTransferSummary: async (fromDate, tillDate, fromId, toId, options = {}) => {
11352
+ const localVarPath = `/transfers/summary`;
11353
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11354
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11355
+ let baseOptions;
11356
+ if (configuration) {
11357
+ baseOptions = configuration.baseOptions;
11358
+ }
11359
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
11360
+ const localVarHeaderParameter = {};
11361
+ const localVarQueryParameter = {};
11362
+ // authentication JWT required
11363
+ // http bearer authentication required
11364
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
11365
+ if (fromDate !== undefined) {
11366
+ localVarQueryParameter['fromDate'] = fromDate;
11367
+ }
11368
+ if (tillDate !== undefined) {
11369
+ localVarQueryParameter['tillDate'] = tillDate;
11370
+ }
11371
+ if (fromId !== undefined) {
11372
+ localVarQueryParameter['fromId'] = fromId;
11373
+ }
11374
+ if (toId !== undefined) {
11375
+ localVarQueryParameter['toId'] = toId;
11376
+ }
11377
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11378
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11379
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
11380
+ return {
11381
+ url: (0, common_1.toPathString)(localVarUrlObj),
11382
+ options: localVarRequestOptions,
11383
+ };
11384
+ },
11341
11385
  };
11342
11386
  };
11343
11387
  exports.TransfersApiAxiosParamCreator = TransfersApiAxiosParamCreator;
@@ -11410,7 +11454,7 @@ const TransfersApiFp = function (configuration) {
11410
11454
  * @param {string} [tillDate] End date for selected transfers (exclusive)
11411
11455
  * @param {number} [fromId] Filter transfers from this user ID
11412
11456
  * @param {number} [toId] Filter transfers to this user ID
11413
- * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, invoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
11457
+ * @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
11414
11458
  * @param {*} [options] Override http request option.
11415
11459
  * @throws {RequiredError}
11416
11460
  */
@@ -11433,6 +11477,22 @@ const TransfersApiFp = function (configuration) {
11433
11477
  const operationBasePath = base_1.operationServerMap['TransfersApi.getTransferPdf']?.[index]?.url;
11434
11478
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
11435
11479
  },
11480
+ /**
11481
+ *
11482
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
11483
+ * @param {string} [fromDate] Start date for selected transfers (inclusive)
11484
+ * @param {string} [tillDate] End date for selected transfers (exclusive)
11485
+ * @param {number} [fromId] Filter transfers from this user ID
11486
+ * @param {number} [toId] Filter transfers to this user ID
11487
+ * @param {*} [options] Override http request option.
11488
+ * @throws {RequiredError}
11489
+ */
11490
+ async getTransferSummary(fromDate, tillDate, fromId, toId, options) {
11491
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTransferSummary(fromDate, tillDate, fromId, toId, options);
11492
+ const index = configuration?.serverIndex ?? 0;
11493
+ const operationBasePath = base_1.operationServerMap['TransfersApi.getTransferSummary']?.[index]?.url;
11494
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
11495
+ },
11436
11496
  };
11437
11497
  };
11438
11498
  exports.TransfersApiFp = TransfersApiFp;
@@ -11503,6 +11563,16 @@ const TransfersApiFactory = function (configuration, basePath, axios) {
11503
11563
  getTransferPdf(requestParameters, options) {
11504
11564
  return localVarFp.getTransferPdf(requestParameters.id, options).then((request) => request(axios, basePath));
11505
11565
  },
11566
+ /**
11567
+ *
11568
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
11569
+ * @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
11570
+ * @param {*} [options] Override http request option.
11571
+ * @throws {RequiredError}
11572
+ */
11573
+ getTransferSummary(requestParameters = {}, options) {
11574
+ return localVarFp.getTransferSummary(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, options).then((request) => request(axios, basePath));
11575
+ },
11506
11576
  };
11507
11577
  };
11508
11578
  exports.TransfersApiFactory = TransfersApiFactory;
@@ -11579,6 +11649,17 @@ class TransfersApi extends base_1.BaseAPI {
11579
11649
  getTransferPdf(requestParameters, options) {
11580
11650
  return (0, exports.TransfersApiFp)(this.configuration).getTransferPdf(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
11581
11651
  }
11652
+ /**
11653
+ *
11654
+ * @summary Returns an aggregate breakdown of transfers for every category plus an overall total
11655
+ * @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
11656
+ * @param {*} [options] Override http request option.
11657
+ * @throws {RequiredError}
11658
+ * @memberof TransfersApi
11659
+ */
11660
+ getTransferSummary(requestParameters = {}, options) {
11661
+ return (0, exports.TransfersApiFp)(this.configuration).getTransferSummary(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, options).then((request) => request(this.axios, this.basePath));
11662
+ }
11582
11663
  }
11583
11664
  exports.TransfersApi = TransfersApi;
11584
11665
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gewis/sudosos-client",
3
- "version": "0.0.0-develop.dabdc9d",
3
+ "version": "0.0.0-develop.efea20e",
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",