@fenixalliance/abs-api-client 1.0.12 → 1.0.14
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/app/index.js +3 -3
- package/app/index.ts +1 -1
- package/clients/authService/core/ApiError.js +20 -0
- package/clients/authService/core/ApiError.ts +25 -0
- package/clients/authService/core/ApiRequestOptions.js +2 -0
- package/clients/authService/core/ApiRequestOptions.ts +17 -0
- package/clients/authService/core/ApiResult.js +2 -0
- package/clients/authService/core/ApiResult.ts +11 -0
- package/clients/authService/core/CancelablePromise.js +104 -0
- package/clients/authService/core/CancelablePromise.ts +131 -0
- package/clients/authService/core/OpenAPI.js +14 -0
- package/clients/authService/core/OpenAPI.ts +32 -0
- package/clients/authService/core/request.js +294 -0
- package/clients/authService/core/request.ts +322 -0
- package/clients/authService/index.js +28 -0
- package/clients/authService/index.ts +48 -0
- package/clients/authService/models/AccessTokenResponse.js +2 -0
- package/clients/authService/models/AccessTokenResponse.ts +11 -0
- package/clients/authService/models/AccountHolderCreateDto.js +12 -0
- package/clients/authService/models/AccountHolderCreateDto.ts +41 -0
- package/clients/authService/models/AccountHolderCreateDtoEnvelope.js +2 -0
- package/clients/authService/models/AccountHolderCreateDtoEnvelope.ts +14 -0
- package/clients/authService/models/ApiAuthorizationResult.js +2 -0
- package/clients/authService/models/ApiAuthorizationResult.ts +17 -0
- package/clients/authService/models/ApiAuthorizationResultEnvelope.js +2 -0
- package/clients/authService/models/ApiAuthorizationResultEnvelope.ts +14 -0
- package/clients/authService/models/EnrollmentId.js +2 -0
- package/clients/authService/models/EnrollmentId.ts +5 -0
- package/clients/authService/models/ErrorEnvelope.js +2 -0
- package/clients/authService/models/ErrorEnvelope.ts +12 -0
- package/clients/authService/models/ForgotPasswordRequest.js +2 -0
- package/clients/authService/models/ForgotPasswordRequest.ts +8 -0
- package/clients/authService/models/HttpValidationProblemDetails.js +2 -0
- package/clients/authService/models/HttpValidationProblemDetails.ts +5 -0
- package/clients/authService/models/InfoRequest.js +2 -0
- package/clients/authService/models/InfoRequest.ts +10 -0
- package/clients/authService/models/InfoResponse.js +2 -0
- package/clients/authService/models/InfoResponse.ts +9 -0
- package/clients/authService/models/JsonWebKey.js +2 -0
- package/clients/authService/models/JsonWebKey.ts +13 -0
- package/clients/authService/models/JsonWebKeySet.js +2 -0
- package/clients/authService/models/JsonWebKeySet.ts +9 -0
- package/clients/authService/models/JsonWebKeySetEnvelope.js +2 -0
- package/clients/authService/models/JsonWebKeySetEnvelope.ts +14 -0
- package/clients/authService/models/JsonWebToken.js +2 -0
- package/clients/authService/models/JsonWebToken.ts +15 -0
- package/clients/authService/models/JsonWebTokenEnvelope.js +2 -0
- package/clients/authService/models/JsonWebTokenEnvelope.ts +14 -0
- package/clients/authService/models/JsonWebTokenHeader.js +2 -0
- package/clients/authService/models/JsonWebTokenHeader.ts +11 -0
- package/clients/authService/models/JsonWebTokenPayload.js +2 -0
- package/clients/authService/models/JsonWebTokenPayload.ts +17 -0
- package/clients/authService/models/LoginRequest.js +2 -0
- package/clients/authService/models/LoginRequest.ts +11 -0
- package/clients/authService/models/OAuthTokenRequest.js +2 -0
- package/clients/authService/models/OAuthTokenRequest.ts +12 -0
- package/clients/authService/models/OpenIdConfiguration.js +2 -0
- package/clients/authService/models/OpenIdConfiguration.ts +19 -0
- package/clients/authService/models/OpenIdConfigurationEnvelope.js +2 -0
- package/clients/authService/models/OpenIdConfigurationEnvelope.ts +14 -0
- package/clients/authService/models/RefreshRequest.js +2 -0
- package/clients/authService/models/RefreshRequest.ts +8 -0
- package/clients/authService/models/RegisterRequest.js +2 -0
- package/clients/authService/models/RegisterRequest.ts +9 -0
- package/clients/authService/models/ResendConfirmationEmailRequest.js +2 -0
- package/clients/authService/models/ResendConfirmationEmailRequest.ts +8 -0
- package/clients/authService/models/ResetPasswordRequest.js +2 -0
- package/clients/authService/models/ResetPasswordRequest.ts +10 -0
- package/clients/authService/models/SigninModel.js +2 -0
- package/clients/authService/models/SigninModel.ts +9 -0
- package/clients/authService/models/StringListEnvelope.js +2 -0
- package/clients/authService/models/StringListEnvelope.ts +13 -0
- package/clients/authService/models/TenantId.js +2 -0
- package/clients/authService/models/TenantId.ts +5 -0
- package/clients/authService/models/TwoFactorRequest.js +2 -0
- package/clients/authService/models/TwoFactorRequest.ts +12 -0
- package/clients/authService/models/TwoFactorResponse.js +2 -0
- package/clients/authService/models/TwoFactorResponse.ts +12 -0
- package/clients/authService/models/UserId.js +2 -0
- package/clients/authService/models/UserId.ts +5 -0
- package/clients/authService/services/ApplicationsService.js +112 -0
- package/clients/authService/services/ApplicationsService.ts +132 -0
- package/clients/authService/services/AuthService.js +246 -0
- package/clients/authService/services/AuthService.ts +293 -0
- package/clients/authService/services/CheckerService.js +22 -0
- package/clients/authService/services/CheckerService.ts +25 -0
- package/clients/{holderService/services/TenantsService.js → authService/services/OAuthService.js} +52 -51
- package/clients/authService/services/OAuthService.ts +183 -0
- package/clients/authService/services/ResourceService.js +22 -0
- package/clients/authService/services/ResourceService.ts +25 -0
- package/clients/authService/services/UserInfoService.js +36 -0
- package/clients/authService/services/UserInfoService.ts +41 -0
- package/clients/cartService/index.js +3 -7
- package/clients/cartService/index.ts +1 -3
- package/clients/cartService/services/{CartService.js → CartsService.js} +3 -3
- package/clients/cartService/services/{CartService.ts → CartsService.ts} +1 -1
- package/clients/cartService/services/WishListsService.js +0 -321
- package/clients/cartService/services/WishListsService.ts +0 -373
- package/clients/holderService/index.js +1 -5
- package/clients/holderService/index.ts +0 -2
- package/clients/holderService/services/UserService.js +143 -0
- package/clients/holderService/services/UserService.ts +166 -0
- package/clients/identityService/index.js +3 -1
- package/clients/identityService/index.ts +13 -0
- package/clients/identityService/models/AccessTokenResponse.js +2 -0
- package/clients/identityService/models/AccessTokenResponse.ts +11 -0
- package/clients/identityService/models/ForgotPasswordRequest.js +2 -0
- package/clients/identityService/models/ForgotPasswordRequest.ts +8 -0
- package/clients/identityService/models/HttpValidationProblemDetails.js +2 -0
- package/clients/identityService/models/HttpValidationProblemDetails.ts +5 -0
- package/clients/identityService/models/InfoRequest.js +2 -0
- package/clients/identityService/models/InfoRequest.ts +10 -0
- package/clients/identityService/models/InfoResponse.js +2 -0
- package/clients/identityService/models/InfoResponse.ts +9 -0
- package/clients/identityService/models/LoginRequest.js +2 -0
- package/clients/identityService/models/LoginRequest.ts +11 -0
- package/clients/identityService/models/RefreshRequest.js +2 -0
- package/clients/identityService/models/RefreshRequest.ts +8 -0
- package/clients/identityService/models/RegisterRequest.js +2 -0
- package/clients/identityService/models/RegisterRequest.ts +9 -0
- package/clients/identityService/models/ResendConfirmationEmailRequest.js +2 -0
- package/clients/identityService/models/ResendConfirmationEmailRequest.ts +8 -0
- package/clients/identityService/models/ResetPasswordRequest.js +2 -0
- package/clients/identityService/models/ResetPasswordRequest.ts +10 -0
- package/clients/identityService/models/TwoFactorRequest.js +2 -0
- package/clients/identityService/models/TwoFactorRequest.ts +12 -0
- package/clients/identityService/models/TwoFactorResponse.js +2 -0
- package/clients/identityService/models/TwoFactorResponse.ts +12 -0
- package/clients/identityService/services/FenixAllianceAbsModulesWebService.js +246 -0
- package/clients/identityService/services/FenixAllianceAbsModulesWebService.ts +293 -0
- package/clients/tenantService/services/TenantsService.js +33 -57
- package/clients/tenantService/services/TenantsService.ts +33 -65
- package/package.json +1 -1
- package/schemas/authService/schema.s.js +6 -0
- package/schemas/authService/schema.s.ts +894 -0
- package/schemas/identityService/schema.s.ts +382 -1
- package/schemas/tenantService/schema.s.ts +144 -70
- package/tsconfig.json +1 -1
- package/clients/cartService/services/CartLinesService.js +0 -173
- package/clients/cartService/services/CartLinesService.ts +0 -203
- package/clients/cartService/services/ECommerceService.js +0 -1104
- package/clients/cartService/services/ECommerceService.ts +0 -1289
- package/clients/holderService/services/IdentityService.js +0 -364
- package/clients/holderService/services/IdentityService.ts +0 -421
- package/clients/holderService/services/TenantsService.ts +0 -176
package/clients/{holderService/services/TenantsService.js → authService/services/OAuthService.js}
RENAMED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.OAuthService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
-
class
|
|
6
|
+
class OAuthService {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* Get the tenants that the current user is enrolled in
|
|
8
|
+
* @param tenantId
|
|
10
9
|
* @param xApiVersion
|
|
11
|
-
* @returns
|
|
10
|
+
* @returns ApiAuthorizationResultEnvelope OK
|
|
12
11
|
* @throws ApiError
|
|
13
12
|
*/
|
|
14
|
-
static
|
|
13
|
+
static getApiV2OAuthWhoAmI(tenantId, xApiVersion) {
|
|
15
14
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
16
15
|
method: 'GET',
|
|
17
|
-
url: '/api/v2/
|
|
16
|
+
url: '/api/v2/OAuth/WhoAmI',
|
|
18
17
|
headers: {
|
|
19
18
|
'x-api-version': xApiVersion,
|
|
20
19
|
},
|
|
20
|
+
query: {
|
|
21
|
+
'tenantId': tenantId,
|
|
22
|
+
},
|
|
21
23
|
errors: {
|
|
22
24
|
401: `Unauthorized`,
|
|
23
25
|
403: `Forbidden`,
|
|
@@ -25,19 +27,20 @@ class TenantsService {
|
|
|
25
27
|
});
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
|
-
* Count the tenants that the current user is enrolled in
|
|
29
|
-
* Count the tenants that the current user is enrolled in
|
|
30
30
|
* @param xApiVersion
|
|
31
|
-
* @
|
|
31
|
+
* @param requestBody
|
|
32
|
+
* @returns JsonWebTokenEnvelope OK
|
|
32
33
|
* @throws ApiError
|
|
33
34
|
*/
|
|
34
|
-
static
|
|
35
|
+
static postApiV2OAuthToken(xApiVersion, requestBody) {
|
|
35
36
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
36
|
-
method: '
|
|
37
|
-
url: '/api/v2/
|
|
37
|
+
method: 'POST',
|
|
38
|
+
url: '/api/v2/OAuth/Token',
|
|
38
39
|
headers: {
|
|
39
40
|
'x-api-version': xApiVersion,
|
|
40
41
|
},
|
|
42
|
+
body: requestBody,
|
|
43
|
+
mediaType: 'application/json',
|
|
41
44
|
errors: {
|
|
42
45
|
401: `Unauthorized`,
|
|
43
46
|
403: `Forbidden`,
|
|
@@ -45,19 +48,23 @@ class TenantsService {
|
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
51
|
+
* @param tenantId
|
|
52
|
+
* @param userId
|
|
50
53
|
* @param xApiVersion
|
|
51
|
-
* @returns
|
|
54
|
+
* @returns StringListEnvelope OK
|
|
52
55
|
* @throws ApiError
|
|
53
56
|
*/
|
|
54
|
-
static
|
|
57
|
+
static getApiV2OAuthPermissions(tenantId, userId, xApiVersion) {
|
|
55
58
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
56
59
|
method: 'GET',
|
|
57
|
-
url: '/api/v2/
|
|
60
|
+
url: '/api/v2/OAuth/Permissions',
|
|
58
61
|
headers: {
|
|
59
62
|
'x-api-version': xApiVersion,
|
|
60
63
|
},
|
|
64
|
+
query: {
|
|
65
|
+
'tenantId': tenantId,
|
|
66
|
+
'userId': userId,
|
|
67
|
+
},
|
|
61
68
|
errors: {
|
|
62
69
|
401: `Unauthorized`,
|
|
63
70
|
403: `Forbidden`,
|
|
@@ -65,87 +72,81 @@ class TenantsService {
|
|
|
65
72
|
});
|
|
66
73
|
}
|
|
67
74
|
/**
|
|
68
|
-
* Get the list of enrollments for the current user
|
|
69
|
-
* Get the list of enrollments for the current user
|
|
70
75
|
* @param xApiVersion
|
|
71
|
-
* @
|
|
76
|
+
* @param requestBody
|
|
77
|
+
* @returns JsonWebTokenEnvelope OK
|
|
72
78
|
* @throws ApiError
|
|
73
79
|
*/
|
|
74
|
-
static
|
|
80
|
+
static postApiV2OAuthSignIn(xApiVersion, requestBody) {
|
|
75
81
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
76
|
-
method: '
|
|
77
|
-
url: '/api/v2/
|
|
82
|
+
method: 'POST',
|
|
83
|
+
url: '/api/v2/OAuth/SignIn',
|
|
78
84
|
headers: {
|
|
79
85
|
'x-api-version': xApiVersion,
|
|
80
86
|
},
|
|
87
|
+
body: requestBody,
|
|
88
|
+
mediaType: 'application/json',
|
|
81
89
|
errors: {
|
|
90
|
+
400: `Bad Request`,
|
|
82
91
|
401: `Unauthorized`,
|
|
83
92
|
},
|
|
84
93
|
});
|
|
85
94
|
}
|
|
86
95
|
/**
|
|
87
|
-
* Get the list of enrollments for the current user
|
|
88
|
-
* Get the list of enrollments for the current user
|
|
89
96
|
* @param xApiVersion
|
|
90
|
-
* @returns
|
|
97
|
+
* @returns AccountHolderCreateDtoEnvelope OK
|
|
91
98
|
* @throws ApiError
|
|
92
99
|
*/
|
|
93
|
-
static
|
|
100
|
+
static getApiV2OAuthSignIn(xApiVersion) {
|
|
94
101
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
95
102
|
method: 'GET',
|
|
96
|
-
url: '/api/v2/
|
|
103
|
+
url: '/api/v2/OAuth/SignIn',
|
|
97
104
|
headers: {
|
|
98
105
|
'x-api-version': xApiVersion,
|
|
99
106
|
},
|
|
100
107
|
errors: {
|
|
108
|
+
400: `Bad Request`,
|
|
101
109
|
401: `Unauthorized`,
|
|
102
110
|
},
|
|
103
111
|
});
|
|
104
112
|
}
|
|
105
113
|
/**
|
|
106
|
-
*
|
|
107
|
-
* Get a single TenantEnrollment by its ID
|
|
108
|
-
* @param enrollmentId
|
|
114
|
+
* @param applicationId
|
|
109
115
|
* @param xApiVersion
|
|
110
|
-
* @
|
|
111
|
-
* @returns TenantEnrolmentDtoEnvelope OK
|
|
116
|
+
* @returns JsonWebKeySetEnvelope OK
|
|
112
117
|
* @throws ApiError
|
|
113
118
|
*/
|
|
114
|
-
static
|
|
119
|
+
static getApiV2OAuthKeys(applicationId, xApiVersion) {
|
|
115
120
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
116
121
|
method: 'GET',
|
|
117
|
-
url: '/api/v2/
|
|
122
|
+
url: '/api/v2/OAuth/{applicationId}/Keys',
|
|
118
123
|
path: {
|
|
119
|
-
'
|
|
124
|
+
'applicationId': applicationId,
|
|
120
125
|
},
|
|
121
126
|
headers: {
|
|
122
127
|
'x-api-version': xApiVersion,
|
|
123
128
|
},
|
|
124
|
-
body: requestBody,
|
|
125
|
-
mediaType: 'application/json',
|
|
126
|
-
errors: {
|
|
127
|
-
401: `Unauthorized`,
|
|
128
|
-
},
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
133
|
-
*
|
|
132
|
+
* @param tenantId
|
|
133
|
+
* @param applicationId
|
|
134
134
|
* @param xApiVersion
|
|
135
|
-
* @returns
|
|
135
|
+
* @returns OpenIdConfigurationEnvelope OK
|
|
136
136
|
* @throws ApiError
|
|
137
137
|
*/
|
|
138
|
-
static
|
|
138
|
+
static getApiV2OAuthWellKnownOpenIdConfiguration(tenantId, applicationId, xApiVersion) {
|
|
139
139
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
140
140
|
method: 'GET',
|
|
141
|
-
url: '/api/v2/
|
|
141
|
+
url: '/api/v2/OAuth/{tenantId}/{applicationId}/.Well-Known/OpenId-Configuration',
|
|
142
|
+
path: {
|
|
143
|
+
'tenantId': tenantId,
|
|
144
|
+
'applicationId': applicationId,
|
|
145
|
+
},
|
|
142
146
|
headers: {
|
|
143
147
|
'x-api-version': xApiVersion,
|
|
144
148
|
},
|
|
145
|
-
errors: {
|
|
146
|
-
401: `Unauthorized`,
|
|
147
|
-
},
|
|
148
149
|
});
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
|
-
exports.
|
|
152
|
+
exports.OAuthService = OAuthService;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { AccountHolderCreateDtoEnvelope } from '../models/AccountHolderCreateDtoEnvelope';
|
|
6
|
+
import type { ApiAuthorizationResultEnvelope } from '../models/ApiAuthorizationResultEnvelope';
|
|
7
|
+
import type { JsonWebKeySetEnvelope } from '../models/JsonWebKeySetEnvelope';
|
|
8
|
+
import type { JsonWebTokenEnvelope } from '../models/JsonWebTokenEnvelope';
|
|
9
|
+
import type { OAuthTokenRequest } from '../models/OAuthTokenRequest';
|
|
10
|
+
import type { OpenIdConfigurationEnvelope } from '../models/OpenIdConfigurationEnvelope';
|
|
11
|
+
import type { SigninModel } from '../models/SigninModel';
|
|
12
|
+
import type { StringListEnvelope } from '../models/StringListEnvelope';
|
|
13
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
14
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
15
|
+
import { request as __request } from '../core/request';
|
|
16
|
+
export class OAuthService {
|
|
17
|
+
/**
|
|
18
|
+
* @param tenantId
|
|
19
|
+
* @param xApiVersion
|
|
20
|
+
* @returns ApiAuthorizationResultEnvelope OK
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
public static getApiV2OAuthWhoAmI(
|
|
24
|
+
tenantId?: string,
|
|
25
|
+
xApiVersion?: string,
|
|
26
|
+
): CancelablePromise<ApiAuthorizationResultEnvelope> {
|
|
27
|
+
return __request(OpenAPI, {
|
|
28
|
+
method: 'GET',
|
|
29
|
+
url: '/api/v2/OAuth/WhoAmI',
|
|
30
|
+
headers: {
|
|
31
|
+
'x-api-version': xApiVersion,
|
|
32
|
+
},
|
|
33
|
+
query: {
|
|
34
|
+
'tenantId': tenantId,
|
|
35
|
+
},
|
|
36
|
+
errors: {
|
|
37
|
+
401: `Unauthorized`,
|
|
38
|
+
403: `Forbidden`,
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @param xApiVersion
|
|
44
|
+
* @param requestBody
|
|
45
|
+
* @returns JsonWebTokenEnvelope OK
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
public static postApiV2OAuthToken(
|
|
49
|
+
xApiVersion?: string,
|
|
50
|
+
requestBody?: OAuthTokenRequest,
|
|
51
|
+
): CancelablePromise<JsonWebTokenEnvelope> {
|
|
52
|
+
return __request(OpenAPI, {
|
|
53
|
+
method: 'POST',
|
|
54
|
+
url: '/api/v2/OAuth/Token',
|
|
55
|
+
headers: {
|
|
56
|
+
'x-api-version': xApiVersion,
|
|
57
|
+
},
|
|
58
|
+
body: requestBody,
|
|
59
|
+
mediaType: 'application/json',
|
|
60
|
+
errors: {
|
|
61
|
+
401: `Unauthorized`,
|
|
62
|
+
403: `Forbidden`,
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @param tenantId
|
|
68
|
+
* @param userId
|
|
69
|
+
* @param xApiVersion
|
|
70
|
+
* @returns StringListEnvelope OK
|
|
71
|
+
* @throws ApiError
|
|
72
|
+
*/
|
|
73
|
+
public static getApiV2OAuthPermissions(
|
|
74
|
+
tenantId: string,
|
|
75
|
+
userId?: string,
|
|
76
|
+
xApiVersion?: string,
|
|
77
|
+
): CancelablePromise<StringListEnvelope> {
|
|
78
|
+
return __request(OpenAPI, {
|
|
79
|
+
method: 'GET',
|
|
80
|
+
url: '/api/v2/OAuth/Permissions',
|
|
81
|
+
headers: {
|
|
82
|
+
'x-api-version': xApiVersion,
|
|
83
|
+
},
|
|
84
|
+
query: {
|
|
85
|
+
'tenantId': tenantId,
|
|
86
|
+
'userId': userId,
|
|
87
|
+
},
|
|
88
|
+
errors: {
|
|
89
|
+
401: `Unauthorized`,
|
|
90
|
+
403: `Forbidden`,
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @param xApiVersion
|
|
96
|
+
* @param requestBody
|
|
97
|
+
* @returns JsonWebTokenEnvelope OK
|
|
98
|
+
* @throws ApiError
|
|
99
|
+
*/
|
|
100
|
+
public static postApiV2OAuthSignIn(
|
|
101
|
+
xApiVersion?: string,
|
|
102
|
+
requestBody?: SigninModel,
|
|
103
|
+
): CancelablePromise<JsonWebTokenEnvelope> {
|
|
104
|
+
return __request(OpenAPI, {
|
|
105
|
+
method: 'POST',
|
|
106
|
+
url: '/api/v2/OAuth/SignIn',
|
|
107
|
+
headers: {
|
|
108
|
+
'x-api-version': xApiVersion,
|
|
109
|
+
},
|
|
110
|
+
body: requestBody,
|
|
111
|
+
mediaType: 'application/json',
|
|
112
|
+
errors: {
|
|
113
|
+
400: `Bad Request`,
|
|
114
|
+
401: `Unauthorized`,
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @param xApiVersion
|
|
120
|
+
* @returns AccountHolderCreateDtoEnvelope OK
|
|
121
|
+
* @throws ApiError
|
|
122
|
+
*/
|
|
123
|
+
public static getApiV2OAuthSignIn(
|
|
124
|
+
xApiVersion?: string,
|
|
125
|
+
): CancelablePromise<AccountHolderCreateDtoEnvelope> {
|
|
126
|
+
return __request(OpenAPI, {
|
|
127
|
+
method: 'GET',
|
|
128
|
+
url: '/api/v2/OAuth/SignIn',
|
|
129
|
+
headers: {
|
|
130
|
+
'x-api-version': xApiVersion,
|
|
131
|
+
},
|
|
132
|
+
errors: {
|
|
133
|
+
400: `Bad Request`,
|
|
134
|
+
401: `Unauthorized`,
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* @param applicationId
|
|
140
|
+
* @param xApiVersion
|
|
141
|
+
* @returns JsonWebKeySetEnvelope OK
|
|
142
|
+
* @throws ApiError
|
|
143
|
+
*/
|
|
144
|
+
public static getApiV2OAuthKeys(
|
|
145
|
+
applicationId: string,
|
|
146
|
+
xApiVersion?: string,
|
|
147
|
+
): CancelablePromise<JsonWebKeySetEnvelope> {
|
|
148
|
+
return __request(OpenAPI, {
|
|
149
|
+
method: 'GET',
|
|
150
|
+
url: '/api/v2/OAuth/{applicationId}/Keys',
|
|
151
|
+
path: {
|
|
152
|
+
'applicationId': applicationId,
|
|
153
|
+
},
|
|
154
|
+
headers: {
|
|
155
|
+
'x-api-version': xApiVersion,
|
|
156
|
+
},
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @param tenantId
|
|
161
|
+
* @param applicationId
|
|
162
|
+
* @param xApiVersion
|
|
163
|
+
* @returns OpenIdConfigurationEnvelope OK
|
|
164
|
+
* @throws ApiError
|
|
165
|
+
*/
|
|
166
|
+
public static getApiV2OAuthWellKnownOpenIdConfiguration(
|
|
167
|
+
tenantId: string,
|
|
168
|
+
applicationId: string,
|
|
169
|
+
xApiVersion?: string,
|
|
170
|
+
): CancelablePromise<OpenIdConfigurationEnvelope> {
|
|
171
|
+
return __request(OpenAPI, {
|
|
172
|
+
method: 'GET',
|
|
173
|
+
url: '/api/v2/OAuth/{tenantId}/{applicationId}/.Well-Known/OpenId-Configuration',
|
|
174
|
+
path: {
|
|
175
|
+
'tenantId': tenantId,
|
|
176
|
+
'applicationId': applicationId,
|
|
177
|
+
},
|
|
178
|
+
headers: {
|
|
179
|
+
'x-api-version': xApiVersion,
|
|
180
|
+
},
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class ResourceService {
|
|
7
|
+
/**
|
|
8
|
+
* @param xApiVersion
|
|
9
|
+
* @returns any OK
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static getApiV2IdentityServiceResourceMessage(xApiVersion) {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/api/v2/IdentityService/Resource/message',
|
|
16
|
+
headers: {
|
|
17
|
+
'x-api-version': xApiVersion,
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.ResourceService = ResourceService;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
7
|
+
import { request as __request } from '../core/request';
|
|
8
|
+
export class ResourceService {
|
|
9
|
+
/**
|
|
10
|
+
* @param xApiVersion
|
|
11
|
+
* @returns any OK
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
public static getApiV2IdentityServiceResourceMessage(
|
|
15
|
+
xApiVersion?: string,
|
|
16
|
+
): CancelablePromise<any> {
|
|
17
|
+
return __request(OpenAPI, {
|
|
18
|
+
method: 'GET',
|
|
19
|
+
url: '/api/v2/IdentityService/Resource/message',
|
|
20
|
+
headers: {
|
|
21
|
+
'x-api-version': xApiVersion,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserInfoService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class UserInfoService {
|
|
7
|
+
/**
|
|
8
|
+
* @param xApiVersion
|
|
9
|
+
* @returns any OK
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static getConnectUserinfo(xApiVersion) {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/connect/userinfo',
|
|
16
|
+
headers: {
|
|
17
|
+
'x-api-version': xApiVersion,
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @param xApiVersion
|
|
23
|
+
* @returns any OK
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
static postConnectUserinfo(xApiVersion) {
|
|
27
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
28
|
+
method: 'POST',
|
|
29
|
+
url: '/connect/userinfo',
|
|
30
|
+
headers: {
|
|
31
|
+
'x-api-version': xApiVersion,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UserInfoService = UserInfoService;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
7
|
+
import { request as __request } from '../core/request';
|
|
8
|
+
export class UserInfoService {
|
|
9
|
+
/**
|
|
10
|
+
* @param xApiVersion
|
|
11
|
+
* @returns any OK
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
public static getConnectUserinfo(
|
|
15
|
+
xApiVersion?: string,
|
|
16
|
+
): CancelablePromise<any> {
|
|
17
|
+
return __request(OpenAPI, {
|
|
18
|
+
method: 'GET',
|
|
19
|
+
url: '/connect/userinfo',
|
|
20
|
+
headers: {
|
|
21
|
+
'x-api-version': xApiVersion,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @param xApiVersion
|
|
27
|
+
* @returns any OK
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
public static postConnectUserinfo(
|
|
31
|
+
xApiVersion?: string,
|
|
32
|
+
): CancelablePromise<any> {
|
|
33
|
+
return __request(OpenAPI, {
|
|
34
|
+
method: 'POST',
|
|
35
|
+
url: '/connect/userinfo',
|
|
36
|
+
headers: {
|
|
37
|
+
'x-api-version': xApiVersion,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WishListsService = exports.RecordsService = exports.
|
|
3
|
+
exports.WishListsService = exports.RecordsService = exports.CompareService = exports.CartsService = exports.ItemCartRecordDto = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
|
|
4
4
|
/* generated using openapi-typescript-codegen -- do no edit */
|
|
5
5
|
/* istanbul ignore file */
|
|
6
6
|
/* tslint:disable */
|
|
@@ -14,14 +14,10 @@ var OpenAPI_1 = require("./core/OpenAPI");
|
|
|
14
14
|
Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } });
|
|
15
15
|
var ItemCartRecordDto_1 = require("./models/ItemCartRecordDto");
|
|
16
16
|
Object.defineProperty(exports, "ItemCartRecordDto", { enumerable: true, get: function () { return ItemCartRecordDto_1.ItemCartRecordDto; } });
|
|
17
|
-
var
|
|
18
|
-
Object.defineProperty(exports, "
|
|
19
|
-
var CartLinesService_1 = require("./services/CartLinesService");
|
|
20
|
-
Object.defineProperty(exports, "CartLinesService", { enumerable: true, get: function () { return CartLinesService_1.CartLinesService; } });
|
|
17
|
+
var CartsService_1 = require("./services/CartsService");
|
|
18
|
+
Object.defineProperty(exports, "CartsService", { enumerable: true, get: function () { return CartsService_1.CartsService; } });
|
|
21
19
|
var CompareService_1 = require("./services/CompareService");
|
|
22
20
|
Object.defineProperty(exports, "CompareService", { enumerable: true, get: function () { return CompareService_1.CompareService; } });
|
|
23
|
-
var ECommerceService_1 = require("./services/ECommerceService");
|
|
24
|
-
Object.defineProperty(exports, "ECommerceService", { enumerable: true, get: function () { return ECommerceService_1.ECommerceService; } });
|
|
25
21
|
var RecordsService_1 = require("./services/RecordsService");
|
|
26
22
|
Object.defineProperty(exports, "RecordsService", { enumerable: true, get: function () { return RecordsService_1.RecordsService; } });
|
|
27
23
|
var WishListsService_1 = require("./services/WishListsService");
|
|
@@ -35,9 +35,7 @@ export type { WishListDtoEnvelope } from './models/WishListDtoEnvelope';
|
|
|
35
35
|
export type { WishListItemRecordDto } from './models/WishListItemRecordDto';
|
|
36
36
|
export type { WishListUpdateDto } from './models/WishListUpdateDto';
|
|
37
37
|
|
|
38
|
-
export {
|
|
39
|
-
export { CartLinesService } from './services/CartLinesService';
|
|
38
|
+
export { CartsService } from './services/CartsService';
|
|
40
39
|
export { CompareService } from './services/CompareService';
|
|
41
|
-
export { ECommerceService } from './services/ECommerceService';
|
|
42
40
|
export { RecordsService } from './services/RecordsService';
|
|
43
41
|
export { WishListsService } from './services/WishListsService';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CartsService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
-
class
|
|
6
|
+
class CartsService {
|
|
7
7
|
/**
|
|
8
8
|
* Get all business owned contacts
|
|
9
9
|
* Get all business owned contacts
|
|
@@ -1101,4 +1101,4 @@ class CartService {
|
|
|
1101
1101
|
});
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
-
exports.
|
|
1104
|
+
exports.CartsService = CartsService;
|
|
@@ -25,7 +25,7 @@ import type { WishListUpdateDto } from '../models/WishListUpdateDto';
|
|
|
25
25
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
26
26
|
import { OpenAPI } from '../core/OpenAPI';
|
|
27
27
|
import { request as __request } from '../core/request';
|
|
28
|
-
export class
|
|
28
|
+
export class CartsService {
|
|
29
29
|
/**
|
|
30
30
|
* Get all business owned contacts
|
|
31
31
|
* Get all business owned contacts
|