@randock/nameshift-api-client 0.0.12 → 0.0.14

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 (47) hide show
  1. package/.openapi-generator/FILES +11 -1
  2. package/dist/apis/LeadsApi.d.ts +38 -3
  3. package/dist/apis/LeadsApi.js +170 -1
  4. package/dist/models/CreateLeadMessageInput.d.ts +31 -0
  5. package/dist/models/CreateLeadMessageInput.js +50 -0
  6. package/dist/models/CreateLeadMessageInputData.d.ts +32 -0
  7. package/dist/models/CreateLeadMessageInputData.js +51 -0
  8. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +75 -0
  9. package/dist/models/IntersectionDomainDtoWithAccountDto.js +73 -0
  10. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +81 -0
  11. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +83 -0
  12. package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +37 -2
  13. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +23 -1
  14. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.d.ts +32 -0
  15. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +51 -0
  16. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.d.ts +37 -0
  17. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +53 -0
  18. package/dist/models/LeadDto.d.ts +22 -0
  19. package/dist/models/LeadDto.js +16 -1
  20. package/dist/models/LeadMessageData.d.ts +32 -0
  21. package/dist/models/LeadMessageData.js +51 -0
  22. package/dist/models/LeadMessageDto.d.ts +85 -0
  23. package/dist/models/LeadMessageDto.js +84 -0
  24. package/dist/models/LeadMessageDtoData.d.ts +32 -0
  25. package/dist/models/LeadMessageDtoData.js +51 -0
  26. package/dist/models/ListLeadMessagesDto.d.ts +32 -0
  27. package/dist/models/ListLeadMessagesDto.js +51 -0
  28. package/dist/models/PutLeadInput.d.ts +32 -0
  29. package/dist/models/PutLeadInput.js +51 -0
  30. package/dist/models/index.d.ts +11 -1
  31. package/dist/models/index.js +11 -1
  32. package/package.json +2 -1
  33. package/src/apis/LeadsApi.ts +160 -6
  34. package/src/models/CreateLeadMessageInput.ts +66 -0
  35. package/src/models/CreateLeadMessageInputData.ts +73 -0
  36. package/src/models/IntersectionDomainDtoWithAccountDto.ts +142 -0
  37. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +146 -0
  38. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +61 -2
  39. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +73 -0
  40. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +75 -0
  41. package/src/models/LeadDto.ts +35 -0
  42. package/src/models/LeadMessageData.ts +73 -0
  43. package/src/models/LeadMessageDto.ts +148 -0
  44. package/src/models/LeadMessageDtoData.ts +73 -0
  45. package/src/models/ListLeadMessagesDto.ts +73 -0
  46. package/src/models/PutLeadInput.ts +73 -0
  47. package/src/models/index.ts +11 -1
@@ -12,11 +12,13 @@ src/apis/index.ts
12
12
  src/index.ts
13
13
  src/models/AccountAddressDto.ts
14
14
  src/models/AccountAddressInput.ts
15
+ src/models/AccountDto.ts
15
16
  src/models/AccountFinancialInput.ts
16
17
  src/models/AccountSettingsInput.ts
17
18
  src/models/BatchUpdate404Response.ts
18
19
  src/models/BatchUpdateDomainsInput.ts
19
20
  src/models/CreateLeadInput.ts
21
+ src/models/CreateLeadMessageInput.ts
20
22
  src/models/DeleteDomainsInput.ts
21
23
  src/models/DomainDto.ts
22
24
  src/models/ImportDomainsDto.ts
@@ -24,12 +26,19 @@ src/models/IntersectionAccountDtoWithAddressDto.ts
24
26
  src/models/IntersectionAccountDtoWithFinancialDto.ts
25
27
  src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
26
28
  src/models/IntersectionAccountDtoWithSettingsDto.ts
27
- src/models/IntersectionLeadDto.ts
29
+ src/models/IntersectionDomainDtoWithAccountDto.ts
30
+ src/models/IntersectionLeadDtoWithLeadDetailsDto.ts
28
31
  src/models/IntersectionLeadDtoWithListFieldsDto.ts
