@randock/nameshift-api-client 0.0.155 → 0.0.157

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.
@@ -54,6 +54,7 @@ src/models/ConflictException.ts
54
54
  src/models/CreateBuyerLeadMessageInput.ts
55
55
  src/models/CreateLeadInput.ts
56
56
  src/models/CreateLeadMessageInput.ts
57
+ src/models/CreateManualLeadInput.ts
57
58
  src/models/CreateOrderInput.ts
58
59
  src/models/DeleteDomainsInput.ts
59
60
  src/models/DomainDto.ts
@@ -110,6 +111,7 @@ src/models/ListLeadMessagesDto.ts
110
111
  src/models/LoginDto.ts
111
112
  src/models/LoginInput.ts
112
113
  src/models/MoneyDto.ts
114
+ src/models/MoneyInput.ts
113
115
  src/models/NotFoundException.ts
114
116
  src/models/ObjectId.ts
115
117
  src/models/OrderCompanyInfoDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.155
1
+ ## @randock/nameshift-api-client@0.0.157
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.155 --save
39
+ npm install @randock/nameshift-api-client@0.0.157 --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
- a6fbc31a46ff0d280de97369bdc1039dda7c3537b4c2f15d930598ec854065e0eeb3c9033ed968e1d4dfecd21028dd6f
47
+ 457322dbc1b1f81cd261ffe41d8a5d79ae43b426bca0f0f66df66082e006a9996e35da07585e84d4b5642c02d566b183
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
13
+ import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
14
14
  export interface LeadsApiAcceptLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -21,6 +21,9 @@ export interface LeadsApiBulkReadSellerLeadMessageRequest {
21
21
  leadId: string;
22
22
  batchReadSellerLeadMessageInput: BatchReadSellerLeadMessageInput;
23
23
  }
