@randock/nameshift-api-client 0.0.183 → 0.0.185

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 (114) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +9 -1
  4. package/dist/apis/AccountsApi.js +50 -0
  5. package/dist/apis/AdminApi.d.ts +27 -1
  6. package/dist/apis/AdminApi.js +119 -0
  7. package/dist/apis/DomainsApi.d.ts +3 -3
  8. package/dist/apis/DomainsApi.js +1 -1
  9. package/dist/apis/DomainsPublicApi.d.ts +1 -0
  10. package/dist/apis/DomainsPublicApi.js +3 -0
  11. package/dist/apis/SubscriptionsPublicApi.d.ts +52 -0
  12. package/dist/apis/SubscriptionsPublicApi.js +217 -0
  13. package/dist/apis/TasksApi.d.ts +3 -3
  14. package/dist/apis/TasksApi.js +1 -1
  15. package/dist/apis/index.d.ts +1 -0
  16. package/dist/apis/index.js +1 -0
  17. package/dist/models/AccountSettingsDto.d.ts +21 -0
  18. package/dist/models/AccountSettingsDto.js +15 -0
  19. package/dist/models/AccountSettingsInput.d.ts +7 -0
  20. package/dist/models/AccountSettingsInput.js +3 -0
  21. package/dist/models/AccountSettingsLandingDto.d.ts +38 -0
  22. package/dist/models/AccountSettingsLandingDto.js +55 -0
  23. package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.d.ts +51 -0
  24. package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.js +64 -0
  25. package/dist/models/AccountSettingsSidnDto.d.ts +32 -0
  26. package/dist/models/AccountSettingsSidnDto.js +51 -0
  27. package/dist/models/ChangeSubscriptionStatusInput.d.ts +42 -0
  28. package/dist/models/ChangeSubscriptionStatusInput.js +61 -0
  29. package/dist/models/CreateSubscriptionInput.d.ts +132 -0
  30. package/dist/models/CreateSubscriptionInput.js +102 -0
  31. package/dist/models/DomainDto.d.ts +7 -0
  32. package/dist/models/DomainDto.js +5 -0
  33. package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.d.ts +57 -0
  34. package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.js +68 -0
  35. package/dist/models/GetAllSubscriptions200Response.d.ts +47 -0
  36. package/dist/models/GetAllSubscriptions200Response.js +62 -0
  37. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
  38. package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
  39. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
  40. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
  41. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +7 -0
  42. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +5 -0
  43. package/dist/models/LeaseToOwnConfigurationDto.d.ts +51 -0
  44. package/dist/models/LeaseToOwnConfigurationDto.js +64 -0
  45. package/dist/models/LeaseToOwnConfigurationInput.d.ts +44 -0
  46. package/dist/models/LeaseToOwnConfigurationInput.js +53 -0
  47. package/dist/models/LeaseToOwnConfigurationPresetsDto.d.ts +44 -0
  48. package/dist/models/LeaseToOwnConfigurationPresetsDto.js +59 -0
  49. package/dist/models/List200Response1.d.ts +3 -3
  50. package/dist/models/List200Response1.js +3 -3
  51. package/dist/models/List200Response2.d.ts +3 -3
  52. package/dist/models/List200Response2.js +3 -3
  53. package/dist/models/SubscriptionCompanyInfoDto.d.ts +39 -0
  54. package/dist/models/SubscriptionCompanyInfoDto.js +56 -0
  55. package/dist/models/SubscriptionCompanyTaxIdDto.d.ts +44 -0
  56. package/dist/models/SubscriptionCompanyTaxIdDto.js +59 -0
  57. package/dist/models/SubscriptionDomainDto.d.ts +38 -0
  58. package/dist/models/SubscriptionDomainDto.js +55 -0
  59. package/dist/models/SubscriptionDto.d.ts +165 -0
  60. package/dist/models/SubscriptionDto.js +148 -0
  61. package/dist/models/SubscriptionListItemDto.d.ts +102 -0
  62. package/dist/models/SubscriptionListItemDto.js +104 -0
  63. package/dist/models/SubscriptionListItemDtoBuyerInformation.d.ts +64 -0
  64. package/dist/models/SubscriptionListItemDtoBuyerInformation.js +73 -0
  65. package/dist/models/SubscriptionListItemDtoDomainInformation.d.ts +44 -0
  66. package/dist/models/SubscriptionListItemDtoDomainInformation.js +59 -0
  67. package/dist/models/SubscriptionListItemDtoSellerAccount.d.ts +50 -0
  68. package/dist/models/SubscriptionListItemDtoSellerAccount.js +63 -0
  69. package/dist/models/UpdateDomainInput.d.ts +7 -0
  70. package/dist/models/UpdateDomainInput.js +3 -0
  71. package/dist/models/UpdateSubscriptionInput.d.ts +112 -0
  72. package/dist/models/UpdateSubscriptionInput.js +81 -0
  73. package/dist/models/WithSettingsInner.d.ts +7 -0
  74. package/dist/models/WithSettingsInner.js +5 -0
  75. package/dist/models/index.d.ts +19 -0
  76. package/dist/models/index.js +19 -0
  77. package/package.json +1 -1
  78. package/src/apis/AccountsApi.ts +37 -0
  79. package/src/apis/AdminApi.ts +118 -0
  80. package/src/apis/DomainsApi.ts +9 -6
  81. package/src/apis/DomainsPublicApi.ts +5 -0
  82. package/src/apis/SubscriptionsPublicApi.ts +175 -0
  83. package/src/apis/TasksApi.ts +6 -6
  84. package/src/apis/index.ts +1 -0
  85. package/src/models/AccountSettingsDto.ts +48 -0
  86. package/src/models/AccountSettingsInput.ts +15 -0
  87. package/src/models/AccountSettingsLandingDto.ts +75 -0
  88. package/src/models/AccountSettingsLeaseToOwnConfigurationDto.ts +101 -0
  89. package/src/models/AccountSettingsSidnDto.ts +66 -0
  90. package/src/models/ChangeSubscriptionStatusInput.ts +79 -0
  91. package/src/models/CreateSubscriptionInput.ts +209 -0
  92. package/src/models/DomainDto.ts +16 -0
  93. package/src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts +110 -0
  94. package/src/models/GetAllSubscriptions200Response.ts +106 -0
  95. package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
  96. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
  97. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +16 -0
  98. package/src/models/LeaseToOwnConfigurationDto.ts +101 -0
  99. package/src/models/LeaseToOwnConfigurationInput.ts +81 -0
  100. package/src/models/LeaseToOwnConfigurationPresetsDto.ts +84 -0
  101. package/src/models/List200Response1.ts +10 -10
  102. package/src/models/List200Response2.ts +10 -10
  103. package/src/models/SubscriptionCompanyInfoDto.ts +83 -0
  104. package/src/models/SubscriptionCompanyTaxIdDto.ts +84 -0
  105. package/src/models/SubscriptionDomainDto.ts +75 -0
  106. package/src/models/SubscriptionDto.ts +292 -0
  107. package/src/models/SubscriptionListItemDto.ts +189 -0
  108. package/src/models/SubscriptionListItemDtoBuyerInformation.ts +126 -0
  109. package/src/models/SubscriptionListItemDtoDomainInformation.ts +84 -0
  110. package/src/models/SubscriptionListItemDtoSellerAccount.ts +93 -0
  111. package/src/models/UpdateDomainInput.ts +15 -0
  112. package/src/models/UpdateSubscriptionInput.ts +179 -0
  113. package/src/models/WithSettingsInner.ts +16 -0
  114. package/src/models/index.ts +19 -0
