@emilgroup/auth-sdk 1.1.0 → 1.2.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.
@@ -13,6 +13,7 @@ models/create-org-and-user-request-dto.ts
13
13
  models/create-org-and-user-response-class.ts
14
14
  models/create-user-request-dto.ts
15
15
  models/create-user-response-class.ts
16
+ models/custom-schema-class.ts
16
17
  models/forgot-password-request-dto.ts
17
18
  models/get-samllogin-link-request-dto.ts
18
19
  models/index.ts
@@ -20,10 +21,13 @@ models/login-by-samlrequest-dto.ts
20
21
  models/login-class.ts
21
22
  models/login-request-dto.ts
22
23
  models/logout-request-dto.ts
24
+ models/org-invitation-class.ts
23
25
  models/organization-class.ts
24
26
  models/refresh-token-dto.ts
25
27
  models/reset-password-request-dto.ts
26
28
  models/role-class.ts
27
29
  models/user-class.ts
30
+ models/verify-org-invitation-request-dto.ts
31
+ models/verify-org-invitation-response-class.ts
28
32
  package.json
29
33
  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.1.0 --save
20
+ npm install @emilgroup/auth-sdk@1.2.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/auth-sdk@1.1.0
24
+ yarn add @emilgroup/auth-sdk@1.2.0
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -42,6 +42,8 @@ import { LogoutRequestDto } from '../models';
42
42
  import { RefreshTokenDto } from '../models';
43
43
  // @ts-ignore
44
44
  import { ResetPasswordRequestDto } from '../models';