32
+ src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts
33
+ src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts
29
34
  src/models/LeadDto.ts
35
+ src/models/LeadMessageData.ts
36
+ src/models/LeadMessageDto.ts
37
+ src/models/LeadMessageDtoData.ts
30
38
  src/models/List200Response.ts
31
39
  src/models/List400Response.ts
32
40
  src/models/List401Response.ts
41
+ src/models/ListLeadMessagesDto.ts
33
42
  src/models/Login401Response.ts
34
43
  src/models/Login429Response.ts
35
44
  src/models/LoginInput.ts
@@ -39,6 +48,7 @@ src/models/PaginateResponse.ts
39
48
  src/models/PaginateResponseLinks.ts
40
49
  src/models/PaginateResponseMeta.ts
41
50
  src/models/PublicDomainControllerGetDomainIdentifier404Response.ts
51
+ src/models/PutLeadInput.ts
42
52
  src/models/TokenDto.ts
43
53
  src/models/UpdateDomainInput.ts
44
54
  src/models/UpdateSettings401Response.ts
@@ -10,10 +10,21 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { IntersectionLeadDto, IntersectionLeadDtoWithListFieldsDto } from '../models/index';
13
+ import type { CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, IntersectionLeadDtoWithListFieldsDto, LeadMessageDto, ListLeadMessagesDto, PutLeadInput } from '../models/index';
14
+ export interface CreateMessageRequest {
15
+ leadId: string;
16
+ createLeadMessageInput: CreateLeadMessageInput;
17
+ }
14
18
  export interface GetRequest {
15
19
  leadId: string;
16
20
  }
21
+ export interface GetMessagesRequest {
22
+ leadId: string;
23
+ }
24
+ export interface PutOfferRequest {
25
+ leadId: string;
26
+ putLeadInput: PutLeadInput;
27
+ }
17
28
  /**
18
29
  *
19
30
  */
@@ -21,11 +32,27 @@ export declare class LeadsApi extends runtime.BaseAPI {
21
32
  /**
22
33
  *
23
34
  */
24
- getRaw(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IntersectionLeadDto>>>;
35
+ createMessageRaw(requestParameters: CreateMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadMessageDto>>;
36
+ /**
37
+ *
38
+ */
39
+ createMessage(requestParameters: CreateMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadMessageDto>;
40
+ /**
41
+ *
42
+ */
43
+ getRaw(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDto>>;
25
44
  /**
26
45
  *
27
46
  */
28
- get(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IntersectionLeadDto>>;
47
+ get(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionLeadDtoWithLeadDetailsDto>;
48
+ /**
49
+ *
50
+ */
51
+ getMessagesRaw(requestParameters: GetMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListLeadMessagesDto>>;
52
+ /**
53
+ *
54
+ */
55
+ getMessages(requestParameters: GetMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListLeadMessagesDto>;
29
56
  /**
30
57
  *
31
58
  */
@@ -34,4 +61,12 @@ export declare class LeadsApi extends runtime.BaseAPI {
34
61
  *
35
62
  */
36
63
  listLeads(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IntersectionLeadDtoWithListFieldsDto>>;
64
+ /**
65
+ *
66
+ */
67
+ putOfferRaw(requestParameters: PutOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadMessageDto>>;
68
+ /**
69
+ *
70
+ */
71
+ putOffer(requestParameters: PutOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadMessageDto>;
37
72
  }
@@ -75,6 +75,64 @@ var LeadsApi = /** @class */ (function (_super) {
75
75
  function LeadsApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ *
80
+ */
81
+ LeadsApi.prototype.createMessageRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, token, tokenString, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ if (requestParameters.leadId === null || requestParameters.leadId === undefined) {
88
+ throw new runtime.RequiredError('leadId', 'Required parameter requestParameters.leadId was null or undefined when calling createMessage.');
89
+ }
90
+ if (requestParameters.createLeadMessageInput === null || requestParameters.createLeadMessageInput === undefined) {
91
+ throw new runtime.RequiredError('createLeadMessageInput', 'Required parameter requestParameters.createLeadMessageInput was null or undefined when calling createMessage.');
92
+ }
93
+ queryParameters = {};
94
+ headerParameters = {};
95
+ headerParameters['Content-Type'] = 'application/json';
96
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
97
+ token = this.configuration.accessToken;
98
+ return [4 /*yield*/, token("bearer", [])];
99
+ case 1:
100
+ tokenString = _a.sent();
101
+ if (tokenString) {
102
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
103
+ }
104
+ _a.label = 2;
105
+ case 2: return [4 /*yield*/, this.request({
106
+ path: "/leads/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters.leadId))),
107
+ method: 'POST',
108
+ headers: headerParameters,
109
+ query: queryParameters,
110
+ body: (0, index_1.CreateLeadMessageInputToJSON)(requestParameters.createLeadMessageInput),
111
+ }, initOverrides)];
112
+ case 3:
113
+ response = _a.sent();
114
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadMessageDtoFromJSON)(jsonValue); })];
115
+ }
116
+ });
117
+ });
118
+ };
119
+ /**
120
+ *
121
+ */
122
+ LeadsApi.prototype.createMessage = function (requestParameters, initOverrides) {
123
+ return __awaiter(this, void 0, void 0, function () {
124
+ var response;
125
+ return __generator(this, function (_a) {
126
+ switch (_a.label) {
127
+ case 0: return [4 /*yield*/, this.createMessageRaw(requestParameters, initOverrides)];
128
+ case 1:
129
+ response = _a.sent();
130
+ return [4 /*yield*/, response.value()];
131
+ case 2: return [2 /*return*/, _a.sent()];
132
+ }
133
+ });
134
+ });
135
+ };
78
136
  /**
79
137
  *
80
138
  */
@@ -106,7 +164,7 @@ var LeadsApi = /** @class */ (function (_super) {
106
164
  }, initOverrides)];
107
165
  case 3:
108
166
  response = _a.sent();
109
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.IntersectionLeadDtoFromJSON); })];
167
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionLeadDtoWithLeadDetailsDtoFromJSON)(jsonValue); })];
110
168
  }
111
169
  });
112
170
  });
@@ -128,6 +186,59 @@ var LeadsApi = /** @class */ (function (_super) {
128
186
  });
129
187
  });
130
188
  };
189
+ /**
190
+ *
191
+ */
192
+ LeadsApi.prototype.getMessagesRaw = function (requestParameters, initOverrides) {
193
+ return __awaiter(this, void 0, void 0, function () {
194
+ var queryParameters, headerParameters, token, tokenString, response;
195
+ return __generator(this, function (_a) {
196
+ switch (_a.label) {
197
+ case 0:
198
+ if (requestParameters.leadId === null || requestParameters.leadId === undefined) {
199
+ throw new runtime.RequiredError('leadId', 'Required parameter requestParameters.leadId was null or undefined when calling getMessages.');
200
+ }
201
+ queryParameters = {};
202
+ headerParameters = {};
203
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
204
+ token = this.configuration.accessToken;
205
+ return [4 /*yield*/, token("bearer", [])];
206
+ case 1:
207
+ tokenString = _a.sent();
208
+ if (tokenString) {
209
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
210
+ }
211
+ _a.label = 2;
212
+ case 2: return [4 /*yield*/, this.request({
213
+ path: "/leads/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters.leadId))),
214
+ method: 'GET',
215
+ headers: headerParameters,
216
+ query: queryParameters,
217
+ }, initOverrides)];
218
+ case 3:
219
+ response = _a.sent();
220
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListLeadMessagesDtoFromJSON)(jsonValue); })];
221
+ }
222
+ });
223
+ });
224
+ };
225
+ /**
226
+ *
227
+ */
228
+ LeadsApi.prototype.getMessages = function (requestParameters, initOverrides) {
229
+ return __awaiter(this, void 0, void 0, function () {
230
+ var response;
231
+ return __generator(this, function (_a) {
232
+ switch (_a.label) {
233
+ case 0: return [4 /*yield*/, this.getMessagesRaw(requestParameters, initOverrides)];
234
+ case 1:
235
+ response = _a.sent();
236
+ return [4 /*yield*/, response.value()];
237
+ case 2: return [2 /*return*/, _a.sent()];
238
+ }
239
+ });
240
+ });
241
+ };
131
242
  /**
132
243
  *
133
244
  */
@@ -178,6 +289,64 @@ var LeadsApi = /** @class */ (function (_super) {
178
289
  });
179
290
  });
180
291
  };
292
+ /**
293
+ *
294
+ */
295
+ LeadsApi.prototype.putOfferRaw = function (requestParameters, initOverrides) {
296
+ return __awaiter(this, void 0, void 0, function () {
297
+ var queryParameters, headerParameters, token, tokenString, response;
298
+ return __generator(this, function (_a) {
299
+ switch (_a.label) {
300
+ case 0:
301
+ if (requestParameters.leadId === null || requestParameters.leadId === undefined) {
302
+ throw new runtime.RequiredError('leadId', 'Required parameter requestParameters.leadId was null or undefined when calling putOffer.');
303
+ }
304
+ if (requestParameters.putLeadInput === null || requestParameters.putLeadInput === undefined) {
305
+ throw new runtime.RequiredError('putLeadInput', 'Required parameter requestParameters.putLeadInput was null or undefined when calling putOffer.');
306
+ }
307
+ queryParameters = {};
308
+ headerParameters = {};
309
+ headerParameters['Content-Type'] = 'application/json';
310
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
311
+ token = this.configuration.accessToken;
312
+ return [4 /*yield*/, token("bearer", [])];
313
+ case 1:
314
+ tokenString = _a.sent();
315
+ if (tokenString) {
316
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
317
+ }
318
+ _a.label = 2;
319
+ case 2: return [4 /*yield*/, this.request({
320
+ path: "/leads/{leadId}/offer".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters.leadId))),
321
+ method: 'PUT',
322
+ headers: headerParameters,
323
+ query: queryParameters,
324
+ body: (0, index_1.PutLeadInputToJSON)(requestParameters.putLeadInput),
325
+ }, initOverrides)];
326
+ case 3:
327
+ response = _a.sent();
328
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadMessageDtoFromJSON)(jsonValue); })];
329
+ }
330
+ });
331
+ });
332
+ };
333
+ /**
334
+ *
335
+ */
336
+ LeadsApi.prototype.putOffer = function (requestParameters, initOverrides) {
337
+ return __awaiter(this, void 0, void 0, function () {
338
+ var response;
339
+ return __generator(this, function (_a) {
340
+ switch (_a.label) {
341
+ case 0: return [4 /*yield*/, this.putOfferRaw(requestParameters, initOverrides)];
342
+ case 1:
343
+ response = _a.sent();
344
+ return [4 /*yield*/, response.value()];
345
+ case 2: return [2 /*return*/, _a.sent()];
346
+ }
347
+ });
348
+ });
349
+ };
181
350
  return LeadsApi;
182
351
  }(runtime.BaseAPI));
183
352
  exports.LeadsApi = LeadsApi;
@@ -0,0 +1,31 @@
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 CreateLeadMessageInput
16
+ */
17
+ export interface CreateLeadMessageInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateLeadMessageInput
22
+ */
23
+ message: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateLeadMessageInput interface.
27
+ */
28
+ export declare function instanceOfCreateLeadMessageInput(value: object): boolean;
29
+ export declare function CreateLeadMessageInputFromJSON(json: any): CreateLeadMessageInput;
30
+ export declare function CreateLeadMessageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLeadMessageInput;
31
+ export declare function CreateLeadMessageInputToJSON(value?: CreateLeadMessageInput | null): any;
@@ -0,0 +1,50 @@
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.CreateLeadMessageInputToJSON = exports.CreateLeadMessageInputFromJSONTyped = exports.CreateLeadMessageInputFromJSON = exports.instanceOfCreateLeadMessageInput = void 0;
17
+ /**
18
+ * Check if a given object implements the CreateLeadMessageInput interface.
19
+ */
20
+ function instanceOfCreateLeadMessageInput(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "message" in value;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfCreateLeadMessageInput = instanceOfCreateLeadMessageInput;
26
+ function CreateLeadMessageInputFromJSON(json) {
27
+ return CreateLeadMessageInputFromJSONTyped(json, false);
28
+ }
29
+ exports.CreateLeadMessageInputFromJSON = CreateLeadMessageInputFromJSON;
30
+ function CreateLeadMessageInputFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'message': json['message'],
36
+ };
37
+ }
38
+ exports.CreateLeadMessageInputFromJSONTyped = CreateLeadMessageInputFromJSONTyped;
39
+ function CreateLeadMessageInputToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'message': value.message,
48
+ };
49
+ }
50
+ exports.CreateLeadMessageInputToJSON = CreateLeadMessageInputToJSON;
@@ -0,0 +1,32 @@
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 CreateLeadMessageInputData
17
+ */
18
+ export interface CreateLeadMessageInputData {
19
+ /**
20
+ *
21
+ * @type {MoneyDto}
22
+ * @memberof CreateLeadMessageInputData
23
+ */
24
+ price: MoneyDto;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CreateLeadMessageInputData interface.
28
+ */
29
+ export declare function instanceOfCreateLeadMessageInputData(value: object): boolean;
30
+ export declare function CreateLeadMessageInputDataFromJSON(json: any): CreateLeadMessageInputData;
31
+ export declare function CreateLeadMessageInputDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLeadMessageInputData;
32
+ export declare function CreateLeadMessageInputDataToJSON(value?: CreateLeadMessageInputData | null): any;
@@ -0,0 +1,51 @@
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.CreateLeadMessageInputDataToJSON = exports.CreateLeadMessageInputDataFromJSONTyped = exports.CreateLeadMessageInputDataFromJSON = exports.instanceOfCreateLeadMessageInputData = void 0;
17
+ var MoneyDto_1 = require("./MoneyDto");
18
+ /**
19
+ * Check if a given object implements the CreateLeadMessageInputData interface.
20
+ */
21
+ function instanceOfCreateLeadMessageInputData(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "price" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfCreateLeadMessageInputData = instanceOfCreateLeadMessageInputData;
27
+ function CreateLeadMessageInputDataFromJSON(json) {
28
+ return CreateLeadMessageInputDataFromJSONTyped(json, false);
29
+ }
30
+ exports.CreateLeadMessageInputDataFromJSON = CreateLeadMessageInputDataFromJSON;
31
+ function CreateLeadMessageInputDataFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
37
+ };
38
+ }
39
+ exports.CreateLeadMessageInputDataFromJSONTyped = CreateLeadMessageInputDataFromJSONTyped;
40
+ function CreateLeadMessageInputDataToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'price': (0, MoneyDto_1.MoneyDtoToJSON)(value.price),
49
+ };
50
+ }
51
+ exports.CreateLeadMessageInputDataToJSON = CreateLeadMessageInputDataToJSON;
@@ -0,0 +1,75 @@
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 { AccountDto } from './AccountDto';
13
+ import type { MoneyDto } from './MoneyDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface IntersectionDomainDtoWithAccountDto
18
+ */
19
+ export interface IntersectionDomainDtoWithAccountDto {
20
+ /**
21
+ * The uuid for this domain.
22
+ * @type {string}
23
+ * @memberof IntersectionDomainDtoWithAccountDto
24
+ */
25
+ id: string;
26
+ /**
27
+ * The TLD for this domain.
28
+ * @type {string}
29
+ * @memberof IntersectionDomainDtoWithAccountDto
30
+ */
31
+ tld: string;
32
+ /**
33
+ * Whether this domain is verified by the owner (ns3, txt) or not.
34
+ * @type {boolean}
35
+ * @memberof IntersectionDomainDtoWithAccountDto
36
+ */
37
+ verified: boolean;
38
+ /**
39
+ * Whether the nameservers (ns1,ns2) are set or not.
40
+ * @type {boolean}
41
+ * @memberof IntersectionDomainDtoWithAccountDto
42
+ */
43
+ nameservers: boolean;
44
+ /**
45
+ * The domain name (example.com)
46
+ * @type {string}
47
+ * @memberof IntersectionDomainDtoWithAccountDto
48
+ */
49
+ name: string;
50
+ /**
51
+ *
52
+ * @type {MoneyDto}
53
+ * @memberof IntersectionDomainDtoWithAccountDto
54
+ */
55
+ buyNow: MoneyDto;
56
+ /**
57
+ *
58
+ * @type {MoneyDto}
59
+ * @memberof IntersectionDomainDtoWithAccountDto
60
+ */
61
+ minOffer: MoneyDto;
62
+ /**
63
+ *
64
+ * @type {AccountDto}
65
+ * @memberof IntersectionDomainDtoWithAccountDto
66
+ */
67
+ account: AccountDto;
68
+ }
69
+ /**
70
+ * Check if a given object implements the IntersectionDomainDtoWithAccountDto interface.
71
+ */
72
+ export declare function instanceOfIntersectionDomainDtoWithAccountDto(value: object): boolean;
73
+ export declare function IntersectionDomainDtoWithAccountDtoFromJSON(json: any): IntersectionDomainDtoWithAccountDto;
74
+ export declare function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainDtoWithAccountDto;
75
+ export declare function IntersectionDomainDtoWithAccountDtoToJSON(value?: IntersectionDomainDtoWithAccountDto | null): any;
@@ -0,0 +1,73 @@
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.IntersectionDomainDtoWithAccountDtoToJSON = exports.IntersectionDomainDtoWithAccountDtoFromJSONTyped = exports.IntersectionDomainDtoWithAccountDtoFromJSON = exports.instanceOfIntersectionDomainDtoWithAccountDto = void 0;
17
+ var AccountDto_1 = require("./AccountDto");
18
+ var MoneyDto_1 = require("./MoneyDto");
19
+ /**
20
+ * Check if a given object implements the IntersectionDomainDtoWithAccountDto interface.
21
+ */
22
+ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
23
+ var isInstance = true;
24
+ isInstance = isInstance && "id" in value;
25
+ isInstance = isInstance && "tld" in value;
26
+ isInstance = isInstance && "verified" in value;
27
+ isInstance = isInstance && "nameservers" in value;
28
+ isInstance = isInstance && "name" in value;
29
+ isInstance = isInstance && "buyNow" in value;
30
+ isInstance = isInstance && "minOffer" in value;
31
+ isInstance = isInstance && "account" in value;
32
+ return isInstance;
33
+ }
34
+ exports.instanceOfIntersectionDomainDtoWithAccountDto = instanceOfIntersectionDomainDtoWithAccountDto;
35
+ function IntersectionDomainDtoWithAccountDtoFromJSON(json) {
36
+ return IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, false);
37
+ }
38
+ exports.IntersectionDomainDtoWithAccountDtoFromJSON = IntersectionDomainDtoWithAccountDtoFromJSON;
39
+ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
40
+ if ((json === undefined) || (json === null)) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'tld': json['tld'],
46
+ 'verified': json['verified'],
47
+ 'nameservers': json['nameservers'],
48
+ 'name': json['name'],
49
+ 'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
50
+ 'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
51
+ 'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
52
+ };
53
+ }
54
+ exports.IntersectionDomainDtoWithAccountDtoFromJSONTyped = IntersectionDomainDtoWithAccountDtoFromJSONTyped;
55
+ function IntersectionDomainDtoWithAccountDtoToJSON(value) {
56
+ if (value === undefined) {
57
+ return undefined;
58
+ }
59
+ if (value === null) {
60
+ return null;
61
+ }
62
+ return {
63
+ 'id': value.id,
64
+ 'tld': value.tld,
65
+ 'verified': value.verified,
66
+ 'nameservers': value.nameservers,
67
+ 'name': value.name,
68
+ 'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value.buyNow),
69
+ 'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value.minOffer),
70
+ 'account': (0, AccountDto_1.AccountDtoToJSON)(value.account),
71
+ };
72
+ }
73
+ exports.IntersectionDomainDtoWithAccountDtoToJSON = IntersectionDomainDtoWithAccountDtoToJSON;