@randock/nameshift-api-client 0.0.557 → 0.0.558
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +15 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +38 -1
- package/dist/apis/AdminApi.js +165 -0
- package/dist/apis/BuyersApi.d.ts +3 -2
- package/dist/apis/BuyersApi.js +5 -2
- package/dist/apis/LeadsPublicApi.d.ts +43 -1
- package/dist/apis/LeadsPublicApi.js +151 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +2 -0
- package/dist/models/FeatureFlagListItemDto.js +3 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
- package/dist/models/LeadDto.d.ts +7 -0
- package/dist/models/LeadDto.js +5 -0
- package/dist/models/LeadEmailVerificationDto.d.ts +38 -0
- package/dist/models/LeadEmailVerificationDto.js +55 -0
- package/dist/models/LeadPhoneVerificationDeliveryDto.d.ts +49 -0
- package/dist/models/LeadPhoneVerificationDeliveryDto.js +66 -0
- package/dist/models/LeadPhoneVerificationDto.d.ts +80 -0
- package/dist/models/LeadPhoneVerificationDto.js +89 -0
- package/dist/models/LeadPhoneVerificationReason.d.ts +35 -0
- package/dist/models/LeadPhoneVerificationReason.js +61 -0
- package/dist/models/LeadPhoneVerificationSummaryDto.d.ts +32 -0
- package/dist/models/LeadPhoneVerificationSummaryDto.js +51 -0
- package/dist/models/LeadPhoneVerificationTooSoonOutput.d.ts +51 -0
- package/dist/models/LeadPhoneVerificationTooSoonOutput.js +64 -0
- package/dist/models/LeadPhoneVerificationUnavailableOutput.d.ts +51 -0
- package/dist/models/LeadPhoneVerificationUnavailableOutput.js +64 -0
- package/dist/models/LeadVerificationDto.d.ts +40 -0
- package/dist/models/LeadVerificationDto.js +57 -0
- package/dist/models/LeadVerificationInput.d.ts +24 -0
- package/dist/models/LeadVerificationInput.js +8 -0
- package/dist/models/LeadVerificationSettingsDto.d.ts +24 -0
- package/dist/models/LeadVerificationSettingsDto.js +16 -0
- package/dist/models/ListLeadsResultItem.d.ts +7 -0
- package/dist/models/ListLeadsResultItem.js +5 -0
- package/dist/models/ManualLeadDetails.d.ts +7 -0
- package/dist/models/ManualLeadDetails.js +5 -0
- package/dist/models/PhoneMessageDeliveryStatus.d.ts +27 -0
- package/dist/models/PhoneMessageDeliveryStatus.js +53 -0
- package/dist/models/PlatformConfigurationBlock.d.ts +25 -0
- package/dist/models/PlatformConfigurationBlock.js +51 -0
- package/dist/models/PlatformConfigurationDto.d.ts +62 -0
- package/dist/models/PlatformConfigurationDto.js +69 -0
- package/dist/models/PlatformConfigurationUpdatedByDto.d.ts +44 -0
- package/dist/models/PlatformConfigurationUpdatedByDto.js +59 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +2 -0
- package/dist/models/PrivateAccountGetMeResponse.js +3 -1
- package/dist/models/PublicLeadDto.d.ts +7 -0
- package/dist/models/PublicLeadDto.js +5 -0
- package/dist/models/RegisterAuctionBuyerPhoneInput.d.ts +9 -2
- package/dist/models/RegisterAuctionBuyerPhoneInput.js +3 -3
- package/dist/models/RequestLeadPhoneVerificationCodeInput.d.ts +32 -0
- package/dist/models/RequestLeadPhoneVerificationCodeInput.js +49 -0
- package/dist/models/SellerLeadDetails.d.ts +7 -0
- package/dist/models/SellerLeadDetails.js +5 -0
- package/dist/models/UpdatePlatformConfigurationInput.d.ts +34 -0
- package/dist/models/UpdatePlatformConfigurationInput.js +51 -0
- package/dist/models/VerifyLeadPhoneInput.d.ts +32 -0
- package/dist/models/VerifyLeadPhoneInput.js +51 -0
- package/dist/models/VerifyPhoneOtpInput.d.ts +1 -1
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +149 -0
- package/src/apis/BuyersApi.ts +7 -2
- package/src/apis/LeadsPublicApi.ts +162 -0
- package/src/models/FeatureFlagListItemDto.ts +3 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
- package/src/models/LeadDto.ts +16 -0
- package/src/models/LeadEmailVerificationDto.ts +75 -0
- package/src/models/LeadPhoneVerificationDeliveryDto.ts +96 -0
- package/src/models/LeadPhoneVerificationDto.ts +132 -0
- package/src/models/LeadPhoneVerificationReason.ts +63 -0
- package/src/models/LeadPhoneVerificationSummaryDto.ts +66 -0
- package/src/models/LeadPhoneVerificationTooSoonOutput.ts +103 -0
- package/src/models/LeadPhoneVerificationUnavailableOutput.ts +103 -0
- package/src/models/LeadVerificationDto.ts +90 -0
- package/src/models/LeadVerificationInput.ts +32 -0
- package/src/models/LeadVerificationSettingsDto.ts +36 -0
- package/src/models/ListLeadsResultItem.ts +16 -0
- package/src/models/ManualLeadDetails.ts +16 -0
- package/src/models/PhoneMessageDeliveryStatus.ts +55 -0
- package/src/models/PlatformConfigurationBlock.ts +53 -0
- package/src/models/PlatformConfigurationDto.ts +119 -0
- package/src/models/PlatformConfigurationUpdatedByDto.ts +84 -0
- package/src/models/PrivateAccountGetMeResponse.ts +3 -1
- package/src/models/PublicLeadDto.ts +16 -0
- package/src/models/RegisterAuctionBuyerPhoneInput.ts +12 -4
- package/src/models/RequestLeadPhoneVerificationCodeInput.ts +65 -0
- package/src/models/SellerLeadDetails.ts +16 -0
- package/src/models/UpdatePlatformConfigurationInput.ts +66 -0
- package/src/models/VerifyLeadPhoneInput.ts +66 -0
- package/src/models/VerifyPhoneOtpInput.ts +1 -1
- package/src/models/index.ts +15 -0
|
@@ -272,6 +272,52 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
272
272
|
});
|
|
273
273
|
});
|
|
274
274
|
};
|
|
275
|
+
/**
|
|
276
|
+
* Returns whether the last phone code of a lead is on its way, arrived or could not arrive, and on which app. No authentication required.
|
|
277
|
+
* Get where the last phone code is
|
|
278
|
+
*/
|
|
279
|
+
LeadsPublicApi.prototype.getLeadPhoneVerificationDeliveryRaw = function (requestParameters, initOverrides) {
|
|
280
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
281
|
+
var queryParameters, headerParameters, response;
|
|
282
|
+
return __generator(this, function (_a) {
|
|
283
|
+
switch (_a.label) {
|
|
284
|
+
case 0:
|
|
285
|
+
if (requestParameters['leadId'] == null) {
|
|
286
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getLeadPhoneVerificationDelivery().');
|
|
287
|
+
}
|
|
288
|
+
queryParameters = {};
|
|
289
|
+
headerParameters = {};
|
|
290
|
+
return [4 /*yield*/, this.request({
|
|
291
|
+
path: "/leads/{leadId}/phone-verification-delivery".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
292
|
+
method: 'GET',
|
|
293
|
+
headers: headerParameters,
|
|
294
|
+
query: queryParameters,
|
|
295
|
+
}, initOverrides)];
|
|
296
|
+
case 1:
|
|
297
|
+
response = _a.sent();
|
|
298
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadPhoneVerificationDeliveryDtoFromJSON)(jsonValue); })];
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Returns whether the last phone code of a lead is on its way, arrived or could not arrive, and on which app. No authentication required.
|
|
305
|
+
* Get where the last phone code is
|
|
306
|
+
*/
|
|
307
|
+
LeadsPublicApi.prototype.getLeadPhoneVerificationDelivery = function (requestParameters, initOverrides) {
|
|
308
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
309
|
+
var response;
|
|
310
|
+
return __generator(this, function (_a) {
|
|
311
|
+
switch (_a.label) {
|
|
312
|
+
case 0: return [4 /*yield*/, this.getLeadPhoneVerificationDeliveryRaw(requestParameters, initOverrides)];
|
|
313
|
+
case 1:
|
|
314
|
+
response = _a.sent();
|
|
315
|
+
return [4 /*yield*/, response.value()];
|
|
316
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
};
|
|
275
321
|
/**
|
|
276
322
|
* Returns the current negotiation status of a lead. No authentication required.
|
|
277
323
|
* Get lead status
|
|
@@ -318,6 +364,60 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
318
364
|
});
|
|
319
365
|
});
|
|
320
366
|
};
|
|
367
|
+
/**
|
|
368
|
+
* Sends the buyer of a lead a one-time code by Telegram, WhatsApp, SMS or a voice call, to the phone number on the lead. No authentication required.
|
|
369
|
+
* Send a phone verification code
|
|
370
|
+
*/
|
|
371
|
+
LeadsPublicApi.prototype.requestLeadPhoneVerificationCodeRaw = function (requestParameters, initOverrides) {
|
|
372
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
373
|
+
var queryParameters, headerParameters, response;
|
|
374
|
+
return __generator(this, function (_a) {
|
|
375
|
+
switch (_a.label) {
|
|
376
|
+
case 0:
|
|
377
|
+
if (requestParameters['leadId'] == null) {
|
|
378
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling requestLeadPhoneVerificationCode().');
|
|
379
|
+
}
|
|
380
|
+
if (requestParameters['requestLeadPhoneVerificationCodeInput'] == null) {
|
|
381
|
+
throw new runtime.RequiredError('requestLeadPhoneVerificationCodeInput', 'Required parameter "requestLeadPhoneVerificationCodeInput" was null or undefined when calling requestLeadPhoneVerificationCode().');
|
|
382
|
+
}
|
|
383
|
+
queryParameters = {};
|
|
384
|
+
headerParameters = {};
|
|
385
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
386
|
+
if (requestParameters['xRecaptchaToken'] != null) {
|
|
387
|
+
headerParameters['x-recaptcha-token'] = String(requestParameters['xRecaptchaToken']);
|
|
388
|
+
}
|
|
389
|
+
return [4 /*yield*/, this.request({
|
|
390
|
+
path: "/leads/{leadId}/request-phone-verification-code".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
391
|
+
method: 'POST',
|
|
392
|
+
headers: headerParameters,
|
|
393
|
+
query: queryParameters,
|
|
394
|
+
body: (0, index_1.RequestLeadPhoneVerificationCodeInputToJSON)(requestParameters['requestLeadPhoneVerificationCodeInput']),
|
|
395
|
+
}, initOverrides)];
|
|
396
|
+
case 1:
|
|
397
|
+
response = _a.sent();
|
|
398
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadVerificationDtoFromJSON)(jsonValue); })];
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
});
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* Sends the buyer of a lead a one-time code by Telegram, WhatsApp, SMS or a voice call, to the phone number on the lead. No authentication required.
|
|
405
|
+
* Send a phone verification code
|
|
406
|
+
*/
|
|
407
|
+
LeadsPublicApi.prototype.requestLeadPhoneVerificationCode = function (requestParameters, initOverrides) {
|
|
408
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
409
|
+
var response;
|
|
410
|
+
return __generator(this, function (_a) {
|
|
411
|
+
switch (_a.label) {
|
|
412
|
+
case 0: return [4 /*yield*/, this.requestLeadPhoneVerificationCodeRaw(requestParameters, initOverrides)];
|
|
413
|
+
case 1:
|
|
414
|
+
response = _a.sent();
|
|
415
|
+
return [4 /*yield*/, response.value()];
|
|
416
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
});
|
|
420
|
+
};
|
|
321
421
|
/**
|
|
322
422
|
* Generates and sends a new one-time verification code to the buyer email for the specified lead. No authentication required.
|
|
323
423
|
* Request a verification code
|
|
@@ -460,6 +560,57 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
460
560
|
});
|
|
461
561
|
});
|
|
462
562
|
};
|
|
563
|
+
/**
|
|
564
|
+
* Checks the one-time code the buyer received by Telegram, WhatsApp, SMS or a voice call. No authentication required.
|
|
565
|
+
* Verify a lead phone code
|
|
566
|
+
*/
|
|
567
|
+
LeadsPublicApi.prototype.verifyLeadPhoneRaw = function (requestParameters, initOverrides) {
|
|
568
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
569
|
+
var queryParameters, headerParameters, response;
|
|
570
|
+
return __generator(this, function (_a) {
|
|
571
|
+
switch (_a.label) {
|
|
572
|
+
case 0:
|
|
573
|
+
if (requestParameters['leadId'] == null) {
|
|
574
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling verifyLeadPhone().');
|
|
575
|
+
}
|
|
576
|
+
if (requestParameters['verifyLeadPhoneInput'] == null) {
|
|
577
|
+
throw new runtime.RequiredError('verifyLeadPhoneInput', 'Required parameter "verifyLeadPhoneInput" was null or undefined when calling verifyLeadPhone().');
|
|
578
|
+
}
|
|
579
|
+
queryParameters = {};
|
|
580
|
+
headerParameters = {};
|
|
581
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
582
|
+
return [4 /*yield*/, this.request({
|
|
583
|
+
path: "/leads/{leadId}/verify-phone".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
584
|
+
method: 'POST',
|
|
585
|
+
headers: headerParameters,
|
|
586
|
+
query: queryParameters,
|
|
587
|
+
body: (0, index_1.VerifyLeadPhoneInputToJSON)(requestParameters['verifyLeadPhoneInput']),
|
|
588
|
+
}, initOverrides)];
|
|
589
|
+
case 1:
|
|
590
|
+
response = _a.sent();
|
|
591
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadVerificationDtoFromJSON)(jsonValue); })];
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
});
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
* Checks the one-time code the buyer received by Telegram, WhatsApp, SMS or a voice call. No authentication required.
|
|
598
|
+
* Verify a lead phone code
|
|
599
|
+
*/
|
|
600
|
+
LeadsPublicApi.prototype.verifyLeadPhone = function (requestParameters, initOverrides) {
|
|
601
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
602
|
+
var response;
|
|
603
|
+
return __generator(this, function (_a) {
|
|
604
|
+
switch (_a.label) {
|
|
605
|
+
case 0: return [4 /*yield*/, this.verifyLeadPhoneRaw(requestParameters, initOverrides)];
|
|
606
|
+
case 1:
|
|
607
|
+
response = _a.sent();
|
|
608
|
+
return [4 /*yield*/, response.value()];
|
|
609
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
});
|
|
613
|
+
};
|
|
463
614
|
return LeadsPublicApi;
|
|
464
615
|
}(runtime.BaseAPI));
|
|
465
616
|
exports.LeadsPublicApi = LeadsPublicApi;
|
|
@@ -100,6 +100,8 @@ export declare const FeatureFlagListItemDtoNameEnum: {
|
|
|
100
100
|
readonly WEBHOOKS: "WEBHOOKS";
|
|
101
101
|
readonly CUSTOM_LANDING_PAGE_CONTENT: "CUSTOM_LANDING_PAGE_CONTENT";
|
|
102
102
|
readonly AUTOMATIONS: "AUTOMATIONS";
|
|
103
|
+
readonly LEAD_PHONE_OTP: "LEAD_PHONE_OTP";
|
|
104
|
+
readonly PHONE_VERIFICATION_RECAPTCHA: "PHONE_VERIFICATION_RECAPTCHA";
|
|
103
105
|
};
|
|
104
106
|
export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
|
|
105
107
|
/**
|
|
@@ -60,7 +60,9 @@ exports.FeatureFlagListItemDtoNameEnum = {
|
|
|
60
60
|
MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF',
|
|
61
61
|
WEBHOOKS: 'WEBHOOKS',
|
|
62
62
|
CUSTOM_LANDING_PAGE_CONTENT: 'CUSTOM_LANDING_PAGE_CONTENT',
|
|
63
|
-
AUTOMATIONS: 'AUTOMATIONS'
|
|
63
|
+
AUTOMATIONS: 'AUTOMATIONS',
|
|
64
|
+
LEAD_PHONE_OTP: 'LEAD_PHONE_OTP',
|
|
65
|
+
PHONE_VERIFICATION_RECAPTCHA: 'PHONE_VERIFICATION_RECAPTCHA'
|
|
64
66
|
};
|
|
65
67
|
/**
|
|
66
68
|
* Check if a given object implements the FeatureFlagListItemDto interface.
|
|
@@ -155,6 +155,8 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
|
|
|
155
155
|
readonly WEBHOOKS: "WEBHOOKS";
|
|
156
156
|
readonly CUSTOM_LANDING_PAGE_CONTENT: "CUSTOM_LANDING_PAGE_CONTENT";
|
|
157
157
|
readonly AUTOMATIONS: "AUTOMATIONS";
|
|
158
|
+
readonly LEAD_PHONE_OTP: "LEAD_PHONE_OTP";
|
|
159
|
+
readonly PHONE_VERIFICATION_RECAPTCHA: "PHONE_VERIFICATION_RECAPTCHA";
|
|
158
160
|
};
|
|
159
161
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
160
162
|
/**
|
package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js
CHANGED
|
@@ -67,7 +67,9 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
|
|
|
67
67
|
MFA_ENFORCED_FOR_STAFF: 'MFA_ENFORCED_FOR_STAFF',
|
|
68
68
|
WEBHOOKS: 'WEBHOOKS',
|
|
69
69
|
CUSTOM_LANDING_PAGE_CONTENT: 'CUSTOM_LANDING_PAGE_CONTENT',
|
|
70
|
-
AUTOMATIONS: 'AUTOMATIONS'
|
|
70
|
+
AUTOMATIONS: 'AUTOMATIONS',
|
|
71
|
+
LEAD_PHONE_OTP: 'LEAD_PHONE_OTP',
|
|
72
|
+
PHONE_VERIFICATION_RECAPTCHA: 'PHONE_VERIFICATION_RECAPTCHA'
|
|
71
73
|
};
|
|
72
74
|
/**
|
|
73
75
|
* Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
|
package/dist/models/LeadDto.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { LeadLeaseToOwnConfigurationDto } from './LeadLeaseToOwnConfigurationDto';
|
|
13
13
|
import type { LeadDomainDto } from './LeadDomainDto';
|
|
14
14
|
import type { MoneyDto } from './MoneyDto';
|
|
15
|
+
import type { LeadPhoneVerificationSummaryDto } from './LeadPhoneVerificationSummaryDto';
|
|
15
16
|
import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
|
|
16
17
|
import type { LeadOfferExpirationConfigurationDto } from './LeadOfferExpirationConfigurationDto';
|
|
17
18
|
import type { LeadOfferDto } from './LeadOfferDto';
|
|
@@ -165,6 +166,12 @@ export interface LeadDto {
|
|
|
165
166
|
* @memberof LeadDto
|
|
166
167
|
*/
|
|
167
168
|
awaitingSellerFirstMessage: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* How the buyer phone number was confirmed. Null when the buyer did not confirm a phone code.
|
|
171
|
+
* @type {LeadPhoneVerificationSummaryDto}
|
|
172
|
+
* @memberof LeadDto
|
|
173
|
+
*/
|
|
174
|
+
phoneVerification: LeadPhoneVerificationSummaryDto | null;
|
|
168
175
|
}
|
|
169
176
|
/**
|
|
170
177
|
* @export
|
package/dist/models/LeadDto.js
CHANGED
|
@@ -22,6 +22,7 @@ exports.LeadDtoToJSONTyped = LeadDtoToJSONTyped;
|
|
|
22
22
|
var LeadLeaseToOwnConfigurationDto_1 = require("./LeadLeaseToOwnConfigurationDto");
|
|
23
23
|
var LeadDomainDto_1 = require("./LeadDomainDto");
|
|
24
24
|
var MoneyDto_1 = require("./MoneyDto");
|
|
25
|
+
var LeadPhoneVerificationSummaryDto_1 = require("./LeadPhoneVerificationSummaryDto");
|
|
25
26
|
var LeadRentConfigurationDto_1 = require("./LeadRentConfigurationDto");
|
|
26
27
|
var LeadOfferExpirationConfigurationDto_1 = require("./LeadOfferExpirationConfigurationDto");
|
|
27
28
|
var LeadOfferDto_1 = require("./LeadOfferDto");
|
|
@@ -115,6 +116,8 @@ function instanceOfLeadDto(value) {
|
|
|
115
116
|
return false;
|
|
116
117
|
if (!('awaitingSellerFirstMessage' in value) || value['awaitingSellerFirstMessage'] === undefined)
|
|
117
118
|
return false;
|
|
119
|
+
if (!('phoneVerification' in value) || value['phoneVerification'] === undefined)
|
|
120
|
+
return false;
|
|
118
121
|
return true;
|
|
119
122
|
}
|
|
120
123
|
function LeadDtoFromJSON(json) {
|
|
@@ -149,6 +152,7 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
149
152
|
'canBeClosedBySeller': json['canBeClosedBySeller'],
|
|
150
153
|
'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
|
|
151
154
|
'awaitingSellerFirstMessage': json['awaitingSellerFirstMessage'],
|
|
155
|
+
'phoneVerification': (0, LeadPhoneVerificationSummaryDto_1.LeadPhoneVerificationSummaryDtoFromJSON)(json['phoneVerification']),
|
|
152
156
|
};
|
|
153
157
|
}
|
|
154
158
|
function LeadDtoToJSON(json) {
|
|
@@ -184,5 +188,6 @@ function LeadDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
184
188
|
'canBeClosedBySeller': value['canBeClosedBySeller'],
|
|
185
189
|
'acceptedAt': (value['acceptedAt'] == null ? null : value['acceptedAt'].toISOString()),
|
|
186
190
|
'awaitingSellerFirstMessage': value['awaitingSellerFirstMessage'],
|
|
191
|
+
'phoneVerification': (0, LeadPhoneVerificationSummaryDto_1.LeadPhoneVerificationSummaryDtoToJSON)(value['phoneVerification']),
|
|
187
192
|
};
|
|
188
193
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LeadEmailVerificationDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LeadEmailVerificationDto {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the buyer has to confirm the email code.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof LeadEmailVerificationDto
|
|
22
|
+
*/
|
|
23
|
+
required: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the buyer confirmed the email code.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof LeadEmailVerificationDto
|
|
28
|
+
*/
|
|
29
|
+
verified: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the LeadEmailVerificationDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLeadEmailVerificationDto(value: object): value is LeadEmailVerificationDto;
|
|
35
|
+
export declare function LeadEmailVerificationDtoFromJSON(json: any): LeadEmailVerificationDto;
|
|
36
|
+
export declare function LeadEmailVerificationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadEmailVerificationDto;
|
|
37
|
+
export declare function LeadEmailVerificationDtoToJSON(json: any): LeadEmailVerificationDto;
|
|
38
|
+
export declare function LeadEmailVerificationDtoToJSONTyped(value?: LeadEmailVerificationDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfLeadEmailVerificationDto = instanceOfLeadEmailVerificationDto;
|
|
17
|
+
exports.LeadEmailVerificationDtoFromJSON = LeadEmailVerificationDtoFromJSON;
|
|
18
|
+
exports.LeadEmailVerificationDtoFromJSONTyped = LeadEmailVerificationDtoFromJSONTyped;
|
|
19
|
+
exports.LeadEmailVerificationDtoToJSON = LeadEmailVerificationDtoToJSON;
|
|
20
|
+
exports.LeadEmailVerificationDtoToJSONTyped = LeadEmailVerificationDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LeadEmailVerificationDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLeadEmailVerificationDto(value) {
|
|
25
|
+
if (!('required' in value) || value['required'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('verified' in value) || value['verified'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function LeadEmailVerificationDtoFromJSON(json) {
|
|
32
|
+
return LeadEmailVerificationDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function LeadEmailVerificationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'required': json['required'],
|
|
40
|
+
'verified': json['verified'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function LeadEmailVerificationDtoToJSON(json) {
|
|
44
|
+
return LeadEmailVerificationDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function LeadEmailVerificationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'required': value['required'],
|
|
53
|
+
'verified': value['verified'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PhoneMessageDeliveryStatus } from './PhoneMessageDeliveryStatus';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LeadPhoneVerificationDeliveryDto
|
|
17
|
+
*/
|
|
18
|
+
export interface LeadPhoneVerificationDeliveryDto {
|
|
19
|
+
/**
|
|
20
|
+
* Whether the code is on its way, arrived, or could not arrive.
|
|
21
|
+
* @type {PhoneMessageDeliveryStatus}
|
|
22
|
+
* @memberof LeadPhoneVerificationDeliveryDto
|
|
23
|
+
*/
|
|
24
|
+
status: PhoneMessageDeliveryStatus;
|
|
25
|
+
/**
|
|
26
|
+
* The app the code is on, when known.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof LeadPhoneVerificationDeliveryDto
|
|
29
|
+
*/
|
|
30
|
+
channel: LeadPhoneVerificationDeliveryDtoChannelEnum | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const LeadPhoneVerificationDeliveryDtoChannelEnum: {
|
|
36
|
+
readonly TELEGRAM: "telegram";
|
|
37
|
+
readonly WHATSAPP: "whatsapp";
|
|
38
|
+
readonly SMS: "sms";
|
|
39
|
+
readonly VOICE: "voice";
|
|
40
|
+
};
|
|
41
|
+
export type LeadPhoneVerificationDeliveryDtoChannelEnum = typeof LeadPhoneVerificationDeliveryDtoChannelEnum[keyof typeof LeadPhoneVerificationDeliveryDtoChannelEnum];
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the LeadPhoneVerificationDeliveryDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export declare function instanceOfLeadPhoneVerificationDeliveryDto(value: object): value is LeadPhoneVerificationDeliveryDto;
|
|
46
|
+
export declare function LeadPhoneVerificationDeliveryDtoFromJSON(json: any): LeadPhoneVerificationDeliveryDto;
|
|
47
|
+
export declare function LeadPhoneVerificationDeliveryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadPhoneVerificationDeliveryDto;
|
|
48
|
+
export declare function LeadPhoneVerificationDeliveryDtoToJSON(json: any): LeadPhoneVerificationDeliveryDto;
|
|
49
|
+
export declare function LeadPhoneVerificationDeliveryDtoToJSONTyped(value?: LeadPhoneVerificationDeliveryDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LeadPhoneVerificationDeliveryDtoChannelEnum = void 0;
|
|
17
|
+
exports.instanceOfLeadPhoneVerificationDeliveryDto = instanceOfLeadPhoneVerificationDeliveryDto;
|
|
18
|
+
exports.LeadPhoneVerificationDeliveryDtoFromJSON = LeadPhoneVerificationDeliveryDtoFromJSON;
|
|
19
|
+
exports.LeadPhoneVerificationDeliveryDtoFromJSONTyped = LeadPhoneVerificationDeliveryDtoFromJSONTyped;
|
|
20
|
+
exports.LeadPhoneVerificationDeliveryDtoToJSON = LeadPhoneVerificationDeliveryDtoToJSON;
|
|
21
|
+
exports.LeadPhoneVerificationDeliveryDtoToJSONTyped = LeadPhoneVerificationDeliveryDtoToJSONTyped;
|
|
22
|
+
var PhoneMessageDeliveryStatus_1 = require("./PhoneMessageDeliveryStatus");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.LeadPhoneVerificationDeliveryDtoChannelEnum = {
|
|
27
|
+
TELEGRAM: 'telegram',
|
|
28
|
+
WHATSAPP: 'whatsapp',
|
|
29
|
+
SMS: 'sms',
|
|
30
|
+
VOICE: 'voice'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the LeadPhoneVerificationDeliveryDto interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfLeadPhoneVerificationDeliveryDto(value) {
|
|
36
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('channel' in value) || value['channel'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function LeadPhoneVerificationDeliveryDtoFromJSON(json) {
|
|
43
|
+
return LeadPhoneVerificationDeliveryDtoFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function LeadPhoneVerificationDeliveryDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'status': (0, PhoneMessageDeliveryStatus_1.PhoneMessageDeliveryStatusFromJSON)(json['status']),
|
|
51
|
+
'channel': json['channel'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function LeadPhoneVerificationDeliveryDtoToJSON(json) {
|
|
55
|
+
return LeadPhoneVerificationDeliveryDtoToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function LeadPhoneVerificationDeliveryDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'status': (0, PhoneMessageDeliveryStatus_1.PhoneMessageDeliveryStatusToJSON)(value['status']),
|
|
64
|
+
'channel': value['channel'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LeadPhoneVerificationDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LeadPhoneVerificationDto {
|
|
18
|
+
/**
|
|
19
|
+
* Whether the buyer has to confirm the phone code.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof LeadPhoneVerificationDto
|
|
22
|
+
*/
|
|
23
|
+
required: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the buyer confirmed the phone code.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof LeadPhoneVerificationDto
|
|
28
|
+
*/
|
|
29
|
+
verified: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Why no phone code can be sent for the lead.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LeadPhoneVerificationDto
|
|
34
|
+
*/
|
|
35
|
+
unavailableReason: LeadPhoneVerificationDtoUnavailableReasonEnum | null;
|
|
36
|
+
/**
|
|
37
|
+
* Phone codes the lead can still receive.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof LeadPhoneVerificationDto
|
|
40
|
+
*/
|
|
41
|
+
sendsLeft: number;
|
|
42
|
+
/**
|
|
43
|
+
* When the next phone code can be sent.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof LeadPhoneVerificationDto
|
|
46
|
+
*/
|
|
47
|
+
nextSendAt: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
* When the last phone code stops working.
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof LeadPhoneVerificationDto
|
|
52
|
+
*/
|
|
53
|
+
codeExpiresAt: Date | null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const LeadPhoneVerificationDtoUnavailableReasonEnum: {
|
|
59
|
+
readonly COOLDOWN: "cooldown";
|
|
60
|
+
readonly PHONE_HOURLY_CAP: "phone_hourly_cap";
|
|
61
|
+
readonly LEAD_CAP: "lead_cap";
|
|
62
|
+
readonly PHONE_DAILY_CAP: "phone_daily_cap";
|
|
63
|
+
readonly PHONE_LEADS_CAP: "phone_leads_cap";
|
|
64
|
+
readonly GLOBAL_CAP: "global_cap";
|
|
65
|
+
readonly NO_PHONE_NUMBER: "no_phone_number";
|
|
66
|
+
readonly INVALID_NUMBER: "invalid_number";
|
|
67
|
+
readonly COUNTRY_NOT_ALLOWED: "country_not_allowed";
|
|
68
|
+
readonly NUMBER_TYPE_NOT_ALLOWED: "number_type_not_allowed";
|
|
69
|
+
readonly ATTEMPTS_EXCEEDED: "attempts_exceeded";
|
|
70
|
+
readonly REJECTED_BY_PROVIDER: "rejected_by_provider";
|
|
71
|
+
};
|
|
72
|
+
export type LeadPhoneVerificationDtoUnavailableReasonEnum = typeof LeadPhoneVerificationDtoUnavailableReasonEnum[keyof typeof LeadPhoneVerificationDtoUnavailableReasonEnum];
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the LeadPhoneVerificationDto interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfLeadPhoneVerificationDto(value: object): value is LeadPhoneVerificationDto;
|
|
77
|
+
export declare function LeadPhoneVerificationDtoFromJSON(json: any): LeadPhoneVerificationDto;
|
|
78
|
+
export declare function LeadPhoneVerificationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadPhoneVerificationDto;
|
|
79
|
+
export declare function LeadPhoneVerificationDtoToJSON(json: any): LeadPhoneVerificationDto;
|
|
80
|
+
export declare function LeadPhoneVerificationDtoToJSONTyped(value?: LeadPhoneVerificationDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LeadPhoneVerificationDtoUnavailableReasonEnum = void 0;
|
|
17
|
+
exports.instanceOfLeadPhoneVerificationDto = instanceOfLeadPhoneVerificationDto;
|
|
18
|
+
exports.LeadPhoneVerificationDtoFromJSON = LeadPhoneVerificationDtoFromJSON;
|
|
19
|
+
exports.LeadPhoneVerificationDtoFromJSONTyped = LeadPhoneVerificationDtoFromJSONTyped;
|
|
20
|
+
exports.LeadPhoneVerificationDtoToJSON = LeadPhoneVerificationDtoToJSON;
|
|
21
|
+
exports.LeadPhoneVerificationDtoToJSONTyped = LeadPhoneVerificationDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.LeadPhoneVerificationDtoUnavailableReasonEnum = {
|
|
26
|
+
COOLDOWN: 'cooldown',
|
|
27
|
+
PHONE_HOURLY_CAP: 'phone_hourly_cap',
|
|
28
|
+
LEAD_CAP: 'lead_cap',
|
|
29
|
+
PHONE_DAILY_CAP: 'phone_daily_cap',
|
|
30
|
+
PHONE_LEADS_CAP: 'phone_leads_cap',
|
|
31
|
+
GLOBAL_CAP: 'global_cap',
|
|
32
|
+
NO_PHONE_NUMBER: 'no_phone_number',
|
|
33
|
+
INVALID_NUMBER: 'invalid_number',
|
|
34
|
+
COUNTRY_NOT_ALLOWED: 'country_not_allowed',
|
|
35
|
+
NUMBER_TYPE_NOT_ALLOWED: 'number_type_not_allowed',
|
|
36
|
+
ATTEMPTS_EXCEEDED: 'attempts_exceeded',
|
|
37
|
+
REJECTED_BY_PROVIDER: 'rejected_by_provider'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the LeadPhoneVerificationDto interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfLeadPhoneVerificationDto(value) {
|
|
43
|
+
if (!('required' in value) || value['required'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('verified' in value) || value['verified'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('unavailableReason' in value) || value['unavailableReason'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('sendsLeft' in value) || value['sendsLeft'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('nextSendAt' in value) || value['nextSendAt'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('codeExpiresAt' in value) || value['codeExpiresAt'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
function LeadPhoneVerificationDtoFromJSON(json) {
|
|
58
|
+
return LeadPhoneVerificationDtoFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function LeadPhoneVerificationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'required': json['required'],
|
|
66
|
+
'verified': json['verified'],
|
|
67
|
+
'unavailableReason': json['unavailableReason'],
|
|
68
|
+
'sendsLeft': json['sendsLeft'],
|
|
69
|
+
'nextSendAt': (json['nextSendAt'] == null ? null : new Date(json['nextSendAt'])),
|
|
70
|
+
'codeExpiresAt': (json['codeExpiresAt'] == null ? null : new Date(json['codeExpiresAt'])),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function LeadPhoneVerificationDtoToJSON(json) {
|
|
74
|
+
return LeadPhoneVerificationDtoToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function LeadPhoneVerificationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
77
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
'required': value['required'],
|
|
83
|
+
'verified': value['verified'],
|
|
84
|
+
'unavailableReason': value['unavailableReason'],
|
|
85
|
+
'sendsLeft': value['sendsLeft'],
|
|
86
|
+
'nextSendAt': (value['nextSendAt'] == null ? null : value['nextSendAt'].toISOString()),
|
|
87
|
+
'codeExpiresAt': (value['codeExpiresAt'] == null ? null : value['codeExpiresAt'].toISOString()),
|
|
88
|
+
};
|
|
89
|
+
}
|