@randock/nameshift-api-client 0.0.474 → 0.0.476

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 (52) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +71 -1
  4. package/dist/apis/AdminApi.js +288 -0
  5. package/dist/apis/BuyersApi.d.ts +15 -1
  6. package/dist/apis/BuyersApi.js +58 -0
  7. package/dist/apis/CustomerSuccessApi.d.ts +57 -1
  8. package/dist/apis/CustomerSuccessApi.js +230 -0
  9. package/dist/models/AccountNoteAuthorDto.d.ts +50 -0
  10. package/dist/models/AccountNoteAuthorDto.js +63 -0
  11. package/dist/models/AccountNoteDto.d.ts +63 -0
  12. package/dist/models/AccountNoteDto.js +72 -0
  13. package/dist/models/AccountNoteListDto.d.ts +33 -0
  14. package/dist/models/AccountNoteListDto.js +52 -0
  15. package/dist/models/AdminListAccountDto.d.ts +12 -0
  16. package/dist/models/AdminListAccountDto.js +8 -0
  17. package/dist/models/BuyerSubscriptionListItemDto.d.ts +7 -0
  18. package/dist/models/BuyerSubscriptionListItemDto.js +5 -0
  19. package/dist/models/CompanyInformationDto.d.ts +2 -2
  20. package/dist/models/CreateAccountNoteInput.d.ts +32 -0
  21. package/dist/models/CreateAccountNoteInput.js +51 -0
  22. package/dist/models/CustomerSuccessListAccountDto.d.ts +12 -0
  23. package/dist/models/CustomerSuccessListAccountDto.js +8 -0
  24. package/dist/models/ForbiddenException.d.ts +44 -0
  25. package/dist/models/ForbiddenException.js +59 -0
  26. package/dist/models/SubscriptionDetailsDto.d.ts +7 -0
  27. package/dist/models/SubscriptionDetailsDto.js +5 -0
  28. package/dist/models/UpdateAccountNoteInput.d.ts +32 -0
  29. package/dist/models/UpdateAccountNoteInput.js +51 -0
  30. package/dist/models/UpdateSubscriptionBuyerInformationInput.d.ts +33 -0
  31. package/dist/models/UpdateSubscriptionBuyerInformationInput.js +52 -0
  32. package/dist/models/index.d.ts +7 -0
  33. package/dist/models/index.js +7 -0
  34. package/package.json +1 -1
  35. package/src/apis/AccountsApi.ts +3 -0
  36. package/src/apis/AdminApi.ts +295 -0
  37. package/src/apis/BuyersApi.ts +63 -0
  38. package/src/apis/CustomerSuccessApi.ts +238 -0
  39. package/src/apis/DomainsApi.ts +3 -0
  40. package/src/models/AccountNoteAuthorDto.ts +93 -0
  41. package/src/models/AccountNoteDto.ts +119 -0
  42. package/src/models/AccountNoteListDto.ts +74 -0
  43. package/src/models/AdminListAccountDto.ts +18 -0
  44. package/src/models/BuyerSubscriptionListItemDto.ts +16 -0
  45. package/src/models/CompanyInformationDto.ts +2 -2
  46. package/src/models/CreateAccountNoteInput.ts +66 -0
  47. package/src/models/CustomerSuccessListAccountDto.ts +18 -0
  48. package/src/models/ForbiddenException.ts +84 -0
  49. package/src/models/SubscriptionDetailsDto.ts +16 -0
  50. package/src/models/UpdateAccountNoteInput.ts +66 -0
  51. package/src/models/UpdateSubscriptionBuyerInformationInput.ts +74 -0
  52. package/src/models/index.ts +7 -0
