@randock/nameshift-api-client 0.0.178 → 0.0.179

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 (54) hide show
  1. package/.openapi-generator/FILES +5 -1
  2. package/README.md +3 -3
  3. package/dist/models/AccountDto.d.ts +6 -0
  4. package/dist/models/AccountDto.js +4 -0
  5. package/dist/models/DomainTransferDetailWorkflowStepDto.d.ts +6 -0
  6. package/dist/models/DomainTransferDetailWorkflowStepDto.js +4 -0
  7. package/dist/models/DomainTransferDetailsDto.d.ts +4 -4
  8. package/dist/models/DomainTransferDetailsDto.js +3 -3
  9. package/dist/models/DomainTransferDetailsWorkflowDto.d.ts +47 -0
  10. package/dist/models/DomainTransferDetailsWorkflowDto.js +64 -0
  11. package/dist/models/DomainTransferDto.d.ts +7 -0
  12. package/dist/models/DomainTransferDto.js +5 -0
  13. package/dist/models/DomainTransferOrderDto.d.ts +4 -9
  14. package/dist/models/DomainTransferOrderDto.js +4 -7
  15. package/dist/models/DomainTransferOrderSellerAccountDto.d.ts +50 -0
  16. package/dist/models/DomainTransferOrderSellerAccountDto.js +63 -0
  17. package/dist/models/DomainTransferWorkflowDto.d.ts +40 -0
  18. package/dist/models/DomainTransferWorkflowDto.js +59 -0
  19. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDto.d.ts +6 -0
  20. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDto.js +4 -0
  21. package/dist/models/InvoiceDto.d.ts +21 -0
  22. package/dist/models/InvoiceDto.js +17 -1
  23. package/dist/models/InvoiceSellerAccountDto.d.ts +50 -0
  24. package/dist/models/InvoiceSellerAccountDto.js +63 -0
  25. package/dist/models/ListAccountDto.d.ts +19 -0
  26. package/dist/models/ListAccountDto.js +13 -0
  27. package/dist/models/ListAccountMetricsDto.d.ts +56 -0
  28. package/dist/models/ListAccountMetricsDto.js +67 -0
  29. package/dist/models/ListDomains200Response.d.ts +3 -3
  30. package/dist/models/ListDomains200Response.js +3 -3
  31. package/dist/models/OrderListItemDtoSellerAccount.d.ts +12 -0
  32. package/dist/models/OrderListItemDtoSellerAccount.js +8 -0
  33. package/dist/models/index.d.ts +5 -1
  34. package/dist/models/index.js +5 -1
  35. package/package.json +1 -1
  36. package/src/models/AccountDto.ts +9 -0
  37. package/src/models/DomainTransferDetailWorkflowStepDto.ts +9 -0
  38. package/src/models/DomainTransferDetailsDto.ts +11 -11
  39. package/src/models/DomainTransferDetailsWorkflowDto.ts +94 -0
  40. package/src/models/DomainTransferDto.ts +16 -0
  41. package/src/models/DomainTransferOrderDto.ts +14 -15
  42. package/src/models/DomainTransferOrderSellerAccountDto.ts +93 -0
  43. package/src/models/DomainTransferWorkflowDto.ts +77 -0
  44. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDto.ts +9 -0
  45. package/src/models/InvoiceDto.ts +34 -0
  46. package/src/models/InvoiceSellerAccountDto.ts +93 -0
  47. package/src/models/ListAccountDto.ts +35 -0
  48. package/src/models/ListAccountMetricsDto.ts +102 -0
  49. package/src/models/ListDomains200Response.ts +10 -10
  50. package/src/models/OrderListItemDtoSellerAccount.ts +18 -0
  51. package/src/models/index.ts +5 -1
  52. package/dist/models/IntersectionDomainDtoWithAccountNameDto.d.ts +0 -118
  53. package/dist/models/IntersectionDomainDtoWithAccountNameDto.js +0 -108
  54. package/src/models/IntersectionDomainDtoWithAccountNameDto.ts +0 -201
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { ListAccountMetricsDto } from './ListAccountMetricsDto';
17
+ import {
18
+ ListAccountMetricsDtoFromJSON,
19
+ ListAccountMetricsDtoFromJSONTyped,
20
+ ListAccountMetricsDtoToJSON,
21
+ ListAccountMetricsDtoToJSONTyped,
22
+ } from './ListAccountMetricsDto';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -25,6 +33,12 @@ export interface ListAccountDto {
25
33
  * @memberof ListAccountDto
26
34
  */
27
35
  id: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ListAccountDto
40
+ */
41
+ identifier: string;
28
42
  /**
29
43
  *
30
44
  * @type {Date}
@@ -43,6 +57,18 @@ export interface ListAccountDto {
43
57
  * @memberof ListAccountDto
44
58
  */
45
59
  type: string | null;
60
+ /**
61
+ *
62
+ * @type {ListAccountMetricsDto}
63
+ * @memberof ListAccountDto
64
+ */
65
+ metrics: ListAccountMetricsDto;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof ListAccountDto
70
+ */
71
+ lastOnline: Date;
46
72
  }
47
73
 
48
74
  /**
@@ -50,9 +76,12 @@ export interface ListAccountDto {
50
76
  */
51
77
  export function instanceOfListAccountDto(value: object): value is ListAccountDto {
52
78
  if (!('id' in value) || value['id'] === undefined) return false;
79
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
53
80
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
54
81
  if (!('name' in value) || value['name'] === undefined) return false;
55
82
  if (!('type' in value) || value['type'] === undefined) return false;
83
+ if (!('metrics' in value) || value['metrics'] === undefined) return false;
84
+ if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
56
85
  return true;
57
86
  }
58
87
 
@@ -67,9 +96,12 @@ export function ListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: bool
67
96
  return {
68
97
 
69
98
  'id': json['id'],
99
+ 'identifier': json['identifier'],
70
100
  'createdAt': (new Date(json['createdAt'])),
71
101
  'name': json['name'],
72
102
  'type': json['type'],
103
+ 'metrics': ListAccountMetricsDtoFromJSON(json['metrics']),
104
+ 'lastOnline': (new Date(json['lastOnline'])),
73
105
  };
74
106
  }
75
107
 
@@ -85,9 +117,12 @@ export function ListAccountDtoToJSONTyped(value?: ListAccountDto | null, ignoreD
85
117
  return {
86
118
 
87
119
  'id': value['id'],
120
+ 'identifier': value['identifier'],
88
121
  'createdAt': ((value['createdAt']).toISOString()),
89
122
  'name': value['name'],
90
123
  'type': value['type'],
124
+ 'metrics': ListAccountMetricsDtoToJSON(value['metrics']),
125
+ 'lastOnline': ((value['lastOnline']).toISOString()),
91
126
  };
92
127
  }
93
128
 
@@ -0,0 +1,102 @@
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 ListAccountMetricsDto
20
+ */
21
+ export interface ListAccountMetricsDto {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ListAccountMetricsDto
26
+ */
27
+ leadsNumber: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ListAccountMetricsDto
32
+ */
33
+ domainsNumber: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof ListAccountMetricsDto
38
+ */
39
+ activeLeadsNumber: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof ListAccountMetricsDto
44
+ */
45
+ activeDomainTransfersNumber: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof ListAccountMetricsDto
50
+ */
51
+ tasksNumber: number;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the ListAccountMetricsDto interface.
56
+ */
57
+ export function instanceOfListAccountMetricsDto(value: object): value is ListAccountMetricsDto {
58
+ if (!('leadsNumber' in value) || value['leadsNumber'] === undefined) return false;
59
+ if (!('domainsNumber' in value) || value['domainsNumber'] === undefined) return false;
60
+ if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined) return false;
61
+ if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined) return false;
62
+ if (!('tasksNumber' in value) || value['tasksNumber'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function ListAccountMetricsDtoFromJSON(json: any): ListAccountMetricsDto {
67
+ return ListAccountMetricsDtoFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ListAccountMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAccountMetricsDto {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'leadsNumber': json['leadsNumber'],
77
+ 'domainsNumber': json['domainsNumber'],
78
+ 'activeLeadsNumber': json['activeLeadsNumber'],
79
+ 'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
80
+ 'tasksNumber': json['tasksNumber'],
81
+ };
82
+ }
83
+
84
+ export function ListAccountMetricsDtoToJSON(json: any): ListAccountMetricsDto {
85
+ return ListAccountMetricsDtoToJSONTyped(json, false);
86
+ }
87
+
88
+ export function ListAccountMetricsDtoToJSONTyped(value?: ListAccountMetricsDto | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'leadsNumber': value['leadsNumber'],
96
+ 'domainsNumber': value['domainsNumber'],
97
+ 'activeLeadsNumber': value['activeLeadsNumber'],
98
+ 'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
99
+ 'tasksNumber': value['tasksNumber'],
100
+ };
101
+ }
102
+
@@ -20,13 +20,13 @@ import {
20
20
  PaginateResponseLinksToJSON,
21
21
  PaginateResponseLinksToJSONTyped,
22
22
  } from './PaginateResponseLinks';
23
- import type { IntersectionDomainDtoWithAccountNameDto } from './IntersectionDomainDtoWithAccountNameDto';
23
+ import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
24
24
  import {
25
- IntersectionDomainDtoWithAccountNameDtoFromJSON,
26
- IntersectionDomainDtoWithAccountNameDtoFromJSONTyped,
27
- IntersectionDomainDtoWithAccountNameDtoToJSON,
28
- IntersectionDomainDtoWithAccountNameDtoToJSONTyped,
29
- } from './IntersectionDomainDtoWithAccountNameDto';
25
+ IntersectionDomainDtoWithAccountDtoFromJSON,
26
+ IntersectionDomainDtoWithAccountDtoFromJSONTyped,
27
+ IntersectionDomainDtoWithAccountDtoToJSON,
28
+ IntersectionDomainDtoWithAccountDtoToJSONTyped,
29
+ } from './IntersectionDomainDtoWithAccountDto';
30
30
  import type { PaginateResponseMeta } from './PaginateResponseMeta';
31
31
  import {
32
32
  PaginateResponseMetaFromJSON,
@@ -43,10 +43,10 @@ import {
43
43
  export interface ListDomains200Response {
44
44
  /**
45
45
  *
46
- * @type {Array<IntersectionDomainDtoWithAccountNameDto>}
46
+ * @type {Array<IntersectionDomainDtoWithAccountDto>}
47
47
  * @memberof ListDomains200Response
48
48
  */
49
- data: Array<IntersectionDomainDtoWithAccountNameDto>;
49
+ data: Array<IntersectionDomainDtoWithAccountDto>;
50
50
  /**
51
51
  *
52
52
  * @type {PaginateResponseMeta}
@@ -81,7 +81,7 @@ export function ListDomains200ResponseFromJSONTyped(json: any, ignoreDiscriminat
81
81
  }
82
82
  return {
83
83
 
84
- 'data': ((json['data'] as Array<any>).map(IntersectionDomainDtoWithAccountNameDtoFromJSON)),
84
+ 'data': ((json['data'] as Array<any>).map(IntersectionDomainDtoWithAccountDtoFromJSON)),
85
85
  'meta': PaginateResponseMetaFromJSON(json['meta']),
86
86
  'links': PaginateResponseLinksFromJSON(json['links']),
87
87
  };
@@ -98,7 +98,7 @@ export function ListDomains200ResponseToJSONTyped(value?: ListDomains200Response
98
98
 
99
99
  return {
100
100
 
101
- 'data': ((value['data'] as Array<any>).map(IntersectionDomainDtoWithAccountNameDtoToJSON)),
101
+ 'data': ((value['data'] as Array<any>).map(IntersectionDomainDtoWithAccountDtoToJSON)),
102
102
  'meta': PaginateResponseMetaToJSON(value['meta']),
103
103
  'links': PaginateResponseLinksToJSON(value['links']),
104
104
  };
@@ -31,6 +31,18 @@ export interface OrderListItemDtoSellerAccount {
31
31
  * @memberof OrderListItemDtoSellerAccount
32
32
  */
33
33
  identifier: string;
34
+ /**
35
+ * The order seller account name
36
+ * @type {string}
37
+ * @memberof OrderListItemDtoSellerAccount
38
+ */
39
+ name: string;
40
+ /**
41
+ * Indicates if order seller account is a business or not
42
+ * @type {boolean}
43
+ * @memberof OrderListItemDtoSellerAccount
44
+ */
45
+ isBusiness: boolean | null;
34
46
  }
35
47
 
36
48
  /**
@@ -39,6 +51,8 @@ export interface OrderListItemDtoSellerAccount {
39
51
  export function instanceOfOrderListItemDtoSellerAccount(value: object): value is OrderListItemDtoSellerAccount {
40
52
  if (!('accountId' in value) || value['accountId'] === undefined) return false;
41
53
  if (!('identifier' in value) || value['identifier'] === undefined) return false;
54
+ if (!('name' in value) || value['name'] === undefined) return false;
55
+ if (!('isBusiness' in value) || value['isBusiness'] === undefined) return false;
42
56
  return true;
43
57
  }
44
58
 
@@ -54,6 +68,8 @@ export function OrderListItemDtoSellerAccountFromJSONTyped(json: any, ignoreDisc
54
68
 
55
69
  'accountId': json['accountId'],
56
70
  'identifier': json['identifier'],
71
+ 'name': json['name'],
72
+ 'isBusiness': json['isBusiness'],
57
73
  };
58
74
  }
59
75
 
@@ -70,6 +86,8 @@ export function OrderListItemDtoSellerAccountToJSONTyped(value?: OrderListItemDt
70
86
 
71
87
  'accountId': value['accountId'],
72
88
  'identifier': value['identifier'],
89
+ 'name': value['name'],
90
+ 'isBusiness': value['isBusiness'],
73
91
  };
74
92
  }
75
93
 
@@ -52,9 +52,12 @@ export * from './DomainTransferDetailsOrderDto';
52
52
  export * from './DomainTransferDetailsOrderSellerDto';
53
53
  export * from './DomainTransferDetailsOrderSellerUserDto';
54
54
  export * from './DomainTransferDetailsValidationDto';
55
+ export * from './DomainTransferDetailsWorkflowDto';
55
56
  export * from './DomainTransferDomainDto';
56
57
  export * from './DomainTransferDto';
57
58
  export * from './DomainTransferOrderDto';
59
+ export * from './DomainTransferOrderSellerAccountDto';
60
+ export * from './DomainTransferWorkflowDto';
58
61
  export * from './DomainUrlDto';
59
62
  export * from './ForgotPasswordRequestInput';
60
63
  export * from './GetAllDomainTransfers200Response';
@@ -66,7 +69,6 @@ export * from './GetBuyerTransfers200Response';
66
69
  export * from './HttpException';
67
70
  export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDto';
68
71
  export * from './IntersectionDomainDtoWithAccountDto';
69
- export * from './IntersectionDomainDtoWithAccountNameDto';
70
72
  export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
71
73
  export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
72
74
  export * from './IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto';
@@ -76,6 +78,7 @@ export * from './InvoiceDomainDto';
76
78
  export * from './InvoiceDto';
77
79
  export * from './InvoiceItemDto';
78
80
  export * from './InvoiceItemTaxDto';
81
+ export * from './InvoiceSellerAccountDto';
79
82
  export * from './InvoiceTransactionDto';
80
83
  export * from './LeadDomainDto';
81
84
  export * from './LeadDto';
@@ -87,6 +90,7 @@ export * from './List200Response1';
87
90
  export * from './List200Response2';
88
91
  export * from './List200Response3';
89
92
  export * from './ListAccountDto';
93
+ export * from './ListAccountMetricsDto';
90
94
  export * from './ListAccounts200Response';
91
95
  export * from './ListDomains200Response';
92
96
  export * from './ListLeadMessagesDto';
@@ -1,118 +0,0 @@
1
- /**
2
- * Nameshift
3
- * Nameshift API
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { MoneyDto } from './MoneyDto';
13
- /**
14
- *
15
- * @export
16
- * @interface IntersectionDomainDtoWithAccountNameDto
17
- */
18
- export interface IntersectionDomainDtoWithAccountNameDto {
19
- /**
20
- * The uuid for this domain.
21
- * @type {string}
22
- * @memberof IntersectionDomainDtoWithAccountNameDto
23
- */
24
- id: string;
25
- /**
26
- * The current owner for the domain
27
- * @type {string}
28
- * @memberof IntersectionDomainDtoWithAccountNameDto
29
- */
30
- accountId: string;
31
- /**
32
- * The hijacker for the domain
33
- * @type {string}
34
- * @memberof IntersectionDomainDtoWithAccountNameDto
35
- */
36
- hijackerId: string | null;
37
- /**
38
- * The TLD for this domain.
39
- * @type {string}
40
- * @memberof IntersectionDomainDtoWithAccountNameDto
41
- */
42
- tld: string;
43
- /**
44
- * Whether this domain is verified by the owner (ns3, txt) or not.
45
- * @type {boolean}
46
- * @memberof IntersectionDomainDtoWithAccountNameDto
47
- */
48
- verified: boolean;
49
- /**
50
- * Whether the nameservers (ns1,ns2) are set or not.
51
- * @type {boolean}
52
- * @memberof IntersectionDomainDtoWithAccountNameDto
53
- */
54
- nameservers: boolean;
55
- /**
56
- * The ASCII domain name (example.com, xn--maana-pta.com)
57
- * @type {string}
58
- * @memberof IntersectionDomainDtoWithAccountNameDto
59
- */
60
- name: string;
61
- /**
62
- * The unicode domain name (example.com, mañana.com)
63
- * @type {string}
64
- * @memberof IntersectionDomainDtoWithAccountNameDto
65
- */
66
- displayName: string;
67
- /**
68
- * /**
69
- * The domain's currency code (ISO 4217)
70
- * @type {string}
71
- * @memberof IntersectionDomainDtoWithAccountNameDto
72
- */
73
- currencyCode: string;
74
- /**
75
- * The BIN
76
- * @type {MoneyDto}
77
- * @memberof IntersectionDomainDtoWithAccountNameDto
78
- */
79
- buyNow: MoneyDto;
80
- /**
81
- * The minimum offer
82
- * @type {MoneyDto}
83
- * @memberof IntersectionDomainDtoWithAccountNameDto
84
- */
85
- minOffer: MoneyDto;
86
- /**
87
- * The creation date
88
- * @type {Date}
89
- * @memberof IntersectionDomainDtoWithAccountNameDto
90
- */
91
- createdAt: Date;
92
- /**
93
- * The deletion date
94
- * @type {Date}
95
- * @memberof IntersectionDomainDtoWithAccountNameDto
96
- */
97
- deletedAt: Date | null;
98
- /**
99
- * The amount of pageviews for this domain, or null if none are tracked.
100
- * @type {number}
101
- * @memberof IntersectionDomainDtoWithAccountNameDto
102
- */
103
- pageviews: number;
104
- /**
105
- *
106
- * @type {string}
107
- * @memberof IntersectionDomainDtoWithAccountNameDto
108
- */
109
- accountName: string | null;
110
- }
111
- /**
112
- * Check if a given object implements the IntersectionDomainDtoWithAccountNameDto interface.
113
- */
114
- export declare function instanceOfIntersectionDomainDtoWithAccountNameDto(value: object): value is IntersectionDomainDtoWithAccountNameDto;
115
- export declare function IntersectionDomainDtoWithAccountNameDtoFromJSON(json: any): IntersectionDomainDtoWithAccountNameDto;
116
- export declare function IntersectionDomainDtoWithAccountNameDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainDtoWithAccountNameDto;
117
- export declare function IntersectionDomainDtoWithAccountNameDtoToJSON(json: any): IntersectionDomainDtoWithAccountNameDto;
118
- export declare function IntersectionDomainDtoWithAccountNameDtoToJSONTyped(value?: IntersectionDomainDtoWithAccountNameDto | null, ignoreDiscriminator?: boolean): any;
@@ -1,108 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Nameshift
6
- * Nameshift API
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfIntersectionDomainDtoWithAccountNameDto = instanceOfIntersectionDomainDtoWithAccountNameDto;
17
- exports.IntersectionDomainDtoWithAccountNameDtoFromJSON = IntersectionDomainDtoWithAccountNameDtoFromJSON;
18
- exports.IntersectionDomainDtoWithAccountNameDtoFromJSONTyped = IntersectionDomainDtoWithAccountNameDtoFromJSONTyped;
19
- exports.IntersectionDomainDtoWithAccountNameDtoToJSON = IntersectionDomainDtoWithAccountNameDtoToJSON;
20
- exports.IntersectionDomainDtoWithAccountNameDtoToJSONTyped = IntersectionDomainDtoWithAccountNameDtoToJSONTyped;
21
- var MoneyDto_1 = require("./MoneyDto");
22
- /**
23
- * Check if a given object implements the IntersectionDomainDtoWithAccountNameDto interface.
24
- */
25
- function instanceOfIntersectionDomainDtoWithAccountNameDto(value) {
26
- if (!('id' in value) || value['id'] === undefined)
27
- return false;
28
- if (!('accountId' in value) || value['accountId'] === undefined)
29
- return false;
30
- if (!('hijackerId' in value) || value['hijackerId'] === undefined)
31
- return false;
32
- if (!('tld' in value) || value['tld'] === undefined)
33
- return false;
34
- if (!('verified' in value) || value['verified'] === undefined)
35
- return false;
36
- if (!('nameservers' in value) || value['nameservers'] === undefined)
37
- return false;
38
- if (!('name' in value) || value['name'] === undefined)
39
- return false;
40
- if (!('displayName' in value) || value['displayName'] === undefined)
41
- return false;
42
- if (!('currencyCode' in value) || value['currencyCode'] === undefined)
43
- return false;
44
- if (!('buyNow' in value) || value['buyNow'] === undefined)
45
- return false;
46
- if (!('minOffer' in value) || value['minOffer'] === undefined)
47
- return false;
48
- if (!('createdAt' in value) || value['createdAt'] === undefined)
49
- return false;
50
- if (!('deletedAt' in value) || value['deletedAt'] === undefined)
51
- return false;
52
- if (!('pageviews' in value) || value['pageviews'] === undefined)
53
- return false;
54
- if (!('accountName' in value) || value['accountName'] === undefined)
55
- return false;
56
- return true;
57
- }
58
- function IntersectionDomainDtoWithAccountNameDtoFromJSON(json) {
59
- return IntersectionDomainDtoWithAccountNameDtoFromJSONTyped(json, false);
60
- }
61
- function IntersectionDomainDtoWithAccountNameDtoFromJSONTyped(json, ignoreDiscriminator) {
62
- if (json == null) {
63
- return json;
64
- }
65
- return {
66
- 'id': json['id'],
67
- 'accountId': json['accountId'],
68
- 'hijackerId': json['hijackerId'],
69
- 'tld': json['tld'],
70
- 'verified': json['verified'],
71
- 'nameservers': json['nameservers'],
72
- 'name': json['name'],
73
- 'displayName': json['displayName'],
74
- 'currencyCode': json['currencyCode'],
75
- 'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
76
- 'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
77
- 'createdAt': (new Date(json['createdAt'])),
78
- 'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
79
- 'pageviews': json['pageviews'],
80
- 'accountName': json['accountName'],
81
- };
82
- }
83
- function IntersectionDomainDtoWithAccountNameDtoToJSON(json) {
84
- return IntersectionDomainDtoWithAccountNameDtoToJSONTyped(json, false);
85
- }
86
- function IntersectionDomainDtoWithAccountNameDtoToJSONTyped(value, ignoreDiscriminator) {
87
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
88
- if (value == null) {
89
- return value;
90
- }
91
- return {
92
- 'id': value['id'],
93
- 'accountId': value['accountId'],
94
- 'hijackerId': value['hijackerId'],
95
- 'tld': value['tld'],
96
- 'verified': value['verified'],
97
- 'nameservers': value['nameservers'],
98
- 'name': value['name'],
99
- 'displayName': value['displayName'],
100
- 'currencyCode': value['currencyCode'],
101
- 'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
102
- 'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
103
- 'createdAt': ((value['createdAt']).toISOString()),
104
- 'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
105
- 'pageviews': value['pageviews'],
106
- 'accountName': value['accountName'],
107
- };
108
- }