@randock/nameshift-api-client 0.0.27 → 0.0.29
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 +2 -0
- package/README.md +3 -3
- package/dist/apis/LeadsPublicApi.d.ts +24 -1
- package/dist/apis/LeadsPublicApi.js +91 -0
- package/dist/models/DomainSellerDto.d.ts +1 -1
- package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +2 -2
- package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +2 -2
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +1 -1
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +1 -1
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +1 -1
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +1 -1
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +1 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +1 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +1 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +1 -0
- package/dist/models/LeadStatusDto.d.ts +41 -0
- package/dist/models/LeadStatusDto.js +56 -0
- package/dist/models/List200Response.d.ts +1 -1
- package/dist/models/List200Response.js +1 -1
- package/dist/models/ListAccounts200Response.d.ts +1 -1
- package/dist/models/ListAccounts200Response.js +1 -1
- package/dist/models/ListTransfers200Response.d.ts +1 -1
- package/dist/models/ListTransfers200Response.js +1 -1
- package/dist/models/VerifyLeadInput.d.ts +31 -0
- package/dist/models/VerifyLeadInput.js +47 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/LeadsPublicApi.ts +90 -0
- package/src/models/DomainSellerDto.ts +1 -1
- package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +10 -10
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +6 -6
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +6 -6
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +1 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +1 -0
- package/src/models/LeadStatusDto.ts +74 -0
- package/src/models/List200Response.ts +6 -6
- package/src/models/ListAccounts200Response.ts +6 -6
- package/src/models/ListTransfers200Response.ts +6 -6
- package/src/models/VerifyLeadInput.ts +61 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -39,6 +39,7 @@ src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts
|
|
|
39
39
|
src/models/LeadMessageData.ts
|
|
40
40
|
src/models/LeadMessageDto.ts
|
|
41
41
|
src/models/LeadMessageDtoData.ts
|
|
42
|
+
src/models/LeadStatusDto.ts
|
|
42
43
|
src/models/List200Response.ts
|
|
43
44
|
src/models/List400Response.ts
|
|
44
45
|
src/models/List401Response.ts
|
|
@@ -65,6 +66,7 @@ src/models/TokenDto.ts
|
|
|
65
66
|
src/models/UpdateDomainInput.ts
|
|
66
67
|
src/models/UpdateSettings400Response.ts
|
|
67
68
|
src/models/UpdateSettings401Response.ts
|
|
69
|
+
src/models/VerifyLeadInput.ts
|
|
68
70
|
src/models/WithFinancialDtoInner.ts
|
|
69
71
|
src/models/WithSettingsInner.ts
|
|
70
72
|
src/models/index.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.29
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.29 --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
|
-
|
|
47
|
+
ddb8810fbb406de1854e53d283ac15c17c72b0ea5c942c3b6079c756df559ac8e7f02a180b917688adf7b61ab9ec3711
|
|
@@ -10,10 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateLeadInput, ObjectId } from '../models/index';
|
|
13
|
+
import type { CreateLeadInput, LeadStatusDto, ObjectId, VerifyLeadInput } from '../models/index';
|
|
14
14
|
export interface LeadsPublicApiCreateLeadRequest {
|
|
15
15
|
createLeadInput: CreateLeadInput;
|
|
16
16
|
}
|
|
17
|
+
export interface LeadsPublicApiGetLeadStatusRequest {
|
|
18
|
+
leadId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface LeadsPublicApiVerifyLeadRequest {
|
|
21
|
+
leadId: string;
|
|
22
|
+
verifyLeadInput: VerifyLeadInput;
|
|
23
|
+
}
|
|
17
24
|
/**
|
|
18
25
|
*
|
|
19
26
|
*/
|
|
@@ -26,4 +33,20 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
26
33
|
*
|
|
27
34
|
*/
|
|
28
35
|
createLead(requestParameters: LeadsPublicApiCreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
getLeadStatusRaw(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadStatusDto>>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
getLeadStatus(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadStatusDto>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
verifyLeadRaw(requestParameters: LeadsPublicApiVerifyLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
verifyLead(requestParameters: LeadsPublicApiVerifyLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
29
52
|
}
|
|
@@ -121,6 +121,97 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
LeadsPublicApi.prototype.getLeadStatusRaw = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var queryParameters, headerParameters, response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0:
|
|
133
|
+
if (requestParameters['leadId'] == null) {
|
|
134
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getLeadStatus().');
|
|
135
|
+
}
|
|
136
|
+
queryParameters = {};
|
|
137
|
+
headerParameters = {};
|
|
138
|
+
return [4 /*yield*/, this.request({
|
|
139
|
+
path: "/leads/{leadId}/status".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
140
|
+
method: 'GET',
|
|
141
|
+
headers: headerParameters,
|
|
142
|
+
query: queryParameters,
|
|
143
|
+
}, initOverrides)];
|
|
144
|
+
case 1:
|
|
145
|
+
response = _a.sent();
|
|
146
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadStatusDtoFromJSON)(jsonValue); })];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
LeadsPublicApi.prototype.getLeadStatus = function (requestParameters, initOverrides) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
156
|
+
var response;
|
|
157
|
+
return __generator(this, function (_a) {
|
|
158
|
+
switch (_a.label) {
|
|
159
|
+
case 0: return [4 /*yield*/, this.getLeadStatusRaw(requestParameters, initOverrides)];
|
|
160
|
+
case 1:
|
|
161
|
+
response = _a.sent();
|
|
162
|
+
return [4 /*yield*/, response.value()];
|
|
163
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
*/
|
|
171
|
+
LeadsPublicApi.prototype.verifyLeadRaw = function (requestParameters, initOverrides) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
+
var queryParameters, headerParameters, response;
|
|
174
|
+
return __generator(this, function (_a) {
|
|
175
|
+
switch (_a.label) {
|
|
176
|
+
case 0:
|
|
177
|
+
if (requestParameters['leadId'] == null) {
|
|
178
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling verifyLead().');
|
|
179
|
+
}
|
|
180
|
+
if (requestParameters['verifyLeadInput'] == null) {
|
|
181
|
+
throw new runtime.RequiredError('verifyLeadInput', 'Required parameter "verifyLeadInput" was null or undefined when calling verifyLead().');
|
|
182
|
+
}
|
|
183
|
+
queryParameters = {};
|
|
184
|
+
headerParameters = {};
|
|
185
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
186
|
+
return [4 /*yield*/, this.request({
|
|
187
|
+
path: "/leads/{leadId}/verify".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
188
|
+
method: 'POST',
|
|
189
|
+
headers: headerParameters,
|
|
190
|
+
query: queryParameters,
|
|
191
|
+
body: (0, index_1.VerifyLeadInputToJSON)(requestParameters['verifyLeadInput']),
|
|
192
|
+
}, initOverrides)];
|
|
193
|
+
case 1:
|
|
194
|
+
response = _a.sent();
|
|
195
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
*/
|
|
203
|
+
LeadsPublicApi.prototype.verifyLead = function (requestParameters, initOverrides) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
205
|
+
return __generator(this, function (_a) {
|
|
206
|
+
switch (_a.label) {
|
|
207
|
+
case 0: return [4 /*yield*/, this.verifyLeadRaw(requestParameters, initOverrides)];
|
|
208
|
+
case 1:
|
|
209
|
+
_a.sent();
|
|
210
|
+
return [2 /*return*/];
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
};
|
|
124
215
|
return LeadsPublicApi;
|
|
125
216
|
}(runtime.BaseAPI));
|
|
126
217
|
exports.LeadsPublicApi = LeadsPublicApi;
|
package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { AccountAddressDto } from './AccountAddressDto';
|
|
13
|
-
import type { WithFinancialDtoInner } from './WithFinancialDtoInner';
|
|
14
12
|
import type { WithSettingsInner } from './WithSettingsInner';
|
|
13
|
+
import type { WithFinancialDtoInner } from './WithFinancialDtoInner';
|
|
14
|
+
import type { AccountAddressDto } from './AccountAddressDto';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON = exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped = exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON = exports.instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto = void 0;
|
|
17
|
-
var AccountAddressDto_1 = require("./AccountAddressDto");
|
|
18
|
-
var WithFinancialDtoInner_1 = require("./WithFinancialDtoInner");
|
|
19
17
|
var WithSettingsInner_1 = require("./WithSettingsInner");
|
|
18
|
+
var WithFinancialDtoInner_1 = require("./WithFinancialDtoInner");
|
|
19
|
+
var AccountAddressDto_1 = require("./AccountAddressDto");
|
|
20
20
|
/**
|
|
21
21
|
* Check if a given object implements the IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto interface.
|
|
22
22
|
*/
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.IntersectionDomainDtoWithAccountDtoToJSON = exports.IntersectionDomainDtoWithAccountDtoFromJSONTyped = exports.IntersectionDomainDtoWithAccountDtoFromJSON = exports.instanceOfIntersectionDomainDtoWithAccountDto = void 0;
|
|
17
|
-
var AccountDto_1 = require("./AccountDto");
|
|
18
17
|
var MoneyDto_1 = require("./MoneyDto");
|
|
18
|
+
var AccountDto_1 = require("./AccountDto");
|
|
19
19
|
/**
|
|
20
20
|
* Check if a given object implements the IntersectionDomainDtoWithAccountDto interface.
|
|
21
21
|
*/
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON = exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped = exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON = exports.instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto = void 0;
|
|
17
|
-
var AccountDto_1 = require("./AccountDto");
|
|
18
17
|
var MoneyDto_1 = require("./MoneyDto");
|
|
18
|
+
var AccountDto_1 = require("./AccountDto");
|
|
19
19
|
/**
|
|
20
20
|
* Check if a given object implements the IntersectionDomainDtoWithHijackerDtoWithAccountDto interface.
|
|
21
21
|
*/
|
|
@@ -58,6 +58,7 @@ export interface IntersectionLeadDtoWithLeadDetailsDto {
|
|
|
58
58
|
* @export
|
|
59
59
|
*/
|
|
60
60
|
export declare const IntersectionLeadDtoWithLeadDetailsDtoStatusEnum: {
|
|
61
|
+
readonly UNVERIFIED: "unverified";
|
|
61
62
|
readonly ACTIVE: "active";
|
|
62
63
|
readonly DELETED: "deleted";
|
|
63
64
|
readonly ARCHIVED: "archived";
|
|
@@ -94,6 +94,7 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
96
|
export declare const IntersectionLeadDtoWithListFieldsDtoStatusEnum: {
|
|
97
|
+
readonly UNVERIFIED: "unverified";
|
|
97
98
|
readonly ACTIVE: "active";
|
|
98
99
|
readonly DELETED: "deleted";
|
|
99
100
|
readonly ARCHIVED: "archived";
|
|
@@ -0,0 +1,41 @@
|
|
|
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 LeadStatusDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LeadStatusDto {
|
|
18
|
+
/**
|
|
19
|
+
* The current lead status
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LeadStatusDto
|
|
22
|
+
*/
|
|
23
|
+
status: LeadStatusDtoStatusEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const LeadStatusDtoStatusEnum: {
|
|
29
|
+
readonly UNVERIFIED: "unverified";
|
|
30
|
+
readonly ACTIVE: "active";
|
|
31
|
+
readonly DELETED: "deleted";
|
|
32
|
+
readonly ARCHIVED: "archived";
|
|
33
|
+
};
|
|
34
|
+
export type LeadStatusDtoStatusEnum = typeof LeadStatusDtoStatusEnum[keyof typeof LeadStatusDtoStatusEnum];
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the LeadStatusDto interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfLeadStatusDto(value: object): boolean;
|
|
39
|
+
export declare function LeadStatusDtoFromJSON(json: any): LeadStatusDto;
|
|
40
|
+
export declare function LeadStatusDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadStatusDto;
|
|
41
|
+
export declare function LeadStatusDtoToJSON(value?: LeadStatusDto | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LeadStatusDtoToJSON = exports.LeadStatusDtoFromJSONTyped = exports.LeadStatusDtoFromJSON = exports.instanceOfLeadStatusDto = exports.LeadStatusDtoStatusEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.LeadStatusDtoStatusEnum = {
|
|
21
|
+
UNVERIFIED: 'unverified',
|
|
22
|
+
ACTIVE: 'active',
|
|
23
|
+
DELETED: 'deleted',
|
|
24
|
+
ARCHIVED: 'archived'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the LeadStatusDto interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfLeadStatusDto(value) {
|
|
30
|
+
if (!('status' in value))
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
exports.instanceOfLeadStatusDto = instanceOfLeadStatusDto;
|
|
35
|
+
function LeadStatusDtoFromJSON(json) {
|
|
36
|
+
return LeadStatusDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
exports.LeadStatusDtoFromJSON = LeadStatusDtoFromJSON;
|
|
39
|
+
function LeadStatusDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'status': json['status'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.LeadStatusDtoFromJSONTyped = LeadStatusDtoFromJSONTyped;
|
|
48
|
+
function LeadStatusDtoToJSON(value) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'status': value['status'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.LeadStatusDtoToJSON = LeadStatusDtoToJSON;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { DomainDto } from './DomainDto';
|
|
13
12
|
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { DomainDto } from './DomainDto';
|
|
14
14
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.List200ResponseToJSON = exports.List200ResponseFromJSONTyped = exports.List200ResponseFromJSON = exports.instanceOfList200Response = void 0;
|
|
17
|
-
var DomainDto_1 = require("./DomainDto");
|
|
18
17
|
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
18
|
+
var DomainDto_1 = require("./DomainDto");
|
|
19
19
|
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
20
20
|
/**
|
|
21
21
|
* Check if a given object implements the List200Response interface.
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ListAccountDto } from './ListAccountDto';
|
|
13
12
|
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { ListAccountDto } from './ListAccountDto';
|
|
14
14
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ListAccounts200ResponseToJSON = exports.ListAccounts200ResponseFromJSONTyped = exports.ListAccounts200ResponseFromJSON = exports.instanceOfListAccounts200Response = void 0;
|
|
17
|
-
var ListAccountDto_1 = require("./ListAccountDto");
|
|
18
17
|
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
18
|
+
var ListAccountDto_1 = require("./ListAccountDto");
|
|
19
19
|
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
20
20
|
/**
|
|
21
21
|
* Check if a given object implements the ListAccounts200Response interface.
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ListTransferDto } from './ListTransferDto';
|
|
13
12
|
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { ListTransferDto } from './ListTransferDto';
|
|
14
14
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ListTransfers200ResponseToJSON = exports.ListTransfers200ResponseFromJSONTyped = exports.ListTransfers200ResponseFromJSON = exports.instanceOfListTransfers200Response = void 0;
|
|
17
|
-
var ListTransferDto_1 = require("./ListTransferDto");
|
|
18
17
|
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
18
|
+
var ListTransferDto_1 = require("./ListTransferDto");
|
|
19
19
|
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
20
20
|
/**
|
|
21
21
|
* Check if a given object implements the ListTransfers200Response interface.
|
|
@@ -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 VerifyLeadInput
|
|
16
|
+
*/
|
|
17
|
+
export interface VerifyLeadInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VerifyLeadInput
|
|
22
|
+
*/
|
|
23
|
+
verificationCode: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the VerifyLeadInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfVerifyLeadInput(value: object): boolean;
|
|
29
|
+
export declare function VerifyLeadInputFromJSON(json: any): VerifyLeadInput;
|
|
30
|
+
export declare function VerifyLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyLeadInput;
|
|
31
|
+
export declare function VerifyLeadInputToJSON(value?: VerifyLeadInput | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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.VerifyLeadInputToJSON = exports.VerifyLeadInputFromJSONTyped = exports.VerifyLeadInputFromJSON = exports.instanceOfVerifyLeadInput = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the VerifyLeadInput interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfVerifyLeadInput(value) {
|
|
21
|
+
if (!('verificationCode' in value))
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfVerifyLeadInput = instanceOfVerifyLeadInput;
|
|
26
|
+
function VerifyLeadInputFromJSON(json) {
|
|
27
|
+
return VerifyLeadInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.VerifyLeadInputFromJSON = VerifyLeadInputFromJSON;
|
|
30
|
+
function VerifyLeadInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'verificationCode': json['verificationCode'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.VerifyLeadInputFromJSONTyped = VerifyLeadInputFromJSONTyped;
|
|
39
|
+
function VerifyLeadInputToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'verificationCode': value['verificationCode'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.VerifyLeadInputToJSON = VerifyLeadInputToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
|
24
24
|
export * from './LeadMessageData';
|
|
25
25
|
export * from './LeadMessageDto';
|
|
26
26
|
export * from './LeadMessageDtoData';
|
|
27
|
+
export * from './LeadStatusDto';
|
|
27
28
|
export * from './List200Response';
|
|
28
29
|
export * from './List400Response';
|
|
29
30
|
export * from './List401Response';
|
|
@@ -50,5 +51,6 @@ export * from './TokenDto';
|
|
|
50
51
|
export * from './UpdateDomainInput';
|
|
51
52
|
export * from './UpdateSettings400Response';
|
|
52
53
|
export * from './UpdateSettings401Response';
|
|
54
|
+
export * from './VerifyLeadInput';
|
|
53
55
|
export * from './WithFinancialDtoInner';
|
|
54
56
|
export * from './WithSettingsInner';
|
package/dist/models/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __exportStar(require("./IntersectionLeadDtoWithListFieldsDtoLastOffer"), exports
|
|
|
42
42
|
__exportStar(require("./LeadMessageData"), exports);
|
|
43
43
|
__exportStar(require("./LeadMessageDto"), exports);
|
|
44
44
|
__exportStar(require("./LeadMessageDtoData"), exports);
|
|
45
|
+
__exportStar(require("./LeadStatusDto"), exports);
|
|
45
46
|
__exportStar(require("./List200Response"), exports);
|
|
46
47
|
__exportStar(require("./List400Response"), exports);
|
|
47
48
|
__exportStar(require("./List401Response"), exports);
|
|
@@ -68,5 +69,6 @@ __exportStar(require("./TokenDto"), exports);
|
|
|
68
69
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
69
70
|
__exportStar(require("./UpdateSettings400Response"), exports);
|
|
70
71
|
__exportStar(require("./UpdateSettings401Response"), exports);
|
|
72
|
+
__exportStar(require("./VerifyLeadInput"), exports);
|
|
71
73
|
__exportStar(require("./WithFinancialDtoInner"), exports);
|
|
72
74
|
__exportStar(require("./WithSettingsInner"), exports);
|
package/package.json
CHANGED
|
@@ -17,27 +17,42 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
BatchUpdate404Response,
|
|
19
19
|
CreateLeadInput,
|
|
20
|
+
LeadStatusDto,
|
|
20
21
|
ListAccounts400Response,
|
|
21
22
|
ListAccounts429Response,
|
|
22
23
|
ObjectId,
|
|
24
|
+
VerifyLeadInput,
|
|
23
25
|
} from '../models/index';
|
|
24
26
|
import {
|
|
25
27
|
BatchUpdate404ResponseFromJSON,
|
|
26
28
|
BatchUpdate404ResponseToJSON,
|
|
27
29
|
CreateLeadInputFromJSON,
|
|
28
30
|
CreateLeadInputToJSON,
|
|
31
|
+
LeadStatusDtoFromJSON,
|
|
32
|
+
LeadStatusDtoToJSON,
|
|
29
33
|
ListAccounts400ResponseFromJSON,
|
|
30
34
|
ListAccounts400ResponseToJSON,
|
|
31
35
|
ListAccounts429ResponseFromJSON,
|
|
32
36
|
ListAccounts429ResponseToJSON,
|
|
33
37
|
ObjectIdFromJSON,
|
|
34
38
|
ObjectIdToJSON,
|
|
39
|
+
VerifyLeadInputFromJSON,
|
|
40
|
+
VerifyLeadInputToJSON,
|
|
35
41
|
} from '../models/index';
|
|
36
42
|
|
|
37
43
|
export interface LeadsPublicApiCreateLeadRequest {
|
|
38
44
|
createLeadInput: CreateLeadInput;
|
|
39
45
|
}
|
|
40
46
|
|
|
47
|
+
export interface LeadsPublicApiGetLeadStatusRequest {
|
|
48
|
+
leadId: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface LeadsPublicApiVerifyLeadRequest {
|
|
52
|
+
leadId: string;
|
|
53
|
+
verifyLeadInput: VerifyLeadInput;
|
|
54
|
+
}
|
|
55
|
+
|
|
41
56
|
/**
|
|
42
57
|
*
|
|
43
58
|
*/
|
|
@@ -79,4 +94,79 @@ export class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
79
94
|
return await response.value();
|
|
80
95
|
}
|
|
81
96
|
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
async getLeadStatusRaw(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadStatusDto>> {
|
|
101
|
+
if (requestParameters['leadId'] == null) {
|
|
102
|
+
throw new runtime.RequiredError(
|
|
103
|
+
'leadId',
|
|
104
|
+
'Required parameter "leadId" was null or undefined when calling getLeadStatus().'
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const queryParameters: any = {};
|
|
109
|
+
|
|
110
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
111
|
+
|
|
112
|
+
const response = await this.request({
|
|
113
|
+
path: `/leads/{leadId}/status`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
114
|
+
method: 'GET',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
}, initOverrides);
|
|
118
|
+
|
|
119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LeadStatusDtoFromJSON(jsonValue));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
async getLeadStatus(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadStatusDto> {
|
|
126
|
+
const response = await this.getLeadStatusRaw(requestParameters, initOverrides);
|
|
127
|
+
return await response.value();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
*/
|
|
133
|
+
async verifyLeadRaw(requestParameters: LeadsPublicApiVerifyLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
134
|
+
if (requestParameters['leadId'] == null) {
|
|
135
|
+
throw new runtime.RequiredError(
|
|
136
|
+
'leadId',
|
|
137
|
+
'Required parameter "leadId" was null or undefined when calling verifyLead().'
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (requestParameters['verifyLeadInput'] == null) {
|
|
142
|
+
throw new runtime.RequiredError(
|
|
143
|
+
'verifyLeadInput',
|
|
144
|
+
'Required parameter "verifyLeadInput" was null or undefined when calling verifyLead().'
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const queryParameters: any = {};
|
|
149
|
+
|
|
150
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
|
+
|
|
152
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
153
|
+
|
|
154
|
+
const response = await this.request({
|
|
155
|
+
path: `/leads/{leadId}/verify`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
156
|
+
method: 'POST',
|
|
157
|
+
headers: headerParameters,
|
|
158
|
+
query: queryParameters,
|
|
159
|
+
body: VerifyLeadInputToJSON(requestParameters['verifyLeadInput']),
|
|
160
|
+
}, initOverrides);
|
|
161
|
+
|
|
162
|
+
return new runtime.VoidApiResponse(response);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
async verifyLead(requestParameters: LeadsPublicApiVerifyLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
169
|
+
await this.verifyLeadRaw(requestParameters, initOverrides);
|
|
170
|
+
}
|
|
171
|
+
|
|
82
172
|
}
|
|
@@ -13,24 +13,24 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { WithSettingsInner } from './WithSettingsInner';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
18
|
+
WithSettingsInnerFromJSON,
|
|
19
|
+
WithSettingsInnerFromJSONTyped,
|
|
20
|
+
WithSettingsInnerToJSON,
|
|
21
|
+
} from './WithSettingsInner';
|
|
22
22
|
import type { WithFinancialDtoInner } from './WithFinancialDtoInner';
|
|
23
23
|
import {
|
|
24
24
|
WithFinancialDtoInnerFromJSON,
|
|
25
25
|
WithFinancialDtoInnerFromJSONTyped,
|
|
26
26
|
WithFinancialDtoInnerToJSON,
|
|
27
27
|
} from './WithFinancialDtoInner';
|
|
28
|
-
import type {
|
|
28
|
+
import type { AccountAddressDto } from './AccountAddressDto';
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} from './
|
|
30
|
+
AccountAddressDtoFromJSON,
|
|
31
|
+
AccountAddressDtoFromJSONTyped,
|
|
32
|
+
AccountAddressDtoToJSON,
|
|
33
|
+
} from './AccountAddressDto';
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { AccountDto } from './AccountDto';
|
|
17
|
-
import {
|
|
18
|
-
AccountDtoFromJSON,
|
|
19
|
-
AccountDtoFromJSONTyped,
|
|
20
|
-
AccountDtoToJSON,
|
|
21
|
-
} from './AccountDto';
|
|
22
16
|
import type { MoneyDto } from './MoneyDto';
|
|
23
17
|
import {
|
|
24
18
|
MoneyDtoFromJSON,
|
|
25
19
|
MoneyDtoFromJSONTyped,
|
|
26
20
|
MoneyDtoToJSON,
|
|
27
21
|
} from './MoneyDto';
|
|
22
|
+
import type { AccountDto } from './AccountDto';
|
|
23
|
+
import {
|
|
24
|
+
AccountDtoFromJSON,
|
|
25
|
+
AccountDtoFromJSONTyped,
|
|
26
|
+
AccountDtoToJSON,
|
|
27
|
+
} from './AccountDto';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { AccountDto } from './AccountDto';
|
|
17
|
-
import {
|
|
18
|
-
AccountDtoFromJSON,
|
|
19
|
-
AccountDtoFromJSONTyped,
|
|
20
|
-
AccountDtoToJSON,
|
|
21
|
-
} from './AccountDto';
|
|
22
16
|
import type { MoneyDto } from './MoneyDto';
|
|
23
17
|
import {
|
|
24
18
|
MoneyDtoFromJSON,
|
|
25
19
|
MoneyDtoFromJSONTyped,
|
|
26
20
|
MoneyDtoToJSON,
|
|
27
21
|
} from './MoneyDto';
|
|
22
|
+
import type { AccountDto } from './AccountDto';
|
|
23
|
+
import {
|
|
24
|
+
AccountDtoFromJSON,
|
|
25
|
+
AccountDtoFromJSONTyped,
|
|
26
|
+
AccountDtoToJSON,
|
|
27
|
+
} from './AccountDto';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LeadStatusDto
|
|
20
|
+
*/
|
|
21
|
+
export interface LeadStatusDto {
|
|
22
|
+
/**
|
|
23
|
+
* The current lead status
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LeadStatusDto
|
|
26
|
+
*/
|
|
27
|
+
status: LeadStatusDtoStatusEnum;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const LeadStatusDtoStatusEnum = {
|
|
35
|
+
UNVERIFIED: 'unverified',
|
|
36
|
+
ACTIVE: 'active',
|
|
37
|
+
DELETED: 'deleted',
|
|
38
|
+
ARCHIVED: 'archived'
|
|
39
|
+
} as const;
|
|
40
|
+
export type LeadStatusDtoStatusEnum = typeof LeadStatusDtoStatusEnum[keyof typeof LeadStatusDtoStatusEnum];
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the LeadStatusDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfLeadStatusDto(value: object): boolean {
|
|
47
|
+
if (!('status' in value)) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function LeadStatusDtoFromJSON(json: any): LeadStatusDto {
|
|
52
|
+
return LeadStatusDtoFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function LeadStatusDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadStatusDto {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'status': json['status'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function LeadStatusDtoToJSON(value?: LeadStatusDto | null): any {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'status': value['status'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { DomainDto } from './DomainDto';
|
|
17
|
-
import {
|
|
18
|
-
DomainDtoFromJSON,
|
|
19
|
-
DomainDtoFromJSONTyped,
|
|
20
|
-
DomainDtoToJSON,
|
|
21
|
-
} from './DomainDto';
|
|
22
16
|
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
23
17
|
import {
|
|
24
18
|
PaginateResponseLinksFromJSON,
|
|
25
19
|
PaginateResponseLinksFromJSONTyped,
|
|
26
20
|
PaginateResponseLinksToJSON,
|
|
27
21
|
} from './PaginateResponseLinks';
|
|
22
|
+
import type { DomainDto } from './DomainDto';
|
|
23
|
+
import {
|
|
24
|
+
DomainDtoFromJSON,
|
|
25
|
+
DomainDtoFromJSONTyped,
|
|
26
|
+
DomainDtoToJSON,
|
|
27
|
+
} from './DomainDto';
|
|
28
28
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
29
|
import {
|
|
30
30
|
PaginateResponseMetaFromJSON,
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { ListAccountDto } from './ListAccountDto';
|
|
17
|
-
import {
|
|
18
|
-
ListAccountDtoFromJSON,
|
|
19
|
-
ListAccountDtoFromJSONTyped,
|
|
20
|
-
ListAccountDtoToJSON,
|
|
21
|
-
} from './ListAccountDto';
|
|
22
16
|
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
23
17
|
import {
|
|
24
18
|
PaginateResponseLinksFromJSON,
|
|
25
19
|
PaginateResponseLinksFromJSONTyped,
|
|
26
20
|
PaginateResponseLinksToJSON,
|
|
27
21
|
} from './PaginateResponseLinks';
|
|
22
|
+
import type { ListAccountDto } from './ListAccountDto';
|
|
23
|
+
import {
|
|
24
|
+
ListAccountDtoFromJSON,
|
|
25
|
+
ListAccountDtoFromJSONTyped,
|
|
26
|
+
ListAccountDtoToJSON,
|
|
27
|
+
} from './ListAccountDto';
|
|
28
28
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
29
|
import {
|
|
30
30
|
PaginateResponseMetaFromJSON,
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { ListTransferDto } from './ListTransferDto';
|
|
17
|
-
import {
|
|
18
|
-
ListTransferDtoFromJSON,
|
|
19
|
-
ListTransferDtoFromJSONTyped,
|
|
20
|
-
ListTransferDtoToJSON,
|
|
21
|
-
} from './ListTransferDto';
|
|
22
16
|
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
23
17
|
import {
|
|
24
18
|
PaginateResponseLinksFromJSON,
|
|
25
19
|
PaginateResponseLinksFromJSONTyped,
|
|
26
20
|
PaginateResponseLinksToJSON,
|
|
27
21
|
} from './PaginateResponseLinks';
|
|
22
|
+
import type { ListTransferDto } from './ListTransferDto';
|
|
23
|
+
import {
|
|
24
|
+
ListTransferDtoFromJSON,
|
|
25
|
+
ListTransferDtoFromJSONTyped,
|
|
26
|
+
ListTransferDtoToJSON,
|
|
27
|
+
} from './ListTransferDto';
|
|
28
28
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
29
|
import {
|
|
30
30
|
PaginateResponseMetaFromJSON,
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VerifyLeadInput
|
|
20
|
+
*/
|
|
21
|
+
export interface VerifyLeadInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VerifyLeadInput
|
|
26
|
+
*/
|
|
27
|
+
verificationCode: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the VerifyLeadInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfVerifyLeadInput(value: object): boolean {
|
|
34
|
+
if (!('verificationCode' in value)) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function VerifyLeadInputFromJSON(json: any): VerifyLeadInput {
|
|
39
|
+
return VerifyLeadInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function VerifyLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyLeadInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'verificationCode': json['verificationCode'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function VerifyLeadInputToJSON(value?: VerifyLeadInput | null): any {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'verificationCode': value['verificationCode'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
|
26
26
|
export * from './LeadMessageData';
|
|
27
27
|
export * from './LeadMessageDto';
|
|
28
28
|
export * from './LeadMessageDtoData';
|
|
29
|
+
export * from './LeadStatusDto';
|
|
29
30
|
export * from './List200Response';
|
|
30
31
|
export * from './List400Response';
|
|
31
32
|
export * from './List401Response';
|
|
@@ -52,5 +53,6 @@ export * from './TokenDto';
|
|
|
52
53
|
export * from './UpdateDomainInput';
|
|
53
54
|
export * from './UpdateSettings400Response';
|
|
54
55
|
export * from './UpdateSettings401Response';
|
|
56
|
+
export * from './VerifyLeadInput';
|
|
55
57
|
export * from './WithFinancialDtoInner';
|
|
56
58
|
export * from './WithSettingsInner';
|