@@ -10,7 +10,15 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ListCustomerSuccessAccountDomains200Response, ListCustomerSuccessAccounts200Response } from '../models/index';
13
+ import type { AccountNoteListDto, CreateAccountNoteInput, ListCustomerSuccessAccountDomains200Response, ListCustomerSuccessAccounts200Response, UpdateAccountNoteInput } from '../models/index';
14
+ export interface CustomerSuccessApiCreateCustomerSuccessAccountNoteRequest {
15
+ accountId: string;
16
+ createAccountNoteInput: CreateAccountNoteInput;
17
+ }
18
+ export interface CustomerSuccessApiDeleteCustomerSuccessAccountNoteRequest {
19
+ accountId: string;
20
+ noteId: string;
21
+ }
14
22
  export interface CustomerSuccessApiListCustomerSuccessAccountDomainsRequest {
15
23
  accountId: string;
16
24
  filter?: {
@@ -22,6 +30,9 @@ export interface CustomerSuccessApiListCustomerSuccessAccountDomainsRequest {
22
30
  filterSold?: string;
23
31
  filterPointingDnsStatus?: string;
24
32
  }
33
+ export interface CustomerSuccessApiListCustomerSuccessAccountNotesRequest {
34
+ accountId: string;
35
+ }
25
36
  export interface CustomerSuccessApiListCustomerSuccessAccountsRequest {
26
37
  filter?: {
27
38
  [key: string]: string;
@@ -33,10 +44,35 @@ export interface CustomerSuccessApiListCustomerSuccessAccountsRequest {
33
44
  filterOnboardingStatus?: string;
34
45
  filterAffiliateIdentifier?: string;
35
46
  }
47
+ export interface CustomerSuccessApiUpdateCustomerSuccessAccountNoteRequest {
48
+ accountId: string;
49
+ noteId: string;
50
+ updateAccountNoteInput: UpdateAccountNoteInput;
51
+ }
36
52
  /**
37
53
  *
38
54
  */
39
55
  export declare class CustomerSuccessApi extends runtime.BaseAPI {
56
+ /**
57
+ * Adds a private note to a seller account.
58
+ * Create account note
59
+ */
60
+ createCustomerSuccessAccountNoteRaw(requestParameters: CustomerSuccessApiCreateCustomerSuccessAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
61
+ /**
62
+ * Adds a private note to a seller account.
63
+ * Create account note
64
+ */
65
+ createCustomerSuccessAccountNote(requestParameters: CustomerSuccessApiCreateCustomerSuccessAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
66
+ /**
67
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
68
+ * Delete account note
69
+ */
70
+ deleteCustomerSuccessAccountNoteRaw(requestParameters: CustomerSuccessApiDeleteCustomerSuccessAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
71
+ /**
72
+ * Soft-deletes a note. Only its author, or a super admin, may do so.
73
+ * Delete account note
74
+ */
75
+ deleteCustomerSuccessAccountNote(requestParameters: CustomerSuccessApiDeleteCustomerSuccessAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
40
76
  /**
41
77
  * 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.
42
78
  * List account domains
@@ -47,6 +83,16 @@ export declare class CustomerSuccessApi extends runtime.BaseAPI {
47
83
  * List account domains
48
84
  */
49
85
  listCustomerSuccessAccountDomains(requestParameters: CustomerSuccessApiListCustomerSuccessAccountDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListCustomerSuccessAccountDomains200Response>;
86
+ /**
87
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
88
+ * List account notes
89
+ */
90
+ listCustomerSuccessAccountNotesRaw(requestParameters: CustomerSuccessApiListCustomerSuccessAccountNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountNoteListDto>>;
91
+ /**
92
+ * Lists the private notes of a seller account, oldest first. Every internal role sees the same notes.
93
+ * List account notes
94
+ */
95
+ listCustomerSuccessAccountNotes(requestParameters: CustomerSuccessApiListCustomerSuccessAccountNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountNoteListDto>;
50
96
  /**
51
97
  * Lists seller accounts for customer success follow-up.
52
98
  * List accounts
@@ -57,4 +103,14 @@ export declare class CustomerSuccessApi extends runtime.BaseAPI {
57
103
  * List accounts
58
104
  */
59
105
  listCustomerSuccessAccounts(requestParameters?: CustomerSuccessApiListCustomerSuccessAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListCustomerSuccessAccounts200Response>;
106
+ /**
107
+ * Updates the body of a note. Only its author, or a super admin, may do so.
108
+ * Update account note
109
+ */
110
+ updateCustomerSuccessAccountNoteRaw(requestParameters: CustomerSuccessApiUpdateCustomerSuccessAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
111
+ /**
112
+ * Updates the body of a note. Only its author, or a super admin, may do so.
113
+ * Update account note
114
+ */
115
+ updateCustomerSuccessAccountNote(requestParameters: CustomerSuccessApiUpdateCustomerSuccessAccountNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
60
116
  }
@@ -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;
@@ -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;