@randock/nameshift-api-client 0.0.473 → 0.0.475

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 (131) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +57 -1
  4. package/dist/apis/AdminApi.js +230 -0
  5. package/dist/apis/BuyersApi.d.ts +2 -2
  6. package/dist/apis/BuyersApi.js +2 -2
  7. package/dist/apis/BuyersPublicApi.d.ts +2 -2
  8. package/dist/apis/BuyersPublicApi.js +2 -2
  9. package/dist/apis/CustomerSuccessApi.d.ts +57 -1
  10. package/dist/apis/CustomerSuccessApi.js +230 -0
  11. package/dist/apis/LeadsPublicApi.d.ts +1 -0
  12. package/dist/apis/LeadsPublicApi.js +3 -0
  13. package/dist/models/AccountNoteAuthorDto.d.ts +50 -0
  14. package/dist/models/AccountNoteAuthorDto.js +63 -0
  15. package/dist/models/AccountNoteDto.d.ts +63 -0
  16. package/dist/models/AccountNoteDto.js +72 -0
  17. package/dist/models/AccountNoteListDto.d.ts +33 -0
  18. package/dist/models/AccountNoteListDto.js +52 -0
  19. package/dist/models/AccountSettingsDto.d.ts +7 -0
  20. package/dist/models/AccountSettingsDto.js +5 -0
  21. package/dist/models/AccountSettingsInput.d.ts +7 -0
  22. package/dist/models/AccountSettingsInput.js +3 -0
  23. package/dist/models/AdminDomainListItemDto.d.ts +7 -0
  24. package/dist/models/AdminDomainListItemDto.js +5 -0
  25. package/dist/models/AdminLeadListItemDto.d.ts +1 -0
  26. package/dist/models/AdminLeadListItemDto.js +1 -0
  27. package/dist/models/AdminListAccountDto.d.ts +12 -0
  28. package/dist/models/AdminListAccountDto.js +8 -0
  29. package/dist/models/BuyerLeadListItemDto.d.ts +1 -0
  30. package/dist/models/BuyerLeadListItemDto.js +1 -0
  31. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  32. package/dist/models/BuyerNotificationDto.js +1 -0
  33. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  34. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  35. package/dist/models/CreateAccountNoteInput.d.ts +32 -0
  36. package/dist/models/CreateAccountNoteInput.js +51 -0
  37. package/dist/models/CustomerSuccessDomainListItemDto.d.ts +7 -0
  38. package/dist/models/CustomerSuccessDomainListItemDto.js +5 -0
  39. package/dist/models/CustomerSuccessListAccountDto.d.ts +12 -0
  40. package/dist/models/CustomerSuccessListAccountDto.js +8 -0
  41. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  42. package/dist/models/FeatureFlagListItemDto.js +2 -1
  43. package/dist/models/ForbiddenException.d.ts +44 -0
  44. package/dist/models/ForbiddenException.js +59 -0
  45. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  46. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  47. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +7 -0
  48. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +5 -0
  49. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
  50. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
  51. package/dist/models/IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto.d.ts +7 -0
  52. package/dist/models/IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto.js +5 -0
  53. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +1 -0
  54. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +1 -0
  55. package/dist/models/LeadDto.d.ts +1 -0
  56. package/dist/models/LeadDto.js +1 -0
  57. package/dist/models/LeadStatusDto.d.ts +1 -0
  58. package/dist/models/LeadStatusDto.js +1 -0
  59. package/dist/models/LeadVerificationInput.d.ts +54 -0
  60. package/dist/models/LeadVerificationInput.js +63 -0
  61. package/dist/models/LeadVerificationSettingsDto.d.ts +54 -0
  62. package/dist/models/LeadVerificationSettingsDto.js +69 -0
  63. package/dist/models/ListLeadsResultItem.d.ts +1 -0
  64. package/dist/models/ListLeadsResultItem.js +1 -0
  65. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  66. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  67. package/dist/models/PublicLeadDto.d.ts +1 -0
  68. package/dist/models/PublicLeadDto.js +1 -0
  69. package/dist/models/RelatedLeadDto.d.ts +1 -0
  70. package/dist/models/RelatedLeadDto.js +1 -0
  71. package/dist/models/SellerLeadDetails.d.ts +1 -0
  72. package/dist/models/SellerLeadDetails.js +1 -0
  73. package/dist/models/SubscriptionDto.d.ts +1 -0
  74. package/dist/models/SubscriptionDto.js +1 -0
  75. package/dist/models/UpdateAccountNoteInput.d.ts +32 -0
  76. package/dist/models/UpdateAccountNoteInput.js +51 -0
  77. package/dist/models/UpdateDomainInput.d.ts +7 -0
  78. package/dist/models/UpdateDomainInput.js +3 -0
  79. package/dist/models/UserNotificationDto.d.ts +1 -0
  80. package/dist/models/UserNotificationDto.js +1 -0
  81. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  82. package/dist/models/UserNotificationListItemDto.js +1 -0
  83. package/dist/models/WithSettingsInner.d.ts +7 -0
  84. package/dist/models/WithSettingsInner.js +5 -0
  85. package/dist/models/index.d.ts +8 -0
  86. package/dist/models/index.js +8 -0
  87. package/package.json +1 -1
  88. package/src/apis/AccountsApi.ts +3 -0
  89. package/src/apis/AdminApi.ts +235 -0
  90. package/src/apis/BuyersApi.ts +5 -2
  91. package/src/apis/BuyersPublicApi.ts +2 -2
  92. package/src/apis/CustomerSuccessApi.ts +238 -0
  93. package/src/apis/DomainsApi.ts +3 -0
  94. package/src/apis/LeadsPublicApi.ts +5 -0
  95. package/src/models/AccountNoteAuthorDto.ts +93 -0
  96. package/src/models/AccountNoteDto.ts +119 -0
  97. package/src/models/AccountNoteListDto.ts +74 -0
  98. package/src/models/AccountSettingsDto.ts +16 -0
  99. package/src/models/AccountSettingsInput.ts +15 -0
  100. package/src/models/AdminDomainListItemDto.ts +16 -0
  101. package/src/models/AdminLeadListItemDto.ts +1 -0
  102. package/src/models/AdminListAccountDto.ts +18 -0
  103. package/src/models/BuyerLeadListItemDto.ts +1 -0
  104. package/src/models/BuyerNotificationDto.ts +1 -0
  105. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  106. package/src/models/CreateAccountNoteInput.ts +66 -0
  107. package/src/models/CustomerSuccessDomainListItemDto.ts +16 -0
  108. package/src/models/CustomerSuccessListAccountDto.ts +18 -0
  109. package/src/models/FeatureFlagListItemDto.ts +2 -1
  110. package/src/models/ForbiddenException.ts +84 -0
  111. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  112. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +16 -0
  113. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
  114. package/src/models/IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto.ts +16 -0
  115. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +1 -0
  116. package/src/models/LeadDto.ts +1 -0
  117. package/src/models/LeadStatusDto.ts +1 -0
  118. package/src/models/LeadVerificationInput.ts +101 -0
  119. package/src/models/LeadVerificationSettingsDto.ts +104 -0
  120. package/src/models/ListLeadsResultItem.ts +1 -0
  121. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  122. package/src/models/PublicLeadDto.ts +1 -0
  123. package/src/models/RelatedLeadDto.ts +1 -0
  124. package/src/models/SellerLeadDetails.ts +1 -0
  125. package/src/models/SubscriptionDto.ts +1 -0
  126. package/src/models/UpdateAccountNoteInput.ts +66 -0
  127. package/src/models/UpdateDomainInput.ts +15 -0
  128. package/src/models/UserNotificationDto.ts +1 -0
  129. package/src/models/UserNotificationListItemDto.ts +1 -0
  130. package/src/models/WithSettingsInner.ts +16 -0
  131. package/src/models/index.ts +8 -0
