@randock/nameshift-api-client 0.0.362 → 0.0.364

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 (57) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +24 -1
  4. package/dist/apis/AdminApi.js +107 -0
  5. package/dist/apis/LeadsApi.d.ts +13 -1
  6. package/dist/apis/LeadsApi.js +56 -0
  7. package/dist/models/AccountSettingsDto.d.ts +7 -0
  8. package/dist/models/AccountSettingsDto.js +5 -0
  9. package/dist/models/AccountSettingsInput.d.ts +7 -0
  10. package/dist/models/AccountSettingsInput.js +3 -0
  11. package/dist/models/AdminAccountSettingsInput.d.ts +7 -0
  12. package/dist/models/AdminAccountSettingsInput.js +3 -0
  13. package/dist/models/DomainLockConfigurationDto.d.ts +39 -0
  14. package/dist/models/DomainLockConfigurationDto.js +56 -0
  15. package/dist/models/DomainLockDto.d.ts +56 -0
  16. package/dist/models/DomainLockDto.js +67 -0
  17. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +6 -0
  18. package/dist/models/IntersectionDomainDtoWithAccountDto.js +4 -0
  19. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
  20. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
  21. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
  22. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
  23. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
  24. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
  25. package/dist/models/LeadDomainDto.d.ts +6 -0
  26. package/dist/models/LeadDomainDto.js +4 -0
  27. package/dist/models/LockConfigurationInput.d.ts +39 -0
  28. package/dist/models/LockConfigurationInput.js +52 -0
  29. package/dist/models/LockDurationDto.d.ts +47 -0
  30. package/dist/models/LockDurationDto.js +64 -0
  31. package/dist/models/LockDurationInput.d.ts +47 -0
  32. package/dist/models/LockDurationInput.js +60 -0
  33. package/dist/models/SellerLeadDetails.d.ts +7 -0
  34. package/dist/models/SellerLeadDetails.js +5 -0
  35. package/dist/models/WithSettingsInner.d.ts +7 -0
  36. package/dist/models/WithSettingsInner.js +5 -0
  37. package/dist/models/index.d.ts +5 -0
  38. package/dist/models/index.js +5 -0
  39. package/package.json +1 -1
  40. package/src/apis/AdminApi.ts +100 -0
  41. package/src/apis/LeadsApi.ts +58 -0
  42. package/src/models/AccountSettingsDto.ts +16 -0
  43. package/src/models/AccountSettingsInput.ts +15 -0
  44. package/src/models/AdminAccountSettingsInput.ts +15 -0
  45. package/src/models/DomainLockConfigurationDto.ts +83 -0
  46. package/src/models/DomainLockDto.ts +102 -0
  47. package/src/models/IntersectionDomainDtoWithAccountDto.ts +9 -0
  48. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
  49. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
  50. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
  51. package/src/models/LeadDomainDto.ts +9 -0
  52. package/src/models/LockConfigurationInput.ts +81 -0
  53. package/src/models/LockDurationDto.ts +87 -0
  54. package/src/models/LockDurationInput.ts +85 -0
  55. package/src/models/SellerLeadDetails.ts +16 -0
  56. package/src/models/WithSettingsInner.ts +16 -0
  57. package/src/models/index.ts +5 -0
@@ -0,0 +1,67 @@
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.instanceOfDomainLockDto = instanceOfDomainLockDto;
17
+ exports.DomainLockDtoFromJSON = DomainLockDtoFromJSON;
18
+ exports.DomainLockDtoFromJSONTyped = DomainLockDtoFromJSONTyped;
19
+ exports.DomainLockDtoToJSON = DomainLockDtoToJSON;
20
+ exports.DomainLockDtoToJSONTyped = DomainLockDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DomainLockDto interface.
23
+ */
24
+ function instanceOfDomainLockDto(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('domainId' in value) || value['domainId'] === undefined)
28
+ return false;
29
+ if (!('startDate' in value) || value['startDate'] === undefined)
30
+ return false;
31
+ if (!('endDate' in value) || value['endDate'] === undefined)
32
+ return false;
33
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function DomainLockDtoFromJSON(json) {
38
+ return DomainLockDtoFromJSONTyped(json, false);
39
+ }
40
+ function DomainLockDtoFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'domainId': json['domainId'],
47
+ 'startDate': (new Date(json['startDate'])),
48
+ 'endDate': (new Date(json['endDate'])),
49
+ 'createdAt': (new Date(json['createdAt'])),
50
+ };
51
+ }
52
+ function DomainLockDtoToJSON(json) {
53
+ return DomainLockDtoToJSONTyped(json, false);
54
+ }
55
+ function DomainLockDtoToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'id': value['id'],
62
+ 'domainId': value['domainId'],
63
+ 'startDate': ((value['startDate']).toISOString()),
64
+ 'endDate': ((value['endDate']).toISOString()),
65
+ 'createdAt': ((value['createdAt']).toISOString()),
66
+ };
67
+ }
@@ -46,6 +46,12 @@ export interface IntersectionDomainDtoWithAccountDto {
46
46
  * @memberof IntersectionDomainDtoWithAccountDto
47
47
  */
48
48
  isDeleteable: boolean;
49
+ /**
50
+ * Whether the domain is currently locked
51
+ * @type {boolean}
52
+ * @memberof IntersectionDomainDtoWithAccountDto
53
+ */
54
+ isLocked: boolean;
49
55
  /**
50
56
  * The TLD for this domain.
51
57
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
37
37
  return false;
38
38
  if (!('isDeleteable' in value) || value['isDeleteable'] === undefined)
39
39
  return false;
40
+ if (!('isLocked' in value) || value['isLocked'] === undefined)
41
+ return false;
40
42
  if (!('tld' in value) || value['tld'] === undefined)
41
43
  return false;
42
44
  if (!('verified' in value) || value['verified'] === undefined)
@@ -91,6 +93,7 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
91
93
  'accountId': json['accountId'],
92
94
  'hijackerId': json['hijackerId'],
93
95
  'isDeleteable': json['isDeleteable'],
96
+ 'isLocked': json['isLocked'],
94
97
  'tld': json['tld'],
95
98
  'verified': json['verified'],
96
99
  'nameservers': json['nameservers'],
@@ -126,6 +129,7 @@ function IntersectionDomainDtoWithAccountDtoToJSONTyped(value, ignoreDiscriminat
126
129
  'accountId': value['accountId'],
127
130
  'hijackerId': value['hijackerId'],
128
131
  'isDeleteable': value['isDeleteable'],
132
+ 'isLocked': value['isLocked'],
129
133
  'tld': value['tld'],
130
134
  'verified': value['verified'],
131
135
  'nameservers': value['nameservers'],
@@ -46,6 +46,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
46
46
  * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
47
47
  */
48
48
  isDeleteable: boolean;
49
+ /**
50
+ * Whether the domain is currently locked
51
+ * @type {boolean}
52
+ * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
53
+ */
54
+ isLocked: boolean;
49
55
  /**
50
56
  * The TLD for this domain.
51
57
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(value)
37
37
  return false;
38
38
  if (!('isDeleteable' in value) || value['isDeleteable'] === undefined)
39
39
  return false;
40
+ if (!('isLocked' in value) || value['isLocked'] === undefined)
41
+ return false;
40
42
  if (!('tld' in value) || value['tld'] === undefined)
41
43
  return false;
42
44
  if (!('verified' in value) || value['verified'] === undefined)
@@ -93,6 +95,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json
93
95
  'accountId': json['accountId'],
94
96
  'hijackerId': json['hijackerId'],
95
97
  'isDeleteable': json['isDeleteable'],
98
+ 'isLocked': json['isLocked'],
96
99
  'tld': json['tld'],
97
100
  'verified': json['verified'],
98
101
  'nameservers': json['nameservers'],
@@ -129,6 +132,7 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(value,
129
132
  'accountId': value['accountId'],
130
133
  'hijackerId': value['hijackerId'],
131
134
  'isDeleteable': value['isDeleteable'],
135
+ 'isLocked': value['isLocked'],
132
136
  'tld': value['tld'],
133
137
  'verified': value['verified'],
134
138
  'nameservers': value['nameservers'],
@@ -46,6 +46,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
46
46
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
47
47
  */
48
48
  isDeleteable: boolean;
49
+ /**
50
+ * Whether the domain is currently locked
51
+ * @type {boolean}
52
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
53
+ */
54
+ isLocked: boolean;
49
55
  /**
50
56
  * The TLD for this domain.
51
57
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
37
37
  return false;
38
38
  if (!('isDeleteable' in value) || value['isDeleteable'] === undefined)
39
39
  return false;
40
+ if (!('isLocked' in value) || value['isLocked'] === undefined)
41
+ return false;
40
42
  if (!('tld' in value) || value['tld'] === undefined)
41
43
  return false;
42
44
  if (!('verified' in value) || value['verified'] === undefined)
@@ -93,6 +95,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
93
95
  'accountId': json['accountId'],
94
96
  'hijackerId': json['hijackerId'],
95
97
  'isDeleteable': json['isDeleteable'],
98
+ 'isLocked': json['isLocked'],
96
99
  'tld': json['tld'],
97
100
  'verified': json['verified'],
98
101
  'nameservers': json['nameservers'],
@@ -129,6 +132,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(value, ig
129
132
  'accountId': value['accountId'],
130
133
  'hijackerId': value['hijackerId'],
131
134
  'isDeleteable': value['isDeleteable'],
135
+ 'isLocked': value['isLocked'],
132
136
  'tld': value['tld'],
133
137
  'verified': value['verified'],
134
138
  'nameservers': value['nameservers'],
@@ -46,6 +46,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
46
46
  * @memberof IntersectionDomainDtoWithSeoMetricsDto
47
47
  */
48
48
  isDeleteable: boolean;
49
+ /**
50
+ * Whether the domain is currently locked
51
+ * @type {boolean}
52
+ * @memberof IntersectionDomainDtoWithSeoMetricsDto
53
+ */
54
+ isLocked: boolean;
49
55
  /**
50
56
  * The SEO metrics for this domain
51
57
  * @type {SeoMetricsDto}
@@ -37,6 +37,8 @@ function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value) {
37
37
  return false;
38
38
  if (!('isDeleteable' in value) || value['isDeleteable'] === undefined)
39
39
  return false;
40
+ if (!('isLocked' in value) || value['isLocked'] === undefined)
41
+ return false;
40
42
  if (!('seoMetrics' in value) || value['seoMetrics'] === undefined)
41
43
  return false;
42
44
  if (!('tld' in value) || value['tld'] === undefined)
@@ -91,6 +93,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json, ignoreDiscrim
91
93
  'accountId': json['accountId'],
92
94
  'hijackerId': json['hijackerId'],
93
95
  'isDeleteable': json['isDeleteable'],
96
+ 'isLocked': json['isLocked'],
94
97
  'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoFromJSON)(json['seoMetrics']),
95
98
  'tld': json['tld'],
96
99
  'verified': json['verified'],
@@ -126,6 +129,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value, ignoreDiscrimi
126
129
  'accountId': value['accountId'],
127
130
  'hijackerId': value['hijackerId'],
128
131
  'isDeleteable': value['isDeleteable'],
132
+ 'isLocked': value['isLocked'],
129
133
  'seoMetrics': (0, SeoMetricsDto_1.SeoMetricsDtoToJSON)(value['seoMetrics']),
130
134
  'tld': value['tld'],
131
135
  'verified': value['verified'],
@@ -22,6 +22,12 @@ export interface LeadDomainDto {
22
22
  * @memberof LeadDomainDto
23
23
  */
24
24
  id: string;
25
+ /**
26
+ * Whether the domain is currently locked
27
+ * @type {boolean}
28
+ * @memberof LeadDomainDto
29
+ */
30
+ isLocked: boolean;
25
31
  /**
26
32
  * Domain name
27
33
  * @type {string}
@@ -25,6 +25,8 @@ var MoneyDto_1 = require("./MoneyDto");
25
25
  function instanceOfLeadDomainDto(value) {
26
26
  if (!('id' in value) || value['id'] === undefined)
27
27
  return false;
28
+ if (!('isLocked' in value) || value['isLocked'] === undefined)
29
+ return false;
28
30
  if (!('name' in value) || value['name'] === undefined)
29
31
  return false;
30
32
  if (!('displayName' in value) || value['displayName'] === undefined)
@@ -48,6 +50,7 @@ function LeadDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
48
50
  }
49
51
  return {
50
52
  'id': json['id'],
53
+ 'isLocked': json['isLocked'],
51
54
  'name': json['name'],
52
55
  'displayName': json['displayName'],
53
56
  'currencyCode': json['currencyCode'],
@@ -66,6 +69,7 @@ function LeadDomainDtoToJSONTyped(value, ignoreDiscriminator) {
66
69
  }
67
70
  return {
68
71
  'id': value['id'],
72
+ 'isLocked': value['isLocked'],
69
73
  'name': value['name'],
70
74
  'displayName': value['displayName'],
71
75
  'currencyCode': value['currencyCode'],
@@ -0,0 +1,39 @@
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 { LockDurationInput } from './LockDurationInput';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LockConfigurationInput
17
+ */
18
+ export interface LockConfigurationInput {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof LockConfigurationInput
23
+ */
24
+ enabled?: boolean;
25
+ /**
26
+ *
27
+ * @type {LockDurationInput}
28
+ * @memberof LockConfigurationInput
29
+ */
30
+ duration?: LockDurationInput;
31
+ }
32
+ /**
33
+ * Check if a given object implements the LockConfigurationInput interface.
34
+ */
35
+ export declare function instanceOfLockConfigurationInput(value: object): value is LockConfigurationInput;
36
+ export declare function LockConfigurationInputFromJSON(json: any): LockConfigurationInput;
37
+ export declare function LockConfigurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LockConfigurationInput;
38
+ export declare function LockConfigurationInputToJSON(json: any): LockConfigurationInput;
39
+ export declare function LockConfigurationInputToJSONTyped(value?: LockConfigurationInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfLockConfigurationInput = instanceOfLockConfigurationInput;
17
+ exports.LockConfigurationInputFromJSON = LockConfigurationInputFromJSON;
18
+ exports.LockConfigurationInputFromJSONTyped = LockConfigurationInputFromJSONTyped;
19
+ exports.LockConfigurationInputToJSON = LockConfigurationInputToJSON;
20
+ exports.LockConfigurationInputToJSONTyped = LockConfigurationInputToJSONTyped;
21
+ var LockDurationInput_1 = require("./LockDurationInput");
22
+ /**
23
+ * Check if a given object implements the LockConfigurationInput interface.
24
+ */
25
+ function instanceOfLockConfigurationInput(value) {
26
+ return true;
27
+ }
28
+ function LockConfigurationInputFromJSON(json) {
29
+ return LockConfigurationInputFromJSONTyped(json, false);
30
+ }
31
+ function LockConfigurationInputFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
37
+ 'duration': json['duration'] == null ? undefined : (0, LockDurationInput_1.LockDurationInputFromJSON)(json['duration']),
38
+ };
39
+ }
40
+ function LockConfigurationInputToJSON(json) {
41
+ return LockConfigurationInputToJSONTyped(json, false);
42
+ }
43
+ function LockConfigurationInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'enabled': value['enabled'],
50
+ 'duration': (0, LockDurationInput_1.LockDurationInputToJSON)(value['duration']),
51
+ };
52
+ }
@@ -0,0 +1,47 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface LockDurationDto
16
+ */
17
+ export interface LockDurationDto {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof LockDurationDto
22
+ */
23
+ amount: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LockDurationDto
28
+ */
29
+ unit: LockDurationDtoUnitEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const LockDurationDtoUnitEnum: {
35
+ readonly MINUTE: "minute";
36
+ readonly HOUR: "hour";
37
+ readonly DAY: "day";
38
+ };
39
+ export type LockDurationDtoUnitEnum = typeof LockDurationDtoUnitEnum[keyof typeof LockDurationDtoUnitEnum];
40
+ /**
41
+ * Check if a given object implements the LockDurationDto interface.
42
+ */
43
+ export declare function instanceOfLockDurationDto(value: object): value is LockDurationDto;
44
+ export declare function LockDurationDtoFromJSON(json: any): LockDurationDto;
45
+ export declare function LockDurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LockDurationDto;
46
+ export declare function LockDurationDtoToJSON(json: any): LockDurationDto;
47
+ export declare function LockDurationDtoToJSONTyped(value?: LockDurationDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.LockDurationDtoUnitEnum = void 0;
17
+ exports.instanceOfLockDurationDto = instanceOfLockDurationDto;
18
+ exports.LockDurationDtoFromJSON = LockDurationDtoFromJSON;
19
+ exports.LockDurationDtoFromJSONTyped = LockDurationDtoFromJSONTyped;
20
+ exports.LockDurationDtoToJSON = LockDurationDtoToJSON;
21
+ exports.LockDurationDtoToJSONTyped = LockDurationDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.LockDurationDtoUnitEnum = {
26
+ MINUTE: 'minute',
27
+ HOUR: 'hour',
28
+ DAY: 'day'
29
+ };
30
+ /**
31
+ * Check if a given object implements the LockDurationDto interface.
32
+ */
33
+ function instanceOfLockDurationDto(value) {
34
+ if (!('amount' in value) || value['amount'] === undefined)
35
+ return false;
36
+ if (!('unit' in value) || value['unit'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function LockDurationDtoFromJSON(json) {
41
+ return LockDurationDtoFromJSONTyped(json, false);
42
+ }
43
+ function LockDurationDtoFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'amount': json['amount'],
49
+ 'unit': json['unit'],
50
+ };
51
+ }
52
+ function LockDurationDtoToJSON(json) {
53
+ return LockDurationDtoToJSONTyped(json, false);
54
+ }
55
+ function LockDurationDtoToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'amount': value['amount'],
62
+ 'unit': value['unit'],
63
+ };
64
+ }
@@ -0,0 +1,47 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface LockDurationInput
16
+ */
17
+ export interface LockDurationInput {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof LockDurationInput
22
+ */
23
+ amount?: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LockDurationInput
28
+ */
29
+ unit?: LockDurationInputUnitEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const LockDurationInputUnitEnum: {
35
+ readonly MINUTE: "minute";
36
+ readonly HOUR: "hour";
37
+ readonly DAY: "day";
38
+ };
39
+ export type LockDurationInputUnitEnum = typeof LockDurationInputUnitEnum[keyof typeof LockDurationInputUnitEnum];
40
+ /**
41
+ * Check if a given object implements the LockDurationInput interface.
42
+ */
43
+ export declare function instanceOfLockDurationInput(value: object): value is LockDurationInput;
44
+ export declare function LockDurationInputFromJSON(json: any): LockDurationInput;
45
+ export declare function LockDurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LockDurationInput;
46
+ export declare function LockDurationInputToJSON(json: any): LockDurationInput;
47
+ export declare function LockDurationInputToJSONTyped(value?: LockDurationInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.LockDurationInputUnitEnum = void 0;
17
+ exports.instanceOfLockDurationInput = instanceOfLockDurationInput;
18
+ exports.LockDurationInputFromJSON = LockDurationInputFromJSON;
19
+ exports.LockDurationInputFromJSONTyped = LockDurationInputFromJSONTyped;
20
+ exports.LockDurationInputToJSON = LockDurationInputToJSON;
21
+ exports.LockDurationInputToJSONTyped = LockDurationInputToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.LockDurationInputUnitEnum = {
26
+ MINUTE: 'minute',
27
+ HOUR: 'hour',
28
+ DAY: 'day'
29
+ };
30
+ /**
31
+ * Check if a given object implements the LockDurationInput interface.
32
+ */
33
+ function instanceOfLockDurationInput(value) {
34
+ return true;
35
+ }
36
+ function LockDurationInputFromJSON(json) {
37
+ return LockDurationInputFromJSONTyped(json, false);
38
+ }
39
+ function LockDurationInputFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'amount': json['amount'] == null ? undefined : json['amount'],
45
+ 'unit': json['unit'] == null ? undefined : json['unit'],
46
+ };
47
+ }
48
+ function LockDurationInputToJSON(json) {
49
+ return LockDurationInputToJSONTyped(json, false);
50
+ }
51
+ function LockDurationInputToJSONTyped(value, ignoreDiscriminator) {
52
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'amount': value['amount'],
58
+ 'unit': value['unit'],
59
+ };
60
+ }
@@ -14,6 +14,7 @@ import type { MoneyDto } from './MoneyDto';
14
14
  import type { IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto } from './IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto';
15
15
  import type { BuyerDto } from './BuyerDto';
16
16
  import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
17
+ import type { DomainLockConfigurationDto } from './DomainLockConfigurationDto';
17
18
  import type { LeadOfferDto } from './LeadOfferDto';
18
19
  /**
19
20
  *
@@ -81,6 +82,12 @@ export interface SellerLeadDetails {
81
82
  * @memberof SellerLeadDetails
82
83
  */
83
84
  isMutedForBuyer: boolean;
85
+ /**
86
+ *
87
+ * @type {DomainLockConfigurationDto}
88
+ * @memberof SellerLeadDetails
89
+ */
90
+ domainLockConfiguration: DomainLockConfigurationDto;
84
91
  /**
85
92
  * Archived status
86
93
  * @type {boolean}
@@ -24,6 +24,7 @@ var MoneyDto_1 = require("./MoneyDto");
24
24
  var IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1 = require("./IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto");
25
25
  var BuyerDto_1 = require("./BuyerDto");
26
26
  var LeadRentConfigurationDto_1 = require("./LeadRentConfigurationDto");
27
+ var DomainLockConfigurationDto_1 = require("./DomainLockConfigurationDto");
27
28
  var LeadOfferDto_1 = require("./LeadOfferDto");
28
29
  /**
29
30
  * @export
@@ -86,6 +87,8 @@ function instanceOfSellerLeadDetails(value) {
86
87
  return false;
87
88
  if (!('isMutedForBuyer' in value) || value['isMutedForBuyer'] === undefined)
88
89
  return false;
90
+ if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined)
91
+ return false;
89
92
  if (!('archived' in value) || value['archived'] === undefined)
90
93
  return false;
91
94
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -128,6 +131,7 @@ function SellerLeadDetailsFromJSONTyped(json, ignoreDiscriminator) {
128
131
  'buyer': (0, BuyerDto_1.BuyerDtoFromJSON)(json['buyer']),
129
132
  'isMutedForSeller': json['isMutedForSeller'],
130
133
  'isMutedForBuyer': json['isMutedForBuyer'],
134
+ 'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoFromJSON)(json['domainLockConfiguration']),
131
135
  'archived': json['archived'],
132
136
  'createdAt': (new Date(json['createdAt'])),
133
137
  'updatedAt': (new Date(json['updatedAt'])),
@@ -160,6 +164,7 @@ function SellerLeadDetailsToJSONTyped(value, ignoreDiscriminator) {
160
164
  'buyer': (0, BuyerDto_1.BuyerDtoToJSON)(value['buyer']),
161
165
  'isMutedForSeller': value['isMutedForSeller'],
162
166
  'isMutedForBuyer': value['isMutedForBuyer'],
167
+ 'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoToJSON)(value['domainLockConfiguration']),
163
168
  'archived': value['archived'],
164
169
  'createdAt': ((value['createdAt']).toISOString()),
165
170
  'updatedAt': ((value['updatedAt']).toISOString()),
@@ -17,6 +17,7 @@ import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSetting
17
17
  import type { AuctionConfigurationDto } from './AuctionConfigurationDto';
18
18
  import type { AccountCommissionByDateRangeDto } from './AccountCommissionByDateRangeDto';
19
19
  import type { TimeTableConfigurationDto } from './TimeTableConfigurationDto';
20
+ import type { DomainLockConfigurationDto } from './DomainLockConfigurationDto';
20
21
  import type { AccountSettingsRentConfigurationDto } from './AccountSettingsRentConfigurationDto';
21
22
  /**
22
23
  *
@@ -156,6 +157,12 @@ export interface WithSettingsInner {
156
157
  * @memberof WithSettingsInner
157
158
  */
158
159
  auctionConfiguration: AuctionConfigurationDto;
160
+ /**
161
+ *
162
+ * @type {DomainLockConfigurationDto}
163
+ * @memberof WithSettingsInner
164
+ */
165
+ domainLockConfiguration: DomainLockConfigurationDto;
159
166
  }
160
167
  /**
161
168
  * Check if a given object implements the WithSettingsInner interface.