@randock/nameshift-api-client 0.0.474 → 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 (39) hide show
  1. package/.openapi-generator/FILES +6 -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/CustomerSuccessApi.d.ts +57 -1
  6. package/dist/apis/CustomerSuccessApi.js +230 -0
  7. package/dist/models/AccountNoteAuthorDto.d.ts +50 -0
  8. package/dist/models/AccountNoteAuthorDto.js +63 -0
  9. package/dist/models/AccountNoteDto.d.ts +63 -0
  10. package/dist/models/AccountNoteDto.js +72 -0
  11. package/dist/models/AccountNoteListDto.d.ts +33 -0
  12. package/dist/models/AccountNoteListDto.js +52 -0
  13. package/dist/models/AdminListAccountDto.d.ts +12 -0
  14. package/dist/models/AdminListAccountDto.js +8 -0
  15. package/dist/models/CreateAccountNoteInput.d.ts +32 -0
  16. package/dist/models/CreateAccountNoteInput.js +51 -0
  17. package/dist/models/CustomerSuccessListAccountDto.d.ts +12 -0
  18. package/dist/models/CustomerSuccessListAccountDto.js +8 -0
  19. package/dist/models/ForbiddenException.d.ts +44 -0
  20. package/dist/models/ForbiddenException.js +59 -0
  21. package/dist/models/UpdateAccountNoteInput.d.ts +32 -0
  22. package/dist/models/UpdateAccountNoteInput.js +51 -0
  23. package/dist/models/index.d.ts +6 -0
  24. package/dist/models/index.js +6 -0
  25. package/package.json +1 -1
  26. package/src/apis/AccountsApi.ts +3 -0
  27. package/src/apis/AdminApi.ts +235 -0
  28. package/src/apis/BuyersApi.ts +3 -0
  29. package/src/apis/CustomerSuccessApi.ts +238 -0
  30. package/src/apis/DomainsApi.ts +3 -0
  31. package/src/models/AccountNoteAuthorDto.ts +93 -0
  32. package/src/models/AccountNoteDto.ts +119 -0
  33. package/src/models/AccountNoteListDto.ts +74 -0
  34. package/src/models/AdminListAccountDto.ts +18 -0
  35. package/src/models/CreateAccountNoteInput.ts +66 -0
  36. package/src/models/CustomerSuccessListAccountDto.ts +18 -0
  37. package/src/models/ForbiddenException.ts +84 -0
  38. package/src/models/UpdateAccountNoteInput.ts +66 -0
  39. package/src/models/index.ts +6 -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;
@@ -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
+ }
@@ -31,6 +31,18 @@ export interface AdminListAccountDto {
31
31
  * @memberof AdminListAccountDto
32
32
  */
33
33
  identifier: string;
34
+ /**
35
+ * Number of private notes written about the account.
36
+ * @type {number}
37
+ * @memberof AdminListAccountDto
38
+ */
39
+ notesNumber: number;
40
+ /**
41
+ * When any of the account notes was last written or edited. Null when there are none.
42
+ * @type {Date}
43
+ * @memberof AdminListAccountDto
44
+ */
45
+ notesLastUpdatedAt: Date | null;
34
46
  /**
35
47
  * Account creation date.
36
48
  * @type {Date}
@@ -53,6 +53,10 @@ function instanceOfAdminListAccountDto(value) {
53
53
  return false;
54
54
  if (!('identifier' in value) || value['identifier'] === undefined)
55
55
  return false;
56
+ if (!('notesNumber' in value) || value['notesNumber'] === undefined)
57
+ return false;
58
+ if (!('notesLastUpdatedAt' in value) || value['notesLastUpdatedAt'] === undefined)
59
+ return false;
56
60
  if (!('createdAt' in value) || value['createdAt'] === undefined)
57
61
  return false;
58
62
  if (!('name' in value) || value['name'] === undefined)
@@ -97,6 +101,8 @@ function AdminListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
97
101
  return {
98
102
  'id': json['id'],
99
103
  'identifier': json['identifier'],
104
+ 'notesNumber': json['notesNumber'],
105
+ 'notesLastUpdatedAt': (json['notesLastUpdatedAt'] == null ? null : new Date(json['notesLastUpdatedAt'])),
100
106
  'createdAt': (new Date(json['createdAt'])),
101
107
  'name': json['name'],
102
108
  'type': json['type'],
@@ -126,6 +132,8 @@ function AdminListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
126
132
  return {
127
133
  'id': value['id'],
128
134
  'identifier': value['identifier'],
135
+ 'notesNumber': value['notesNumber'],
136
+ 'notesLastUpdatedAt': (value['notesLastUpdatedAt'] == null ? null : value['notesLastUpdatedAt'].toISOString()),
129
137
  'createdAt': ((value['createdAt']).toISOString()),
130
138
  'name': value['name'],
131
139
  'type': value['type'],
@@ -0,0 +1,32 @@
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 CreateAccountNoteInput
16
+ */
17
+ export interface CreateAccountNoteInput {
18
+ /**
19
+ * Note body as HTML. It is sanitized before being stored, so any tag outside the editor schema is dropped.
20
+ * @type {string}
21
+ * @memberof CreateAccountNoteInput
22
+ */
23
+ body: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateAccountNoteInput interface.
27
+ */
28
+ export declare function instanceOfCreateAccountNoteInput(value: object): value is CreateAccountNoteInput;
29
+ export declare function CreateAccountNoteInputFromJSON(json: any): CreateAccountNoteInput;
30
+ export declare function CreateAccountNoteInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountNoteInput;
31
+ export declare function CreateAccountNoteInputToJSON(json: any): CreateAccountNoteInput;
32
+ export declare function CreateAccountNoteInputToJSONTyped(value?: CreateAccountNoteInput | null, ignoreDiscriminator?: boolean): any;