@@ -75,6 +75,120 @@ var CustomerSuccessApi = /** @class */ (function (_super) {
75
75
  function CustomerSuccessApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ * Adds a private note to a seller account.
80
+ * Create account note
81
+ */
82
+ CustomerSuccessApi.prototype.createCustomerSuccessAccountNoteRaw = function (requestParameters, initOverrides) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var queryParameters, headerParameters, token, tokenString, response;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0:
88
+ if (requestParameters['accountId'] == null) {
89
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling createCustomerSuccessAccountNote().');
90
+ }
91
+ if (requestParameters['createAccountNoteInput'] == null) {
92
+ throw new runtime.RequiredError('createAccountNoteInput', 'Required parameter "createAccountNoteInput" was null or undefined when calling createCustomerSuccessAccountNote().');
93
+ }
94
+ queryParameters = {};
95
+ headerParameters = {};
96
+ headerParameters['Content-Type'] = 'application/json';
97
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
98
+ token = this.configuration.accessToken;
99
+ return [4 /*yield*/, token("bearer", [])];
100
+ case 1:
101
+ tokenString = _a.sent();
102
+ if (tokenString) {
103
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
104
+ }
105
+ _a.label = 2;
106
+ case 2: return [4 /*yield*/, this.request({
107
+ path: "/customer-success/accounts/{accountId}/notes".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
108
+ method: 'POST',
109
+ headers: headerParameters,
110
+ query: queryParameters,
111
+ body: (0, index_1.CreateAccountNoteInputToJSON)(requestParameters['createAccountNoteInput']),
112
+ }, initOverrides)];
113
+ case 3:
114
+ response = _a.sent();
115
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
116
+ }
117
+ });
118
+ });
119
+ };
120
+ /**
121
+ * Adds a private note to a seller account.
122
+ * Create account note
123
+ */
124
+ CustomerSuccessApi.prototype.createCustomerSuccessAccountNote = function (requestParameters, initOverrides) {
125
+ return __awaiter(this, void 0, void 0, function () {
126
+ return __generator(this, function (_a) {
127
+ switch (_a.label) {
128
+ case 0: return [4 /*yield*/, this.createCustomerSuccessAccountNoteRaw(requestParameters, initOverrides)];
129
+ case 1:
130
+ _a.sent();
131
+ return [2 /*return*/];
132
+ }
133
+ });
134
+ });
135
+ };
136
+ /**
137
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
138
+ * Delete account note
139
+ */
140
+ CustomerSuccessApi.prototype.deleteCustomerSuccessAccountNoteRaw = function (requestParameters, initOverrides) {
141
+ return __awaiter(this, void 0, void 0, function () {
142
+ var queryParameters, headerParameters, token, tokenString, response;
143
+ return __generator(this, function (_a) {
144
+ switch (_a.label) {
145
+ case 0:
146
+ if (requestParameters['accountId'] == null) {
147
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling deleteCustomerSuccessAccountNote().');
148
+ }
149
+ if (requestParameters['noteId'] == null) {
150
+ throw new runtime.RequiredError('noteId', 'Required parameter "noteId" was null or undefined when calling deleteCustomerSuccessAccountNote().');
151
+ }
152
+ queryParameters = {};
153
+ headerParameters = {};
154
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
155
+ token = this.configuration.accessToken;
156
+ return [4 /*yield*/, token("bearer", [])];
157
+ case 1:
158
+ tokenString = _a.sent();
159
+ if (tokenString) {
160
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
161
+ }
162
+ _a.label = 2;
163
+ case 2: return [4 /*yield*/, this.request({
164
+ path: "/customer-success/accounts/{accountId}/notes/{noteId}".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))).replace("{".concat("noteId", "}"), encodeURIComponent(String(requestParameters['noteId']))),
165
+ method: 'DELETE',
166
+ headers: headerParameters,
167
+ query: queryParameters,
168
+ }, initOverrides)];
169
+ case 3:
170
+ response = _a.sent();
171
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
172
+ }
173
+ });
174
+ });
175
+ };
176
+ /**
177
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
178
+ * Delete account note
179
+ */
180
+ CustomerSuccessApi.prototype.deleteCustomerSuccessAccountNote = function (requestParameters, initOverrides) {
181
+ return __awaiter(this, void 0, void 0, function () {
182
+ return __generator(this, function (_a) {
183
+ switch (_a.label) {
184
+ case 0: return [4 /*yield*/, this.deleteCustomerSuccessAccountNoteRaw(requestParameters, initOverrides)];
185
+ case 1:
186
+ _a.sent();
187
+ return [2 /*return*/];
188
+ }
189
+ });
190
+ });
191
+ };
78
192
  /**
79
193
  * Lists the domains of a single seller account for customer success follow-up. The account is taken from the path and cannot be widened through filters.
80
194
  * List account domains
@@ -148,6 +262,61 @@ var CustomerSuccessApi = /** @class */ (function (_super) {
148
262
  });
