@forteplatforms/sdk 1.0.536 → 1.0.540
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/dist/generated/apis/ProjectsServerApi.d.ts +14 -0
- package/dist/generated/apis/ProjectsServerApi.js +62 -0
- package/dist/generated/models/CreateCheckoutPreviewResponse.d.ts +12 -0
- package/dist/generated/models/CreateCheckoutPreviewResponse.js +4 -0
- package/dist/generated/models/CreateCustomDomainRequest.d.ts +6 -0
- package/dist/generated/models/CreateCustomDomainRequest.js +2 -0
- package/dist/generated/models/CustomDomainResponse.d.ts +6 -0
- package/dist/generated/models/CustomDomainResponse.js +2 -0
- package/dist/generated/models/ForteApiException.d.ts +2 -0
- package/dist/generated/models/ForteApiException.js +2 -0
- package/dist/generated/models/ProjectObject.d.ts +6 -0
- package/dist/generated/models/ProjectObject.js +2 -0
- package/dist/generated/models/UpdateProjectRequest.d.ts +6 -0
- package/dist/generated/models/UpdateProjectRequest.js +2 -0
- package/dist/generated/models/UserObject.d.ts +4 -4
- package/dist/generated/models/UserObject.js +2 -2
- package/package.json +1 -1
|
@@ -246,6 +246,10 @@ export interface CreateCustomEmailTemplateOperationRequest {
|
|
|
246
246
|
projectId: string;
|
|
247
247
|
createCustomEmailTemplateRequest: CreateCustomEmailTemplateRequest;
|
|
248
248
|
}
|
|
249
|
+
export interface CreateGuestCheckoutPreviewRequest {
|
|
250
|
+
projectId: string;
|
|
251
|
+
createCheckoutPreviewRequest: CreateCheckoutPreviewRequest;
|
|
252
|
+
}
|
|
249
253
|
export interface CreateManagedDatabaseOperationRequest {
|
|
250
254
|
projectId: string;
|
|
251
255
|
createManagedDatabaseRequest: CreateManagedDatabaseRequest;
|
|
@@ -1301,6 +1305,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
|
|
|
1301
1305
|
/**
|
|
1302
1306
|
*/
|
|
1303
1307
|
createCustomEmailTemplate(requestParameters: CreateCustomEmailTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomEmailTemplateObject>;
|
|
1308
|
+
/**
|
|
1309
|
+
* Creates request options for createGuestCheckoutPreview without sending the request
|
|
1310
|
+
*/
|
|
1311
|
+
createGuestCheckoutPreviewRequestOpts(requestParameters: CreateGuestCheckoutPreviewRequest): Promise<runtime.RequestOpts>;
|
|
1312
|
+
/**
|
|
1313
|
+
*/
|
|
1314
|
+
createGuestCheckoutPreviewRaw(requestParameters: CreateGuestCheckoutPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCheckoutPreviewResponse>>;
|
|
1315
|
+
/**
|
|
1316
|
+
*/
|
|
1317
|
+
createGuestCheckoutPreview(requestParameters: CreateGuestCheckoutPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCheckoutPreviewResponse>;
|
|
1304
1318
|
/**
|
|
1305
1319
|
* Creates request options for createManagedDatabase without sending the request
|
|
1306
1320
|
*/
|
|
@@ -1478,6 +1478,68 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1478
1478
|
});
|
|
1479
1479
|
});
|
|
1480
1480
|
};
|
|
1481
|
+
/**
|
|
1482
|
+
* Creates request options for createGuestCheckoutPreview without sending the request
|
|
1483
|
+
*/
|
|
1484
|
+
ProjectsServerApi.prototype.createGuestCheckoutPreviewRequestOpts = function (requestParameters) {
|
|
1485
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1486
|
+
var queryParameters, headerParameters, urlPath;
|
|
1487
|
+
return __generator(this, function (_a) {
|
|
1488
|
+
if (requestParameters['projectId'] == null) {
|
|
1489
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createGuestCheckoutPreview().');
|
|
1490
|
+
}
|
|
1491
|
+
if (requestParameters['createCheckoutPreviewRequest'] == null) {
|
|
1492
|
+
throw new runtime.RequiredError('createCheckoutPreviewRequest', 'Required parameter "createCheckoutPreviewRequest" was null or undefined when calling createGuestCheckoutPreview().');
|
|
1493
|
+
}
|
|
1494
|
+
queryParameters = {};
|
|
1495
|
+
headerParameters = {};
|
|
1496
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1497
|
+
urlPath = "/api/v1/projects/{projectId}/users/guest/checkouts/preview";
|
|
1498
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1499
|
+
return [2 /*return*/, {
|
|
1500
|
+
path: urlPath,
|
|
1501
|
+
method: 'POST',
|
|
1502
|
+
headers: headerParameters,
|
|
1503
|
+
query: queryParameters,
|
|
1504
|
+
body: (0, CreateCheckoutPreviewRequest_1.CreateCheckoutPreviewRequestToJSON)(requestParameters['createCheckoutPreviewRequest']),
|
|
1505
|
+
}];
|
|
1506
|
+
});
|
|
1507
|
+
});
|
|
1508
|
+
};
|
|
1509
|
+
/**
|
|
1510
|
+
*/
|
|
1511
|
+
ProjectsServerApi.prototype.createGuestCheckoutPreviewRaw = function (requestParameters, initOverrides) {
|
|
1512
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1513
|
+
var requestOptions, response;
|
|
1514
|
+
return __generator(this, function (_a) {
|
|
1515
|
+
switch (_a.label) {
|
|
1516
|
+
case 0: return [4 /*yield*/, this.createGuestCheckoutPreviewRequestOpts(requestParameters)];
|
|
1517
|
+
case 1:
|
|
1518
|
+
requestOptions = _a.sent();
|
|
1519
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1520
|
+
case 2:
|
|
1521
|
+
response = _a.sent();
|
|
1522
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CreateCheckoutPreviewResponse_1.CreateCheckoutPreviewResponseFromJSON)(jsonValue); })];
|
|
1523
|
+
}
|
|
1524
|
+
});
|
|
1525
|
+
});
|
|
1526
|
+
};
|
|
1527
|
+
/**
|
|
1528
|
+
*/
|
|
1529
|
+
ProjectsServerApi.prototype.createGuestCheckoutPreview = function (requestParameters, initOverrides) {
|
|
1530
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1531
|
+
var response;
|
|
1532
|
+
return __generator(this, function (_a) {
|
|
1533
|
+
switch (_a.label) {
|
|
1534
|
+
case 0: return [4 /*yield*/, this.createGuestCheckoutPreviewRaw(requestParameters, initOverrides)];
|
|
1535
|
+
case 1:
|
|
1536
|
+
response = _a.sent();
|
|
1537
|
+
return [4 /*yield*/, response.value()];
|
|
1538
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1539
|
+
}
|
|
1540
|
+
});
|
|
1541
|
+
});
|
|
1542
|
+
};
|
|
1481
1543
|
/**
|
|
1482
1544
|
* Creates request options for createManagedDatabase without sending the request
|
|
1483
1545
|
*/
|
|
@@ -60,6 +60,18 @@ export interface CreateCheckoutPreviewResponse {
|
|
|
60
60
|
* @memberof CreateCheckoutPreviewResponse
|
|
61
61
|
*/
|
|
62
62
|
subscriptions: Array<CheckoutSubscriptionPreview>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof CreateCheckoutPreviewResponse
|
|
67
|
+
*/
|
|
68
|
+
stripePublishableKey?: string | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof CreateCheckoutPreviewResponse
|
|
73
|
+
*/
|
|
74
|
+
stripeConnectedAccountId?: string | null;
|
|
63
75
|
}
|
|
64
76
|
/**
|
|
65
77
|
* Check if a given object implements the CreateCheckoutPreviewResponse interface.
|
|
@@ -52,6 +52,8 @@ function CreateCheckoutPreviewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'lineItems': (json['lineItems'].map(PaymentLineItem_1.PaymentLineItemFromJSON)),
|
|
53
53
|
'customerAddress': json['customerAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['customerAddress']),
|
|
54
54
|
'subscriptions': (json['subscriptions'].map(CheckoutSubscriptionPreview_1.CheckoutSubscriptionPreviewFromJSON)),
|
|
55
|
+
'stripePublishableKey': json['stripePublishableKey'] == null ? undefined : json['stripePublishableKey'],
|
|
56
|
+
'stripeConnectedAccountId': json['stripeConnectedAccountId'] == null ? undefined : json['stripeConnectedAccountId'],
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
59
|
function CreateCheckoutPreviewResponseToJSON(json) {
|
|
@@ -70,5 +72,7 @@ function CreateCheckoutPreviewResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
70
72
|
'lineItems': (value['lineItems'].map(PaymentLineItem_1.PaymentLineItemToJSON)),
|
|
71
73
|
'customerAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['customerAddress']),
|
|
72
74
|
'subscriptions': (value['subscriptions'].map(CheckoutSubscriptionPreview_1.CheckoutSubscriptionPreviewToJSON)),
|
|
75
|
+
'stripePublishableKey': value['stripePublishableKey'],
|
|
76
|
+
'stripeConnectedAccountId': value['stripeConnectedAccountId'],
|
|
73
77
|
};
|
|
74
78
|
}
|
|
@@ -21,6 +21,12 @@ export interface CreateCustomDomainRequest {
|
|
|
21
21
|
* @memberof CreateCustomDomainRequest
|
|
22
22
|
*/
|
|
23
23
|
domain: string;
|
|
24
|
+
/**
|
|
25
|
+
* Only for a root domain such as example.com: also connect www.example.com. Defaults to true; set false only if the user doesn't want www.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof CreateCustomDomainRequest
|
|
28
|
+
*/
|
|
29
|
+
connectWww?: boolean | null;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the CreateCustomDomainRequest interface.
|
|
@@ -35,6 +35,7 @@ function CreateCustomDomainRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'domain': json['domain'],
|
|
38
|
+
'connectWww': json['connectWww'] == null ? undefined : json['connectWww'],
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
function CreateCustomDomainRequestToJSON(json) {
|
|
@@ -47,5 +48,6 @@ function CreateCustomDomainRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
47
48
|
}
|
|
48
49
|
return {
|
|
49
50
|
'domain': value['domain'],
|
|
51
|
+
'connectWww': value['connectWww'],
|
|
50
52
|
};
|
|
51
53
|
}
|
|
@@ -22,6 +22,12 @@ export interface CustomDomainResponse {
|
|
|
22
22
|
* @memberof CustomDomainResponse
|
|
23
23
|
*/
|
|
24
24
|
customDomain?: CustomDomain;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {CustomDomain}
|
|
28
|
+
* @memberof CustomDomainResponse
|
|
29
|
+
*/
|
|
30
|
+
wwwCustomDomain?: CustomDomain;
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
27
33
|
* Check if a given object implements the CustomDomainResponse interface.
|
|
@@ -34,6 +34,7 @@ function CustomDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
36
|
'customDomain': json['customDomain'] == null ? undefined : (0, CustomDomain_1.CustomDomainFromJSON)(json['customDomain']),
|
|
37
|
+
'wwwCustomDomain': json['wwwCustomDomain'] == null ? undefined : (0, CustomDomain_1.CustomDomainFromJSON)(json['wwwCustomDomain']),
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
function CustomDomainResponseToJSON(json) {
|
|
@@ -46,5 +47,6 @@ function CustomDomainResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
49
|
'customDomain': (0, CustomDomain_1.CustomDomainToJSON)(value['customDomain']),
|
|
50
|
+
'wwwCustomDomain': (0, CustomDomain_1.CustomDomainToJSON)(value['wwwCustomDomain']),
|
|
49
51
|
};
|
|
50
52
|
}
|
|
@@ -269,6 +269,7 @@ export declare const ForteApiExceptionErrorCodeType: {
|
|
|
269
269
|
readonly CHECKOUT_REQUIRES_CARD: "CHECKOUT_REQUIRES_CARD";
|
|
270
270
|
readonly CHECKOUT_START_TIME_INVALID: "CHECKOUT_START_TIME_INVALID";
|
|
271
271
|
readonly CHECKOUT_END_TIME_INVALID: "CHECKOUT_END_TIME_INVALID";
|
|
272
|
+
readonly CHECKOUT_PREVIEW_RATE_LIMITED: "CHECKOUT_PREVIEW_RATE_LIMITED";
|
|
272
273
|
readonly SUBSCRIPTION_NOT_FOUND: "SUBSCRIPTION_NOT_FOUND";
|
|
273
274
|
readonly SUBSCRIPTION_NOT_ACTIVE: "SUBSCRIPTION_NOT_ACTIVE";
|
|
274
275
|
readonly SUBSCRIPTION_CHARGE_IN_PROGRESS: "SUBSCRIPTION_CHARGE_IN_PROGRESS";
|
|
@@ -294,6 +295,7 @@ export declare const ForteApiExceptionErrorCodeType: {
|
|
|
294
295
|
readonly INVOCATION_NOT_CANCELLABLE: "INVOCATION_NOT_CANCELLABLE";
|
|
295
296
|
readonly ACTION_NOT_ENABLED: "ACTION_NOT_ENABLED";
|
|
296
297
|
readonly ACTIONS_ACCESS_REQUIRED: "ACTIONS_ACCESS_REQUIRED";
|
|
298
|
+
readonly EMAIL_SENDER_NAME_INVALID: "EMAIL_SENDER_NAME_INVALID";
|
|
297
299
|
readonly EMAIL_CONFIGURATION_INVALID: "EMAIL_CONFIGURATION_INVALID";
|
|
298
300
|
readonly SANDBOX_EMAIL_RECIPIENT_UNVERIFIED: "SANDBOX_EMAIL_RECIPIENT_UNVERIFIED";
|
|
299
301
|
readonly SANDBOX_EMAIL_QUOTA_EXCEEDED: "SANDBOX_EMAIL_QUOTA_EXCEEDED";
|
|
@@ -254,6 +254,7 @@ exports.ForteApiExceptionErrorCodeType = {
|
|
|
254
254
|
CHECKOUT_REQUIRES_CARD: 'CHECKOUT_REQUIRES_CARD',
|
|
255
255
|
CHECKOUT_START_TIME_INVALID: 'CHECKOUT_START_TIME_INVALID',
|
|
256
256
|
CHECKOUT_END_TIME_INVALID: 'CHECKOUT_END_TIME_INVALID',
|
|
257
|
+
CHECKOUT_PREVIEW_RATE_LIMITED: 'CHECKOUT_PREVIEW_RATE_LIMITED',
|
|
257
258
|
SUBSCRIPTION_NOT_FOUND: 'SUBSCRIPTION_NOT_FOUND',
|
|
258
259
|
SUBSCRIPTION_NOT_ACTIVE: 'SUBSCRIPTION_NOT_ACTIVE',
|
|
259
260
|
SUBSCRIPTION_CHARGE_IN_PROGRESS: 'SUBSCRIPTION_CHARGE_IN_PROGRESS',
|
|
@@ -279,6 +280,7 @@ exports.ForteApiExceptionErrorCodeType = {
|
|
|
279
280
|
INVOCATION_NOT_CANCELLABLE: 'INVOCATION_NOT_CANCELLABLE',
|
|
280
281
|
ACTION_NOT_ENABLED: 'ACTION_NOT_ENABLED',
|
|
281
282
|
ACTIONS_ACCESS_REQUIRED: 'ACTIONS_ACCESS_REQUIRED',
|
|
283
|
+
EMAIL_SENDER_NAME_INVALID: 'EMAIL_SENDER_NAME_INVALID',
|
|
282
284
|
EMAIL_CONFIGURATION_INVALID: 'EMAIL_CONFIGURATION_INVALID',
|
|
283
285
|
SANDBOX_EMAIL_RECIPIENT_UNVERIFIED: 'SANDBOX_EMAIL_RECIPIENT_UNVERIFIED',
|
|
284
286
|
SANDBOX_EMAIL_QUOTA_EXCEEDED: 'SANDBOX_EMAIL_QUOTA_EXCEEDED',
|
|
@@ -166,6 +166,12 @@ export interface ProjectObject {
|
|
|
166
166
|
* @memberof ProjectObject
|
|
167
167
|
*/
|
|
168
168
|
emailSender?: ProjectObjectEmailSenderType | null;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @type {string}
|
|
172
|
+
* @memberof ProjectObject
|
|
173
|
+
*/
|
|
174
|
+
emailSenderName?: string | null;
|
|
169
175
|
/**
|
|
170
176
|
*
|
|
171
177
|
* @type {string}
|
|
@@ -104,6 +104,7 @@ function ProjectObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
104
104
|
'notificationTemplatesConfig': json['notificationTemplatesConfig'] == null ? undefined : (0, NotificationTemplatesConfig_1.NotificationTemplatesConfigFromJSON)(json['notificationTemplatesConfig']),
|
|
105
105
|
'paymentTriggers': json['paymentTriggers'] == null ? undefined : (json['paymentTriggers'].map(PaymentTriggerConfig_1.PaymentTriggerConfigFromJSON)),
|
|
106
106
|
'emailSender': json['emailSender'] == null ? undefined : json['emailSender'],
|
|
107
|
+
'emailSenderName': json['emailSenderName'] == null ? undefined : json['emailSenderName'],
|
|
107
108
|
'parentProjectId': json['parentProjectId'] == null ? undefined : json['parentProjectId'],
|
|
108
109
|
'clonedFromProjectId': json['clonedFromProjectId'] == null ? undefined : json['clonedFromProjectId'],
|
|
109
110
|
'environmentName': json['environmentName'] == null ? undefined : json['environmentName'],
|
|
@@ -145,6 +146,7 @@ function ProjectObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
|
145
146
|
'notificationTemplatesConfig': (0, NotificationTemplatesConfig_1.NotificationTemplatesConfigToJSON)(value['notificationTemplatesConfig']),
|
|
146
147
|
'paymentTriggers': value['paymentTriggers'] == null ? undefined : (value['paymentTriggers'].map(PaymentTriggerConfig_1.PaymentTriggerConfigToJSON)),
|
|
147
148
|
'emailSender': value['emailSender'],
|
|
149
|
+
'emailSenderName': value['emailSenderName'],
|
|
148
150
|
'parentProjectId': value['parentProjectId'],
|
|
149
151
|
'clonedFromProjectId': value['clonedFromProjectId'],
|
|
150
152
|
'environmentName': value['environmentName'],
|
|
@@ -77,6 +77,12 @@ export interface UpdateProjectRequest {
|
|
|
77
77
|
* @memberof UpdateProjectRequest
|
|
78
78
|
*/
|
|
79
79
|
emailSender?: UpdateProjectRequestEmailSenderType | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof UpdateProjectRequest
|
|
84
|
+
*/
|
|
85
|
+
emailSenderName?: string | null;
|
|
80
86
|
}
|
|
81
87
|
/**
|
|
82
88
|
* @export
|
|
@@ -60,6 +60,7 @@ function UpdateProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
60
|
'mfaConfig': json['mfaConfig'] == null ? undefined : (0, MfaConfig_1.MfaConfigFromJSON)(json['mfaConfig']),
|
|
61
61
|
'botProtectionMode': json['botProtectionMode'] == null ? undefined : json['botProtectionMode'],
|
|
62
62
|
'emailSender': json['emailSender'] == null ? undefined : json['emailSender'],
|
|
63
|
+
'emailSenderName': json['emailSenderName'] == null ? undefined : json['emailSenderName'],
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
function UpdateProjectRequestToJSON(json) {
|
|
@@ -81,5 +82,6 @@ function UpdateProjectRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
81
82
|
'mfaConfig': (0, MfaConfig_1.MfaConfigToJSON)(value['mfaConfig']),
|
|
82
83
|
'botProtectionMode': value['botProtectionMode'],
|
|
83
84
|
'emailSender': value['emailSender'],
|
|
85
|
+
'emailSenderName': value['emailSenderName'],
|
|
84
86
|
};
|
|
85
87
|
}
|
|
@@ -123,16 +123,16 @@ export interface UserObject {
|
|
|
123
123
|
backupCodesGeneratedAt?: Date | null;
|
|
124
124
|
/**
|
|
125
125
|
*
|
|
126
|
-
* @type {
|
|
126
|
+
* @type {number}
|
|
127
127
|
* @memberof UserObject
|
|
128
128
|
*/
|
|
129
|
-
|
|
129
|
+
remainingBackupCodeCount?: number;
|
|
130
130
|
/**
|
|
131
131
|
*
|
|
132
|
-
* @type {
|
|
132
|
+
* @type {boolean}
|
|
133
133
|
* @memberof UserObject
|
|
134
134
|
*/
|
|
135
|
-
|
|
135
|
+
hasPassword?: boolean;
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
138
|
* @export
|
|
@@ -72,8 +72,8 @@ function UserObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
72
|
'passwordResetLastRequestedAt': json['passwordResetLastRequestedAt'] == null ? undefined : (new Date(json['passwordResetLastRequestedAt'])),
|
|
73
73
|
'mfaMethods': json['mfaMethods'] == null ? undefined : (json['mfaMethods'].map(MfaMethod_1.MfaMethodFromJSON)),
|
|
74
74
|
'backupCodesGeneratedAt': json['backupCodesGeneratedAt'] == null ? undefined : (new Date(json['backupCodesGeneratedAt'])),
|
|
75
|
-
'hasPassword': json['hasPassword'] == null ? undefined : json['hasPassword'],
|
|
76
75
|
'remainingBackupCodeCount': json['remainingBackupCodeCount'] == null ? undefined : json['remainingBackupCodeCount'],
|
|
76
|
+
'hasPassword': json['hasPassword'] == null ? undefined : json['hasPassword'],
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
function UserObjectToJSON(json) {
|
|
@@ -102,7 +102,7 @@ function UserObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
|
102
102
|
'passwordResetLastRequestedAt': value['passwordResetLastRequestedAt'] == null ? value['passwordResetLastRequestedAt'] : value['passwordResetLastRequestedAt'].toISOString(),
|
|
103
103
|
'mfaMethods': value['mfaMethods'] == null ? undefined : (value['mfaMethods'].map(MfaMethod_1.MfaMethodToJSON)),
|
|
104
104
|
'backupCodesGeneratedAt': value['backupCodesGeneratedAt'] == null ? value['backupCodesGeneratedAt'] : value['backupCodesGeneratedAt'].toISOString(),
|
|
105
|
-
'hasPassword': value['hasPassword'],
|
|
106
105
|
'remainingBackupCodeCount': value['remainingBackupCodeCount'],
|
|
106
|
+
'hasPassword': value['hasPassword'],
|
|
107
107
|
};
|
|
108
108
|
}
|