45
+ // @ts-ignore
46
+ import { VerifyOrgInvitationResponseClass } from '../models';
45
47
  /**
46
48
  * AuthserviceApi - axios parameter creator
47
49
  * @export
@@ -426,6 +428,45 @@ export const AuthserviceApiAxiosParamCreator = function (configuration?: Configu
426
428
 
427
429
 
428
430
 
431
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
432
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
433
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
434
+
435
+ return {
436
+ url: toPathString(localVarUrlObj),
437
+ options: localVarRequestOptions,
438
+ };
439
+ },
440
+ /**
441
+ * Verifies token and returns necessary data for signing up as an organization.
442
+ * @summary Verify a organization\'s invitation token
443
+ * @param {string} invitationToken
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ verifyOrgInvitation: async (invitationToken: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
448
+ // verify required parameter 'invitationToken' is not null or undefined
449
+ assertParamExists('verifyOrgInvitation', 'invitationToken', invitationToken)
450
+ const localVarPath = `/authservice/v1/verify-org-invitation`;
451
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
452
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
453
+ let baseOptions;
454
+ let baseAccessToken;
455
+ if (configuration) {
456
+ baseOptions = configuration.baseOptions;
457
+ baseAccessToken = configuration.accessToken;
458
+ }
459
+
460
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
461
+ const localVarHeaderParameter = {} as any;
462
+ const localVarQueryParameter = {} as any;
463
+
464
+ if (invitationToken !== undefined) {
465
+ localVarQueryParameter['invitationToken'] = invitationToken;
466
+ }
467
+
468
+
469
+
429
470
  setSearchParams(localVarUrlObj, localVarQueryParameter);
430
471
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
431
472
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -595,6 +636,17 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
595
636
  const localVarAxiosArgs = await localVarAxiosParamCreator.verifyInvite(token, options);
596
637
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
597
638
  },
639
+ /**
640
+ * Verifies token and returns necessary data for signing up as an organization.
641
+ * @summary Verify a organization\'s invitation token
642
+ * @param {string} invitationToken
643
+ * @param {*} [options] Override http request option.
644
+ * @throws {RequiredError}
645
+ */
646
+ async verifyOrgInvitation(invitationToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyOrgInvitationResponseClass>> {
647
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOrgInvitation(invitationToken, options);
648
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
649
+ },
598
650
  /**
599
651
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
600
652
  * @summary Verify tenant reset password token
@@ -717,6 +769,16 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
717
769
  verifyInvite(token: string, options?: any): AxiosPromise<void> {
718
770
  return localVarFp.verifyInvite(token, options).then((request) => request(axios, basePath));
719
771
  },
772
+ /**
773
+ * Verifies token and returns necessary data for signing up as an organization.
774
+ * @summary Verify a organization\'s invitation token
775
+ * @param {string} invitationToken
776
+ * @param {*} [options] Override http request option.
777
+ * @throws {RequiredError}
778
+ */
779
+ verifyOrgInvitation(invitationToken: string, options?: any): AxiosPromise<VerifyOrgInvitationResponseClass> {
780
+ return localVarFp.verifyOrgInvitation(invitationToken, options).then((request) => request(axios, basePath));
781
+ },
720
782
  /**
721
783
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
722
784
  * @summary Verify tenant reset password token
@@ -877,6 +939,20 @@ export interface AuthserviceApiVerifyInviteRequest {
877
939
  readonly token: string
878
940
  }
879
941
 
942
+ /**
943
+ * Request parameters for verifyOrgInvitation operation in AuthserviceApi.
944
+ * @export
945
+ * @interface AuthserviceApiVerifyOrgInvitationRequest
946
+ */
947
+ export interface AuthserviceApiVerifyOrgInvitationRequest {
948
+ /**
949
+ *
950
+ * @type {string}
951
+ * @memberof AuthserviceApiVerifyOrgInvitation
952
+ */
953
+ readonly invitationToken: string
954
+ }
955
+
880
956
  /**
881
957
  * Request parameters for verifyResetPasswordToken operation in AuthserviceApi.
882
958
  * @export
@@ -1018,6 +1094,18 @@ export class AuthserviceApi extends BaseAPI {
1018
1094
  return AuthserviceApiFp(this.configuration).verifyInvite(requestParameters.token, options).then((request) => request(this.axios, this.basePath));
1019
1095
  }
1020
1096
 
1097
+ /**
1098
+ * Verifies token and returns necessary data for signing up as an organization.
1099
+ * @summary Verify a organization\'s invitation token
1100
+ * @param {AuthserviceApiVerifyOrgInvitationRequest} requestParameters Request parameters.
1101
+ * @param {*} [options] Override http request option.
1102
+ * @throws {RequiredError}
1103
+ * @memberof AuthserviceApi
1104
+ */
1105
+ public verifyOrgInvitation(requestParameters: AuthserviceApiVerifyOrgInvitationRequest, options?: AxiosRequestConfig) {
1106
+ return AuthserviceApiFp(this.configuration).verifyOrgInvitation(requestParameters.invitationToken, options).then((request) => request(this.axios, this.basePath));
1107
+ }
1108
+
1021
1109
  /**
1022
1110
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
1023
1111
  * @summary Verify tenant reset password token
package/base.ts CHANGED
@@ -160,6 +160,8 @@ export class BaseAPI {
160
160
  public loadTokenData() {
161
161
  if (typeof window !== 'undefined') {
162
162
  this.tokenData = defaultStorage().get<TokenData>(TOKEN_DATA) || {};
163
+ } else {
164
+ this.tokenData = {};
163
165
  }
164
166
  }
165
167
 
@@ -23,6 +23,7 @@ import { LoginRequestDto } from '../models';
23
23
  import { LogoutRequestDto } from '../models';
24
24
  import { RefreshTokenDto } from '../models';
25
25
  import { ResetPasswordRequestDto } from '../models';
26
+ import { VerifyOrgInvitationResponseClass } from '../models';
26
27
  /**
27
28
  * AuthserviceApi - axios parameter creator
28
29
  * @export
@@ -109,6 +110,14 @@ export declare const AuthserviceApiAxiosParamCreator: (configuration?: Configura
109
110
  * @throws {RequiredError}
110
111
  */
111
112
  verifyInvite: (token: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
113
+ /**
114
+ * Verifies token and returns necessary data for signing up as an organization.
115
+ * @summary Verify a organization\'s invitation token
116
+ * @param {string} invitationToken
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ verifyOrgInvitation: (invitationToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
112
121
  /**
113
122
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
114
123
  * @summary Verify tenant reset password token
@@ -204,6 +213,14 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
204
213
  * @throws {RequiredError}
205
214
  */
206
215
  verifyInvite(token: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
216
+ /**
217
+ * Verifies token and returns necessary data for signing up as an organization.
218
+ * @summary Verify a organization\'s invitation token
219
+ * @param {string} invitationToken
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ verifyOrgInvitation(invitationToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyOrgInvitationResponseClass>>;
207
224
  /**
208
225
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
209
226
  * @summary Verify tenant reset password token
@@ -299,6 +316,14 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
299
316
  * @throws {RequiredError}
300
317
  */
301
318
  verifyInvite(token: string, options?: any): AxiosPromise<void>;
319
+ /**
320
+ * Verifies token and returns necessary data for signing up as an organization.
321
+ * @summary Verify a organization\'s invitation token
322
+ * @param {string} invitationToken
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ verifyOrgInvitation(invitationToken: string, options?: any): AxiosPromise<VerifyOrgInvitationResponseClass>;
302
327
  /**
303
328
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
304
329
  * @summary Verify tenant reset password token
@@ -444,6 +469,19 @@ export interface AuthserviceApiVerifyInviteRequest {
444
469
  */
445
470
  readonly token: string;
446
471
  }
472
+ /**
473
+ * Request parameters for verifyOrgInvitation operation in AuthserviceApi.
474
+ * @export
475
+ * @interface AuthserviceApiVerifyOrgInvitationRequest
476
+ */
477
+ export interface AuthserviceApiVerifyOrgInvitationRequest {
478
+ /**
479
+ *
480
+ * @type {string}
481
+ * @memberof AuthserviceApiVerifyOrgInvitation
482
+ */
483
+ readonly invitationToken: string;
484
+ }
447
485
  /**
448
486
  * Request parameters for verifyResetPasswordToken operation in AuthserviceApi.
449
487
  * @export
@@ -554,6 +592,15 @@ export declare class AuthserviceApi extends BaseAPI {
554
592
  * @memberof AuthserviceApi
555
593
  */
556
594
  verifyInvite(requestParameters: AuthserviceApiVerifyInviteRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
595
+ /**
596
+ * Verifies token and returns necessary data for signing up as an organization.
597
+ * @summary Verify a organization\'s invitation token
598
+ * @param {AuthserviceApiVerifyOrgInvitationRequest} requestParameters Request parameters.
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ * @memberof AuthserviceApi
602
+ */
603
+ verifyOrgInvitation(requestParameters: AuthserviceApiVerifyOrgInvitationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyOrgInvitationResponseClass, any>>;
557
604
  /**
558
605
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
559
606
  * @summary Verify tenant reset password token
@@ -448,6 +448,42 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
448
448
  });
449
449
  });
450
450
  },
451
+ /**
452
+ * Verifies token and returns necessary data for signing up as an organization.
453
+ * @summary Verify a organization\'s invitation token
454
+ * @param {string} invitationToken
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ verifyOrgInvitation: function (invitationToken, options) {
459
+ if (options === void 0) { options = {}; }
460
+ return __awaiter(_this, void 0, void 0, function () {
461
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
462
+ return __generator(this, function (_a) {
463
+ // verify required parameter 'invitationToken' is not null or undefined
464
+ (0, common_1.assertParamExists)('verifyOrgInvitation', 'invitationToken', invitationToken);
465
+ localVarPath = "/authservice/v1/verify-org-invitation";
466
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
467
+ if (configuration) {
468
+ baseOptions = configuration.baseOptions;
469
+ baseAccessToken = configuration.accessToken;
470
+ }
471
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
472
+ localVarHeaderParameter = {};
473
+ localVarQueryParameter = {};
474
+ if (invitationToken !== undefined) {
475
+ localVarQueryParameter['invitationToken'] = invitationToken;
476
+ }
477
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
478
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
479
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
480
+ return [2 /*return*/, {
481
+ url: (0, common_1.toPathString)(localVarUrlObj),
482
+ options: localVarRequestOptions,
483
+ }];
484
+ });
485
+ });
486
+ },
451
487
  /**
452
488
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
453
489
  * @summary Verify tenant reset password token
@@ -695,6 +731,26 @@ var AuthserviceApiFp = function (configuration) {
695
731
  });
696
732
  });
697
733
  },
734
+ /**
735
+ * Verifies token and returns necessary data for signing up as an organization.
736
+ * @summary Verify a organization\'s invitation token
737
+ * @param {string} invitationToken
738
+ * @param {*} [options] Override http request option.
739
+ * @throws {RequiredError}
740
+ */
741
+ verifyOrgInvitation: function (invitationToken, options) {
742
+ return __awaiter(this, void 0, void 0, function () {
743
+ var localVarAxiosArgs;
744
+ return __generator(this, function (_a) {
745
+ switch (_a.label) {
746
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.verifyOrgInvitation(invitationToken, options)];
747
+ case 1:
748
+ localVarAxiosArgs = _a.sent();
749
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
750
+ }
751
+ });
752
+ });
753
+ },
698
754
  /**
699
755
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
700
756
  * @summary Verify tenant reset password token
@@ -826,6 +882,16 @@ var AuthserviceApiFactory = function (configuration, basePath, axios) {
826
882
  verifyInvite: function (token, options) {
827
883
  return localVarFp.verifyInvite(token, options).then(function (request) { return request(axios, basePath); });
828
884
  },
885
+ /**
886
+ * Verifies token and returns necessary data for signing up as an organization.
887
+ * @summary Verify a organization\'s invitation token
888
+ * @param {string} invitationToken
889
+ * @param {*} [options] Override http request option.
890
+ * @throws {RequiredError}
891
+ */
892
+ verifyOrgInvitation: function (invitationToken, options) {
893
+ return localVarFp.verifyOrgInvitation(invitationToken, options).then(function (request) { return request(axios, basePath); });
894
+ },
829
895
  /**
830
896
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
831
897
  * @summary Verify tenant reset password token
@@ -970,6 +1036,18 @@ var AuthserviceApi = /** @class */ (function (_super) {
970
1036
  var _this = this;
971
1037
  return (0, exports.AuthserviceApiFp)(this.configuration).verifyInvite(requestParameters.token, options).then(function (request) { return request(_this.axios, _this.basePath); });
972
1038
  };
1039
+ /**
1040
+ * Verifies token and returns necessary data for signing up as an organization.
1041
+ * @summary Verify a organization\'s invitation token
1042
+ * @param {AuthserviceApiVerifyOrgInvitationRequest} requestParameters Request parameters.
1043
+ * @param {*} [options] Override http request option.
1044
+ * @throws {RequiredError}
1045
+ * @memberof AuthserviceApi
1046
+ */
1047
+ AuthserviceApi.prototype.verifyOrgInvitation = function (requestParameters, options) {
1048
+ var _this = this;
1049
+ return (0, exports.AuthserviceApiFp)(this.configuration).verifyOrgInvitation(requestParameters.invitationToken, options).then(function (request) { return request(_this.axios, _this.basePath); });
1050
+ };
973
1051
  /**
974
1052
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
975
1053
  * @summary Verify tenant reset password token
package/dist/base.js CHANGED
@@ -204,6 +204,9 @@ var BaseAPI = /** @class */ (function () {
204
204
  if (typeof window !== 'undefined') {
205
205
  this.tokenData = (0, common_1.defaultStorage)().get(TOKEN_DATA) || {};
206
206
  }
207
+ else {
208
+ this.tokenData = {};
209
+ }
207
210
  };
208
211
  BaseAPI.prototype.cleanTokenData = function () {
209
212
  this.storeTokenData(null);
@@ -16,61 +16,67 @@
16
16
  */
17
17
  export interface CreateOrgAndUserRequestDto {
18
18
  /**
19
- *
19
+ * Organization\'s street name.
20
20
  * @type {string}
21
21
  * @memberof CreateOrgAndUserRequestDto
22
22
  */
23
- 'address': string;
23
+ 'street': string;
24
24
  /**
25
- *
25
+ * Organization\'s house number.
26
+ * @type {string}
27
+ * @memberof CreateOrgAndUserRequestDto
28
+ */
29
+ 'houseNumber': string;
30
+ /**
31
+ * City of the organization.
26
32
  * @type {string}
27
33
  * @memberof CreateOrgAndUserRequestDto
28
34
  */
29
35
  'city': string;
30
36
  /**
31
- *
37
+ * Country of the organization.
32
38
  * @type {string}
33
39
  * @memberof CreateOrgAndUserRequestDto
34
40
  */
35
41
  'country': string;
36
42
  /**
37
- *
43
+ * Custom fields of the organization
38
44
  * @type {object}
39
45
  * @memberof CreateOrgAndUserRequestDto
40
46
  */
41
47
  'customFields'?: object;
42
48
  /**
43
- *
49
+ * User\'s first name
44
50
  * @type {string}
45
51
  * @memberof CreateOrgAndUserRequestDto
46
52
  */
47
53
  'firstName': string;
48
54
  /**
49
- *
55
+ * Organization invitation token
50
56
  * @type {string}
51
57
  * @memberof CreateOrgAndUserRequestDto
52
58
  */
53
59
  'invitationToken': string;
54
60
  /**
55
- *
61
+ * if user accepts end user license agreement
56
62
  * @type {boolean}
57
63
  * @memberof CreateOrgAndUserRequestDto
58
64
  */
59
65
  'isEulaAccepted': boolean;
60
66
  /**
61
- *
67
+ * User\'s last name
62
68
  * @type {string}
63
69
  * @memberof CreateOrgAndUserRequestDto
64
70
  */
65
71
  'lastName': string;
66
72
  /**
67
- *
73
+ * User\'s password
68
74
  * @type {string}
69
75
  * @memberof CreateOrgAndUserRequestDto
70
76
  */
71
77
  'password': string;
72
78
  /**
73
- *
79
+ * Zip code of the organization.
74
80
  * @type {string}
75
81
  * @memberof CreateOrgAndUserRequestDto
76
82
  */
@@ -0,0 +1,66 @@
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 CustomSchemaClass
16
+ */
17
+ export interface CustomSchemaClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof CustomSchemaClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof CustomSchemaClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * The fields that schema created from
32
+ * @type {object}
33
+ * @memberof CustomSchemaClass
34
+ */
35
+ 'fields': object;
36
+ /**
37
+ * The json schema generated from fields
38
+ * @type {object}
39
+ * @memberof CustomSchemaClass
40
+ */
41
+ 'jsonSchema': object;
42
+ /**
43
+ * Optional field for a product specification custom fields
44
+ * @type {string}
45
+ * @memberof CustomSchemaClass
46
+ */
47
+ 'productCode': string;
48
+ /**
49
+ * The entity that this schema related to
50
+ * @type {string}
51
+ * @memberof CustomSchemaClass
52
+ */
53
+ 'entity': string;
54
+ /**
55
+ * Time at which the object was created.
56
+ * @type {string}
57
+ * @memberof CustomSchemaClass
58
+ */
59
+ 'createdAt': string;
60
+ /**
61
+ * Time at which the object was updated.
62
+ * @type {string}
63
+ * @memberof CustomSchemaClass
64
+ */
65
+ 'updatedAt': string;
66
+ }
@@ -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 });
@@ -2,14 +2,18 @@ export * from './create-org-and-user-request-dto';
2
2
  export * from './create-org-and-user-response-class';
3
3
  export * from './create-user-request-dto';
4
4
  export * from './create-user-response-class';
5
+ export * from './custom-schema-class';
5
6
  export * from './forgot-password-request-dto';
6
7
  export * from './get-samllogin-link-request-dto';
7
8
  export * from './login-by-samlrequest-dto';
8
9
  export * from './login-class';
9
10
  export * from './login-request-dto';
10
11
  export * from './logout-request-dto';
12
+ export * from './org-invitation-class';
11
13
  export * from './organization-class';
12
14
  export * from './refresh-token-dto';
13
15
  export * from './reset-password-request-dto';
14
16
  export * from './role-class';
15
17
  export * from './user-class';
18
+ export * from './verify-org-invitation-request-dto';
19
+ export * from './verify-org-invitation-response-class';
@@ -18,14 +18,18 @@ __exportStar(require("./create-org-and-user-request-dto"), exports);
18
18
  __exportStar(require("./create-org-and-user-response-class"), exports);
19
19
  __exportStar(require("./create-user-request-dto"), exports);
20
20
  __exportStar(require("./create-user-response-class"), exports);
21
+ __exportStar(require("./custom-schema-class"), exports);
21
22
  __exportStar(require("./forgot-password-request-dto"), exports);
22
23
  __exportStar(require("./get-samllogin-link-request-dto"), exports);
23
24
  __exportStar(require("./login-by-samlrequest-dto"), exports);
24
25
  __exportStar(require("./login-class"), exports);
25
26
  __exportStar(require("./login-request-dto"), exports);
26
27
  __exportStar(require("./logout-request-dto"), exports);
28
+ __exportStar(require("./org-invitation-class"), exports);
27
29
  __exportStar(require("./organization-class"), exports);
28
30
  __exportStar(require("./refresh-token-dto"), exports);
29
31
  __exportStar(require("./reset-password-request-dto"), exports);
30
32
  __exportStar(require("./role-class"), exports);
31
33
  __exportStar(require("./user-class"), exports);
34
+ __exportStar(require("./verify-org-invitation-request-dto"), exports);
35
+ __exportStar(require("./verify-org-invitation-response-class"), exports);
@@ -0,0 +1,109 @@
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 { RoleClass } from './role-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface OrgInvitationClass
17
+ */
18
+ export interface OrgInvitationClass {
19
+ /**
20
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
21
+ * @type {number}
22
+ * @memberof OrgInvitationClass
23
+ */
24
+ 'id': number;
25
+ /**
26
+ * Organization user\'s email address.
27
+ * @type {string}
28
+ * @memberof OrgInvitationClass
29
+ */
30
+ 'email': string;
31
+ /**
32
+ * Permissions associated with the invite.
33
+ * @type {Array<RoleClass>}
34
+ * @memberof OrgInvitationClass
35
+ */
36
+ 'roles'?: Array<RoleClass>;
37
+ /**
38
+ * Name of the invited organization.
39
+ * @type {string}
40
+ * @memberof OrgInvitationClass
41
+ */
42
+ 'name': string;
43
+ /**
44
+ * Identifier for the organization.
45
+ * @type {string}
46
+ * @memberof OrgInvitationClass
47
+ */
48
+ 'slug': string;
49
+ /**
50
+ * Inviting organization.
51
+ * @type {number}
52
+ * @memberof OrgInvitationClass
53
+ */
54
+ 'parentOrganizationId'?: number;
55
+ /**
56
+ * Organization\'s street name.
57
+ * @type {string}
58
+ * @memberof OrgInvitationClass
59
+ */
60
+ 'street': string;
61
+ /**
62
+ * Organization\'s house number.
63
+ * @type {string}
64
+ * @memberof OrgInvitationClass
65
+ */
66
+ 'houseNumber': string;
67
+ /**
68
+ * Zip code of the organization.
69
+ * @type {string}
70
+ * @memberof OrgInvitationClass
71
+ */
72
+ 'zipCode': string;
73
+ /**
74
+ * City of the organization.
75
+ * @type {string}
76
+ * @memberof OrgInvitationClass
77
+ */
78
+ 'city': string;
79
+ /**
80
+ * Country of the organization.
81
+ * @type {string}
82
+ * @memberof OrgInvitationClass
83
+ */
84
+ 'country': string;
85
+ /**
86
+ * Custom fields of the organization.
87
+ * @type {object}
88
+ * @memberof OrgInvitationClass
89
+ */
90
+ 'customFields'?: object;
91
+ /**
92
+ * Expiry date of invitation email.
93
+ * @type {string}
94
+ * @memberof OrgInvitationClass
95
+ */
96
+ 'expiresAt': string;
97
+ /**
98
+ * Time at which the object was created.
99
+ * @type {string}
100
+ * @memberof OrgInvitationClass
101
+ */
102
+ 'createdAt': string;
103
+ /**
104
+ * Time at which the object was updated.
105
+ * @type {string}
106
+ * @memberof OrgInvitationClass
107
+ */
108
+ 'updatedAt': string;
109
+ }
@@ -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 });
@@ -62,7 +62,13 @@ export interface OrganizationClass {
62
62
  * @type {string}
63
63
  * @memberof OrganizationClass
64
64
  */
65
- 'address': string;
65
+ 'street': string;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof OrganizationClass
70
+ */
71
+ 'houseNumber': string;
66
72
  /**
67
73
  *
68
74
  * @type {string}
@@ -0,0 +1,24 @@
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 VerifyOrgInvitationRequestDto
16
+ */
17
+ export interface VerifyOrgInvitationRequestDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof VerifyOrgInvitationRequestDto
22
+ */
23
+ 'invitationToken': string;
24
+ }
@@ -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 { CustomSchemaClass } from './custom-schema-class';
13
+ import { OrgInvitationClass } from './org-invitation-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface VerifyOrgInvitationResponseClass
18
+ */
19
+ export interface VerifyOrgInvitationResponseClass {
20
+ /**
21
+ * Invitation object identified by the token.
22
+ * @type {OrgInvitationClass}
23
+ * @memberof VerifyOrgInvitationResponseClass
24
+ */
25
+ 'invitation': OrgInvitationClass;
26
+ /**
27
+ * Custom schema associated for the invitation process
28
+ * @type {CustomSchemaClass}
29
+ * @memberof VerifyOrgInvitationResponseClass
30
+ */
31
+ 'customSchema': CustomSchemaClass;
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 });
@@ -21,61 +21,67 @@
21
21
  */