149
263
  });
150
264
  };
265
+ /**
266
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
267
+ * List account notes
268
+ */
269
+ CustomerSuccessApi.prototype.listCustomerSuccessAccountNotesRaw = function (requestParameters, initOverrides) {
270
+ return __awaiter(this, void 0, void 0, function () {
271
+ var queryParameters, headerParameters, token, tokenString, response;
272
+ return __generator(this, function (_a) {
273
+ switch (_a.label) {
274
+ case 0:
275
+ if (requestParameters['accountId'] == null) {
276
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling listCustomerSuccessAccountNotes().');
277
+ }
278
+ queryParameters = {};
279
+ headerParameters = {};
280
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
281
+ token = this.configuration.accessToken;
282
+ return [4 /*yield*/, token("bearer", [])];
283
+ case 1:
284
+ tokenString = _a.sent();
285
+ if (tokenString) {
286
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
287
+ }
288
+ _a.label = 2;
289
+ case 2: return [4 /*yield*/, this.request({
290
+ path: "/customer-success/accounts/{accountId}/notes".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
291
+ method: 'GET',
292
+ headers: headerParameters,
293
+ query: queryParameters,
294
+ }, initOverrides)];
295
+ case 3:
296
+ response = _a.sent();
297
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AccountNoteListDtoFromJSON)(jsonValue); })];
298
+ }
299
+ });
300
+ });
301
+ };
302
+ /**
303
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
304
+ * List account notes
305
+ */
306
+ CustomerSuccessApi.prototype.listCustomerSuccessAccountNotes = function (requestParameters, initOverrides) {
307
+ return __awaiter(this, void 0, void 0, function () {
308
+ var response;
309
+ return __generator(this, function (_a) {
310
+ switch (_a.label) {
311
+ case 0: return [4 /*yield*/, this.listCustomerSuccessAccountNotesRaw(requestParameters, initOverrides)];
312
+ case 1:
313
+ response = _a.sent();
314
+ return [4 /*yield*/, response.value()];
315
+ case 2: return [2 /*return*/, _a.sent()];
316
+ }
317
+ });
318
+ });
319
+ };
151
320
  /**
152
321
  * Lists seller accounts for customer success follow-up.
153
322
  * List accounts
@@ -222,6 +391,67 @@ var CustomerSuccessApi = /** @class */ (function (_super) {
222
391
  });
