@randock/nameshift-api-client 0.0.71 → 0.0.73

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 (66) hide show
  1. package/.openapi-generator/FILES +14 -3
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +12 -1
  4. package/dist/apis/AdminApi.js +53 -0
  5. package/dist/apis/DomainsPublicApi.d.ts +4 -3
  6. package/dist/apis/DomainsPublicApi.js +4 -1
  7. package/dist/models/ChartDataPoint.d.ts +37 -0
  8. package/dist/models/ChartDataPoint.js +51 -0
  9. package/dist/models/DomainStats.d.ts +58 -0
  10. package/dist/models/DomainStats.js +67 -0
  11. package/dist/models/DomainTransferDetailWorkflowActionDto.d.ts +64 -0
  12. package/dist/models/DomainTransferDetailWorkflowActionDto.js +71 -0
  13. package/dist/models/DomainTransferDetailWorkflowDefinitionDto.d.ts +43 -0
  14. package/dist/models/DomainTransferDetailWorkflowDefinitionDto.js +55 -0
  15. package/dist/models/DomainTransferDetailsAuthCodeDto.d.ts +37 -0
  16. package/dist/models/DomainTransferDetailsAuthCodeDto.js +51 -0
  17. package/dist/models/DomainTransferDetailsDomainDto.d.ts +43 -0
  18. package/dist/models/DomainTransferDetailsDomainDto.js +55 -0
  19. package/dist/models/DomainTransferDetailsDto.d.ts +95 -0
  20. package/dist/models/DomainTransferDetailsDto.js +94 -0
  21. package/dist/models/DomainTransferDetailsDtoAuthCode.d.ts +37 -0
  22. package/dist/models/DomainTransferDetailsDtoAuthCode.js +51 -0
  23. package/dist/models/DomainTransferDetailsOrderBuyerDto.d.ts +49 -0
  24. package/dist/models/DomainTransferDetailsOrderBuyerDto.js +59 -0
  25. package/dist/models/DomainTransferDetailsOrderDto.d.ts +59 -0
  26. package/dist/models/DomainTransferDetailsOrderDto.js +68 -0
  27. package/dist/models/DomainTransferDetailsOrderSellerDto.d.ts +37 -0
  28. package/dist/models/DomainTransferDetailsOrderSellerDto.js +51 -0
  29. package/dist/models/DomainTransferOrderDto.d.ts +6 -0
  30. package/dist/models/DomainTransferOrderDto.js +4 -0
  31. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +65 -0
  32. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +71 -0
  33. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.d.ts +37 -0
  34. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.js +51 -0
  35. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.d.ts +37 -0
  36. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.js +51 -0
  37. package/dist/models/index.d.ts +14 -3
  38. package/dist/models/index.js +14 -3
  39. package/package.json +1 -1
  40. package/src/apis/AdminApi.ts +48 -0
  41. package/src/apis/DomainsPublicApi.ts +11 -6
  42. package/src/models/ChartDataPoint.ts +70 -0
  43. package/src/models/DomainStats.ts +106 -0
  44. package/src/models/DomainTransferDetailWorkflowActionDto.ts +109 -0
  45. package/src/models/DomainTransferDetailWorkflowDefinitionDto.ts +79 -0
  46. package/src/models/DomainTransferDetailsAuthCodeDto.ts +70 -0
  47. package/src/models/DomainTransferDetailsDomainDto.ts +79 -0
  48. package/src/models/DomainTransferDetailsDto.ts +178 -0
  49. package/src/models/DomainTransferDetailsDtoAuthCode.ts +70 -0
  50. package/src/models/DomainTransferDetailsOrderBuyerDto.ts +88 -0
  51. package/src/models/DomainTransferDetailsOrderDto.ts +112 -0
  52. package/src/models/DomainTransferDetailsOrderSellerDto.ts +70 -0
  53. package/src/models/DomainTransferOrderDto.ts +9 -0
  54. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +131 -0
  55. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.ts +70 -0
  56. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.ts +70 -0
  57. package/src/models/index.ts +14 -3
  58. package/dist/models/DomainSalesInformationDto.d.ts +0 -58
  59. package/dist/models/DomainSalesInformationDto.js +0 -66
  60. package/dist/models/DomainSalesInformationDtoBuyNowPrice.d.ts +0 -37
  61. package/dist/models/DomainSalesInformationDtoBuyNowPrice.js +0 -51
  62. package/dist/models/DomainSalesInformationDtoMinOfferPrice.d.ts +0 -37
  63. package/dist/models/DomainSalesInformationDtoMinOfferPrice.js +0 -51
  64. package/src/models/DomainSalesInformationDto.ts +0 -116
  65. package/src/models/DomainSalesInformationDtoBuyNowPrice.ts +0 -70
  66. package/src/models/DomainSalesInformationDtoMinOfferPrice.ts +0 -70
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  AdminGetAllDomainTransfers200Response,
19
19
  ChangeOrderStatusInput,
20
+ DomainTransferDetailsDto,
20
21
  GetAllOrders200Response,
21
22
  ListAccounts200Response,
22
23
  NotFoundException,
@@ -28,6 +29,8 @@ import {
28
29
  AdminGetAllDomainTransfers200ResponseToJSON,
29
30
  ChangeOrderStatusInputFromJSON,
30
31
  ChangeOrderStatusInputToJSON,
32
+ DomainTransferDetailsDtoFromJSON,
33
+ DomainTransferDetailsDtoToJSON,
31
34
  GetAllOrders200ResponseFromJSON,
32
35
  GetAllOrders200ResponseToJSON,
33
36
  ListAccounts200ResponseFromJSON,
@@ -52,6 +55,10 @@ export interface AdminApiChangeOrderStatusRequest {
52
55
  changeOrderStatusInput: ChangeOrderStatusInput;
53
56
  }
54
57
 
58
+ export interface AdminApiGetAdminDomainTransferDetailsRequest {
59
+ transferId: string;
60
+ }
61
+
55
62
  export interface AdminApiGetAllOrdersRequest {
56
63
  filter?: object;
57
64
  page?: number;
@@ -171,6 +178,47 @@ export class AdminApi extends runtime.BaseAPI {
171
178
  await this.changeOrderStatusRaw(requestParameters, initOverrides);
172
179
  }
173
180
 
181
+ /**
182
+ *
183
+ */
184
+ async getAdminDomainTransferDetailsRaw(requestParameters: AdminApiGetAdminDomainTransferDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTransferDetailsDto>> {
185
+ if (requestParameters['transferId'] == null) {
186
+ throw new runtime.RequiredError(
187
+ 'transferId',
188
+ 'Required parameter "transferId" was null or undefined when calling getAdminDomainTransferDetails().'
189
+ );
190
+ }
191
+
192
+ const queryParameters: any = {};
193
+
194
+ const headerParameters: runtime.HTTPHeaders = {};
195
+
196
+ if (this.configuration && this.configuration.accessToken) {
197
+ const token = this.configuration.accessToken;
198
+ const tokenString = await token("bearer", []);
199
+
200
+ if (tokenString) {
201
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
202
+ }
203
+ }
204
+ const response = await this.request({
205
+ path: `/admin/domains/transfers/{transferId}`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
206
+ method: 'GET',
207
+ headers: headerParameters,
208
+ query: queryParameters,
209
+ }, initOverrides);
210
+
211
+ return new runtime.JSONApiResponse(response, (jsonValue) => DomainTransferDetailsDtoFromJSON(jsonValue));
212
+ }
213
+
214
+ /**
215
+ *
216
+ */
217
+ async getAdminDomainTransferDetails(requestParameters: AdminApiGetAdminDomainTransferDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainTransferDetailsDto> {
218
+ const response = await this.getAdminDomainTransferDetailsRaw(requestParameters, initOverrides);
219
+ return await response.value();
220
+ }
221
+
174
222
  /**
175
223
  *
176
224
  */
@@ -15,14 +15,14 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- DomainSalesInformationDto,
18
+ IntersectionDomainSalesInformationDtoWithDomainStatsDto,
19
19
  NotFoundException,
20
20
  ThrottlerException,
21
21
  ValidationException,
22
22
  } from '../models/index';
23
23
  import {
24
- DomainSalesInformationDtoFromJSON,
25
- DomainSalesInformationDtoToJSON,
24
+ IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON,
25
+ IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON,
26
26
  NotFoundExceptionFromJSON,
27
27
  NotFoundExceptionToJSON,
28
28
  ThrottlerExceptionFromJSON,
@@ -33,6 +33,7 @@ import {
33
33
 
34
34
  export interface DomainsPublicApiGetDomainSalesInformationRequest {
35
35
  domainName: string;
36
+ includeStats?: boolean;
36
37
  }
37
38
 
38
39
  /**
@@ -43,7 +44,7 @@ export class DomainsPublicApi extends runtime.BaseAPI {
43
44
  /**
44
45
  *
45
46
  */
46
- async getDomainSalesInformationRaw(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainSalesInformationDto>> {
47
+ async getDomainSalesInformationRaw(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionDomainSalesInformationDtoWithDomainStatsDto>> {
47
48
  if (requestParameters['domainName'] == null) {
48
49
  throw new runtime.RequiredError(
49
50
  'domainName',
@@ -53,6 +54,10 @@ export class DomainsPublicApi extends runtime.BaseAPI {
53
54
 
54
55
  const queryParameters: any = {};
55
56
 
57
+ if (requestParameters['includeStats'] != null) {
58
+ queryParameters['includeStats'] = requestParameters['includeStats'];
59
+ }
60
+
56
61
  const headerParameters: runtime.HTTPHeaders = {};
57
62
 
58
63
  const response = await this.request({
@@ -62,13 +67,13 @@ export class DomainsPublicApi extends runtime.BaseAPI {
62
67
  query: queryParameters,
63
68
  }, initOverrides);
64
69
 
65
- return new runtime.JSONApiResponse(response, (jsonValue) => DomainSalesInformationDtoFromJSON(jsonValue));
70
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON(jsonValue));
66
71
  }
67
72
 
68
73
  /**
69
74
  *
70
75
  */
71
- async getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainSalesInformationDto> {
76
+ async getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionDomainSalesInformationDtoWithDomainStatsDto> {
72
77
  const response = await this.getDomainSalesInformationRaw(requestParameters, initOverrides);
73
78
  return await response.value();
74
79
  }
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
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 ChartDataPoint
20
+ */
21
+ export interface ChartDataPoint {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ChartDataPoint
26
+ */
27
+ date: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ChartDataPoint
32
+ */
33
+ value: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ChartDataPoint interface.
38
+ */
39
+ export function instanceOfChartDataPoint(value: object): value is ChartDataPoint {
40
+ if (!('date' in value) || value['date'] === undefined) return false;
41
+ if (!('value' in value) || value['value'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ChartDataPointFromJSON(json: any): ChartDataPoint {
46
+ return ChartDataPointFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ChartDataPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChartDataPoint {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'date': json['date'],
56
+ 'value': json['value'],
57
+ };
58
+ }
59
+
60
+ export function ChartDataPointToJSON(value?: ChartDataPoint | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'date': value['date'],
67
+ 'value': value['value'],
68
+ };
69
+ }
70
+
@@ -0,0 +1,106 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
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 { ChartDataPoint } from './ChartDataPoint';
17
+ import {
18
+ ChartDataPointFromJSON,
19
+ ChartDataPointFromJSONTyped,
20
+ ChartDataPointToJSON,
21
+ } from './ChartDataPoint';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface DomainStats
27
+ */
28
+ export interface DomainStats {
29
+ /**
30
+ * The id for this website.
31
+ * @type {string}
32
+ * @memberof DomainStats
33
+ */
34
+ websiteId: string;
35
+ /**
36
+ * The url for public stats for this website.
37
+ * @type {string}
38
+ * @memberof DomainStats
39
+ */
40
+ shareUrl: string;
41
+ /**
42
+ * The time unit
43
+ * @type {string}
44
+ * @memberof DomainStats
45
+ */
46
+ chartUnit: DomainStatsChartUnitEnum;
47
+ /**
48
+ * The data for the chart
49
+ * @type {Array<ChartDataPoint>}
50
+ * @memberof DomainStats
51
+ */
52
+ chartData: Array<ChartDataPoint>;
53
+ }
54
+
55
+
56
+ /**
57
+ * @export
58
+ */
59
+ export const DomainStatsChartUnitEnum = {
60
+ DAY: 'day',
61
+ MONTH: 'month'
62
+ } as const;
63
+ export type DomainStatsChartUnitEnum = typeof DomainStatsChartUnitEnum[keyof typeof DomainStatsChartUnitEnum];
64
+
65
+
66
+ /**
67
+ * Check if a given object implements the DomainStats interface.
68
+ */
69
+ export function instanceOfDomainStats(value: object): value is DomainStats {
70
+ if (!('websiteId' in value) || value['websiteId'] === undefined) return false;
71
+ if (!('shareUrl' in value) || value['shareUrl'] === undefined) return false;
72
+ if (!('chartUnit' in value) || value['chartUnit'] === undefined) return false;
73
+ if (!('chartData' in value) || value['chartData'] === undefined) return false;
74
+ return true;
75
+ }
76
+
77
+ export function DomainStatsFromJSON(json: any): DomainStats {
78
+ return DomainStatsFromJSONTyped(json, false);
79
+ }
80
+
81
+ export function DomainStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainStats {
82
+ if (json == null) {
83
+ return json;
84
+ }
85
+ return {
86
+
87
+ 'websiteId': json['websiteId'],
88
+ 'shareUrl': json['shareUrl'],
89
+ 'chartUnit': json['chartUnit'],
90
+ 'chartData': ((json['chartData'] as Array<any>).map(ChartDataPointFromJSON)),
91
+ };
92
+ }
93
+
94
+ export function DomainStatsToJSON(value?: DomainStats | null): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+ return {
99
+
100
+ 'websiteId': value['websiteId'],
101
+ 'shareUrl': value['shareUrl'],
102
+ 'chartUnit': value['chartUnit'],
103
+ 'chartData': ((value['chartData'] as Array<any>).map(ChartDataPointToJSON)),
104
+ };
105
+ }
106
+
@@ -0,0 +1,109 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
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 DomainTransferDetailWorkflowActionDto
20
+ */
21
+ export interface DomainTransferDetailWorkflowActionDto {
22
+ /**
23
+ * The domain transfer workflow action status
24
+ * @type {string}
25
+ * @memberof DomainTransferDetailWorkflowActionDto
26
+ */
27
+ status: DomainTransferDetailWorkflowActionDtoStatusEnum;
28
+ /**
29
+ * The domain transfer workflow action ID
30
+ * @type {object}
31
+ * @memberof DomainTransferDetailWorkflowActionDto
32
+ */
33
+ id: object;
34
+ /**
35
+ * The domain transfer workflow action name
36
+ * @type {string}
37
+ * @memberof DomainTransferDetailWorkflowActionDto
38
+ */
39
+ name: string;
40
+ /**
41
+ * The domain transfer workflow action created at
42
+ * @type {Date}
43
+ * @memberof DomainTransferDetailWorkflowActionDto
44
+ */
45
+ createdAt: Date;
46
+ /**
47
+ * The domain transfer workflow action requirements
48
+ * @type {Array<string>}
49
+ * @memberof DomainTransferDetailWorkflowActionDto
50
+ */
51
+ requirements: Array<string>;
52
+ }
53
+
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const DomainTransferDetailWorkflowActionDtoStatusEnum = {
59
+ PENDING: 'pending',
60
+ FINISHED: 'finished',
61
+ WAITING_INTERACTION: 'waitingInteraction'
62
+ } as const;
63
+ export type DomainTransferDetailWorkflowActionDtoStatusEnum = typeof DomainTransferDetailWorkflowActionDtoStatusEnum[keyof typeof DomainTransferDetailWorkflowActionDtoStatusEnum];
64
+
65
+
66
+ /**
67
+ * Check if a given object implements the DomainTransferDetailWorkflowActionDto interface.
68
+ */
69
+ export function instanceOfDomainTransferDetailWorkflowActionDto(value: object): value is DomainTransferDetailWorkflowActionDto {
70
+ if (!('status' in value) || value['status'] === undefined) return false;
71
+ if (!('id' in value) || value['id'] === undefined) return false;
72
+ if (!('name' in value) || value['name'] === undefined) return false;
73
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
74
+ if (!('requirements' in value) || value['requirements'] === undefined) return false;
75
+ return true;
76
+ }
77
+
78
+ export function DomainTransferDetailWorkflowActionDtoFromJSON(json: any): DomainTransferDetailWorkflowActionDto {
79
+ return DomainTransferDetailWorkflowActionDtoFromJSONTyped(json, false);
80
+ }
81
+
82
+ export function DomainTransferDetailWorkflowActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferDetailWorkflowActionDto {
83
+ if (json == null) {
84
+ return json;
85
+ }
86
+ return {
87
+
88
+ 'status': json['status'],
89
+ 'id': json['id'],
90
+ 'name': json['name'],
91
+ 'createdAt': (new Date(json['createdAt'])),
92
+ 'requirements': json['requirements'],
93
+ };
94
+ }
95
+
96
+ export function DomainTransferDetailWorkflowActionDtoToJSON(value?: DomainTransferDetailWorkflowActionDto | null): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+ return {
101
+
102
+ 'status': value['status'],
103
+ 'id': value['id'],
104
+ 'name': value['name'],
105
+ 'createdAt': ((value['createdAt']).toISOString()),
106
+ 'requirements': value['requirements'],
107
+ };
108
+ }
109
+
@@ -0,0 +1,79 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
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 DomainTransferDetailWorkflowDefinitionDto
20
+ */
21
+ export interface DomainTransferDetailWorkflowDefinitionDto {
22
+ /**
23
+ * The domain transfer workflow action name
24
+ * @type {string}
25
+ * @memberof DomainTransferDetailWorkflowDefinitionDto
26
+ */
27
+ name: string;
28
+ /**
29
+ * The domain transfer workflow action requirements
30
+ * @type {Array<string>}
31
+ * @memberof DomainTransferDetailWorkflowDefinitionDto
32
+ */
33
+ requirements: Array<string>;
34
+ /**
35
+ * The domain transfer workflow action isInitial
36
+ * @type {boolean}
37
+ * @memberof DomainTransferDetailWorkflowDefinitionDto
38
+ */
39
+ isInitial: boolean;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the DomainTransferDetailWorkflowDefinitionDto interface.
44
+ */
45
+ export function instanceOfDomainTransferDetailWorkflowDefinitionDto(value: object): value is DomainTransferDetailWorkflowDefinitionDto {
46
+ if (!('name' in value) || value['name'] === undefined) return false;
47
+ if (!('requirements' in value) || value['requirements'] === undefined) return false;
48
+ if (!('isInitial' in value) || value['isInitial'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function DomainTransferDetailWorkflowDefinitionDtoFromJSON(json: any): DomainTransferDetailWorkflowDefinitionDto {
53
+ return DomainTransferDetailWorkflowDefinitionDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function DomainTransferDetailWorkflowDefinitionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferDetailWorkflowDefinitionDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'name': json['name'],
63
+ 'requirements': json['requirements'],
64
+ 'isInitial': json['isInitial'],
65
+ };
66
+ }
67
+
68
+ export function DomainTransferDetailWorkflowDefinitionDtoToJSON(value?: DomainTransferDetailWorkflowDefinitionDto | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'name': value['name'],
75
+ 'requirements': value['requirements'],
76
+ 'isInitial': value['isInitial'],
77
+ };
78
+ }
79
+
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
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 DomainTransferDetailsAuthCodeDto
20
+ */
21
+ export interface DomainTransferDetailsAuthCodeDto {
22
+ /**
23
+ * The domain transfer auth code value
24
+ * @type {string}
25
+ * @memberof DomainTransferDetailsAuthCodeDto
26
+ */
27
+ value: string;
28
+ /**
29
+ * The domain transfer auth code expiry date
30
+ * @type {Date}
31
+ * @memberof DomainTransferDetailsAuthCodeDto
32
+ */
33
+ updatedAt: Date;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the DomainTransferDetailsAuthCodeDto interface.
38
+ */
39
+ export function instanceOfDomainTransferDetailsAuthCodeDto(value: object): value is DomainTransferDetailsAuthCodeDto {
40
+ if (!('value' in value) || value['value'] === undefined) return false;
41
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function DomainTransferDetailsAuthCodeDtoFromJSON(json: any): DomainTransferDetailsAuthCodeDto {
46
+ return DomainTransferDetailsAuthCodeDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function DomainTransferDetailsAuthCodeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferDetailsAuthCodeDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'value': json['value'],
56
+ 'updatedAt': (new Date(json['updatedAt'])),
57
+ };
58
+ }
59
+
60
+ export function DomainTransferDetailsAuthCodeDtoToJSON(value?: DomainTransferDetailsAuthCodeDto | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'value': value['value'],
67
+ 'updatedAt': ((value['updatedAt']).toISOString()),
68
+ };
69
+ }
70
+
@@ -0,0 +1,79 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
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 DomainTransferDetailsDomainDto
20
+ */
21
+ export interface DomainTransferDetailsDomainDto {
22
+ /**
23
+ * The domain ID
24
+ * @type {object}
25
+ * @memberof DomainTransferDetailsDomainDto
26
+ */
27
+ id: object;
28
+ /**
29
+ * The domain name
30
+ * @type {string}
31
+ * @memberof DomainTransferDetailsDomainDto
32
+ */
33
+ name: string;
34
+ /**
35
+ * The domain TLD
36
+ * @type {string}
37
+ * @memberof DomainTransferDetailsDomainDto
38
+ */
39
+ tld: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the DomainTransferDetailsDomainDto interface.
44
+ */
45
+ export function instanceOfDomainTransferDetailsDomainDto(value: object): value is DomainTransferDetailsDomainDto {
46
+ if (!('id' in value) || value['id'] === undefined) return false;
47
+ if (!('name' in value) || value['name'] === undefined) return false;
48
+ if (!('tld' in value) || value['tld'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function DomainTransferDetailsDomainDtoFromJSON(json: any): DomainTransferDetailsDomainDto {
53
+ return DomainTransferDetailsDomainDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function DomainTransferDetailsDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferDetailsDomainDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'id': json['id'],
63
+ 'name': json['name'],
64
+ 'tld': json['tld'],
65
+ };
66
+ }
67
+
68
+ export function DomainTransferDetailsDomainDtoToJSON(value?: DomainTransferDetailsDomainDto | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'id': value['id'],
75
+ 'name': value['name'],
76
+ 'tld': value['tld'],
77
+ };
78
+ }
79
+