@equisoft/account-service-sdk-typescript 6.8.1-snapshot.20240513135018 → 6.8.1-snapshot.20240513193226

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.
@@ -57,6 +57,7 @@ src/models/Role.ts
57
57
  src/models/RoleCreated.ts
58
58
  src/models/RolesOnOrganization.ts
59
59
  src/models/SendResetPasswordLinkPayload.ts
60
+ src/models/SendSignupInvitationPayload.ts
60
61
  src/models/ServiceAccess.ts
61
62
  src/models/ServiceAccountCreationSchema.ts
62
63
  src/models/ServiceAccountSchema.ts
@@ -70,7 +71,6 @@ src/models/SessionPolicy.ts
70
71
  src/models/SessionState.ts
71
72
  src/models/SetPasswordByConfirmationHashPayload.ts
72
73
  src/models/SetUserAccountPasswordPayload.ts
73
- src/models/SignupHash.ts
74
74
  src/models/SsoProvider.ts
75
75
  src/models/SsoToken.ts
76
76
  src/models/UpdateParentOrganizationPayload.ts
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApplyPermissionsPayload, AuthenticationUserAccount, CreateUserAccountPayload, Id, LoginPayload, NewPasswordPayload, Organization, PasswordPolicy, PermissionList, SendResetPasswordLinkPayload, SessionPolicy, SetPasswordByConfirmationHashPayload, SetUserAccountPasswordPayload, SignupHash, UpdateUserAccountPayload, UpdateUserAccountSsoPayload, User, UserAccountRoleAttributions, UserAccountSearchResult, UserPermissions, UserUuid } from '../models/index';
13
+ import type { ApplyPermissionsPayload, AuthenticationUserAccount, CreateUserAccountPayload, Id, LoginPayload, NewPasswordPayload, Organization, PasswordPolicy, PermissionList, SendResetPasswordLinkPayload, SendSignupInvitationPayload, SessionPolicy, SetPasswordByConfirmationHashPayload, SetUserAccountPasswordPayload, UpdateUserAccountPayload, UpdateUserAccountSsoPayload, User, UserAccountRoleAttributions, UserAccountSearchResult, UserPermissions, UserUuid } from '../models/index';
14
14
  export interface AcceptAgreementRequest {
15
15
  uuid: string;
16
16
  }
@@ -34,9 +34,6 @@ export interface ApplyPermissionsOnResource1Request {
34
34
  uuid: string;
35
35
  applyPermissionsPayload: ApplyPermissionsPayload;
36
36
  }
37
- export interface CreateSignupInvitationRequest {
38
- uuid: string;
39
- }
40
37
  export interface CreateUserRequest {
41
38
  createUserAccountPayload: CreateUserAccountPayload;
42
39
  }
@@ -107,6 +104,10 @@ export interface SendPasswordResetLinkRequest {
107
104
  uuid: string;
108
105
  sendResetPasswordLinkPayload: SendResetPasswordLinkPayload;
109
106
  }
