@emilgroup/auth-sdk 1.0.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.
Files changed (41) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +2 -2
  3. package/api/authservice-api.ts +183 -4
  4. package/base.ts +2 -0
  5. package/dist/api/authservice-api.d.ts +102 -6
  6. package/dist/api/authservice-api.js +155 -0
  7. package/dist/base.js +3 -0
  8. package/dist/models/create-org-and-user-request-dto.d.ts +84 -0
  9. package/dist/models/create-org-and-user-request-dto.js +15 -0
  10. package/dist/models/create-org-and-user-response-class.d.ts +32 -0
  11. package/dist/models/create-org-and-user-response-class.js +15 -0
  12. package/dist/models/create-user-response-class.d.ts +25 -0
  13. package/dist/models/create-user-response-class.js +15 -0
  14. package/dist/models/custom-schema-class.d.ts +66 -0
  15. package/dist/models/custom-schema-class.js +15 -0
  16. package/dist/models/index.d.ts +10 -0
  17. package/dist/models/index.js +10 -0
  18. package/dist/models/org-invitation-class.d.ts +109 -0
  19. package/dist/models/org-invitation-class.js +15 -0
  20. package/dist/models/organization-class.d.ts +114 -0
  21. package/dist/models/organization-class.js +15 -0
  22. package/dist/models/role-class.d.ts +54 -0
  23. package/dist/models/role-class.js +15 -0
  24. package/dist/models/user-class.d.ts +85 -0
  25. package/dist/models/user-class.js +15 -0
  26. package/dist/models/verify-org-invitation-request-dto.d.ts +24 -0
  27. package/dist/models/verify-org-invitation-request-dto.js +15 -0
  28. package/dist/models/verify-org-invitation-response-class.d.ts +32 -0
  29. package/dist/models/verify-org-invitation-response-class.js +15 -0
  30. package/models/create-org-and-user-request-dto.ts +90 -0
  31. package/models/create-org-and-user-response-class.ts +38 -0
  32. package/models/create-user-response-class.ts +31 -0
  33. package/models/custom-schema-class.ts +72 -0
  34. package/models/index.ts +10 -0
  35. package/models/org-invitation-class.ts +115 -0
  36. package/models/organization-class.ts +120 -0
  37. package/models/role-class.ts +60 -0
  38. package/models/user-class.ts +91 -0
  39. package/models/verify-org-invitation-request-dto.ts +30 -0
  40. package/models/verify-org-invitation-response-class.ts +38 -0
  41. package/package.json +1 -1
