@randock/nameshift-api-client 0.0.12 → 0.0.13
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 +9 -1
- package/dist/apis/LeadsApi.d.ts +26 -3
- package/dist/apis/LeadsApi.js +112 -1
- package/dist/models/CreateLeadMessageInput.d.ts +52 -0
- package/dist/models/CreateLeadMessageInput.js +64 -0
- package/dist/models/CreateLeadMessageInputData.d.ts +32 -0
- package/dist/models/CreateLeadMessageInputData.js +51 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +75 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +73 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +59 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +68 -0
- package/dist/models/LeadMessageData.d.ts +32 -0
- package/dist/models/LeadMessageData.js +51 -0
- package/dist/models/LeadMessageDto.d.ts +79 -0
- package/dist/models/LeadMessageDto.js +81 -0
- package/dist/models/LeadMessageDtoData.d.ts +32 -0
- package/dist/models/LeadMessageDtoData.js +51 -0
- package/dist/models/ListLeadMessagesDto.d.ts +32 -0
- package/dist/models/ListLeadMessagesDto.js +51 -0
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/package.json +1 -1
- package/src/apis/LeadsApi.ts +107 -6
- package/src/models/CreateLeadMessageInput.ts +102 -0
- package/src/models/CreateLeadMessageInputData.ts +73 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +142 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +112 -0
- package/src/models/LeadMessageData.ts +73 -0
- package/src/models/LeadMessageDto.ts +139 -0
- package/src/models/LeadMessageDtoData.ts +73 -0
- package/src/models/ListLeadMessagesDto.ts +73 -0
- package/src/models/index.ts +9 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -12,11 +12,14 @@ src/apis/index.ts
|
|
|
12
12
|
src/index.ts
|
|
13
13
|
src/models/AccountAddressDto.ts
|
|
14
14
|
src/models/AccountAddressInput.ts
|
|
15
|
+
src/models/AccountDto.ts
|
|
15
16
|
src/models/AccountFinancialInput.ts
|
|
16
17
|
src/models/AccountSettingsInput.ts
|
|
17
18
|
src/models/BatchUpdate404Response.ts
|
|
18
19
|
src/models/BatchUpdateDomainsInput.ts
|
|
19
20
|
src/models/CreateLeadInput.ts
|
|
21
|
+
src/models/CreateLeadMessageInput.ts
|
|
22
|
+
src/models/CreateLeadMessageInputData.ts
|
|
20
23
|
src/models/DeleteDomainsInput.ts
|
|
21
24
|
src/models/DomainDto.ts
|
|
22
25
|
src/models/ImportDomainsDto.ts
|
|
@@ -24,12 +27,17 @@ src/models/IntersectionAccountDtoWithAddressDto.ts
|
|
|
24
27
|
src/models/IntersectionAccountDtoWithFinancialDto.ts
|
|
25
28
|
src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
|
|
26
29
|
src/models/IntersectionAccountDtoWithSettingsDto.ts
|
|
27
|
-
src/models/
|
|
30
|
+
src/models/IntersectionDomainDtoWithAccountDto.ts
|
|
31
|
+
src/models/IntersectionLeadDtoWithLeadDetailsDto.ts
|
|
28
32
|
src/models/IntersectionLeadDtoWithListFieldsDto.ts
|
|
29
33
|
src/models/LeadDto.ts
|
|
34
|
+
src/models/LeadMessageData.ts
|
|
35
|
+
src/models/LeadMessageDto.ts
|
|
36
|
+
src/models/LeadMessageDtoData.ts
|
|
30
37
|
src/models/List200Response.ts
|
|
31
38
|
src/models/List400Response.ts
|
|
32
39
|
src/models/List401Response.ts
|
|
40
|
+
src/models/ListLeadMessagesDto.ts
|
|
33
41
|
src/models/Login401Response.ts
|
|
34
42
|
src/models/Login429Response.ts
|
|
35
43
|
src/models/LoginInput.ts
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -10,10 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, IntersectionLeadDtoWithListFieldsDto, LeadMessageDto, ListLeadMessagesDto } from '../models/index';
|
|
14
|
+
export interface CreateMessageRequest {
|
|
15
|
+
leadId: string;
|
|
16
|
+
createLeadMessageInput: CreateLeadMessageInput;
|
|
17
|
+
}
|
|
14
18
|
export interface GetRequest {
|
|
15
19
|
leadId: string;
|
|
16
20
|
}
|
|
21
|
+
export interface GetMessagesRequest {
|
|
22
|
+
leadId: string;
|
|
23
|
+
}
|
|
17
24
|
/**
|
|
18
25
|
*
|
|
19
26
|
*/
|
|
@@ -21,11 +28,27 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
21
28
|
/**
|
|
22
29
|
*
|
|
23
30
|
*/
|
|
24
|
-
|
|
31
|
+
createMessageRaw(requestParameters: CreateMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadMessageDto>>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
createMessage(requestParameters: CreateMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadMessageDto>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
getRaw(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDto>>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
get(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionLeadDtoWithLeadDetailsDto>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
getMessagesRaw(requestParameters: GetMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListLeadMessagesDto>>;
|
|
25
48
|
/**
|
|
26
49
|
*
|
|
27
50
|
*/
|
|
28
|
-
|
|
51
|
+
getMessages(requestParameters: GetMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListLeadMessagesDto>;
|
|
29
52
|
/**
|
|
30
53
|
*
|
|
31
54
|
*/
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -75,6 +75,64 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function LeadsApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
LeadsApi.prototype.createMessageRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters.leadId === null || requestParameters.leadId === undefined) {
|
|
88
|
+
throw new runtime.RequiredError('leadId', 'Required parameter requestParameters.leadId was null or undefined when calling createMessage.');
|
|
89
|
+
}
|
|
90
|
+
if (requestParameters.createLeadMessageInput === null || requestParameters.createLeadMessageInput === undefined) {
|
|
91
|
+
throw new runtime.RequiredError('createLeadMessageInput', 'Required parameter requestParameters.createLeadMessageInput was null or undefined when calling createMessage.');
|
|
92
|
+
}
|
|
93
|
+
queryParameters = {};
|
|
94
|
+
headerParameters = {};
|
|
95
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
96
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
97
|
+
token = this.configuration.accessToken;
|
|
98
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
99
|
+
case 1:
|
|
100
|
+
tokenString = _a.sent();
|
|
101
|
+
if (tokenString) {
|
|
102
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
103
|
+
}
|
|
104
|
+
_a.label = 2;
|
|
105
|
+
case 2: return [4 /*yield*/, this.request({
|
|
106
|
+
path: "/leads/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters.leadId))),
|
|
107
|
+
method: 'POST',
|
|
108
|
+
headers: headerParameters,
|
|
109
|
+
query: queryParameters,
|
|
110
|
+
body: (0, index_1.CreateLeadMessageInputToJSON)(requestParameters.createLeadMessageInput),
|
|
111
|
+
}, initOverrides)];
|
|
112
|
+
case 3:
|
|
113
|
+
response = _a.sent();
|
|
114
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadMessageDtoFromJSON)(jsonValue); })];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
LeadsApi.prototype.createMessage = function (requestParameters, initOverrides) {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
124
|
+
var response;
|
|
125
|
+
return __generator(this, function (_a) {
|
|
126
|
+
switch (_a.label) {
|
|
127
|
+
case 0: return [4 /*yield*/, this.createMessageRaw(requestParameters, initOverrides)];
|
|
128
|
+
case 1:
|
|
129
|
+
response = _a.sent();
|
|
130
|
+
return [4 /*yield*/, response.value()];
|
|
131
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
};
|
|
78
136
|
/**
|
|
79
137
|
*
|
|
80
138
|
*/
|
|
@@ -106,7 +164,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
106
164
|
}, initOverrides)];
|
|
107
165
|
case 3:
|
|
108
166
|
response = _a.sent();
|
|
109
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return
|
|
167
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionLeadDtoWithLeadDetailsDtoFromJSON)(jsonValue); })];
|
|
110
168
|
}
|
|
111
169
|
});
|
|
112
170
|
});
|
|
@@ -128,6 +186,59 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
128
186
|
});
|
|
129
187
|
});
|
|
130
188
|
};
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
*/
|
|
192
|
+
LeadsApi.prototype.getMessagesRaw = function (requestParameters, initOverrides) {
|
|
193
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
194
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
switch (_a.label) {
|
|
197
|
+
case 0:
|
|
198
|
+
if (requestParameters.leadId === null || requestParameters.leadId === undefined) {
|
|
199
|
+
throw new runtime.RequiredError('leadId', 'Required parameter requestParameters.leadId was null or undefined when calling getMessages.');
|
|
200
|
+
}
|
|
201
|
+
queryParameters = {};
|
|
202
|
+
headerParameters = {};
|
|
203
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
204
|
+
token = this.configuration.accessToken;
|
|
205
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
206
|
+
case 1:
|
|
207
|
+
tokenString = _a.sent();
|
|
208
|
+
if (tokenString) {
|
|
209
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
210
|
+
}
|
|
211
|
+
_a.label = 2;
|
|
212
|
+
case 2: return [4 /*yield*/, this.request({
|
|
213
|
+
path: "/leads/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters.leadId))),
|
|
214
|
+
method: 'GET',
|
|
215
|
+
headers: headerParameters,
|
|
216
|
+
query: queryParameters,
|
|
217
|
+
}, initOverrides)];
|
|
218
|
+
case 3:
|
|
219
|
+
response = _a.sent();
|
|
220
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListLeadMessagesDtoFromJSON)(jsonValue); })];
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
*/
|
|
228
|
+
LeadsApi.prototype.getMessages = function (requestParameters, initOverrides) {
|
|
229
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
230
|
+
var response;
|
|
231
|
+
return __generator(this, function (_a) {
|
|
232
|
+
switch (_a.label) {
|
|
233
|
+
case 0: return [4 /*yield*/, this.getMessagesRaw(requestParameters, initOverrides)];
|
|
234
|
+
case 1:
|
|
235
|
+
response = _a.sent();
|
|
236
|
+
return [4 /*yield*/, response.value()];
|
|
237
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
};
|
|
131
242
|
/**
|
|
132
243
|
*
|
|
133
244
|
*/
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CreateLeadMessageInputData } from './CreateLeadMessageInputData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateLeadMessageInput
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateLeadMessageInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateLeadMessageInput
|
|
23
|
+
*/
|
|
24
|
+
type: CreateLeadMessageInputTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {CreateLeadMessageInputData}
|
|
28
|
+
* @memberof CreateLeadMessageInput
|
|
29
|
+
*/
|
|
30
|
+
data: CreateLeadMessageInputData | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateLeadMessageInput
|
|
35
|
+
*/
|
|
36
|
+
message: string | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const CreateLeadMessageInputTypeEnum: {
|
|
42
|
+
readonly OFFER: "offer";
|
|
43
|
+
readonly MESSAGE: "message";
|
|
44
|
+
};
|
|
45
|
+
export type CreateLeadMessageInputTypeEnum = typeof CreateLeadMessageInputTypeEnum[keyof typeof CreateLeadMessageInputTypeEnum];
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the CreateLeadMessageInput interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfCreateLeadMessageInput(value: object): boolean;
|
|
50
|
+
export declare function CreateLeadMessageInputFromJSON(json: any): CreateLeadMessageInput;
|
|
51
|
+
export declare function CreateLeadMessageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLeadMessageInput;
|
|
52
|
+
export declare function CreateLeadMessageInputToJSON(value?: CreateLeadMessageInput | null): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateLeadMessageInputToJSON = exports.CreateLeadMessageInputFromJSONTyped = exports.CreateLeadMessageInputFromJSON = exports.instanceOfCreateLeadMessageInput = exports.CreateLeadMessageInputTypeEnum = void 0;
|
|
17
|
+
var CreateLeadMessageInputData_1 = require("./CreateLeadMessageInputData");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.CreateLeadMessageInputTypeEnum = {
|
|
22
|
+
OFFER: 'offer',
|
|
23
|
+
MESSAGE: 'message'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateLeadMessageInput interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfCreateLeadMessageInput(value) {
|
|
29
|
+
var isInstance = true;
|
|
30
|
+
isInstance = isInstance && "type" in value;
|
|
31
|
+
isInstance = isInstance && "data" in value;
|
|
32
|
+
isInstance = isInstance && "message" in value;
|
|
33
|
+
return isInstance;
|
|
34
|
+
}
|
|
35
|
+
exports.instanceOfCreateLeadMessageInput = instanceOfCreateLeadMessageInput;
|
|
36
|
+
function CreateLeadMessageInputFromJSON(json) {
|
|
37
|
+
return CreateLeadMessageInputFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
exports.CreateLeadMessageInputFromJSON = CreateLeadMessageInputFromJSON;
|
|
40
|
+
function CreateLeadMessageInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'type': json['type'],
|
|
46
|
+
'data': (0, CreateLeadMessageInputData_1.CreateLeadMessageInputDataFromJSON)(json['data']),
|
|
47
|
+
'message': json['message'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.CreateLeadMessageInputFromJSONTyped = CreateLeadMessageInputFromJSONTyped;
|
|
51
|
+
function CreateLeadMessageInputToJSON(value) {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'type': value.type,
|
|
60
|
+
'data': (0, CreateLeadMessageInputData_1.CreateLeadMessageInputDataToJSON)(value.data),
|
|
61
|
+
'message': value.message,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.CreateLeadMessageInputToJSON = CreateLeadMessageInputToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateLeadMessageInputData
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateLeadMessageInputData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {MoneyDto}
|
|
22
|
+
* @memberof CreateLeadMessageInputData
|
|
23
|
+
*/
|
|
24
|
+
price: MoneyDto;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CreateLeadMessageInputData interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCreateLeadMessageInputData(value: object): boolean;
|
|
30
|
+
export declare function CreateLeadMessageInputDataFromJSON(json: any): CreateLeadMessageInputData;
|
|
31
|
+
export declare function CreateLeadMessageInputDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLeadMessageInputData;
|
|
32
|
+
export declare function CreateLeadMessageInputDataToJSON(value?: CreateLeadMessageInputData | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateLeadMessageInputDataToJSON = exports.CreateLeadMessageInputDataFromJSONTyped = exports.CreateLeadMessageInputDataFromJSON = exports.instanceOfCreateLeadMessageInputData = void 0;
|
|
17
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the CreateLeadMessageInputData interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfCreateLeadMessageInputData(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "price" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfCreateLeadMessageInputData = instanceOfCreateLeadMessageInputData;
|
|
27
|
+
function CreateLeadMessageInputDataFromJSON(json) {
|
|
28
|
+
return CreateLeadMessageInputDataFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.CreateLeadMessageInputDataFromJSON = CreateLeadMessageInputDataFromJSON;
|
|
31
|
+
function CreateLeadMessageInputDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.CreateLeadMessageInputDataFromJSONTyped = CreateLeadMessageInputDataFromJSONTyped;
|
|
40
|
+
function CreateLeadMessageInputDataToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'price': (0, MoneyDto_1.MoneyDtoToJSON)(value.price),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.CreateLeadMessageInputDataToJSON = CreateLeadMessageInputDataToJSON;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AccountDto } from './AccountDto';
|
|
13
|
+
import type { MoneyDto } from './MoneyDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface IntersectionDomainDtoWithAccountDto
|
|
18
|
+
*/
|
|
19
|
+
export interface IntersectionDomainDtoWithAccountDto {
|
|
20
|
+
/**
|
|
21
|
+
* The uuid for this domain.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The TLD for this domain.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
30
|
+
*/
|
|
31
|
+
tld: string;
|
|
32
|
+
/**
|
|
33
|
+
* Whether this domain is verified by the owner (ns3, txt) or not.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
36
|
+
*/
|
|
37
|
+
verified: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the nameservers (ns1,ns2) are set or not.
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
42
|
+
*/
|
|
43
|
+
nameservers: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The domain name (example.com)
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
48
|
+
*/
|
|
49
|
+
name: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {MoneyDto}
|
|
53
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
54
|
+
*/
|
|
55
|
+
buyNow: MoneyDto;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {MoneyDto}
|
|
59
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
60
|
+
*/
|
|
61
|
+
minOffer: MoneyDto;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {AccountDto}
|
|
65
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
66
|
+
*/
|
|
67
|
+
account: AccountDto;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the IntersectionDomainDtoWithAccountDto interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfIntersectionDomainDtoWithAccountDto(value: object): boolean;
|
|
73
|
+
export declare function IntersectionDomainDtoWithAccountDtoFromJSON(json: any): IntersectionDomainDtoWithAccountDto;
|
|
74
|
+
export declare function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionDomainDtoWithAccountDto;
|
|
75
|
+
export declare function IntersectionDomainDtoWithAccountDtoToJSON(value?: IntersectionDomainDtoWithAccountDto | null): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.IntersectionDomainDtoWithAccountDtoToJSON = exports.IntersectionDomainDtoWithAccountDtoFromJSONTyped = exports.IntersectionDomainDtoWithAccountDtoFromJSON = exports.instanceOfIntersectionDomainDtoWithAccountDto = void 0;
|
|
17
|
+
var AccountDto_1 = require("./AccountDto");
|
|
18
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the IntersectionDomainDtoWithAccountDto interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfIntersectionDomainDtoWithAccountDto(value) {
|
|
23
|
+
var isInstance = true;
|
|
24
|
+
isInstance = isInstance && "id" in value;
|
|
25
|
+
isInstance = isInstance && "tld" in value;
|
|
26
|
+
isInstance = isInstance && "verified" in value;
|
|
27
|
+
isInstance = isInstance && "nameservers" in value;
|
|
28
|
+
isInstance = isInstance && "name" in value;
|
|
29
|
+
isInstance = isInstance && "buyNow" in value;
|
|
30
|
+
isInstance = isInstance && "minOffer" in value;
|
|
31
|
+
isInstance = isInstance && "account" in value;
|
|
32
|
+
return isInstance;
|
|
33
|
+
}
|
|
34
|
+
exports.instanceOfIntersectionDomainDtoWithAccountDto = instanceOfIntersectionDomainDtoWithAccountDto;
|
|
35
|
+
function IntersectionDomainDtoWithAccountDtoFromJSON(json) {
|
|
36
|
+
return IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
exports.IntersectionDomainDtoWithAccountDtoFromJSON = IntersectionDomainDtoWithAccountDtoFromJSON;
|
|
39
|
+
function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if ((json === undefined) || (json === null)) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
'tld': json['tld'],
|
|
46
|
+
'verified': json['verified'],
|
|
47
|
+
'nameservers': json['nameservers'],
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
50
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
51
|
+
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.IntersectionDomainDtoWithAccountDtoFromJSONTyped = IntersectionDomainDtoWithAccountDtoFromJSONTyped;
|
|
55
|
+
function IntersectionDomainDtoWithAccountDtoToJSON(value) {
|
|
56
|
+
if (value === undefined) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
if (value === null) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': value.id,
|
|
64
|
+
'tld': value.tld,
|
|
65
|
+
'verified': value.verified,
|
|
66
|
+
'nameservers': value.nameservers,
|
|
67
|
+
'name': value.name,
|
|
68
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value.buyNow),
|
|
69
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value.minOffer),
|
|
70
|
+
'account': (0, AccountDto_1.AccountDtoToJSON)(value.account),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
exports.IntersectionDomainDtoWithAccountDtoToJSON = IntersectionDomainDtoWithAccountDtoToJSON;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IntersectionLeadDtoWithLeadDetailsDto
|
|
17
|
+
*/
|
|
18
|
+
export interface IntersectionLeadDtoWithLeadDetailsDto {
|
|
19
|
+
/**
|
|
20
|
+
* The current id
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The current lead status
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
29
|
+
*/
|
|
30
|
+
status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {IntersectionDomainDtoWithAccountDto}
|
|
34
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
35
|
+
*/
|
|
36
|
+
domain: IntersectionDomainDtoWithAccountDto;
|
|
37
|
+
/**
|
|
38
|
+
* Created at date
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
41
|
+
*/
|
|
42
|
+
createdAt: Date;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const IntersectionLeadDtoWithLeadDetailsDtoStatusEnum: {
|
|
48
|
+
readonly ACTIVE: "active";
|
|
49
|
+
readonly DELETED: "deleted";
|
|
50
|
+
readonly ARCHIVED: "archived";
|
|
51
|
+
};
|
|
52
|
+
export type IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value: object): boolean;
|
|
57
|
+
export declare function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json: any): IntersectionLeadDtoWithLeadDetailsDto;
|
|
58
|
+
export declare function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithLeadDetailsDto;
|
|
59
|
+
export declare function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value?: IntersectionLeadDtoWithLeadDetailsDto | null): any;
|