107
+ export interface SendSignupInvitationRequest {
108
+ uuid: string;
109
+ sendSignupInvitationPayload: SendSignupInvitationPayload;
110
+ }
110
111
  export interface SetPasswordRequest {
111
112
  uuid: string;
112
113
  setUserAccountPasswordPayload: SetUserAccountPasswordPayload;
@@ -182,14 +183,6 @@ export declare class UserApi extends runtime.BaseAPI {
182
183
  * Get permissions of a user on a user or an organization.
183
184
  */
184
185
  applyPermissionsOnResource1(requestParameters: ApplyPermissionsOnResource1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PermissionList>;
185
- /**
186
- * Create signup invitation for user.
187
- */
188
- createSignupInvitationRaw(requestParameters: CreateSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SignupHash>>;
189
- /**
190
- * Create signup invitation for user.
191
- */
192
- createSignupInvitation(requestParameters: CreateSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignupHash>;
193
186
  /**
194
187
  * Create a user account
195
188
  */
@@ -358,6 +351,14 @@ export declare class UserApi extends runtime.BaseAPI {
358
351
  * Sends an email or sms with a time limited unique link to reset user\'s password
359
352
  */
360
353
  sendPasswordResetLink(requestParameters: SendPasswordResetLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
354
+ /**
355
+ * Send a signup invitation for user. If the user already has a pending invitation, it will be replaced.
356
+ */
357
+ sendSignupInvitationRaw(requestParameters: SendSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
358
+ /**
359
+ * Send a signup invitation for user. If the user already has a pending invitation, it will be replaced.
360
+ */
361
+ sendSignupInvitation(requestParameters: SendSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
361
362
  /**
362
363
  * set user account password.
363
364
  */
@@ -261,42 +261,6 @@ class UserApi extends runtime.BaseAPI {
261
261
  return yield response.value();
262
262
  });
263
263
  }
264
- /**
265
- * Create signup invitation for user.
266
- */
267
- createSignupInvitationRaw(requestParameters, initOverrides) {
268
- return __awaiter(this, void 0, void 0, function* () {
269
- if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
270
- throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling createSignupInvitation.');
271
- }
272
- const queryParameters = {};
273
- const headerParameters = {};
274
- if (this.configuration && this.configuration.accessToken) {
275
- // oauth required
276
- const token = this.configuration.accessToken;
277
- const tokenString = yield token("OAuth2", ["account:user"]);
278
- if (tokenString) {
279
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
280
- }
281
- }
282
- const response = yield this.request({
283
- path: `/users/{uuid}/invitation`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
284
- method: 'POST',
285
- headers: headerParameters,
286
- query: queryParameters,
287
- }, initOverrides);
288
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SignupHashFromJSON)(jsonValue));
289
- });
290
- }
291
- /**
292
- * Create signup invitation for user.
293
- */
294
- createSignupInvitation(requestParameters, initOverrides) {
295
- return __awaiter(this, void 0, void 0, function* () {
296
- const response = yield this.createSignupInvitationRaw(requestParameters, initOverrides);
297
- return yield response.value();
298
- });
299
- }
300
264
  /**
301
265
  * Create a user account
302
266
  */
@@ -1069,6 +1033,46 @@ class UserApi extends runtime.BaseAPI {
1069
1033
  yield this.sendPasswordResetLinkRaw(requestParameters, initOverrides);
1070
1034
  });
1071
1035
  }
1036
+ /**
1037
+ * Send a signup invitation for user. If the user already has a pending invitation, it will be replaced.
1038
+ */
1039
+ sendSignupInvitationRaw(requestParameters, initOverrides) {
1040
+ return __awaiter(this, void 0, void 0, function* () {
1041
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
1042
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling sendSignupInvitation.');
1043
+ }
1044
+ if (requestParameters.sendSignupInvitationPayload === null || requestParameters.sendSignupInvitationPayload === undefined) {
1045
+ throw new runtime.RequiredError('sendSignupInvitationPayload', 'Required parameter requestParameters.sendSignupInvitationPayload was null or undefined when calling sendSignupInvitation.');
1046
+ }
1047
+ const queryParameters = {};
1048
+ const headerParameters = {};
1049
+ headerParameters['Content-Type'] = 'application/json';
1050
+ if (this.configuration && this.configuration.accessToken) {
1051
+ // oauth required
1052
+ const token = this.configuration.accessToken;
1053
+ const tokenString = yield token("OAuth2", ["account:user"]);
1054
+ if (tokenString) {
1055
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1056
+ }
1057
+ }
1058
+ const response = yield this.request({
1059
+ path: `/users/{uuid}/invitation`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1060
+ method: 'POST',
1061
+ headers: headerParameters,
1062
+ query: queryParameters,
1063
+ body: (0, index_1.SendSignupInvitationPayloadToJSON)(requestParameters.sendSignupInvitationPayload),
1064
+ }, initOverrides);
1065
+ return new runtime.VoidApiResponse(response);
1066
+ });
1067
+ }
1068
+ /**
1069
+ * Send a signup invitation for user. If the user already has a pending invitation, it will be replaced.
1070
+ */
1071
+ sendSignupInvitation(requestParameters, initOverrides) {
1072
+ return __awaiter(this, void 0, void 0, function* () {
1073
+ yield this.sendSignupInvitationRaw(requestParameters, initOverrides);
1074
+ });
1075
+ }
1072
1076
  /**
1073
1077
  * set user account password.
1074
1078
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApplyPermissionsPayload, AuthenticationUserAccount, CreateUserAccountPayload, Id, LoginPayload, NewPasswordPayload, Organization, PasswordPolicy, PermissionList, SendResetPasswordLinkPayload, SessionPolicy, SetPasswordByConfirmationHashPayload, SetUserAccountPasswordPayload, SignupHash, UpdateUserAccountPayload, UpdateUserAccountSsoPayload, User, UserAccountRoleAttributions, UserAccountSearchResult, UserPermissions, UserUuid } from '../models/index';
13
+ import type { ApplyPermissionsPayload, AuthenticationUserAccount, CreateUserAccountPayload, Id, LoginPayload, NewPasswordPayload, Organization, PasswordPolicy, PermissionList, SendResetPasswordLinkPayload, SendSignupInvitationPayload, SessionPolicy, SetPasswordByConfirmationHashPayload, SetUserAccountPasswordPayload, UpdateUserAccountPayload, UpdateUserAccountSsoPayload, User, UserAccountRoleAttributions, UserAccountSearchResult, UserPermissions, UserUuid } from '../models/index';
14
14
  export interface AcceptAgreementRequest {
15
15
  uuid: string;
16
16
  }
@@ -34,9 +34,6 @@ export interface ApplyPermissionsOnResource1Request {
34
34
  uuid: string;
35
35
  applyPermissionsPayload: ApplyPermissionsPayload;
36
36
  }
37
- export interface CreateSignupInvitationRequest {
38
- uuid: string;
39
- }
40
37
  export interface CreateUserRequest {
41
38
  createUserAccountPayload: CreateUserAccountPayload;
42
39
  }
@@ -107,6 +104,10 @@ export interface SendPasswordResetLinkRequest {
107
104
  uuid: string;
108
105
  sendResetPasswordLinkPayload: SendResetPasswordLinkPayload;
109
106
  }
107
+ export interface SendSignupInvitationRequest {
108
+ uuid: string;
109
+ sendSignupInvitationPayload: SendSignupInvitationPayload;
110
+ }
110
111
  export interface SetPasswordRequest {
111
112
  uuid: string;
112
113
  setUserAccountPasswordPayload: SetUserAccountPasswordPayload;
@@ -182,14 +183,6 @@ export declare class UserApi extends runtime.BaseAPI {
182
183
  * Get permissions of a user on a user or an organization.
183
184
  */
184
185
  applyPermissionsOnResource1(requestParameters: ApplyPermissionsOnResource1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PermissionList>;
185
- /**
186
- * Create signup invitation for user.
187
- */
188
- createSignupInvitationRaw(requestParameters: CreateSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SignupHash>>;
189
- /**
190
- * Create signup invitation for user.
191
- */
192
- createSignupInvitation(requestParameters: CreateSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignupHash>;
193
186
  /**
194
187
  * Create a user account
195
188
  */
@@ -358,6 +351,14 @@ export declare class UserApi extends runtime.BaseAPI {
358
351
  * Sends an email or sms with a time limited unique link to reset user\'s password
359
352
  */
360
353
  sendPasswordResetLink(requestParameters: SendPasswordResetLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
354
+ /**
355
+ * Send a signup invitation for user. If the user already has a pending invitation, it will be replaced.
356
+ */
357
+ sendSignupInvitationRaw(requestParameters: SendSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
358
+ /**
359
+ * Send a signup invitation for user. If the user already has a pending invitation, it will be replaced.
360
+ */
361
+ sendSignupInvitation(requestParameters: SendSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
361
362
  /**
362
363
  * set user account password.
363
364
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApplyPermissionsPayloadToJSON, AuthenticationUserAccountFromJSON, CreateUserAccountPayloadToJSON, IdFromJSON, LoginPayloadToJSON, NewPasswordPayloadToJSON, OrganizationFromJSON, PasswordPolicyToJSON, PermissionListFromJSON, SendResetPasswordLinkPayloadToJSON, SessionPolicyToJSON, SetPasswordByConfirmationHashPayloadToJSON, SetUserAccountPasswordPayloadToJSON, SignupHashFromJSON, UpdateUserAccountPayloadToJSON, UpdateUserAccountSsoPayloadToJSON, UserFromJSON, UserAccountRoleAttributionsFromJSON, UserAccountSearchResultFromJSON, UserPermissionsFromJSON, UserUuidFromJSON, } from '../models/index';
24
+ import { ApplyPermissionsPayloadToJSON, AuthenticationUserAccountFromJSON, CreateUserAccountPayloadToJSON, IdFromJSON, LoginPayloadToJSON, NewPasswordPayloadToJSON, OrganizationFromJSON, PasswordPolicyToJSON, PermissionListFromJSON, SendResetPasswordLinkPayloadToJSON, SendSignupInvitationPayloadToJSON, SessionPolicyToJSON, SetPasswordByConfirmationHashPayloadToJSON, SetUserAccountPasswordPayloadToJSON, UpdateUserAccountPayloadToJSON, UpdateUserAccountSsoPayloadToJSON, UserFromJSON, UserAccountRoleAttributionsFromJSON, UserAccountSearchResultFromJSON, UserPermissionsFromJSON, UserUuidFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -258,42 +258,6 @@ export class UserApi extends runtime.BaseAPI {
258
258
  return yield response.value();
259
259
  });
260
260
  }
261
- /**
262
- * Create signup invitation for user.
263
- */
264
- createSignupInvitationRaw(requestParameters, initOverrides) {
265
- return __awaiter(this, void 0, void 0, function* () {
266
- if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
267
- throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling createSignupInvitation.');
268
- }
269
- const queryParameters = {};
270
- const headerParameters = {};
271
- if (this.configuration && this.configuration.accessToken) {
272
- // oauth required
273
- const token = this.configuration.accessToken;
274
- const tokenString = yield token("OAuth2", ["account:user"]);
275
- if (tokenString) {
276
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
277
- }
278
- }
279
- const response = yield this.request({
280
- path: `/users/{uuid}/invitation`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
281
- method: 'POST',
282
- headers: headerParameters,
283
- query: queryParameters,
284
- }, initOverrides);
285
- return new runtime.JSONApiResponse(response, (jsonValue) => SignupHashFromJSON(jsonValue));
286
- });
287
- }
288
- /**
289
- * Create signup invitation for user.
290
- */
291
- createSignupInvitation(requestParameters, initOverrides) {
292
- return __awaiter(this, void 0, void 0, function* () {
293
- const response = yield this.createSignupInvitationRaw(requestParameters, initOverrides);
294
- return yield response.value();
295
- });
296
- }
297
261
  /**
298
262
  * Create a user account
299
263
  */
@@ -1066,6 +1030,46 @@ export class UserApi extends runtime.BaseAPI {
1066
1030
  yield this.sendPasswordResetLinkRaw(requestParameters, initOverrides);
1067
1031
  });
1068
1032
  }
1033
+ /**
1034
+ * Send a signup invitation for user. If the user already has a pending invitation, it will be replaced.
1035
+ */
1036
+ sendSignupInvitationRaw(requestParameters, initOverrides) {
1037
+ return __awaiter(this, void 0, void 0, function* () {
1038
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
1039
+ throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling sendSignupInvitation.');
1040
+ }
1041
+ if (requestParameters.sendSignupInvitationPayload === null || requestParameters.sendSignupInvitationPayload === undefined) {
1042
+ throw new runtime.RequiredError('sendSignupInvitationPayload', 'Required parameter requestParameters.sendSignupInvitationPayload was null or undefined when calling sendSignupInvitation.');
1043
+ }
1044
+ const queryParameters = {};
1045
+ const headerParameters = {};
1046
+ headerParameters['Content-Type'] = 'application/json';
1047
+ if (this.configuration && this.configuration.accessToken) {
1048
+ // oauth required
1049
+ const token = this.configuration.accessToken;
1050
+ const tokenString = yield token("OAuth2", ["account:user"]);
1051
+ if (tokenString) {
1052
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1053
+ }
1054
+ }
1055
+ const response = yield this.request({
1056
+ path: `/users/{uuid}/invitation`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1057
+ method: 'POST',
1058
+ headers: headerParameters,
1059
+ query: queryParameters,
1060
+ body: SendSignupInvitationPayloadToJSON(requestParameters.sendSignupInvitationPayload),
1061
+ }, initOverrides);
1062
+ return new runtime.VoidApiResponse(response);
1063
+ });
1064
+ }
1065
+ /**
1066
+ * Send a signup invitation for user. If the user already has a pending invitation, it will be replaced.
1067
+ */
1068
+ sendSignupInvitation(requestParameters, initOverrides) {
1069
+ return __awaiter(this, void 0, void 0, function* () {
1070
+ yield this.sendSignupInvitationRaw(requestParameters, initOverrides);
1071
+ });
1072
+ }
1069
1073
  /**
1070
1074
  * set user account password.
1071
1075
  */
@@ -0,0 +1,73 @@
1
+ /**
2
+ * User account and session management
3
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
4
+ *
5
+ * The version of the OpenAPI document: 6.8.1-SNAPSHOT
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 SendSignupInvitationPayload
16
+ */
17
+ export interface SendSignupInvitationPayload {
18
+ /**
19
+ * Service code to generate signup url.
20
+ * @type {string}
21
+ * @memberof SendSignupInvitationPayload
22
+ */
23
+ serviceCode: string;
24
+ /**
25
+ * Service or application name used in email template.
26
+ * @type {string}
27
+ * @memberof SendSignupInvitationPayload
28
+ */
29
+ serviceName: string;
30
+ /**
31
+ * Full url to open the service or application.
32
+ * @type {string}
33
+ * @memberof SendSignupInvitationPayload
34
+ */
35
+ serviceUrl: string;
36
+ /**
37
+ * Base url for the signup link generation.
38
+ * @type {string}
39
+ * @memberof SendSignupInvitationPayload
40
+ */
41
+ signupBaseUrl: string;
42
+ /**
43
+ * If set, used in the invitation email template to specify a personalized message by the sender. The message is text only and newlines are converted to br.
44
+ * @type {string}
45
+ * @memberof SendSignupInvitationPayload
46
+ */
47
+ serviceMessage?: string | null;
48
+ /**
49
+ * If set, used in the invitation email template to specify the sender of the invitation.
50
+ * @type {string}
51
+ * @memberof SendSignupInvitationPayload
52
+ */
53
+ senderName?: string | null;
54
+ /**
55
+ * If set, used in the invitation email template to specify a personalized message by the sender. The message is text only and newlines are converted to br.
56
+ * @type {string}
57
+ * @memberof SendSignupInvitationPayload
58
+ */
59
+ senderMessage?: string | null;
60
+ /**
61
+ * Override the invitation email subject.
62
+ * @type {string}
63
+ * @memberof SendSignupInvitationPayload
64
+ */
65
+ customSubject?: string | null;
66
+ }
67
+ /**
68
+ * Check if a given object implements the SendSignupInvitationPayload interface.
69
+ */
70
+ export declare function instanceOfSendSignupInvitationPayload(value: object): boolean;
71
+ export declare function SendSignupInvitationPayloadFromJSON(json: any): SendSignupInvitationPayload;
72
+ export declare function SendSignupInvitationPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendSignupInvitationPayload;
73
+ export declare function SendSignupInvitationPayloadToJSON(value?: SendSignupInvitationPayload | null): any;
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * User account and session management
5
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
+ *
7
+ * The version of the OpenAPI document: 6.8.1-SNAPSHOT
8
+ *
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
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the SendSignupInvitationPayload interface.
17
+ */
18
+ export function instanceOfSendSignupInvitationPayload(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "serviceCode" in value;
21
+ isInstance = isInstance && "serviceName" in value;
22
+ isInstance = isInstance && "serviceUrl" in value;
23
+ isInstance = isInstance && "signupBaseUrl" in value;
24
+ return isInstance;
25
+ }
26
+ export function SendSignupInvitationPayloadFromJSON(json) {
27
+ return SendSignupInvitationPayloadFromJSONTyped(json, false);
28
+ }
29
+ export function SendSignupInvitationPayloadFromJSONTyped(json, ignoreDiscriminator) {
30
+ if ((json === undefined) || (json === null)) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'serviceCode': json['serviceCode'],
35
+ 'serviceName': json['serviceName'],
36
+ 'serviceUrl': json['serviceUrl'],
37
+ 'signupBaseUrl': json['signupBaseUrl'],
38
+ 'serviceMessage': !exists(json, 'serviceMessage') ? undefined : json['serviceMessage'],
39
+ 'senderName': !exists(json, 'senderName') ? undefined : json['senderName'],
40
+ 'senderMessage': !exists(json, 'senderMessage') ? undefined : json['senderMessage'],
41
+ 'customSubject': !exists(json, 'customSubject') ? undefined : json['customSubject'],
42
+ };
43
+ }
44
+ export function SendSignupInvitationPayloadToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'serviceCode': value.serviceCode,
53
+ 'serviceName': value.serviceName,
54
+ 'serviceUrl': value.serviceUrl,
55
+ 'signupBaseUrl': value.signupBaseUrl,
56
+ 'serviceMessage': value.serviceMessage,
57
+ 'senderName': value.senderName,
58
+ 'senderMessage': value.senderMessage,
59
+ 'customSubject': value.customSubject,
60
+ };
61
+ }
@@ -45,6 +45,7 @@ export * from './Role';
45
45
  export * from './RoleCreated';
46
46
  export * from './RolesOnOrganization';
47
47
  export * from './SendResetPasswordLinkPayload';
48
+ export * from './SendSignupInvitationPayload';
48
49
  export * from './ServiceAccess';
49
50
  export * from './ServiceAccountCreationSchema';
50
51
  export * from './ServiceAccountSchema';
@@ -58,7 +59,6 @@ export * from './SessionPolicy';
58
59
  export * from './SessionState';
59
60
  export * from './SetPasswordByConfirmationHashPayload';
60
61
  export * from './SetUserAccountPasswordPayload';
61
- export * from './SignupHash';
62
62
  export * from './SsoProvider';
63
63
  export * from './SsoToken';
64
64
  export * from './UpdateParentOrganizationPayload';
@@ -47,6 +47,7 @@ export * from './Role';
47
47
  export * from './RoleCreated';
48
48
  export * from './RolesOnOrganization';
49
49
  export * from './SendResetPasswordLinkPayload';
50
+ export * from './SendSignupInvitationPayload';
50
51
  export * from './ServiceAccess';
51
52
  export * from './ServiceAccountCreationSchema';
52
53
  export * from './ServiceAccountSchema';
@@ -60,7 +61,6 @@ export * from './SessionPolicy';
60
61
  export * from './SessionState';
61
62
  export * from './SetPasswordByConfirmationHashPayload';
62
63
  export * from './SetUserAccountPasswordPayload';
63
- export * from './SignupHash';
64
64
  export * from './SsoProvider';
65
65
  export * from './SsoToken';
66
66
  export * from './UpdateParentOrganizationPayload';
@@ -0,0 +1,73 @@
1
+ /**
2
+ * User account and session management
3
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
4
+ *
5
+ * The version of the OpenAPI document: 6.8.1-SNAPSHOT
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 SendSignupInvitationPayload
16
+ */
17
+ export interface SendSignupInvitationPayload {
18
+ /**
19
+ * Service code to generate signup url.
20
+ * @type {string}
21
+ * @memberof SendSignupInvitationPayload
22
+ */
23
+ serviceCode: string;
24
+ /**
25
+ * Service or application name used in email template.
26
+ * @type {string}
27
+ * @memberof SendSignupInvitationPayload
28
+ */
29
+ serviceName: string;
30
+ /**
31
+ * Full url to open the service or application.
32
+ * @type {string}
33
+ * @memberof SendSignupInvitationPayload
34
+ */
35
+ serviceUrl: string;
36
+ /**
37
+ * Base url for the signup link generation.
38
+ * @type {string}
39
+ * @memberof SendSignupInvitationPayload
40
+ */
41
+ signupBaseUrl: string;
42
+ /**
43
+ * If set, used in the invitation email template to specify a personalized message by the sender. The message is text only and newlines are converted to br.
44
+ * @type {string}
45
+ * @memberof SendSignupInvitationPayload
46
+ */
47
+ serviceMessage?: string | null;
48
+ /**
49
+ * If set, used in the invitation email template to specify the sender of the invitation.
50
+ * @type {string}
51
+ * @memberof SendSignupInvitationPayload
52
+ */
53
+ senderName?: string | null;
54
+ /**
55
+ * If set, used in the invitation email template to specify a personalized message by the sender. The message is text only and newlines are converted to br.
56
+ * @type {string}
57
+ * @memberof SendSignupInvitationPayload
58
+ */
59
+ senderMessage?: string | null;
60
+ /**
61
+ * Override the invitation email subject.
62
+ * @type {string}
63
+ * @memberof SendSignupInvitationPayload
64
+ */
65
+ customSubject?: string | null;
66
+ }
67
+ /**
68
+ * Check if a given object implements the SendSignupInvitationPayload interface.
69
+ */
70
+ export declare function instanceOfSendSignupInvitationPayload(value: object): boolean;
71
+ export declare function SendSignupInvitationPayloadFromJSON(json: any): SendSignupInvitationPayload;
72
+ export declare function SendSignupInvitationPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendSignupInvitationPayload;
73
+ export declare function SendSignupInvitationPayloadToJSON(value?: SendSignupInvitationPayload | null): any;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * User account and session management
6
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
7
+ *
8
+ * The version of the OpenAPI document: 6.8.1-SNAPSHOT
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 });
16
+ exports.SendSignupInvitationPayloadToJSON = exports.SendSignupInvitationPayloadFromJSONTyped = exports.SendSignupInvitationPayloadFromJSON = exports.instanceOfSendSignupInvitationPayload = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the SendSignupInvitationPayload interface.
20
+ */
21
+ function instanceOfSendSignupInvitationPayload(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "serviceCode" in value;
24
+ isInstance = isInstance && "serviceName" in value;
25
+ isInstance = isInstance && "serviceUrl" in value;
26
+ isInstance = isInstance && "signupBaseUrl" in value;
27
+ return isInstance;
28
+ }
29
+ exports.instanceOfSendSignupInvitationPayload = instanceOfSendSignupInvitationPayload;
30
+ function SendSignupInvitationPayloadFromJSON(json) {
31
+ return SendSignupInvitationPayloadFromJSONTyped(json, false);
32
+ }
33
+ exports.SendSignupInvitationPayloadFromJSON = SendSignupInvitationPayloadFromJSON;
34
+ function SendSignupInvitationPayloadFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'serviceCode': json['serviceCode'],
40
+ 'serviceName': json['serviceName'],
41
+ 'serviceUrl': json['serviceUrl'],
42
+ 'signupBaseUrl': json['signupBaseUrl'],
43
+ 'serviceMessage': !(0, runtime_1.exists)(json, 'serviceMessage') ? undefined : json['serviceMessage'],
44
+ 'senderName': !(0, runtime_1.exists)(json, 'senderName') ? undefined : json['senderName'],
45
+ 'senderMessage': !(0, runtime_1.exists)(json, 'senderMessage') ? undefined : json['senderMessage'],
46
+ 'customSubject': !(0, runtime_1.exists)(json, 'customSubject') ? undefined : json['customSubject'],
47
+ };
48
+ }
49
+ exports.SendSignupInvitationPayloadFromJSONTyped = SendSignupInvitationPayloadFromJSONTyped;
50
+ function SendSignupInvitationPayloadToJSON(value) {
51
+ if (value === undefined) {
52
+ return undefined;
53
+ }
54
+ if (value === null) {
55
+ return null;
56
+ }
57
+ return {
58
+ 'serviceCode': value.serviceCode,
59
+ 'serviceName': value.serviceName,
60
+ 'serviceUrl': value.serviceUrl,
61
+ 'signupBaseUrl': value.signupBaseUrl,
62
+ 'serviceMessage': value.serviceMessage,
63
+ 'senderName': value.senderName,
64
+ 'senderMessage': value.senderMessage,
65
+ 'customSubject': value.customSubject,
66
+ };
67
+ }
68
+ exports.SendSignupInvitationPayloadToJSON = SendSignupInvitationPayloadToJSON;
@@ -45,6 +45,7 @@ export * from './Role';
45
45
  export * from './RoleCreated';