24
+ export interface LeadsApiCreateManualLeadRequest {
25
+ createManualLeadInput: CreateManualLeadInput;
26
+ }
24
27
  export interface LeadsApiCreateMessageRequest {
25
28
  leadId: string;
26
29
  createLeadMessageInput: CreateLeadMessageInput;
@@ -72,6 +75,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
72
75
  *
73
76
  */
74
77
  bulkReadSellerLeadMessage(requestParameters: LeadsApiBulkReadSellerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
78
+ /**
79
+ *
80
+ */
81
+ createManualLeadRaw(requestParameters: LeadsApiCreateManualLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
82
+ /**
83
+ *
84
+ */
85
+ createManualLead(requestParameters: LeadsApiCreateManualLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
75
86
  /**
76
87
  *
77
88
  */
@@ -233,6 +233,59 @@ var LeadsApi = /** @class */ (function (_super) {
233
233
  });
234
234
  });
235
235
  };
236
+ /**
237
+ *
238
+ */
239
+ LeadsApi.prototype.createManualLeadRaw = function (requestParameters, initOverrides) {
240
+ return __awaiter(this, void 0, void 0, function () {
241
+ var queryParameters, headerParameters, token, tokenString, response;
242
+ return __generator(this, function (_a) {
243
+ switch (_a.label) {
244
+ case 0:
245
+ if (requestParameters['createManualLeadInput'] == null) {
246
+ throw new runtime.RequiredError('createManualLeadInput', 'Required parameter "createManualLeadInput" was null or undefined when calling createManualLead().');
247
+ }
248
+ queryParameters = {};
249
+ headerParameters = {};
250
+ headerParameters['Content-Type'] = 'application/json';
251
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
252
+ token = this.configuration.accessToken;
253
+ return [4 /*yield*/, token("bearer", [])];
254
+ case 1:
255
+ tokenString = _a.sent();
256
+ if (tokenString) {
257
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
258
+ }
259
+ _a.label = 2;
260
+ case 2: return [4 /*yield*/, this.request({
261
+ path: "/private/leads/manual",
262
+ method: 'POST',
263
+ headers: headerParameters,
264
+ query: queryParameters,
265
+ body: (0, index_1.CreateManualLeadInputToJSON)(requestParameters['createManualLeadInput']),
266
+ }, initOverrides)];
267
+ case 3:
268
+ response = _a.sent();
269
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
270
+ }
271
+ });
272
+ });
273
+ };
274
+ /**
275
+ *
276
+ */
277
+ LeadsApi.prototype.createManualLead = function (requestParameters, initOverrides) {
278
+ return __awaiter(this, void 0, void 0, function () {
279
+ return __generator(this, function (_a) {
280
+ switch (_a.label) {
281
+ case 0: return [4 /*yield*/, this.createManualLeadRaw(requestParameters, initOverrides)];
282
+ case 1:
283
+ _a.sent();
284
+ return [2 /*return*/];
285
+ }
286
+ });
287
+ });
288
+ };
236
289
  /**
237
290
  *
238
291
  */
@@ -33,7 +33,19 @@ export interface AccountSettingsInput {
33
33
  * @type {string}
34
34
  * @memberof AccountSettingsInput
35
35
  */
36
- sidnIdcode?: string;
36
+ sidnIdcode?: string | null;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof AccountSettingsInput
41
+ */
42
+ anonymous?: boolean;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof AccountSettingsInput
47
+ */
48
+ showRelatedDomains?: boolean;
37
49
  }
38
50
  /**
39
51
  * Check if a given object implements the AccountSettingsInput interface.
@@ -36,6 +36,8 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['defaultStartingOffer']),
37
37
  'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
38
38
  'sidnIdcode': json['sidnIdcode'] == null ? undefined : json['sidnIdcode'],
39
+ 'anonymous': json['anonymous'] == null ? undefined : json['anonymous'],
40
+ 'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
39
41
  };
40
42
  }
41
43
  function AccountSettingsInputToJSON(json) {
@@ -50,5 +52,7 @@ function AccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
50
52
  'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['defaultStartingOffer']),
51
53
  'defaultCurrencyCode': value['defaultCurrencyCode'],
52
54
  'sidnIdcode': value['sidnIdcode'],
55
+ 'anonymous': value['anonymous'],
56
+ 'showRelatedDomains': value['showRelatedDomains'],
53
57
  };
54
58
  }
@@ -0,0 +1,77 @@
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 { MoneyInput } from './MoneyInput';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateManualLeadInput
17
+ */
18
+ export interface CreateManualLeadInput {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof CreateManualLeadInput
23
+ */
24
+ type: CreateManualLeadInputTypeEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof CreateManualLeadInput
29
+ */
30
+ domainName: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof CreateManualLeadInput
35
+ */
36
+ email: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof CreateManualLeadInput
41
+ */
42
+ firstname: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof CreateManualLeadInput
47
+ */
48
+ lastname: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof CreateManualLeadInput
53
+ */
54
+ locale: string;
55
+ /**
56
+ *
57
+ * @type {MoneyInput}
58
+ * @memberof CreateManualLeadInput
59
+ */
60
+ offer: MoneyInput;
61
+ }
62
+ /**
63
+ * @export
64
+ */
65
+ export declare const CreateManualLeadInputTypeEnum: {
66
+ readonly BUY_NOW: "buy_now";
67
+ readonly OFFER: "offer";
68
+ };
69
+ export type CreateManualLeadInputTypeEnum = typeof CreateManualLeadInputTypeEnum[keyof typeof CreateManualLeadInputTypeEnum];
70
+ /**
71
+ * Check if a given object implements the CreateManualLeadInput interface.
72
+ */
73
+ export declare function instanceOfCreateManualLeadInput(value: object): value is CreateManualLeadInput;
74
+ export declare function CreateManualLeadInputFromJSON(json: any): CreateManualLeadInput;
75
+ export declare function CreateManualLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateManualLeadInput;
76
+ export declare function CreateManualLeadInputToJSON(json: any): CreateManualLeadInput;
77
+ export declare function CreateManualLeadInputToJSONTyped(value?: CreateManualLeadInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,84 @@
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.CreateManualLeadInputTypeEnum = void 0;
17
+ exports.instanceOfCreateManualLeadInput = instanceOfCreateManualLeadInput;
18
+ exports.CreateManualLeadInputFromJSON = CreateManualLeadInputFromJSON;
19
+ exports.CreateManualLeadInputFromJSONTyped = CreateManualLeadInputFromJSONTyped;
20
+ exports.CreateManualLeadInputToJSON = CreateManualLeadInputToJSON;
21
+ exports.CreateManualLeadInputToJSONTyped = CreateManualLeadInputToJSONTyped;
22
+ var MoneyInput_1 = require("./MoneyInput");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.CreateManualLeadInputTypeEnum = {
27
+ BUY_NOW: 'buy_now',
28
+ OFFER: 'offer'
29
+ };
30
+ /**
31
+ * Check if a given object implements the CreateManualLeadInput interface.
32
+ */
33
+ function instanceOfCreateManualLeadInput(value) {
34
+ if (!('type' in value) || value['type'] === undefined)
35
+ return false;
36
+ if (!('domainName' in value) || value['domainName'] === undefined)
37
+ return false;
38
+ if (!('email' in value) || value['email'] === undefined)
39
+ return false;
40
+ if (!('firstname' in value) || value['firstname'] === undefined)
41
+ return false;
42
+ if (!('lastname' in value) || value['lastname'] === undefined)
43
+ return false;
44
+ if (!('locale' in value) || value['locale'] === undefined)
45
+ return false;
46
+ if (!('offer' in value) || value['offer'] === undefined)
47
+ return false;
48
+ return true;
49
+ }
50
+ function CreateManualLeadInputFromJSON(json) {
51
+ return CreateManualLeadInputFromJSONTyped(json, false);
52
+ }
53
+ function CreateManualLeadInputFromJSONTyped(json, ignoreDiscriminator) {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+ 'type': json['type'],
59
+ 'domainName': json['domainName'],
60
+ 'email': json['email'],
61
+ 'firstname': json['firstname'],
62
+ 'lastname': json['lastname'],
63
+ 'locale': json['locale'],
64
+ 'offer': (0, MoneyInput_1.MoneyInputFromJSON)(json['offer']),
65
+ };
66
+ }
67
+ function CreateManualLeadInputToJSON(json) {
68
+ return CreateManualLeadInputToJSONTyped(json, false);
69
+ }
70
+ function CreateManualLeadInputToJSONTyped(value, ignoreDiscriminator) {
71
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+ return {
76
+ 'type': value['type'],
77
+ 'domainName': value['domainName'],
78
+ 'email': value['email'],
79
+ 'firstname': value['firstname'],
80
+ 'lastname': value['lastname'],
81
+ 'locale': value['locale'],
82
+ 'offer': (0, MoneyInput_1.MoneyInputToJSON)(value['offer']),
83
+ };
84
+ }
@@ -23,11 +23,11 @@ export interface DomainSellerDto {
23
23
  */
24
24
  createdAt: Date;
25
25
  /**
26
- * The seller account name
27
- * @type {string}
26
+ * Is anonymous
27
+ * @type {boolean}
28
28
  * @memberof DomainSellerDto
29
29
  */
30
- name: string;
30
+ anonymous: boolean;
31
31
  /**
32
32
  * Last online, formatted
33
33
  * @type {Date}
@@ -40,6 +40,12 @@ export interface DomainSellerDto {
40
40
  * @memberof DomainSellerDto
41
41
  */
42
42
  deliversIn: string | null;
43
+ /**
44
+ * The seller account name
45
+ * @type {string}
46
+ * @memberof DomainSellerDto
47
+ */
48
+ name: string | null;
43
49
  /**
44
50
  * The domain seller related domains
45
51
  * @type {Array<RelatedSellerDomain>}
@@ -25,12 +25,14 @@ var RelatedSellerDomain_1 = require("./RelatedSellerDomain");
25
25
  function instanceOfDomainSellerDto(value) {
26
26
  if (!('createdAt' in value) || value['createdAt'] === undefined)
27
27
  return false;
28
- if (!('name' in value) || value['name'] === undefined)
28
+ if (!('anonymous' in value) || value['anonymous'] === undefined)
29
29
  return false;
30
30
  if (!('lastOnline' in value) || value['lastOnline'] === undefined)
31
31
  return false;
32
32
  if (!('deliversIn' in value) || value['deliversIn'] === undefined)
33
33
  return false;
34
+ if (!('name' in value) || value['name'] === undefined)
35
+ return false;
34
36
  if (!('relatedDomains' in value) || value['relatedDomains'] === undefined)
35
37
  return false;
36
38
  return true;
@@ -44,9 +46,10 @@ function DomainSellerDtoFromJSONTyped(json, ignoreDiscriminator) {
44
46
  }
45
47
  return {
46
48
  'createdAt': (new Date(json['createdAt'])),
47
- 'name': json['name'],
49
+ 'anonymous': json['anonymous'],
48
50
  'lastOnline': (new Date(json['lastOnline'])),
49
51
  'deliversIn': json['deliversIn'],
52
+ 'name': json['name'],
50
53
  'relatedDomains': (json['relatedDomains'] == null ? null : json['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainFromJSON)),
51
54
  };
52
55
  }
@@ -60,9 +63,10 @@ function DomainSellerDtoToJSONTyped(value, ignoreDiscriminator) {
60
63
  }
61
64
  return {
62
65
  'createdAt': ((value['createdAt']).toISOString()),
63
- 'name': value['name'],
66
+ 'anonymous': value['anonymous'],
64
67
  'lastOnline': ((value['lastOnline']).toISOString()),
65
68
  'deliversIn': value['deliversIn'],
69
+ 'name': value['name'],
66
70
  'relatedDomains': (value['relatedDomains'] == null ? null : value['relatedDomains'].map(RelatedSellerDomain_1.RelatedSellerDomainToJSON)),
67
71
  };
68
72
  }
@@ -42,6 +42,18 @@ export interface IntersectionLeadDtoWithListFieldsDto {
42
42
  * @memberof IntersectionLeadDtoWithListFieldsDto
43
43
  */
44
44
  lastOfferBy: IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum | null;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof IntersectionLeadDtoWithListFieldsDto
49
+ */
50
+ buyerInitials: string;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof IntersectionLeadDtoWithListFieldsDto
55
+ */
56
+ buyerIpCountryCode: string | null;
45
57
  /**
46
58
  *
47
59
  * @type {string}
@@ -102,24 +114,6 @@ export interface IntersectionLeadDtoWithListFieldsDto {
102
114
  * @memberof IntersectionLeadDtoWithListFieldsDto
103
115
  */
104
116
  orderPaymentUrl: string | null;
105
- /**
106
- *
107
- * @type {string}
108
- * @memberof IntersectionLeadDtoWithListFieldsDto
109
- */
110
- domainName: string;
111
- /**
112
- *
113
- * @type {string}
114
- * @memberof IntersectionLeadDtoWithListFieldsDto
115
- */
116
- buyerInitials: string;
117
- /**
118
- *
119
- * @type {string}
120
- * @memberof IntersectionLeadDtoWithListFieldsDto
121
- */
122
- buyerIpCountryCode: string | null;
123
117
  /**
124
118
  * The message in case lastMessageType === LeadMessageTypeEnum.MESSAGE
125
119
  * @type {string}
@@ -70,6 +70,10 @@ function instanceOfIntersectionLeadDtoWithListFieldsDto(value) {
70
70
  return false;
71
71
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined)
72
72
  return false;
73
+ if (!('buyerInitials' in value) || value['buyerInitials'] === undefined)
74
+ return false;
75
+ if (!('buyerIpCountryCode' in value) || value['buyerIpCountryCode'] === undefined)
76
+ return false;
73
77
  if (!('lastMessageFrom' in value) || value['lastMessageFrom'] === undefined)
74
78
  return false;
75
79
  if (!('lastMessageType' in value) || value['lastMessageType'] === undefined)
@@ -90,12 +94,6 @@ function instanceOfIntersectionLeadDtoWithListFieldsDto(value) {
90
94
  return false;
91
95
  if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
92
96
  return false;
93
- if (!('domainName' in value) || value['domainName'] === undefined)
94
- return false;
95
- if (!('buyerInitials' in value) || value['buyerInitials'] === undefined)
96
- return false;
97
- if (!('buyerIpCountryCode' in value) || value['buyerIpCountryCode'] === undefined)
98
- return false;
99
97
  if (!('lastMessageMessage' in value) || value['lastMessageMessage'] === undefined)
100
98
  return false;
101
99
  if (!('lastMessageDate' in value) || value['lastMessageDate'] === undefined)
@@ -114,6 +112,8 @@ function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json, ignoreDiscrimin
114
112
  'status': json['status'],
115
113
  'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
116
114
  'lastOfferBy': json['lastOfferBy'],
115
+ 'buyerInitials': json['buyerInitials'],
116
+ 'buyerIpCountryCode': json['buyerIpCountryCode'],
117
117
  'lastMessageFrom': json['lastMessageFrom'],
118
118
  'lastMessageType': json['lastMessageType'],
119
119
  'lastMessageData': (0, LeadMessageData_1.LeadMessageDataFromJSON)(json['lastMessageData']),
@@ -124,9 +124,6 @@ function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json, ignoreDiscrimin
124
124
  'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
125
125
  'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
126
126
  'orderPaymentUrl': json['orderPaymentUrl'],
127
- 'domainName': json['domainName'],
128
- 'buyerInitials': json['buyerInitials'],
129
- 'buyerIpCountryCode': json['buyerIpCountryCode'],
130
127
  'lastMessageMessage': json['lastMessageMessage'],
131
128
  'lastMessageDate': (new Date(json['lastMessageDate'])),
132
129
  };
@@ -144,6 +141,8 @@ function IntersectionLeadDtoWithListFieldsDtoToJSONTyped(value, ignoreDiscrimina
144
141
  'status': value['status'],
145
142
  'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
146
143
  'lastOfferBy': value['lastOfferBy'],
144
+ 'buyerInitials': value['buyerInitials'],
145
+ 'buyerIpCountryCode': value['buyerIpCountryCode'],
147
146
  'lastMessageFrom': value['lastMessageFrom'],
148
147
  'lastMessageType': value['lastMessageType'],
149
148
  'lastMessageData': (0, LeadMessageData_1.LeadMessageDataToJSON)(value['lastMessageData']),
@@ -154,9 +153,6 @@ function IntersectionLeadDtoWithListFieldsDtoToJSONTyped(value, ignoreDiscrimina
154
153
  'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
155
154
  'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
156
155
  'orderPaymentUrl': value['orderPaymentUrl'],
157
- 'domainName': value['domainName'],
158
- 'buyerInitials': value['buyerInitials'],
159
- 'buyerIpCountryCode': value['buyerIpCountryCode'],
160
156
  'lastMessageMessage': value['lastMessageMessage'],
161
157
  'lastMessageDate': ((value['lastMessageDate']).toISOString()),
162
158
  };
@@ -27,6 +27,12 @@ export interface LeadDomainDto {
27
27
  * @memberof LeadDomainDto
28
28
  */
29
29
  name: string;
30
+ /**
31
+ * Domain name
32
+ * @type {string}
33
+ * @memberof LeadDomainDto
34
+ */
35
+ displayName: string;
30
36
  /**
31
37
  * Domain currency code
32
38
  * @type {string}
@@ -26,6 +26,8 @@ function instanceOfLeadDomainDto(value) {
26
26
  return false;
27
27
  if (!('name' in value) || value['name'] === undefined)
28
28
  return false;
29
+ if (!('displayName' in value) || value['displayName'] === undefined)
30
+ return false;
29
31
  if (!('currencyCode' in value) || value['currencyCode'] === undefined)
30
32
  return false;
31
33
  if (!('deletedAt' in value) || value['deletedAt'] === undefined)
@@ -42,6 +44,7 @@ function LeadDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
42
44
  return {
43
45
  'id': json['id'],
44
46
  'name': json['name'],
47
+ 'displayName': json['displayName'],
45
48
  'currencyCode': json['currencyCode'],
46
49
  'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
47
50
  };
@@ -57,6 +60,7 @@ function LeadDomainDtoToJSONTyped(value, ignoreDiscriminator) {
57
60
  return {
58
61
  'id': value['id'],
59
62
  'name': value['name'],
63
+ 'displayName': value['displayName'],
60
64
  'currencyCode': value['currencyCode'],
61
65
  'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
62
66
  };
@@ -0,0 +1,38 @@
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 MoneyInput
16
+ */
17
+ export interface MoneyInput {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof MoneyInput
22
+ */
23
+ amount: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MoneyInput
28
+ */
29
+ currencyCode: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MoneyInput interface.
33
+ */
34
+ export declare function instanceOfMoneyInput(value: object): value is MoneyInput;
35
+ export declare function MoneyInputFromJSON(json: any): MoneyInput;
36
+ export declare function MoneyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyInput;
37
+ export declare function MoneyInputToJSON(json: any): MoneyInput;
38
+ export declare function MoneyInputToJSONTyped(value?: MoneyInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfMoneyInput = instanceOfMoneyInput;
17
+ exports.MoneyInputFromJSON = MoneyInputFromJSON;
18
+ exports.MoneyInputFromJSONTyped = MoneyInputFromJSONTyped;
19
+ exports.MoneyInputToJSON = MoneyInputToJSON;
20
+ exports.MoneyInputToJSONTyped = MoneyInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MoneyInput interface.
23
+ */
24
+ function instanceOfMoneyInput(value) {
25
+ if (!('amount' in value) || value['amount'] === undefined)
26
+ return false;
27
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function MoneyInputFromJSON(json) {
32
+ return MoneyInputFromJSONTyped(json, false);
33
+ }
34
+ function MoneyInputFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'amount': json['amount'],
40
+ 'currencyCode': json['currencyCode'],
41
+ };
42
+ }
43
+ function MoneyInputToJSON(json) {
44
+ return MoneyInputToJSONTyped(json, false);
45
+ }
46
+ function MoneyInputToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'amount': value['amount'],
53
+ 'currencyCode': value['currencyCode'],
54
+ };
55
+ }
@@ -28,6 +28,24 @@ export interface WithSettingsInner {
28
28
  * @memberof WithSettingsInner
29
29
  */
30
30
  defaultStartingOffer: MoneyDto;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof WithSettingsInner
35
+ */
36
+ anonymous: boolean;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof WithSettingsInner
41
+ */
42
+ showRelatedDomains: boolean;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof WithSettingsInner
47
+ */
48
+ sidnIdcode: string | null;
31
49
  }
32
50
  /**
33
51
  * Check if a given object implements the WithSettingsInner interface.