@randock/nameshift-api-client 0.0.556 → 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.
Files changed (97) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +38 -1
  4. package/dist/apis/AdminApi.js +165 -0
  5. package/dist/apis/BuyersApi.d.ts +3 -2
  6. package/dist/apis/BuyersApi.js +5 -2
  7. package/dist/apis/LeadsPublicApi.d.ts +43 -1
  8. package/dist/apis/LeadsPublicApi.js +151 -0
  9. package/dist/models/AutomationRunLeadDto.d.ts +1 -1
  10. package/dist/models/FeatureFlagListItemDto.d.ts +2 -0
  11. package/dist/models/FeatureFlagListItemDto.js +3 -1
  12. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
  13. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
  14. package/dist/models/LeadDto.d.ts +7 -0
  15. package/dist/models/LeadDto.js +5 -0
  16. package/dist/models/LeadEmailVerificationDto.d.ts +38 -0
  17. package/dist/models/LeadEmailVerificationDto.js +55 -0
  18. package/dist/models/LeadPhoneVerificationDeliveryDto.d.ts +49 -0
  19. package/dist/models/LeadPhoneVerificationDeliveryDto.js +66 -0
  20. package/dist/models/LeadPhoneVerificationDto.d.ts +80 -0
  21. package/dist/models/LeadPhoneVerificationDto.js +89 -0
  22. package/dist/models/LeadPhoneVerificationReason.d.ts +35 -0
  23. package/dist/models/LeadPhoneVerificationReason.js +61 -0
  24. package/dist/models/LeadPhoneVerificationSummaryDto.d.ts +32 -0
  25. package/dist/models/LeadPhoneVerificationSummaryDto.js +51 -0
  26. package/dist/models/LeadPhoneVerificationTooSoonOutput.d.ts +51 -0
  27. package/dist/models/LeadPhoneVerificationTooSoonOutput.js +64 -0
  28. package/dist/models/LeadPhoneVerificationUnavailableOutput.d.ts +51 -0
  29. package/dist/models/LeadPhoneVerificationUnavailableOutput.js +64 -0
  30. package/dist/models/LeadVerificationDto.d.ts +40 -0
  31. package/dist/models/LeadVerificationDto.js +57 -0
  32. package/dist/models/LeadVerificationInput.d.ts +24 -0
  33. package/dist/models/LeadVerificationInput.js +8 -0
  34. package/dist/models/LeadVerificationSettingsDto.d.ts +24 -0
  35. package/dist/models/LeadVerificationSettingsDto.js +16 -0
  36. package/dist/models/ListLeadsResultItem.d.ts +7 -0
  37. package/dist/models/ListLeadsResultItem.js +5 -0
  38. package/dist/models/ManualLeadDetails.d.ts +7 -0
  39. package/dist/models/ManualLeadDetails.js +5 -0
  40. package/dist/models/PhoneMessageDeliveryStatus.d.ts +27 -0
  41. package/dist/models/PhoneMessageDeliveryStatus.js +53 -0
  42. package/dist/models/PlatformConfigurationBlock.d.ts +25 -0
  43. package/dist/models/PlatformConfigurationBlock.js +51 -0
  44. package/dist/models/PlatformConfigurationDto.d.ts +62 -0
  45. package/dist/models/PlatformConfigurationDto.js +69 -0
  46. package/dist/models/PlatformConfigurationUpdatedByDto.d.ts +44 -0
  47. package/dist/models/PlatformConfigurationUpdatedByDto.js +59 -0
  48. package/dist/models/PrivateAccountGetMeResponse.d.ts +2 -0
  49. package/dist/models/PrivateAccountGetMeResponse.js +3 -1
  50. package/dist/models/PublicLeadDto.d.ts +7 -0
  51. package/dist/models/PublicLeadDto.js +5 -0
  52. package/dist/models/RegisterAuctionBuyerPhoneInput.d.ts +9 -2
  53. package/dist/models/RegisterAuctionBuyerPhoneInput.js +3 -3
  54. package/dist/models/RequestLeadPhoneVerificationCodeInput.d.ts +32 -0
  55. package/dist/models/RequestLeadPhoneVerificationCodeInput.js +49 -0
  56. package/dist/models/SellerLeadDetails.d.ts +7 -0
  57. package/dist/models/SellerLeadDetails.js +5 -0
  58. package/dist/models/UpdatePlatformConfigurationInput.d.ts +34 -0
  59. package/dist/models/UpdatePlatformConfigurationInput.js +51 -0
  60. package/dist/models/VerifyLeadPhoneInput.d.ts +32 -0
  61. package/dist/models/VerifyLeadPhoneInput.js +51 -0
  62. package/dist/models/VerifyPhoneOtpInput.d.ts +1 -1
  63. package/dist/models/index.d.ts +15 -0
  64. package/dist/models/index.js +15 -0
  65. package/package.json +1 -1
  66. package/src/apis/AdminApi.ts +149 -0
  67. package/src/apis/BuyersApi.ts +7 -2
  68. package/src/apis/LeadsPublicApi.ts +162 -0
  69. package/src/models/AutomationRunLeadDto.ts +1 -1
  70. package/src/models/FeatureFlagListItemDto.ts +3 -1
  71. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
  72. package/src/models/LeadDto.ts +16 -0
  73. package/src/models/LeadEmailVerificationDto.ts +75 -0
  74. package/src/models/LeadPhoneVerificationDeliveryDto.ts +96 -0
  75. package/src/models/LeadPhoneVerificationDto.ts +132 -0
  76. package/src/models/LeadPhoneVerificationReason.ts +63 -0
  77. package/src/models/LeadPhoneVerificationSummaryDto.ts +66 -0
  78. package/src/models/LeadPhoneVerificationTooSoonOutput.ts +103 -0
  79. package/src/models/LeadPhoneVerificationUnavailableOutput.ts +103 -0
  80. package/src/models/LeadVerificationDto.ts +90 -0
  81. package/src/models/LeadVerificationInput.ts +32 -0
  82. package/src/models/LeadVerificationSettingsDto.ts +36 -0
  83. package/src/models/ListLeadsResultItem.ts +16 -0
  84. package/src/models/ManualLeadDetails.ts +16 -0
  85. package/src/models/PhoneMessageDeliveryStatus.ts +55 -0
  86. package/src/models/PlatformConfigurationBlock.ts +53 -0
  87. package/src/models/PlatformConfigurationDto.ts +119 -0
  88. package/src/models/PlatformConfigurationUpdatedByDto.ts +84 -0
  89. package/src/models/PrivateAccountGetMeResponse.ts +3 -1
  90. package/src/models/PublicLeadDto.ts +16 -0
  91. package/src/models/RegisterAuctionBuyerPhoneInput.ts +12 -4
  92. package/src/models/RequestLeadPhoneVerificationCodeInput.ts +65 -0
  93. package/src/models/SellerLeadDetails.ts +16 -0
  94. package/src/models/UpdatePlatformConfigurationInput.ts +66 -0
  95. package/src/models/VerifyLeadPhoneInput.ts +66 -0
  96. package/src/models/VerifyPhoneOtpInput.ts +1 -1
  97. package/src/models/index.ts +15 -0
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
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 { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface LeadPhoneVerificationSummaryDto
20
+ */
21
+ export interface LeadPhoneVerificationSummaryDto {
22
+ /**
23
+ * When the buyer confirmed their phone number.
24
+ * @type {Date}
25
+ * @memberof LeadPhoneVerificationSummaryDto
26
+ */
27
+ verifiedAt: Date;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the LeadPhoneVerificationSummaryDto interface.
32
+ */
33
+ export function instanceOfLeadPhoneVerificationSummaryDto(value: object): value is LeadPhoneVerificationSummaryDto {
34
+ if (!('verifiedAt' in value) || value['verifiedAt'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function LeadPhoneVerificationSummaryDtoFromJSON(json: any): LeadPhoneVerificationSummaryDto {
39
+ return LeadPhoneVerificationSummaryDtoFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function LeadPhoneVerificationSummaryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadPhoneVerificationSummaryDto {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'verifiedAt': (new Date(json['verifiedAt'])),
49
+ };
50
+ }
51
+
52
+ export function LeadPhoneVerificationSummaryDtoToJSON(json: any): LeadPhoneVerificationSummaryDto {
53
+ return LeadPhoneVerificationSummaryDtoToJSONTyped(json, false);
54
+ }
55
+
56
+ export function LeadPhoneVerificationSummaryDtoToJSONTyped(value?: LeadPhoneVerificationSummaryDto | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'verifiedAt': ((value['verifiedAt']).toISOString()),
64
+ };
65
+ }
66
+
@@ -0,0 +1,103 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
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 { mapValues } from '../runtime';
16
+ import type { LeadPhoneVerificationReason } from './LeadPhoneVerificationReason';
17
+ import {
18
+ LeadPhoneVerificationReasonFromJSON,
19
+ LeadPhoneVerificationReasonFromJSONTyped,
20
+ LeadPhoneVerificationReasonToJSON,
21
+ LeadPhoneVerificationReasonToJSONTyped,
22
+ } from './LeadPhoneVerificationReason';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface LeadPhoneVerificationTooSoonOutput
28
+ */
29
+ export interface LeadPhoneVerificationTooSoonOutput {
30
+ /**
31
+ * Exception name.
32
+ * @type {string}
33
+ * @memberof LeadPhoneVerificationTooSoonOutput
34
+ */
35
+ name: string;
36
+ /**
37
+ * HTTP status code.
38
+ * @type {number}
39
+ * @memberof LeadPhoneVerificationTooSoonOutput
40
+ */
41
+ statusCode: number;
42
+ /**
43
+ * Why no code can be sent now.
44
+ * @type {LeadPhoneVerificationReason}
45
+ * @memberof LeadPhoneVerificationTooSoonOutput
46
+ */
47
+ reason: LeadPhoneVerificationReason;
48
+ /**
49
+ * Seconds to wait before asking again.
50
+ * @type {number}
51
+ * @memberof LeadPhoneVerificationTooSoonOutput
52
+ */
53
+ retryAfterSeconds: number;
54
+ }
55
+
56
+
57
+
58
+ /**
59
+ * Check if a given object implements the LeadPhoneVerificationTooSoonOutput interface.
60
+ */
61
+ export function instanceOfLeadPhoneVerificationTooSoonOutput(value: object): value is LeadPhoneVerificationTooSoonOutput {
62
+ if (!('name' in value) || value['name'] === undefined) return false;
63
+ if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
64
+ if (!('reason' in value) || value['reason'] === undefined) return false;
65
+ if (!('retryAfterSeconds' in value) || value['retryAfterSeconds'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function LeadPhoneVerificationTooSoonOutputFromJSON(json: any): LeadPhoneVerificationTooSoonOutput {
70
+ return LeadPhoneVerificationTooSoonOutputFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function LeadPhoneVerificationTooSoonOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadPhoneVerificationTooSoonOutput {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'name': json['name'],
80
+ 'statusCode': json['statusCode'],
81
+ 'reason': LeadPhoneVerificationReasonFromJSON(json['reason']),
82
+ 'retryAfterSeconds': json['retryAfterSeconds'],
83
+ };
84
+ }
85
+
86
+ export function LeadPhoneVerificationTooSoonOutputToJSON(json: any): LeadPhoneVerificationTooSoonOutput {
87
+ return LeadPhoneVerificationTooSoonOutputToJSONTyped(json, false);
88
+ }
89
+
90
+ export function LeadPhoneVerificationTooSoonOutputToJSONTyped(value?: LeadPhoneVerificationTooSoonOutput | null, ignoreDiscriminator: boolean = false): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+
95
+ return {
96
+
97
+ 'name': value['name'],
98
+ 'statusCode': value['statusCode'],
99
+ 'reason': LeadPhoneVerificationReasonToJSON(value['reason']),
100
+ 'retryAfterSeconds': value['retryAfterSeconds'],
101
+ };
102
+ }
103
+
@@ -0,0 +1,103 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
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 { mapValues } from '../runtime';
16
+ import type { LeadPhoneVerificationReason } from './LeadPhoneVerificationReason';
17
+ import {
18
+ LeadPhoneVerificationReasonFromJSON,
19
+ LeadPhoneVerificationReasonFromJSONTyped,
20
+ LeadPhoneVerificationReasonToJSON,
21
+ LeadPhoneVerificationReasonToJSONTyped,
22
+ } from './LeadPhoneVerificationReason';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface LeadPhoneVerificationUnavailableOutput
28
+ */
29
+ export interface LeadPhoneVerificationUnavailableOutput {
30
+ /**
31
+ * Exception name.
32
+ * @type {string}
33
+ * @memberof LeadPhoneVerificationUnavailableOutput
34
+ */
35
+ name: string;
36
+ /**
37
+ * HTTP status code.
38
+ * @type {number}
39
+ * @memberof LeadPhoneVerificationUnavailableOutput
40
+ */
41
+ statusCode: number;
42
+ /**
43
+ * Error code.
44
+ * @type {string}
45
+ * @memberof LeadPhoneVerificationUnavailableOutput
46
+ */
47
+ code: string;
48
+ /**
49
+ * Why no code can be sent.
50
+ * @type {LeadPhoneVerificationReason}
51
+ * @memberof LeadPhoneVerificationUnavailableOutput
52
+ */
53
+ reason: LeadPhoneVerificationReason;
54
+ }
55
+
56
+
57
+
58
+ /**
59
+ * Check if a given object implements the LeadPhoneVerificationUnavailableOutput interface.
60
+ */
61
+ export function instanceOfLeadPhoneVerificationUnavailableOutput(value: object): value is LeadPhoneVerificationUnavailableOutput {
62
+ if (!('name' in value) || value['name'] === undefined) return false;
63
+ if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
64
+ if (!('code' in value) || value['code'] === undefined) return false;
65
+ if (!('reason' in value) || value['reason'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function LeadPhoneVerificationUnavailableOutputFromJSON(json: any): LeadPhoneVerificationUnavailableOutput {
70
+ return LeadPhoneVerificationUnavailableOutputFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function LeadPhoneVerificationUnavailableOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadPhoneVerificationUnavailableOutput {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'name': json['name'],
80
+ 'statusCode': json['statusCode'],
81
+ 'code': json['code'],
82
+ 'reason': LeadPhoneVerificationReasonFromJSON(json['reason']),
83
+ };
84
+ }
85
+
86
+ export function LeadPhoneVerificationUnavailableOutputToJSON(json: any): LeadPhoneVerificationUnavailableOutput {
87
+ return LeadPhoneVerificationUnavailableOutputToJSONTyped(json, false);
88
+ }
89
+
90
+ export function LeadPhoneVerificationUnavailableOutputToJSONTyped(value?: LeadPhoneVerificationUnavailableOutput | null, ignoreDiscriminator: boolean = false): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+
95
+ return {
96
+
97
+ 'name': value['name'],
98
+ 'statusCode': value['statusCode'],
99
+ 'code': value['code'],
100
+ 'reason': LeadPhoneVerificationReasonToJSON(value['reason']),
101
+ };
102
+ }
103
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
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 { mapValues } from '../runtime';
16
+ import type { LeadEmailVerificationDto } from './LeadEmailVerificationDto';
17
+ import {
18
+ LeadEmailVerificationDtoFromJSON,
19
+ LeadEmailVerificationDtoFromJSONTyped,
20
+ LeadEmailVerificationDtoToJSON,
21
+ LeadEmailVerificationDtoToJSONTyped,
22
+ } from './LeadEmailVerificationDto';
23
+ import type { LeadPhoneVerificationDto } from './LeadPhoneVerificationDto';
24
+ import {
25
+ LeadPhoneVerificationDtoFromJSON,
26
+ LeadPhoneVerificationDtoFromJSONTyped,
27
+ LeadPhoneVerificationDtoToJSON,
28
+ LeadPhoneVerificationDtoToJSONTyped,
29
+ } from './LeadPhoneVerificationDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface LeadVerificationDto
35
+ */
36
+ export interface LeadVerificationDto {
37
+ /**
38
+ *
39
+ * @type {LeadEmailVerificationDto}
40
+ * @memberof LeadVerificationDto
41
+ */
42
+ email: LeadEmailVerificationDto;
43
+ /**
44
+ *
45
+ * @type {LeadPhoneVerificationDto}
46
+ * @memberof LeadVerificationDto
47
+ */
48
+ phone: LeadPhoneVerificationDto;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the LeadVerificationDto interface.
53
+ */
54
+ export function instanceOfLeadVerificationDto(value: object): value is LeadVerificationDto {
55
+ if (!('email' in value) || value['email'] === undefined) return false;
56
+ if (!('phone' in value) || value['phone'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function LeadVerificationDtoFromJSON(json: any): LeadVerificationDto {
61
+ return LeadVerificationDtoFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function LeadVerificationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadVerificationDto {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'email': LeadEmailVerificationDtoFromJSON(json['email']),
71
+ 'phone': LeadPhoneVerificationDtoFromJSON(json['phone']),
72
+ };
73
+ }
74
+
75
+ export function LeadVerificationDtoToJSON(json: any): LeadVerificationDto {
76
+ return LeadVerificationDtoToJSONTyped(json, false);
77
+ }
78
+
79
+ export function LeadVerificationDtoToJSONTyped(value?: LeadVerificationDto | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'email': LeadEmailVerificationDtoToJSON(value['email']),
87
+ 'phone': LeadPhoneVerificationDtoToJSON(value['phone']),
88
+ };
89
+ }
90
+
@@ -45,6 +45,30 @@ export interface LeadVerificationInput {
45
45
  * @memberof LeadVerificationInput
46
46
  */
47
47
  otpUpperBound?: MoneyDto | null;
48
+ /**
49
+ * Whether the buyer confirms their phone number by WhatsApp or SMS. Null on a domain inherits the account value.
50
+ * @type {boolean}
51
+ * @memberof LeadVerificationInput
52
+ */
53
+ phoneOtp?: boolean | null;
54
+ /**
55
+ * Whether the email code is asked for next to the phone code. Null on a domain inherits the account value.
56
+ * @type {boolean}
57
+ * @memberof LeadVerificationInput
58
+ */
59
+ emailOtpWithPhone?: boolean | null;
60
+ /**
61
+ * Hybrid mode: offers below this amount require the phone code. Null leaves the lower side open on an account, or inherits it on a domain.
62
+ * @type {MoneyDto}
63
+ * @memberof LeadVerificationInput
64
+ */
65
+ phoneOtpLowerBound?: MoneyDto | null;
66
+ /**
67
+ * Hybrid mode: offers above this amount require the phone code. Null leaves the upper side open on an account, or inherits it on a domain.
68
+ * @type {MoneyDto}
69
+ * @memberof LeadVerificationInput
70
+ */
71
+ phoneOtpUpperBound?: MoneyDto | null;
48
72
  }
49
73
 
50
74
 
@@ -79,6 +103,10 @@ export function LeadVerificationInputFromJSONTyped(json: any, ignoreDiscriminato
79
103
  'mode': json['mode'] == null ? undefined : json['mode'],
80
104
  'otpLowerBound': json['otpLowerBound'] == null ? undefined : MoneyDtoFromJSON(json['otpLowerBound']),
81
105
  'otpUpperBound': json['otpUpperBound'] == null ? undefined : MoneyDtoFromJSON(json['otpUpperBound']),
106
+ 'phoneOtp': json['phoneOtp'] == null ? undefined : json['phoneOtp'],
107
+ 'emailOtpWithPhone': json['emailOtpWithPhone'] == null ? undefined : json['emailOtpWithPhone'],
108
+ 'phoneOtpLowerBound': json['phoneOtpLowerBound'] == null ? undefined : MoneyDtoFromJSON(json['phoneOtpLowerBound']),
109
+ 'phoneOtpUpperBound': json['phoneOtpUpperBound'] == null ? undefined : MoneyDtoFromJSON(json['phoneOtpUpperBound']),
82
110
  };
83
111
  }
84
112
 
@@ -96,6 +124,10 @@ export function LeadVerificationInputToJSONTyped(value?: LeadVerificationInput |
96
124
  'mode': value['mode'],
97
125
  'otpLowerBound': MoneyDtoToJSON(value['otpLowerBound']),
98
126
  'otpUpperBound': MoneyDtoToJSON(value['otpUpperBound']),
127
+ 'phoneOtp': value['phoneOtp'],
128
+ 'emailOtpWithPhone': value['emailOtpWithPhone'],
129
+ 'phoneOtpLowerBound': MoneyDtoToJSON(value['phoneOtpLowerBound']),
130
+ 'phoneOtpUpperBound': MoneyDtoToJSON(value['phoneOtpUpperBound']),
99
131
  };
100
132
  }
101
133
 
@@ -45,6 +45,30 @@ export interface LeadVerificationSettingsDto {
45
45
  * @memberof LeadVerificationSettingsDto
46
46
  */
47
47
  otpUpperBound: MoneyDto | null;
48
+ /**
49
+ * Whether the buyer confirms their phone number by WhatsApp or SMS. Null on a domain inherits the account value.
50
+ * @type {boolean}
51
+ * @memberof LeadVerificationSettingsDto
52
+ */
53
+ phoneOtp: boolean | null;
54
+ /**
55
+ * Whether the email code is asked for next to the phone code. Null on a domain inherits the account value.
56
+ * @type {boolean}
57
+ * @memberof LeadVerificationSettingsDto
58
+ */
59
+ emailOtpWithPhone: boolean | null;
60
+ /**
61
+ * Hybrid mode: offers below this amount require the phone code. Null leaves that side open (account) or inherits it (domain).
62
+ * @type {MoneyDto}
63
+ * @memberof LeadVerificationSettingsDto
64
+ */
65
+ phoneOtpLowerBound: MoneyDto | null;
66
+ /**
67
+ * Hybrid mode: offers above this amount require the phone code. Null leaves that side open (account) or inherits it (domain).
68
+ * @type {MoneyDto}
69
+ * @memberof LeadVerificationSettingsDto
70
+ */
71
+ phoneOtpUpperBound: MoneyDto | null;
48
72
  }
49
73
 
50
74
 
@@ -66,6 +90,10 @@ export function instanceOfLeadVerificationSettingsDto(value: object): value is L
66
90
  if (!('mode' in value) || value['mode'] === undefined) return false;
67
91
  if (!('otpLowerBound' in value) || value['otpLowerBound'] === undefined) return false;
68
92
  if (!('otpUpperBound' in value) || value['otpUpperBound'] === undefined) return false;
93
+ if (!('phoneOtp' in value) || value['phoneOtp'] === undefined) return false;
94
+ if (!('emailOtpWithPhone' in value) || value['emailOtpWithPhone'] === undefined) return false;
95
+ if (!('phoneOtpLowerBound' in value) || value['phoneOtpLowerBound'] === undefined) return false;
96
+ if (!('phoneOtpUpperBound' in value) || value['phoneOtpUpperBound'] === undefined) return false;
69
97
  return true;
70
98
  }
71
99
 
@@ -82,6 +110,10 @@ export function LeadVerificationSettingsDtoFromJSONTyped(json: any, ignoreDiscri
82
110
  'mode': json['mode'],
83
111
  'otpLowerBound': MoneyDtoFromJSON(json['otpLowerBound']),
84
112
  'otpUpperBound': MoneyDtoFromJSON(json['otpUpperBound']),
113
+ 'phoneOtp': json['phoneOtp'],
114
+ 'emailOtpWithPhone': json['emailOtpWithPhone'],
115
+ 'phoneOtpLowerBound': MoneyDtoFromJSON(json['phoneOtpLowerBound']),
116
+ 'phoneOtpUpperBound': MoneyDtoFromJSON(json['phoneOtpUpperBound']),
85
117
  };
86
118
  }
87
119
 
@@ -99,6 +131,10 @@ export function LeadVerificationSettingsDtoToJSONTyped(value?: LeadVerificationS
99
131
  'mode': value['mode'],
100
132
  'otpLowerBound': MoneyDtoToJSON(value['otpLowerBound']),
101
133
  'otpUpperBound': MoneyDtoToJSON(value['otpUpperBound']),
134
+ 'phoneOtp': value['phoneOtp'],
135
+ 'emailOtpWithPhone': value['emailOtpWithPhone'],
136
+ 'phoneOtpLowerBound': MoneyDtoToJSON(value['phoneOtpLowerBound']),
137
+ 'phoneOtpUpperBound': MoneyDtoToJSON(value['phoneOtpUpperBound']),
102
138
  };
103
139
  }
104
140
 
@@ -48,6 +48,13 @@ import {
48
48
  MoneyDtoToJSON,
49
49
  MoneyDtoToJSONTyped,
50
50
  } from './MoneyDto';
51
+ import type { LeadPhoneVerificationSummaryDto } from './LeadPhoneVerificationSummaryDto';
52
+ import {
53
+ LeadPhoneVerificationSummaryDtoFromJSON,
54
+ LeadPhoneVerificationSummaryDtoFromJSONTyped,
55
+ LeadPhoneVerificationSummaryDtoToJSON,
56
+ LeadPhoneVerificationSummaryDtoToJSONTyped,
57
+ } from './LeadPhoneVerificationSummaryDto';
51
58
  import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
52
59
  import {
53
60
  LeadRentConfigurationDtoFromJSON,
@@ -220,6 +227,12 @@ export interface ListLeadsResultItem {
220
227
  * @memberof ListLeadsResultItem
221
228
  */
222
229
  awaitingSellerFirstMessage: boolean;
230
+ /**
231
+ * How the buyer phone number was confirmed. Null when the buyer did not confirm a phone code.
232
+ * @type {LeadPhoneVerificationSummaryDto}
233
+ * @memberof ListLeadsResultItem
234
+ */
235
+ phoneVerification: LeadPhoneVerificationSummaryDto | null;
223
236
  /**
224
237
  * Buyer initials derived from the buyer name.
225
238
  * @type {string}
@@ -376,6 +389,7 @@ export function instanceOfListLeadsResultItem(value: object): value is ListLeads
376
389
  if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
377
390
  if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
378
391
  if (!('awaitingSellerFirstMessage' in value) || value['awaitingSellerFirstMessage'] === undefined) return false;
392
+ if (!('phoneVerification' in value) || value['phoneVerification'] === undefined) return false;
379
393
  if (!('buyerInitials' in value) || value['buyerInitials'] === undefined) return false;
380
394
  if (!('buyerIpCountryCode' in value) || value['buyerIpCountryCode'] === undefined) return false;
381
395
  if (!('lastMessageFrom' in value) || value['lastMessageFrom'] === undefined) return false;
@@ -422,6 +436,7 @@ export function ListLeadsResultItemFromJSONTyped(json: any, ignoreDiscriminator:
422
436
  'canBeClosedBySeller': json['canBeClosedBySeller'],
423
437
  'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
424
438
  'awaitingSellerFirstMessage': json['awaitingSellerFirstMessage'],
439
+ 'phoneVerification': LeadPhoneVerificationSummaryDtoFromJSON(json['phoneVerification']),
425
440
  'buyerInitials': json['buyerInitials'],
426
441
  'buyerIpCountryCode': json['buyerIpCountryCode'],
427
442
  'lastMessageFrom': json['lastMessageFrom'],
@@ -469,6 +484,7 @@ export function ListLeadsResultItemToJSONTyped(value?: ListLeadsResultItem | nul
469
484
  'canBeClosedBySeller': value['canBeClosedBySeller'],
470
485
  'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
471
486
  'awaitingSellerFirstMessage': value['awaitingSellerFirstMessage'],
487
+ 'phoneVerification': LeadPhoneVerificationSummaryDtoToJSON(value['phoneVerification']),
472
488
  'buyerInitials': value['buyerInitials'],
473
489
  'buyerIpCountryCode': value['buyerIpCountryCode'],
474
490
  'lastMessageFrom': value['lastMessageFrom'],
@@ -48,6 +48,13 @@ import {
48
48
  IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON,
49
49
  IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped,
50
50
  } from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
51
+ import type { LeadPhoneVerificationSummaryDto } from './LeadPhoneVerificationSummaryDto';
52
+ import {
53
+ LeadPhoneVerificationSummaryDtoFromJSON,
54
+ LeadPhoneVerificationSummaryDtoFromJSONTyped,
55
+ LeadPhoneVerificationSummaryDtoToJSON,
56
+ LeadPhoneVerificationSummaryDtoToJSONTyped,
57
+ } from './LeadPhoneVerificationSummaryDto';
51
58
  import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
52
59
  import {
53
60
  LeadRentConfigurationDtoFromJSON,
@@ -227,6 +234,12 @@ export interface ManualLeadDetails {
227
234
  * @memberof ManualLeadDetails
228
235
  */
229
236
  awaitingSellerFirstMessage: boolean;
237
+ /**
238
+ * How the buyer phone number was confirmed. Null when the buyer did not confirm a phone code.
239
+ * @type {LeadPhoneVerificationSummaryDto}
240
+ * @memberof ManualLeadDetails
241
+ */
242
+ phoneVerification: LeadPhoneVerificationSummaryDto | null;
230
243
  /**
231
244
  * Buyer details for the manually created lead.
232
245
  * @type {ManualLeadBuyerDto}
@@ -323,6 +336,7 @@ export function instanceOfManualLeadDetails(value: object): value is ManualLeadD
323
336
  if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
324
337
  if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
325
338
  if (!('awaitingSellerFirstMessage' in value) || value['awaitingSellerFirstMessage'] === undefined) return false;
339
+ if (!('phoneVerification' in value) || value['phoneVerification'] === undefined) return false;
326
340
  if (!('buyer' in value) || value['buyer'] === undefined) return false;
327
341
  if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined) return false;
328
342
  if (!('brokeredDeal' in value) || value['brokeredDeal'] === undefined) return false;
@@ -363,6 +377,7 @@ export function ManualLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
363
377
  'canBeClosedBySeller': json['canBeClosedBySeller'],
364
378
  'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
365
379
  'awaitingSellerFirstMessage': json['awaitingSellerFirstMessage'],
380
+ 'phoneVerification': LeadPhoneVerificationSummaryDtoFromJSON(json['phoneVerification']),
366
381
  'buyer': ManualLeadBuyerDtoFromJSON(json['buyer']),
367
382
  'domainLockConfiguration': DomainLockConfigurationDtoFromJSON(json['domainLockConfiguration']),
368
383
  'brokeredDeal': LeadBrokeredDealDtoFromJSON(json['brokeredDeal']),
@@ -404,6 +419,7 @@ export function ManualLeadDetailsToJSONTyped(value?: ManualLeadDetails | null, i
404
419
  'canBeClosedBySeller': value['canBeClosedBySeller'],
405
420
  'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
406
421
  'awaitingSellerFirstMessage': value['awaitingSellerFirstMessage'],
422
+ 'phoneVerification': LeadPhoneVerificationSummaryDtoToJSON(value['phoneVerification']),
407
423
  'buyer': ManualLeadBuyerDtoToJSON(value['buyer']),
408
424
  'domainLockConfiguration': DomainLockConfigurationDtoToJSON(value['domainLockConfiguration']),
409
425
  'brokeredDeal': LeadBrokeredDealDtoToJSON(value['brokeredDeal']),
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
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
+
16
+ /**
17
+ * Whether the code is on its way, arrived, or could not arrive.
18
+ * @export
19
+ */
20
+ export const PhoneMessageDeliveryStatus = {
21
+ SENDING: 'sending',
22
+ SENT: 'sent',
23
+ DELIVERED: 'delivered',
24
+ UNDELIVERED: 'undelivered'
25
+ } as const;
26
+ export type PhoneMessageDeliveryStatus = typeof PhoneMessageDeliveryStatus[keyof typeof PhoneMessageDeliveryStatus];
27
+
28
+
29
+ export function instanceOfPhoneMessageDeliveryStatus(value: any): boolean {
30
+ for (const key in PhoneMessageDeliveryStatus) {
31
+ if (Object.prototype.hasOwnProperty.call(PhoneMessageDeliveryStatus, key)) {
32
+ if (PhoneMessageDeliveryStatus[key as keyof typeof PhoneMessageDeliveryStatus] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function PhoneMessageDeliveryStatusFromJSON(json: any): PhoneMessageDeliveryStatus {
41
+ return PhoneMessageDeliveryStatusFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function PhoneMessageDeliveryStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhoneMessageDeliveryStatus {
45
+ return json as PhoneMessageDeliveryStatus;
46
+ }
47
+
48
+ export function PhoneMessageDeliveryStatusToJSON(value?: PhoneMessageDeliveryStatus | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function PhoneMessageDeliveryStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PhoneMessageDeliveryStatus {
53
+ return value as PhoneMessageDeliveryStatus;
54
+ }
55
+