46
46
  export * from './RolesOnOrganization';
47
47
  export * from './SendResetPasswordLinkPayload';
48
+ export * from './SendSignupInvitationPayload';
48
49
  export * from './ServiceAccess';
49
50
  export * from './ServiceAccountCreationSchema';
50
51
  export * from './ServiceAccountSchema';
@@ -58,7 +59,6 @@ export * from './SessionPolicy';
58
59
  export * from './SessionState';
59
60
  export * from './SetPasswordByConfirmationHashPayload';
60
61
  export * from './SetUserAccountPasswordPayload';
61
- export * from './SignupHash';
62
62
  export * from './SsoProvider';
63
63
  export * from './SsoToken';
64
64
  export * from './UpdateParentOrganizationPayload';
@@ -63,6 +63,7 @@ __exportStar(require("./Role"), exports);
63
63
  __exportStar(require("./RoleCreated"), exports);
64
64
  __exportStar(require("./RolesOnOrganization"), exports);
65
65
  __exportStar(require("./SendResetPasswordLinkPayload"), exports);
66
+ __exportStar(require("./SendSignupInvitationPayload"), exports);
66
67
  __exportStar(require("./ServiceAccess"), exports);
67
68
  __exportStar(require("./ServiceAccountCreationSchema"), exports);
