@gewis/sudosos-client 0.0.0-develop.2275206 → 0.0.0-develop.23674a9
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/README.md +110 -0
- package/dist/api.d.ts +335 -61
- package/dist/api.js +209 -28
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/package.json +4 -4
package/dist/api.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PayoutRequestsApiAxiosParamCreator = exports.
|
|
16
|
+
exports.PayoutRequestsApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.InactiveAdministrativeCostsApi = exports.InactiveAdministrativeCostsApiFactory = exports.InactiveAdministrativeCostsApiFp = exports.InactiveAdministrativeCostsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.GetFineReportPdfFileTypeEnum = exports.DebtorsApi = exports.DebtorsApiFactory = exports.DebtorsApiFp = exports.DebtorsApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.BannersApi = exports.BannersApiFactory = exports.BannersApiFp = exports.BannersApiAxiosParamCreator = exports.GetAllBalanceOrderDirectionEnum = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuthenticateApi = exports.AuthenticateApiFactory = exports.AuthenticateApiFp = exports.AuthenticateApiAxiosParamCreator = exports.UserType = exports.UserSettingsResponseLanguageEnum = exports.UpdateInvoiceRequestStateEnum = exports.QRStatusResponseStatusEnum = exports.PayoutRequestStatusRequestStateEnum = exports.PayoutRequestResponseStatusEnum = exports.PatchUserSettingsRequestLanguageEnum = exports.InvoiceStatusResponseStateEnum = exports.GetAllInvoicesCurrentStateParameterInner = exports.FinancialMutationResponseTypeEnum = exports.BasePayoutRequestResponseStatusEnum = void 0;
|
|
17
17
|
exports.TransactionSummariesApiFp = exports.TransactionSummariesApiAxiosParamCreator = exports.TestOperationsOfTheTestControllerApi = exports.TestOperationsOfTheTestControllerApiFactory = exports.TestOperationsOfTheTestControllerApiFp = exports.TestOperationsOfTheTestControllerApiAxiosParamCreator = exports.TermsOfServiceApi = exports.TermsOfServiceApiFactory = exports.TermsOfServiceApiFp = exports.TermsOfServiceApiAxiosParamCreator = exports.GetUserSyncResultsServiceEnum = exports.SyncApi = exports.SyncApiFactory = exports.SyncApiFp = exports.SyncApiAxiosParamCreator = exports.StripeApi = exports.StripeApiFactory = exports.StripeApiFp = exports.StripeApiAxiosParamCreator = exports.ServerSettingsApi = exports.ServerSettingsApiFactory = exports.ServerSettingsApiFp = exports.ServerSettingsApiAxiosParamCreator = exports.SellerPayoutsApi = exports.SellerPayoutsApiFactory = exports.SellerPayoutsApiFp = exports.SellerPayoutsApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.RbacApi = exports.RbacApiFactory = exports.RbacApiFp = exports.RbacApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.ProductCategoriesApi = exports.ProductCategoriesApiFactory = exports.ProductCategoriesApiFp = exports.ProductCategoriesApiAxiosParamCreator = exports.PointofsaleApi = exports.PointofsaleApiFactory = exports.PointofsaleApiFp = exports.PointofsaleApiAxiosParamCreator = exports.PayoutRequestsApi = exports.PayoutRequestsApiFactory = exports.PayoutRequestsApiFp = void 0;
|
|
18
18
|
exports.WriteoffsApi = exports.WriteoffsApiFactory = exports.WriteoffsApiFp = exports.WriteoffsApiAxiosParamCreator = exports.VouchergroupsApi = exports.VouchergroupsApiFactory = exports.VouchergroupsApiFp = exports.VouchergroupsApiAxiosParamCreator = exports.VatGroupsApi = exports.VatGroupsApiFactory = exports.VatGroupsApiFp = exports.VatGroupsApiAxiosParamCreator = exports.GetUsersSalesReportPdfFileTypeEnum = exports.GetUsersPurchaseReportPdfFileTypeEnum = exports.GetAllUsersTypeEnum = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserNotificationPreferencesApi = exports.UserNotificationPreferencesApiFactory = exports.UserNotificationPreferencesApiFp = exports.UserNotificationPreferencesApiAxiosParamCreator = exports.TransfersApi = exports.TransfersApiFactory = exports.TransfersApiFp = exports.TransfersApiAxiosParamCreator = exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = exports.TransactionSummariesApi = exports.TransactionSummariesApiFactory = void 0;
|
|
19
19
|
const axios_1 = require("axios");
|
|
@@ -32,6 +32,17 @@ exports.FinancialMutationResponseTypeEnum = {
|
|
|
32
32
|
Transfer: 'transfer',
|
|
33
33
|
Transaction: 'transaction'
|
|
34
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @enum {string}
|
|
39
|
+
*/
|
|
40
|
+
exports.GetAllInvoicesCurrentStateParameterInner = {
|
|
41
|
+
Created: 'CREATED',
|
|
42
|
+
Sent: 'SENT',
|
|
43
|
+
Paid: 'PAID',
|
|
44
|
+
Deleted: 'DELETED'
|
|
45
|
+
};
|
|
35
46
|
exports.InvoiceStatusResponseStateEnum = {
|
|
36
47
|
Created: 'CREATED',
|
|
37
48
|
Sent: 'SENT',
|
|
@@ -72,6 +83,21 @@ exports.UserSettingsResponseLanguageEnum = {
|
|
|
72
83
|
EnUs: 'en-US',
|
|
73
84
|
PlPl: 'pl-PL'
|
|
74
85
|
};
|
|
86
|
+
/**
|
|
87
|
+
* The type of a user
|
|
88
|
+
* @export
|
|
89
|
+
* @enum {string}
|
|
90
|
+
*/
|
|
91
|
+
exports.UserType = {
|
|
92
|
+
Member: 'MEMBER',
|
|
93
|
+
Organ: 'ORGAN',
|
|
94
|
+
Voucher: 'VOUCHER',
|
|
95
|
+
LocalUser: 'LOCAL_USER',
|
|
96
|
+
LocalAdmin: 'LOCAL_ADMIN',
|
|
97
|
+
Invoice: 'INVOICE',
|
|
98
|
+
PointOfSale: 'POINT_OF_SALE',
|
|
99
|
+
Integration: 'INTEGRATION'
|
|
100
|
+
};
|
|
75
101
|
/**
|
|
76
102
|
* AuthenticateApi - axios parameter creator
|
|
77
103
|
* @export
|
|
@@ -1703,7 +1729,7 @@ const BalanceApiAxiosParamCreator = function (configuration) {
|
|
|
1703
1729
|
* @param {boolean} [hasFine] Only users with(out) fines
|
|
1704
1730
|
* @param {number} [minFine] Minimum fine
|
|
1705
1731
|
* @param {number} [maxFine] Maximum fine
|
|
1706
|
-
* @param {
|
|
1732
|
+
* @param {Array<UserType>} [userTypes] Filter based on user type.
|
|
1707
1733
|
* @param {string} [orderBy] Column to order balance by - eg: id,amount
|
|
1708
1734
|
* @param {GetAllBalanceOrderDirectionEnum} [orderDirection] Order direction
|
|
1709
1735
|
* @param {boolean} [allowDeleted] Whether to include deleted users
|
|
@@ -1867,7 +1893,7 @@ const BalanceApiFp = function (configuration) {
|
|
|
1867
1893
|
* @param {boolean} [hasFine] Only users with(out) fines
|
|
1868
1894
|
* @param {number} [minFine] Minimum fine
|
|
1869
1895
|
* @param {number} [maxFine] Maximum fine
|
|
1870
|
-
* @param {
|
|
1896
|
+
* @param {Array<UserType>} [userTypes] Filter based on user type.
|
|
1871
1897
|
* @param {string} [orderBy] Column to order balance by - eg: id,amount
|
|
1872
1898
|
* @param {GetAllBalanceOrderDirectionEnum} [orderDirection] Order direction
|
|
1873
1899
|
* @param {boolean} [allowDeleted] Whether to include deleted users
|
|
@@ -2012,10 +2038,6 @@ class BalanceApi extends base_1.BaseAPI {
|
|
|
2012
2038
|
}
|
|
2013
2039
|
}
|
|
2014
2040
|
exports.BalanceApi = BalanceApi;
|
|
2015
|
-
/**
|
|
2016
|
-
* @export
|
|
2017
|
-
*/
|
|
2018
|
-
exports.GetAllBalanceUserTypesEnum = {};
|
|
2019
2041
|
/**
|
|
2020
2042
|
* @export
|
|
2021
2043
|
*/
|
|
@@ -5804,16 +5826,17 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
5804
5826
|
* @summary Returns all invoices in the system.
|
|
5805
5827
|
* @param {number} [toId] Filter on Id of the debtor
|
|
5806
5828
|
* @param {number} [invoiceId] Filter on invoice ID
|
|
5807
|
-
* @param {
|
|
5829
|
+
* @param {Array<GetAllInvoicesCurrentStateParameterInner>} [currentState] Filter based on Invoice State.
|
|
5808
5830
|
* @param {boolean} [returnEntries] Boolean if invoice entries should be returned
|
|
5809
5831
|
* @param {string} [fromDate] Start date for selected invoices (inclusive)
|
|
5810
5832
|
* @param {string} [tillDate] End date for selected invoices (exclusive)
|
|
5833
|
+
* @param {string} [description] Filter invoices by description (partial match)
|
|
5811
5834
|
* @param {number} [take] How many entries the endpoint should return
|
|
5812
5835
|
* @param {number} [skip] How many entries should be skipped (for pagination)
|
|
5813
5836
|
* @param {*} [options] Override http request option.
|
|
5814
5837
|
* @throws {RequiredError}
|
|
5815
5838
|
*/
|
|
5816
|
-
getAllInvoices: async (toId, invoiceId, currentState, returnEntries, fromDate, tillDate, take, skip, options = {}) => {
|
|
5839
|
+
getAllInvoices: async (toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options = {}) => {
|
|
5817
5840
|
const localVarPath = `/invoices`;
|
|
5818
5841
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5819
5842
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5845,6 +5868,9 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
5845
5868
|
if (tillDate !== undefined) {
|
|
5846
5869
|
localVarQueryParameter['tillDate'] = tillDate;
|
|
5847
5870
|
}
|
|
5871
|
+
if (description !== undefined) {
|
|
5872
|
+
localVarQueryParameter['description'] = description;
|
|
5873
|
+
}
|
|
5848
5874
|
if (take !== undefined) {
|
|
5849
5875
|
localVarQueryParameter['take'] = take;
|
|
5850
5876
|
}
|
|
@@ -5903,6 +5929,34 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
5903
5929
|
options: localVarRequestOptions,
|
|
5904
5930
|
};
|
|
5905
5931
|
},
|
|
5932
|
+
/**
|
|
5933
|
+
*
|
|
5934
|
+
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
5935
|
+
* @param {*} [options] Override http request option.
|
|
5936
|
+
* @throws {RequiredError}
|
|
5937
|
+
*/
|
|
5938
|
+
getInvoiceDrift: async (options = {}) => {
|
|
5939
|
+
const localVarPath = `/invoices/drift`;
|
|
5940
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5941
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5942
|
+
let baseOptions;
|
|
5943
|
+
if (configuration) {
|
|
5944
|
+
baseOptions = configuration.baseOptions;
|
|
5945
|
+
}
|
|
5946
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5947
|
+
const localVarHeaderParameter = {};
|
|
5948
|
+
const localVarQueryParameter = {};
|
|
5949
|
+
// authentication JWT required
|
|
5950
|
+
// http bearer authentication required
|
|
5951
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5952
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5953
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5954
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5955
|
+
return {
|
|
5956
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5957
|
+
options: localVarRequestOptions,
|
|
5958
|
+
};
|
|
5959
|
+
},
|
|
5906
5960
|
/**
|
|
5907
5961
|
*
|
|
5908
5962
|
* @summary Get an invoice pdf.
|
|
@@ -6135,17 +6189,18 @@ const InvoicesApiFp = function (configuration) {
|
|
|
6135
6189
|
* @summary Returns all invoices in the system.
|
|
6136
6190
|
* @param {number} [toId] Filter on Id of the debtor
|
|
6137
6191
|
* @param {number} [invoiceId] Filter on invoice ID
|
|
6138
|
-
* @param {
|
|
6192
|
+
* @param {Array<GetAllInvoicesCurrentStateParameterInner>} [currentState] Filter based on Invoice State.
|
|
6139
6193
|
* @param {boolean} [returnEntries] Boolean if invoice entries should be returned
|
|
6140
6194
|
* @param {string} [fromDate] Start date for selected invoices (inclusive)
|
|
6141
6195
|
* @param {string} [tillDate] End date for selected invoices (exclusive)
|
|
6196
|
+
* @param {string} [description] Filter invoices by description (partial match)
|
|
6142
6197
|
* @param {number} [take] How many entries the endpoint should return
|
|
6143
6198
|
* @param {number} [skip] How many entries should be skipped (for pagination)
|
|
6144
6199
|
* @param {*} [options] Override http request option.
|
|
6145
6200
|
* @throws {RequiredError}
|
|
6146
6201
|
*/
|
|
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);
|
|
6202
|
+
async getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options) {
|
|
6203
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options);
|
|
6149
6204
|
const index = configuration?.serverIndex ?? 0;
|
|
6150
6205
|
const operationBasePath = base_1.operationServerMap['InvoicesApi.getAllInvoices']?.[index]?.url;
|
|
6151
6206
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -6165,6 +6220,18 @@ const InvoicesApiFp = function (configuration) {
|
|
|
6165
6220
|
const operationBasePath = base_1.operationServerMap['InvoicesApi.getEligibleTransactions']?.[index]?.url;
|
|
6166
6221
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6167
6222
|
},
|
|
6223
|
+
/**
|
|
6224
|
+
*
|
|
6225
|
+
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
6226
|
+
* @param {*} [options] Override http request option.
|
|
6227
|
+
* @throws {RequiredError}
|
|
6228
|
+
*/
|
|
6229
|
+
async getInvoiceDrift(options) {
|
|
6230
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoiceDrift(options);
|
|
6231
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6232
|
+
const operationBasePath = base_1.operationServerMap['InvoicesApi.getInvoiceDrift']?.[index]?.url;
|
|
6233
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6234
|
+
},
|
|
6168
6235
|
/**
|
|
6169
6236
|
*
|
|
6170
6237
|
* @summary Get an invoice pdf.
|
|
@@ -6282,7 +6349,7 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
6282
6349
|
* @throws {RequiredError}
|
|
6283
6350
|
*/
|
|
6284
6351
|
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));
|
|
6352
|
+
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
6353
|
},
|
|
6287
6354
|
/**
|
|
6288
6355
|
*
|
|
@@ -6294,6 +6361,15 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
6294
6361
|
getEligibleTransactions(requestParameters, options) {
|
|
6295
6362
|
return localVarFp.getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(axios, basePath));
|
|
6296
6363
|
},
|
|
6364
|
+
/**
|
|
6365
|
+
*
|
|
6366
|
+
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
6367
|
+
* @param {*} [options] Override http request option.
|
|
6368
|
+
* @throws {RequiredError}
|
|
6369
|
+
*/
|
|
6370
|
+
getInvoiceDrift(options) {
|
|
6371
|
+
return localVarFp.getInvoiceDrift(options).then((request) => request(axios, basePath));
|
|
6372
|
+
},
|
|
6297
6373
|
/**
|
|
6298
6374
|
*
|
|
6299
6375
|
* @summary Get an invoice pdf.
|
|
@@ -6396,7 +6472,7 @@ class InvoicesApi extends base_1.BaseAPI {
|
|
|
6396
6472
|
* @memberof InvoicesApi
|
|
6397
6473
|
*/
|
|
6398
6474
|
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));
|
|
6475
|
+
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
6476
|
}
|
|
6401
6477
|
/**
|
|
6402
6478
|
*
|
|
@@ -6409,6 +6485,16 @@ class InvoicesApi extends base_1.BaseAPI {
|
|
|
6409
6485
|
getEligibleTransactions(requestParameters, options) {
|
|
6410
6486
|
return (0, exports.InvoicesApiFp)(this.configuration).getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(this.axios, this.basePath));
|
|
6411
6487
|
}
|
|
6488
|
+
/**
|
|
6489
|
+
*
|
|
6490
|
+
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
6491
|
+
* @param {*} [options] Override http request option.
|
|
6492
|
+
* @throws {RequiredError}
|
|
6493
|
+
* @memberof InvoicesApi
|
|
6494
|
+
*/
|
|
6495
|
+
getInvoiceDrift(options) {
|
|
6496
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getInvoiceDrift(options).then((request) => request(this.axios, this.basePath));
|
|
6497
|
+
}
|
|
6412
6498
|
/**
|
|
6413
6499
|
*
|
|
6414
6500
|
* @summary Get an invoice pdf.
|
|
@@ -6466,10 +6552,6 @@ class InvoicesApi extends base_1.BaseAPI {
|
|
|
6466
6552
|
}
|
|
6467
6553
|
}
|
|
6468
6554
|
exports.InvoicesApi = InvoicesApi;
|
|
6469
|
-
/**
|
|
6470
|
-
* @export
|
|
6471
|
-
*/
|
|
6472
|
-
exports.GetAllInvoicesCurrentStateEnum = {};
|
|
6473
6555
|
/**
|
|
6474
6556
|
* PayoutRequestsApi - axios parameter creator
|
|
6475
6557
|
* @export
|
|
@@ -10011,7 +10093,7 @@ const SyncApiAxiosParamCreator = function (configuration) {
|
|
|
10011
10093
|
/**
|
|
10012
10094
|
* Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
|
|
10013
10095
|
* @summary Get dry-run sync results for users
|
|
10014
|
-
* @param {GetUserSyncResultsServiceEnum} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
|
|
10096
|
+
* @param {Array<GetUserSyncResultsServiceEnum>} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
|
|
10015
10097
|
* @param {*} [options] Override http request option.
|
|
10016
10098
|
* @throws {RequiredError}
|
|
10017
10099
|
*/
|
|
@@ -10053,7 +10135,7 @@ const SyncApiFp = function (configuration) {
|
|
|
10053
10135
|
/**
|
|
10054
10136
|
* Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
|
|
10055
10137
|
* @summary Get dry-run sync results for users
|
|
10056
|
-
* @param {GetUserSyncResultsServiceEnum} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
|
|
10138
|
+
* @param {Array<GetUserSyncResultsServiceEnum>} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
|
|
10057
10139
|
* @param {*} [options] Override http request option.
|
|
10058
10140
|
* @throws {RequiredError}
|
|
10059
10141
|
*/
|
|
@@ -10109,7 +10191,10 @@ exports.SyncApi = SyncApi;
|
|
|
10109
10191
|
/**
|
|
10110
10192
|
* @export
|
|
10111
10193
|
*/
|
|
10112
|
-
exports.GetUserSyncResultsServiceEnum = {
|
|
10194
|
+
exports.GetUserSyncResultsServiceEnum = {
|
|
10195
|
+
Ldap: 'LDAP',
|
|
10196
|
+
Gewisdb: 'GEWISDB'
|
|
10197
|
+
};
|
|
10113
10198
|
/**
|
|
10114
10199
|
* TermsOfServiceApi - axios parameter creator
|
|
10115
10200
|
* @export
|
|
@@ -11182,12 +11267,15 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11182
11267
|
* @summary Returns all existing transfers
|
|
11183
11268
|
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
11184
11269
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11270
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
11271
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
11272
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost, manualCreation, manualDeletion
|
|
11185
11273
|
* @param {number} [take] How many transfers the endpoint should return
|
|
11186
11274
|
* @param {number} [skip] How many transfers should be skipped (for pagination)
|
|
11187
11275
|
* @param {*} [options] Override http request option.
|
|
11188
11276
|
* @throws {RequiredError}
|
|
11189
11277
|
*/
|
|
11190
|
-
getAllTransfers: async (fromDate, tillDate, take, skip, options = {}) => {
|
|
11278
|
+
getAllTransfers: async (fromDate, tillDate, fromId, toId, category, take, skip, options = {}) => {
|
|
11191
11279
|
const localVarPath = `/transfers`;
|
|
11192
11280
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11193
11281
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11207,6 +11295,15 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11207
11295
|
if (tillDate !== undefined) {
|
|
11208
11296
|
localVarQueryParameter['tillDate'] = tillDate;
|
|
11209
11297
|
}
|
|
11298
|
+
if (fromId !== undefined) {
|
|
11299
|
+
localVarQueryParameter['fromId'] = fromId;
|
|
11300
|
+
}
|
|
11301
|
+
if (toId !== undefined) {
|
|
11302
|
+
localVarQueryParameter['toId'] = toId;
|
|
11303
|
+
}
|
|
11304
|
+
if (category !== undefined) {
|
|
11305
|
+
localVarQueryParameter['category'] = category;
|
|
11306
|
+
}
|
|
11210
11307
|
if (take !== undefined) {
|
|
11211
11308
|
localVarQueryParameter['take'] = take;
|
|
11212
11309
|
}
|
|
@@ -11260,7 +11357,7 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11260
11357
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11261
11358
|
* @param {number} [fromId] Filter transfers from this user ID
|
|
11262
11359
|
* @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
|
|
11360
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
|
|
11264
11361
|
* @param {*} [options] Override http request option.
|
|
11265
11362
|
* @throws {RequiredError}
|
|
11266
11363
|
*/
|
|
@@ -11333,6 +11430,50 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11333
11430
|
options: localVarRequestOptions,
|
|
11334
11431
|
};
|
|
11335
11432
|
},
|
|
11433
|
+
/**
|
|
11434
|
+
*
|
|
11435
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
11436
|
+
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
11437
|
+
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11438
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
11439
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
11440
|
+
* @param {*} [options] Override http request option.
|
|
11441
|
+
* @throws {RequiredError}
|
|
11442
|
+
*/
|
|
11443
|
+
getTransferSummary: async (fromDate, tillDate, fromId, toId, options = {}) => {
|
|
11444
|
+
const localVarPath = `/transfers/summary`;
|
|
11445
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11446
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11447
|
+
let baseOptions;
|
|
11448
|
+
if (configuration) {
|
|
11449
|
+
baseOptions = configuration.baseOptions;
|
|
11450
|
+
}
|
|
11451
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
11452
|
+
const localVarHeaderParameter = {};
|
|
11453
|
+
const localVarQueryParameter = {};
|
|
11454
|
+
// authentication JWT required
|
|
11455
|
+
// http bearer authentication required
|
|
11456
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11457
|
+
if (fromDate !== undefined) {
|
|
11458
|
+
localVarQueryParameter['fromDate'] = fromDate;
|
|
11459
|
+
}
|
|
11460
|
+
if (tillDate !== undefined) {
|
|
11461
|
+
localVarQueryParameter['tillDate'] = tillDate;
|
|
11462
|
+
}
|
|
11463
|
+
if (fromId !== undefined) {
|
|
11464
|
+
localVarQueryParameter['fromId'] = fromId;
|
|
11465
|
+
}
|
|
11466
|
+
if (toId !== undefined) {
|
|
11467
|
+
localVarQueryParameter['toId'] = toId;
|
|
11468
|
+
}
|
|
11469
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11470
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11471
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
11472
|
+
return {
|
|
11473
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11474
|
+
options: localVarRequestOptions,
|
|
11475
|
+
};
|
|
11476
|
+
},
|
|
11336
11477
|
};
|
|
11337
11478
|
};
|
|
11338
11479
|
exports.TransfersApiAxiosParamCreator = TransfersApiAxiosParamCreator;
|
|
@@ -11374,13 +11515,16 @@ const TransfersApiFp = function (configuration) {
|
|
|
11374
11515
|
* @summary Returns all existing transfers
|
|
11375
11516
|
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
11376
11517
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11518
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
11519
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
11520
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost, manualCreation, manualDeletion
|
|
11377
11521
|
* @param {number} [take] How many transfers the endpoint should return
|
|
11378
11522
|
* @param {number} [skip] How many transfers should be skipped (for pagination)
|
|
11379
11523
|
* @param {*} [options] Override http request option.
|
|
11380
11524
|
* @throws {RequiredError}
|
|
11381
11525
|
*/
|
|
11382
|
-
async getAllTransfers(fromDate, tillDate, take, skip, options) {
|
|
11383
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTransfers(fromDate, tillDate, take, skip, options);
|
|
11526
|
+
async getAllTransfers(fromDate, tillDate, fromId, toId, category, take, skip, options) {
|
|
11527
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTransfers(fromDate, tillDate, fromId, toId, category, take, skip, options);
|
|
11384
11528
|
const index = configuration?.serverIndex ?? 0;
|
|
11385
11529
|
const operationBasePath = base_1.operationServerMap['TransfersApi.getAllTransfers']?.[index]?.url;
|
|
11386
11530
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -11405,7 +11549,7 @@ const TransfersApiFp = function (configuration) {
|
|
|
11405
11549
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11406
11550
|
* @param {number} [fromId] Filter transfers from this user ID
|
|
11407
11551
|
* @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
|
|
11552
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
|
|
11409
11553
|
* @param {*} [options] Override http request option.
|
|
11410
11554
|
* @throws {RequiredError}
|
|
11411
11555
|
*/
|
|
@@ -11428,6 +11572,22 @@ const TransfersApiFp = function (configuration) {
|
|
|
11428
11572
|
const operationBasePath = base_1.operationServerMap['TransfersApi.getTransferPdf']?.[index]?.url;
|
|
11429
11573
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
11430
11574
|
},
|
|
11575
|
+
/**
|
|
11576
|
+
*
|
|
11577
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
11578
|
+
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
11579
|
+
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11580
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
11581
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
11582
|
+
* @param {*} [options] Override http request option.
|
|
11583
|
+
* @throws {RequiredError}
|
|
11584
|
+
*/
|
|
11585
|
+
async getTransferSummary(fromDate, tillDate, fromId, toId, options) {
|
|
11586
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTransferSummary(fromDate, tillDate, fromId, toId, options);
|
|
11587
|
+
const index = configuration?.serverIndex ?? 0;
|
|
11588
|
+
const operationBasePath = base_1.operationServerMap['TransfersApi.getTransferSummary']?.[index]?.url;
|
|
11589
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
11590
|
+
},
|
|
11431
11591
|
};
|
|
11432
11592
|
};
|
|
11433
11593
|
exports.TransfersApiFp = TransfersApiFp;
|
|
@@ -11466,7 +11626,7 @@ const TransfersApiFactory = function (configuration, basePath, axios) {
|
|
|
11466
11626
|
* @throws {RequiredError}
|
|
11467
11627
|
*/
|
|
11468
11628
|
getAllTransfers(requestParameters = {}, options) {
|
|
11469
|
-
return localVarFp.getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
11629
|
+
return localVarFp.getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, requestParameters.category, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
11470
11630
|
},
|
|
11471
11631
|
/**
|
|
11472
11632
|
*
|
|
@@ -11498,6 +11658,16 @@ const TransfersApiFactory = function (configuration, basePath, axios) {
|
|
|
11498
11658
|
getTransferPdf(requestParameters, options) {
|
|
11499
11659
|
return localVarFp.getTransferPdf(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
11500
11660
|
},
|
|
11661
|
+
/**
|
|
11662
|
+
*
|
|
11663
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
11664
|
+
* @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
|
|
11665
|
+
* @param {*} [options] Override http request option.
|
|
11666
|
+
* @throws {RequiredError}
|
|
11667
|
+
*/
|
|
11668
|
+
getTransferSummary(requestParameters = {}, options) {
|
|
11669
|
+
return localVarFp.getTransferSummary(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, options).then((request) => request(axios, basePath));
|
|
11670
|
+
},
|
|
11501
11671
|
};
|
|
11502
11672
|
};
|
|
11503
11673
|
exports.TransfersApiFactory = TransfersApiFactory;
|
|
@@ -11539,7 +11709,7 @@ class TransfersApi extends base_1.BaseAPI {
|
|
|
11539
11709
|
* @memberof TransfersApi
|
|
11540
11710
|
*/
|
|
11541
11711
|
getAllTransfers(requestParameters = {}, options) {
|
|
11542
|
-
return (0, exports.TransfersApiFp)(this.configuration).getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
11712
|
+
return (0, exports.TransfersApiFp)(this.configuration).getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, requestParameters.category, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
11543
11713
|
}
|
|
11544
11714
|
/**
|
|
11545
11715
|
*
|
|
@@ -11574,6 +11744,17 @@ class TransfersApi extends base_1.BaseAPI {
|
|
|
11574
11744
|
getTransferPdf(requestParameters, options) {
|
|
11575
11745
|
return (0, exports.TransfersApiFp)(this.configuration).getTransferPdf(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
11576
11746
|
}
|
|
11747
|
+
/**
|
|
11748
|
+
*
|
|
11749
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
11750
|
+
* @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
|
|
11751
|
+
* @param {*} [options] Override http request option.
|
|
11752
|
+
* @throws {RequiredError}
|
|
11753
|
+
* @memberof TransfersApi
|
|
11754
|
+
*/
|
|
11755
|
+
getTransferSummary(requestParameters = {}, options) {
|
|
11756
|
+
return (0, exports.TransfersApiFp)(this.configuration).getTransferSummary(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, options).then((request) => request(this.axios, this.basePath));
|
|
11757
|
+
}
|
|
11577
11758
|
}
|
|
11578
11759
|
exports.TransfersApi = TransfersApi;
|
|
11579
11760
|
/**
|
package/dist/base.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
17
|
const axios_1 = require("axios");
|
|
18
|
-
exports.BASE_PATH = "http://
|
|
18
|
+
exports.BASE_PATH = "http://localhost:3000/api/v1".replace(/\/+$/, "");
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
* @export
|
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
|
|
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.
|
|
3
|
+
"version": "0.0.0-develop.23674a9",
|
|
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",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"clean": "rm -rf src dist"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"axios": "
|
|
19
|
+
"axios": "1.15.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@openapitools/openapi-generator-cli": "
|
|
23
|
-
"typescript": "
|
|
22
|
+
"@openapitools/openapi-generator-cli": "2.31.1",
|
|
23
|
+
"typescript": "5.9.3"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|