@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
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AccountNoteAuthorDto
20
+ */
21
+ export interface AccountNoteAuthorDto {
22
+ /**
23
+ * Author id.
24
+ * @type {string}
25
+ * @memberof AccountNoteAuthorDto
26
+ */
27
+ id: string;
28
+ /**
29
+ * Author full name.
30
+ * @type {string}
31
+ * @memberof AccountNoteAuthorDto
32
+ */
33
+ name: string;
34
+ /**
35
+ * Author email address.
36
+ * @type {string}
37
+ * @memberof AccountNoteAuthorDto
38
+ */
39
+ email: string;
40
+ /**
41
+ * Identifier of the account the author belongs to.
42
+ * @type {string}
43
+ * @memberof AccountNoteAuthorDto
44
+ */
45
+ accountIdentifier: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the AccountNoteAuthorDto interface.
50
+ */
51
+ export function instanceOfAccountNoteAuthorDto(value: object): value is AccountNoteAuthorDto {
52
+ if (!('id' in value) || value['id'] === undefined) return false;
53
+ if (!('name' in value) || value['name'] === undefined) return false;
54
+ if (!('email' in value) || value['email'] === undefined) return false;
55
+ if (!('accountIdentifier' in value) || value['accountIdentifier'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function AccountNoteAuthorDtoFromJSON(json: any): AccountNoteAuthorDto {
60
+ return AccountNoteAuthorDtoFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function AccountNoteAuthorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountNoteAuthorDto {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'id': json['id'],
70
+ 'name': json['name'],
71
+ 'email': json['email'],
72
+ 'accountIdentifier': json['accountIdentifier'],
73
+ };
74
+ }
75
+
76
+ export function AccountNoteAuthorDtoToJSON(json: any): AccountNoteAuthorDto {
77
+ return AccountNoteAuthorDtoToJSONTyped(json, false);
78
+ }
79
+
80
+ export function AccountNoteAuthorDtoToJSONTyped(value?: AccountNoteAuthorDto | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'id': value['id'],
88
+ 'name': value['name'],
89
+ 'email': value['email'],
90
+ 'accountIdentifier': value['accountIdentifier'],
91
+ };
92
+ }
93
+
@@ -0,0 +1,119 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { AccountNoteAuthorDto } from './AccountNoteAuthorDto';
17
+ import {
18
+ AccountNoteAuthorDtoFromJSON,
19
+ AccountNoteAuthorDtoFromJSONTyped,
20
+ AccountNoteAuthorDtoToJSON,
21
+ AccountNoteAuthorDtoToJSONTyped,
22
+ } from './AccountNoteAuthorDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AccountNoteDto
28
+ */
29
+ export interface AccountNoteDto {
30
+ /**
31
+ * Note id.
32
+ * @type {string}
33
+ * @memberof AccountNoteDto
34
+ */
35
+ id: string;
36
+ /**
37
+ * Id of the account the note belongs to.
38
+ * @type {string}
39
+ * @memberof AccountNoteDto
40
+ */
41
+ accountId: string;
42
+ /**
43
+ * Note body as sanitized HTML.
44
+ * @type {string}
45
+ * @memberof AccountNoteDto
46
+ */
47
+ body: string;
48
+ /**
49
+ * Internal user who wrote the note.
50
+ * @type {AccountNoteAuthorDto}
51
+ * @memberof AccountNoteDto
52
+ */
53
+ author: AccountNoteAuthorDto;
54
+ /**
55
+ * When the note was created.
56
+ * @type {Date}
57
+ * @memberof AccountNoteDto
58
+ */
59
+ createdAt: Date;
60
+ /**
61
+ * When the note was last updated.
62
+ * @type {Date}
63
+ * @memberof AccountNoteDto
64
+ */
65
+ updatedAt: Date;
66
+ }
67
+
68
+ /**
69
+ * Check if a given object implements the AccountNoteDto interface.
70
+ */
71
+ export function instanceOfAccountNoteDto(value: object): value is AccountNoteDto {
72
+ if (!('id' in value) || value['id'] === undefined) return false;
73
+ if (!('accountId' in value) || value['accountId'] === undefined) return false;
74
+ if (!('body' in value) || value['body'] === undefined) return false;
75
+ if (!('author' in value) || value['author'] === undefined) return false;
76
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
77
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
78
+ return true;
79
+ }
80
+
81
+ export function AccountNoteDtoFromJSON(json: any): AccountNoteDto {
82
+ return AccountNoteDtoFromJSONTyped(json, false);
83
+ }
84
+
85
+ export function AccountNoteDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountNoteDto {
86
+ if (json == null) {
87
+ return json;
88
+ }
89
+ return {
90
+
91
+ 'id': json['id'],
92
+ 'accountId': json['accountId'],
93
+ 'body': json['body'],
94
+ 'author': AccountNoteAuthorDtoFromJSON(json['author']),
95
+ 'createdAt': (new Date(json['createdAt'])),
96
+ 'updatedAt': (new Date(json['updatedAt'])),
97
+ };
98
+ }
99
+
100
+ export function AccountNoteDtoToJSON(json: any): AccountNoteDto {
101
+ return AccountNoteDtoToJSONTyped(json, false);
102
+ }
103
+
104
+ export function AccountNoteDtoToJSONTyped(value?: AccountNoteDto | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'id': value['id'],
112
+ 'accountId': value['accountId'],
113
+ 'body': value['body'],
114
+ 'author': AccountNoteAuthorDtoToJSON(value['author']),
115
+ 'createdAt': ((value['createdAt']).toISOString()),
116
+ 'updatedAt': ((value['updatedAt']).toISOString()),
117
+ };
118
+ }
119
+
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { AccountNoteDto } from './AccountNoteDto';
17
+ import {
18
+ AccountNoteDtoFromJSON,
19
+ AccountNoteDtoFromJSONTyped,
20
+ AccountNoteDtoToJSON,
21
+ AccountNoteDtoToJSONTyped,
22
+ } from './AccountNoteDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AccountNoteListDto
28
+ */
29
+ export interface AccountNoteListDto {
30
+ /**
31
+ * Notes of the account, oldest first.
32
+ * @type {Array<AccountNoteDto>}
33
+ * @memberof AccountNoteListDto
34
+ */
35
+ data: Array<AccountNoteDto>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the AccountNoteListDto interface.
40
+ */
41
+ export function instanceOfAccountNoteListDto(value: object): value is AccountNoteListDto {
42
+ if (!('data' in value) || value['data'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function AccountNoteListDtoFromJSON(json: any): AccountNoteListDto {
47
+ return AccountNoteListDtoFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function AccountNoteListDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountNoteListDto {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'data': ((json['data'] as Array<any>).map(AccountNoteDtoFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function AccountNoteListDtoToJSON(json: any): AccountNoteListDto {
61
+ return AccountNoteListDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function AccountNoteListDtoToJSONTyped(value?: AccountNoteListDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'data': ((value['data'] as Array<any>).map(AccountNoteDtoToJSON)),
72
+ };
73
+ }
74
+
@@ -60,6 +60,18 @@ export interface AdminListAccountDto {
60
60
  * @memberof AdminListAccountDto
61
61
  */
62
62
  identifier: string;
63
+ /**
64
+ * Number of private notes written about the account.
65
+ * @type {number}
66
+ * @memberof AdminListAccountDto
67
+ */
68
+ notesNumber: number;
69
+ /**
70
+ * When any of the account notes was last written or edited. Null when there are none.
71
+ * @type {Date}
72
+ * @memberof AdminListAccountDto
73
+ */
74
+ notesLastUpdatedAt: Date | null;
63
75
  /**
64
76
  * Account creation date.
65
77
  * @type {Date}
@@ -194,6 +206,8 @@ export type AdminListAccountDtoPayoutProviderEnum = typeof AdminListAccountDtoPa
194
206
  export function instanceOfAdminListAccountDto(value: object): value is AdminListAccountDto {
195
207
  if (!('id' in value) || value['id'] === undefined) return false;
196
208
  if (!('identifier' in value) || value['identifier'] === undefined) return false;
209
+ if (!('notesNumber' in value) || value['notesNumber'] === undefined) return false;
210
+ if (!('notesLastUpdatedAt' in value) || value['notesLastUpdatedAt'] === undefined) return false;
197
211
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
198
212
  if (!('name' in value) || value['name'] === undefined) return false;
199
213
  if (!('type' in value) || value['type'] === undefined) return false;
@@ -225,6 +239,8 @@ export function AdminListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator:
225
239
 
226
240
  'id': json['id'],
227
241
  'identifier': json['identifier'],
242
+ 'notesNumber': json['notesNumber'],
243
+ 'notesLastUpdatedAt': (json['notesLastUpdatedAt'] == null ? null : new Date(json['notesLastUpdatedAt'])),
228
244
  'createdAt': (new Date(json['createdAt'])),
229
245
  'name': json['name'],
230
246
  'type': json['type'],
@@ -257,6 +273,8 @@ export function AdminListAccountDtoToJSONTyped(value?: AdminListAccountDto | nul
257
273
 
258
274
  'id': value['id'],
259
275
  'identifier': value['identifier'],
276
+ 'notesNumber': value['notesNumber'],
277
+ 'notesLastUpdatedAt': (value['notesLastUpdatedAt'] == null ? null : (value['notesLastUpdatedAt'] as any).toISOString()),
260
278
  'createdAt': ((value['createdAt']).toISOString()),
261
279
  'name': value['name'],
262
280
  'type': value['type'],
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateAccountNoteInput
20
+ */
21
+ export interface CreateAccountNoteInput {
22
+ /**
23
+ * Note body as HTML. It is sanitized before being stored, so any tag outside the editor schema is dropped.
24
+ * @type {string}
25
+ * @memberof CreateAccountNoteInput
26
+ */
27
+ body: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CreateAccountNoteInput interface.
32
+ */
33
+ export function instanceOfCreateAccountNoteInput(value: object): value is CreateAccountNoteInput {
34
+ if (!('body' in value) || value['body'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function CreateAccountNoteInputFromJSON(json: any): CreateAccountNoteInput {
39
+ return CreateAccountNoteInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function CreateAccountNoteInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountNoteInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'body': json['body'],
49
+ };
50
+ }
51
+
52
+ export function CreateAccountNoteInputToJSON(json: any): CreateAccountNoteInput {
53
+ return CreateAccountNoteInputToJSONTyped(json, false);
54
+ }
55
+
56
+ export function CreateAccountNoteInputToJSONTyped(value?: CreateAccountNoteInput | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'body': value['body'],
64
+ };
65
+ }
66
+
@@ -60,6 +60,18 @@ export interface CustomerSuccessListAccountDto {
60
60
  * @memberof CustomerSuccessListAccountDto
61
61
  */
62
62
  identifier: string;
63
+ /**
64
+ * Number of private notes written about the account.
65
+ * @type {number}
66
+ * @memberof CustomerSuccessListAccountDto
67
+ */
68
+ notesNumber: number;
69
+ /**
70
+ * When any of the account notes was last written or edited. Null when there are none.
71
+ * @type {Date}
72
+ * @memberof CustomerSuccessListAccountDto
73
+ */
74
+ notesLastUpdatedAt: Date | null;
63
75
  /**
64
76
  * Account creation date.
65
77
  * @type {Date}
@@ -194,6 +206,8 @@ export type CustomerSuccessListAccountDtoPayoutProviderEnum = typeof CustomerSuc
194
206
  export function instanceOfCustomerSuccessListAccountDto(value: object): value is CustomerSuccessListAccountDto {
195
207
  if (!('id' in value) || value['id'] === undefined) return false;
196
208
  if (!('identifier' in value) || value['identifier'] === undefined) return false;
209
+ if (!('notesNumber' in value) || value['notesNumber'] === undefined) return false;
210
+ if (!('notesLastUpdatedAt' in value) || value['notesLastUpdatedAt'] === undefined) return false;
197
211
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
198
212
  if (!('name' in value) || value['name'] === undefined) return false;
199
213
  if (!('type' in value) || value['type'] === undefined) return false;
@@ -225,6 +239,8 @@ export function CustomerSuccessListAccountDtoFromJSONTyped(json: any, ignoreDisc
225
239
 
226
240
  'id': json['id'],
227
241
  'identifier': json['identifier'],
242
+ 'notesNumber': json['notesNumber'],
243
+ 'notesLastUpdatedAt': (json['notesLastUpdatedAt'] == null ? null : new Date(json['notesLastUpdatedAt'])),
228
244
  'createdAt': (new Date(json['createdAt'])),
229
245
  'name': json['name'],
230
246
  'type': json['type'],
@@ -257,6 +273,8 @@ export function CustomerSuccessListAccountDtoToJSONTyped(value?: CustomerSuccess
257
273
 
258
274
  'id': value['id'],
259
275
  'identifier': value['identifier'],
276
+ 'notesNumber': value['notesNumber'],
277
+ 'notesLastUpdatedAt': (value['notesLastUpdatedAt'] == null ? null : (value['notesLastUpdatedAt'] as any).toISOString()),
260
278
  'createdAt': ((value['createdAt']).toISOString()),
261
279
  'name': value['name'],
262
280
  'type': value['type'],
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ForbiddenException
20
+ */
21
+ export interface ForbiddenException {
22
+ /**
23
+ * Exception name.
24
+ * @type {string}
25
+ * @memberof ForbiddenException
26
+ */
27
+ name: string;
28
+ /**
29
+ * HTTP status code.
30
+ * @type {number}
31
+ * @memberof ForbiddenException
32
+ */
33
+ statusCode: number;
34
+ /**
35
+ * error message
36
+ * @type {string}
37
+ * @memberof ForbiddenException
38
+ */
39
+ message: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the ForbiddenException interface.
44
+ */
45
+ export function instanceOfForbiddenException(value: object): value is ForbiddenException {
46
+ if (!('name' in value) || value['name'] === undefined) return false;
47
+ if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
48
+ if (!('message' in value) || value['message'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function ForbiddenExceptionFromJSON(json: any): ForbiddenException {
53
+ return ForbiddenExceptionFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function ForbiddenExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForbiddenException {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'name': json['name'],
63
+ 'statusCode': json['statusCode'],
64
+ 'message': json['message'],
65
+ };
66
+ }
67
+
68
+ export function ForbiddenExceptionToJSON(json: any): ForbiddenException {
69
+ return ForbiddenExceptionToJSONTyped(json, false);
70
+ }
71
+
72
+ export function ForbiddenExceptionToJSONTyped(value?: ForbiddenException | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'name': value['name'],
80
+ 'statusCode': value['statusCode'],
81
+ 'message': value['message'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface UpdateAccountNoteInput
20
+ */
21
+ export interface UpdateAccountNoteInput {
22
+ /**
23
+ * New note body as HTML. It is sanitized before being stored.
24
+ * @type {string}
25
+ * @memberof UpdateAccountNoteInput
26
+ */
27
+ body: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the UpdateAccountNoteInput interface.
32
+ */
33
+ export function instanceOfUpdateAccountNoteInput(value: object): value is UpdateAccountNoteInput {
34
+ if (!('body' in value) || value['body'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function UpdateAccountNoteInputFromJSON(json: any): UpdateAccountNoteInput {
39
+ return UpdateAccountNoteInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function UpdateAccountNoteInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountNoteInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'body': json['body'],
49
+ };
50
+ }
51
+
52
+ export function UpdateAccountNoteInputToJSON(json: any): UpdateAccountNoteInput {
53
+ return UpdateAccountNoteInputToJSONTyped(json, false);
54
+ }
55
+
56
+ export function UpdateAccountNoteInputToJSONTyped(value?: UpdateAccountNoteInput | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'body': value['body'],
64
+ };
65
+ }
66
+
@@ -17,6 +17,9 @@ export * from './AccountNameshiftCommissionByTypeDto';
17
17
  export * from './AccountNameshiftCommissionItemDto';
18
18
  export * from './AccountNameshiftCommissionReasonDto';
19
19
  export * from './AccountNameshiftCommissionSubtypeCurrentDto';
20
+ export * from './AccountNoteAuthorDto';
21
+ export * from './AccountNoteDto';
22
+ export * from './AccountNoteListDto';
20
23
  export * from './AccountNotificationDto';
21
24
  export * from './AccountNotificationReadStatusDto';
22
25
  export * from './AccountOnboardingDto';
@@ -168,6 +171,7 @@ export * from './CommissionsStatsDto';
168
171
  export * from './CompanyInformationDto';
169
172
  export * from './CompanyTaxIdDto';
170
173
  export * from './ConflictException';
174
+ export * from './CreateAccountNoteInput';
171
175
  export * from './CreateAccountPaymentInput';
172
176
  export * from './CreateAccountPaymentManualTransactionInput';
173
177
  export * from './CreateApiKeyInput';
@@ -244,6 +248,7 @@ export * from './FixedCommissionPayloadDto';
244
248
  export * from './FixedCommissionPayloadInput';
245
249
  export * from './FixedCommissionPayloadSimulationInput';
246
250
  export * from './FixedCommissionReasonPayloadDto';
251
+ export * from './ForbiddenException';
247
252
  export * from './ForgotPasswordRequestInput';
248
253
  export * from './GetAccountChallengeRewardUsagesListDto';
249
254
  export * from './GetAccountNameshiftCommissionsResponseDto';
@@ -518,6 +523,7 @@ export * from './TranslateDomainSearchInput';
518
523
  export * from './UkBankAccountDetails';
519
524
  export * from './UpdateAccountBillingInformationInput';
520
525
  export * from './UpdateAccountChallengeRewardBalanceInput';
526
+ export * from './UpdateAccountNoteInput';
521
527
  export * from './UpdateApiKeyInput';
522
528
  export * from './UpdateAuctionMuteStatusInput';
523
529
  export * from './UpdateBuyerDomainTransferBuyerInfoInput';