@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
|
@@ -0,0 +1,68 @@
|
|
|
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.IntersectionLeadDtoWithLeadDetailsDtoToJSON = exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped = exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSON = exports.instanceOfIntersectionLeadDtoWithLeadDetailsDto = exports.IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = void 0;
|
|
17
|
+
var IntersectionDomainDtoWithAccountDto_1 = require("./IntersectionDomainDtoWithAccountDto");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = {
|
|
22
|
+
ACTIVE: 'active',
|
|
23
|
+
DELETED: 'deleted',
|
|
24
|
+
ARCHIVED: 'archived'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value) {
|
|
30
|
+
var isInstance = true;
|
|
31
|
+
isInstance = isInstance && "id" in value;
|
|
32
|
+
isInstance = isInstance && "status" in value;
|
|
33
|
+
isInstance = isInstance && "domain" in value;
|
|
34
|
+
isInstance = isInstance && "createdAt" in value;
|
|
35
|
+
return isInstance;
|
|
36
|
+
}
|
|
37
|
+
exports.instanceOfIntersectionLeadDtoWithLeadDetailsDto = instanceOfIntersectionLeadDtoWithLeadDetailsDto;
|
|
38
|
+
function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json) {
|
|
39
|
+
return IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSON = IntersectionLeadDtoWithLeadDetailsDtoFromJSON;
|
|
42
|
+
function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if ((json === undefined) || (json === null)) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'status': json['status'],
|
|
49
|
+
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoFromJSON)(json['domain']),
|
|
50
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped;
|
|
54
|
+
function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value) {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value.id,
|
|
63
|
+
'status': value.status,
|
|
64
|
+
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value.domain),
|
|
65
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoToJSON = IntersectionLeadDtoWithLeadDetailsDtoToJSON;
|
|
@@ -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 LeadMessageData
|
|
17
|
+
*/
|
|
18
|
+
export interface LeadMessageData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {MoneyDto}
|
|
22
|
+
* @memberof LeadMessageData
|
|
23
|
+
*/
|
|
24
|
+
price: MoneyDto;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the LeadMessageData interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfLeadMessageData(value: object): boolean;
|
|
30
|
+
export declare function LeadMessageDataFromJSON(json: any): LeadMessageData;
|
|
31
|
+
export declare function LeadMessageDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageData;
|
|
32
|
+
export declare function LeadMessageDataToJSON(value?: LeadMessageData | 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.LeadMessageDataToJSON = exports.LeadMessageDataFromJSONTyped = exports.LeadMessageDataFromJSON = exports.instanceOfLeadMessageData = void 0;
|
|
17
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the LeadMessageData interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfLeadMessageData(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "price" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfLeadMessageData = instanceOfLeadMessageData;
|
|
27
|
+
function LeadMessageDataFromJSON(json) {
|
|
28
|
+
return LeadMessageDataFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.LeadMessageDataFromJSON = LeadMessageDataFromJSON;
|
|
31
|
+
function LeadMessageDataFromJSONTyped(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.LeadMessageDataFromJSONTyped = LeadMessageDataFromJSONTyped;
|
|
40
|
+
function LeadMessageDataToJSON(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.LeadMessageDataToJSON = LeadMessageDataToJSON;
|
|
@@ -0,0 +1,79 @@
|
|
|
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 { LeadMessageDtoData } from './LeadMessageDtoData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LeadMessageDto
|
|
17
|
+
*/
|
|
18
|
+
export interface LeadMessageDto {
|
|
19
|
+
/**
|
|
20
|
+
* The current id
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof LeadMessageDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The message type
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof LeadMessageDto
|
|
29
|
+
*/
|
|
30
|
+
type: LeadMessageDtoTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* The message origin
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof LeadMessageDto
|
|
35
|
+
*/
|
|
36
|
+
origin: LeadMessageDtoOriginEnum;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {LeadMessageDtoData}
|
|
40
|
+
* @memberof LeadMessageDto
|
|
41
|
+
*/
|
|
42
|
+
data: LeadMessageDtoData | null;
|
|
43
|
+
/**
|
|
44
|
+
* Created at date
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof LeadMessageDto
|
|
47
|
+
*/
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
/**
|
|
50
|
+
* Optional message *
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof LeadMessageDto
|
|
53
|
+
*/
|
|
54
|
+
message: string | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const LeadMessageDtoTypeEnum: {
|
|
60
|
+
readonly OFFER: "offer";
|
|
61
|
+
readonly MESSAGE: "message";
|
|
62
|
+
};
|
|
63
|
+
export type LeadMessageDtoTypeEnum = typeof LeadMessageDtoTypeEnum[keyof typeof LeadMessageDtoTypeEnum];
|
|
64
|
+
/**
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
67
|
+
export declare const LeadMessageDtoOriginEnum: {
|
|
68
|
+
readonly BUYER: "buyer";
|
|
69
|
+
readonly SELLER: "seller";
|
|
70
|
+
readonly ADMIN: "admin";
|
|
71
|
+
};
|
|
72
|
+
export type LeadMessageDtoOriginEnum = typeof LeadMessageDtoOriginEnum[keyof typeof LeadMessageDtoOriginEnum];
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the LeadMessageDto interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfLeadMessageDto(value: object): boolean;
|
|
77
|
+
export declare function LeadMessageDtoFromJSON(json: any): LeadMessageDto;
|
|
78
|
+
export declare function LeadMessageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageDto;
|
|
79
|
+
export declare function LeadMessageDtoToJSON(value?: LeadMessageDto | null): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
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.LeadMessageDtoToJSON = exports.LeadMessageDtoFromJSONTyped = exports.LeadMessageDtoFromJSON = exports.instanceOfLeadMessageDto = exports.LeadMessageDtoOriginEnum = exports.LeadMessageDtoTypeEnum = void 0;
|
|
17
|
+
var LeadMessageDtoData_1 = require("./LeadMessageDtoData");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.LeadMessageDtoTypeEnum = {
|
|
22
|
+
OFFER: 'offer',
|
|
23
|
+
MESSAGE: 'message'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.LeadMessageDtoOriginEnum = {
|
|
29
|
+
BUYER: 'buyer',
|
|
30
|
+
SELLER: 'seller',
|
|
31
|
+
ADMIN: 'admin'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the LeadMessageDto interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfLeadMessageDto(value) {
|
|
37
|
+
var isInstance = true;
|
|
38
|
+
isInstance = isInstance && "id" in value;
|
|
39
|
+
isInstance = isInstance && "type" in value;
|
|
40
|
+
isInstance = isInstance && "origin" in value;
|
|
41
|
+
isInstance = isInstance && "data" in value;
|
|
42
|
+
isInstance = isInstance && "createdAt" in value;
|
|
43
|
+
isInstance = isInstance && "message" in value;
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
exports.instanceOfLeadMessageDto = instanceOfLeadMessageDto;
|
|
47
|
+
function LeadMessageDtoFromJSON(json) {
|
|
48
|
+
return LeadMessageDtoFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
exports.LeadMessageDtoFromJSON = LeadMessageDtoFromJSON;
|
|
51
|
+
function LeadMessageDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': json['id'],
|
|
57
|
+
'type': json['type'],
|
|
58
|
+
'origin': json['origin'],
|
|
59
|
+
'data': (0, LeadMessageDtoData_1.LeadMessageDtoDataFromJSON)(json['data']),
|
|
60
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
61
|
+
'message': json['message'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.LeadMessageDtoFromJSONTyped = LeadMessageDtoFromJSONTyped;
|
|
65
|
+
function LeadMessageDtoToJSON(value) {
|
|
66
|
+
if (value === undefined) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
if (value === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value.id,
|
|
74
|
+
'type': value.type,
|
|
75
|
+
'origin': value.origin,
|
|
76
|
+
'data': (0, LeadMessageDtoData_1.LeadMessageDtoDataToJSON)(value.data),
|
|
77
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
78
|
+
'message': value.message,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
exports.LeadMessageDtoToJSON = LeadMessageDtoToJSON;
|
|
@@ -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
|
+
* Optional data *
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LeadMessageDtoData
|
|
17
|
+
*/
|
|
18
|
+
export interface LeadMessageDtoData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {MoneyDto}
|
|
22
|
+
* @memberof LeadMessageDtoData
|
|
23
|
+
*/
|
|
24
|
+
price: MoneyDto;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the LeadMessageDtoData interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfLeadMessageDtoData(value: object): boolean;
|
|
30
|
+
export declare function LeadMessageDtoDataFromJSON(json: any): LeadMessageDtoData;
|
|
31
|
+
export declare function LeadMessageDtoDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageDtoData;
|
|
32
|
+
export declare function LeadMessageDtoDataToJSON(value?: LeadMessageDtoData | 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.LeadMessageDtoDataToJSON = exports.LeadMessageDtoDataFromJSONTyped = exports.LeadMessageDtoDataFromJSON = exports.instanceOfLeadMessageDtoData = void 0;
|
|
17
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the LeadMessageDtoData interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfLeadMessageDtoData(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "price" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfLeadMessageDtoData = instanceOfLeadMessageDtoData;
|
|
27
|
+
function LeadMessageDtoDataFromJSON(json) {
|
|
28
|
+
return LeadMessageDtoDataFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.LeadMessageDtoDataFromJSON = LeadMessageDtoDataFromJSON;
|
|
31
|
+
function LeadMessageDtoDataFromJSONTyped(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.LeadMessageDtoDataFromJSONTyped = LeadMessageDtoDataFromJSONTyped;
|
|
40
|
+
function LeadMessageDtoDataToJSON(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.LeadMessageDtoDataToJSON = LeadMessageDtoDataToJSON;
|
|
@@ -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 { LeadMessageDto } from './LeadMessageDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListLeadMessagesDto
|
|
17
|
+
*/
|
|
18
|
+
export interface ListLeadMessagesDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<LeadMessageDto>}
|
|
22
|
+
* @memberof ListLeadMessagesDto
|
|
23
|
+
*/
|
|
24
|
+
messages: Array<LeadMessageDto>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ListLeadMessagesDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfListLeadMessagesDto(value: object): boolean;
|
|
30
|
+
export declare function ListLeadMessagesDtoFromJSON(json: any): ListLeadMessagesDto;
|
|
31
|
+
export declare function ListLeadMessagesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListLeadMessagesDto;
|
|
32
|
+
export declare function ListLeadMessagesDtoToJSON(value?: ListLeadMessagesDto | 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.ListLeadMessagesDtoToJSON = exports.ListLeadMessagesDtoFromJSONTyped = exports.ListLeadMessagesDtoFromJSON = exports.instanceOfListLeadMessagesDto = void 0;
|
|
17
|
+
var LeadMessageDto_1 = require("./LeadMessageDto");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ListLeadMessagesDto interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfListLeadMessagesDto(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "messages" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfListLeadMessagesDto = instanceOfListLeadMessagesDto;
|
|
27
|
+
function ListLeadMessagesDtoFromJSON(json) {
|
|
28
|
+
return ListLeadMessagesDtoFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ListLeadMessagesDtoFromJSON = ListLeadMessagesDtoFromJSON;
|
|
31
|
+
function ListLeadMessagesDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'messages': (json['messages'].map(LeadMessageDto_1.LeadMessageDtoFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.ListLeadMessagesDtoFromJSONTyped = ListLeadMessagesDtoFromJSONTyped;
|
|
40
|
+
function ListLeadMessagesDtoToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'messages': (value.messages.map(LeadMessageDto_1.LeadMessageDtoToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.ListLeadMessagesDtoToJSON = ListLeadMessagesDtoToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export * from './AccountAddressDto';
|
|
2
2
|
export * from './AccountAddressInput';
|
|
3
|
+
export * from './AccountDto';
|
|
3
4
|
export * from './AccountFinancialInput';
|
|
4
5
|
export * from './AccountSettingsInput';
|
|
5
6
|
export * from './BatchUpdate404Response';
|
|
6
7
|
export * from './BatchUpdateDomainsInput';
|
|
7
8
|
export * from './CreateLeadInput';
|
|
9
|
+
export * from './CreateLeadMessageInput';
|
|
10
|
+
export * from './CreateLeadMessageInputData';
|
|
8
11
|
export * from './DeleteDomainsInput';
|
|
9
12
|
export * from './DomainDto';
|
|
10
13
|
export * from './ImportDomainsDto';
|
|
@@ -12,12 +15,17 @@ export * from './IntersectionAccountDtoWithAddressDto';
|
|
|
12
15
|
export * from './IntersectionAccountDtoWithFinancialDto';
|
|
13
16
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
14
17
|
export * from './IntersectionAccountDtoWithSettingsDto';
|
|
15
|
-
export * from './
|
|
18
|
+
export * from './IntersectionDomainDtoWithAccountDto';
|
|
19
|
+
export * from './IntersectionLeadDtoWithLeadDetailsDto';
|
|
16
20
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
17
21
|
export * from './LeadDto';
|
|
22
|
+
export * from './LeadMessageData';
|
|
23
|
+
export * from './LeadMessageDto';
|
|
24
|
+
export * from './LeadMessageDtoData';
|
|
18
25
|
export * from './List200Response';
|
|
19
26
|
export * from './List400Response';
|
|
20
27
|
export * from './List401Response';
|
|
28
|
+
export * from './ListLeadMessagesDto';
|
|
21
29
|
export * from './Login401Response';
|
|
22
30
|
export * from './Login429Response';
|
|
23
31
|
export * from './LoginInput';
|
package/dist/models/index.js
CHANGED
|
@@ -18,11 +18,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AccountAddressDto"), exports);
|
|
20
20
|
__exportStar(require("./AccountAddressInput"), exports);
|
|
21
|
+
__exportStar(require("./AccountDto"), exports);
|
|
21
22
|
__exportStar(require("./AccountFinancialInput"), exports);
|
|
22
23
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
23
24
|
__exportStar(require("./BatchUpdate404Response"), exports);
|
|
24
25
|
__exportStar(require("./BatchUpdateDomainsInput"), exports);
|
|
25
26
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
27
|
+
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
28
|
+
__exportStar(require("./CreateLeadMessageInputData"), exports);
|
|
26
29
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
27
30
|
__exportStar(require("./DomainDto"), exports);
|
|
28
31
|
__exportStar(require("./ImportDomainsDto"), exports);
|
|
@@ -30,12 +33,17 @@ __exportStar(require("./IntersectionAccountDtoWithAddressDto"), exports);
|
|
|
30
33
|
__exportStar(require("./IntersectionAccountDtoWithFinancialDto"), exports);
|
|
31
34
|
__exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
|
|
32
35
|
__exportStar(require("./IntersectionAccountDtoWithSettingsDto"), exports);
|
|
33
|
-
__exportStar(require("./
|
|
36
|
+
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
37
|
+
__exportStar(require("./IntersectionLeadDtoWithLeadDetailsDto"), exports);
|
|
34
38
|
__exportStar(require("./IntersectionLeadDtoWithListFieldsDto"), exports);
|
|
35
39
|
__exportStar(require("./LeadDto"), exports);
|
|
40
|
+
__exportStar(require("./LeadMessageData"), exports);
|
|
41
|
+
__exportStar(require("./LeadMessageDto"), exports);
|
|
42
|
+
__exportStar(require("./LeadMessageDtoData"), exports);
|
|
36
43
|
__exportStar(require("./List200Response"), exports);
|
|
37
44
|
__exportStar(require("./List400Response"), exports);
|
|
38
45
|
__exportStar(require("./List401Response"), exports);
|
|
46
|
+
__exportStar(require("./ListLeadMessagesDto"), exports);
|
|
39
47
|
__exportStar(require("./Login401Response"), exports);
|
|
40
48
|
__exportStar(require("./Login429Response"), exports);
|
|
41
49
|
__exportStar(require("./LoginInput"), exports);
|