22
22
  export interface CreateOrgAndUserRequestDto {
23
23
  /**
24
- *
24
+ * Organization\'s street name.
25
25
  * @type {string}
26
26
  * @memberof CreateOrgAndUserRequestDto
27
27
  */
28
- 'address': string;
28
+ 'street': string;
29
29
  /**
30
- *
30
+ * Organization\'s house number.
31
+ * @type {string}
32
+ * @memberof CreateOrgAndUserRequestDto
33
+ */
34
+ 'houseNumber': string;
35
+ /**
36
+ * City of the organization.
31
37
  * @type {string}
32
38
  * @memberof CreateOrgAndUserRequestDto
33
39
  */
34
40
  'city': string;
35
41
  /**
36
- *
42
+ * Country of the organization.
37
43
  * @type {string}
38
44
  * @memberof CreateOrgAndUserRequestDto
39
45
  */
40
46
  'country': string;
41
47
  /**
42
- *
48
+ * Custom fields of the organization
43
49
  * @type {object}
44
50
  * @memberof CreateOrgAndUserRequestDto
45
51
  */
46
52
  'customFields'?: object;
47
53
  /**
48
- *
54
+ * User\'s first name
49
55
  * @type {string}
50
56
  * @memberof CreateOrgAndUserRequestDto
51
57
  */
52
58
  'firstName': string;
53
59
  /**
54
- *
60
+ * Organization invitation token
55
61
  * @type {string}
56
62
  * @memberof CreateOrgAndUserRequestDto
57
63
  */
58
64
  'invitationToken': string;
59
65
  /**
60
- *
66
+ * if user accepts end user license agreement
61
67
  * @type {boolean}
62
68
  * @memberof CreateOrgAndUserRequestDto
63
69
  */
64
70
  'isEulaAccepted': boolean;
65
71
  /**
66
- *
72
+ * User\'s last name
67
73
  * @type {string}
68
74
  * @memberof CreateOrgAndUserRequestDto
69
75
  */
70
76
  'lastName': string;
71
77
  /**
72
- *
78
+ * User\'s password
73
79
  * @type {string}
74
80
  * @memberof CreateOrgAndUserRequestDto
75
81
  */
76
82
  'password': string;
77
83
  /**
78
- *
84
+ * Zip code of the organization.
79
85
  * @type {string}
80
86
  * @memberof CreateOrgAndUserRequestDto
81
87
  */
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CustomSchemaClass
21
+ */
22
+ export interface CustomSchemaClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof CustomSchemaClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof CustomSchemaClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * The fields that schema created from
37
+ * @type {object}
38
+ * @memberof CustomSchemaClass
39
+ */
40
+ 'fields': object;
41
+ /**
42
+ * The json schema generated from fields
43
+ * @type {object}
44
+ * @memberof CustomSchemaClass
45
+ */
46
+ 'jsonSchema': object;
47
+ /**
48
+ * Optional field for a product specification custom fields
49
+ * @type {string}
50
+ * @memberof CustomSchemaClass
51
+ */
52
+ 'productCode': string;
53
+ /**
54
+ * The entity that this schema related to
55
+ * @type {string}
56
+ * @memberof CustomSchemaClass
57
+ */
58
+ 'entity': string;
59
+ /**
60
+ * Time at which the object was created.
61
+ * @type {string}
62
+ * @memberof CustomSchemaClass
63
+ */
64
+ 'createdAt': string;
65
+ /**
66
+ * Time at which the object was updated.
67
+ * @type {string}
68
+ * @memberof CustomSchemaClass
69
+ */
70
+ 'updatedAt': string;
71
+ }
72
+
package/models/index.ts CHANGED
@@ -2,14 +2,18 @@ export * from './create-org-and-user-request-dto';
2
2
  export * from './create-org-and-user-response-class';
