cidaas-javascript-sdk 4.2.0 → 4.2.2

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/CHANGELOG.md CHANGED
@@ -1,12 +1,38 @@
1
- # [4.2.0](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/compare/v4.1.0...v4.2.0) (2024-03-14)
1
+ ## [4.2.2](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/compare/v4.2.1...v4.2.2) (2024-04-08)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * add get missing fields from social provider ([fde6303](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/fde630370b0869f836363441b261effa5b2a810f))
6
+ * Fix compatibility with es2016 ([6025bbf](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/6025bbf0e81f1b42308c44d59bd62d05f4bd0556))
7
+ * Fix popup sign out callback not falling back post_logout_redirect_uri ([01cd31f](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/01cd31f01c04220ede7c3e2f414d975e7a95cc67))
8
+ * Fix unable to import authentication module models ([565e0c4](https://gitlab.widas.de/cidaas-public-devkits/cidaas-public-sdks/cidaas-javascript-sdk/commit/565e0c4721834ed53037d2ca8efa616389945da7))
7
9
 
8
10
  # Changelog
9
11
 
12
+ ## V4.2.2
13
+
14
+ ### Fixed
15
+ - Fix build failing on es2016 and above versions
16
+
17
+ ## V4.2.1
18
+
19
+ ### Added
20
+ - Add authentication type
21
+
22
+ ### Changed
23
+ - loginWithBrowser can be over-ridden with LoginRedirectOptions
24
+ - popupSignIn can be over-ridden with PopupSignInOptions
25
+ - silentSignIn can be over-ridden with SilentSignInOptions
26
+ - registerWithBrowser can be over-ridden with LoginRedirectOptions
27
+ - loginCallback accepts url location option
28
+ - popupSignInCallback accepts url and keepOpen option
29
+ - silentSignInCallback accepts url location option
30
+ - logout can be over-ridden with LogoutRedirectOptions
31
+ - popupSignOut can be over-ridden with PopupSignOutOptions
32
+ - logoutCallback accepts url location option
33
+ - popupSignOutCallback accepts url location option
34
+ - getLoginURL can be over-ridden with LoginRequestOptions
35
+
10
36
  ## V4.2.0
11
37
 
12
38
  ### Added
@@ -0,0 +1,62 @@
1
+ import { SigninPopupArgs, SigninRedirectArgs, SigninSilentArgs, SignoutPopupArgs, SignoutRedirectArgs, UserManagerSettings, UserManager, OidcClient, CreateSigninRequestArgs, User as OidcUser, SignoutResponse } from 'oidc-client-ts';
2
+ /**
3
+ * @augments UserManagerSettings
4
+ * **/
5
+ export interface OidcSettings extends UserManagerSettings {
6
+ }
7
+ /**
8
+ * @augments UserManager
9
+ * */
10
+ export declare class OidcManager extends UserManager {
11
+ constructor(settings: OidcSettings);
12
+ getClient(): OidcClient;
13
+ }
14
+ /***
15
+ * Login request to generate authz url.
16
+ * It's based of the parameters in OIDC specs
17
+ * @augments CreateSigninRequestArgs
18
+ */
19
+ export interface LoginRequestOptions extends CreateSigninRequestArgs {
20
+ }
21
+ /***
22
+ * Options to override options during redirect login
23
+ * @augments SigninRedirectArgs
24
+ */
25
+ export interface LoginRedirectOptions extends SigninRedirectArgs {
26
+ }
27
+ /**
28
+ * Response state holding sign out errors if any
29
+ * @augments SignoutResponse
30
+ * **/
31
+ export interface LogoutResponse extends SignoutResponse {
32
+ }
33
+ /***
34
+ * Options to override options during redirect logout
35
+ * @augments SignoutRedirectArgs
36
+ */
37
+ export interface LogoutRedirectOptions extends SignoutRedirectArgs {
38
+ }
39
+ /***
40
+ * Options to override options during popup sign in
41
+ * @augments SigninPopupArgs
42
+ */
43
+ export interface PopupSignInOptions extends SigninPopupArgs {
44
+ }
45
+ /***
46
+ * Options to override options during popup sign out
47
+ * @augments SignoutPopupArgs
48
+ */
49
+ export interface PopupSignOutOptions extends SignoutPopupArgs {
50
+ }
51
+ /***
52
+ * Options to override options during silent sign in
53
+ * @augments SigninSilentArgs
54
+ */
55
+ export interface SilentSignInOptions extends SigninSilentArgs {
56
+ }
57
+ /**
58
+ * Authenticated user information including token, id_token and claims
59
+ * @augments OidcUser
60
+ * **/
61
+ export declare class User extends OidcUser {
62
+ }
@@ -0,0 +1,18 @@
1
+ import { UserManager, User as OidcUser } from 'oidc-client-ts';
2
+ /**
3
+ * @augments UserManager
4
+ * */
5
+ export class OidcManager extends UserManager {
6
+ constructor(settings) {
7
+ super(settings);
8
+ }
9
+ getClient() {
10
+ return this._client;
11
+ }
12
+ }
13
+ /**
14
+ * Authenticated user information including token, id_token and claims
15
+ * @augments OidcUser
16
+ * **/
17
+ export class User extends OidcUser {
18
+ }
@@ -1,8 +1,9 @@
1
- import { UserManager, UserManagerSettings } from "oidc-client-ts";
1
+ import { OidcManager, OidcSettings, LoginRedirectOptions, LogoutRedirectOptions, PopupSignInOptions, PopupSignOutOptions, SilentSignInOptions, LogoutResponse } from './authentication.model';
2
+ export * from './authentication.model';
2
3
  export declare class Authentication {
3
- webAuthSettings: UserManagerSettings;
4
- userManager: UserManager;
5
- constructor(webAuthSettings: UserManagerSettings, userManager: UserManager);
4
+ webAuthSettings: OidcSettings;
5
+ userManager: OidcManager;
6
+ constructor(webAuthSettings: OidcSettings, userManager: OidcManager);
6
7
  /**
7
8
  * To login through cidaas sdk, call **loginWithBrowser()**. This will redirect you to the hosted login page.
8
9
  * once login successful, it will automatically redirects you to the redirect url whatever you mentioned in the options.
@@ -17,9 +18,10 @@ export declare class Authentication {
17
18
  * cidaas.registerWithBrowser();
18
19
  * ```
19
20
  *
20
- * @param view_type: either 'login' or 'register'
21
+ * @param {string} view_type either 'login' or 'register'
22
+ * @param {LoginRedirectOptions} options optional login options to override the webauth configuration
21
23
  */
22
- loginOrRegisterWithBrowser(view_type: string): Promise<void>;
24
+ loginOrRegisterWithBrowser(view_type: string, options?: LoginRedirectOptions): Promise<void>;
23
25
  /**
24
26
  * Once login successful, it will automatically redirects you to the redirect url whatever you mentioned in the options.
25
27
  * To complete the login process, call **loginCallback()**. This will parses the access_token, id_token and whatever in hash in the redirect url.
@@ -31,16 +33,18 @@ export declare class Authentication {
31
33
  * // your failure code here
32
34
  * });
33
35
  * ```
36
+ * @param {string} url optional url to read sign in state from
34
37
  */
35
- loginCallback(): Promise<import("oidc-client-ts").User>;
38
+ loginCallback(url?: string): Promise<import("oidc-client-ts").User>;
36
39
  /**
37
40
  * To use the **logout()** method, you need set the redirect url, if not it will automatically redirect to the login page
38
41
  * @example
39
42
  * ```js
40
43
  * cidaas.logout();
41
44
  * ```
45
+ * @param {LogoutRedirectOptions} options optional logout options to override webauth configurations
42
46
  */
43
- logout(): Promise<void>;
47
+ logout(options?: LogoutRedirectOptions): Promise<void>;
44
48
  /**
45
49
  * **logoutCallback()** will parses the details of userState after logout.
46
50
  * @example
@@ -51,8 +55,9 @@ export declare class Authentication {
51
55
  * // your failure code here
52
56
  * });
53
57
  * ```
58
+ * @param {string} url optional url to read signout state from,
54
59
  */
55
- logoutCallback(): Promise<import("oidc-client-ts").SignoutResponse>;
60
+ logoutCallback(url?: string): Promise<LogoutResponse>;
56
61
  /**
57
62
  * **popupSignIn()** will open the hosted login page in pop up window.
58
63
  * @example
@@ -63,8 +68,9 @@ export declare class Authentication {
63
68
  * // your failure code here
64
69
  * });
65
70
  * ```
71
+ * @param {LogoutRedirectOptions} options optional popup sign-in options to override webauth configurations
66
72
  */
67
- popupSignIn(): Promise<import("oidc-client-ts").User>;
73
+ popupSignIn(options?: PopupSignInOptions): Promise<import("oidc-client-ts").User>;
68
74
  /**
69
75
  * To complete the popup login process, call **popupSignInCallback()** from the popup login window.
70
76
  * Popup window will be closed after doing callback
@@ -72,8 +78,10 @@ export declare class Authentication {
72
78
  * ```js
73
79
  * cidaas.popupSignInCallback();
74
80
  * ```
81
+ * @param {string} url optional url to read sign-in callback state from
82
+ * @param {boolean} keepOpen true to keep the popup open even after sign in, else false
75
83
  */
76
- popupSignInCallback(): Promise<void>;
84
+ popupSignInCallback(url?: string, keepOpen?: boolean): Promise<void>;
77
85
  /**
78
86
  * **popupSignOut()** will open the hosted logout page in pop up window.
79
87
  * @example
@@ -84,8 +92,10 @@ export declare class Authentication {
84
92
  * // your failure code here
85
93
  * });
86
94
  * ```
95
+ *
96
+ * @param {PopupSignOutOptions} options optional options to over-ride logout options using popup window
87
97
  */
88
- popupSignOut(): Promise<void>;
98
+ popupSignOut(options?: PopupSignOutOptions): Promise<void>;
89
99
  /**
90
100
  * calling **popupSignOutCallback()** from the popup window complete popup logout process.
91
101
  * Popup window won't be closed after doing callback
@@ -97,8 +107,11 @@ export declare class Authentication {
97
107
  * // your failure code here
98
108
  * });
99
109
  * ```
110
+ *
111
+ * @param {string} url optional url to override to check for sign out state
112
+ * @param {boolean} keepOpen true to keep the popup open even after sign out, else false
100
113
  */
101
- popupSignOutCallback(): Promise<void>;
114
+ popupSignOutCallback(url?: string, keepOpen?: boolean): Promise<void>;
102
115
  /**
103
116
  * **silentSignIn()** will open the hosted login page in an iframe.
104
117
  * this function could only be called from the same domain. Cross Domain is not supported for security purpose.
@@ -110,14 +123,17 @@ export declare class Authentication {
110
123
  * // your failure code here
111
124
  * });
112
125
  * ```
126
+ * @param {SilentSignInOptions} options options to over-ride the client config for silent sign in
113
127
  */
114
- silentSignIn(): Promise<import("oidc-client-ts").User>;
128
+ silentSignIn(options?: SilentSignInOptions): Promise<import("oidc-client-ts").User>;
115
129
  /**
116
130
  * To complete the silent login process, call **silentSignInCallback()** from the iframe. This will complete the login process in iframe.
117
131
  * @example
118
132
  * ```js
119
133
  * cidaas.silentSignInCallback();
134
+ *
120
135
  * ```
136
+ * @param {string} url optional url to read sign in state from
121
137
  */
122
- silentSignInCallback(callbackurl?: string): Promise<void>;
138
+ silentSignInCallback(url?: string): Promise<void>;
123
139
  }
@@ -1,8 +1,6 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.Authentication = void 0;
4
- var Authentication = /** @class */ (function () {
5
- function Authentication(webAuthSettings, userManager) {
1
+ export * from './authentication.model';
2
+ export class Authentication {
3
+ constructor(webAuthSettings, userManager) {
6
4
  this.webAuthSettings = webAuthSettings;
7
5
  this.userManager = userManager;
8
6
  }
@@ -20,9 +18,10 @@ var Authentication = /** @class */ (function () {
20
18
  * cidaas.registerWithBrowser();
21
19
  * ```
22
20
  *
23
- * @param view_type: either 'login' or 'register'
21
+ * @param {string} view_type either 'login' or 'register'
22
+ * @param {LoginRedirectOptions} options optional login options to override the webauth configuration
24
23
  */
25
- Authentication.prototype.loginOrRegisterWithBrowser = function (view_type) {
24
+ loginOrRegisterWithBrowser(view_type, options) {
26
25
  var _a;
27
26
  if (!this.webAuthSettings.extraQueryParams) {
28
27
  this.webAuthSettings.extraQueryParams = {};
@@ -31,11 +30,8 @@ var Authentication = /** @class */ (function () {
31
30
  if (this.webAuthSettings.response_type.indexOf("id_token") == -1 && ((_a = this.webAuthSettings.scope) === null || _a === void 0 ? void 0 : _a.indexOf("openid")) != -1 && !this.webAuthSettings.extraQueryParams.nonce) {
32
31
  this.webAuthSettings.extraQueryParams.nonce = new Date().getTime().toString();
33
32
  }
34
- return this.userManager.signinRedirect({
35
- extraQueryParams: this.webAuthSettings.extraQueryParams,
36
- redirect_uri: this.webAuthSettings.redirect_uri
37
- });
38
- };
33
+ return this.userManager.signinRedirect(Object.assign({ extraQueryParams: this.webAuthSettings.extraQueryParams, redirect_uri: this.webAuthSettings.redirect_uri }, (options && Object.assign({}, options) || {})));
34
+ }
39
35
  ;
40
36
  /**
41
37
  * Once login successful, it will automatically redirects you to the redirect url whatever you mentioned in the options.
@@ -48,20 +44,22 @@ var Authentication = /** @class */ (function () {
48
44
  * // your failure code here
49
45
  * });
50
46
  * ```
47
+ * @param {string} url optional url to read sign in state from
51
48
  */
52
- Authentication.prototype.loginCallback = function () {
53
- return this.userManager.signinRedirectCallback();
54
- };
49
+ loginCallback(url) {
50
+ return this.userManager.signinRedirectCallback(url);
51
+ }
55
52
  /**
56
53
  * To use the **logout()** method, you need set the redirect url, if not it will automatically redirect to the login page
57
54
  * @example
58
55
  * ```js
59
56
  * cidaas.logout();
60
57
  * ```
58
+ * @param {LogoutRedirectOptions} options optional logout options to override webauth configurations
61
59
  */
62
- Authentication.prototype.logout = function () {
63
- return this.userManager.signoutRedirect({ state: this.webAuthSettings });
64
- };
60
+ logout(options) {
61
+ return this.userManager.signoutRedirect(options);
62
+ }
65
63
  /**
66
64
  * **logoutCallback()** will parses the details of userState after logout.
67
65
  * @example
@@ -72,10 +70,11 @@ var Authentication = /** @class */ (function () {
72
70
  * // your failure code here
73
71
  * });
74
72
  * ```
73
+ * @param {string} url optional url to read signout state from,
75
74
  */
76
- Authentication.prototype.logoutCallback = function () {
77
- return this.userManager.signoutRedirectCallback();
78
- };
75
+ logoutCallback(url) {
76
+ return this.userManager.signoutRedirectCallback(url);
77
+ }
79
78
  ;
80
79
  /**
81
80
  * **popupSignIn()** will open the hosted login page in pop up window.
@@ -87,10 +86,11 @@ var Authentication = /** @class */ (function () {
87
86
  * // your failure code here
88
87
  * });
89
88
  * ```
89
+ * @param {LogoutRedirectOptions} options optional popup sign-in options to override webauth configurations
90
90
  */
91
- Authentication.prototype.popupSignIn = function () {
92
- return this.userManager.signinPopup();
93
- };
91
+ popupSignIn(options) {
92
+ return this.userManager.signinPopup(options);
93
+ }
94
94
  ;
95
95
  /**
96
96
  * To complete the popup login process, call **popupSignInCallback()** from the popup login window.
@@ -99,10 +99,12 @@ var Authentication = /** @class */ (function () {
99
99
  * ```js
100
100
  * cidaas.popupSignInCallback();
101
101
  * ```
102
+ * @param {string} url optional url to read sign-in callback state from
103
+ * @param {boolean} keepOpen true to keep the popup open even after sign in, else false
102
104
  */
103
- Authentication.prototype.popupSignInCallback = function () {
104
- return this.userManager.signinPopupCallback();
105
- };
105
+ popupSignInCallback(url, keepOpen) {
106
+ return this.userManager.signinPopupCallback(url, keepOpen);
107
+ }
106
108
  ;
107
109
  /**
108
110
  * **popupSignOut()** will open the hosted logout page in pop up window.
@@ -114,10 +116,12 @@ var Authentication = /** @class */ (function () {
114
116
  * // your failure code here
115
117
  * });
116
118
  * ```
119
+ *
120
+ * @param {PopupSignOutOptions} options optional options to over-ride logout options using popup window
117
121
  */
118
- Authentication.prototype.popupSignOut = function () {
119
- return this.userManager.signoutPopup({ state: this.webAuthSettings });
120
- };
122
+ popupSignOut(options) {
123
+ return this.userManager.signoutPopup(options);
124
+ }
121
125
  ;
122
126
  /**
123
127
  * calling **popupSignOutCallback()** from the popup window complete popup logout process.
@@ -130,10 +134,13 @@ var Authentication = /** @class */ (function () {
130
134
  * // your failure code here
131
135
  * });
132
136
  * ```
137
+ *
138
+ * @param {string} url optional url to override to check for sign out state
139
+ * @param {boolean} keepOpen true to keep the popup open even after sign out, else false
133
140
  */
134
- Authentication.prototype.popupSignOutCallback = function () {
135
- return this.userManager.signoutPopupCallback(this.webAuthSettings.post_logout_redirect_uri, true);
136
- };
141
+ popupSignOutCallback(url, keepOpen = true) {
142
+ return this.userManager.signoutPopupCallback(url, keepOpen);
143
+ }
137
144
  ;
138
145
  /**
139
146
  * **silentSignIn()** will open the hosted login page in an iframe.
@@ -146,25 +153,23 @@ var Authentication = /** @class */ (function () {
146
153
  * // your failure code here
147
154
  * });
148
155
  * ```
156
+ * @param {SilentSignInOptions} options options to over-ride the client config for silent sign in
149
157
  */
150
- Authentication.prototype.silentSignIn = function () {
151
- return this.userManager.signinSilent({
152
- state: this.webAuthSettings,
153
- silentRequestTimeoutInSeconds: 60
154
- });
155
- };
158
+ silentSignIn(options) {
159
+ return this.userManager.signinSilent(Object.assign({ silentRequestTimeoutInSeconds: 60 }, (options && Object.assign({}, options) || {})));
160
+ }
156
161
  ;
157
162
  /**
158
163
  * To complete the silent login process, call **silentSignInCallback()** from the iframe. This will complete the login process in iframe.
159
164
  * @example
160
165
  * ```js
161
166
  * cidaas.silentSignInCallback();
167
+ *
162
168
  * ```
169
+ * @param {string} url optional url to read sign in state from
163
170
  */
164
- Authentication.prototype.silentSignInCallback = function (callbackurl) {
165
- return this.userManager.signinSilentCallback(callbackurl);
166
- };
171
+ silentSignInCallback(url) {
172
+ return this.userManager.signinSilentCallback(url);
173
+ }
167
174
  ;
168
- return Authentication;
169
- }());
170
- exports.Authentication = Authentication;
175
+ }
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  import { WebAuth } from "./web-auth/WebAuth";
2
+ export * from './authentication';
2
3
  export { WebAuth };
package/dist/index.js CHANGED
@@ -1,5 +1,3 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.WebAuth = void 0;
4
- var WebAuth_1 = require("./web-auth/WebAuth");
5
- exports.WebAuth = WebAuth_1.WebAuth;
1
+ import { WebAuth } from "./web-auth/WebAuth";
2
+ export * from './authentication';
3
+ export { WebAuth };
@@ -1,12 +1,9 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.ConsentService = void 0;
4
- var Helper_1 = require("./Helper");
1
+ import { Helper } from "./Helper";
5
2
  /**
6
3
  * Consent Management
7
4
  * For the first time login, the user needs to accept the terms and conditions.
8
5
  */
9
- var ConsentService;
6
+ export var ConsentService;
10
7
  (function (ConsentService) {
11
8
  /**
12
9
  * To get consent details , call **getConsentDetails()**.
@@ -28,7 +25,7 @@ var ConsentService;
28
25
  */
29
26
  function getConsentDetails(options) {
30
27
  var _serviceURL = window.webAuthSettings.authority + "/consent-management-srv/v2/consent/usage/public/info";
31
- return Helper_1.Helper.createHttpPromise(options, _serviceURL, false, "POST");
28
+ return Helper.createHttpPromise(options, _serviceURL, false, "POST");
32
29
  }
33
30
  ConsentService.getConsentDetails = getConsentDetails;
34
31
  ;
@@ -50,7 +47,7 @@ var ConsentService;
50
47
  */
51
48
  function acceptConsent(options) {
52
49
  var _serviceURL = window.webAuthSettings.authority + "/consent-management-srv/v2/consent/usage/accept";
53
- return Helper_1.Helper.createHttpPromise(options, _serviceURL, false, "POST");
50
+ return Helper.createHttpPromise(options, _serviceURL, false, "POST");
54
51
  }
55
52
  ConsentService.acceptConsent = acceptConsent;
56
53
  ;
@@ -71,8 +68,8 @@ var ConsentService;
71
68
  * ```
72
69
  */
73
70
  function getConsentVersionDetails(options) {
74
- var _serviceURL = window.webAuthSettings.authority + "/consent-management-srv/v2/consent/versions/details/" + options.consentid + "?locale=" + options.locale;
75
- return Helper_1.Helper.createHttpPromise(undefined, _serviceURL, false, "GET", options.access_token);
71
+ const _serviceURL = window.webAuthSettings.authority + "/consent-management-srv/v2/consent/versions/details/" + options.consentid + "?locale=" + options.locale;
72
+ return Helper.createHttpPromise(undefined, _serviceURL, false, "GET", options.access_token);
76
73
  }
77
74
  ConsentService.getConsentVersionDetails = getConsentVersionDetails;
78
75
  ;
@@ -89,7 +86,7 @@ var ConsentService;
89
86
  */
90
87
  function acceptScopeConsent(options) {
91
88
  var _serviceURL = window.webAuthSettings.authority + "/consent-management-srv/consent/scope/accept";
92
- return Helper_1.Helper.createHttpPromise(options, _serviceURL, false, "POST");
89
+ return Helper.createHttpPromise(options, _serviceURL, false, "POST");
93
90
  }
94
91
  ConsentService.acceptScopeConsent = acceptScopeConsent;
95
92
  ;
@@ -106,7 +103,7 @@ var ConsentService;
106
103
  */
107
104
  function acceptClaimConsent(options) {
108
105
  var _serviceURL = window.webAuthSettings.authority + "/consent-management-srv/consent/claim/accept";
109
- return Helper_1.Helper.createHttpPromise(options, _serviceURL, false, "POST");
106
+ return Helper.createHttpPromise(options, _serviceURL, false, "POST");
110
107
  }
111
108
  ConsentService.acceptClaimConsent = acceptClaimConsent;
112
109
  ;
@@ -129,8 +126,8 @@ var ConsentService;
129
126
  */
130
127
  function revokeClaimConsent(options) {
131
128
  var _serviceURL = window.webAuthSettings.authority + "/consent-management-srv/consent/claim/revoke";
132
- return Helper_1.Helper.createHttpPromise(options, _serviceURL, false, "POST", options.access_token);
129
+ return Helper.createHttpPromise(options, _serviceURL, false, "POST", options.access_token);
133
130
  }
134
131
  ConsentService.revokeClaimConsent = revokeClaimConsent;
135
132
  ;
136
- })(ConsentService = exports.ConsentService || (exports.ConsentService = {}));
133
+ })(ConsentService || (ConsentService = {}));
@@ -1,8 +1,5 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.ValidateResetPasswordEntity = exports.UpdateReviewDeviceEntity = exports.GroupValidationEntity = exports.TokenIntrospectionEntity = exports.FindUserEntity = exports.PhysicalVerificationLoginRequest = exports.AccessTokenRequest = void 0;
4
- var AccessTokenRequest = /** @class */ (function () {
5
- function AccessTokenRequest() {
1
+ export class AccessTokenRequest {
2
+ constructor() {
6
3
  this.user_agent = "";
7
4
  this.ip_address = "";
8
5
  this.accept_language = "";
@@ -15,17 +12,11 @@ var AccessTokenRequest = /** @class */ (function () {
15
12
  // device code flow
16
13
  this.device_code = "";
17
14
  }
18
- return AccessTokenRequest;
19
- }());
20
- exports.AccessTokenRequest = AccessTokenRequest;
21
- var PhysicalVerificationLoginRequest = /** @class */ (function () {
22
- function PhysicalVerificationLoginRequest() {
23
- }
24
- return PhysicalVerificationLoginRequest;
25
- }());
26
- exports.PhysicalVerificationLoginRequest = PhysicalVerificationLoginRequest;
27
- var FindUserEntity = /** @class */ (function () {
28
- function FindUserEntity() {
15
+ }
16
+ export class PhysicalVerificationLoginRequest {
17
+ }
18
+ export class FindUserEntity {
19
+ constructor() {
29
20
  this.sub = "";
30
21
  this.email = "";
31
22
  this.mobile = "";
@@ -36,43 +27,33 @@ var FindUserEntity = /** @class */ (function () {
36
27
  this.webfinger = "";
37
28
  this.sub_not = "";
38
29
  }
39
- return FindUserEntity;
40
- }());
41
- exports.FindUserEntity = FindUserEntity;
42
- var TokenIntrospectionEntity = /** @class */ (function () {
43
- function TokenIntrospectionEntity() {
30
+ }
31
+ export class TokenIntrospectionEntity {
32
+ constructor() {
44
33
  this.token = "";
45
34
  this.strictGroupValidation = false;
46
35
  this.strictScopeValidation = false;
47
36
  this.strictRoleValidation = false;
48
37
  this.strictValidation = false;
49
38
  }
50
- return TokenIntrospectionEntity;
51
- }());
52
- exports.TokenIntrospectionEntity = TokenIntrospectionEntity;
53
- var GroupValidationEntity = /** @class */ (function () {
54
- function GroupValidationEntity() {
39
+ }
40
+ export class GroupValidationEntity {
41
+ constructor() {
55
42
  this.strictRoleValidation = false;
56
43
  this.strictValidation = false;
57
44
  }
58
- return GroupValidationEntity;
59
- }());
60
- exports.GroupValidationEntity = GroupValidationEntity;
61
- var UpdateReviewDeviceEntity = /** @class */ (function () {
62
- function UpdateReviewDeviceEntity() {
45
+ }
46
+ export class UpdateReviewDeviceEntity {
47
+ constructor() {
63
48
  this.userId = "";
64
49
  this.device = "";
65
50
  this.browser = "";
66
51
  this.location = "";
67
52
  }
68
- return UpdateReviewDeviceEntity;
69
- }());
70
- exports.UpdateReviewDeviceEntity = UpdateReviewDeviceEntity;
71
- var ValidateResetPasswordEntity = /** @class */ (function () {
72
- function ValidateResetPasswordEntity() {
53
+ }
54
+ export class ValidateResetPasswordEntity {
55
+ constructor() {
73
56
  this.resetRequestId = "";
74
57
  this.code = "";
75
58
  }
76
- return ValidateResetPasswordEntity;
77
- }());
78
- exports.ValidateResetPasswordEntity = ValidateResetPasswordEntity;
59
+ }