223
392
  });
224
393
  };
394
+ /**
395
+ * Updates the body of a note. Only its author, or a super admin, may do so.
396
+ * Update account note
397
+ */
398
+ CustomerSuccessApi.prototype.updateCustomerSuccessAccountNoteRaw = function (requestParameters, initOverrides) {
399
+ return __awaiter(this, void 0, void 0, function () {
400
+ var queryParameters, headerParameters, token, tokenString, response;
401
+ return __generator(this, function (_a) {
402
+ switch (_a.label) {
403
+ case 0:
404
+ if (requestParameters['accountId'] == null) {
405
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling updateCustomerSuccessAccountNote().');
406
+ }
407
+ if (requestParameters['noteId'] == null) {
408
+ throw new runtime.RequiredError('noteId', 'Required parameter "noteId" was null or undefined when calling updateCustomerSuccessAccountNote().');
409
+ }
410
+ if (requestParameters['updateAccountNoteInput'] == null) {
411
+ throw new runtime.RequiredError('updateAccountNoteInput', 'Required parameter "updateAccountNoteInput" was null or undefined when calling updateCustomerSuccessAccountNote().');
412
+ }
413
+ queryParameters = {};
414
+ headerParameters = {};
415
+ headerParameters['Content-Type'] = 'application/json';
416
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
417
+ token = this.configuration.accessToken;
418
+ return [4 /*yield*/, token("bearer", [])];
419
+ case 1:
420
+ tokenString = _a.sent();
421
+ if (tokenString) {
422
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
423
+ }
424
+ _a.label = 2;
425
+ case 2: return [4 /*yield*/, this.request({
426
+ path: "/customer-success/accounts/{accountId}/notes/{noteId}".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))).replace("{".concat("noteId", "}"), encodeURIComponent(String(requestParameters['noteId']))),
427
+ method: 'PATCH',
428
+ headers: headerParameters,
429
+ query: queryParameters,
430
+ body: (0, index_1.UpdateAccountNoteInputToJSON)(requestParameters['updateAccountNoteInput']),
431
+ }, initOverrides)];
432
+ case 3:
433
+ response = _a.sent();
434
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
435
+ }
436
+ });
437
+ });
438
+ };
439
+ /**
440
+ * Updates the body of a note. Only its author, or a super admin, may do so.
441
+ * Update account note
442
+ */
443
+ CustomerSuccessApi.prototype.updateCustomerSuccessAccountNote = function (requestParameters, initOverrides) {
444
+ return __awaiter(this, void 0, void 0, function () {
445
+ return __generator(this, function (_a) {
446
+ switch (_a.label) {
447
+ case 0: return [4 /*yield*/, this.updateCustomerSuccessAccountNoteRaw(requestParameters, initOverrides)];
448
+ case 1:
449
+ _a.sent();
450
+ return [2 /*return*/];
451
+ }
452
+ });
453
+ });
454
+ };
225
455
  return CustomerSuccessApi;
