@gewis/sudosos-client 0.0.0-develop.6e7fadc → 0.0.0-develop.e05135a
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 +140 -3
- package/dist/api.js +83 -2
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -5605,6 +5605,73 @@ 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
|
+
}
|
|
5608
5675
|
/**
|
|
5609
5676
|
*
|
|
5610
5677
|
* @export
|
|
@@ -14980,7 +15047,7 @@ export declare const TransfersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
14980
15047
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
14981
15048
|
* @param {number} [fromId] Filter transfers from this user ID
|
|
14982
15049
|
* @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
|
|
15050
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
|
|
14984
15051
|
* @param {*} [options] Override http request option.
|
|
14985
15052
|
* @throws {RequiredError}
|
|
14986
15053
|
*/
|
|
@@ -14993,6 +15060,17 @@ export declare const TransfersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
14993
15060
|
* @throws {RequiredError}
|
|
14994
15061
|
*/
|
|
14995
15062
|
getTransferPdf: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15063
|
+
/**
|
|
15064
|
+
*
|
|
15065
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
15066
|
+
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
15067
|
+
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
15068
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
15069
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
15070
|
+
* @param {*} [options] Override http request option.
|
|
15071
|
+
* @throws {RequiredError}
|
|
15072
|
+
*/
|
|
15073
|
+
getTransferSummary: (fromDate?: string, tillDate?: string, fromId?: number, toId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14996
15074
|
};
|
|
14997
15075
|
/**
|
|
14998
15076
|
* TransfersApi - functional programming interface
|
|
@@ -15041,7 +15119,7 @@ export declare const TransfersApiFp: (configuration?: Configuration) => {
|
|
|
15041
15119
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
15042
15120
|
* @param {number} [fromId] Filter transfers from this user ID
|
|
15043
15121
|
* @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
|
|
15122
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
|
|
15045
15123
|
* @param {*} [options] Override http request option.
|
|
15046
15124
|
* @throws {RequiredError}
|
|
15047
15125
|
*/
|
|
@@ -15054,6 +15132,17 @@ export declare const TransfersApiFp: (configuration?: Configuration) => {
|
|
|
15054
15132
|
* @throws {RequiredError}
|
|
15055
15133
|
*/
|
|
15056
15134
|
getTransferPdf(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
15135
|
+
/**
|
|
15136
|
+
*
|
|
15137
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
15138
|
+
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
15139
|
+
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
15140
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
15141
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
15142
|
+
* @param {*} [options] Override http request option.
|
|
15143
|
+
* @throws {RequiredError}
|
|
15144
|
+
*/
|
|
15145
|
+
getTransferSummary(fromDate?: string, tillDate?: string, fromId?: number, toId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransferSummaryResponse>>;
|
|
15057
15146
|
};
|
|
15058
15147
|
/**
|
|
15059
15148
|
* TransfersApi - factory interface
|
|
@@ -15108,6 +15197,14 @@ export declare const TransfersApiFactory: (configuration?: Configuration, basePa
|
|
|
15108
15197
|
* @throws {RequiredError}
|
|
15109
15198
|
*/
|
|
15110
15199
|
getTransferPdf(requestParameters: TransfersApiGetTransferPdfRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
15200
|
+
/**
|
|
15201
|
+
*
|
|
15202
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
15203
|
+
* @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
|
|
15204
|
+
* @param {*} [options] Override http request option.
|
|
15205
|
+
* @throws {RequiredError}
|
|
15206
|
+
*/
|
|
15207
|
+
getTransferSummary(requestParameters?: TransfersApiGetTransferSummaryRequest, options?: RawAxiosRequestConfig): AxiosPromise<TransferSummaryResponse>;
|
|
15111
15208
|
};
|
|
15112
15209
|
/**
|
|
15113
15210
|
* Request parameters for createTransfer operation in TransfersApi.
|
|
@@ -15210,7 +15307,7 @@ export interface TransfersApiGetTransferAggregateRequest {
|
|
|
15210
15307
|
*/
|
|
15211
15308
|
readonly toId?: number;
|
|
15212
15309
|
/**
|
|
15213
|
-
* Restrict to a specific transfer category: deposit, payoutRequest, invoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
|
|
15310
|
+
* Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
|
|
15214
15311
|
* @type {string}
|
|
15215
15312
|
* @memberof TransfersApiGetTransferAggregate
|
|
15216
15313
|
*/
|
|
@@ -15229,6 +15326,37 @@ export interface TransfersApiGetTransferPdfRequest {
|
|
|
15229
15326
|
*/
|
|
15230
15327
|
readonly id: number;
|
|
15231
15328
|
}
|
|
15329
|
+
/**
|
|
15330
|
+
* Request parameters for getTransferSummary operation in TransfersApi.
|
|
15331
|
+
* @export
|
|
15332
|
+
* @interface TransfersApiGetTransferSummaryRequest
|
|
15333
|
+
*/
|
|
15334
|
+
export interface TransfersApiGetTransferSummaryRequest {
|
|
15335
|
+
/**
|
|
15336
|
+
* Start date for selected transfers (inclusive)
|
|
15337
|
+
* @type {string}
|
|
15338
|
+
* @memberof TransfersApiGetTransferSummary
|
|
15339
|
+
*/
|
|
15340
|
+
readonly fromDate?: string;
|
|
15341
|
+
/**
|
|
15342
|
+
* End date for selected transfers (exclusive)
|
|
15343
|
+
* @type {string}
|
|
15344
|
+
* @memberof TransfersApiGetTransferSummary
|
|
15345
|
+
*/
|
|
15346
|
+
readonly tillDate?: string;
|
|
15347
|
+
/**
|
|
15348
|
+
* Filter transfers from this user ID
|
|
15349
|
+
* @type {number}
|
|
15350
|
+
* @memberof TransfersApiGetTransferSummary
|
|
15351
|
+
*/
|
|
15352
|
+
readonly fromId?: number;
|
|
15353
|
+
/**
|
|
15354
|
+
* Filter transfers to this user ID
|
|
15355
|
+
* @type {number}
|
|
15356
|
+
* @memberof TransfersApiGetTransferSummary
|
|
15357
|
+
*/
|
|
15358
|
+
readonly toId?: number;
|
|
15359
|
+
}
|
|
15232
15360
|
/**
|
|
15233
15361
|
* TransfersApi - object-oriented interface
|
|
15234
15362
|
* @export
|
|
@@ -15290,6 +15418,15 @@ export declare class TransfersApi extends BaseAPI {
|
|
|
15290
15418
|
* @memberof TransfersApi
|
|
15291
15419
|
*/
|
|
15292
15420
|
getTransferPdf(requestParameters: TransfersApiGetTransferPdfRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
15421
|
+
/**
|
|
15422
|
+
*
|
|
15423
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
15424
|
+
* @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
|
|
15425
|
+
* @param {*} [options] Override http request option.
|
|
15426
|
+
* @throws {RequiredError}
|
|
15427
|
+
* @memberof TransfersApi
|
|
15428
|
+
*/
|
|
15429
|
+
getTransferSummary(requestParameters?: TransfersApiGetTransferSummaryRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TransferSummaryResponse, any, {}>>;
|
|
15293
15430
|
}
|
|
15294
15431
|
/**
|
|
15295
15432
|
* UserNotificationPreferencesApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -11260,7 +11260,7 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11260
11260
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11261
11261
|
* @param {number} [fromId] Filter transfers from this user ID
|
|
11262
11262
|
* @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
|
|
11263
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
|
|
11264
11264
|
* @param {*} [options] Override http request option.
|
|
11265
11265
|
* @throws {RequiredError}
|
|
11266
11266
|
*/
|
|
@@ -11333,6 +11333,50 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11333
11333
|
options: localVarRequestOptions,
|
|
11334
11334
|
};
|
|
11335
11335
|
},
|
|
11336
|
+
/**
|
|
11337
|
+
*
|
|
11338
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
11339
|
+
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
11340
|
+
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11341
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
11342
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
11343
|
+
* @param {*} [options] Override http request option.
|
|
11344
|
+
* @throws {RequiredError}
|
|
11345
|
+
*/
|
|
11346
|
+
getTransferSummary: async (fromDate, tillDate, fromId, toId, options = {}) => {
|
|
11347
|
+
const localVarPath = `/transfers/summary`;
|
|
11348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11349
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11350
|
+
let baseOptions;
|
|
11351
|
+
if (configuration) {
|
|
11352
|
+
baseOptions = configuration.baseOptions;
|
|
11353
|
+
}
|
|
11354
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
11355
|
+
const localVarHeaderParameter = {};
|
|
11356
|
+
const localVarQueryParameter = {};
|
|
11357
|
+
// authentication JWT required
|
|
11358
|
+
// http bearer authentication required
|
|
11359
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11360
|
+
if (fromDate !== undefined) {
|
|
11361
|
+
localVarQueryParameter['fromDate'] = fromDate;
|
|
11362
|
+
}
|
|
11363
|
+
if (tillDate !== undefined) {
|
|
11364
|
+
localVarQueryParameter['tillDate'] = tillDate;
|
|
11365
|
+
}
|
|
11366
|
+
if (fromId !== undefined) {
|
|
11367
|
+
localVarQueryParameter['fromId'] = fromId;
|
|
11368
|
+
}
|
|
11369
|
+
if (toId !== undefined) {
|
|
11370
|
+
localVarQueryParameter['toId'] = toId;
|
|
11371
|
+
}
|
|
11372
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11373
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11374
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
11375
|
+
return {
|
|
11376
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11377
|
+
options: localVarRequestOptions,
|
|
11378
|
+
};
|
|
11379
|
+
},
|
|
11336
11380
|
};
|
|
11337
11381
|
};
|
|
11338
11382
|
exports.TransfersApiAxiosParamCreator = TransfersApiAxiosParamCreator;
|
|
@@ -11405,7 +11449,7 @@ const TransfersApiFp = function (configuration) {
|
|
|
11405
11449
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11406
11450
|
* @param {number} [fromId] Filter transfers from this user ID
|
|
11407
11451
|
* @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
|
|
11452
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
|
|
11409
11453
|
* @param {*} [options] Override http request option.
|
|
11410
11454
|
* @throws {RequiredError}
|
|
11411
11455
|
*/
|
|
@@ -11428,6 +11472,22 @@ const TransfersApiFp = function (configuration) {
|
|
|
11428
11472
|
const operationBasePath = base_1.operationServerMap['TransfersApi.getTransferPdf']?.[index]?.url;
|
|
11429
11473
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
11430
11474
|
},
|
|
11475
|
+
/**
|
|
11476
|
+
*
|
|
11477
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
11478
|
+
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
11479
|
+
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11480
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
11481
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
11482
|
+
* @param {*} [options] Override http request option.
|
|
11483
|
+
* @throws {RequiredError}
|
|
11484
|
+
*/
|
|
11485
|
+
async getTransferSummary(fromDate, tillDate, fromId, toId, options) {
|
|
11486
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTransferSummary(fromDate, tillDate, fromId, toId, options);
|
|
11487
|
+
const index = configuration?.serverIndex ?? 0;
|
|
11488
|
+
const operationBasePath = base_1.operationServerMap['TransfersApi.getTransferSummary']?.[index]?.url;
|
|
11489
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
11490
|
+
},
|
|
11431
11491
|
};
|
|
11432
11492
|
};
|
|
11433
11493
|
exports.TransfersApiFp = TransfersApiFp;
|
|
@@ -11498,6 +11558,16 @@ const TransfersApiFactory = function (configuration, basePath, axios) {
|
|
|
11498
11558
|
getTransferPdf(requestParameters, options) {
|
|
11499
11559
|
return localVarFp.getTransferPdf(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
11500
11560
|
},
|
|
11561
|
+
/**
|
|
11562
|
+
*
|
|
11563
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
11564
|
+
* @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
|
|
11565
|
+
* @param {*} [options] Override http request option.
|
|
11566
|
+
* @throws {RequiredError}
|
|
11567
|
+
*/
|
|
11568
|
+
getTransferSummary(requestParameters = {}, options) {
|
|
11569
|
+
return localVarFp.getTransferSummary(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, options).then((request) => request(axios, basePath));
|
|
11570
|
+
},
|
|
11501
11571
|
};
|
|
11502
11572
|
};
|
|
11503
11573
|
exports.TransfersApiFactory = TransfersApiFactory;
|
|
@@ -11574,6 +11644,17 @@ class TransfersApi extends base_1.BaseAPI {
|
|
|
11574
11644
|
getTransferPdf(requestParameters, options) {
|
|
11575
11645
|
return (0, exports.TransfersApiFp)(this.configuration).getTransferPdf(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
11576
11646
|
}
|
|
11647
|
+
/**
|
|
11648
|
+
*
|
|
11649
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
11650
|
+
* @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
|
|
11651
|
+
* @param {*} [options] Override http request option.
|
|
11652
|
+
* @throws {RequiredError}
|
|
11653
|
+
* @memberof TransfersApi
|
|
11654
|
+
*/
|
|
11655
|
+
getTransferSummary(requestParameters = {}, options) {
|
|
11656
|
+
return (0, exports.TransfersApiFp)(this.configuration).getTransferSummary(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, options).then((request) => request(this.axios, this.basePath));
|
|
11657
|
+
}
|
|
11577
11658
|
}
|
|
11578
11659
|
exports.TransfersApi = TransfersApi;
|
|
11579
11660
|
/**
|
package/package.json
CHANGED