@@ -0,0 +1,114 @@
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 OrganizationClass
16
+ */
17
+ export interface OrganizationClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof OrganizationClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof OrganizationClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof OrganizationClass
34
+ */
35
+ 'parentId'?: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof OrganizationClass
40
+ */
41
+ 'email': string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof OrganizationClass
46
+ */
47
+ 'ern'?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof OrganizationClass
52
+ */
53
+ 'name': string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof OrganizationClass
58
+ */
59
+ 'type': string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof OrganizationClass
64
+ */
65
+ 'street': string;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof OrganizationClass
70
+ */
71
+ 'houseNumber': string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof OrganizationClass
76
+ */
77
+ 'zipCode': string;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof OrganizationClass
82
+ */
83
+ 'city': string;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof OrganizationClass
88
+ */
89
+ 'country': string;
90
+ /**
91
+ *
92
+ * @type {object}
93
+ * @memberof OrganizationClass
94
+ */
95
+ 'customFields'?: object;
96
+ /**
97
+ * Time at which the object was created.
98
+ * @type {string}
99
+ * @memberof OrganizationClass
100
+ */
101
+ 'createdAt': string;
102
+ /**
103
+ * Time at which the object was updated.
104
+ * @type {string}
105
+ * @memberof OrganizationClass
106
+ */
107
+ 'updatedAt': string;
108
+ /**
109
+ *
110
+ * @type {string}
111
+ * @memberof OrganizationClass
112
+ */
113
+ 'deletedAt'?: string | null;
114
+ }
@@ -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,54 @@
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 RoleClass
16
+ */
17
+ export interface RoleClass {
18
+ /**
19
+ * unique role code
20
+ * @type {string}
21
+ * @memberof RoleClass
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * role id
26
+ * @type {number}
27
+ * @memberof RoleClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * short description of the role
32
+ * @type {string}
33
+ * @memberof RoleClass
34
+ */
35
+ 'description': string;
36
+ /**
37
+ * role label
38
+ * @type {string}
39
+ * @memberof RoleClass
40
+ */
41
+ 'label': string;
42
+ /**
43
+ * Date created
44
+ * @type {string}
45
+ * @memberof RoleClass
46
+ */
47
+ 'createdAt': string;
48
+ /**
49
+ * Date updated
50
+ * @type {string}
51
+ * @memberof RoleClass
52
+ */
53
+ 'updatedAt': string;
54
+ }
@@ -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,85 @@
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 UserClass
17
+ */
18
+ export interface UserClass {
19
+ /**
20
+ * user id
21
+ * @type {number}
22
+ * @memberof UserClass
23
+ */
24
+ 'id': number;
25
+ /**
26
+ * unique user code
27
+ * @type {string}
28
+ * @memberof UserClass
29
+ */
30
+ 'code': string;
31
+ /**
32
+ * email address of the user
33
+ * @type {string}
34
+ * @memberof UserClass
35
+ */
36
+ 'email': string;
37
+ /**
38
+ * first name of the user
39
+ * @type {string}
40
+ * @memberof UserClass
41
+ */
42
+ 'firstName': string;
43
+ /**
44
+ * first name of the user
45
+ * @type {string}
46
+ * @memberof UserClass
47
+ */
48
+ 'lastName': string;
49
+ /**
50
+ * status of the of the user
51
+ * @type {string}
52
+ * @memberof UserClass
53
+ */
54
+ 'status': string;
55
+ /**
56
+ * cognito sub of the user
57
+ * @type {string}
58
+ * @memberof UserClass
59
+ */
60
+ 'sub': string;
61
+ /**
62
+ * tenant id
63
+ * @type {number}
64
+ * @memberof UserClass
65
+ */
66
+ 'tenantId': number;
67
+ /**
68
+ * permissions associated with the user
69
+ * @type {Array<RoleClass>}
70
+ * @memberof UserClass
71
+ */
72
+ 'roles': Array<RoleClass>;
73
+ /**
74
+ * Date created
75
+ * @type {string}
76
+ * @memberof UserClass
77
+ */
78
+ 'createdAt': string;
79
+ /**
80
+ * Date updated
81
+ * @type {string}
82
+ * @memberof UserClass
83
+ */
84
+ 'updatedAt': string;
85
+ }
@@ -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,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 });
@@ -0,0 +1,90 @@
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 CreateOrgAndUserRequestDto
21
+ */
22
+ export interface CreateOrgAndUserRequestDto {
23
+ /**
24
+ * Organization\'s street name.
25
+ * @type {string}
26
+ * @memberof CreateOrgAndUserRequestDto
27
+ */
28
+ 'street': string;
29
+ /**
30
+ * Organization\'s house number.
31
+ * @type {string}
32
+ * @memberof CreateOrgAndUserRequestDto
33
+ */
34
+ 'houseNumber': string;
35
+ /**
36
+ * City of the organization.
37
+ * @type {string}
38
+ * @memberof CreateOrgAndUserRequestDto
39
+ */
40
+ 'city': string;
41
+ /**
42
+ * Country of the organization.
43
+ * @type {string}
44
+ * @memberof CreateOrgAndUserRequestDto
45
+ */
46
+ 'country': string;
47
+ /**
48
+ * Custom fields of the organization
49
+ * @type {object}
50
+ * @memberof CreateOrgAndUserRequestDto
51
+ */
52
+ 'customFields'?: object;
53
+ /**
54
+ * User\'s first name
55
+ * @type {string}
56
+ * @memberof CreateOrgAndUserRequestDto
57
+ */
58
+ 'firstName': string;
59
+ /**
60
+ * Organization invitation token
61
+ * @type {string}
62
+ * @memberof CreateOrgAndUserRequestDto
63
+ */
64
+ 'invitationToken': string;
65
+ /**
66
+ * if user accepts end user license agreement
67
+ * @type {boolean}
68
+ * @memberof CreateOrgAndUserRequestDto
69
+ */
70
+ 'isEulaAccepted': boolean;
71
+ /**
72
+ * User\'s last name
73
+ * @type {string}
74
+ * @memberof CreateOrgAndUserRequestDto
75
+ */
76
+ 'lastName': string;
77
+ /**
78
+ * User\'s password
79
+ * @type {string}
80
+ * @memberof CreateOrgAndUserRequestDto
81
+ */
82
+ 'password': string;
83
+ /**
84
+ * Zip code of the organization.
85
+ * @type {string}
86
+ * @memberof CreateOrgAndUserRequestDto
87
+ */
88
+ 'zipCode': string;
89
+ }
90
+
@@ -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 { OrganizationClass } from './organization-class';
17
+ import { UserClass } from './user-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface CreateOrgAndUserResponseClass
23
+ */
24
+ export interface CreateOrgAndUserResponseClass {
25
+ /**
26
+ * Organization
27
+ * @type {OrganizationClass}
28
+ * @memberof CreateOrgAndUserResponseClass
29
+ */
30
+ 'organization': OrganizationClass;
31
+ /**
32
+ * User
33
+ * @type {UserClass}
34
+ * @memberof CreateOrgAndUserResponseClass
35
+ */
36
+ 'user': UserClass;
37
+ }
38
+
@@ -0,0 +1,31 @@
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 { UserClass } from './user-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateUserResponseClass
22
+ */
23
+ export interface CreateUserResponseClass {
24
+ /**
25
+ * user
26
+ * @type {UserClass}
27
+ * @memberof CreateUserResponseClass
28
+ */
29
+ 'user': UserClass;
30
+ }
31
+
@@ -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
@@ -1,9 +1,19 @@
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';
5
+ export * from './custom-schema-class';
2
6
  export * from './forgot-password-request-dto';
3
7
  export * from './get-samllogin-link-request-dto';
4
8
  export * from './login-by-samlrequest-dto';
5
9
  export * from './login-class';
6
10
  export * from './login-request-dto';
7
11
  export * from './logout-request-dto';
12
+ export * from './org-invitation-class';
13
+ export * from './organization-class';
8
14
  export * from './refresh-token-dto';
9
15
  export * from './reset-password-request-dto';
16
+ export * from './role-class';
17
+ export * from './user-class';
18
+ export * from './verify-org-invitation-request-dto';
19
+ export * from './verify-org-invitation-response-class';