@randock/nameshift-api-client 0.0.459 → 0.0.461
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.
- package/.openapi-generator/FILES +15 -0
- package/README.md +3 -3
- package/dist/apis/DomainsApi.d.ts +43 -9
- package/dist/apis/DomainsApi.js +156 -10
- package/dist/apis/JobsApi.d.ts +51 -0
- package/dist/apis/JobsApi.js +222 -0
- package/dist/apis/LeadsApi.d.ts +14 -1
- package/dist/apis/LeadsApi.js +63 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ApplyDomainEditInput.d.ts +40 -0
- package/dist/models/ApplyDomainEditInput.js +53 -0
- package/dist/models/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -0
- package/dist/models/DomainEditPreviewDto.d.ts +83 -0
- package/dist/models/DomainEditPreviewDto.js +84 -0
- package/dist/models/DomainEditPreviewRowDto.d.ts +60 -0
- package/dist/models/DomainEditPreviewRowDto.js +67 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +2 -0
- package/dist/models/FeatureFlagListItemDto.js +3 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
- package/dist/models/JobDto.d.ts +101 -0
- package/dist/models/JobDto.js +98 -0
- package/dist/models/JobFailureDto.d.ts +38 -0
- package/dist/models/JobFailureDto.js +55 -0
- package/dist/models/JobStatus.d.ts +27 -0
- package/dist/models/JobStatus.js +53 -0
- package/dist/models/JobType.d.ts +24 -0
- package/dist/models/JobType.js +50 -0
- package/dist/models/LeadEnrichmentCompanyDto.d.ts +68 -0
- package/dist/models/LeadEnrichmentCompanyDto.js +75 -0
- package/dist/models/LeadEnrichmentDto.d.ts +72 -0
- package/dist/models/LeadEnrichmentDto.js +79 -0
- package/dist/models/LeadEnrichmentEmailDto.d.ts +44 -0
- package/dist/models/LeadEnrichmentEmailDto.js +59 -0
- package/dist/models/LeadEnrichmentIpDto.d.ts +62 -0
- package/dist/models/LeadEnrichmentIpDto.js +71 -0
- package/dist/models/LeadEnrichmentWebResultDto.d.ts +44 -0
- package/dist/models/LeadEnrichmentWebResultDto.js +59 -0
- package/dist/models/ListJobs200Response.d.ts +47 -0
- package/dist/models/ListJobs200Response.js +62 -0
- package/dist/models/PreviewDomainEditInput.d.ts +38 -0
- package/dist/models/PreviewDomainEditInput.js +53 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +2 -0
- package/dist/models/PrivateAccountGetMeResponse.js +3 -1
- package/dist/models/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/package.json +1 -1
- package/src/apis/DomainsApi.ts +154 -12
- package/src/apis/JobsApi.ts +163 -0
- package/src/apis/LeadsApi.ts +54 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ApplyDomainEditInput.ts +74 -0
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/DomainEditPreviewDto.ts +146 -0
- package/src/models/DomainEditPreviewRowDto.ts +102 -0
- package/src/models/FeatureFlagListItemDto.ts +3 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
- package/src/models/JobDto.ts +189 -0
- package/src/models/JobFailureDto.ts +75 -0
- package/src/models/JobStatus.ts +55 -0
- package/src/models/JobType.ts +52 -0
- package/src/models/LeadEnrichmentCompanyDto.ts +120 -0
- package/src/models/LeadEnrichmentDto.ts +149 -0
- package/src/models/LeadEnrichmentEmailDto.ts +84 -0
- package/src/models/LeadEnrichmentIpDto.ts +111 -0
- package/src/models/LeadEnrichmentWebResultDto.ts +84 -0
- package/src/models/ListJobs200Response.ts +106 -0
- package/src/models/PreviewDomainEditInput.ts +74 -0
- package/src/models/PrivateAccountGetMeResponse.ts +3 -1
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +14 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.JobsApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var JobsApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(JobsApi, _super);
|
|
75
|
+
function JobsApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Progress and result of one job belonging to the account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
80
|
+
* Get a background job
|
|
81
|
+
*/
|
|
82
|
+
JobsApi.prototype.getJobRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters['jobId'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('jobId', 'Required parameter "jobId" was null or undefined when calling getJob().');
|
|
90
|
+
}
|
|
91
|
+
queryParameters = {};
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
94
|
+
_a = headerParameters;
|
|
95
|
+
_b = "apikey";
|
|
96
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
97
|
+
case 1:
|
|
98
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
99
|
+
_c.label = 2;
|
|
100
|
+
case 2:
|
|
101
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
102
|
+
token = this.configuration.accessToken;
|
|
103
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
104
|
+
case 3:
|
|
105
|
+
tokenString = _c.sent();
|
|
106
|
+
if (tokenString) {
|
|
107
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
108
|
+
}
|
|
109
|
+
_c.label = 4;
|
|
110
|
+
case 4: return [4 /*yield*/, this.request({
|
|
111
|
+
path: "/private/jobs/{jobId}".replace("{".concat("jobId", "}"), encodeURIComponent(String(requestParameters['jobId']))),
|
|
112
|
+
method: 'GET',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
}, initOverrides)];
|
|
116
|
+
case 5:
|
|
117
|
+
response = _c.sent();
|
|
118
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.JobDtoFromJSON)(jsonValue); })];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Progress and result of one job belonging to the account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
125
|
+
* Get a background job
|
|
126
|
+
*/
|
|
127
|
+
JobsApi.prototype.getJob = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0: return [4 /*yield*/, this.getJobRaw(requestParameters, initOverrides)];
|
|
133
|
+
case 1:
|
|
134
|
+
response = _a.sent();
|
|
135
|
+
return [4 /*yield*/, response.value()];
|
|
136
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* The account\'s own background jobs, newest first. Filter on status while polling, so watching a run costs nothing however long the history is. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
143
|
+
* List background jobs
|
|
144
|
+
*/
|
|
145
|
+
JobsApi.prototype.listJobsRaw = function (requestParameters, initOverrides) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
147
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
148
|
+
return __generator(this, function (_c) {
|
|
149
|
+
switch (_c.label) {
|
|
150
|
+
case 0:
|
|
151
|
+
queryParameters = {};
|
|
152
|
+
if (requestParameters['filter'] != null) {
|
|
153
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
154
|
+
}
|
|
155
|
+
if (requestParameters['page'] != null) {
|
|
156
|
+
queryParameters['page'] = requestParameters['page'];
|
|
157
|
+
}
|
|
158
|
+
if (requestParameters['limit'] != null) {
|
|
159
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
160
|
+
}
|
|
161
|
+
if (requestParameters['sortBy'] != null) {
|
|
162
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
163
|
+
}
|
|
164
|
+
if (requestParameters['filterStatus'] != null) {
|
|
165
|
+
queryParameters['filter[status]'] = requestParameters['filterStatus'];
|
|
166
|
+
}
|
|
167
|
+
if (requestParameters['filterType'] != null) {
|
|
168
|
+
queryParameters['filter[type]'] = requestParameters['filterType'];
|
|
169
|
+
}
|
|
170
|
+
headerParameters = {};
|
|
171
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
172
|
+
_a = headerParameters;
|
|
173
|
+
_b = "apikey";
|
|
174
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
175
|
+
case 1:
|
|
176
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
177
|
+
_c.label = 2;
|
|
178
|
+
case 2:
|
|
179
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
180
|
+
token = this.configuration.accessToken;
|
|
181
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
182
|
+
case 3:
|
|
183
|
+
tokenString = _c.sent();
|
|
184
|
+
if (tokenString) {
|
|
185
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
186
|
+
}
|
|
187
|
+
_c.label = 4;
|
|
188
|
+
case 4: return [4 /*yield*/, this.request({
|
|
189
|
+
path: "/private/jobs",
|
|
190
|
+
method: 'GET',
|
|
191
|
+
headers: headerParameters,
|
|
192
|
+
query: queryParameters,
|
|
193
|
+
}, initOverrides)];
|
|
194
|
+
case 5:
|
|
195
|
+
response = _c.sent();
|
|
196
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListJobs200ResponseFromJSON)(jsonValue); })];
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* The account\'s own background jobs, newest first. Filter on status while polling, so watching a run costs nothing however long the history is. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
203
|
+
* List background jobs
|
|
204
|
+
*/
|
|
205
|
+
JobsApi.prototype.listJobs = function () {
|
|
206
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
207
|
+
var response;
|
|
208
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
209
|
+
return __generator(this, function (_a) {
|
|
210
|
+
switch (_a.label) {
|
|
211
|
+
case 0: return [4 /*yield*/, this.listJobsRaw(requestParameters, initOverrides)];
|
|
212
|
+
case 1:
|
|
213
|
+
response = _a.sent();
|
|
214
|
+
return [4 /*yield*/, response.value()];
|
|
215
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
return JobsApi;
|
|
221
|
+
}(runtime.BaseAPI));
|
|
222
|
+
exports.JobsApi = JobsApi;
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -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, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadOfferExpirationConfigurationInput, List200Response, ListLeadMessagesDto, ListRelatedLeads200Response, LockConfigurationInput, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
|
|
13
|
+
import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadEnrichmentDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadOfferExpirationConfigurationInput, List200Response, ListLeadMessagesDto, ListRelatedLeads200Response, LockConfigurationInput, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
|
|
14
14
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -34,6 +34,9 @@ export interface LeadsApiCreateMessageRequest {
|
|
|
34
34
|
export interface LeadsApiGetLeadRequest {
|
|
35
35
|
leadId: string;
|
|
36
36
|
}
|
|
37
|
+
export interface LeadsApiGetLeadEnrichmentRequest {
|
|
38
|
+
leadId: string;
|
|
39
|
+
}
|
|
37
40
|
export interface LeadsApiGetManualLeadRequest {
|
|
38
41
|
leadId: string;
|
|
39
42
|
}
|
|
@@ -160,6 +163,16 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
160
163
|
* Get lead details
|
|
161
164
|
*/
|
|
162
165
|
getLead(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerLeadDetails>;
|
|
166
|
+
/**
|
|
167
|
+
* Returns buyer background enrichment for a lead: web footprint, the company behind the email domain, email classification, and IP intelligence. Sections are empty while enrichment is pending. Requires account ownership. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
168
|
+
* Get lead buyer enrichment
|
|
169
|
+
*/
|
|
170
|
+
getLeadEnrichmentRaw(requestParameters: LeadsApiGetLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadEnrichmentDto>>;
|
|
171
|
+
/**
|
|
172
|
+
* Returns buyer background enrichment for a lead: web footprint, the company behind the email domain, email classification, and IP intelligence. Sections are empty while enrichment is pending. Requires account ownership. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
173
|
+
* Get lead buyer enrichment
|
|
174
|
+
*/
|
|
175
|
+
getLeadEnrichment(requestParameters: LeadsApiGetLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadEnrichmentDto>;
|
|
163
176
|
/**
|
|
164
177
|
* Returns configuration presets for lead offers. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
165
178
|
* Get lease-to-own configuration presets
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -518,6 +518,69 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
518
518
|
});
|
|
519
519
|
});
|
|
520
520
|
};
|
|
521
|
+
/**
|
|
522
|
+
* Returns buyer background enrichment for a lead: web footprint, the company behind the email domain, email classification, and IP intelligence. Sections are empty while enrichment is pending. Requires account ownership. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
523
|
+
* Get lead buyer enrichment
|
|
524
|
+
*/
|
|
525
|
+
LeadsApi.prototype.getLeadEnrichmentRaw = function (requestParameters, initOverrides) {
|
|
526
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
527
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
528
|
+
return __generator(this, function (_c) {
|
|
529
|
+
switch (_c.label) {
|
|
530
|
+
case 0:
|
|
531
|
+
if (requestParameters['leadId'] == null) {
|
|
532
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getLeadEnrichment().');
|
|
533
|
+
}
|
|
534
|
+
queryParameters = {};
|
|
535
|
+
headerParameters = {};
|
|
536
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
537
|
+
_a = headerParameters;
|
|
538
|
+
_b = "apikey";
|
|
539
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
540
|
+
case 1:
|
|
541
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
542
|
+
_c.label = 2;
|
|
543
|
+
case 2:
|
|
544
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
545
|
+
token = this.configuration.accessToken;
|
|
546
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
547
|
+
case 3:
|
|
548
|
+
tokenString = _c.sent();
|
|
549
|
+
if (tokenString) {
|
|
550
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
551
|
+
}
|
|
552
|
+
_c.label = 4;
|
|
553
|
+
case 4: return [4 /*yield*/, this.request({
|
|
554
|
+
path: "/private/leads/{leadId}/enrichment".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
555
|
+
method: 'GET',
|
|
556
|
+
headers: headerParameters,
|
|
557
|
+
query: queryParameters,
|
|
558
|
+
}, initOverrides)];
|
|
559
|
+
case 5:
|
|
560
|
+
response = _c.sent();
|
|
561
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadEnrichmentDtoFromJSON)(jsonValue); })];
|
|
562
|
+
}
|
|
563
|
+
});
|
|
564
|
+
});
|
|
565
|
+
};
|
|
566
|
+
/**
|
|
567
|
+
* Returns buyer background enrichment for a lead: web footprint, the company behind the email domain, email classification, and IP intelligence. Sections are empty while enrichment is pending. Requires account ownership. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
568
|
+
* Get lead buyer enrichment
|
|
569
|
+
*/
|
|
570
|
+
LeadsApi.prototype.getLeadEnrichment = function (requestParameters, initOverrides) {
|
|
571
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
572
|
+
var response;
|
|
573
|
+
return __generator(this, function (_a) {
|
|
574
|
+
switch (_a.label) {
|
|
575
|
+
case 0: return [4 /*yield*/, this.getLeadEnrichmentRaw(requestParameters, initOverrides)];
|
|
576
|
+
case 1:
|
|
577
|
+
response = _a.sent();
|
|
578
|
+
return [4 /*yield*/, response.value()];
|
|
579
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
});
|
|
583
|
+
};
|
|
521
584
|
/**
|
|
522
585
|
* Returns configuration presets for lead offers. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
523
586
|
* Get lease-to-own configuration presets
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __exportStar(require("./DomainsApi"), exports);
|
|
|
32
32
|
__exportStar(require("./DomainsPublicApi"), exports);
|
|
33
33
|
__exportStar(require("./EppApi"), exports);
|
|
34
34
|
__exportStar(require("./InvoicesApi"), exports);
|
|
35
|
+
__exportStar(require("./JobsApi"), exports);
|
|
35
36
|
__exportStar(require("./LeadsApi"), exports);
|
|
36
37
|
__exportStar(require("./LeadsPublicApi"), exports);
|
|
37
38
|
__exportStar(require("./MarketApi"), exports);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 ApplyDomainEditInput
|
|
16
|
+
*/
|
|
17
|
+
export interface ApplyDomainEditInput {
|
|
18
|
+
/**
|
|
19
|
+
* The selected domains. Omit to apply to everything the filter and searchFilter match.
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ApplyDomainEditInput
|
|
22
|
+
*/
|
|
23
|
+
domainIds?: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* The operations returned by the preview, sent back unchanged. Validated again here.
|
|
26
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
27
|
+
* @memberof ApplyDomainEditInput
|
|
28
|
+
*/
|
|
29
|
+
operations: Array<{
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the ApplyDomainEditInput interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfApplyDomainEditInput(value: object): value is ApplyDomainEditInput;
|
|
37
|
+
export declare function ApplyDomainEditInputFromJSON(json: any): ApplyDomainEditInput;
|
|
38
|
+
export declare function ApplyDomainEditInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplyDomainEditInput;
|
|
39
|
+
export declare function ApplyDomainEditInputToJSON(json: any): ApplyDomainEditInput;
|
|
40
|
+
export declare function ApplyDomainEditInputToJSONTyped(value?: ApplyDomainEditInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfApplyDomainEditInput = instanceOfApplyDomainEditInput;
|
|
17
|
+
exports.ApplyDomainEditInputFromJSON = ApplyDomainEditInputFromJSON;
|
|
18
|
+
exports.ApplyDomainEditInputFromJSONTyped = ApplyDomainEditInputFromJSONTyped;
|
|
19
|
+
exports.ApplyDomainEditInputToJSON = ApplyDomainEditInputToJSON;
|
|
20
|
+
exports.ApplyDomainEditInputToJSONTyped = ApplyDomainEditInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApplyDomainEditInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApplyDomainEditInput(value) {
|
|
25
|
+
if (!('operations' in value) || value['operations'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApplyDomainEditInputFromJSON(json) {
|
|
30
|
+
return ApplyDomainEditInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApplyDomainEditInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'domainIds': json['domainIds'] == null ? undefined : json['domainIds'],
|
|
38
|
+
'operations': json['operations'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ApplyDomainEditInputToJSON(json) {
|
|
42
|
+
return ApplyDomainEditInputToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApplyDomainEditInputToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'domainIds': value['domainIds'],
|
|
51
|
+
'operations': value['operations'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -120,6 +120,7 @@ export declare const BuyerNotificationDtoTypeEnum: {
|
|
|
120
120
|
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
121
121
|
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
122
122
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
123
|
+
readonly BULK_EDIT_DOMAINS_FINISHED: "bulk_edit_domains_finished";
|
|
123
124
|
readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
|
|
124
125
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
125
126
|
readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
|
|
@@ -81,6 +81,7 @@ exports.BuyerNotificationDtoTypeEnum = {
|
|
|
81
81
|
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
82
82
|
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
83
83
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
84
|
+
BULK_EDIT_DOMAINS_FINISHED: 'bulk_edit_domains_finished',
|
|
84
85
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
85
86
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
86
87
|
DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
|
|
@@ -113,6 +113,7 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
|
|
|
113
113
|
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
114
114
|
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
115
115
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
116
|
+
readonly BULK_EDIT_DOMAINS_FINISHED: "bulk_edit_domains_finished";
|
|
116
117
|
readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
|
|
117
118
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
118
119
|
readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
|
|
@@ -80,6 +80,7 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
|
|
|
80
80
|
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
81
81
|
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
82
82
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
83
|
+
BULK_EDIT_DOMAINS_FINISHED: 'bulk_edit_domains_finished',
|
|
83
84
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
84
85
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
85
86
|
DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 { DomainEditPreviewRowDto } from './DomainEditPreviewRowDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DomainEditPreviewDto
|
|
17
|
+
*/
|
|
18
|
+
export interface DomainEditPreviewDto {
|
|
19
|
+
/**
|
|
20
|
+
* False when the request could not be expressed. No operations are returned and nothing may be applied.
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof DomainEditPreviewDto
|
|
23
|
+
*/
|
|
24
|
+
understood: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* One sentence describing the change, for the seller.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof DomainEditPreviewDto
|
|
29
|
+
*/
|
|
30
|
+
summary: string;
|
|
31
|
+
/**
|
|
32
|
+
* True when the request applies to only some of the selected domains. An edit has no conditions, so the seller narrows the list with search or filters first and then edits what is left.
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof DomainEditPreviewDto
|
|
35
|
+
*/
|
|
36
|
+
needsFilter: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<string>}
|
|
40
|
+
* @memberof DomainEditPreviewDto
|
|
41
|
+
*/
|
|
42
|
+
unresolved: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The operations to send back when the seller accepts. Opaque to the client; validated server-side.
|
|
45
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
46
|
+
* @memberof DomainEditPreviewDto
|
|
47
|
+
*/
|
|
48
|
+
operations: Array<{
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}>;
|
|
51
|
+
/**
|
|
52
|
+
* How many domains the edit would change.
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof DomainEditPreviewDto
|
|
55
|
+
*/
|
|
56
|
+
count: number;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<DomainEditPreviewRowDto>}
|
|
60
|
+
* @memberof DomainEditPreviewDto
|
|
61
|
+
*/
|
|
62
|
+
sample: Array<DomainEditPreviewRowDto>;
|
|
63
|
+
/**
|
|
64
|
+
* The currency every price moves to, when the edit changes it. Null otherwise.
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof DomainEditPreviewDto
|
|
67
|
+
*/
|
|
68
|
+
toCurrencyCode: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* Whether prices the edit does not replace are converted at the exchange rate, or kept at their current number under the new currency. Only meaningful alongside toCurrencyCode.
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
* @memberof DomainEditPreviewDto
|
|
73
|
+
*/
|
|
74
|
+
convertsPrices: boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the DomainEditPreviewDto interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfDomainEditPreviewDto(value: object): value is DomainEditPreviewDto;
|
|
80
|
+
export declare function DomainEditPreviewDtoFromJSON(json: any): DomainEditPreviewDto;
|
|
81
|
+
export declare function DomainEditPreviewDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainEditPreviewDto;
|
|
82
|
+
export declare function DomainEditPreviewDtoToJSON(json: any): DomainEditPreviewDto;
|
|
83
|
+
export declare function DomainEditPreviewDtoToJSONTyped(value?: DomainEditPreviewDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfDomainEditPreviewDto = instanceOfDomainEditPreviewDto;
|
|
17
|
+
exports.DomainEditPreviewDtoFromJSON = DomainEditPreviewDtoFromJSON;
|
|
18
|
+
exports.DomainEditPreviewDtoFromJSONTyped = DomainEditPreviewDtoFromJSONTyped;
|
|
19
|
+
exports.DomainEditPreviewDtoToJSON = DomainEditPreviewDtoToJSON;
|
|
20
|
+
exports.DomainEditPreviewDtoToJSONTyped = DomainEditPreviewDtoToJSONTyped;
|
|
21
|
+
var DomainEditPreviewRowDto_1 = require("./DomainEditPreviewRowDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the DomainEditPreviewDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfDomainEditPreviewDto(value) {
|
|
26
|
+
if (!('understood' in value) || value['understood'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('summary' in value) || value['summary'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('needsFilter' in value) || value['needsFilter'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('unresolved' in value) || value['unresolved'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('operations' in value) || value['operations'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('count' in value) || value['count'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('sample' in value) || value['sample'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('toCurrencyCode' in value) || value['toCurrencyCode'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('convertsPrices' in value) || value['convertsPrices'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function DomainEditPreviewDtoFromJSON(json) {
|
|
47
|
+
return DomainEditPreviewDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function DomainEditPreviewDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'understood': json['understood'],
|
|
55
|
+
'summary': json['summary'],
|
|
56
|
+
'needsFilter': json['needsFilter'],
|
|
57
|
+
'unresolved': json['unresolved'],
|
|
58
|
+
'operations': json['operations'],
|
|
59
|
+
'count': json['count'],
|
|
60
|
+
'sample': (json['sample'].map(DomainEditPreviewRowDto_1.DomainEditPreviewRowDtoFromJSON)),
|
|
61
|
+
'toCurrencyCode': json['toCurrencyCode'],
|
|
62
|
+
'convertsPrices': json['convertsPrices'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function DomainEditPreviewDtoToJSON(json) {
|
|
66
|
+
return DomainEditPreviewDtoToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function DomainEditPreviewDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
69
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'understood': value['understood'],
|
|
75
|
+
'summary': value['summary'],
|
|
76
|
+
'needsFilter': value['needsFilter'],
|
|
77
|
+
'unresolved': value['unresolved'],
|
|
78
|
+
'operations': value['operations'],
|
|
79
|
+
'count': value['count'],
|
|
80
|
+
'sample': (value['sample'].map(DomainEditPreviewRowDto_1.DomainEditPreviewRowDtoToJSON)),
|
|
81
|
+
'toCurrencyCode': value['toCurrencyCode'],
|
|
82
|
+
'convertsPrices': value['convertsPrices'],
|
|
83
|
+
};
|
|
84
|
+
}
|