@randock/nameshift-api-client 0.0.458 → 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 +11 -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/UsersApi.d.ts +27 -1
- package/dist/apis/UsersApi.js +108 -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/RegisterUserPushTokenInput.d.ts +46 -0
- package/dist/models/RegisterUserPushTokenInput.js +63 -0
- 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 +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/DomainsApi.ts +154 -12
- package/src/apis/JobsApi.ts +163 -0
- package/src/apis/UsersApi.ts +98 -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/RegisterUserPushTokenInput.ts +86 -0
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +10 -0
|
@@ -0,0 +1,146 @@
|
|
|
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 { DomainEditPreviewRowDto } from './DomainEditPreviewRowDto';
|
|
17
|
+
import {
|
|
18
|
+
DomainEditPreviewRowDtoFromJSON,
|
|
19
|
+
DomainEditPreviewRowDtoFromJSONTyped,
|
|
20
|
+
DomainEditPreviewRowDtoToJSON,
|
|
21
|
+
DomainEditPreviewRowDtoToJSONTyped,
|
|
22
|
+
} from './DomainEditPreviewRowDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DomainEditPreviewDto
|
|
28
|
+
*/
|
|
29
|
+
export interface DomainEditPreviewDto {
|
|
30
|
+
/**
|
|
31
|
+
* False when the request could not be expressed. No operations are returned and nothing may be applied.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof DomainEditPreviewDto
|
|
34
|
+
*/
|
|
35
|
+
understood: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* One sentence describing the change, for the seller.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof DomainEditPreviewDto
|
|
40
|
+
*/
|
|
41
|
+
summary: string;
|
|
42
|
+
/**
|
|
43
|
+
* True when the request applies to only some of the selected domains. An edit has no conditions, so the seller narrows the list with search or filters first and then edits what is left.
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof DomainEditPreviewDto
|
|
46
|
+
*/
|
|
47
|
+
needsFilter: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof DomainEditPreviewDto
|
|
52
|
+
*/
|
|
53
|
+
unresolved: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The operations to send back when the seller accepts. Opaque to the client; validated server-side.
|
|
56
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
57
|
+
* @memberof DomainEditPreviewDto
|
|
58
|
+
*/
|
|
59
|
+
operations: Array<{ [key: string]: any; }>;
|
|
60
|
+
/**
|
|
61
|
+
* How many domains the edit would change.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof DomainEditPreviewDto
|
|
64
|
+
*/
|
|
65
|
+
count: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<DomainEditPreviewRowDto>}
|
|
69
|
+
* @memberof DomainEditPreviewDto
|
|
70
|
+
*/
|
|
71
|
+
sample: Array<DomainEditPreviewRowDto>;
|
|
72
|
+
/**
|
|
73
|
+
* The currency every price moves to, when the edit changes it. Null otherwise.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof DomainEditPreviewDto
|
|
76
|
+
*/
|
|
77
|
+
toCurrencyCode: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Whether prices the edit does not replace are converted at the exchange rate, or kept at their current number under the new currency. Only meaningful alongside toCurrencyCode.
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof DomainEditPreviewDto
|
|
82
|
+
*/
|
|
83
|
+
convertsPrices: boolean;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the DomainEditPreviewDto interface.
|
|
88
|
+
*/
|
|
89
|
+
export function instanceOfDomainEditPreviewDto(value: object): value is DomainEditPreviewDto {
|
|
90
|
+
if (!('understood' in value) || value['understood'] === undefined) return false;
|
|
91
|
+
if (!('summary' in value) || value['summary'] === undefined) return false;
|
|
92
|
+
if (!('needsFilter' in value) || value['needsFilter'] === undefined) return false;
|
|
93
|
+
if (!('unresolved' in value) || value['unresolved'] === undefined) return false;
|
|
94
|
+
if (!('operations' in value) || value['operations'] === undefined) return false;
|
|
95
|
+
if (!('count' in value) || value['count'] === undefined) return false;
|
|
96
|
+
if (!('sample' in value) || value['sample'] === undefined) return false;
|
|
97
|
+
if (!('toCurrencyCode' in value) || value['toCurrencyCode'] === undefined) return false;
|
|
98
|
+
if (!('convertsPrices' in value) || value['convertsPrices'] === undefined) return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function DomainEditPreviewDtoFromJSON(json: any): DomainEditPreviewDto {
|
|
103
|
+
return DomainEditPreviewDtoFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function DomainEditPreviewDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainEditPreviewDto {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'understood': json['understood'],
|
|
113
|
+
'summary': json['summary'],
|
|
114
|
+
'needsFilter': json['needsFilter'],
|
|
115
|
+
'unresolved': json['unresolved'],
|
|
116
|
+
'operations': json['operations'],
|
|
117
|
+
'count': json['count'],
|
|
118
|
+
'sample': ((json['sample'] as Array<any>).map(DomainEditPreviewRowDtoFromJSON)),
|
|
119
|
+
'toCurrencyCode': json['toCurrencyCode'],
|
|
120
|
+
'convertsPrices': json['convertsPrices'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function DomainEditPreviewDtoToJSON(json: any): DomainEditPreviewDto {
|
|
125
|
+
return DomainEditPreviewDtoToJSONTyped(json, false);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function DomainEditPreviewDtoToJSONTyped(value?: DomainEditPreviewDto | null, ignoreDiscriminator: boolean = false): any {
|
|
129
|
+
if (value == null) {
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'understood': value['understood'],
|
|
136
|
+
'summary': value['summary'],
|
|
137
|
+
'needsFilter': value['needsFilter'],
|
|
138
|
+
'unresolved': value['unresolved'],
|
|
139
|
+
'operations': value['operations'],
|
|
140
|
+
'count': value['count'],
|
|
141
|
+
'sample': ((value['sample'] as Array<any>).map(DomainEditPreviewRowDtoToJSON)),
|
|
142
|
+
'toCurrencyCode': value['toCurrencyCode'],
|
|
143
|
+
'convertsPrices': value['convertsPrices'],
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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 DomainEditPreviewRowDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DomainEditPreviewRowDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DomainEditPreviewRowDto
|
|
26
|
+
*/
|
|
27
|
+
domainName: string;
|
|
28
|
+
/**
|
|
29
|
+
* The currency the before values are in.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DomainEditPreviewRowDto
|
|
32
|
+
*/
|
|
33
|
+
currencyCode: string;
|
|
34
|
+
/**
|
|
35
|
+
* The currency the after values are in. Differs from currencyCode when the edit changes it.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DomainEditPreviewRowDto
|
|
38
|
+
*/
|
|
39
|
+
toCurrencyCode: string;
|
|
40
|
+
/**
|
|
41
|
+
* Current value per changed field, keyed by field name.
|
|
42
|
+
* @type {{ [key: string]: any; }}
|
|
43
|
+
* @memberof DomainEditPreviewRowDto
|
|
44
|
+
*/
|
|
45
|
+
before: { [key: string]: any; };
|
|
46
|
+
/**
|
|
47
|
+
* Resulting value per changed field, keyed by field name.
|
|
48
|
+
* @type {{ [key: string]: any; }}
|
|
49
|
+
* @memberof DomainEditPreviewRowDto
|
|
50
|
+
*/
|
|
51
|
+
after: { [key: string]: any; };
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the DomainEditPreviewRowDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfDomainEditPreviewRowDto(value: object): value is DomainEditPreviewRowDto {
|
|
58
|
+
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
59
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
60
|
+
if (!('toCurrencyCode' in value) || value['toCurrencyCode'] === undefined) return false;
|
|
61
|
+
if (!('before' in value) || value['before'] === undefined) return false;
|
|
62
|
+
if (!('after' in value) || value['after'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function DomainEditPreviewRowDtoFromJSON(json: any): DomainEditPreviewRowDto {
|
|
67
|
+
return DomainEditPreviewRowDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function DomainEditPreviewRowDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainEditPreviewRowDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'domainName': json['domainName'],
|
|
77
|
+
'currencyCode': json['currencyCode'],
|
|
78
|
+
'toCurrencyCode': json['toCurrencyCode'],
|
|
79
|
+
'before': json['before'],
|
|
80
|
+
'after': json['after'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function DomainEditPreviewRowDtoToJSON(json: any): DomainEditPreviewRowDto {
|
|
85
|
+
return DomainEditPreviewRowDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function DomainEditPreviewRowDtoToJSONTyped(value?: DomainEditPreviewRowDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'domainName': value['domainName'],
|
|
96
|
+
'currencyCode': value['currencyCode'],
|
|
97
|
+
'toCurrencyCode': value['toCurrencyCode'],
|
|
98
|
+
'before': value['before'],
|
|
99
|
+
'after': value['after'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -94,7 +94,8 @@ export const FeatureFlagListItemDtoNameEnum = {
|
|
|
94
94
|
USE_MAILER_FALLBACK_URL: 'USE_MAILER_FALLBACK_URL',
|
|
95
95
|
USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
|
|
96
96
|
AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
|
|
97
|
-
MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING'
|
|
97
|
+
MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING',
|
|
98
|
+
AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT'
|
|
98
99
|
} as const;
|
|
99
100
|
export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
|
|
100
101
|
|
package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
CHANGED
|
@@ -180,7 +180,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
|
|
|
180
180
|
USE_MAILER_FALLBACK_URL: 'USE_MAILER_FALLBACK_URL',
|
|
181
181
|
USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
|
|
182
182
|
AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
|
|
183
|
-
MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING'
|
|
183
|
+
MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING',
|
|
184
|
+
AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT'
|
|
184
185
|
} as const;
|
|
185
186
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
186
187
|
|
|
@@ -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
|
+
|