3
3
  export * from './create-user-request-dto';
4
4
  export * from './create-user-response-class';
5
+ export * from './custom-schema-class';
5
6
  export * from './forgot-password-request-dto';
6
7
  export * from './get-samllogin-link-request-dto';
7
8
  export * from './login-by-samlrequest-dto';
8
9
  export * from './login-class';
9
10
  export * from './login-request-dto';
10
11
  export * from './logout-request-dto';
12
+ export * from './org-invitation-class';
11
13
  export * from './organization-class';
12
14
  export * from './refresh-token-dto';
13
15
  export * from './reset-password-request-dto';
14
16
  export * from './role-class';
15
17
  export * from './user-class';
18
+ export * from './verify-org-invitation-request-dto';
19
+ export * from './verify-org-invitation-response-class';
@@ -0,0 +1,115 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { RoleClass } from './role-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface OrgInvitationClass
22
+ */
23
+ export interface OrgInvitationClass {
24
+ /**
25
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
26
+ * @type {number}
27
+ * @memberof OrgInvitationClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * Organization user\'s email address.
32
+ * @type {string}
33
+ * @memberof OrgInvitationClass
34
+ */
35
+ 'email': string;
36
+ /**
37
+ * Permissions associated with the invite.
38
+ * @type {Array<RoleClass>}
39
+ * @memberof OrgInvitationClass
40
+ */
41
+ 'roles'?: Array<RoleClass>;
42
+ /**
43
+ * Name of the invited organization.
44
+ * @type {string}
45
+ * @memberof OrgInvitationClass
46
+ */
47
+ 'name': string;
48
+ /**
49
+ * Identifier for the organization.
50
+ * @type {string}
51
+ * @memberof OrgInvitationClass
52
+ */
53
+ 'slug': string;
54
+ /**
55
+ * Inviting organization.
56
+ * @type {number}
57
+ * @memberof OrgInvitationClass
58
+ */
59
+ 'parentOrganizationId'?: number;
60
+ /**
61
+ * Organization\'s street name.
62
+ * @type {string}
63
+ * @memberof OrgInvitationClass
64
+ */
65
+ 'street': string;
66
+ /**
67
+ * Organization\'s house number.
68
+ * @type {string}
69
+ * @memberof OrgInvitationClass
70
+ */
71
+ 'houseNumber': string;
72
+ /**
73
+ * Zip code of the organization.
74
+ * @type {string}
75
+ * @memberof OrgInvitationClass
76
+ */
77
+ 'zipCode': string;
78
+ /**
79
+ * City of the organization.
80
+ * @type {string}
81
+ * @memberof OrgInvitationClass
82
+ */
83
+ 'city': string;
84
+ /**
85
+ * Country of the organization.
86
+ * @type {string}
87
+ * @memberof OrgInvitationClass
88
+ */
89
+ 'country': string;
90
+ /**
91
+ * Custom fields of the organization.
92
+ * @type {object}
93
+ * @memberof OrgInvitationClass
94
+ */
95
+ 'customFields'?: object;
96
+ /**
97
+ * Expiry date of invitation email.
98
+ * @type {string}
99
+ * @memberof OrgInvitationClass
100
+ */
101
+ 'expiresAt': string;
102
+ /**
103
+ * Time at which the object was created.
104
+ * @type {string}
105
+ * @memberof OrgInvitationClass
106
+ */
107
+ 'createdAt': string;
108
+ /**
109
+ * Time at which the object was updated.
110
+ * @type {string}
111
+ * @memberof OrgInvitationClass
112
+ */
113
+ 'updatedAt': string;
114
+ }
115
+
@@ -67,7 +67,13 @@ export interface OrganizationClass {
67
67
  * @type {string}
68
68
  * @memberof OrganizationClass
69
69
  */
70
- 'address': string;
70
+ 'street': string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof OrganizationClass
75
+ */
76
+ 'houseNumber': string;
71
77
  /**
72
78
  *
73
79
  * @type {string}
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface VerifyOrgInvitationRequestDto
21
+ */
22
+ export interface VerifyOrgInvitationRequestDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof VerifyOrgInvitationRequestDto
27
+ */
28
+ 'invitationToken': string;
29
+ }
30
+
@@ -0,0 +1,38 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { CustomSchemaClass } from './custom-schema-class';
17
+ import { OrgInvitationClass } from './org-invitation-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface VerifyOrgInvitationResponseClass
23
+ */
24
+ export interface VerifyOrgInvitationResponseClass {
25
+ /**
26
+ * Invitation object identified by the token.
27
+ * @type {OrgInvitationClass}
28
+ * @memberof VerifyOrgInvitationResponseClass
29
+ */
30
+ 'invitation': OrgInvitationClass;
31
+ /**
32
+ * Custom schema associated for the invitation process
33
+ * @type {CustomSchemaClass}
34
+ * @memberof VerifyOrgInvitationResponseClass
35
+ */
36
+ 'customSchema': CustomSchemaClass;
37
+ }
38
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/auth-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "OpenAPI client for @emilgroup/auth-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [