@emilgroup/auth-sdk-node 1.0.0 → 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.
@@ -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-node@1.0.0 --save
20
+ npm install @emilgroup/auth-sdk-node@1.1.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/auth-sdk-node@1.0.0
24
+ yarn add @emilgroup/auth-sdk-node@1.1.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
  // URLSearchParams not necessarily used
46
48
  // @ts-ignore
47
49
  import { URL, URLSearchParams } from 'url';
@@ -430,6 +432,45 @@ export const AuthserviceApiAxiosParamCreator = function (configuration?: Configu
430
432
 
431
433
 
432
434
 
435
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
436
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
437
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
438
+
439
+ return {
440
+ url: toPathString(localVarUrlObj),
441
+ options: localVarRequestOptions,
442
+ };
443
+ },
444
+ /**
445
+ * Verifies token and returns necessary data for signing up as an organization.
446
+ * @summary Verify a organization\'s invitation token
447
+ * @param {string} invitationToken
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ */
451
+ verifyOrgInvitation: async (invitationToken: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
452
+ // verify required parameter 'invitationToken' is not null or undefined
453
+ assertParamExists('verifyOrgInvitation', 'invitationToken', invitationToken)
454
+ const localVarPath = `/authservice/v1/verify-org-invitation`;
455
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
456
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
457
+ let baseOptions;
458
+ let baseAccessToken;
459
+ if (configuration) {
460
+ baseOptions = configuration.baseOptions;
461
+ baseAccessToken = configuration.accessToken;
462
+ }
463
+
464
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
465
+ const localVarHeaderParameter = {} as any;
466
+ const localVarQueryParameter = {} as any;
467
+
468
+ if (invitationToken !== undefined) {
469
+ localVarQueryParameter['invitationToken'] = invitationToken;
470
+ }
471
+
472
+
473
+
433
474
  setSearchParams(localVarUrlObj, localVarQueryParameter);
434
475
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
435
476
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -599,6 +640,17 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
599
640
  const localVarAxiosArgs = await localVarAxiosParamCreator.verifyInvite(token, options);
600
641
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
601
642
  },
643
+ /**
644
+ * Verifies token and returns necessary data for signing up as an organization.
645
+ * @summary Verify a organization\'s invitation token
646
+ * @param {string} invitationToken
647
+ * @param {*} [options] Override http request option.
648
+ * @throws {RequiredError}
649
+ */
650
+ async verifyOrgInvitation(invitationToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyOrgInvitationResponseClass>> {
651
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOrgInvitation(invitationToken, options);
652
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
653
+ },
602
654
  /**
603
655
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
604
656
  * @summary Verify tenant reset password token
@@ -721,6 +773,16 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
721
773
  verifyInvite(token: string, options?: any): AxiosPromise<void> {
722
774
  return localVarFp.verifyInvite(token, options).then((request) => request(axios, basePath));
723
775
  },
776
+ /**
777
+ * Verifies token and returns necessary data for signing up as an organization.
778
+ * @summary Verify a organization\'s invitation token
779
+ * @param {string} invitationToken
780
+ * @param {*} [options] Override http request option.
781
+ * @throws {RequiredError}
782
+ */
783
+ verifyOrgInvitation(invitationToken: string, options?: any): AxiosPromise<VerifyOrgInvitationResponseClass> {
784
+ return localVarFp.verifyOrgInvitation(invitationToken, options).then((request) => request(axios, basePath));
785
+ },
724
786
  /**
725
787
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
726
788
  * @summary Verify tenant reset password token
@@ -881,6 +943,20 @@ export interface AuthserviceApiVerifyInviteRequest {
881
943
  readonly token: string
882
944
  }
883
945
 
946
+ /**
947
+ * Request parameters for verifyOrgInvitation operation in AuthserviceApi.
948
+ * @export
949
+ * @interface AuthserviceApiVerifyOrgInvitationRequest
950
+ */
951
+ export interface AuthserviceApiVerifyOrgInvitationRequest {
952
+ /**
953
+ *
954
+ * @type {string}
955
+ * @memberof AuthserviceApiVerifyOrgInvitation
956
+ */
957
+ readonly invitationToken: string
958
+ }
959
+
884
960
  /**
885
961
  * Request parameters for verifyResetPasswordToken operation in AuthserviceApi.
886
962
  * @export
@@ -1022,6 +1098,18 @@ export class AuthserviceApi extends BaseAPI {
1022
1098
  return AuthserviceApiFp(this.configuration).verifyInvite(requestParameters.token, options).then((request) => request(this.axios, this.basePath));
1023
1099
  }
1024
1100
 
1101
+ /**
1102
+ * Verifies token and returns necessary data for signing up as an organization.
1103
+ * @summary Verify a organization\'s invitation token
1104
+ * @param {AuthserviceApiVerifyOrgInvitationRequest} requestParameters Request parameters.
1105
+ * @param {*} [options] Override http request option.
1106
+ * @throws {RequiredError}
1107
+ * @memberof AuthserviceApi
1108
+ */
1109
+ public verifyOrgInvitation(requestParameters: AuthserviceApiVerifyOrgInvitationRequest, options?: AxiosRequestConfig) {
1110
+ return AuthserviceApiFp(this.configuration).verifyOrgInvitation(requestParameters.invitationToken, options).then((request) => request(this.axios, this.basePath));
1111
+ }
1112
+
1025
1113
  /**
1026
1114
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
1027
1115
  * @summary Verify tenant reset password token
package/base.ts CHANGED
@@ -21,7 +21,7 @@ import * as fs from 'fs';
21
21
  import * as path from 'path';
22
22
  import * as os from 'os';
23
23
 
24
- export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
24
+ export const BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
25
25
  const CONFIG_DIRECTORY = '.emil';
26
26
  const CONFIG_FILENAME = 'credentials';
27
27
  const KEY_USERNAME = 'emil_username';
@@ -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
@@ -452,6 +452,42 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
452
452
  });
453
453
  });
454
454
  },
455
+ /**
456
+ * Verifies token and returns necessary data for signing up as an organization.
457
+ * @summary Verify a organization\'s invitation token
458
+ * @param {string} invitationToken
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ verifyOrgInvitation: function (invitationToken, options) {
463
+ if (options === void 0) { options = {}; }
464
+ return __awaiter(_this, void 0, void 0, function () {
465
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
466
+ return __generator(this, function (_a) {
467
+ // verify required parameter 'invitationToken' is not null or undefined
468
+ (0, common_1.assertParamExists)('verifyOrgInvitation', 'invitationToken', invitationToken);
469
+ localVarPath = "/authservice/v1/verify-org-invitation";
470
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
471
+ if (configuration) {
472
+ baseOptions = configuration.baseOptions;
473
+ baseAccessToken = configuration.accessToken;
474
+ }
475
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
476
+ localVarHeaderParameter = {};
477
+ localVarQueryParameter = {};
478
+ if (invitationToken !== undefined) {
479
+ localVarQueryParameter['invitationToken'] = invitationToken;
480
+ }
481
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
482
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
483
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
484
+ return [2 /*return*/, {
485
+ url: (0, common_1.toPathString)(localVarUrlObj),
486
+ options: localVarRequestOptions,
487
+ }];
488
+ });
489
+ });
490
+ },
455
491
  /**
456
492
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
457
493
  * @summary Verify tenant reset password token
@@ -699,6 +735,26 @@ var AuthserviceApiFp = function (configuration) {
699
735
  });
700
736
  });
701
737
  },
738
+ /**
739
+ * Verifies token and returns necessary data for signing up as an organization.
740
+ * @summary Verify a organization\'s invitation token
741
+ * @param {string} invitationToken
742
+ * @param {*} [options] Override http request option.
743
+ * @throws {RequiredError}
744
+ */
745
+ verifyOrgInvitation: function (invitationToken, options) {
746
+ return __awaiter(this, void 0, void 0, function () {
747
+ var localVarAxiosArgs;
748
+ return __generator(this, function (_a) {
749
+ switch (_a.label) {
750
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.verifyOrgInvitation(invitationToken, options)];
751
+ case 1:
752
+ localVarAxiosArgs = _a.sent();
753
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
754
+ }
755
+ });
756
+ });
757
+ },
702
758
  /**
703
759
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
704
760
  * @summary Verify tenant reset password token
@@ -830,6 +886,16 @@ var AuthserviceApiFactory = function (configuration, basePath, axios) {
830
886
  verifyInvite: function (token, options) {
831
887
  return localVarFp.verifyInvite(token, options).then(function (request) { return request(axios, basePath); });
832
888
  },
889
+ /**
890
+ * Verifies token and returns necessary data for signing up as an organization.
891
+ * @summary Verify a organization\'s invitation token
892
+ * @param {string} invitationToken
893
+ * @param {*} [options] Override http request option.
894
+ * @throws {RequiredError}
895
+ */
896
+ verifyOrgInvitation: function (invitationToken, options) {
897
+ return localVarFp.verifyOrgInvitation(invitationToken, options).then(function (request) { return request(axios, basePath); });
898
+ },
833
899
  /**
834
900
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
835
901
  * @summary Verify tenant reset password token
@@ -974,6 +1040,18 @@ var AuthserviceApi = /** @class */ (function (_super) {
974
1040
  var _this = this;
975
1041
  return (0, exports.AuthserviceApiFp)(this.configuration).verifyInvite(requestParameters.token, options).then(function (request) { return request(_this.axios, _this.basePath); });
976
1042
  };
1043
+ /**
1044
+ * Verifies token and returns necessary data for signing up as an organization.
1045
+ * @summary Verify a organization\'s invitation token
1046
+ * @param {AuthserviceApiVerifyOrgInvitationRequest} requestParameters Request parameters.
1047
+ * @param {*} [options] Override http request option.
1048
+ * @throws {RequiredError}
1049
+ * @memberof AuthserviceApi
1050
+ */
1051
+ AuthserviceApi.prototype.verifyOrgInvitation = function (requestParameters, options) {
1052
+ var _this = this;
1053
+ return (0, exports.AuthserviceApiFp)(this.configuration).verifyOrgInvitation(requestParameters.invitationToken, options).then(function (request) { return request(_this.axios, _this.basePath); });
1054
+ };
977
1055
  /**
978
1056
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
979
1057
  * @summary Verify tenant reset password token
package/dist/base.js CHANGED
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
109
109
  var fs = __importStar(require("fs"));
110
110
  var path = __importStar(require("path"));
111
111
  var os = __importStar(require("os"));
112
- exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
112
+ exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
113
113
  var CONFIG_DIRECTORY = '.emil';
114
114
  var CONFIG_FILENAME = 'credentials';
115
115
  var KEY_USERNAME = 'emil_username';
@@ -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-node",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "OpenAPI client for @emilgroup/auth-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [