@randock/nameshift-api-client 0.0.131 → 0.0.132

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.
@@ -30,6 +30,7 @@ src/models/AddressDto.ts
30
30
  src/models/AdminAccountSettingsInput.ts
31
31
  src/models/AdminGetAllDomainTransfers200Response.ts
32
32
  src/models/BadRequestException.ts
33
+ src/models/BatchImportPreviewDto.ts
33
34
  src/models/BatchReadBuyerLeadMessageInput.ts
34
35
  src/models/BatchReadSellerLeadMessageInput.ts
35
36
  src/models/BatchUpdateDomainsInput.ts
@@ -115,6 +116,7 @@ src/models/OwnedDomainDto.ts
115
116
  src/models/PaginateResponse.ts
116
117
  src/models/PaginateResponseLinks.ts
117
118
  src/models/PaginateResponseMeta.ts
119
+ src/models/ParsedDomainDto.ts
118
120
  src/models/PaymentProviderDto.ts
119
121
  src/models/PublicLeadBuyerDto.ts
120
122
  src/models/PublicLeadDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.131
1
+ ## @randock/nameshift-api-client@0.0.132
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.131 --save
39
+ npm install @randock/nameshift-api-client@0.0.132 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 4abd2df55d1604278000378610d1e41dd9ddbfc25e2590f687d9de83f8afc117497acd726e628ae1010c7f4f8fe2e45b
47
+ 17017fd36ac55ddc5e45ac2c3a1cba2ad5957aa416e05214fcd824c1091a228b47225ae7fb0094c766cecbdb3013f6ad
@@ -10,11 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response1, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
13
+ import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response1, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
14
14
  export interface DomainsApiBatchImportRequest {
15
15
  file?: Blob | null;
16
16
  domains?: Array<string>;
17
17
  }
18
+ export interface DomainsApiBatchImportPreviewRequest {
19
+ file?: Blob | null;
20
+ }
18
21
  export interface DomainsApiBatchUpdateRequest {
19
22
  batchUpdateDomainsInput: BatchUpdateDomainsInput;
20
23
  }
@@ -62,6 +65,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
62
65
  *
63
66
  */
64
67
  batchImport(requestParameters?: DomainsApiBatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
68
+ /**
69
+ *
70
+ */
71
+ batchImportPreviewRaw(requestParameters: DomainsApiBatchImportPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BatchImportPreviewDto>>;
72
+ /**
73
+ *
74
+ */
75
+ batchImportPreview(requestParameters?: DomainsApiBatchImportPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BatchImportPreviewDto>;
65
76
  /**
66
77
  *
67
78
  */
@@ -145,6 +145,75 @@ var DomainsApi = /** @class */ (function (_super) {
145
145
  });
146
146
  });
147
147
  };
148
+ /**
149
+ *
150
+ */
151
+ DomainsApi.prototype.batchImportPreviewRaw = function (requestParameters, initOverrides) {
152
+ return __awaiter(this, void 0, void 0, function () {
153
+ var queryParameters, headerParameters, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
154
+ return __generator(this, function (_a) {
155
+ switch (_a.label) {
156
+ case 0:
157
+ queryParameters = {};
158
+ headerParameters = {};
159
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
160
+ token = this.configuration.accessToken;
161
+ return [4 /*yield*/, token("bearer", [])];
162
+ case 1:
163
+ tokenString = _a.sent();
164
+ if (tokenString) {
165
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
166
+ }
167
+ _a.label = 2;
168
+ case 2:
169
+ consumes = [
170
+ { contentType: 'multipart/form-data' },
171
+ ];
172
+ canConsumeForm = runtime.canConsumeForm(consumes);
173
+ useForm = false;
174
+ // use FormData to transmit files using content-type "multipart/form-data"
175
+ useForm = canConsumeForm;
176
+ if (useForm) {
177
+ formParams = new FormData();
178
+ }
179
+ else {
180
+ formParams = new URLSearchParams();
181
+ }
182
+ if (requestParameters['file'] != null) {
183
+ formParams.append('file', requestParameters['file']);
184
+ }
185
+ return [4 /*yield*/, this.request({
186
+ path: "/private/domains/import-preview",
187
+ method: 'POST',
188
+ headers: headerParameters,
189
+ query: queryParameters,
190
+ body: formParams,
191
+ }, initOverrides)];
192
+ case 3:
193
+ response = _a.sent();
194
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BatchImportPreviewDtoFromJSON)(jsonValue); })];
195
+ }
196
+ });
197
+ });
198
+ };
199
+ /**
200
+ *
201
+ */
202
+ DomainsApi.prototype.batchImportPreview = function () {
203
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
204
+ var response;
205
+ if (requestParameters === void 0) { requestParameters = {}; }
206
+ return __generator(this, function (_a) {
207
+ switch (_a.label) {
208
+ case 0: return [4 /*yield*/, this.batchImportPreviewRaw(requestParameters, initOverrides)];
209
+ case 1:
210
+ response = _a.sent();
211
+ return [4 /*yield*/, response.value()];
212
+ case 2: return [2 /*return*/, _a.sent()];
213
+ }
214
+ });
215
+ });
216
+ };
148
217
  /**
149
218
  *
150
219
  */
@@ -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 { ParsedDomainDto } from './ParsedDomainDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface BatchImportPreviewDto
17
+ */
18
+ export interface BatchImportPreviewDto {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof BatchImportPreviewDto
23
+ */
24
+ domains: number;
25
+ /**
26
+ *
27
+ * @type {Array<ParsedDomainDto>}
28
+ * @memberof BatchImportPreviewDto
29
+ */
30
+ preview: Array<ParsedDomainDto>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the BatchImportPreviewDto interface.
34
+ */
35
+ export declare function instanceOfBatchImportPreviewDto(value: object): value is BatchImportPreviewDto;
36
+ export declare function BatchImportPreviewDtoFromJSON(json: any): BatchImportPreviewDto;
37
+ export declare function BatchImportPreviewDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchImportPreviewDto;
38
+ export declare function BatchImportPreviewDtoToJSON(json: any): BatchImportPreviewDto;
39
+ export declare function BatchImportPreviewDtoToJSONTyped(value?: BatchImportPreviewDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfBatchImportPreviewDto = instanceOfBatchImportPreviewDto;
17
+ exports.BatchImportPreviewDtoFromJSON = BatchImportPreviewDtoFromJSON;
18
+ exports.BatchImportPreviewDtoFromJSONTyped = BatchImportPreviewDtoFromJSONTyped;
19
+ exports.BatchImportPreviewDtoToJSON = BatchImportPreviewDtoToJSON;
20
+ exports.BatchImportPreviewDtoToJSONTyped = BatchImportPreviewDtoToJSONTyped;
21
+ var ParsedDomainDto_1 = require("./ParsedDomainDto");
22
+ /**
23
+ * Check if a given object implements the BatchImportPreviewDto interface.
24
+ */
25
+ function instanceOfBatchImportPreviewDto(value) {
26
+ if (!('domains' in value) || value['domains'] === undefined)
27
+ return false;
28
+ if (!('preview' in value) || value['preview'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function BatchImportPreviewDtoFromJSON(json) {
33
+ return BatchImportPreviewDtoFromJSONTyped(json, false);
34
+ }
35
+ function BatchImportPreviewDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'domains': json['domains'],
41
+ 'preview': (json['preview'].map(ParsedDomainDto_1.ParsedDomainDtoFromJSON)),
42
+ };
43
+ }
44
+ function BatchImportPreviewDtoToJSON(json) {
45
+ return BatchImportPreviewDtoToJSONTyped(json, false);
46
+ }
47
+ function BatchImportPreviewDtoToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'domains': value['domains'],
54
+ 'preview': (value['preview'].map(ParsedDomainDto_1.ParsedDomainDtoToJSON)),
55
+ };
56
+ }
@@ -0,0 +1,45 @@
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 ParsedDomainDto
17
+ */
18
+ export interface ParsedDomainDto {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ParsedDomainDto
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {MoneyDto}
28
+ * @memberof ParsedDomainDto
29
+ */
30
+ buyNow?: MoneyDto | null;
31
+ /**
32
+ *
33
+ * @type {MoneyDto}
34
+ * @memberof ParsedDomainDto
35
+ */
36
+ minOffer?: MoneyDto | null;
37
+ }
38
+ /**
39
+ * Check if a given object implements the ParsedDomainDto interface.
40
+ */
41
+ export declare function instanceOfParsedDomainDto(value: object): value is ParsedDomainDto;
42
+ export declare function ParsedDomainDtoFromJSON(json: any): ParsedDomainDto;
43
+ export declare function ParsedDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParsedDomainDto;
44
+ export declare function ParsedDomainDtoToJSON(json: any): ParsedDomainDto;
45
+ export declare function ParsedDomainDtoToJSONTyped(value?: ParsedDomainDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfParsedDomainDto = instanceOfParsedDomainDto;
17
+ exports.ParsedDomainDtoFromJSON = ParsedDomainDtoFromJSON;
18
+ exports.ParsedDomainDtoFromJSONTyped = ParsedDomainDtoFromJSONTyped;
19
+ exports.ParsedDomainDtoToJSON = ParsedDomainDtoToJSON;
20
+ exports.ParsedDomainDtoToJSONTyped = ParsedDomainDtoToJSONTyped;
21
+ var MoneyDto_1 = require("./MoneyDto");
22
+ /**
23
+ * Check if a given object implements the ParsedDomainDto interface.
24
+ */
25
+ function instanceOfParsedDomainDto(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ParsedDomainDtoFromJSON(json) {
31
+ return ParsedDomainDtoFromJSONTyped(json, false);
32
+ }
33
+ function ParsedDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'buyNow': json['buyNow'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
40
+ 'minOffer': json['minOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
41
+ };
42
+ }
43
+ function ParsedDomainDtoToJSON(json) {
44
+ return ParsedDomainDtoToJSONTyped(json, false);
45
+ }
46
+ function ParsedDomainDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'name': value['name'],
53
+ 'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
54
+ 'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
55
+ };
56
+ }
@@ -9,6 +9,7 @@ export * from './AddressDto';
9
9
  export * from './AdminAccountSettingsInput';
10
10
  export * from './AdminGetAllDomainTransfers200Response';
11
11
  export * from './BadRequestException';
12
+ export * from './BatchImportPreviewDto';
12
13
  export * from './BatchReadBuyerLeadMessageInput';
13
14
  export * from './BatchReadSellerLeadMessageInput';
14
15
  export * from './BatchUpdateDomainsInput';
@@ -94,6 +95,7 @@ export * from './OwnedDomainDto';
94
95
  export * from './PaginateResponse';
95
96
  export * from './PaginateResponseLinks';
96
97
  export * from './PaginateResponseMeta';
98
+ export * from './ParsedDomainDto';
97
99
  export * from './PaymentProviderDto';
98
100
  export * from './PublicLeadBuyerDto';
99
101
  export * from './PublicLeadDto';
@@ -27,6 +27,7 @@ __exportStar(require("./AddressDto"), exports);
27
27
  __exportStar(require("./AdminAccountSettingsInput"), exports);
28
28
  __exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
29
29
  __exportStar(require("./BadRequestException"), exports);
30
+ __exportStar(require("./BatchImportPreviewDto"), exports);
30
31
  __exportStar(require("./BatchReadBuyerLeadMessageInput"), exports);
31
32
  __exportStar(require("./BatchReadSellerLeadMessageInput"), exports);
32
33
  __exportStar(require("./BatchUpdateDomainsInput"), exports);
@@ -112,6 +113,7 @@ __exportStar(require("./OwnedDomainDto"), exports);
112
113
  __exportStar(require("./PaginateResponse"), exports);
113
114
  __exportStar(require("./PaginateResponseLinks"), exports);
114
115
  __exportStar(require("./PaginateResponseMeta"), exports);
116
+ __exportStar(require("./ParsedDomainDto"), exports);
115
117
  __exportStar(require("./PaymentProviderDto"), exports);
116
118
  __exportStar(require("./PublicLeadBuyerDto"), exports);
117
119
  __exportStar(require("./PublicLeadDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.131",
3
+ "version": "0.0.132",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -15,6 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ BatchImportPreviewDto,
18
19
  BatchUpdateDomainsInput,
19
20
  DeleteDomainsInput,
20
21
  DomainDto,
@@ -29,6 +30,8 @@ import type {
29
30
  ValidationException,
30
31
  } from '../models/index';
31
32
  import {
33
+ BatchImportPreviewDtoFromJSON,
34
+ BatchImportPreviewDtoToJSON,
32
35
  BatchUpdateDomainsInputFromJSON,
33
36
  BatchUpdateDomainsInputToJSON,
34
37
  DeleteDomainsInputFromJSON,
@@ -60,6 +63,10 @@ export interface DomainsApiBatchImportRequest {
60
63
  domains?: Array<string>;
61
64
  }
62
65
 
66
+ export interface DomainsApiBatchImportPreviewRequest {
67
+ file?: Blob | null;
68
+ }
69
+
63
70
  export interface DomainsApiBatchUpdateRequest {
64
71
  batchUpdateDomainsInput: BatchUpdateDomainsInput;
65
72
  }
@@ -167,6 +174,61 @@ export class DomainsApi extends runtime.BaseAPI {
167
174
  await this.batchImportRaw(requestParameters, initOverrides);
168
175
  }
169
176
 
177
+ /**
178
+ *
179
+ */
180
+ async batchImportPreviewRaw(requestParameters: DomainsApiBatchImportPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BatchImportPreviewDto>> {
181
+ const queryParameters: any = {};
182
+
183
+ const headerParameters: runtime.HTTPHeaders = {};
184
+
185
+ if (this.configuration && this.configuration.accessToken) {
186
+ const token = this.configuration.accessToken;
187
+ const tokenString = await token("bearer", []);
188
+
189
+ if (tokenString) {
190
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
191
+ }
192
+ }
193
+ const consumes: runtime.Consume[] = [
194
+ { contentType: 'multipart/form-data' },
195
+ ];
196
+ // @ts-ignore: canConsumeForm may be unused
197
+ const canConsumeForm = runtime.canConsumeForm(consumes);
198
+
199
+ let formParams: { append(param: string, value: any): any };
200
+ let useForm = false;
201
+ // use FormData to transmit files using content-type "multipart/form-data"
202
+ useForm = canConsumeForm;
203
+ if (useForm) {
204
+ formParams = new FormData();
205
+ } else {
206
+ formParams = new URLSearchParams();
207
+ }
208
+
209
+ if (requestParameters['file'] != null) {
210
+ formParams.append('file', requestParameters['file'] as any);
211
+ }
212
+
213
+ const response = await this.request({
214
+ path: `/private/domains/import-preview`,
215
+ method: 'POST',
216
+ headers: headerParameters,
217
+ query: queryParameters,
218
+ body: formParams,
219
+ }, initOverrides);
220
+
221
+ return new runtime.JSONApiResponse(response, (jsonValue) => BatchImportPreviewDtoFromJSON(jsonValue));
222
+ }
223
+
224
+ /**
225
+ *
226
+ */
227
+ async batchImportPreview(requestParameters: DomainsApiBatchImportPreviewRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BatchImportPreviewDto> {
228
+ const response = await this.batchImportPreviewRaw(requestParameters, initOverrides);
229
+ return await response.value();
230
+ }
231
+
170
232
  /**
171
233
  *
172
234
  */
@@ -0,0 +1,83 @@
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 { ParsedDomainDto } from './ParsedDomainDto';
17
+ import {
18
+ ParsedDomainDtoFromJSON,
19
+ ParsedDomainDtoFromJSONTyped,
20
+ ParsedDomainDtoToJSON,
21
+ ParsedDomainDtoToJSONTyped,
22
+ } from './ParsedDomainDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface BatchImportPreviewDto
28
+ */
29
+ export interface BatchImportPreviewDto {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof BatchImportPreviewDto
34
+ */
35
+ domains: number;
36
+ /**
37
+ *
38
+ * @type {Array<ParsedDomainDto>}
39
+ * @memberof BatchImportPreviewDto
40
+ */
41
+ preview: Array<ParsedDomainDto>;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the BatchImportPreviewDto interface.
46
+ */
47
+ export function instanceOfBatchImportPreviewDto(value: object): value is BatchImportPreviewDto {
48
+ if (!('domains' in value) || value['domains'] === undefined) return false;
49
+ if (!('preview' in value) || value['preview'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function BatchImportPreviewDtoFromJSON(json: any): BatchImportPreviewDto {
54
+ return BatchImportPreviewDtoFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function BatchImportPreviewDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchImportPreviewDto {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'domains': json['domains'],
64
+ 'preview': ((json['preview'] as Array<any>).map(ParsedDomainDtoFromJSON)),
65
+ };
66
+ }
67
+
68
+ export function BatchImportPreviewDtoToJSON(json: any): BatchImportPreviewDto {
69
+ return BatchImportPreviewDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function BatchImportPreviewDtoToJSONTyped(value?: BatchImportPreviewDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'domains': value['domains'],
80
+ 'preview': ((value['preview'] as Array<any>).map(ParsedDomainDtoToJSON)),
81
+ };
82
+ }
83
+
@@ -0,0 +1,90 @@
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 { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ MoneyDtoToJSONTyped,
22
+ } from './MoneyDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ParsedDomainDto
28
+ */
29
+ export interface ParsedDomainDto {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ParsedDomainDto
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {MoneyDto}
39
+ * @memberof ParsedDomainDto
40
+ */
41
+ buyNow?: MoneyDto | null;
42
+ /**
43
+ *
44
+ * @type {MoneyDto}
45
+ * @memberof ParsedDomainDto
46
+ */
47
+ minOffer?: MoneyDto | null;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the ParsedDomainDto interface.
52
+ */
53
+ export function instanceOfParsedDomainDto(value: object): value is ParsedDomainDto {
54
+ if (!('name' in value) || value['name'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function ParsedDomainDtoFromJSON(json: any): ParsedDomainDto {
59
+ return ParsedDomainDtoFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function ParsedDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParsedDomainDto {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'name': json['name'],
69
+ 'buyNow': json['buyNow'] == null ? undefined : MoneyDtoFromJSON(json['buyNow']),
70
+ 'minOffer': json['minOffer'] == null ? undefined : MoneyDtoFromJSON(json['minOffer']),
71
+ };
72
+ }
73
+
74
+ export function ParsedDomainDtoToJSON(json: any): ParsedDomainDto {
75
+ return ParsedDomainDtoToJSONTyped(json, false);
76
+ }
77
+
78
+ export function ParsedDomainDtoToJSONTyped(value?: ParsedDomainDto | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'name': value['name'],
86
+ 'buyNow': MoneyDtoToJSON(value['buyNow']),
87
+ 'minOffer': MoneyDtoToJSON(value['minOffer']),
88
+ };
89
+ }
90
+
@@ -11,6 +11,7 @@ export * from './AddressDto';
11
11
  export * from './AdminAccountSettingsInput';
12
12
  export * from './AdminGetAllDomainTransfers200Response';
13
13
  export * from './BadRequestException';
14
+ export * from './BatchImportPreviewDto';
14
15
  export * from './BatchReadBuyerLeadMessageInput';
15
16
  export * from './BatchReadSellerLeadMessageInput';
16
17
  export * from './BatchUpdateDomainsInput';
@@ -96,6 +97,7 @@ export * from './OwnedDomainDto';
96
97
  export * from './PaginateResponse';
97
98
  export * from './PaginateResponseLinks';
98
99
  export * from './PaginateResponseMeta';
100
+ export * from './ParsedDomainDto';
99
101
  export * from './PaymentProviderDto';
100
102
  export * from './PublicLeadBuyerDto';
101
103
  export * from './PublicLeadDto';