@@ -0,0 +1,175 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ BadRequestException,
19
+ CreateSubscriptionInput,
20
+ NotFoundException,
21
+ ObjectId,
22
+ SubscriptionDto,
23
+ ThrottlerException,
24
+ UpdateSubscriptionInput,
25
+ ValidationException,
26
+ } from '../models/index';
27
+ import {
28
+ BadRequestExceptionFromJSON,
29
+ BadRequestExceptionToJSON,
30
+ CreateSubscriptionInputFromJSON,
31
+ CreateSubscriptionInputToJSON,
32
+ NotFoundExceptionFromJSON,
33
+ NotFoundExceptionToJSON,
34
+ ObjectIdFromJSON,
35
+ ObjectIdToJSON,
36
+ SubscriptionDtoFromJSON,
37
+ SubscriptionDtoToJSON,
38
+ ThrottlerExceptionFromJSON,
39
+ ThrottlerExceptionToJSON,
40
+ UpdateSubscriptionInputFromJSON,
41
+ UpdateSubscriptionInputToJSON,
42
+ ValidationExceptionFromJSON,
43
+ ValidationExceptionToJSON,
44
+ } from '../models/index';
45
+
46
+ export interface SubscriptionsPublicApiCreateSubscriptionRequest {
47
+ createSubscriptionInput: CreateSubscriptionInput;
48
+ }
49
+
50
+ export interface SubscriptionsPublicApiGetSubscriptionRequest {
51
+ subscriptionId: string;
52
+ }
53
+
54
+ export interface SubscriptionsPublicApiUpdateSubscriptionRequest {
55
+ subscriptionId: string;
56
+ updateSubscriptionInput: UpdateSubscriptionInput;
57
+ }
58
+
59
+ /**
60
+ *
61
+ */
62
+ export class SubscriptionsPublicApi extends runtime.BaseAPI {
63
+
64
+ /**
65
+ *
66
+ */
67
+ async createSubscriptionRaw(requestParameters: SubscriptionsPublicApiCreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
68
+ if (requestParameters['createSubscriptionInput'] == null) {
69
+ throw new runtime.RequiredError(
70
+ 'createSubscriptionInput',
71
+ 'Required parameter "createSubscriptionInput" was null or undefined when calling createSubscription().'
72
+ );
73
+ }
74
+
75
+ const queryParameters: any = {};
76
+
77
+ const headerParameters: runtime.HTTPHeaders = {};
78
+
79
+ headerParameters['Content-Type'] = 'application/json';
80
+
81
+ const response = await this.request({
82
+ path: `/subscriptions`,
83
+ method: 'POST',
84
+ headers: headerParameters,
85
+ query: queryParameters,
86
+ body: CreateSubscriptionInputToJSON(requestParameters['createSubscriptionInput']),
87
+ }, initOverrides);
88
+
89
+ return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
90
+ }
91
+
92
+ /**
93
+ *
94
+ */
95
+ async createSubscription(requestParameters: SubscriptionsPublicApiCreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId> {
96
+ const response = await this.createSubscriptionRaw(requestParameters, initOverrides);
97
+ return await response.value();
98
+ }
99
+
100
+ /**
101
+ *
102
+ */
103
+ async getSubscriptionRaw(requestParameters: SubscriptionsPublicApiGetSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionDto>> {
104
+ if (requestParameters['subscriptionId'] == null) {
105
+ throw new runtime.RequiredError(
106
+ 'subscriptionId',
107
+ 'Required parameter "subscriptionId" was null or undefined when calling getSubscription().'
108
+ );
109
+ }
110
+
111
+ const queryParameters: any = {};
112
+
113
+ const headerParameters: runtime.HTTPHeaders = {};
114
+
115
+ const response = await this.request({
116
+ path: `/subscriptions/{subscriptionId}`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
117
+ method: 'GET',
118
+ headers: headerParameters,
119
+ query: queryParameters,
120
+ }, initOverrides);
121
+
122
+ return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionDtoFromJSON(jsonValue));
123
+ }
124
+
125
+ /**
126
+ *
127
+ */
128
+ async getSubscription(requestParameters: SubscriptionsPublicApiGetSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionDto> {
129
+ const response = await this.getSubscriptionRaw(requestParameters, initOverrides);
130
+ return await response.value();
131
+ }
132
+
133
+ /**
134
+ *
135
+ */
136
+ async updateSubscriptionRaw(requestParameters: SubscriptionsPublicApiUpdateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
137
+ if (requestParameters['subscriptionId'] == null) {
138
+ throw new runtime.RequiredError(
139
+ 'subscriptionId',
140
+ 'Required parameter "subscriptionId" was null or undefined when calling updateSubscription().'
141
+ );
142
+ }
143
+
144
+ if (requestParameters['updateSubscriptionInput'] == null) {
145
+ throw new runtime.RequiredError(
146
+ 'updateSubscriptionInput',
147
+ 'Required parameter "updateSubscriptionInput" was null or undefined when calling updateSubscription().'
148
+ );
149
+ }
150
+
151
+ const queryParameters: any = {};
152
+
153
+ const headerParameters: runtime.HTTPHeaders = {};
154
+
155
+ headerParameters['Content-Type'] = 'application/json';
156
+
157
+ const response = await this.request({
158
+ path: `/subscriptions/{subscriptionId}`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
159
+ method: 'PATCH',
160
+ headers: headerParameters,
161
+ query: queryParameters,
162
+ body: UpdateSubscriptionInputToJSON(requestParameters['updateSubscriptionInput']),
163
+ }, initOverrides);
164
+
165
+ return new runtime.VoidApiResponse(response);
166
+ }
167
+
168
+ /**
169
+ *
170
+ */
171
+ async updateSubscription(requestParameters: SubscriptionsPublicApiUpdateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
172
+ await this.updateSubscriptionRaw(requestParameters, initOverrides);
173
+ }
174
+
175
+ }
@@ -15,13 +15,13 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- List200Response2,
18
+ List200Response1,
19
19
  ThrottlerException,
20
20
  ValidationException,
21
21
  } from '../models/index';
22
22
  import {
23
- List200Response2FromJSON,
24
- List200Response2ToJSON,
23
+ List200Response1FromJSON,
24
+ List200Response1ToJSON,
25
25
  ThrottlerExceptionFromJSON,
26
26
  ThrottlerExceptionToJSON,
27
27
  ValidationExceptionFromJSON,
@@ -43,7 +43,7 @@ export class TasksApi extends runtime.BaseAPI {
43
43
  /**
44
44
  *
45
45
  */
46
- async listRaw(requestParameters: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response2>> {
46
+ async listRaw(requestParameters: TasksApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>> {
47
47
  const queryParameters: any = {};
48
48
 
49
49
  if (requestParameters['filter'] != null) {
@@ -79,13 +79,13 @@ export class TasksApi extends runtime.BaseAPI {
79
79
  query: queryParameters,
80
80
  }, initOverrides);
81
81
 
82
- return new runtime.JSONApiResponse(response, (jsonValue) => List200Response2FromJSON(jsonValue));
82
+ return new runtime.JSONApiResponse(response, (jsonValue) => List200Response1FromJSON(jsonValue));
83
83
  }
84
84
 
85
85
  /**
86
86
  *
87
87
  */
88
- async list(requestParameters: TasksApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response2> {
88
+ async list(requestParameters: TasksApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1> {
89
89
  const response = await this.listRaw(requestParameters, initOverrides);
90
90
  return await response.value();
91
91
  }
package/src/apis/index.ts CHANGED
@@ -12,6 +12,7 @@ export * from './LeadsApi';
12
12
  export * from './LeadsPublicApi';
13
13
  export * from './OrdersPublicApi';
14
14
  export * from './StripePublicApi';
15
+ export * from './SubscriptionsPublicApi';
15
16
  export * from './TasksApi';
16
17
  export * from './UsersApi';
17
18
  export * from './UsersPublicApi';
@@ -20,6 +20,27 @@ import {
20
20
  MoneyDtoToJSON,
21
21
  MoneyDtoToJSONTyped,
22
22
  } from './MoneyDto';
23
+ import type { AccountSettingsSidnDto } from './AccountSettingsSidnDto';
24
+ import {
25
+ AccountSettingsSidnDtoFromJSON,
26
+ AccountSettingsSidnDtoFromJSONTyped,
27
+ AccountSettingsSidnDtoToJSON,
28
+ AccountSettingsSidnDtoToJSONTyped,
29
+ } from './AccountSettingsSidnDto';
30
+ import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
31
+ import {
32
+ AccountSettingsLeaseToOwnConfigurationDtoFromJSON,
33
+ AccountSettingsLeaseToOwnConfigurationDtoFromJSONTyped,
34
+ AccountSettingsLeaseToOwnConfigurationDtoToJSON,
35
+ AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped,
36
+ } from './AccountSettingsLeaseToOwnConfigurationDto';
37
+ import type { AccountSettingsLandingDto } from './AccountSettingsLandingDto';
38
+ import {
39
+ AccountSettingsLandingDtoFromJSON,
40
+ AccountSettingsLandingDtoFromJSONTyped,
41
+ AccountSettingsLandingDtoToJSON,
42
+ AccountSettingsLandingDtoToJSONTyped,
43
+ } from './AccountSettingsLandingDto';
23
44
 
24
45
  /**
25
46
  *
@@ -51,6 +72,24 @@ export interface AccountSettingsDto {
51
72
  * @memberof AccountSettingsDto
52
73
  */
53
74
  automaticPayouts: boolean;
75
+ /**
76
+ *
77
+ * @type {AccountSettingsLeaseToOwnConfigurationDto}
78
+ * @memberof AccountSettingsDto
79
+ */
80
+ leaseToOwn: AccountSettingsLeaseToOwnConfigurationDto;
81
+ /**
82
+ *
83
+ * @type {AccountSettingsLandingDto}
84
+ * @memberof AccountSettingsDto
85
+ */
86
+ landing: AccountSettingsLandingDto;
87
+ /**
88
+ *
89
+ * @type {AccountSettingsSidnDto}
90
+ * @memberof AccountSettingsDto
91
+ */
92
+ sidn: AccountSettingsSidnDto;
54
93
  }
55
94
 
56
95
  /**
@@ -61,6 +100,9 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
61
100
  if (!('minBuyNow' in value) || value['minBuyNow'] === undefined) return false;
62
101
  if (!('defaultCurrencyCode' in value) || value['defaultCurrencyCode'] === undefined) return false;
63
102
  if (!('automaticPayouts' in value) || value['automaticPayouts'] === undefined) return false;
103
+ if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
104
+ if (!('landing' in value) || value['landing'] === undefined) return false;
105
+ if (!('sidn' in value) || value['sidn'] === undefined) return false;
64
106
  return true;
65
107
  }
66
108
 
@@ -78,6 +120,9 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
78
120
  'minBuyNow': MoneyDtoFromJSON(json['minBuyNow']),
79
121
  'defaultCurrencyCode': json['defaultCurrencyCode'],
80
122
  'automaticPayouts': json['automaticPayouts'],
123
+ 'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
124
+ 'landing': AccountSettingsLandingDtoFromJSON(json['landing']),
125
+ 'sidn': AccountSettingsSidnDtoFromJSON(json['sidn']),
81
126
  };
82
127
  }
83
128
 
@@ -96,6 +141,9 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
96
141
  'minBuyNow': MoneyDtoToJSON(value['minBuyNow']),
97
142
  'defaultCurrencyCode': value['defaultCurrencyCode'],
98
143
  'automaticPayouts': value['automaticPayouts'],
144
+ 'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
145
+ 'landing': AccountSettingsLandingDtoToJSON(value['landing']),
146
+ 'sidn': AccountSettingsSidnDtoToJSON(value['sidn']),
99
147
  };
100
148
  }
101
149
 
@@ -20,6 +20,13 @@ import {
20
20
  MoneyDtoToJSON,
21
21
  MoneyDtoToJSONTyped,
22
22
  } from './MoneyDto';
23
+ import type { LeaseToOwnConfigurationInput } from './LeaseToOwnConfigurationInput';
24
+ import {
25
+ LeaseToOwnConfigurationInputFromJSON,
26
+ LeaseToOwnConfigurationInputFromJSONTyped,
27
+ LeaseToOwnConfigurationInputToJSON,
28
+ LeaseToOwnConfigurationInputToJSONTyped,
29
+ } from './LeaseToOwnConfigurationInput';
23
30
 
24
31
  /**
25
32
  *
@@ -57,6 +64,12 @@ export interface AccountSettingsInput {
57
64
  * @memberof AccountSettingsInput
58
65
  */
59
66
  showRelatedDomains?: boolean;
67
+ /**
68
+ *
69
+ * @type {LeaseToOwnConfigurationInput}
70
+ * @memberof AccountSettingsInput
71
+ */
72
+ leaseToOwn?: LeaseToOwnConfigurationInput;
60
73
  }
61
74
 
62
75
  /**
@@ -81,6 +94,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
81
94
  'sidnIdcode': json['sidnIdcode'] == null ? undefined : json['sidnIdcode'],
82
95
  'anonymous': json['anonymous'] == null ? undefined : json['anonymous'],
83
96
  'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
97
+ 'leaseToOwn': json['leaseToOwn'] == null ? undefined : LeaseToOwnConfigurationInputFromJSON(json['leaseToOwn']),
84
98
  };
85
99
  }
86
100
 
@@ -100,6 +114,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
100
114
  'sidnIdcode': value['sidnIdcode'],
101
115
  'anonymous': value['anonymous'],
102
116
  'showRelatedDomains': value['showRelatedDomains'],
117
+ 'leaseToOwn': LeaseToOwnConfigurationInputToJSON(value['leaseToOwn']),
103
118
  };
104
119
  }
105
120
 
@@ -0,0 +1,75 @@
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 AccountSettingsLandingDto
20
+ */
21
+ export interface AccountSettingsLandingDto {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof AccountSettingsLandingDto
26
+ */
27
+ anonymous: boolean;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof AccountSettingsLandingDto
32
+ */
33
+ showRelatedDomains: boolean;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the AccountSettingsLandingDto interface.
38
+ */
39
+ export function instanceOfAccountSettingsLandingDto(value: object): value is AccountSettingsLandingDto {
40
+ if (!('anonymous' in value) || value['anonymous'] === undefined) return false;
41
+ if (!('showRelatedDomains' in value) || value['showRelatedDomains'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function AccountSettingsLandingDtoFromJSON(json: any): AccountSettingsLandingDto {
46
+ return AccountSettingsLandingDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AccountSettingsLandingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsLandingDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'anonymous': json['anonymous'],
56
+ 'showRelatedDomains': json['showRelatedDomains'],
57
+ };
58
+ }
59
+
60
+ export function AccountSettingsLandingDtoToJSON(json: any): AccountSettingsLandingDto {
61
+ return AccountSettingsLandingDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function AccountSettingsLandingDtoToJSONTyped(value?: AccountSettingsLandingDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'anonymous': value['anonymous'],
72
+ 'showRelatedDomains': value['showRelatedDomains'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,101 @@
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 { LeaseToOwnConfigurationPresetsDto } from './LeaseToOwnConfigurationPresetsDto';
17
+ import {
18
+ LeaseToOwnConfigurationPresetsDtoFromJSON,
19
+ LeaseToOwnConfigurationPresetsDtoFromJSONTyped,
20
+ LeaseToOwnConfigurationPresetsDtoToJSON,
21
+ LeaseToOwnConfigurationPresetsDtoToJSONTyped,
22
+ } from './LeaseToOwnConfigurationPresetsDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AccountSettingsLeaseToOwnConfigurationDto
28
+ */
29
+ export interface AccountSettingsLeaseToOwnConfigurationDto {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AccountSettingsLeaseToOwnConfigurationDto
34
+ */
35
+ minMonths: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AccountSettingsLeaseToOwnConfigurationDto
40
+ */
41
+ maxMonths: number;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof AccountSettingsLeaseToOwnConfigurationDto
46
+ */
47
+ enabled: boolean;
48
+ /**
49
+ *
50
+ * @type {LeaseToOwnConfigurationPresetsDto}
51
+ * @memberof AccountSettingsLeaseToOwnConfigurationDto
52
+ */
53
+ presets: LeaseToOwnConfigurationPresetsDto;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the AccountSettingsLeaseToOwnConfigurationDto interface.
58
+ */
59
+ export function instanceOfAccountSettingsLeaseToOwnConfigurationDto(value: object): value is AccountSettingsLeaseToOwnConfigurationDto {
60
+ if (!('minMonths' in value) || value['minMonths'] === undefined) return false;
61
+ if (!('maxMonths' in value) || value['maxMonths'] === undefined) return false;
62
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
63
+ if (!('presets' in value) || value['presets'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function AccountSettingsLeaseToOwnConfigurationDtoFromJSON(json: any): AccountSettingsLeaseToOwnConfigurationDto {
68
+ return AccountSettingsLeaseToOwnConfigurationDtoFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function AccountSettingsLeaseToOwnConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsLeaseToOwnConfigurationDto {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'minMonths': json['minMonths'],
78
+ 'maxMonths': json['maxMonths'],
79
+ 'enabled': json['enabled'],
80
+ 'presets': LeaseToOwnConfigurationPresetsDtoFromJSON(json['presets']),
81
+ };
82
+ }
83
+
84
+ export function AccountSettingsLeaseToOwnConfigurationDtoToJSON(json: any): AccountSettingsLeaseToOwnConfigurationDto {
85
+ return AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped(json, false);
86
+ }
87
+
88
+ export function AccountSettingsLeaseToOwnConfigurationDtoToJSONTyped(value?: AccountSettingsLeaseToOwnConfigurationDto | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'minMonths': value['minMonths'],
96
+ 'maxMonths': value['maxMonths'],
97
+ 'enabled': value['enabled'],
98
+ 'presets': LeaseToOwnConfigurationPresetsDtoToJSON(value['presets']),
99
+ };
100
+ }
101
+
@@ -0,0 +1,66 @@
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 AccountSettingsSidnDto
20
+ */
21
+ export interface AccountSettingsSidnDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AccountSettingsSidnDto
26
+ */
27
+ idCode: string | null;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AccountSettingsSidnDto interface.
32
+ */
33
+ export function instanceOfAccountSettingsSidnDto(value: object): value is AccountSettingsSidnDto {
34
+ if (!('idCode' in value) || value['idCode'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AccountSettingsSidnDtoFromJSON(json: any): AccountSettingsSidnDto {
39
+ return AccountSettingsSidnDtoFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AccountSettingsSidnDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsSidnDto {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'idCode': json['idCode'],
49
+ };
50
+ }
51
+
52
+ export function AccountSettingsSidnDtoToJSON(json: any): AccountSettingsSidnDto {
53
+ return AccountSettingsSidnDtoToJSONTyped(json, false);
54
+ }
55
+
56
+ export function AccountSettingsSidnDtoToJSONTyped(value?: AccountSettingsSidnDto | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'idCode': value['idCode'],
64
+ };
65
+ }
66
+
@@ -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 ChangeSubscriptionStatusInput
20
+ */
21
+ export interface ChangeSubscriptionStatusInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ChangeSubscriptionStatusInput
26
+ */
27
+ status: ChangeSubscriptionStatusInputStatusEnum;
28
+ }
29
+
30
+
31
+ /**
32
+ * @export
33
+ */
34
+ export const ChangeSubscriptionStatusInputStatusEnum = {
35
+ DRAFT: 'draft',
36
+ ACTIVE: 'active',
37
+ PAUSED: 'paused',
38
+ CANCELLED: 'cancelled'
39
+ } as const;
40
+ export type ChangeSubscriptionStatusInputStatusEnum = typeof ChangeSubscriptionStatusInputStatusEnum[keyof typeof ChangeSubscriptionStatusInputStatusEnum];
41
+
42
+
43
+ /**
44
+ * Check if a given object implements the ChangeSubscriptionStatusInput interface.
45
+ */
46
+ export function instanceOfChangeSubscriptionStatusInput(value: object): value is ChangeSubscriptionStatusInput {
47
+ if (!('status' in value) || value['status'] === undefined) return false;
48
+ return true;
49
+ }
50
+
51
+ export function ChangeSubscriptionStatusInputFromJSON(json: any): ChangeSubscriptionStatusInput {
52
+ return ChangeSubscriptionStatusInputFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function ChangeSubscriptionStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeSubscriptionStatusInput {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'status': json['status'],
62
+ };
63
+ }
64
+
65
+ export function ChangeSubscriptionStatusInputToJSON(json: any): ChangeSubscriptionStatusInput {
66
+ return ChangeSubscriptionStatusInputToJSONTyped(json, false);
67
+ }
68
+
69
+ export function ChangeSubscriptionStatusInputToJSONTyped(value?: ChangeSubscriptionStatusInput | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'status': value['status'],
77
+ };
78
+ }
79
+