@emilgroup/auth-sdk 1.0.0-beta.1 → 1.1.0
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/.openapi-generator/FILES +6 -0
- package/README.md +2 -2
- package/api/authservice-api.ts +95 -4
- package/dist/api/authservice-api.d.ts +55 -6
- package/dist/api/authservice-api.js +77 -0
- package/dist/models/create-org-and-user-request-dto.d.ts +78 -0
- package/dist/models/create-org-and-user-request-dto.js +15 -0
- package/dist/models/create-org-and-user-response-class.d.ts +32 -0
- package/dist/models/create-org-and-user-response-class.js +15 -0
- package/dist/models/create-user-response-class.d.ts +25 -0
- package/dist/models/create-user-response-class.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/organization-class.d.ts +108 -0
- package/dist/models/organization-class.js +15 -0
- package/dist/models/role-class.d.ts +54 -0
- package/dist/models/role-class.js +15 -0
- package/dist/models/user-class.d.ts +85 -0
- package/dist/models/user-class.js +15 -0
- package/models/create-org-and-user-request-dto.ts +84 -0
- package/models/create-org-and-user-response-class.ts +38 -0
- package/models/create-user-response-class.ts +31 -0
- package/models/index.ts +6 -0
- package/models/organization-class.ts +114 -0
- package/models/role-class.ts +60 -0
- package/models/user-class.ts +91 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -9,7 +9,10 @@ common.ts
|
|
|
9
9
|
configuration.ts
|
|
10
10
|
git_push.sh
|
|
11
11
|
index.ts
|
|
12
|
+
models/create-org-and-user-request-dto.ts
|
|
13
|
+
models/create-org-and-user-response-class.ts
|
|
12
14
|
models/create-user-request-dto.ts
|
|
15
|
+
models/create-user-response-class.ts
|
|
13
16
|
models/forgot-password-request-dto.ts
|
|
14
17
|
models/get-samllogin-link-request-dto.ts
|
|
15
18
|
models/index.ts
|
|
@@ -17,7 +20,10 @@ models/login-by-samlrequest-dto.ts
|
|
|
17
20
|
models/login-class.ts
|
|
18
21
|
models/login-request-dto.ts
|
|
19
22
|
models/logout-request-dto.ts
|
|
23
|
+
models/organization-class.ts
|
|
20
24
|
models/refresh-token-dto.ts
|
|
21
25
|
models/reset-password-request-dto.ts
|
|
26
|
+
models/role-class.ts
|
|
27
|
+
models/user-class.ts
|
|
22
28
|
package.json
|
|
23
29
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/auth-sdk@1.
|
|
20
|
+
npm install @emilgroup/auth-sdk@1.1.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/auth-sdk@1.
|
|
24
|
+
yarn add @emilgroup/auth-sdk@1.1.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
package/api/authservice-api.ts
CHANGED
|
@@ -21,8 +21,14 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CreateOrgAndUserRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateOrgAndUserResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
24
28
|
import { CreateUserRequestDto } from '../models';
|
|
25
29
|
// @ts-ignore
|
|
30
|
+
import { CreateUserResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
26
32
|
import { ForgotPasswordRequestDto } from '../models';
|
|
27
33
|
// @ts-ignore
|
|
28
34
|
import { LoginBySAMLRequestDto } from '../models';
|
|
@@ -42,6 +48,44 @@ import { ResetPasswordRequestDto } from '../models';
|
|
|
42
48
|
*/
|
|
43
49
|
export const AuthserviceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
50
|
return {
|
|
51
|
+
/**
|
|
52
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
53
|
+
* @summary Register Organization and User using invitation token
|
|
54
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
createOrgAndUser: async (createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
59
|
+
// verify required parameter 'createOrgAndUserRequestDto' is not null or undefined
|
|
60
|
+
assertParamExists('createOrgAndUser', 'createOrgAndUserRequestDto', createOrgAndUserRequestDto)
|
|
61
|
+
const localVarPath = `/authservice/v1/create-org-and-user`;
|
|
62
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
63
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
64
|
+
let baseOptions;
|
|
65
|
+
let baseAccessToken;
|
|
66
|
+
if (configuration) {
|
|
67
|
+
baseOptions = configuration.baseOptions;
|
|
68
|
+
baseAccessToken = configuration.accessToken;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
72
|
+
const localVarHeaderParameter = {} as any;
|
|
73
|
+
const localVarQueryParameter = {} as any;
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
78
|
+
|
|
79
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
80
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
81
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
82
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createOrgAndUserRequestDto, localVarRequestOptions, configuration)
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
url: toPathString(localVarUrlObj),
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
};
|
|
88
|
+
},
|
|
45
89
|
/**
|
|
46
90
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
47
91
|
* @summary Register tenant user after invite
|
|
@@ -440,6 +484,17 @@ export const AuthserviceApiAxiosParamCreator = function (configuration?: Configu
|
|
|
440
484
|
export const AuthserviceApiFp = function(configuration?: Configuration) {
|
|
441
485
|
const localVarAxiosParamCreator = AuthserviceApiAxiosParamCreator(configuration)
|
|
442
486
|
return {
|
|
487
|
+
/**
|
|
488
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
489
|
+
* @summary Register Organization and User using invitation token
|
|
490
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
491
|
+
* @param {*} [options] Override http request option.
|
|
492
|
+
* @throws {RequiredError}
|
|
493
|
+
*/
|
|
494
|
+
async createOrgAndUser(createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrgAndUserResponseClass>> {
|
|
495
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrgAndUser(createOrgAndUserRequestDto, options);
|
|
496
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
497
|
+
},
|
|
443
498
|
/**
|
|
444
499
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
445
500
|
* @summary Register tenant user after invite
|
|
@@ -447,7 +502,7 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
|
|
|
447
502
|
* @param {*} [options] Override http request option.
|
|
448
503
|
* @throws {RequiredError}
|
|
449
504
|
*/
|
|
450
|
-
async createUser(createUserRequestDto: CreateUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
505
|
+
async createUser(createUserRequestDto: CreateUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateUserResponseClass>> {
|
|
451
506
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserRequestDto, options);
|
|
452
507
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
453
508
|
},
|
|
@@ -502,7 +557,7 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
|
|
|
502
557
|
* @param {*} [options] Override http request option.
|
|
503
558
|
* @throws {RequiredError}
|
|
504
559
|
*/
|
|
505
|
-
async logout(logoutRequestDto: LogoutRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
560
|
+
async logout(logoutRequestDto: LogoutRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
506
561
|
const localVarAxiosArgs = await localVarAxiosParamCreator.logout(logoutRequestDto, options);
|
|
507
562
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
508
563
|
},
|
|
@@ -561,6 +616,16 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
|
|
|
561
616
|
export const AuthserviceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
562
617
|
const localVarFp = AuthserviceApiFp(configuration)
|
|
563
618
|
return {
|
|
619
|
+
/**
|
|
620
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
621
|
+
* @summary Register Organization and User using invitation token
|
|
622
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
623
|
+
* @param {*} [options] Override http request option.
|
|
624
|
+
* @throws {RequiredError}
|
|
625
|
+
*/
|
|
626
|
+
createOrgAndUser(createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: any): AxiosPromise<CreateOrgAndUserResponseClass> {
|
|
627
|
+
return localVarFp.createOrgAndUser(createOrgAndUserRequestDto, options).then((request) => request(axios, basePath));
|
|
628
|
+
},
|
|
564
629
|
/**
|
|
565
630
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
566
631
|
* @summary Register tenant user after invite
|
|
@@ -568,7 +633,7 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
|
|
|
568
633
|
* @param {*} [options] Override http request option.
|
|
569
634
|
* @throws {RequiredError}
|
|
570
635
|
*/
|
|
571
|
-
createUser(createUserRequestDto: CreateUserRequestDto, options?: any): AxiosPromise<
|
|
636
|
+
createUser(createUserRequestDto: CreateUserRequestDto, options?: any): AxiosPromise<CreateUserResponseClass> {
|
|
572
637
|
return localVarFp.createUser(createUserRequestDto, options).then((request) => request(axios, basePath));
|
|
573
638
|
},
|
|
574
639
|
/**
|
|
@@ -618,7 +683,7 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
|
|
|
618
683
|
* @param {*} [options] Override http request option.
|
|
619
684
|
* @throws {RequiredError}
|
|
620
685
|
*/
|
|
621
|
-
logout(logoutRequestDto: LogoutRequestDto, options?: any): AxiosPromise<
|
|
686
|
+
logout(logoutRequestDto: LogoutRequestDto, options?: any): AxiosPromise<void> {
|
|
622
687
|
return localVarFp.logout(logoutRequestDto, options).then((request) => request(axios, basePath));
|
|
623
688
|
},
|
|
624
689
|
/**
|
|
@@ -665,6 +730,20 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
|
|
|
665
730
|
};
|
|
666
731
|
};
|
|
667
732
|
|
|
733
|
+
/**
|
|
734
|
+
* Request parameters for createOrgAndUser operation in AuthserviceApi.
|
|
735
|
+
* @export
|
|
736
|
+
* @interface AuthserviceApiCreateOrgAndUserRequest
|
|
737
|
+
*/
|
|
738
|
+
export interface AuthserviceApiCreateOrgAndUserRequest {
|
|
739
|
+
/**
|
|
740
|
+
*
|
|
741
|
+
* @type {CreateOrgAndUserRequestDto}
|
|
742
|
+
* @memberof AuthserviceApiCreateOrgAndUser
|
|
743
|
+
*/
|
|
744
|
+
readonly createOrgAndUserRequestDto: CreateOrgAndUserRequestDto
|
|
745
|
+
}
|
|
746
|
+
|
|
668
747
|
/**
|
|
669
748
|
* Request parameters for createUser operation in AuthserviceApi.
|
|
670
749
|
* @export
|
|
@@ -819,6 +898,18 @@ export interface AuthserviceApiVerifyResetPasswordTokenRequest {
|
|
|
819
898
|
* @extends {BaseAPI}
|
|
820
899
|
*/
|
|
821
900
|
export class AuthserviceApi extends BaseAPI {
|
|
901
|
+
/**
|
|
902
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
903
|
+
* @summary Register Organization and User using invitation token
|
|
904
|
+
* @param {AuthserviceApiCreateOrgAndUserRequest} requestParameters Request parameters.
|
|
905
|
+
* @param {*} [options] Override http request option.
|
|
906
|
+
* @throws {RequiredError}
|
|
907
|
+
* @memberof AuthserviceApi
|
|
908
|
+
*/
|
|
909
|
+
public createOrgAndUser(requestParameters: AuthserviceApiCreateOrgAndUserRequest, options?: AxiosRequestConfig) {
|
|
910
|
+
return AuthserviceApiFp(this.configuration).createOrgAndUser(requestParameters.createOrgAndUserRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
911
|
+
}
|
|
912
|
+
|
|
822
913
|
/**
|
|
823
914
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
824
915
|
* @summary Register tenant user after invite
|
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreateOrgAndUserRequestDto } from '../models';
|
|
16
|
+
import { CreateOrgAndUserResponseClass } from '../models';
|
|
15
17
|
import { CreateUserRequestDto } from '../models';
|
|
18
|
+
import { CreateUserResponseClass } from '../models';
|
|
16
19
|
import { ForgotPasswordRequestDto } from '../models';
|
|
17
20
|
import { LoginBySAMLRequestDto } from '../models';
|
|
18
21
|
import { LoginClass } from '../models';
|
|
@@ -25,6 +28,14 @@ import { ResetPasswordRequestDto } from '../models';
|
|
|
25
28
|
* @export
|
|
26
29
|
*/
|
|
27
30
|
export declare const AuthserviceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
31
|
+
/**
|
|
32
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
33
|
+
* @summary Register Organization and User using invitation token
|
|
34
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
createOrgAndUser: (createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
39
|
/**
|
|
29
40
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
30
41
|
* @summary Register tenant user after invite
|
|
@@ -112,6 +123,14 @@ export declare const AuthserviceApiAxiosParamCreator: (configuration?: Configura
|
|
|
112
123
|
* @export
|
|
113
124
|
*/
|
|
114
125
|
export declare const AuthserviceApiFp: (configuration?: Configuration) => {
|
|
126
|
+
/**
|
|
127
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
128
|
+
* @summary Register Organization and User using invitation token
|
|
129
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
130
|
+
* @param {*} [options] Override http request option.
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
*/
|
|
133
|
+
createOrgAndUser(createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrgAndUserResponseClass>>;
|
|
115
134
|
/**
|
|
116
135
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
117
136
|
* @summary Register tenant user after invite
|
|
@@ -119,7 +138,7 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
|
|
|
119
138
|
* @param {*} [options] Override http request option.
|
|
120
139
|
* @throws {RequiredError}
|
|
121
140
|
*/
|
|
122
|
-
createUser(createUserRequestDto: CreateUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
141
|
+
createUser(createUserRequestDto: CreateUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateUserResponseClass>>;
|
|
123
142
|
/**
|
|
124
143
|
* Send a tenant user a reset-password token via email.
|
|
125
144
|
* @summary Forgot password by tenant
|
|
@@ -159,7 +178,7 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
|
|
|
159
178
|
* @param {*} [options] Override http request option.
|
|
160
179
|
* @throws {RequiredError}
|
|
161
180
|
*/
|
|
162
|
-
logout(logoutRequestDto: LogoutRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
181
|
+
logout(logoutRequestDto: LogoutRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
163
182
|
/**
|
|
164
183
|
* Get new access token, new refresh token.
|
|
165
184
|
* @summary Refresh token by tenant
|
|
@@ -199,6 +218,14 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
|
|
|
199
218
|
* @export
|
|
200
219
|
*/
|
|
201
220
|
export declare const AuthserviceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
221
|
+
/**
|
|
222
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
223
|
+
* @summary Register Organization and User using invitation token
|
|
224
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
225
|
+
* @param {*} [options] Override http request option.
|
|
226
|
+
* @throws {RequiredError}
|
|
227
|
+
*/
|
|
228
|
+
createOrgAndUser(createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: any): AxiosPromise<CreateOrgAndUserResponseClass>;
|
|
202
229
|
/**
|
|
203
230
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
204
231
|
* @summary Register tenant user after invite
|
|
@@ -206,7 +233,7 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
|
|
|
206
233
|
* @param {*} [options] Override http request option.
|
|
207
234
|
* @throws {RequiredError}
|
|
208
235
|
*/
|
|
209
|
-
createUser(createUserRequestDto: CreateUserRequestDto, options?: any): AxiosPromise<
|
|
236
|
+
createUser(createUserRequestDto: CreateUserRequestDto, options?: any): AxiosPromise<CreateUserResponseClass>;
|
|
210
237
|
/**
|
|
211
238
|
* Send a tenant user a reset-password token via email.
|
|
212
239
|
* @summary Forgot password by tenant
|
|
@@ -246,7 +273,7 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
|
|
|
246
273
|
* @param {*} [options] Override http request option.
|
|
247
274
|
* @throws {RequiredError}
|
|
248
275
|
*/
|
|
249
|
-
logout(logoutRequestDto: LogoutRequestDto, options?: any): AxiosPromise<
|
|
276
|
+
logout(logoutRequestDto: LogoutRequestDto, options?: any): AxiosPromise<void>;
|
|
250
277
|
/**
|
|
251
278
|
* Get new access token, new refresh token.
|
|
252
279
|
* @summary Refresh token by tenant
|
|
@@ -281,6 +308,19 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
|
|
|
281
308
|
*/
|
|
282
309
|
verifyResetPasswordToken(resetToken: string, options?: any): AxiosPromise<void>;
|
|
283
310
|
};
|
|
311
|
+
/**
|
|
312
|
+
* Request parameters for createOrgAndUser operation in AuthserviceApi.
|
|
313
|
+
* @export
|
|
314
|
+
* @interface AuthserviceApiCreateOrgAndUserRequest
|
|
315
|
+
*/
|
|
316
|
+
export interface AuthserviceApiCreateOrgAndUserRequest {
|
|
317
|
+
/**
|
|
318
|
+
*
|
|
319
|
+
* @type {CreateOrgAndUserRequestDto}
|
|
320
|
+
* @memberof AuthserviceApiCreateOrgAndUser
|
|
321
|
+
*/
|
|
322
|
+
readonly createOrgAndUserRequestDto: CreateOrgAndUserRequestDto;
|
|
323
|
+
}
|
|
284
324
|
/**
|
|
285
325
|
* Request parameters for createUser operation in AuthserviceApi.
|
|
286
326
|
* @export
|
|
@@ -424,6 +464,15 @@ export interface AuthserviceApiVerifyResetPasswordTokenRequest {
|
|
|
424
464
|
* @extends {BaseAPI}
|
|
425
465
|
*/
|
|
426
466
|
export declare class AuthserviceApi extends BaseAPI {
|
|
467
|
+
/**
|
|
468
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
469
|
+
* @summary Register Organization and User using invitation token
|
|
470
|
+
* @param {AuthserviceApiCreateOrgAndUserRequest} requestParameters Request parameters.
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
* @memberof AuthserviceApi
|
|
474
|
+
*/
|
|
475
|
+
createOrgAndUser(requestParameters: AuthserviceApiCreateOrgAndUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrgAndUserResponseClass, any>>;
|
|
427
476
|
/**
|
|
428
477
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
429
478
|
* @summary Register tenant user after invite
|
|
@@ -432,7 +481,7 @@ export declare class AuthserviceApi extends BaseAPI {
|
|
|
432
481
|
* @throws {RequiredError}
|
|
433
482
|
* @memberof AuthserviceApi
|
|
434
483
|
*/
|
|
435
|
-
createUser(requestParameters: AuthserviceApiCreateUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
484
|
+
createUser(requestParameters: AuthserviceApiCreateUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateUserResponseClass, any>>;
|
|
436
485
|
/**
|
|
437
486
|
* Send a tenant user a reset-password token via email.
|
|
438
487
|
* @summary Forgot password by tenant
|
|
@@ -477,7 +526,7 @@ export declare class AuthserviceApi extends BaseAPI {
|
|
|
477
526
|
* @throws {RequiredError}
|
|
478
527
|
* @memberof AuthserviceApi
|
|
479
528
|
*/
|
|
480
|
-
logout(requestParameters: AuthserviceApiLogoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
529
|
+
logout(requestParameters: AuthserviceApiLogoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
481
530
|
/**
|
|
482
531
|
* Get new access token, new refresh token.
|
|
483
532
|
* @summary Refresh token by tenant
|
|
@@ -92,6 +92,41 @@ var base_1 = require("../base");
|
|
|
92
92
|
var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
+
/**
|
|
96
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
97
|
+
* @summary Register Organization and User using invitation token
|
|
98
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
createOrgAndUser: function (createOrgAndUserRequestDto, options) {
|
|
103
|
+
if (options === void 0) { options = {}; }
|
|
104
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
105
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
106
|
+
return __generator(this, function (_a) {
|
|
107
|
+
// verify required parameter 'createOrgAndUserRequestDto' is not null or undefined
|
|
108
|
+
(0, common_1.assertParamExists)('createOrgAndUser', 'createOrgAndUserRequestDto', createOrgAndUserRequestDto);
|
|
109
|
+
localVarPath = "/authservice/v1/create-org-and-user";
|
|
110
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
111
|
+
if (configuration) {
|
|
112
|
+
baseOptions = configuration.baseOptions;
|
|
113
|
+
baseAccessToken = configuration.accessToken;
|
|
114
|
+
}
|
|
115
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
116
|
+
localVarHeaderParameter = {};
|
|
117
|
+
localVarQueryParameter = {};
|
|
118
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
119
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
120
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
122
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrgAndUserRequestDto, localVarRequestOptions, configuration);
|
|
123
|
+
return [2 /*return*/, {
|
|
124
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
125
|
+
options: localVarRequestOptions,
|
|
126
|
+
}];
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
},
|
|
95
130
|
/**
|
|
96
131
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
97
132
|
* @summary Register tenant user after invite
|
|
@@ -459,6 +494,26 @@ exports.AuthserviceApiAxiosParamCreator = AuthserviceApiAxiosParamCreator;
|
|
|
459
494
|
var AuthserviceApiFp = function (configuration) {
|
|
460
495
|
var localVarAxiosParamCreator = (0, exports.AuthserviceApiAxiosParamCreator)(configuration);
|
|
461
496
|
return {
|
|
497
|
+
/**
|
|
498
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
499
|
+
* @summary Register Organization and User using invitation token
|
|
500
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
501
|
+
* @param {*} [options] Override http request option.
|
|
502
|
+
* @throws {RequiredError}
|
|
503
|
+
*/
|
|
504
|
+
createOrgAndUser: function (createOrgAndUserRequestDto, options) {
|
|
505
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
506
|
+
var localVarAxiosArgs;
|
|
507
|
+
return __generator(this, function (_a) {
|
|
508
|
+
switch (_a.label) {
|
|
509
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createOrgAndUser(createOrgAndUserRequestDto, options)];
|
|
510
|
+
case 1:
|
|
511
|
+
localVarAxiosArgs = _a.sent();
|
|
512
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
});
|
|
516
|
+
},
|
|
462
517
|
/**
|
|
463
518
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
464
519
|
* @summary Register tenant user after invite
|
|
@@ -670,6 +725,16 @@ exports.AuthserviceApiFp = AuthserviceApiFp;
|
|
|
670
725
|
var AuthserviceApiFactory = function (configuration, basePath, axios) {
|
|
671
726
|
var localVarFp = (0, exports.AuthserviceApiFp)(configuration);
|
|
672
727
|
return {
|
|
728
|
+
/**
|
|
729
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
730
|
+
* @summary Register Organization and User using invitation token
|
|
731
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
732
|
+
* @param {*} [options] Override http request option.
|
|
733
|
+
* @throws {RequiredError}
|
|
734
|
+
*/
|
|
735
|
+
createOrgAndUser: function (createOrgAndUserRequestDto, options) {
|
|
736
|
+
return localVarFp.createOrgAndUser(createOrgAndUserRequestDto, options).then(function (request) { return request(axios, basePath); });
|
|
737
|
+
},
|
|
673
738
|
/**
|
|
674
739
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
675
740
|
* @summary Register tenant user after invite
|
|
@@ -785,6 +850,18 @@ var AuthserviceApi = /** @class */ (function (_super) {
|
|
|
785
850
|
function AuthserviceApi() {
|
|
786
851
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
787
852
|
}
|
|
853
|
+
/**
|
|
854
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
855
|
+
* @summary Register Organization and User using invitation token
|
|
856
|
+
* @param {AuthserviceApiCreateOrgAndUserRequest} requestParameters Request parameters.
|
|
857
|
+
* @param {*} [options] Override http request option.
|
|
858
|
+
* @throws {RequiredError}
|
|
859
|
+
* @memberof AuthserviceApi
|
|
860
|
+
*/
|
|
861
|
+
AuthserviceApi.prototype.createOrgAndUser = function (requestParameters, options) {
|
|
862
|
+
var _this = this;
|
|
863
|
+
return (0, exports.AuthserviceApiFp)(this.configuration).createOrgAndUser(requestParameters.createOrgAndUserRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
864
|
+
};
|
|
788
865
|
/**
|
|
789
866
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
790
867
|
* @summary Register tenant user after invite
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateOrgAndUserRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateOrgAndUserRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateOrgAndUserRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'address': string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateOrgAndUserRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'city': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateOrgAndUserRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'country': string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {object}
|
|
39
|
+
* @memberof CreateOrgAndUserRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'customFields'?: object;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateOrgAndUserRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'firstName': string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateOrgAndUserRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'invitationToken': string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof CreateOrgAndUserRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'isEulaAccepted': boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CreateOrgAndUserRequestDto
|
|
64
|
+
*/
|
|
65
|
+
'lastName': string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CreateOrgAndUserRequestDto
|
|
70
|
+
*/
|
|
71
|
+
'password': string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof CreateOrgAndUserRequestDto
|
|
76
|
+
*/
|
|
77
|
+
'zipCode': string;
|
|
78
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AuthService
|
|
6
|
+
* The EMIL AuthService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { OrganizationClass } from './organization-class';
|
|
13
|
+
import { UserClass } from './user-class';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CreateOrgAndUserResponseClass
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateOrgAndUserResponseClass {
|
|
20
|
+
/**
|
|
21
|
+
* Organization
|
|
22
|
+
* @type {OrganizationClass}
|
|
23
|
+
* @memberof CreateOrgAndUserResponseClass
|
|
24
|
+
*/
|
|
25
|
+
'organization': OrganizationClass;
|
|
26
|
+
/**
|
|
27
|
+
* User
|
|
28
|
+
* @type {UserClass}
|
|
29
|
+
* @memberof CreateOrgAndUserResponseClass
|
|
30
|
+
*/
|
|
31
|
+
'user': UserClass;
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AuthService
|
|
6
|
+
* The EMIL AuthService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { UserClass } from './user-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateUserResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateUserResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* user
|
|
21
|
+
* @type {UserClass}
|
|
22
|
+
* @memberof CreateUserResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'user': UserClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AuthService
|
|
6
|
+
* The EMIL AuthService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
export * from './create-org-and-user-request-dto';
|
|
2
|
+
export * from './create-org-and-user-response-class';
|
|
1
3
|
export * from './create-user-request-dto';
|
|
4
|
+
export * from './create-user-response-class';
|
|
2
5
|
export * from './forgot-password-request-dto';
|
|
3
6
|
export * from './get-samllogin-link-request-dto';
|
|
4
7
|
export * from './login-by-samlrequest-dto';
|
|
5
8
|
export * from './login-class';
|
|
6
9
|
export * from './login-request-dto';
|
|
7
10
|
export * from './logout-request-dto';
|
|
11
|
+
export * from './organization-class';
|
|
8
12
|
export * from './refresh-token-dto';
|
|
9
13
|
export * from './reset-password-request-dto';
|
|
14
|
+
export * from './role-class';
|
|
15
|
+
export * from './user-class';
|