@randock/nameshift-api-client 0.0.459 → 0.0.460
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.
- package/.openapi-generator/FILES +10 -0
- package/README.md +3 -3
- package/dist/apis/DomainsApi.d.ts +43 -9
- package/dist/apis/DomainsApi.js +156 -10
- package/dist/apis/JobsApi.d.ts +51 -0
- package/dist/apis/JobsApi.js +222 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ApplyDomainEditInput.d.ts +40 -0
- package/dist/models/ApplyDomainEditInput.js +53 -0
- package/dist/models/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -0
- package/dist/models/DomainEditPreviewDto.d.ts +83 -0
- package/dist/models/DomainEditPreviewDto.js +84 -0
- package/dist/models/DomainEditPreviewRowDto.d.ts +60 -0
- package/dist/models/DomainEditPreviewRowDto.js +67 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/JobDto.d.ts +101 -0
- package/dist/models/JobDto.js +98 -0
- package/dist/models/JobFailureDto.d.ts +38 -0
- package/dist/models/JobFailureDto.js +55 -0
- package/dist/models/JobStatus.d.ts +27 -0
- package/dist/models/JobStatus.js +53 -0
- package/dist/models/JobType.d.ts +24 -0
- package/dist/models/JobType.js +50 -0
- package/dist/models/ListJobs200Response.d.ts +47 -0
- package/dist/models/ListJobs200Response.js +62 -0
- package/dist/models/PreviewDomainEditInput.d.ts +38 -0
- package/dist/models/PreviewDomainEditInput.js +53 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
- package/src/apis/DomainsApi.ts +154 -12
- package/src/apis/JobsApi.ts +163 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ApplyDomainEditInput.ts +74 -0
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/DomainEditPreviewDto.ts +146 -0
- package/src/models/DomainEditPreviewRowDto.ts +102 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/JobDto.ts +189 -0
- package/src/models/JobFailureDto.ts +75 -0
- package/src/models/JobStatus.ts +55 -0
- package/src/models/JobType.ts +52 -0
- package/src/models/ListJobs200Response.ts +106 -0
- package/src/models/PreviewDomainEditInput.ts +74 -0
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,189 @@
|
|
|
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 { JobStatus } from './JobStatus';
|
|
17
|
+
import {
|
|
18
|
+
JobStatusFromJSON,
|
|
19
|
+
JobStatusFromJSONTyped,
|
|
20
|
+
JobStatusToJSON,
|
|
21
|
+
JobStatusToJSONTyped,
|
|
22
|
+
} from './JobStatus';
|
|
23
|
+
import type { JobType } from './JobType';
|
|
24
|
+
import {
|
|
25
|
+
JobTypeFromJSON,
|
|
26
|
+
JobTypeFromJSONTyped,
|
|
27
|
+
JobTypeToJSON,
|
|
28
|
+
JobTypeToJSONTyped,
|
|
29
|
+
} from './JobType';
|
|
30
|
+
import type { JobFailureDto } from './JobFailureDto';
|
|
31
|
+
import {
|
|
32
|
+
JobFailureDtoFromJSON,
|
|
33
|
+
JobFailureDtoFromJSONTyped,
|
|
34
|
+
JobFailureDtoToJSON,
|
|
35
|
+
JobFailureDtoToJSONTyped,
|
|
36
|
+
} from './JobFailureDto';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface JobDto
|
|
42
|
+
*/
|
|
43
|
+
export interface JobDto {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof JobDto
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {JobType}
|
|
53
|
+
* @memberof JobDto
|
|
54
|
+
*/
|
|
55
|
+
type: JobType;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {JobStatus}
|
|
59
|
+
* @memberof JobDto
|
|
60
|
+
*/
|
|
61
|
+
status: JobStatus;
|
|
62
|
+
/**
|
|
63
|
+
* How many items the job expects to touch. An estimate while it runs, exact once it has finished.
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof JobDto
|
|
66
|
+
*/
|
|
67
|
+
total: number;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof JobDto
|
|
72
|
+
*/
|
|
73
|
+
processed: number;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof JobDto
|
|
78
|
+
*/
|
|
79
|
+
succeeded: number;
|
|
80
|
+
/**
|
|
81
|
+
* Items the job refused rather than applied, most often because the change would have left them invalid.
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof JobDto
|
|
84
|
+
*/
|
|
85
|
+
failed: number;
|
|
86
|
+
/**
|
|
87
|
+
* The first few failures, for showing without a second request.
|
|
88
|
+
* @type {Array<JobFailureDto>}
|
|
89
|
+
* @memberof JobDto
|
|
90
|
+
*/
|
|
91
|
+
failures: Array<JobFailureDto>;
|
|
92
|
+
/**
|
|
93
|
+
* Why the job as a whole stopped. Never a per-item problem.
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof JobDto
|
|
96
|
+
*/
|
|
97
|
+
failureReason: string | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {Date}
|
|
101
|
+
* @memberof JobDto
|
|
102
|
+
*/
|
|
103
|
+
createdAt: Date;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {Date}
|
|
107
|
+
* @memberof JobDto
|
|
108
|
+
*/
|
|
109
|
+
startedAt: Date | null;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {Date}
|
|
113
|
+
* @memberof JobDto
|
|
114
|
+
*/
|
|
115
|
+
finishedAt: Date | null;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Check if a given object implements the JobDto interface.
|
|
122
|
+
*/
|
|
123
|
+
export function instanceOfJobDto(value: object): value is JobDto {
|
|
124
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
125
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
126
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
127
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
128
|
+
if (!('processed' in value) || value['processed'] === undefined) return false;
|
|
129
|
+
if (!('succeeded' in value) || value['succeeded'] === undefined) return false;
|
|
130
|
+
if (!('failed' in value) || value['failed'] === undefined) return false;
|
|
131
|
+
if (!('failures' in value) || value['failures'] === undefined) return false;
|
|
132
|
+
if (!('failureReason' in value) || value['failureReason'] === undefined) return false;
|
|
133
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
134
|
+
if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
|
|
135
|
+
if (!('finishedAt' in value) || value['finishedAt'] === undefined) return false;
|
|
136
|
+
return true;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function JobDtoFromJSON(json: any): JobDto {
|
|
140
|
+
return JobDtoFromJSONTyped(json, false);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function JobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobDto {
|
|
144
|
+
if (json == null) {
|
|
145
|
+
return json;
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
|
|
149
|
+
'id': json['id'],
|
|
150
|
+
'type': JobTypeFromJSON(json['type']),
|
|
151
|
+
'status': JobStatusFromJSON(json['status']),
|
|
152
|
+
'total': json['total'],
|
|
153
|
+
'processed': json['processed'],
|
|
154
|
+
'succeeded': json['succeeded'],
|
|
155
|
+
'failed': json['failed'],
|
|
156
|
+
'failures': ((json['failures'] as Array<any>).map(JobFailureDtoFromJSON)),
|
|
157
|
+
'failureReason': json['failureReason'],
|
|
158
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
159
|
+
'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
|
|
160
|
+
'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function JobDtoToJSON(json: any): JobDto {
|
|
165
|
+
return JobDtoToJSONTyped(json, false);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function JobDtoToJSONTyped(value?: JobDto | null, ignoreDiscriminator: boolean = false): any {
|
|
169
|
+
if (value == null) {
|
|
170
|
+
return value;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
|
|
175
|
+
'id': value['id'],
|
|
176
|
+
'type': JobTypeToJSON(value['type']),
|
|
177
|
+
'status': JobStatusToJSON(value['status']),
|
|
178
|
+
'total': value['total'],
|
|
179
|
+
'processed': value['processed'],
|
|
180
|
+
'succeeded': value['succeeded'],
|
|
181
|
+
'failed': value['failed'],
|
|
182
|
+
'failures': ((value['failures'] as Array<any>).map(JobFailureDtoToJSON)),
|
|
183
|
+
'failureReason': value['failureReason'],
|
|
184
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
185
|
+
'startedAt': (value['startedAt'] == null ? null : (value['startedAt'] as any).toISOString()),
|
|
186
|
+
'finishedAt': (value['finishedAt'] == null ? null : (value['finishedAt'] as any).toISOString()),
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 JobFailureDto
|
|
20
|
+
*/
|
|
21
|
+
export interface JobFailureDto {
|
|
22
|
+
/**
|
|
23
|
+
* What the failure was about — a domain name, for a bulk edit.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof JobFailureDto
|
|
26
|
+
*/
|
|
27
|
+
subject: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof JobFailureDto
|
|
32
|
+
*/
|
|
33
|
+
reason: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the JobFailureDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfJobFailureDto(value: object): value is JobFailureDto {
|
|
40
|
+
if (!('subject' in value) || value['subject'] === undefined) return false;
|
|
41
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function JobFailureDtoFromJSON(json: any): JobFailureDto {
|
|
46
|
+
return JobFailureDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function JobFailureDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobFailureDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'subject': json['subject'],
|
|
56
|
+
'reason': json['reason'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function JobFailureDtoToJSON(json: any): JobFailureDto {
|
|
61
|
+
return JobFailureDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function JobFailureDtoToJSONTyped(value?: JobFailureDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'subject': value['subject'],
|
|
72
|
+
'reason': value['reason'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const JobStatus = {
|
|
21
|
+
QUEUED: 'queued',
|
|
22
|
+
RUNNING: 'running',
|
|
23
|
+
FINISHED: 'finished',
|
|
24
|
+
FAILED: 'failed'
|
|
25
|
+
} as const;
|
|
26
|
+
export type JobStatus = typeof JobStatus[keyof typeof JobStatus];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfJobStatus(value: any): boolean {
|
|
30
|
+
for (const key in JobStatus) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(JobStatus, key)) {
|
|
32
|
+
if (JobStatus[key as keyof typeof JobStatus] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function JobStatusFromJSON(json: any): JobStatus {
|
|
41
|
+
return JobStatusFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function JobStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobStatus {
|
|
45
|
+
return json as JobStatus;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function JobStatusToJSON(value?: JobStatus | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function JobStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): JobStatus {
|
|
53
|
+
return value as JobStatus;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const JobType = {
|
|
21
|
+
BULK_EDIT_DOMAINS: 'bulk_edit_domains'
|
|
22
|
+
} as const;
|
|
23
|
+
export type JobType = typeof JobType[keyof typeof JobType];
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export function instanceOfJobType(value: any): boolean {
|
|
27
|
+
for (const key in JobType) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(JobType, key)) {
|
|
29
|
+
if (JobType[key as keyof typeof JobType] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function JobTypeFromJSON(json: any): JobType {
|
|
38
|
+
return JobTypeFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function JobTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobType {
|
|
42
|
+
return json as JobType;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function JobTypeToJSON(value?: JobType | null): any {
|
|
46
|
+
return value as any;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function JobTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): JobType {
|
|
50
|
+
return value as JobType;
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { JobDto } from './JobDto';
|
|
24
|
+
import {
|
|
25
|
+
JobDtoFromJSON,
|
|
26
|
+
JobDtoFromJSONTyped,
|
|
27
|
+
JobDtoToJSON,
|
|
28
|
+
JobDtoToJSONTyped,
|
|
29
|
+
} from './JobDto';
|
|
30
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
|
+
import {
|
|
32
|
+
PaginateResponseMetaFromJSON,
|
|
33
|
+
PaginateResponseMetaFromJSONTyped,
|
|
34
|
+
PaginateResponseMetaToJSON,
|
|
35
|
+
PaginateResponseMetaToJSONTyped,
|
|
36
|
+
} from './PaginateResponseMeta';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ListJobs200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface ListJobs200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<JobDto>}
|
|
47
|
+
* @memberof ListJobs200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<JobDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof ListJobs200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof ListJobs200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the ListJobs200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfListJobs200Response(value: object): value is ListJobs200Response {
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
70
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ListJobs200ResponseFromJSON(json: any): ListJobs200Response {
|
|
75
|
+
return ListJobs200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ListJobs200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListJobs200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(JobDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ListJobs200ResponseToJSON(json: any): ListJobs200Response {
|
|
91
|
+
return ListJobs200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListJobs200ResponseToJSONTyped(value?: ListJobs200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(JobDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PreviewDomainEditInput
|
|
20
|
+
*/
|
|
21
|
+
export interface PreviewDomainEditInput {
|
|
22
|
+
/**
|
|
23
|
+
* The selected domains. Omit to apply to everything the filter and searchFilter match.
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof PreviewDomainEditInput
|
|
26
|
+
*/
|
|
27
|
+
domainIds?: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* The change the seller wants, in their own words.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PreviewDomainEditInput
|
|
32
|
+
*/
|
|
33
|
+
request: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PreviewDomainEditInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPreviewDomainEditInput(value: object): value is PreviewDomainEditInput {
|
|
40
|
+
if (!('request' in value) || value['request'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function PreviewDomainEditInputFromJSON(json: any): PreviewDomainEditInput {
|
|
45
|
+
return PreviewDomainEditInputFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function PreviewDomainEditInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreviewDomainEditInput {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'domainIds': json['domainIds'] == null ? undefined : json['domainIds'],
|
|
55
|
+
'request': json['request'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PreviewDomainEditInputToJSON(json: any): PreviewDomainEditInput {
|
|
60
|
+
return PreviewDomainEditInputToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PreviewDomainEditInputToJSONTyped(value?: PreviewDomainEditInput | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'domainIds': value['domainIds'],
|
|
71
|
+
'request': value['request'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -186,7 +186,8 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
186
186
|
USE_MAILER_FALLBACK_URL: 'USE_MAILER_FALLBACK_URL',
|
|
187
187
|
USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
|
|
188
188
|
AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
|
|
189
|
-
MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING'
|
|
189
|
+
MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING',
|
|
190
|
+
AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT'
|
|
190
191
|
} as const;
|
|
191
192
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
192
193
|
|
|
@@ -133,6 +133,7 @@ export const UserNotificationDtoTypeEnum = {
|
|
|
133
133
|
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
134
134
|
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
135
135
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
136
|
+
BULK_EDIT_DOMAINS_FINISHED: 'bulk_edit_domains_finished',
|
|
136
137
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
137
138
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
138
139
|
DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
|
|
@@ -119,6 +119,7 @@ export const UserNotificationListItemDtoTypeEnum = {
|
|
|
119
119
|
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
120
120
|
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
121
121
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
122
|
+
BULK_EDIT_DOMAINS_FINISHED: 'bulk_edit_domains_finished',
|
|
122
123
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
123
124
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
124
125
|
DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
|
package/src/models/index.ts
CHANGED
|
@@ -75,6 +75,7 @@ export * from './AirwallexDepositDto';
|
|
|
75
75
|
export * from './AirwallexDepositDtoFee';
|
|
76
76
|
export * from './ApiKeyDto';
|
|
77
77
|
export * from './ApiKeyScopeDto';
|
|
78
|
+
export * from './ApplyDomainEditInput';
|
|
78
79
|
export * from './AuBankAccountDetails';
|
|
79
80
|
export * from './AuctionBidDto';
|
|
80
81
|
export * from './AuctionBidInput';
|
|
@@ -183,6 +184,8 @@ export * from './CursorBasedPaginationResponse';
|
|
|
183
184
|
export * from './DeleteDomainsInput';
|
|
184
185
|
export * from './DomainAuctionDto';
|
|
185
186
|
export * from './DomainCategoryItemDto';
|
|
187
|
+
export * from './DomainEditPreviewDto';
|
|
188
|
+
export * from './DomainEditPreviewRowDto';
|
|
186
189
|
export * from './DomainExchangeRateDto';
|
|
187
190
|
export * from './DomainFiltersDto';
|
|
188
191
|
export * from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
|
|
@@ -270,6 +273,10 @@ export * from './InvoiceItemDto';
|
|
|
270
273
|
export * from './InvoiceItemTaxDto';
|
|
271
274
|
export * from './InvoiceSellerAccountDto';
|
|
272
275
|
export * from './InvoiceTransactionDto';
|
|
276
|
+
export * from './JobDto';
|
|
277
|
+
export * from './JobFailureDto';
|
|
278
|
+
export * from './JobStatus';
|
|
279
|
+
export * from './JobType';
|
|
273
280
|
export * from './LandingPageDesignSettingsDto';
|
|
274
281
|
export * from './LandingPageDesignSettingsInput';
|
|
275
282
|
export * from './LandingPageInput';
|
|
@@ -320,6 +327,7 @@ export * from './ListBankDeposits200Response';
|
|
|
320
327
|
export * from './ListBuyerNotifications200Response';
|
|
321
328
|
export * from './ListDomains200Response';
|
|
322
329
|
export * from './ListDomainsWithUpdatedPricing200Response';
|
|
330
|
+
export * from './ListJobs200Response';
|
|
323
331
|
export * from './ListLeadMessagesDto';
|
|
324
332
|
export * from './ListLeads200Response';
|
|
325
333
|
export * from './ListLeadsResultItem';
|
|
@@ -365,6 +373,7 @@ export * from './PartnerDomainFindDto';
|
|
|
365
373
|
export * from './PayAccountPaymentInput';
|
|
366
374
|
export * from './PaymentMethodsStatsDto';
|
|
367
375
|
export * from './PopularCategoryDto';
|
|
376
|
+
export * from './PreviewDomainEditInput';
|
|
368
377
|
export * from './PrivateAccountGetMeResponse';
|
|
369
378
|
export * from './PublicAccountInformationDto';
|
|
370
379
|
export * from './PublicAuctionListItemDto';
|