@emilgroup/auth-sdk-node 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 (40) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/api/authservice-api.ts +88 -0
  4. package/api/default-api.ts +124 -0
  5. package/api.ts +2 -0
  6. package/base.ts +2 -1
  7. package/dist/api/authservice-api.d.ts +47 -0
  8. package/dist/api/authservice-api.js +78 -0
  9. package/dist/api/default-api.d.ts +66 -0
  10. package/dist/api/default-api.js +200 -0
  11. package/dist/api.d.ts +1 -0
  12. package/dist/api.js +1 -0
  13. package/dist/base.d.ts +2 -1
  14. package/dist/base.js +2 -1
  15. package/dist/models/create-org-and-user-request-dto.d.ts +17 -11
  16. package/dist/models/custom-schema-class.d.ts +66 -0
  17. package/dist/models/custom-schema-class.js +15 -0
  18. package/dist/models/index.d.ts +6 -0
  19. package/dist/models/index.js +6 -0
  20. package/dist/models/inline-response200.d.ts +54 -0
  21. package/dist/models/inline-response200.js +15 -0
  22. package/dist/models/inline-response503.d.ts +54 -0
  23. package/dist/models/inline-response503.js +15 -0
  24. package/dist/models/org-invitation-class.d.ts +109 -0
  25. package/dist/models/org-invitation-class.js +15 -0
  26. package/dist/models/organization-class.d.ts +7 -1
  27. package/dist/models/verify-org-invitation-request-dto.d.ts +24 -0
  28. package/dist/models/verify-org-invitation-request-dto.js +15 -0
  29. package/dist/models/verify-org-invitation-response-class.d.ts +32 -0
  30. package/dist/models/verify-org-invitation-response-class.js +15 -0
  31. package/models/create-org-and-user-request-dto.ts +17 -11
  32. package/models/custom-schema-class.ts +72 -0
  33. package/models/index.ts +6 -0
  34. package/models/inline-response200.ts +48 -0
  35. package/models/inline-response503.ts +48 -0
  36. package/models/org-invitation-class.ts +115 -0
  37. package/models/organization-class.ts +7 -1
  38. package/models/verify-org-invitation-request-dto.ts +30 -0
  39. package/models/verify-org-invitation-response-class.ts +38 -0
  40. package/package.json +2 -2
@@ -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,20 @@ 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';
8
+ export * from './inline-response200';
9
+ export * from './inline-response503';
7
10
  export * from './login-by-samlrequest-dto';
8
11
  export * from './login-class';
9
12
  export * from './login-request-dto';
10
13
  export * from './logout-request-dto';
14
+ export * from './org-invitation-class';
11
15
  export * from './organization-class';
12
16
  export * from './refresh-token-dto';
13
17
  export * from './reset-password-request-dto';
14
18
  export * from './role-class';
15
19
  export * from './user-class';
20
+ export * from './verify-org-invitation-request-dto';
21
+ export * from './verify-org-invitation-response-class';
@@ -0,0 +1,48 @@
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 InlineResponse200
21
+ */
22
+ export interface InlineResponse200 {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InlineResponse200
27
+ */
28
+ 'status'?: string;
29
+ /**
30
+ *
31
+ * @type {{ [key: string]: { [key: string]: string; }; }}
32
+ * @memberof InlineResponse200
33
+ */
34
+ 'info'?: { [key: string]: { [key: string]: string; }; } | null;
35
+ /**
36
+ *
37
+ * @type {{ [key: string]: { [key: string]: string; }; }}
38
+ * @memberof InlineResponse200
39
+ */
40
+ 'error'?: { [key: string]: { [key: string]: string; }; } | null;
41
+ /**
42
+ *
43
+ * @type {{ [key: string]: { [key: string]: string; }; }}
44
+ * @memberof InlineResponse200
45
+ */
46
+ 'details'?: { [key: string]: { [key: string]: string; }; };
47
+ }
48
+
@@ -0,0 +1,48 @@
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 InlineResponse503
21
+ */
22
+ export interface InlineResponse503 {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InlineResponse503
27
+ */
28
+ 'status'?: string;
29
+ /**
30
+ *
31
+ * @type {{ [key: string]: { [key: string]: string; }; }}
32
+ * @memberof InlineResponse503
33
+ */
34
+ 'info'?: { [key: string]: { [key: string]: string; }; } | null;
35
+ /**
36
+ *
37
+ * @type {{ [key: string]: { [key: string]: string; }; }}
38
+ * @memberof InlineResponse503
39
+ */
40
+ 'error'?: { [key: string]: { [key: string]: string; }; } | null;
41
+ /**
42
+ *
43
+ * @type {{ [key: string]: { [key: string]: string; }; }}
44
+ * @memberof InlineResponse503
45
+ */
46
+ 'details'?: { [key: string]: { [key: string]: string; }; };
47
+ }
48
+
@@ -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
+