68
69
  __exportStar(require("./ServiceAccountSchema"), exports);
@@ -76,7 +77,6 @@ __exportStar(require("./SessionPolicy"), exports);
76
77
  __exportStar(require("./SessionState"), exports);
77
78
  __exportStar(require("./SetPasswordByConfirmationHashPayload"), exports);
78
79
  __exportStar(require("./SetUserAccountPasswordPayload"), exports);
79
- __exportStar(require("./SignupHash"), exports);
80
80
  __exportStar(require("./SsoProvider"), exports);
81
81
  __exportStar(require("./SsoToken"), exports);
82
82
  __exportStar(require("./UpdateParentOrganizationPayload"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/account-service-sdk-typescript",
3
- "version": "6.8.1-snapshot.20240513135018",
3
+ "version": "6.8.1-snapshot.20240513193226",
4
4
  "description": "OpenAPI client for @equisoft/account-service-sdk-typescript",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -26,10 +26,10 @@ import type {
26
26
  PasswordPolicy,
27
27
  PermissionList,
28
28
  SendResetPasswordLinkPayload,
29
+ SendSignupInvitationPayload,
29
30
  SessionPolicy,
30
31
  SetPasswordByConfirmationHashPayload,
31
32
  SetUserAccountPasswordPayload,
32
- SignupHash,
33
33
  UpdateUserAccountPayload,
34
34
  UpdateUserAccountSsoPayload,
35
35
  User,
@@ -61,14 +61,14 @@ import {
61
61
  PermissionListToJSON,
62
62
  SendResetPasswordLinkPayloadFromJSON,
63
63
  SendResetPasswordLinkPayloadToJSON,
64
+ SendSignupInvitationPayloadFromJSON,
65
+ SendSignupInvitationPayloadToJSON,
64
66
  SessionPolicyFromJSON,
65
67
  SessionPolicyToJSON,
66
68
  SetPasswordByConfirmationHashPayloadFromJSON,
67
69
  SetPasswordByConfirmationHashPayloadToJSON,
68
70
  SetUserAccountPasswordPayloadFromJSON,
69
71
  SetUserAccountPasswordPayloadToJSON,
70
- SignupHashFromJSON,
71
- SignupHashToJSON,
72
72
  UpdateUserAccountPayloadFromJSON,
73
73
  UpdateUserAccountPayloadToJSON,
74
74
  UpdateUserAccountSsoPayloadFromJSON,
@@ -114,10 +114,6 @@ export interface ApplyPermissionsOnResource1Request {
114
114
  applyPermissionsPayload: ApplyPermissionsPayload;
115
115
  }
116
116
 
117
- export interface CreateSignupInvitationRequest {
118
- uuid: string;
119
- }
120
-
121
117
  export interface CreateUserRequest {
122
118
  createUserAccountPayload: CreateUserAccountPayload;
123
119
  }
@@ -209,6 +205,11 @@ export interface SendPasswordResetLinkRequest {
209
205
  sendResetPasswordLinkPayload: SendResetPasswordLinkPayload;
210
206
  }
211
207
 
208
+ export interface SendSignupInvitationRequest {
209
+ uuid: string;
210
+ sendSignupInvitationPayload: SendSignupInvitationPayload;
211
+ }
212
+
212
213
  export interface SetPasswordRequest {
213
214
  uuid: string;
214
215
  setUserAccountPasswordPayload: SetUserAccountPasswordPayload;
@@ -501,45 +502,6 @@ export class UserApi extends runtime.BaseAPI {
501
502
  return await response.value();
502
503
  }
503
504
 
504
- /**
505
- * Create signup invitation for user.
506
- */
507
- async createSignupInvitationRaw(requestParameters: CreateSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SignupHash>> {
508
- if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
509
- throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling createSignupInvitation.');
510
- }
511
-
512
- const queryParameters: any = {};
513
-
514
- const headerParameters: runtime.HTTPHeaders = {};
515
-
516
- if (this.configuration && this.configuration.accessToken) {
517
- // oauth required
518
- const token = this.configuration.accessToken;
519
- const tokenString = await token("OAuth2", ["account:user"]);
520
- if (tokenString) {
521
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
522
- }
523
- }
524
-
525
- const response = await this.request({
526
- path: `/users/{uuid}/invitation`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
527
- method: 'POST',
528
- headers: headerParameters,
529
- query: queryParameters,
530
- }, initOverrides);
531
-
532
- return new runtime.JSONApiResponse(response, (jsonValue) => SignupHashFromJSON(jsonValue));
533
- }
534
-
535
- /**
536
- * Create signup invitation for user.
537
- */
538
- async createSignupInvitation(requestParameters: CreateSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignupHash> {
539
- const response = await this.createSignupInvitationRaw(requestParameters, initOverrides);
540
- return await response.value();
541
- }
542
-
543
505
  /**
544
506
  * Create a user account
545
507
  */
@@ -1385,6 +1347,51 @@ export class UserApi extends runtime.BaseAPI {
1385
1347
  await this.sendPasswordResetLinkRaw(requestParameters, initOverrides);
1386
1348
  }
1387
1349
 
1350
+ /**
1351
+ * Send a signup invitation for user. If the user already has a pending invitation, it will be replaced.
1352
+ */
1353
+ async sendSignupInvitationRaw(requestParameters: SendSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1354
+ if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
1355
+ throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling sendSignupInvitation.');
1356
+ }
1357
+
1358
+ if (requestParameters.sendSignupInvitationPayload === null || requestParameters.sendSignupInvitationPayload === undefined) {
1359
+ throw new runtime.RequiredError('sendSignupInvitationPayload','Required parameter requestParameters.sendSignupInvitationPayload was null or undefined when calling sendSignupInvitation.');
1360
+ }
1361
+
1362
+ const queryParameters: any = {};
1363
+
1364
+ const headerParameters: runtime.HTTPHeaders = {};
1365
+
1366
+ headerParameters['Content-Type'] = 'application/json';
1367
+
1368
+ if (this.configuration && this.configuration.accessToken) {
1369
+ // oauth required
1370
+ const token = this.configuration.accessToken;
1371
+ const tokenString = await token("OAuth2", ["account:user"]);
1372
+ if (tokenString) {
1373
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1374
+ }
1375
+ }
1376
+
1377
+ const response = await this.request({
1378
+ path: `/users/{uuid}/invitation`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1379
+ method: 'POST',
1380
+ headers: headerParameters,
1381
+ query: queryParameters,
1382
+ body: SendSignupInvitationPayloadToJSON(requestParameters.sendSignupInvitationPayload),
1383
+ }, initOverrides);
1384
+
1385
+ return new runtime.VoidApiResponse(response);
1386
+ }
1387
+
1388
+ /**
1389
+ * Send a signup invitation for user. If the user already has a pending invitation, it will be replaced.
1390
+ */
1391
+ async sendSignupInvitation(requestParameters: SendSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1392
+ await this.sendSignupInvitationRaw(requestParameters, initOverrides);
1393
+ }
1394
+
1388
1395
  /**
1389
1396
  * set user account password.
1390
1397
  */
@@ -0,0 +1,125 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * User account and session management
5
+ * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
+ *
7
+ * The version of the OpenAPI document: 6.8.1-SNAPSHOT
8
+ *
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
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SendSignupInvitationPayload
20
+ */
21
+ export interface SendSignupInvitationPayload {
22
+ /**
23
+ * Service code to generate signup url.
24
+ * @type {string}
25
+ * @memberof SendSignupInvitationPayload
26
+ */
27
+ serviceCode: string;
28
+ /**
29
+ * Service or application name used in email template.
30
+ * @type {string}
31
+ * @memberof SendSignupInvitationPayload
32
+ */
33
+ serviceName: string;
34
+ /**
35
+ * Full url to open the service or application.
36
+ * @type {string}
37
+ * @memberof SendSignupInvitationPayload
38
+ */
39
+ serviceUrl: string;
40
+ /**
41
+ * Base url for the signup link generation.
42
+ * @type {string}
43
+ * @memberof SendSignupInvitationPayload
44
+ */
45
+ signupBaseUrl: string;
46
+ /**
47
+ * If set, used in the invitation email template to specify a personalized message by the sender. The message is text only and newlines are converted to br.
48
+ * @type {string}
49
+ * @memberof SendSignupInvitationPayload
50
+ */
51
+ serviceMessage?: string | null;
52
+ /**
53
+ * If set, used in the invitation email template to specify the sender of the invitation.
54
+ * @type {string}
55
+ * @memberof SendSignupInvitationPayload
56
+ */
57
+ senderName?: string | null;
58
+ /**
59
+ * If set, used in the invitation email template to specify a personalized message by the sender. The message is text only and newlines are converted to br.
60
+ * @type {string}
61
+ * @memberof SendSignupInvitationPayload
62
+ */
63
+ senderMessage?: string | null;
64
+ /**
65
+ * Override the invitation email subject.
66
+ * @type {string}
67
+ * @memberof SendSignupInvitationPayload
68
+ */
69
+ customSubject?: string | null;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the SendSignupInvitationPayload interface.
74
+ */
75
+ export function instanceOfSendSignupInvitationPayload(value: object): boolean {
76
+ let isInstance = true;
77
+ isInstance = isInstance && "serviceCode" in value;
78
+ isInstance = isInstance && "serviceName" in value;
79
+ isInstance = isInstance && "serviceUrl" in value;
80
+ isInstance = isInstance && "signupBaseUrl" in value;
81
+
82
+ return isInstance;
83
+ }
84
+
85
+ export function SendSignupInvitationPayloadFromJSON(json: any): SendSignupInvitationPayload {
86
+ return SendSignupInvitationPayloadFromJSONTyped(json, false);
87
+ }
88
+
89
+ export function SendSignupInvitationPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendSignupInvitationPayload {
90
+ if ((json === undefined) || (json === null)) {
91
+ return json;
92
+ }
93
+ return {
94
+
95
+ 'serviceCode': json['serviceCode'],
96
+ 'serviceName': json['serviceName'],
97
+ 'serviceUrl': json['serviceUrl'],
98
+ 'signupBaseUrl': json['signupBaseUrl'],
99
+ 'serviceMessage': !exists(json, 'serviceMessage') ? undefined : json['serviceMessage'],
100
+ 'senderName': !exists(json, 'senderName') ? undefined : json['senderName'],
101
+ 'senderMessage': !exists(json, 'senderMessage') ? undefined : json['senderMessage'],
102
+ 'customSubject': !exists(json, 'customSubject') ? undefined : json['customSubject'],
103
+ };
104
+ }
105
+
106
+ export function SendSignupInvitationPayloadToJSON(value?: SendSignupInvitationPayload | null): any {
107
+ if (value === undefined) {
108
+ return undefined;
109
+ }
110
+ if (value === null) {
111
+ return null;
112
+ }
113
+ return {
114
+
115
+ 'serviceCode': value.serviceCode,
116
+ 'serviceName': value.serviceName,
117
+ 'serviceUrl': value.serviceUrl,
118
+ 'signupBaseUrl': value.signupBaseUrl,
119
+ 'serviceMessage': value.serviceMessage,
120
+ 'senderName': value.senderName,
121
+ 'senderMessage': value.senderMessage,
122
+ 'customSubject': value.customSubject,
123
+ };
124
+ }
125
+
@@ -47,6 +47,7 @@ export * from './Role';
47
47
  export * from './RoleCreated';
48
48
  export * from './RolesOnOrganization';
49
49
  export * from './SendResetPasswordLinkPayload';
50
+ export * from './SendSignupInvitationPayload';
50
51
  export * from './ServiceAccess';
51
52
  export * from './ServiceAccountCreationSchema';
52
53
  export * from './ServiceAccountSchema';
@@ -60,7 +61,6 @@ export * from './SessionPolicy';
60
61
  export * from './SessionState';
61
62
  export * from './SetPasswordByConfirmationHashPayload';
62
63
  export * from './SetUserAccountPasswordPayload';
63
- export * from './SignupHash';
64
64
  export * from './SsoProvider';
65
65
  export * from './SsoToken';
66
66
  export * from './UpdateParentOrganizationPayload';
@@ -1,31 +0,0 @@
1
- /**
2
- * User account and session management
3
- * Provides HTTP endpoints to manage User Accounts and User Sessions.
4
- *
5
- * The version of the OpenAPI document: 6.8.1-SNAPSHOT
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 SignupHash
16
- */
17
- export interface SignupHash {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof SignupHash
22
- */
23
- hash: string;
24
- }
25
- /**
26
- * Check if a given object implements the SignupHash interface.
27
- */
28
- export declare function instanceOfSignupHash(value: object): boolean;
29
- export declare function SignupHashFromJSON(json: any): SignupHash;
30
- export declare function SignupHashFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignupHash;
31
- export declare function SignupHashToJSON(value?: SignupHash | null): any;
@@ -1,43 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * User account and session management
5
- * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
- *
7
- * The version of the OpenAPI document: 6.8.1-SNAPSHOT
8
- *
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
- * Check if a given object implements the SignupHash interface.
16
- */
17
- export function instanceOfSignupHash(value) {
18
- let isInstance = true;
19
- isInstance = isInstance && "hash" in value;
20
- return isInstance;
21
- }
22
- export function SignupHashFromJSON(json) {
23
- return SignupHashFromJSONTyped(json, false);
24
- }
25
- export function SignupHashFromJSONTyped(json, ignoreDiscriminator) {
26
- if ((json === undefined) || (json === null)) {
27
- return json;
28
- }
29
- return {
30
- 'hash': json['hash'],
31
- };
32
- }
33
- export function SignupHashToJSON(value) {
34
- if (value === undefined) {
35
- return undefined;
36
- }
37
- if (value === null) {
38
- return null;
39
- }
40
- return {
41
- 'hash': value.hash,
42
- };
43
- }
@@ -1,31 +0,0 @@
1
- /**
2
- * User account and session management
3
- * Provides HTTP endpoints to manage User Accounts and User Sessions.
4
- *
5
- * The version of the OpenAPI document: 6.8.1-SNAPSHOT
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 SignupHash
16
- */
17
- export interface SignupHash {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof SignupHash
22
- */
23
- hash: string;
24
- }
25
- /**
26
- * Check if a given object implements the SignupHash interface.
27
- */
28
- export declare function instanceOfSignupHash(value: object): boolean;
29
- export declare function SignupHashFromJSON(json: any): SignupHash;
30
- export declare function SignupHashFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignupHash;
31
- export declare function SignupHashToJSON(value?: SignupHash | null): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * User account and session management
6
- * Provides HTTP endpoints to manage User Accounts and User Sessions.
7
- *
8
- * The version of the OpenAPI document: 6.8.1-SNAPSHOT
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 });
16
- exports.SignupHashToJSON = exports.SignupHashFromJSONTyped = exports.SignupHashFromJSON = exports.instanceOfSignupHash = void 0;
17
- /**
18
- * Check if a given object implements the SignupHash interface.
19
- */
20
- function instanceOfSignupHash(value) {
21
- let isInstance = true;
22
- isInstance = isInstance && "hash" in value;
23
- return isInstance;
24
- }
25
- exports.instanceOfSignupHash = instanceOfSignupHash;
26
- function SignupHashFromJSON(json) {
27
- return SignupHashFromJSONTyped(json, false);
28
- }
29
- exports.SignupHashFromJSON = SignupHashFromJSON;
30
- function SignupHashFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
32
- return json;
33
- }
34
- return {
35
- 'hash': json['hash'],
36
- };
37
- }
38
- exports.SignupHashFromJSONTyped = SignupHashFromJSONTyped;
39
- function SignupHashToJSON(value) {
40
- if (value === undefined) {
41
- return undefined;
42
- }
43
- if (value === null) {
44
- return null;
45
- }
46
- return {
47
- 'hash': value.hash,
48
- };
49
- }
50
- exports.SignupHashToJSON = SignupHashToJSON;
@@ -1,66 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * User account and session management
5
- * Provides HTTP endpoints to manage User Accounts and User Sessions.
6
- *
7
- * The version of the OpenAPI document: 6.8.1-SNAPSHOT
8
- *
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
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface SignupHash
20
- */
21
- export interface SignupHash {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof SignupHash
26
- */
27
- hash: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the SignupHash interface.
32
- */
33
- export function instanceOfSignupHash(value: object): boolean {
34
- let isInstance = true;
35
- isInstance = isInstance && "hash" in value;
36
-
37
- return isInstance;
38
- }
39
-
40
- export function SignupHashFromJSON(json: any): SignupHash {
41
- return SignupHashFromJSONTyped(json, false);
42
- }
43
-
44
- export function SignupHashFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignupHash {
45
- if ((json === undefined) || (json === null)) {
46
- return json;
47
- }
48
- return {
49
-
50
- 'hash': json['hash'],
51
- };
52
- }
53
-
54
- export function SignupHashToJSON(value?: SignupHash | null): any {
55
- if (value === undefined) {
56
- return undefined;
57
- }
58
- if (value === null) {
59
- return null;
60
- }
61
- return {
62
-
63
- 'hash': value.hash,
64
- };
65
- }
66
-