@gewis/sudosos-client 0.0.0-develop.f68ce53 → 0.0.0-develop.fcdff9b
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 +278 -289
- package/dist/api.js +35 -280
- package/package.json +3 -3
package/dist/api.js
CHANGED
|
@@ -13,15 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
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;
|
|
16
|
+
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.PublicPaymentRequestResponseStatusEnum = exports.PayoutRequestStatusRequestStateEnum = exports.PayoutRequestResponseStatusEnum = exports.PatchUserSettingsRequestLanguageEnum = exports.InvoiceStatusResponseStateEnum = exports.GetAllInvoicesCurrentStateParameterInner = exports.FinancialMutationResponseTypeEnum = exports.BasePayoutRequestResponseStatusEnum = exports.BasePaymentRequestResponseStatusEnum = void 0;
|
|
17
|
+
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 = exports.PayoutRequestsApiAxiosParamCreator = exports.InvoicesApi = void 0;
|
|
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 = exports.TransactionSummariesApiFp = exports.TransactionSummariesApiAxiosParamCreator = void 0;
|
|
19
19
|
const axios_1 = require("axios");
|
|
20
20
|
// Some imports not used depending on template conditions
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
const common_1 = require("./common");
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
const base_1 = require("./base");
|
|
25
|
+
exports.BasePaymentRequestResponseStatusEnum = {
|
|
26
|
+
Pending: 'PENDING',
|
|
27
|
+
Paid: 'PAID',
|
|
28
|
+
Expired: 'EXPIRED',
|
|
29
|
+
Cancelled: 'CANCELLED'
|
|
30
|
+
};
|
|
25
31
|
exports.BasePayoutRequestResponseStatusEnum = {
|
|
26
32
|
Created: 'CREATED',
|
|
27
33
|
Approved: 'APPROVED',
|
|
@@ -66,6 +72,12 @@ exports.PayoutRequestStatusRequestStateEnum = {
|
|
|
66
72
|
Denied: 'DENIED',
|
|
67
73
|
Cancelled: 'CANCELLED'
|
|
68
74
|
};
|
|
75
|
+
exports.PublicPaymentRequestResponseStatusEnum = {
|
|
76
|
+
Pending: 'PENDING',
|
|
77
|
+
Paid: 'PAID',
|
|
78
|
+
Expired: 'EXPIRED',
|
|
79
|
+
Cancelled: 'CANCELLED'
|
|
80
|
+
};
|
|
69
81
|
exports.QRStatusResponseStatusEnum = {
|
|
70
82
|
Pending: 'PENDING',
|
|
71
83
|
Confirmed: 'CONFIRMED',
|
|
@@ -200,37 +212,6 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
200
212
|
options: localVarRequestOptions,
|
|
201
213
|
};
|
|
202
214
|
},
|
|
203
|
-
/**
|
|
204
|
-
*
|
|
205
|
-
* @summary EAN login and hand out token
|
|
206
|
-
* @param {AuthenticationEanRequest} authenticationEanRequest The EAN login.
|
|
207
|
-
* @param {*} [options] Override http request option.
|
|
208
|
-
* @deprecated
|
|
209
|
-
* @throws {RequiredError}
|
|
210
|
-
*/
|
|
211
|
-
eanAuthentication: async (authenticationEanRequest, options = {}) => {
|
|
212
|
-
// verify required parameter 'authenticationEanRequest' is not null or undefined
|
|
213
|
-
(0, common_1.assertParamExists)('eanAuthentication', 'authenticationEanRequest', authenticationEanRequest);
|
|
214
|
-
const localVarPath = `/authentication/ean`;
|
|
215
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
216
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
217
|
-
let baseOptions;
|
|
218
|
-
if (configuration) {
|
|
219
|
-
baseOptions = configuration.baseOptions;
|
|
220
|
-
}
|
|
221
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
222
|
-
const localVarHeaderParameter = {};
|
|
223
|
-
const localVarQueryParameter = {};
|
|
224
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
225
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
226
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
227
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
228
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationEanRequest, localVarRequestOptions, configuration);
|
|
229
|
-
return {
|
|
230
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
231
|
-
options: localVarRequestOptions,
|
|
232
|
-
};
|
|
233
|
-
},
|
|
234
215
|
/**
|
|
235
216
|
*
|
|
236
217
|
* @summary Generate a QR code for authentication
|
|
@@ -485,37 +466,6 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
485
466
|
options: localVarRequestOptions,
|
|
486
467
|
};
|
|
487
468
|
},
|
|
488
|
-
/**
|
|
489
|
-
*
|
|
490
|
-
* @summary PIN login for members using memberId.
|
|
491
|
-
* @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login.
|
|
492
|
-
* @param {*} [options] Override http request option.
|
|
493
|
-
* @deprecated
|
|
494
|
-
* @throws {RequiredError}
|
|
495
|
-
*/
|
|
496
|
-
memberPinAuthentication: async (memberAuthenticationPinRequest, options = {}) => {
|
|
497
|
-
// verify required parameter 'memberAuthenticationPinRequest' is not null or undefined
|
|
498
|
-
(0, common_1.assertParamExists)('memberPinAuthentication', 'memberAuthenticationPinRequest', memberAuthenticationPinRequest);
|
|
499
|
-
const localVarPath = `/authentication/member/pin`;
|
|
500
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
501
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
502
|
-
let baseOptions;
|
|
503
|
-
if (configuration) {
|
|
504
|
-
baseOptions = configuration.baseOptions;
|
|
505
|
-
}
|
|
506
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
507
|
-
const localVarHeaderParameter = {};
|
|
508
|
-
const localVarQueryParameter = {};
|
|
509
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
510
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
511
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
512
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
513
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(memberAuthenticationPinRequest, localVarRequestOptions, configuration);
|
|
514
|
-
return {
|
|
515
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
516
|
-
options: localVarRequestOptions,
|
|
517
|
-
};
|
|
518
|
-
},
|
|
519
469
|
/**
|
|
520
470
|
*
|
|
521
471
|
* @summary Mock login and hand out token.
|
|
@@ -546,68 +496,6 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
546
496
|
options: localVarRequestOptions,
|
|
547
497
|
};
|
|
548
498
|
},
|
|
549
|
-
/**
|
|
550
|
-
*
|
|
551
|
-
* @summary NFC login and hand out token
|
|
552
|
-
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login.
|
|
553
|
-
* @param {*} [options] Override http request option.
|
|
554
|
-
* @deprecated
|
|
555
|
-
* @throws {RequiredError}
|
|
556
|
-
*/
|
|
557
|
-
nfcAuthentication: async (authenticationNfcRequest, options = {}) => {
|
|
558
|
-
// verify required parameter 'authenticationNfcRequest' is not null or undefined
|
|
559
|
-
(0, common_1.assertParamExists)('nfcAuthentication', 'authenticationNfcRequest', authenticationNfcRequest);
|
|
560
|
-
const localVarPath = `/authentication/nfc`;
|
|
561
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
562
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
563
|
-
let baseOptions;
|
|
564
|
-
if (configuration) {
|
|
565
|
-
baseOptions = configuration.baseOptions;
|
|
566
|
-
}
|
|
567
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
568
|
-
const localVarHeaderParameter = {};
|
|
569
|
-
const localVarQueryParameter = {};
|
|
570
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
571
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
572
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
573
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
574
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationNfcRequest, localVarRequestOptions, configuration);
|
|
575
|
-
return {
|
|
576
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
577
|
-
options: localVarRequestOptions,
|
|
578
|
-
};
|
|
579
|
-
},
|
|
580
|
-
/**
|
|
581
|
-
*
|
|
582
|
-
* @summary PIN login and hand out token
|
|
583
|
-
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login.
|
|
584
|
-
* @param {*} [options] Override http request option.
|
|
585
|
-
* @deprecated
|
|
586
|
-
* @throws {RequiredError}
|
|
587
|
-
*/
|
|
588
|
-
pinAuthentication: async (authenticationPinRequest, options = {}) => {
|
|
589
|
-
// verify required parameter 'authenticationPinRequest' is not null or undefined
|
|
590
|
-
(0, common_1.assertParamExists)('pinAuthentication', 'authenticationPinRequest', authenticationPinRequest);
|
|
591
|
-
const localVarPath = `/authentication/pin`;
|
|
592
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
593
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
594
|
-
let baseOptions;
|
|
595
|
-
if (configuration) {
|
|
596
|
-
baseOptions = configuration.baseOptions;
|
|
597
|
-
}
|
|
598
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
599
|
-
const localVarHeaderParameter = {};
|
|
600
|
-
const localVarQueryParameter = {};
|
|
601
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
602
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
603
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
604
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
605
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationPinRequest, localVarRequestOptions, configuration);
|
|
606
|
-
return {
|
|
607
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
608
|
-
options: localVarRequestOptions,
|
|
609
|
-
};
|
|
610
|
-
},
|
|
611
499
|
/**
|
|
612
500
|
*
|
|
613
501
|
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
@@ -877,20 +765,6 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
877
765
|
const operationBasePath = base_1.operationServerMap['AuthenticateApi.confirmQRCode']?.[index]?.url;
|
|
878
766
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
879
767
|
},
|
|
880
|
-
/**
|
|
881
|
-
*
|
|
882
|
-
* @summary EAN login and hand out token
|
|
883
|
-
* @param {AuthenticationEanRequest} authenticationEanRequest The EAN login.
|
|
884
|
-
* @param {*} [options] Override http request option.
|
|
885
|
-
* @deprecated
|
|
886
|
-
* @throws {RequiredError}
|
|
887
|
-
*/
|
|
888
|
-
async eanAuthentication(authenticationEanRequest, options) {
|
|
889
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.eanAuthentication(authenticationEanRequest, options);
|
|
890
|
-
const index = configuration?.serverIndex ?? 0;
|
|
891
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.eanAuthentication']?.[index]?.url;
|
|
892
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
893
|
-
},
|
|
894
768
|
/**
|
|
895
769
|
*
|
|
896
770
|
* @summary Generate a QR code for authentication
|
|
@@ -1005,20 +879,6 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
1005
879
|
const operationBasePath = base_1.operationServerMap['AuthenticateApi.localAuthentication']?.[index]?.url;
|
|
1006
880
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1007
881
|
},
|
|
1008
|
-
/**
|
|
1009
|
-
*
|
|
1010
|
-
* @summary PIN login for members using memberId.
|
|
1011
|
-
* @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login.
|
|
1012
|
-
* @param {*} [options] Override http request option.
|
|
1013
|
-
* @deprecated
|
|
1014
|
-
* @throws {RequiredError}
|
|
1015
|
-
*/
|
|
1016
|
-
async memberPinAuthentication(memberAuthenticationPinRequest, options) {
|
|
1017
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.memberPinAuthentication(memberAuthenticationPinRequest, options);
|
|
1018
|
-
const index = configuration?.serverIndex ?? 0;
|
|
1019
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.memberPinAuthentication']?.[index]?.url;
|
|
1020
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1021
|
-
},
|
|
1022
882
|
/**
|
|
1023
883
|
*
|
|
1024
884
|
* @summary Mock login and hand out token.
|
|
@@ -1032,34 +892,6 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
1032
892
|
const operationBasePath = base_1.operationServerMap['AuthenticateApi.mockAuthentication']?.[index]?.url;
|
|
1033
893
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1034
894
|
},
|
|
1035
|
-
/**
|
|
1036
|
-
*
|
|
1037
|
-
* @summary NFC login and hand out token
|
|
1038
|
-
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login.
|
|
1039
|
-
* @param {*} [options] Override http request option.
|
|
1040
|
-
* @deprecated
|
|
1041
|
-
* @throws {RequiredError}
|
|
1042
|
-
*/
|
|
1043
|
-
async nfcAuthentication(authenticationNfcRequest, options) {
|
|
1044
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.nfcAuthentication(authenticationNfcRequest, options);
|
|
1045
|
-
const index = configuration?.serverIndex ?? 0;
|
|
1046
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.nfcAuthentication']?.[index]?.url;
|
|
1047
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1048
|
-
},
|
|
1049
|
-
/**
|
|
1050
|
-
*
|
|
1051
|
-
* @summary PIN login and hand out token
|
|
1052
|
-
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login.
|
|
1053
|
-
* @param {*} [options] Override http request option.
|
|
1054
|
-
* @deprecated
|
|
1055
|
-
* @throws {RequiredError}
|
|
1056
|
-
*/
|
|
1057
|
-
async pinAuthentication(authenticationPinRequest, options) {
|
|
1058
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.pinAuthentication(authenticationPinRequest, options);
|
|
1059
|
-
const index = configuration?.serverIndex ?? 0;
|
|
1060
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.pinAuthentication']?.[index]?.url;
|
|
1061
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1062
|
-
},
|
|
1063
895
|
/**
|
|
1064
896
|
*
|
|
1065
897
|
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
@@ -1190,17 +1022,6 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1190
1022
|
confirmQRCode(requestParameters, options) {
|
|
1191
1023
|
return localVarFp.confirmQRCode(requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
1192
1024
|
},
|
|
1193
|
-
/**
|
|
1194
|
-
*
|
|
1195
|
-
* @summary EAN login and hand out token
|
|
1196
|
-
* @param {AuthenticateApiEanAuthenticationRequest} requestParameters Request parameters.
|
|
1197
|
-
* @param {*} [options] Override http request option.
|
|
1198
|
-
* @deprecated
|
|
1199
|
-
* @throws {RequiredError}
|
|
1200
|
-
*/
|
|
1201
|
-
eanAuthentication(requestParameters, options) {
|
|
1202
|
-
return localVarFp.eanAuthentication(requestParameters.authenticationEanRequest, options).then((request) => request(axios, basePath));
|
|
1203
|
-
},
|
|
1204
1025
|
/**
|
|
1205
1026
|
*
|
|
1206
1027
|
* @summary Generate a QR code for authentication
|
|
@@ -1288,17 +1109,6 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1288
1109
|
localAuthentication(requestParameters, options) {
|
|
1289
1110
|
return localVarFp.localAuthentication(requestParameters.authenticationLocalRequest, options).then((request) => request(axios, basePath));
|
|
1290
1111
|
},
|
|
1291
|
-
/**
|
|
1292
|
-
*
|
|
1293
|
-
* @summary PIN login for members using memberId.
|
|
1294
|
-
* @param {AuthenticateApiMemberPinAuthenticationRequest} requestParameters Request parameters.
|
|
1295
|
-
* @param {*} [options] Override http request option.
|
|
1296
|
-
* @deprecated
|
|
1297
|
-
* @throws {RequiredError}
|
|
1298
|
-
*/
|
|
1299
|
-
memberPinAuthentication(requestParameters, options) {
|
|
1300
|
-
return localVarFp.memberPinAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(axios, basePath));
|
|
1301
|
-
},
|
|
1302
1112
|
/**
|
|
1303
1113
|
*
|
|
1304
1114
|
* @summary Mock login and hand out token.
|
|
@@ -1309,28 +1119,6 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1309
1119
|
mockAuthentication(requestParameters, options) {
|
|
1310
1120
|
return localVarFp.mockAuthentication(requestParameters.authenticationMockRequest, options).then((request) => request(axios, basePath));
|
|
1311
1121
|
},
|
|
1312
|
-
/**
|
|
1313
|
-
*
|
|
1314
|
-
* @summary NFC login and hand out token
|
|
1315
|
-
* @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
|
|
1316
|
-
* @param {*} [options] Override http request option.
|
|
1317
|
-
* @deprecated
|
|
1318
|
-
* @throws {RequiredError}
|
|
1319
|
-
*/
|
|
1320
|
-
nfcAuthentication(requestParameters, options) {
|
|
1321
|
-
return localVarFp.nfcAuthentication(requestParameters.authenticationNfcRequest, options).then((request) => request(axios, basePath));
|
|
1322
|
-
},
|
|
1323
|
-
/**
|
|
1324
|
-
*
|
|
1325
|
-
* @summary PIN login and hand out token
|
|
1326
|
-
* @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
|
|
1327
|
-
* @param {*} [options] Override http request option.
|
|
1328
|
-
* @deprecated
|
|
1329
|
-
* @throws {RequiredError}
|
|
1330
|
-
*/
|
|
1331
|
-
pinAuthentication(requestParameters, options) {
|
|
1332
|
-
return localVarFp.pinAuthentication(requestParameters.authenticationPinRequest, options).then((request) => request(axios, basePath));
|
|
1333
|
-
},
|
|
1334
1122
|
/**
|
|
1335
1123
|
*
|
|
1336
1124
|
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
@@ -1443,18 +1231,6 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1443
1231
|
confirmQRCode(requestParameters, options) {
|
|
1444
1232
|
return (0, exports.AuthenticateApiFp)(this.configuration).confirmQRCode(requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1445
1233
|
}
|
|
1446
|
-
/**
|
|
1447
|
-
*
|
|
1448
|
-
* @summary EAN login and hand out token
|
|
1449
|
-
* @param {AuthenticateApiEanAuthenticationRequest} requestParameters Request parameters.
|
|
1450
|
-
* @param {*} [options] Override http request option.
|
|
1451
|
-
* @deprecated
|
|
1452
|
-
* @throws {RequiredError}
|
|
1453
|
-
* @memberof AuthenticateApi
|
|
1454
|
-
*/
|
|
1455
|
-
eanAuthentication(requestParameters, options) {
|
|
1456
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).eanAuthentication(requestParameters.authenticationEanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1457
|
-
}
|
|
1458
1234
|
/**
|
|
1459
1235
|
*
|
|
1460
1236
|
* @summary Generate a QR code for authentication
|
|
@@ -1551,18 +1327,6 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1551
1327
|
localAuthentication(requestParameters, options) {
|
|
1552
1328
|
return (0, exports.AuthenticateApiFp)(this.configuration).localAuthentication(requestParameters.authenticationLocalRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1553
1329
|
}
|
|
1554
|
-
/**
|
|
1555
|
-
*
|
|
1556
|
-
* @summary PIN login for members using memberId.
|
|
1557
|
-
* @param {AuthenticateApiMemberPinAuthenticationRequest} requestParameters Request parameters.
|
|
1558
|
-
* @param {*} [options] Override http request option.
|
|
1559
|
-
* @deprecated
|
|
1560
|
-
* @throws {RequiredError}
|
|
1561
|
-
* @memberof AuthenticateApi
|
|
1562
|
-
*/
|
|
1563
|
-
memberPinAuthentication(requestParameters, options) {
|
|
1564
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).memberPinAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1565
|
-
}
|
|
1566
1330
|
/**
|
|
1567
1331
|
*
|
|
1568
1332
|
* @summary Mock login and hand out token.
|
|
@@ -1574,30 +1338,6 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1574
1338
|
mockAuthentication(requestParameters, options) {
|
|
1575
1339
|
return (0, exports.AuthenticateApiFp)(this.configuration).mockAuthentication(requestParameters.authenticationMockRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1576
1340
|
}
|
|
1577
|
-
/**
|
|
1578
|
-
*
|
|
1579
|
-
* @summary NFC login and hand out token
|
|
1580
|
-
* @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
|
|
1581
|
-
* @param {*} [options] Override http request option.
|
|
1582
|
-
* @deprecated
|
|
1583
|
-
* @throws {RequiredError}
|
|
1584
|
-
* @memberof AuthenticateApi
|
|
1585
|
-
*/
|
|
1586
|
-
nfcAuthentication(requestParameters, options) {
|
|
1587
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).nfcAuthentication(requestParameters.authenticationNfcRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1588
|
-
}
|
|
1589
|
-
/**
|
|
1590
|
-
*
|
|
1591
|
-
* @summary PIN login and hand out token
|
|
1592
|
-
* @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
|
|
1593
|
-
* @param {*} [options] Override http request option.
|
|
1594
|
-
* @deprecated
|
|
1595
|
-
* @throws {RequiredError}
|
|
1596
|
-
* @memberof AuthenticateApi
|
|
1597
|
-
*/
|
|
1598
|
-
pinAuthentication(requestParameters, options) {
|
|
1599
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).pinAuthentication(requestParameters.authenticationPinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1600
|
-
}
|
|
1601
1341
|
/**
|
|
1602
1342
|
*
|
|
1603
1343
|
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
@@ -11267,12 +11007,15 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11267
11007
|
* @summary Returns all existing transfers
|
|
11268
11008
|
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
11269
11009
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11010
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
11011
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
11012
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost, manualCreation, manualDeletion
|
|
11270
11013
|
* @param {number} [take] How many transfers the endpoint should return
|
|
11271
11014
|
* @param {number} [skip] How many transfers should be skipped (for pagination)
|
|
11272
11015
|
* @param {*} [options] Override http request option.
|
|
11273
11016
|
* @throws {RequiredError}
|
|
11274
11017
|
*/
|
|
11275
|
-
getAllTransfers: async (fromDate, tillDate, take, skip, options = {}) => {
|
|
11018
|
+
getAllTransfers: async (fromDate, tillDate, fromId, toId, category, take, skip, options = {}) => {
|
|
11276
11019
|
const localVarPath = `/transfers`;
|
|
11277
11020
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11278
11021
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11292,6 +11035,15 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11292
11035
|
if (tillDate !== undefined) {
|
|
11293
11036
|
localVarQueryParameter['tillDate'] = tillDate;
|
|
11294
11037
|
}
|
|
11038
|
+
if (fromId !== undefined) {
|
|
11039
|
+
localVarQueryParameter['fromId'] = fromId;
|
|
11040
|
+
}
|
|
11041
|
+
if (toId !== undefined) {
|
|
11042
|
+
localVarQueryParameter['toId'] = toId;
|
|
11043
|
+
}
|
|
11044
|
+
if (category !== undefined) {
|
|
11045
|
+
localVarQueryParameter['category'] = category;
|
|
11046
|
+
}
|
|
11295
11047
|
if (take !== undefined) {
|
|
11296
11048
|
localVarQueryParameter['take'] = take;
|
|
11297
11049
|
}
|
|
@@ -11503,13 +11255,16 @@ const TransfersApiFp = function (configuration) {
|
|
|
11503
11255
|
* @summary Returns all existing transfers
|
|
11504
11256
|
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
11505
11257
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11258
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
11259
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
11260
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost, manualCreation, manualDeletion
|
|
11506
11261
|
* @param {number} [take] How many transfers the endpoint should return
|
|
11507
11262
|
* @param {number} [skip] How many transfers should be skipped (for pagination)
|
|
11508
11263
|
* @param {*} [options] Override http request option.
|
|
11509
11264
|
* @throws {RequiredError}
|
|
11510
11265
|
*/
|
|
11511
|
-
async getAllTransfers(fromDate, tillDate, take, skip, options) {
|
|
11512
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTransfers(fromDate, tillDate, take, skip, options);
|
|
11266
|
+
async getAllTransfers(fromDate, tillDate, fromId, toId, category, take, skip, options) {
|
|
11267
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTransfers(fromDate, tillDate, fromId, toId, category, take, skip, options);
|
|
11513
11268
|
const index = configuration?.serverIndex ?? 0;
|
|
11514
11269
|
const operationBasePath = base_1.operationServerMap['TransfersApi.getAllTransfers']?.[index]?.url;
|
|
11515
11270
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -11611,7 +11366,7 @@ const TransfersApiFactory = function (configuration, basePath, axios) {
|
|
|
11611
11366
|
* @throws {RequiredError}
|
|
11612
11367
|
*/
|
|
11613
11368
|
getAllTransfers(requestParameters = {}, options) {
|
|
11614
|
-
return localVarFp.getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
11369
|
+
return localVarFp.getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, requestParameters.category, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
11615
11370
|
},
|
|
11616
11371
|
/**
|
|
11617
11372
|
*
|
|
@@ -11694,7 +11449,7 @@ class TransfersApi extends base_1.BaseAPI {
|
|
|
11694
11449
|
* @memberof TransfersApi
|
|
11695
11450
|
*/
|
|
11696
11451
|
getAllTransfers(requestParameters = {}, options) {
|
|
11697
|
-
return (0, exports.TransfersApiFp)(this.configuration).getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
11452
|
+
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));
|
|
11698
11453
|
}
|
|
11699
11454
|
/**
|
|
11700
11455
|
*
|
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.fcdff9b",
|
|
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,10 +16,10 @@
|
|
|
16
16
|
"clean": "rm -rf src dist"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"axios": "1.
|
|
19
|
+
"axios": "1.16.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@openapitools/openapi-generator-cli": "2.
|
|
22
|
+
"@openapitools/openapi-generator-cli": "2.34.0",
|
|
23
23
|
"typescript": "5.9.3"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|