@emilgroup/auth-sdk-node 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +28 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +68 -0
- package/api/authservice-api.ts +1036 -0
- package/api.ts +31 -0
- package/base.ts +284 -0
- package/common.ts +199 -0
- package/configuration.ts +109 -0
- package/dist/api/authservice-api.d.ts +566 -0
- package/dist/api/authservice-api.js +991 -0
- package/dist/api.d.ts +12 -0
- package/dist/api.js +30 -0
- package/dist/base.d.ts +77 -0
- package/dist/base.js +393 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/create-org-and-user-request-dto.d.ts +78 -0
- package/dist/models/create-org-and-user-request-dto.js +15 -0
- package/dist/models/create-org-and-user-response-class.d.ts +31 -0
- package/dist/models/create-org-and-user-response-class.js +15 -0
- package/dist/models/create-user-request-dto.d.ts +54 -0
- package/dist/models/create-user-request-dto.js +15 -0
- package/dist/models/create-user-response-class.d.ts +25 -0
- package/dist/models/create-user-response-class.js +15 -0
- package/dist/models/forgot-password-request-dto.d.ts +24 -0
- package/dist/models/forgot-password-request-dto.js +15 -0
- package/dist/models/get-samllogin-link-request-dto.d.ts +24 -0
- package/dist/models/get-samllogin-link-request-dto.js +15 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +30 -0
- package/dist/models/login-by-samlrequest-dto.d.ts +30 -0
- package/dist/models/login-by-samlrequest-dto.js +15 -0
- package/dist/models/login-class.d.ts +30 -0
- package/dist/models/login-class.js +15 -0
- package/dist/models/login-request-dto.d.ts +30 -0
- package/dist/models/login-request-dto.js +15 -0
- package/dist/models/logout-request-dto.d.ts +24 -0
- package/dist/models/logout-request-dto.js +15 -0
- package/dist/models/refresh-token-dto.d.ts +24 -0
- package/dist/models/refresh-token-dto.js +15 -0
- package/dist/models/reset-password-request-dto.d.ts +36 -0
- package/dist/models/reset-password-request-dto.js +15 -0
- package/dist/models/role-class.d.ts +54 -0
- package/dist/models/role-class.js +15 -0
- package/dist/models/user-class.d.ts +85 -0
- package/dist/models/user-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/create-org-and-user-request-dto.ts +84 -0
- package/models/create-org-and-user-response-class.ts +37 -0
- package/models/create-user-request-dto.ts +60 -0
- package/models/create-user-response-class.ts +31 -0
- package/models/forgot-password-request-dto.ts +30 -0
- package/models/get-samllogin-link-request-dto.ts +30 -0
- package/models/index.ts +14 -0
- package/models/login-by-samlrequest-dto.ts +36 -0
- package/models/login-class.ts +36 -0
- package/models/login-request-dto.ts +36 -0
- package/models/logout-request-dto.ts +30 -0
- package/models/refresh-token-dto.ts +30 -0
- package/models/reset-password-request-dto.ts +42 -0
- package/models/role-class.ts +60 -0
- package/models/user-class.ts +91 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { UserClass } from './user-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateUserResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateUserResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* user
|
|
21
|
+
* @type {UserClass}
|
|
22
|
+
* @memberof CreateUserResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'user': UserClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AuthService
|
|
6
|
+
* The EMIL AuthService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
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
|
+
*
|
|
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 ForgotPasswordRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface ForgotPasswordRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Tenant user\'s email address
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ForgotPasswordRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'email': 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
|
+
*
|
|
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
|
+
*
|
|
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 GetSAMLLoginLinkRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface GetSAMLLoginLinkRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetSAMLLoginLinkRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'tenantSlug': 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
|
+
*
|
|
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,14 @@
|
|
|
1
|
+
export * from './create-org-and-user-request-dto';
|
|
2
|
+
export * from './create-org-and-user-response-class';
|
|
3
|
+
export * from './create-user-request-dto';
|
|
4
|
+
export * from './create-user-response-class';
|
|
5
|
+
export * from './forgot-password-request-dto';
|
|
6
|
+
export * from './get-samllogin-link-request-dto';
|
|
7
|
+
export * from './login-by-samlrequest-dto';
|
|
8
|
+
export * from './login-class';
|
|
9
|
+
export * from './login-request-dto';
|
|
10
|
+
export * from './logout-request-dto';
|
|
11
|
+
export * from './refresh-token-dto';
|
|
12
|
+
export * from './reset-password-request-dto';
|
|
13
|
+
export * from './role-class';
|
|
14
|
+
export * from './user-class';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-org-and-user-request-dto"), exports);
|
|
18
|
+
__exportStar(require("./create-org-and-user-response-class"), exports);
|
|
19
|
+
__exportStar(require("./create-user-request-dto"), exports);
|
|
20
|
+
__exportStar(require("./create-user-response-class"), exports);
|
|
21
|
+
__exportStar(require("./forgot-password-request-dto"), exports);
|
|
22
|
+
__exportStar(require("./get-samllogin-link-request-dto"), exports);
|
|
23
|
+
__exportStar(require("./login-by-samlrequest-dto"), exports);
|
|
24
|
+
__exportStar(require("./login-class"), exports);
|
|
25
|
+
__exportStar(require("./login-request-dto"), exports);
|
|
26
|
+
__exportStar(require("./logout-request-dto"), exports);
|
|
27
|
+
__exportStar(require("./refresh-token-dto"), exports);
|
|
28
|
+
__exportStar(require("./reset-password-request-dto"), exports);
|
|
29
|
+
__exportStar(require("./role-class"), exports);
|
|
30
|
+
__exportStar(require("./user-class"), exports);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 LoginBySAMLRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginBySAMLRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* code for grant type authorization code
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LoginBySAMLRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'code': string;
|
|
24
|
+
/**
|
|
25
|
+
* Tenant slug
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LoginBySAMLRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'tenantSlug': string;
|
|
30
|
+
}
|
|
@@ -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
|
+
*
|
|
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,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 LoginClass
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginClass {
|
|
18
|
+
/**
|
|
19
|
+
* Access token, used to identify user requests
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LoginClass
|
|
22
|
+
*/
|
|
23
|
+
'accessToken': string;
|
|
24
|
+
/**
|
|
25
|
+
* States all user\'s permission
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LoginClass
|
|
28
|
+
*/
|
|
29
|
+
'permissions': string;
|
|
30
|
+
}
|
|
@@ -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
|
+
*
|
|
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,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 LoginRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Tenant user\'s username. Usually an email.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LoginRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'username': string;
|
|
24
|
+
/**
|
|
25
|
+
* Tenant user\'s password.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LoginRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'password': string;
|
|
30
|
+
}
|
|
@@ -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
|
+
*
|
|
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
|
+
*
|
|
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 LogoutRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LogoutRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Tenant user\'s username. Usually an email.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LogoutRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'username': 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
|
+
*
|
|
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
|
+
*
|
|
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 RefreshTokenDto
|
|
16
|
+
*/
|
|
17
|
+
export interface RefreshTokenDto {
|
|
18
|
+
/**
|
|
19
|
+
* Tenant user\'s username. Usually an email.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RefreshTokenDto
|
|
22
|
+
*/
|
|
23
|
+
'username': 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
|
+
*
|
|
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,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 ResetPasswordRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface ResetPasswordRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Tenant user\'s email address
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ResetPasswordRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'email': string;
|
|
24
|
+
/**
|
|
25
|
+
* Tenant user\'s reset token. Reset token can be found in the email sent after \'forgot-password\' endpoint was called.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ResetPasswordRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'resetToken': string;
|
|
30
|
+
/**
|
|
31
|
+
* Tenant user\'s new password
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ResetPasswordRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'password': string;
|
|
36
|
+
}
|
|
@@ -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
|
+
*
|
|
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
|
+
*
|
|
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
|
+
*
|
|
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
|
+
*
|
|
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
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="Emil"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="auth-sdk-node"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|