@randock/nameshift-api-client 0.0.537 → 0.0.539

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 (176) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +36 -1
  4. package/dist/apis/AdminApi.js +136 -0
  5. package/dist/apis/BrokeredLeadsApi.d.ts +195 -0
  6. package/dist/apis/BrokeredLeadsApi.js +912 -0
  7. package/dist/apis/BrokeredLeadsPublicApi.d.ts +31 -0
  8. package/dist/apis/BrokeredLeadsPublicApi.js +126 -0
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +2 -0
  11. package/dist/models/AccountBrokerSettingsInput.d.ts +38 -0
  12. package/dist/models/AccountBrokerSettingsInput.js +51 -0
  13. package/dist/models/AccountDto.d.ts +6 -0
  14. package/dist/models/AccountDto.js +4 -0
  15. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +1 -0
  16. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +2 -1
  17. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +1 -0
  18. package/dist/models/AccountNameshiftCommissionItemDto.js +2 -1
  19. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +1 -0
  20. package/dist/models/AccountNameshiftCommissionReasonDto.js +2 -1
  21. package/dist/models/AccountNotificationDto.d.ts +1 -0
  22. package/dist/models/AccountNotificationDto.js +2 -1
  23. package/dist/models/AccountSettingsBrokerDto.d.ts +38 -0
  24. package/dist/models/AccountSettingsBrokerDto.js +55 -0
  25. package/dist/models/AccountSettingsDto.d.ts +7 -0
  26. package/dist/models/AccountSettingsDto.js +5 -0
  27. package/dist/models/AccountSettingsInput.d.ts +7 -0
  28. package/dist/models/AccountSettingsInput.js +3 -0
  29. package/dist/models/AdminBrokeredLeadDto.d.ts +248 -0
  30. package/dist/models/AdminBrokeredLeadDto.js +204 -0
  31. package/dist/models/AdminListBrokeredLeads200Response.d.ts +47 -0
  32. package/dist/models/AdminListBrokeredLeads200Response.js +62 -0
  33. package/dist/models/ApiKeyDto.d.ts +2 -0
  34. package/dist/models/ApiKeyDto.js +2 -0
  35. package/dist/models/ApiKeyScopeDto.d.ts +2 -0
  36. package/dist/models/ApiKeyScopeDto.js +2 -0
  37. package/dist/models/BrokerBrokeredLeadDto.d.ts +189 -0
  38. package/dist/models/BrokerBrokeredLeadDto.js +162 -0
  39. package/dist/models/BrokerCommissionInput.d.ts +52 -0
  40. package/dist/models/BrokerCommissionInput.js +63 -0
  41. package/dist/models/BrokeredLeadBreakdownDto.d.ts +58 -0
  42. package/dist/models/BrokeredLeadBreakdownDto.js +69 -0
  43. package/dist/models/BrokeredLeadBuyerContactDto.d.ts +50 -0
  44. package/dist/models/BrokeredLeadBuyerContactDto.js +63 -0
  45. package/dist/models/BrokeredLeadBuyerInput.d.ts +50 -0
  46. package/dist/models/BrokeredLeadBuyerInput.js +63 -0
  47. package/dist/models/BrokeredLeadCommissionDto.d.ts +71 -0
  48. package/dist/models/BrokeredLeadCommissionDto.js +80 -0
  49. package/dist/models/BrokeredLeadInvitationDto.d.ts +57 -0
  50. package/dist/models/BrokeredLeadInvitationDto.js +68 -0
  51. package/dist/models/BuyerInvoiceDto.d.ts +6 -0
  52. package/dist/models/BuyerInvoiceDto.js +4 -0
  53. package/dist/models/BuyerNotificationDto.d.ts +6 -0
  54. package/dist/models/BuyerNotificationDto.js +7 -1
  55. package/dist/models/BuyerNotificationListItemDto.d.ts +6 -0
  56. package/dist/models/BuyerNotificationListItemDto.js +7 -1
  57. package/dist/models/CommissionDto.d.ts +1 -0
  58. package/dist/models/CommissionDto.js +2 -1
  59. package/dist/models/CommissionPayloadInput.d.ts +1 -0
  60. package/dist/models/CommissionPayloadInput.js +2 -1
  61. package/dist/models/CommissionReasonDto.d.ts +1 -0
  62. package/dist/models/CommissionReasonDto.js +2 -1
  63. package/dist/models/CommissionSimulationItemInput.d.ts +1 -0
  64. package/dist/models/CommissionSimulationItemInput.js +2 -1
  65. package/dist/models/CreateApiKeyInput.d.ts +2 -0
  66. package/dist/models/CreateApiKeyInput.js +2 -0
  67. package/dist/models/CreateBrokeredLeadInput.d.ts +59 -0
  68. package/dist/models/CreateBrokeredLeadInput.js +68 -0
  69. package/dist/models/CreatedApiKeyDto.d.ts +2 -0
  70. package/dist/models/CreatedApiKeyDto.js +2 -0
  71. package/dist/models/CustomerSuccessListAccountDto.d.ts +6 -0
  72. package/dist/models/CustomerSuccessListAccountDto.js +4 -0
  73. package/dist/models/DeclineBrokeredLeadInput.d.ts +32 -0
  74. package/dist/models/DeclineBrokeredLeadInput.js +49 -0
  75. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  76. package/dist/models/FeatureFlagListItemDto.js +1 -0
  77. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +7 -0
  78. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +5 -0
  79. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +1 -1
  80. package/dist/models/InvoiceDto.d.ts +6 -0
  81. package/dist/models/InvoiceDto.js +4 -0
  82. package/dist/models/LeadBrokeredDealDto.d.ts +39 -0
  83. package/dist/models/LeadBrokeredDealDto.js +56 -0
  84. package/dist/models/ListBrokerLeads200Response.d.ts +47 -0
  85. package/dist/models/ListBrokerLeads200Response.js +62 -0
  86. package/dist/models/ListLeadsResultItem.d.ts +7 -0
  87. package/dist/models/ListLeadsResultItem.js +5 -0
  88. package/dist/models/ManualLeadDetails.d.ts +7 -0
  89. package/dist/models/ManualLeadDetails.js +5 -0
  90. package/dist/models/OverrideBrokeredLeadNameshiftCommissionInput.d.ts +38 -0
  91. package/dist/models/OverrideBrokeredLeadNameshiftCommissionInput.js +55 -0
  92. package/dist/models/PrivateAccountGetMeResponse.d.ts +13 -0
  93. package/dist/models/PrivateAccountGetMeResponse.js +9 -0
  94. package/dist/models/RegisterAccountInput.d.ts +6 -0
  95. package/dist/models/RegisterAccountInput.js +2 -0
  96. package/dist/models/SellerBrokeredLeadDto.d.ts +114 -0
  97. package/dist/models/SellerBrokeredLeadDto.js +111 -0
  98. package/dist/models/SellerBrokeredLeadVerificationDto.d.ts +44 -0
  99. package/dist/models/SellerBrokeredLeadVerificationDto.js +59 -0
  100. package/dist/models/SellerInvoiceDto.d.ts +6 -0
  101. package/dist/models/SellerInvoiceDto.js +4 -0
  102. package/dist/models/SimulateCommissionInput.d.ts +1 -0
  103. package/dist/models/SimulateCommissionInput.js +2 -1
  104. package/dist/models/TaskListDomainDto.d.ts +7 -0
  105. package/dist/models/TaskListDomainDto.js +5 -0
  106. package/dist/models/TaskListLeadDto.d.ts +16 -0
  107. package/dist/models/TaskListLeadDto.js +14 -1
  108. package/dist/models/UpdateApiKeyInput.d.ts +2 -0
  109. package/dist/models/UpdateApiKeyInput.js +2 -0
  110. package/dist/models/UserNotificationDto.d.ts +6 -0
  111. package/dist/models/UserNotificationDto.js +7 -1
  112. package/dist/models/UserNotificationListItemDto.d.ts +6 -0
  113. package/dist/models/UserNotificationListItemDto.js +7 -1
  114. package/dist/models/WithSettingsInner.d.ts +11 -4
  115. package/dist/models/WithSettingsInner.js +9 -4
  116. package/dist/models/index.d.ts +18 -0
  117. package/dist/models/index.js +18 -0
  118. package/package.json +1 -1
  119. package/src/apis/AdminApi.ts +145 -0
  120. package/src/apis/BrokeredLeadsApi.ts +740 -0
  121. package/src/apis/BrokeredLeadsPublicApi.ts +69 -0
  122. package/src/apis/index.ts +2 -0
  123. package/src/models/AccountBrokerSettingsInput.ts +73 -0
  124. package/src/models/AccountDto.ts +9 -0
  125. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +2 -1
  126. package/src/models/AccountNameshiftCommissionItemDto.ts +2 -1
  127. package/src/models/AccountNameshiftCommissionReasonDto.ts +2 -1
  128. package/src/models/AccountNotificationDto.ts +2 -1
  129. package/src/models/AccountSettingsBrokerDto.ts +75 -0
  130. package/src/models/AccountSettingsDto.ts +16 -0
  131. package/src/models/AccountSettingsInput.ts +15 -0
  132. package/src/models/AdminBrokeredLeadDto.ts +404 -0
  133. package/src/models/AdminListBrokeredLeads200Response.ts +106 -0
  134. package/src/models/ApiKeyDto.ts +2 -0
  135. package/src/models/ApiKeyScopeDto.ts +2 -0
  136. package/src/models/BrokerBrokeredLeadDto.ts +320 -0
  137. package/src/models/BrokerCommissionInput.ts +93 -0
  138. package/src/models/BrokeredLeadBreakdownDto.ts +117 -0
  139. package/src/models/BrokeredLeadBuyerContactDto.ts +93 -0
  140. package/src/models/BrokeredLeadBuyerInput.ts +93 -0
  141. package/src/models/BrokeredLeadCommissionDto.ts +130 -0
  142. package/src/models/BrokeredLeadInvitationDto.ts +110 -0
  143. package/src/models/BuyerInvoiceDto.ts +9 -0
  144. package/src/models/BuyerNotificationDto.ts +7 -1
  145. package/src/models/BuyerNotificationListItemDto.ts +7 -1
  146. package/src/models/CommissionDto.ts +2 -1
  147. package/src/models/CommissionPayloadInput.ts +2 -1
  148. package/src/models/CommissionReasonDto.ts +2 -1
  149. package/src/models/CommissionSimulationItemInput.ts +2 -1
  150. package/src/models/CreateApiKeyInput.ts +2 -0
  151. package/src/models/CreateBrokeredLeadInput.ts +123 -0
  152. package/src/models/CreatedApiKeyDto.ts +2 -0
  153. package/src/models/CustomerSuccessListAccountDto.ts +9 -0
  154. package/src/models/DeclineBrokeredLeadInput.ts +65 -0
  155. package/src/models/FeatureFlagListItemDto.ts +1 -0
  156. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +10 -0
  157. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +1 -1
  158. package/src/models/InvoiceDto.ts +9 -0
  159. package/src/models/LeadBrokeredDealDto.ts +83 -0
  160. package/src/models/ListBrokerLeads200Response.ts +106 -0
  161. package/src/models/ListLeadsResultItem.ts +16 -0
  162. package/src/models/ManualLeadDetails.ts +16 -0
  163. package/src/models/OverrideBrokeredLeadNameshiftCommissionInput.ts +75 -0
  164. package/src/models/PrivateAccountGetMeResponse.ts +19 -0
  165. package/src/models/RegisterAccountInput.ts +8 -0
  166. package/src/models/SellerBrokeredLeadDto.ts +215 -0
  167. package/src/models/SellerBrokeredLeadVerificationDto.ts +84 -0
  168. package/src/models/SellerInvoiceDto.ts +9 -0
  169. package/src/models/SimulateCommissionInput.ts +2 -1
  170. package/src/models/TaskListDomainDto.ts +17 -0
  171. package/src/models/TaskListLeadDto.ts +20 -0
  172. package/src/models/UpdateApiKeyInput.ts +2 -0
  173. package/src/models/UserNotificationDto.ts +7 -1
  174. package/src/models/UserNotificationListItemDto.ts +7 -1
  175. package/src/models/WithSettingsInner.ts +44 -28
  176. package/src/models/index.ts +18 -0