226
456
  }(runtime.BaseAPI));
227
457
  exports.CustomerSuccessApi = CustomerSuccessApi;
@@ -17,6 +17,7 @@ export interface LeadsPublicApiAssociateLeadVisitorRequest {
17
17
  }
18
18
  export interface LeadsPublicApiCreateLeadRequest {
19
19
  createLeadInput: CreateLeadInput;
20
+ xRecaptchaToken?: string;
20
21
  }
21
22
  export interface LeadsPublicApiGetLeadRequest {
22
23
  leadId: string;
@@ -140,6 +140,9 @@ var LeadsPublicApi = /** @class */ (function (_super) {
140
140
  queryParameters = {};
141
141
  headerParameters = {};
142
142
  headerParameters['Content-Type'] = 'application/json';
143
+ if (requestParameters['xRecaptchaToken'] != null) {
144
+ headerParameters['x-recaptcha-token'] = String(requestParameters['xRecaptchaToken']);
145
+ }
143
146
  return [4 /*yield*/, this.request({
144
147
  path: "/leads",
145
148
  method: 'POST',
@@ -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 AccountNoteAuthorDto
16
+ */
17
+ export interface AccountNoteAuthorDto {
18
+ /**
19
+ * Author id.
20
+ * @type {string}
21
+ * @memberof AccountNoteAuthorDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * Author full name.
26
+ * @type {string}
27
+ * @memberof AccountNoteAuthorDto
28
+ */
29
+ name: string;
30
+ /**
31
+ * Author email address.
32
+ * @type {string}
33
+ * @memberof AccountNoteAuthorDto
34
+ */
35
+ email: string;
36
+ /**
37
+ * Identifier of the account the author belongs to.
38
+ * @type {string}
39
+ * @memberof AccountNoteAuthorDto
40
+ */
41
+ accountIdentifier: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the AccountNoteAuthorDto interface.
45
+ */
46
+ export declare function instanceOfAccountNoteAuthorDto(value: object): value is AccountNoteAuthorDto;
47
+ export declare function AccountNoteAuthorDtoFromJSON(json: any): AccountNoteAuthorDto;
48
+ export declare function AccountNoteAuthorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountNoteAuthorDto;
49
+ export declare function AccountNoteAuthorDtoToJSON(json: any): AccountNoteAuthorDto;
50
+ export declare function AccountNoteAuthorDtoToJSONTyped(value?: AccountNoteAuthorDto | 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.instanceOfAccountNoteAuthorDto = instanceOfAccountNoteAuthorDto;
17
+ exports.AccountNoteAuthorDtoFromJSON = AccountNoteAuthorDtoFromJSON;
18
+ exports.AccountNoteAuthorDtoFromJSONTyped = AccountNoteAuthorDtoFromJSONTyped;
19
+ exports.AccountNoteAuthorDtoToJSON = AccountNoteAuthorDtoToJSON;
20
+ exports.AccountNoteAuthorDtoToJSONTyped = AccountNoteAuthorDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AccountNoteAuthorDto interface.
23
+ */
24
+ function instanceOfAccountNoteAuthorDto(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('email' in value) || value['email'] === undefined)
30
+ return false;
31
+ if (!('accountIdentifier' in value) || value['accountIdentifier'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function AccountNoteAuthorDtoFromJSON(json) {
36
+ return AccountNoteAuthorDtoFromJSONTyped(json, false);
37
+ }
38
+ function AccountNoteAuthorDtoFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'name': json['name'],
45
+ 'email': json['email'],
46
+ 'accountIdentifier': json['accountIdentifier'],
47
+ };
48
+ }
49
+ function AccountNoteAuthorDtoToJSON(json) {
50
+ return AccountNoteAuthorDtoToJSONTyped(json, false);
51
+ }
52
+ function AccountNoteAuthorDtoToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'name': value['name'],
60
+ 'email': value['email'],
61
+ 'accountIdentifier': value['accountIdentifier'],
62
+ };
63
+ }
@@ -0,0 +1,63 @@
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 { AccountNoteAuthorDto } from './AccountNoteAuthorDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AccountNoteDto
17
+ */
18
+ export interface AccountNoteDto {
19
+ /**
20
+ * Note id.
21
+ * @type {string}
22
+ * @memberof AccountNoteDto
23
+ */
24
+ id: string;
25
+ /**
26
+ * Id of the account the note belongs to.
27
+ * @type {string}
28
+ * @memberof AccountNoteDto
29
+ */
30
+ accountId: string;
31
+ /**
32
+ * Note body as sanitized HTML.
33
+ * @type {string}
34
+ * @memberof AccountNoteDto
35
+ */
36
+ body: string;
37
+ /**
38
+ * Internal user who wrote the note.
39
+ * @type {AccountNoteAuthorDto}
40
+ * @memberof AccountNoteDto
41
+ */
42
+ author: AccountNoteAuthorDto;
43
+ /**
44
+ * When the note was created.
45
+ * @type {Date}
46
+ * @memberof AccountNoteDto
47
+ */
48
+ createdAt: Date;
49
+ /**
50
+ * When the note was last updated.
51
+ * @type {Date}
52
+ * @memberof AccountNoteDto
53
+ */
54
+ updatedAt: Date;
55
+ }
56
+ /**
57
+ * Check if a given object implements the AccountNoteDto interface.
58
+ */
59
+ export declare function instanceOfAccountNoteDto(value: object): value is AccountNoteDto;
60
+ export declare function AccountNoteDtoFromJSON(json: any): AccountNoteDto;
61
+ export declare function AccountNoteDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountNoteDto;
62
+ export declare function AccountNoteDtoToJSON(json: any): AccountNoteDto;
63
+ export declare function AccountNoteDtoToJSONTyped(value?: AccountNoteDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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.instanceOfAccountNoteDto = instanceOfAccountNoteDto;
17
+ exports.AccountNoteDtoFromJSON = AccountNoteDtoFromJSON;
18
+ exports.AccountNoteDtoFromJSONTyped = AccountNoteDtoFromJSONTyped;
19
+ exports.AccountNoteDtoToJSON = AccountNoteDtoToJSON;
20
+ exports.AccountNoteDtoToJSONTyped = AccountNoteDtoToJSONTyped;
21
+ var AccountNoteAuthorDto_1 = require("./AccountNoteAuthorDto");
22
+ /**
23
+ * Check if a given object implements the AccountNoteDto interface.
24
+ */
25
+ function instanceOfAccountNoteDto(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('accountId' in value) || value['accountId'] === undefined)
29
+ return false;
30
+ if (!('body' in value) || value['body'] === undefined)
31
+ return false;
32
+ if (!('author' in value) || value['author'] === undefined)
33
+ return false;
34
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
35
+ return false;
36
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function AccountNoteDtoFromJSON(json) {
41
+ return AccountNoteDtoFromJSONTyped(json, false);
42
+ }
43
+ function AccountNoteDtoFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'accountId': json['accountId'],
50
+ 'body': json['body'],
51
+ 'author': (0, AccountNoteAuthorDto_1.AccountNoteAuthorDtoFromJSON)(json['author']),
52
+ 'createdAt': (new Date(json['createdAt'])),
53
+ 'updatedAt': (new Date(json['updatedAt'])),
54
+ };
55
+ }
56
+ function AccountNoteDtoToJSON(json) {
57
+ return AccountNoteDtoToJSONTyped(json, false);
58
+ }
59
+ function AccountNoteDtoToJSONTyped(value, ignoreDiscriminator) {
60
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'id': value['id'],
66
+ 'accountId': value['accountId'],
67
+ 'body': value['body'],
68
+ 'author': (0, AccountNoteAuthorDto_1.AccountNoteAuthorDtoToJSON)(value['author']),
69
+ 'createdAt': ((value['createdAt']).toISOString()),
70
+ 'updatedAt': ((value['updatedAt']).toISOString()),
71
+ };
72
+ }
@@ -0,0 +1,33 @@
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 { AccountNoteDto } from './AccountNoteDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AccountNoteListDto
17
+ */
18
+ export interface AccountNoteListDto {
19
+ /**
20
+ * Notes of the account, oldest first.
21
+ * @type {Array<AccountNoteDto>}
22
+ * @memberof AccountNoteListDto
23
+ */
24
+ data: Array<AccountNoteDto>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AccountNoteListDto interface.
28
+ */
29
+ export declare function instanceOfAccountNoteListDto(value: object): value is AccountNoteListDto;
30
+ export declare function AccountNoteListDtoFromJSON(json: any): AccountNoteListDto;
31
+ export declare function AccountNoteListDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountNoteListDto;
32
+ export declare function AccountNoteListDtoToJSON(json: any): AccountNoteListDto;
33
+ export declare function AccountNoteListDtoToJSONTyped(value?: AccountNoteListDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfAccountNoteListDto = instanceOfAccountNoteListDto;
17
+ exports.AccountNoteListDtoFromJSON = AccountNoteListDtoFromJSON;
18
+ exports.AccountNoteListDtoFromJSONTyped = AccountNoteListDtoFromJSONTyped;
19
+ exports.AccountNoteListDtoToJSON = AccountNoteListDtoToJSON;
20
+ exports.AccountNoteListDtoToJSONTyped = AccountNoteListDtoToJSONTyped;
21
+ var AccountNoteDto_1 = require("./AccountNoteDto");
22
+ /**
23
+ * Check if a given object implements the AccountNoteListDto interface.
24
+ */
25
+ function instanceOfAccountNoteListDto(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function AccountNoteListDtoFromJSON(json) {
31
+ return AccountNoteListDtoFromJSONTyped(json, false);
32
+ }
33
+ function AccountNoteListDtoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'data': (json['data'].map(AccountNoteDto_1.AccountNoteDtoFromJSON)),
39
+ };
40
+ }
41
+ function AccountNoteListDtoToJSON(json) {
42
+ return AccountNoteListDtoToJSONTyped(json, false);
43
+ }
44
+ function AccountNoteListDtoToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'data': (value['data'].map(AccountNoteDto_1.AccountNoteDtoToJSON)),
51
+ };
52
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LeadVerificationSettingsDto } from './LeadVerificationSettingsDto';
12
13
  import type { MoneyDto } from './MoneyDto';
13
14
  import type { AccountSettingsSidnDto } from './AccountSettingsSidnDto';
14
15
  import type { AccountSettingsAliasDto } from './AccountSettingsAliasDto';
@@ -107,6 +108,12 @@ export interface AccountSettingsDto {
107
108
  * @memberof AccountSettingsDto
108
109
  */
109
110
  marketplace: AccountSettingsDtoMarketplaceEnum | null;
111
+ /**
112
+ * Default lead verification settings: how offers are verified before the seller sees them. Domains may override them.
113
+ * @type {LeadVerificationSettingsDto}
114
+ * @memberof AccountSettingsDto
115
+ */
116
+ leadVerification: LeadVerificationSettingsDto;
110
117
  }
111
118
  /**
112
119
  * @export
@@ -19,6 +19,7 @@ exports.AccountSettingsDtoFromJSON = AccountSettingsDtoFromJSON;
19
19
  exports.AccountSettingsDtoFromJSONTyped = AccountSettingsDtoFromJSONTyped;
20
20
  exports.AccountSettingsDtoToJSON = AccountSettingsDtoToJSON;
21
21
  exports.AccountSettingsDtoToJSONTyped = AccountSettingsDtoToJSONTyped;
22
+ var LeadVerificationSettingsDto_1 = require("./LeadVerificationSettingsDto");
22
23
  var MoneyDto_1 = require("./MoneyDto");
23
24
  var AccountSettingsSidnDto_1 = require("./AccountSettingsSidnDto");
24
25
  var AccountSettingsAliasDto_1 = require("./AccountSettingsAliasDto");
@@ -70,6 +71,8 @@ function instanceOfAccountSettingsDto(value) {
70
71
  return false;
71
72
  if (!('marketplace' in value) || value['marketplace'] === undefined)
72
73
  return false;
74
+ if (!('leadVerification' in value) || value['leadVerification'] === undefined)
75
+ return false;
73
76
  return true;
74
77
  }
75
78
  function AccountSettingsDtoFromJSON(json) {
@@ -94,6 +97,7 @@ function AccountSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
94
97
  'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoFromJSON)(json['domainLockConfiguration']),
95
98
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoFromJSON)(json['leadOfferExpirationConfiguration']),
96
99
  'marketplace': json['marketplace'],
100
+ 'leadVerification': (0, LeadVerificationSettingsDto_1.LeadVerificationSettingsDtoFromJSON)(json['leadVerification']),
97
101
  };
98
102
  }
99
103
  function AccountSettingsDtoToJSON(json) {
@@ -119,5 +123,6 @@ function AccountSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
119
123
  'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoToJSON)(value['domainLockConfiguration']),
120
124
  'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoToJSON)(value['leadOfferExpirationConfiguration']),
121
125
  'marketplace': value['marketplace'],
126
+ 'leadVerification': (0, LeadVerificationSettingsDto_1.LeadVerificationSettingsDtoToJSON)(value['leadVerification']),
122
127
  };
123
128
  }