@randock/nameshift-api-client 0.0.145 → 0.0.147
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 +1 -0
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +23 -1
- package/dist/apis/BuyersApi.js +104 -0
- package/dist/models/BatchVerifyBuyerLeadsInput.d.ts +32 -0
- package/dist/models/BatchVerifyBuyerLeadsInput.js +51 -0
- package/dist/models/IntersectionTaskListTaskDto.d.ts +1 -1
- package/dist/models/IntersectionTaskListTaskDto.js +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +94 -0
- package/src/models/BatchVerifyBuyerLeadsInput.ts +66 -0
- package/src/models/IntersectionTaskListTaskDto.ts +1 -1
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -36,6 +36,7 @@ src/models/BatchImportPreviewDto.ts
|
|
|
36
36
|
src/models/BatchReadBuyerLeadMessageInput.ts
|
|
37
37
|
src/models/BatchReadSellerLeadMessageInput.ts
|
|
38
38
|
src/models/BatchUpdateDomainsInput.ts
|
|
39
|
+
src/models/BatchVerifyBuyerLeadsInput.ts
|
|
39
40
|
src/models/BillingInformationDto.ts
|
|
40
41
|
src/models/BuyerDomainTransferAuthCodeDto.ts
|
|
41
42
|
src/models/BuyerDomainTransferListItemDomainDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.147
|
|
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.147 --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
|
+
00e98976c8bb540bcff309b5ac6df81f1dc2b528d39b54fd4f3977570a8b4e29873814f1d69db2f7baf5ae05cbb9f264
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BuyerDomainTransferAuthCodeDto, BuyerSecurityUserDto, CreateBuyerLeadMessageInput, GetAllInvoices200Response, GetBuyerLeads200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
|
|
13
|
+
import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto, BuyerSecurityUserDto, CreateBuyerLeadMessageInput, GetAllInvoices200Response, GetBuyerLeads200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
|
|
14
14
|
export interface BuyersApiAcceptBuyerLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
17
|
+
export interface BuyersApiBatchVerifyBuyerLeadsRequest {
|
|
18
|
+
batchVerifyBuyerLeadsInput: BatchVerifyBuyerLeadsInput;
|
|
19
|
+
}
|
|
17
20
|
export interface BuyersApiBulkReadBuyerLeadMessageRequest {
|
|
18
21
|
leadId: string;
|
|
19
22
|
batchReadBuyerLeadMessageInput: BatchReadBuyerLeadMessageInput;
|
|
@@ -66,6 +69,9 @@ export interface BuyersApiPutBuyerOfferRequest {
|
|
|
66
69
|
export interface BuyersApiSetLocale0Request {
|
|
67
70
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
68
71
|
}
|
|
72
|
+
export interface BuyersApiVerifyBuyerLeadRequest {
|
|
73
|
+
leadId: string;
|
|
74
|
+
}
|
|
69
75
|
/**
|
|
70
76
|
*
|
|
71
77
|
*/
|
|
@@ -78,6 +84,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
78
84
|
*
|
|
79
85
|
*/
|
|
80
86
|
acceptBuyerLeadOffer(requestParameters: BuyersApiAcceptBuyerLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
batchVerifyBuyerLeadsRaw(requestParameters: BuyersApiBatchVerifyBuyerLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
batchVerifyBuyerLeads(requestParameters: BuyersApiBatchVerifyBuyerLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
81
95
|
/**
|
|
82
96
|
*
|
|
83
97
|
*/
|
|
@@ -190,4 +204,12 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
190
204
|
*
|
|
191
205
|
*/
|
|
192
206
|
setLocale(requestParameters: BuyersApiSetLocale0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
*/
|
|
210
|
+
verifyBuyerLeadRaw(requestParameters: BuyersApiVerifyBuyerLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
*/
|
|
214
|
+
verifyBuyerLead(requestParameters: BuyersApiVerifyBuyerLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
193
215
|
}
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -126,6 +126,59 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
126
126
|
});
|
|
127
127
|
});
|
|
128
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
BuyersApi.prototype.batchVerifyBuyerLeadsRaw = function (requestParameters, initOverrides) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
134
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
135
|
+
return __generator(this, function (_a) {
|
|
136
|
+
switch (_a.label) {
|
|
137
|
+
case 0:
|
|
138
|
+
if (requestParameters['batchVerifyBuyerLeadsInput'] == null) {
|
|
139
|
+
throw new runtime.RequiredError('batchVerifyBuyerLeadsInput', 'Required parameter "batchVerifyBuyerLeadsInput" was null or undefined when calling batchVerifyBuyerLeads().');
|
|
140
|
+
}
|
|
141
|
+
queryParameters = {};
|
|
142
|
+
headerParameters = {};
|
|
143
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
144
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
145
|
+
token = this.configuration.accessToken;
|
|
146
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
147
|
+
case 1:
|
|
148
|
+
tokenString = _a.sent();
|
|
149
|
+
if (tokenString) {
|
|
150
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
151
|
+
}
|
|
152
|
+
_a.label = 2;
|
|
153
|
+
case 2: return [4 /*yield*/, this.request({
|
|
154
|
+
path: "/buyers/private/leads/verify",
|
|
155
|
+
method: 'PATCH',
|
|
156
|
+
headers: headerParameters,
|
|
157
|
+
query: queryParameters,
|
|
158
|
+
body: (0, index_1.BatchVerifyBuyerLeadsInputToJSON)(requestParameters['batchVerifyBuyerLeadsInput']),
|
|
159
|
+
}, initOverrides)];
|
|
160
|
+
case 3:
|
|
161
|
+
response = _a.sent();
|
|
162
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
*/
|
|
170
|
+
BuyersApi.prototype.batchVerifyBuyerLeads = function (requestParameters, initOverrides) {
|
|
171
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
172
|
+
return __generator(this, function (_a) {
|
|
173
|
+
switch (_a.label) {
|
|
174
|
+
case 0: return [4 /*yield*/, this.batchVerifyBuyerLeadsRaw(requestParameters, initOverrides)];
|
|
175
|
+
case 1:
|
|
176
|
+
_a.sent();
|
|
177
|
+
return [2 /*return*/];
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
};
|
|
129
182
|
/**
|
|
130
183
|
*
|
|
131
184
|
*/
|
|
@@ -909,6 +962,57 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
909
962
|
});
|
|
910
963
|
});
|
|
911
964
|
};
|
|
965
|
+
/**
|
|
966
|
+
*
|
|
967
|
+
*/
|
|
968
|
+
BuyersApi.prototype.verifyBuyerLeadRaw = function (requestParameters, initOverrides) {
|
|
969
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
970
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
971
|
+
return __generator(this, function (_a) {
|
|
972
|
+
switch (_a.label) {
|
|
973
|
+
case 0:
|
|
974
|
+
if (requestParameters['leadId'] == null) {
|
|
975
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling verifyBuyerLead().');
|
|
976
|
+
}
|
|
977
|
+
queryParameters = {};
|
|
978
|
+
headerParameters = {};
|
|
979
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
980
|
+
token = this.configuration.accessToken;
|
|
981
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
982
|
+
case 1:
|
|
983
|
+
tokenString = _a.sent();
|
|
984
|
+
if (tokenString) {
|
|
985
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
986
|
+
}
|
|
987
|
+
_a.label = 2;
|
|
988
|
+
case 2: return [4 /*yield*/, this.request({
|
|
989
|
+
path: "/buyers/private/leads/{leadId}/verify".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
990
|
+
method: 'PATCH',
|
|
991
|
+
headers: headerParameters,
|
|
992
|
+
query: queryParameters,
|
|
993
|
+
}, initOverrides)];
|
|
994
|
+
case 3:
|
|
995
|
+
response = _a.sent();
|
|
996
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
997
|
+
}
|
|
998
|
+
});
|
|
999
|
+
});
|
|
1000
|
+
};
|
|
1001
|
+
/**
|
|
1002
|
+
*
|
|
1003
|
+
*/
|
|
1004
|
+
BuyersApi.prototype.verifyBuyerLead = function (requestParameters, initOverrides) {
|
|
1005
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1006
|
+
return __generator(this, function (_a) {
|
|
1007
|
+
switch (_a.label) {
|
|
1008
|
+
case 0: return [4 /*yield*/, this.verifyBuyerLeadRaw(requestParameters, initOverrides)];
|
|
1009
|
+
case 1:
|
|
1010
|
+
_a.sent();
|
|
1011
|
+
return [2 /*return*/];
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
});
|
|
1015
|
+
};
|
|
912
1016
|
return BuyersApi;
|
|
913
1017
|
}(runtime.BaseAPI));
|
|
914
1018
|
exports.BuyersApi = BuyersApi;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BatchVerifyBuyerLeadsInput
|
|
16
|
+
*/
|
|
17
|
+
export interface BatchVerifyBuyerLeadsInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof BatchVerifyBuyerLeadsInput
|
|
22
|
+
*/
|
|
23
|
+
leadIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the BatchVerifyBuyerLeadsInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfBatchVerifyBuyerLeadsInput(value: object): value is BatchVerifyBuyerLeadsInput;
|
|
29
|
+
export declare function BatchVerifyBuyerLeadsInputFromJSON(json: any): BatchVerifyBuyerLeadsInput;
|
|
30
|
+
export declare function BatchVerifyBuyerLeadsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchVerifyBuyerLeadsInput;
|
|
31
|
+
export declare function BatchVerifyBuyerLeadsInputToJSON(json: any): BatchVerifyBuyerLeadsInput;
|
|
32
|
+
export declare function BatchVerifyBuyerLeadsInputToJSONTyped(value?: BatchVerifyBuyerLeadsInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfBatchVerifyBuyerLeadsInput = instanceOfBatchVerifyBuyerLeadsInput;
|
|
17
|
+
exports.BatchVerifyBuyerLeadsInputFromJSON = BatchVerifyBuyerLeadsInputFromJSON;
|
|
18
|
+
exports.BatchVerifyBuyerLeadsInputFromJSONTyped = BatchVerifyBuyerLeadsInputFromJSONTyped;
|
|
19
|
+
exports.BatchVerifyBuyerLeadsInputToJSON = BatchVerifyBuyerLeadsInputToJSON;
|
|
20
|
+
exports.BatchVerifyBuyerLeadsInputToJSONTyped = BatchVerifyBuyerLeadsInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BatchVerifyBuyerLeadsInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBatchVerifyBuyerLeadsInput(value) {
|
|
25
|
+
if (!('leadIds' in value) || value['leadIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function BatchVerifyBuyerLeadsInputFromJSON(json) {
|
|
30
|
+
return BatchVerifyBuyerLeadsInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function BatchVerifyBuyerLeadsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'leadIds': json['leadIds'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function BatchVerifyBuyerLeadsInputToJSON(json) {
|
|
41
|
+
return BatchVerifyBuyerLeadsInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function BatchVerifyBuyerLeadsInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'leadIds': value['leadIds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -68,7 +68,7 @@ export type IntersectionTaskListTaskDtoPriorityEnum = typeof IntersectionTaskLis
|
|
|
68
68
|
*/
|
|
69
69
|
export declare const IntersectionTaskListTaskDtoTypeEnum: {
|
|
70
70
|
readonly LEAD: "lead";
|
|
71
|
-
readonly
|
|
71
|
+
readonly DOMAIN_TRANSFER: "domain_transfer";
|
|
72
72
|
};
|
|
73
73
|
export type IntersectionTaskListTaskDtoTypeEnum = typeof IntersectionTaskListTaskDtoTypeEnum[keyof typeof IntersectionTaskListTaskDtoTypeEnum];
|
|
74
74
|
/**
|
|
@@ -34,7 +34,7 @@ exports.IntersectionTaskListTaskDtoPriorityEnum = {
|
|
|
34
34
|
*/
|
|
35
35
|
exports.IntersectionTaskListTaskDtoTypeEnum = {
|
|
36
36
|
LEAD: 'lead',
|
|
37
|
-
|
|
37
|
+
DOMAIN_TRANSFER: 'domain_transfer'
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
40
|
* Check if a given object implements the IntersectionTaskListTaskDto interface.
|
package/dist/models/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './BatchImportPreviewDto';
|
|
|
14
14
|
export * from './BatchReadBuyerLeadMessageInput';
|
|
15
15
|
export * from './BatchReadSellerLeadMessageInput';
|
|
16
16
|
export * from './BatchUpdateDomainsInput';
|
|
17
|
+
export * from './BatchVerifyBuyerLeadsInput';
|
|
17
18
|
export * from './BillingInformationDto';
|
|
18
19
|
export * from './BuyerDomainTransferAuthCodeDto';
|
|
19
20
|
export * from './BuyerDomainTransferListItemDomainDto';
|
package/dist/models/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __exportStar(require("./BatchImportPreviewDto"), exports);
|
|
|
32
32
|
__exportStar(require("./BatchReadBuyerLeadMessageInput"), exports);
|
|
33
33
|
__exportStar(require("./BatchReadSellerLeadMessageInput"), exports);
|
|
34
34
|
__exportStar(require("./BatchUpdateDomainsInput"), exports);
|
|
35
|
+
__exportStar(require("./BatchVerifyBuyerLeadsInput"), exports);
|
|
35
36
|
__exportStar(require("./BillingInformationDto"), exports);
|
|
36
37
|
__exportStar(require("./BuyerDomainTransferAuthCodeDto"), exports);
|
|
37
38
|
__exportStar(require("./BuyerDomainTransferListItemDomainDto"), exports);
|
package/package.json
CHANGED
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
BadRequestException,
|
|
19
19
|
BatchDeleteBuyerLeadsInput,
|
|
20
20
|
BatchReadBuyerLeadMessageInput,
|
|
21
|
+
BatchVerifyBuyerLeadsInput,
|
|
21
22
|
BuyerDomainTransferAuthCodeDto,
|
|
22
23
|
BuyerSecurityUserDto,
|
|
23
24
|
CreateBuyerLeadMessageInput,
|
|
@@ -41,6 +42,8 @@ import {
|
|
|
41
42
|
BatchDeleteBuyerLeadsInputToJSON,
|
|
42
43
|
BatchReadBuyerLeadMessageInputFromJSON,
|
|
43
44
|
BatchReadBuyerLeadMessageInputToJSON,
|
|
45
|
+
BatchVerifyBuyerLeadsInputFromJSON,
|
|
46
|
+
BatchVerifyBuyerLeadsInputToJSON,
|
|
44
47
|
BuyerDomainTransferAuthCodeDtoFromJSON,
|
|
45
48
|
BuyerDomainTransferAuthCodeDtoToJSON,
|
|
46
49
|
BuyerSecurityUserDtoFromJSON,
|
|
@@ -77,6 +80,10 @@ export interface BuyersApiAcceptBuyerLeadOfferRequest {
|
|
|
77
80
|
leadId: string;
|
|
78
81
|
}
|
|
79
82
|
|
|
83
|
+
export interface BuyersApiBatchVerifyBuyerLeadsRequest {
|
|
84
|
+
batchVerifyBuyerLeadsInput: BatchVerifyBuyerLeadsInput;
|
|
85
|
+
}
|
|
86
|
+
|
|
80
87
|
export interface BuyersApiBulkReadBuyerLeadMessageRequest {
|
|
81
88
|
leadId: string;
|
|
82
89
|
batchReadBuyerLeadMessageInput: BatchReadBuyerLeadMessageInput;
|
|
@@ -142,6 +149,10 @@ export interface BuyersApiSetLocale0Request {
|
|
|
142
149
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
143
150
|
}
|
|
144
151
|
|
|
152
|
+
export interface BuyersApiVerifyBuyerLeadRequest {
|
|
153
|
+
leadId: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
145
156
|
/**
|
|
146
157
|
*
|
|
147
158
|
*/
|
|
@@ -187,6 +198,49 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
187
198
|
await this.acceptBuyerLeadOfferRaw(requestParameters, initOverrides);
|
|
188
199
|
}
|
|
189
200
|
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
*/
|
|
204
|
+
async batchVerifyBuyerLeadsRaw(requestParameters: BuyersApiBatchVerifyBuyerLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
205
|
+
if (requestParameters['batchVerifyBuyerLeadsInput'] == null) {
|
|
206
|
+
throw new runtime.RequiredError(
|
|
207
|
+
'batchVerifyBuyerLeadsInput',
|
|
208
|
+
'Required parameter "batchVerifyBuyerLeadsInput" was null or undefined when calling batchVerifyBuyerLeads().'
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
const queryParameters: any = {};
|
|
213
|
+
|
|
214
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
215
|
+
|
|
216
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
217
|
+
|
|
218
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
219
|
+
const token = this.configuration.accessToken;
|
|
220
|
+
const tokenString = await token("bearer", []);
|
|
221
|
+
|
|
222
|
+
if (tokenString) {
|
|
223
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
const response = await this.request({
|
|
227
|
+
path: `/buyers/private/leads/verify`,
|
|
228
|
+
method: 'PATCH',
|
|
229
|
+
headers: headerParameters,
|
|
230
|
+
query: queryParameters,
|
|
231
|
+
body: BatchVerifyBuyerLeadsInputToJSON(requestParameters['batchVerifyBuyerLeadsInput']),
|
|
232
|
+
}, initOverrides);
|
|
233
|
+
|
|
234
|
+
return new runtime.VoidApiResponse(response);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
*/
|
|
240
|
+
async batchVerifyBuyerLeads(requestParameters: BuyersApiBatchVerifyBuyerLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
241
|
+
await this.batchVerifyBuyerLeadsRaw(requestParameters, initOverrides);
|
|
242
|
+
}
|
|
243
|
+
|
|
190
244
|
/**
|
|
191
245
|
*
|
|
192
246
|
*/
|
|
@@ -822,4 +876,44 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
822
876
|
await this.setLocaleRaw(requestParameters, initOverrides);
|
|
823
877
|
}
|
|
824
878
|
|
|
879
|
+
/**
|
|
880
|
+
*
|
|
881
|
+
*/
|
|
882
|
+
async verifyBuyerLeadRaw(requestParameters: BuyersApiVerifyBuyerLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
883
|
+
if (requestParameters['leadId'] == null) {
|
|
884
|
+
throw new runtime.RequiredError(
|
|
885
|
+
'leadId',
|
|
886
|
+
'Required parameter "leadId" was null or undefined when calling verifyBuyerLead().'
|
|
887
|
+
);
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
const queryParameters: any = {};
|
|
891
|
+
|
|
892
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
893
|
+
|
|
894
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
895
|
+
const token = this.configuration.accessToken;
|
|
896
|
+
const tokenString = await token("bearer", []);
|
|
897
|
+
|
|
898
|
+
if (tokenString) {
|
|
899
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
const response = await this.request({
|
|
903
|
+
path: `/buyers/private/leads/{leadId}/verify`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
904
|
+
method: 'PATCH',
|
|
905
|
+
headers: headerParameters,
|
|
906
|
+
query: queryParameters,
|
|
907
|
+
}, initOverrides);
|
|
908
|
+
|
|
909
|
+
return new runtime.VoidApiResponse(response);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
*
|
|
914
|
+
*/
|
|
915
|
+
async verifyBuyerLead(requestParameters: BuyersApiVerifyBuyerLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
916
|
+
await this.verifyBuyerLeadRaw(requestParameters, initOverrides);
|
|
917
|
+
}
|
|
918
|
+
|
|
825
919
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 BatchVerifyBuyerLeadsInput
|
|
20
|
+
*/
|
|
21
|
+
export interface BatchVerifyBuyerLeadsInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof BatchVerifyBuyerLeadsInput
|
|
26
|
+
*/
|
|
27
|
+
leadIds: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the BatchVerifyBuyerLeadsInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfBatchVerifyBuyerLeadsInput(value: object): value is BatchVerifyBuyerLeadsInput {
|
|
34
|
+
if (!('leadIds' in value) || value['leadIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function BatchVerifyBuyerLeadsInputFromJSON(json: any): BatchVerifyBuyerLeadsInput {
|
|
39
|
+
return BatchVerifyBuyerLeadsInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function BatchVerifyBuyerLeadsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchVerifyBuyerLeadsInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'leadIds': json['leadIds'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BatchVerifyBuyerLeadsInputToJSON(json: any): BatchVerifyBuyerLeadsInput {
|
|
53
|
+
return BatchVerifyBuyerLeadsInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BatchVerifyBuyerLeadsInputToJSONTyped(value?: BatchVerifyBuyerLeadsInput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'leadIds': value['leadIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -88,7 +88,7 @@ export type IntersectionTaskListTaskDtoPriorityEnum = typeof IntersectionTaskLis
|
|
|
88
88
|
*/
|
|
89
89
|
export const IntersectionTaskListTaskDtoTypeEnum = {
|
|
90
90
|
LEAD: 'lead',
|
|
91
|
-
|
|
91
|
+
DOMAIN_TRANSFER: 'domain_transfer'
|
|
92
92
|
} as const;
|
|
93
93
|
export type IntersectionTaskListTaskDtoTypeEnum = typeof IntersectionTaskListTaskDtoTypeEnum[keyof typeof IntersectionTaskListTaskDtoTypeEnum];
|
|
94
94
|
|
package/src/models/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './BatchImportPreviewDto';
|
|
|
16
16
|
export * from './BatchReadBuyerLeadMessageInput';
|
|
17
17
|
export * from './BatchReadSellerLeadMessageInput';
|
|
18
18
|
export * from './BatchUpdateDomainsInput';
|
|
19
|
+
export * from './BatchVerifyBuyerLeadsInput';
|
|
19
20
|
export * from './BillingInformationDto';
|
|
20
21
|
export * from './BuyerDomainTransferAuthCodeDto';
|
|
21
22
|
export * from './BuyerDomainTransferListItemDomainDto';
|