@@ -0,0 +1,189 @@
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 { BrokeredLeadCommissionDto } from './BrokeredLeadCommissionDto';
13
+ import type { MoneyDto } from './MoneyDto';
14
+ import type { MoneyDecimalDto } from './MoneyDecimalDto';
15
+ import type { BrokeredLeadBuyerContactDto } from './BrokeredLeadBuyerContactDto';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BrokerBrokeredLeadDto
20
+ */
21
+ export interface BrokerBrokeredLeadDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof BrokerBrokeredLeadDto
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof BrokerBrokeredLeadDto
32
+ */
33
+ domainName: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof BrokerBrokeredLeadDto
38
+ */
39
+ status: BrokerBrokeredLeadDtoStatusEnum;
40
+ /**
41
+ *
42
+ * @type {MoneyDto}
43
+ * @memberof BrokerBrokeredLeadDto
44
+ */
45
+ askingPrice: MoneyDto;
46
+ /**
47
+ *
48
+ * @type {BrokeredLeadCommissionDto}
49
+ * @memberof BrokerBrokeredLeadDto
50
+ */
51
+ commission: BrokeredLeadCommissionDto;
52
+ /**
53
+ * Nameshift platform fee charged to the broker, as a percentage of the sale price.
54
+ * @type {number}
55
+ * @memberof BrokerBrokeredLeadDto
56
+ */
57
+ nameshiftCommissionPercentage: number;
58
+ /**
59
+ *
60
+ * @type {MoneyDecimalDto}
61
+ * @memberof BrokerBrokeredLeadDto
62
+ */
63
+ nameshiftFee: MoneyDecimalDto;
64
+ /**
65
+ * What the broker is paid: the commission less the fee.
66
+ * @type {MoneyDecimalDto}
67
+ * @memberof BrokerBrokeredLeadDto
68
+ */
69
+ netPayout: MoneyDecimalDto;
70
+ /**
71
+ *
72
+ * @type {BrokeredLeadBuyerContactDto}
73
+ * @memberof BrokerBrokeredLeadDto
74
+ */
75
+ buyer: BrokeredLeadBuyerContactDto;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof BrokerBrokeredLeadDto
80
+ */
81
+ sellerEmail: string | null;
82
+ /**
83
+ * Whether the deal waits in a seller account: the one that verified the domain, or the one that took up the link.
84
+ * @type {boolean}
85
+ * @memberof BrokerBrokeredLeadDto
86
+ */
87
+ sellerLinked: boolean;
88
+ /**
89
+ * The link for a seller who has not taken up the deal yet, while it is valid: a new seller signs up through it, one with an account takes it up.
90
+ * @type {string}
91
+ * @memberof BrokerBrokeredLeadDto
92
+ */
93
+ sellerSignupUrl: string | null;
94
+ /**
95
+ *
96
+ * @type {Date}
97
+ * @memberof BrokerBrokeredLeadDto
98
+ */
99
+ sellerSignupUrlExpiresAt: Date | null;
100
+ /**
101
+ * Where a seller with an account reviews the deal.
102
+ * @type {string}
103
+ * @memberof BrokerBrokeredLeadDto
104
+ */
105
+ sellerReviewUrl: string | null;
106
+ /**
107
+ * Where the buyer pays, once the deal is ready for payment.
108
+ * @type {string}
109
+ * @memberof BrokerBrokeredLeadDto
110
+ */
111
+ paymentUrl: string | null;
112
+ /**
113
+ *
114
+ * @type {Date}
115
+ * @memberof BrokerBrokeredLeadDto
116
+ */
117
+ sellerNotifiedAt: Date | null;
118
+ /**
119
+ * When the seller can be emailed again.
120
+ * @type {Date}
121
+ * @memberof BrokerBrokeredLeadDto
122
+ */
123
+ nextSellerNotificationAt: Date | null;
124
+ /**
125
+ *
126
+ * @type {boolean}
127
+ * @memberof BrokerBrokeredLeadDto
128
+ */
129
+ canNotifySeller: boolean;
130
+ /**
131
+ *
132
+ * @type {Date}
133
+ * @memberof BrokerBrokeredLeadDto
134
+ */
135
+ buyerNotifiedAt: Date | null;
136
+ /**
137
+ * When the buyer can be emailed again.
138
+ * @type {Date}
139
+ * @memberof BrokerBrokeredLeadDto
140
+ */
141
+ nextBuyerNotificationAt: Date | null;
142
+ /**
143
+ *
144
+ * @type {boolean}
145
+ * @memberof BrokerBrokeredLeadDto
146
+ */
147
+ canNotifyBuyer: boolean;
148
+ /**
149
+ *
150
+ * @type {string}
151
+ * @memberof BrokerBrokeredLeadDto
152
+ */
153
+ declineReason: string | null;
154
+ /**
155
+ *
156
+ * @type {Date}
157
+ * @memberof BrokerBrokeredLeadDto
158
+ */
159
+ createdAt: Date;
160
+ /**
161
+ *
162
+ * @type {Date}
163
+ * @memberof BrokerBrokeredLeadDto
164
+ */
165
+ updatedAt: Date;
166
+ }
167
+ /**
168
+ * @export
169
+ */
170
+ export declare const BrokerBrokeredLeadDtoStatusEnum: {
171
+ readonly PENDING_SELLER: "pending_seller";
172
+ readonly PENDING_SELLER_VERIFICATION: "pending_seller_verification";
173
+ readonly AWAITING_PAYMENT: "awaiting_payment";
174
+ readonly PAYMENT_EXPIRED: "payment_expired";
175
+ readonly TRANSFER_IN_PROGRESS: "transfer_in_progress";
176
+ readonly COMPLETED: "completed";
177
+ readonly CLOSED: "closed";
178
+ readonly DECLINED: "declined";
179
+ readonly CANCELLED: "cancelled";
180
+ };
181
+ export type BrokerBrokeredLeadDtoStatusEnum = typeof BrokerBrokeredLeadDtoStatusEnum[keyof typeof BrokerBrokeredLeadDtoStatusEnum];
182
+ /**
183
+ * Check if a given object implements the BrokerBrokeredLeadDto interface.
184
+ */
185
+ export declare function instanceOfBrokerBrokeredLeadDto(value: object): value is BrokerBrokeredLeadDto;
186
+ export declare function BrokerBrokeredLeadDtoFromJSON(json: any): BrokerBrokeredLeadDto;
187
+ export declare function BrokerBrokeredLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrokerBrokeredLeadDto;
188
+ export declare function BrokerBrokeredLeadDtoToJSON(json: any): BrokerBrokeredLeadDto;
189
+ export declare function BrokerBrokeredLeadDtoToJSONTyped(value?: BrokerBrokeredLeadDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,162 @@
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.BrokerBrokeredLeadDtoStatusEnum = void 0;
17
+ exports.instanceOfBrokerBrokeredLeadDto = instanceOfBrokerBrokeredLeadDto;
18
+ exports.BrokerBrokeredLeadDtoFromJSON = BrokerBrokeredLeadDtoFromJSON;
19
+ exports.BrokerBrokeredLeadDtoFromJSONTyped = BrokerBrokeredLeadDtoFromJSONTyped;
20
+ exports.BrokerBrokeredLeadDtoToJSON = BrokerBrokeredLeadDtoToJSON;
21
+ exports.BrokerBrokeredLeadDtoToJSONTyped = BrokerBrokeredLeadDtoToJSONTyped;
22
+ var BrokeredLeadCommissionDto_1 = require("./BrokeredLeadCommissionDto");
23
+ var MoneyDto_1 = require("./MoneyDto");
24
+ var MoneyDecimalDto_1 = require("./MoneyDecimalDto");
25
+ var BrokeredLeadBuyerContactDto_1 = require("./BrokeredLeadBuyerContactDto");
26
+ /**
27
+ * @export
28
+ */
29
+ exports.BrokerBrokeredLeadDtoStatusEnum = {
30
+ PENDING_SELLER: 'pending_seller',
31
+ PENDING_SELLER_VERIFICATION: 'pending_seller_verification',
32
+ AWAITING_PAYMENT: 'awaiting_payment',
33
+ PAYMENT_EXPIRED: 'payment_expired',
34
+ TRANSFER_IN_PROGRESS: 'transfer_in_progress',
35
+ COMPLETED: 'completed',
36
+ CLOSED: 'closed',
37
+ DECLINED: 'declined',
38
+ CANCELLED: 'cancelled'
39
+ };
40
+ /**
41
+ * Check if a given object implements the BrokerBrokeredLeadDto interface.
42
+ */
43
+ function instanceOfBrokerBrokeredLeadDto(value) {
44
+ if (!('id' in value) || value['id'] === undefined)
45
+ return false;
46
+ if (!('domainName' in value) || value['domainName'] === undefined)
47
+ return false;
48
+ if (!('status' in value) || value['status'] === undefined)
49
+ return false;
50
+ if (!('askingPrice' in value) || value['askingPrice'] === undefined)
51
+ return false;
52
+ if (!('commission' in value) || value['commission'] === undefined)
53
+ return false;
54
+ if (!('nameshiftCommissionPercentage' in value) || value['nameshiftCommissionPercentage'] === undefined)
55
+ return false;
56
+ if (!('nameshiftFee' in value) || value['nameshiftFee'] === undefined)
57
+ return false;
58
+ if (!('netPayout' in value) || value['netPayout'] === undefined)
59
+ return false;
60
+ if (!('buyer' in value) || value['buyer'] === undefined)
61
+ return false;
62
+ if (!('sellerEmail' in value) || value['sellerEmail'] === undefined)
63
+ return false;
64
+ if (!('sellerLinked' in value) || value['sellerLinked'] === undefined)
65
+ return false;
66
+ if (!('sellerSignupUrl' in value) || value['sellerSignupUrl'] === undefined)
67
+ return false;
68
+ if (!('sellerSignupUrlExpiresAt' in value) || value['sellerSignupUrlExpiresAt'] === undefined)
69
+ return false;
70
+ if (!('sellerReviewUrl' in value) || value['sellerReviewUrl'] === undefined)
71
+ return false;
72
+ if (!('paymentUrl' in value) || value['paymentUrl'] === undefined)
73
+ return false;
74
+ if (!('sellerNotifiedAt' in value) || value['sellerNotifiedAt'] === undefined)
75
+ return false;
76
+ if (!('nextSellerNotificationAt' in value) || value['nextSellerNotificationAt'] === undefined)
77
+ return false;
78
+ if (!('canNotifySeller' in value) || value['canNotifySeller'] === undefined)
79
+ return false;
80
+ if (!('buyerNotifiedAt' in value) || value['buyerNotifiedAt'] === undefined)
81
+ return false;
82
+ if (!('nextBuyerNotificationAt' in value) || value['nextBuyerNotificationAt'] === undefined)
83
+ return false;
84
+ if (!('canNotifyBuyer' in value) || value['canNotifyBuyer'] === undefined)
85
+ return false;
86
+ if (!('declineReason' in value) || value['declineReason'] === undefined)
87
+ return false;
88
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
89
+ return false;
90
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
91
+ return false;
92
+ return true;
93
+ }
94
+ function BrokerBrokeredLeadDtoFromJSON(json) {
95
+ return BrokerBrokeredLeadDtoFromJSONTyped(json, false);
96
+ }
97
+ function BrokerBrokeredLeadDtoFromJSONTyped(json, ignoreDiscriminator) {
98
+ if (json == null) {
99
+ return json;
100
+ }
101
+ return {
102
+ 'id': json['id'],
103
+ 'domainName': json['domainName'],
104
+ 'status': json['status'],
105
+ 'askingPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['askingPrice']),
106
+ 'commission': (0, BrokeredLeadCommissionDto_1.BrokeredLeadCommissionDtoFromJSON)(json['commission']),
107
+ 'nameshiftCommissionPercentage': json['nameshiftCommissionPercentage'],
108
+ 'nameshiftFee': (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['nameshiftFee']),
109
+ 'netPayout': (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['netPayout']),
110
+ 'buyer': (0, BrokeredLeadBuyerContactDto_1.BrokeredLeadBuyerContactDtoFromJSON)(json['buyer']),
111
+ 'sellerEmail': json['sellerEmail'],
112
+ 'sellerLinked': json['sellerLinked'],
113
+ 'sellerSignupUrl': json['sellerSignupUrl'],
114
+ 'sellerSignupUrlExpiresAt': (json['sellerSignupUrlExpiresAt'] == null ? null : new Date(json['sellerSignupUrlExpiresAt'])),
115
+ 'sellerReviewUrl': json['sellerReviewUrl'],
116
+ 'paymentUrl': json['paymentUrl'],
117
+ 'sellerNotifiedAt': (json['sellerNotifiedAt'] == null ? null : new Date(json['sellerNotifiedAt'])),
118
+ 'nextSellerNotificationAt': (json['nextSellerNotificationAt'] == null ? null : new Date(json['nextSellerNotificationAt'])),
119
+ 'canNotifySeller': json['canNotifySeller'],
120
+ 'buyerNotifiedAt': (json['buyerNotifiedAt'] == null ? null : new Date(json['buyerNotifiedAt'])),
121
+ 'nextBuyerNotificationAt': (json['nextBuyerNotificationAt'] == null ? null : new Date(json['nextBuyerNotificationAt'])),
122
+ 'canNotifyBuyer': json['canNotifyBuyer'],
123
+ 'declineReason': json['declineReason'],
124
+ 'createdAt': (new Date(json['createdAt'])),
125
+ 'updatedAt': (new Date(json['updatedAt'])),
126
+ };
127
+ }
128
+ function BrokerBrokeredLeadDtoToJSON(json) {
129
+ return BrokerBrokeredLeadDtoToJSONTyped(json, false);
130
+ }
131
+ function BrokerBrokeredLeadDtoToJSONTyped(value, ignoreDiscriminator) {
132
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
133
+ if (value == null) {
134
+ return value;
135
+ }
136
+ return {
137
+ 'id': value['id'],
138
+ 'domainName': value['domainName'],
139
+ 'status': value['status'],
140
+ 'askingPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['askingPrice']),
141
+ 'commission': (0, BrokeredLeadCommissionDto_1.BrokeredLeadCommissionDtoToJSON)(value['commission']),
142
+ 'nameshiftCommissionPercentage': value['nameshiftCommissionPercentage'],
143
+ 'nameshiftFee': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['nameshiftFee']),
144
+ 'netPayout': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['netPayout']),
145
+ 'buyer': (0, BrokeredLeadBuyerContactDto_1.BrokeredLeadBuyerContactDtoToJSON)(value['buyer']),
146
+ 'sellerEmail': value['sellerEmail'],
147
+ 'sellerLinked': value['sellerLinked'],
148
+ 'sellerSignupUrl': value['sellerSignupUrl'],
149
+ 'sellerSignupUrlExpiresAt': (value['sellerSignupUrlExpiresAt'] == null ? null : value['sellerSignupUrlExpiresAt'].toISOString()),
150
+ 'sellerReviewUrl': value['sellerReviewUrl'],
151
+ 'paymentUrl': value['paymentUrl'],
152
+ 'sellerNotifiedAt': (value['sellerNotifiedAt'] == null ? null : value['sellerNotifiedAt'].toISOString()),
153
+ 'nextSellerNotificationAt': (value['nextSellerNotificationAt'] == null ? null : value['nextSellerNotificationAt'].toISOString()),
154
+ 'canNotifySeller': value['canNotifySeller'],
155
+ 'buyerNotifiedAt': (value['buyerNotifiedAt'] == null ? null : value['buyerNotifiedAt'].toISOString()),
156
+ 'nextBuyerNotificationAt': (value['nextBuyerNotificationAt'] == null ? null : value['nextBuyerNotificationAt'].toISOString()),
157
+ 'canNotifyBuyer': value['canNotifyBuyer'],
158
+ 'declineReason': value['declineReason'],
159
+ 'createdAt': ((value['createdAt']).toISOString()),
160
+ 'updatedAt': ((value['updatedAt']).toISOString()),
161
+ };
162
+ }
@@ -0,0 +1,52 @@
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 BrokerCommissionInput
16
+ */
17
+ export interface BrokerCommissionInput {
18
+ /**
19
+ * Whether the values are percentages of the sale price or fixed amounts in its currency.
20
+ * @type {string}
21
+ * @memberof BrokerCommissionInput
22
+ */
23
+ type: BrokerCommissionInputTypeEnum;
24
+ /**
25
+ * Commission charged to the buyer, on top of the sale price. Null or 0 charges the buyer nothing.
26
+ * @type {number}
27
+ * @memberof BrokerCommissionInput
28
+ */
29
+ buyerValue?: number | null;
30
+ /**
31
+ * Commission charged to the seller, deducted from the proceeds. Null or 0 charges the seller nothing.
32
+ * @type {number}
33
+ * @memberof BrokerCommissionInput
34
+ */
35
+ sellerValue?: number | null;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const BrokerCommissionInputTypeEnum: {
41
+ readonly FIXED: "fixed";
42
+ readonly PERCENTAGE: "percentage";
43
+ };
44
+ export type BrokerCommissionInputTypeEnum = typeof BrokerCommissionInputTypeEnum[keyof typeof BrokerCommissionInputTypeEnum];
45
+ /**
46
+ * Check if a given object implements the BrokerCommissionInput interface.
47
+ */
48
+ export declare function instanceOfBrokerCommissionInput(value: object): value is BrokerCommissionInput;
49
+ export declare function BrokerCommissionInputFromJSON(json: any): BrokerCommissionInput;
50
+ export declare function BrokerCommissionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrokerCommissionInput;
51
+ export declare function BrokerCommissionInputToJSON(json: any): BrokerCommissionInput;
52
+ export declare function BrokerCommissionInputToJSONTyped(value?: BrokerCommissionInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.BrokerCommissionInputTypeEnum = void 0;
17
+ exports.instanceOfBrokerCommissionInput = instanceOfBrokerCommissionInput;
18
+ exports.BrokerCommissionInputFromJSON = BrokerCommissionInputFromJSON;
19
+ exports.BrokerCommissionInputFromJSONTyped = BrokerCommissionInputFromJSONTyped;
20
+ exports.BrokerCommissionInputToJSON = BrokerCommissionInputToJSON;
21
+ exports.BrokerCommissionInputToJSONTyped = BrokerCommissionInputToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.BrokerCommissionInputTypeEnum = {
26
+ FIXED: 'fixed',
27
+ PERCENTAGE: 'percentage'
28
+ };
29
+ /**
30
+ * Check if a given object implements the BrokerCommissionInput interface.
31
+ */
32
+ function instanceOfBrokerCommissionInput(value) {
33
+ if (!('type' in value) || value['type'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function BrokerCommissionInputFromJSON(json) {
38
+ return BrokerCommissionInputFromJSONTyped(json, false);
39
+ }
40
+ function BrokerCommissionInputFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'type': json['type'],
46
+ 'buyerValue': json['buyerValue'] == null ? undefined : json['buyerValue'],
47
+ 'sellerValue': json['sellerValue'] == null ? undefined : json['sellerValue'],
48
+ };
49
+ }
50
+ function BrokerCommissionInputToJSON(json) {
51
+ return BrokerCommissionInputToJSONTyped(json, false);
52
+ }
53
+ function BrokerCommissionInputToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'type': value['type'],
60
+ 'buyerValue': value['buyerValue'],
61
+ 'sellerValue': value['sellerValue'],
62
+ };
63
+ }
@@ -0,0 +1,58 @@
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 { BrokeredLeadCommissionDto } from './BrokeredLeadCommissionDto';
13
+ import type { MoneyDecimalDto } from './MoneyDecimalDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface BrokeredLeadBreakdownDto
18
+ */
19
+ export interface BrokeredLeadBreakdownDto {
20
+ /**
21
+ * The sale price the buyer and the seller agreed to.
22
+ * @type {MoneyDecimalDto}
23
+ * @memberof BrokeredLeadBreakdownDto
24
+ */
25
+ salePrice: MoneyDecimalDto;
26
+ /**
27
+ * What the buyer pays, before taxes.
28
+ * @type {MoneyDecimalDto}
29
+ * @memberof BrokeredLeadBreakdownDto
30
+ */
31
+ buyerPays: MoneyDecimalDto;
32
+ /**
33
+ * What the seller receives.
34
+ * @type {MoneyDecimalDto}
35
+ * @memberof BrokeredLeadBreakdownDto
36
+ */
37
+ sellerReceives: MoneyDecimalDto;
38
+ /**
39
+ * The broker commission on both sides together.
40
+ * @type {MoneyDecimalDto}
41
+ * @memberof BrokeredLeadBreakdownDto
42
+ */
43
+ brokerReceives: MoneyDecimalDto;
44
+ /**
45
+ *
46
+ * @type {BrokeredLeadCommissionDto}
47
+ * @memberof BrokeredLeadBreakdownDto
48
+ */
49
+ commission: BrokeredLeadCommissionDto;
50
+ }
51
+ /**
52
+ * Check if a given object implements the BrokeredLeadBreakdownDto interface.
53
+ */
54
+ export declare function instanceOfBrokeredLeadBreakdownDto(value: object): value is BrokeredLeadBreakdownDto;
55
+ export declare function BrokeredLeadBreakdownDtoFromJSON(json: any): BrokeredLeadBreakdownDto;
56
+ export declare function BrokeredLeadBreakdownDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrokeredLeadBreakdownDto;
57
+ export declare function BrokeredLeadBreakdownDtoToJSON(json: any): BrokeredLeadBreakdownDto;
58
+ export declare function BrokeredLeadBreakdownDtoToJSONTyped(value?: BrokeredLeadBreakdownDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,69 @@
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.instanceOfBrokeredLeadBreakdownDto = instanceOfBrokeredLeadBreakdownDto;
17
+ exports.BrokeredLeadBreakdownDtoFromJSON = BrokeredLeadBreakdownDtoFromJSON;
18
+ exports.BrokeredLeadBreakdownDtoFromJSONTyped = BrokeredLeadBreakdownDtoFromJSONTyped;
19
+ exports.BrokeredLeadBreakdownDtoToJSON = BrokeredLeadBreakdownDtoToJSON;
20
+ exports.BrokeredLeadBreakdownDtoToJSONTyped = BrokeredLeadBreakdownDtoToJSONTyped;
21
+ var BrokeredLeadCommissionDto_1 = require("./BrokeredLeadCommissionDto");
22
+ var MoneyDecimalDto_1 = require("./MoneyDecimalDto");
23
+ /**
24
+ * Check if a given object implements the BrokeredLeadBreakdownDto interface.
25
+ */
26
+ function instanceOfBrokeredLeadBreakdownDto(value) {
27
+ if (!('salePrice' in value) || value['salePrice'] === undefined)
28
+ return false;
29
+ if (!('buyerPays' in value) || value['buyerPays'] === undefined)
30
+ return false;
31
+ if (!('sellerReceives' in value) || value['sellerReceives'] === undefined)
32
+ return false;
33
+ if (!('brokerReceives' in value) || value['brokerReceives'] === undefined)
34
+ return false;
35
+ if (!('commission' in value) || value['commission'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function BrokeredLeadBreakdownDtoFromJSON(json) {
40
+ return BrokeredLeadBreakdownDtoFromJSONTyped(json, false);
41
+ }
42
+ function BrokeredLeadBreakdownDtoFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'salePrice': (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['salePrice']),
48
+ 'buyerPays': (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['buyerPays']),
49
+ 'sellerReceives': (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['sellerReceives']),
50
+ 'brokerReceives': (0, MoneyDecimalDto_1.MoneyDecimalDtoFromJSON)(json['brokerReceives']),
51
+ 'commission': (0, BrokeredLeadCommissionDto_1.BrokeredLeadCommissionDtoFromJSON)(json['commission']),
52
+ };
53
+ }
54
+ function BrokeredLeadBreakdownDtoToJSON(json) {
55
+ return BrokeredLeadBreakdownDtoToJSONTyped(json, false);
56
+ }
57
+ function BrokeredLeadBreakdownDtoToJSONTyped(value, ignoreDiscriminator) {
58
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'salePrice': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['salePrice']),
64
+ 'buyerPays': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['buyerPays']),
65
+ 'sellerReceives': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['sellerReceives']),
66
+ 'brokerReceives': (0, MoneyDecimalDto_1.MoneyDecimalDtoToJSON)(value['brokerReceives']),
67
+ 'commission': (0, BrokeredLeadCommissionDto_1.BrokeredLeadCommissionDtoToJSON)(value['commission']),
68
+ };
69
+ }
@@ -0,0 +1,50 @@
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 BrokeredLeadBuyerContactDto
16
+ */
17
+ export interface BrokeredLeadBuyerContactDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BrokeredLeadBuyerContactDto
22
+ */
23
+ email: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BrokeredLeadBuyerContactDto
28
+ */
29
+ firstname: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BrokeredLeadBuyerContactDto
34
+ */
35
+ lastname: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof BrokeredLeadBuyerContactDto
40
+ */
41
+ locale: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the BrokeredLeadBuyerContactDto interface.
45
+ */
46
+ export declare function instanceOfBrokeredLeadBuyerContactDto(value: object): value is BrokeredLeadBuyerContactDto;
47
+ export declare function BrokeredLeadBuyerContactDtoFromJSON(json: any): BrokeredLeadBuyerContactDto;
48
+ export declare function BrokeredLeadBuyerContactDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrokeredLeadBuyerContactDto;
49
+ export declare function BrokeredLeadBuyerContactDtoToJSON(json: any): BrokeredLeadBuyerContactDto;
50
+ export declare function BrokeredLeadBuyerContactDtoToJSONTyped(value?: BrokeredLeadBuyerContactDto | null, ignoreDiscriminator?: boolean): any;