@randock/nameshift-api-client 0.0.12 → 0.0.14
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 +11 -1
- package/dist/apis/LeadsApi.d.ts +38 -3
- package/dist/apis/LeadsApi.js +170 -1
- package/dist/models/CreateLeadMessageInput.d.ts +31 -0
- package/dist/models/CreateLeadMessageInput.js +50 -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 +81 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +83 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +37 -2
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +23 -1
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.d.ts +32 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +51 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.d.ts +37 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +53 -0
- package/dist/models/LeadDto.d.ts +22 -0
- package/dist/models/LeadDto.js +16 -1
- package/dist/models/LeadMessageData.d.ts +32 -0
- package/dist/models/LeadMessageData.js +51 -0
- package/dist/models/LeadMessageDto.d.ts +85 -0
- package/dist/models/LeadMessageDto.js +84 -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/PutLeadInput.d.ts +32 -0
- package/dist/models/PutLeadInput.js +51 -0
- package/dist/models/index.d.ts +11 -1
- package/dist/models/index.js +11 -1
- package/package.json +2 -1
- package/src/apis/LeadsApi.ts +160 -6
- package/src/models/CreateLeadMessageInput.ts +66 -0
- package/src/models/CreateLeadMessageInputData.ts +73 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +142 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +146 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +61 -2
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +73 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +75 -0
- package/src/models/LeadDto.ts +35 -0
- package/src/models/LeadMessageData.ts +73 -0
- package/src/models/LeadMessageDto.ts +148 -0
- package/src/models/LeadMessageDtoData.ts +73 -0
- package/src/models/ListLeadMessagesDto.ts +73 -0
- package/src/models/PutLeadInput.ts +73 -0
- package/src/models/index.ts +11 -1
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
import type { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface IntersectionLeadDtoWithLeadDetailsDto
|
|
18
|
+
*/
|
|
19
|
+
export interface IntersectionLeadDtoWithLeadDetailsDto {
|
|
20
|
+
/**
|
|
21
|
+
* The current id
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The current lead status
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
30
|
+
*/
|
|
31
|
+
status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
|
|
35
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
36
|
+
*/
|
|
37
|
+
lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
42
|
+
*/
|
|
43
|
+
lastOfferBy: IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {IntersectionDomainDtoWithAccountDto}
|
|
47
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
48
|
+
*/
|
|
49
|
+
domain: IntersectionDomainDtoWithAccountDto;
|
|
50
|
+
/**
|
|
51
|
+
* Created at date
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
54
|
+
*/
|
|
55
|
+
createdAt: Date;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const IntersectionLeadDtoWithLeadDetailsDtoStatusEnum: {
|
|
61
|
+
readonly ACTIVE: "active";
|
|
62
|
+
readonly DELETED: "deleted";
|
|
63
|
+
readonly ARCHIVED: "archived";
|
|
64
|
+
};
|
|
65
|
+
export type IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum];
|
|
66
|
+
/**
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
export declare const IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum: {
|
|
70
|
+
readonly BUYER: "buyer";
|
|
71
|
+
readonly SELLER: "seller";
|
|
72
|
+
readonly ADMIN: "admin";
|
|
73
|
+
};
|
|
74
|
+
export type IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum];
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value: object): boolean;
|
|
79
|
+
export declare function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json: any): IntersectionLeadDtoWithLeadDetailsDto;
|
|
80
|
+
export declare function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithLeadDetailsDto;
|
|
81
|
+
export declare function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value?: IntersectionLeadDtoWithLeadDetailsDto | null): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
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.IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = void 0;
|
|
17
|
+
var IntersectionDomainDtoWithAccountDto_1 = require("./IntersectionDomainDtoWithAccountDto");
|
|
18
|
+
var IntersectionLeadDtoWithListFieldsDtoLastOffer_1 = require("./IntersectionLeadDtoWithListFieldsDtoLastOffer");
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = {
|
|
23
|
+
ACTIVE: 'active',
|
|
24
|
+
DELETED: 'deleted',
|
|
25
|
+
ARCHIVED: 'archived'
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = {
|
|
31
|
+
BUYER: 'buyer',
|
|
32
|
+
SELLER: 'seller',
|
|
33
|
+
ADMIN: 'admin'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value) {
|
|
39
|
+
var isInstance = true;
|
|
40
|
+
isInstance = isInstance && "id" in value;
|
|
41
|
+
isInstance = isInstance && "status" in value;
|
|
42
|
+
isInstance = isInstance && "lastOffer" in value;
|
|
43
|
+
isInstance = isInstance && "lastOfferBy" in value;
|
|
44
|
+
isInstance = isInstance && "domain" in value;
|
|
45
|
+
isInstance = isInstance && "createdAt" in value;
|
|
46
|
+
return isInstance;
|
|
47
|
+
}
|
|
48
|
+
exports.instanceOfIntersectionLeadDtoWithLeadDetailsDto = instanceOfIntersectionLeadDtoWithLeadDetailsDto;
|
|
49
|
+
function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json) {
|
|
50
|
+
return IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSON = IntersectionLeadDtoWithLeadDetailsDtoFromJSON;
|
|
53
|
+
function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if ((json === undefined) || (json === null)) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': json['id'],
|
|
59
|
+
'status': json['status'],
|
|
60
|
+
'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON)(json['lastOffer']),
|
|
61
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
62
|
+
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoFromJSON)(json['domain']),
|
|
63
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped;
|
|
67
|
+
function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value) {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': value.id,
|
|
76
|
+
'status': value.status,
|
|
77
|
+
'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON)(value.lastOffer),
|
|
78
|
+
'lastOfferBy': value.lastOfferBy,
|
|
79
|
+
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value.domain),
|
|
80
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoToJSON = IntersectionLeadDtoWithLeadDetailsDtoToJSON;
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { IntersectionLeadDtoWithListFieldsDtoLastMessageData } from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
|
|
13
|
+
import type { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -27,6 +29,18 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
27
29
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
28
30
|
*/
|
|
29
31
|
status: IntersectionLeadDtoWithListFieldsDtoStatusEnum;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
|
|
35
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
36
|
+
*/
|
|
37
|
+
lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
42
|
+
*/
|
|
43
|
+
lastOfferBy: IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum | null;
|
|
30
44
|
/**
|
|
31
45
|
*
|
|
32
46
|
* @type {string}
|
|
@@ -39,6 +53,12 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
39
53
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
40
54
|
*/
|
|
41
55
|
lastMessageType: IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {IntersectionLeadDtoWithListFieldsDtoLastMessageData}
|
|
59
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
60
|
+
*/
|
|
61
|
+
lastMessageData: IntersectionLeadDtoWithListFieldsDtoLastMessageData | null;
|
|
42
62
|
/**
|
|
43
63
|
* Created at date
|
|
44
64
|
* @type {Date}
|
|
@@ -58,11 +78,17 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
58
78
|
*/
|
|
59
79
|
buyerInitials: string;
|
|
60
80
|
/**
|
|
61
|
-
*
|
|
81
|
+
* The message in case lastMessageType === LeadMessageTypeEnum.MESSAGE
|
|
62
82
|
* @type {string}
|
|
63
83
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
64
84
|
*/
|
|
65
|
-
lastMessageMessage: string;
|
|
85
|
+
lastMessageMessage: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* The creation date of the message
|
|
88
|
+
* @type {Date}
|
|
89
|
+
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
90
|
+
*/
|
|
91
|
+
lastMessageDate: Date;
|
|
66
92
|
}
|
|
67
93
|
/**
|
|
68
94
|
* @export
|
|
@@ -73,6 +99,15 @@ export declare const IntersectionLeadDtoWithListFieldsDtoStatusEnum: {
|
|
|
73
99
|
readonly ARCHIVED: "archived";
|
|
74
100
|
};
|
|
75
101
|
export type IntersectionLeadDtoWithListFieldsDtoStatusEnum = typeof IntersectionLeadDtoWithListFieldsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoStatusEnum];
|
|
102
|
+
/**
|
|
103
|
+
* @export
|
|
104
|
+
*/
|
|
105
|
+
export declare const IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum: {
|
|
106
|
+
readonly BUYER: "buyer";
|
|
107
|
+
readonly SELLER: "seller";
|
|
108
|
+
readonly ADMIN: "admin";
|
|
109
|
+
};
|
|
110
|
+
export type IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum];
|
|
76
111
|
/**
|
|
77
112
|
* @export
|
|
78
113
|
*/
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.IntersectionLeadDtoWithListFieldsDtoToJSON = exports.IntersectionLeadDtoWithListFieldsDtoFromJSONTyped = exports.IntersectionLeadDtoWithListFieldsDtoFromJSON = exports.instanceOfIntersectionLeadDtoWithListFieldsDto = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = exports.IntersectionLeadDtoWithListFieldsDtoStatusEnum = void 0;
|
|
16
|
+
exports.IntersectionLeadDtoWithListFieldsDtoToJSON = exports.IntersectionLeadDtoWithListFieldsDtoFromJSONTyped = exports.IntersectionLeadDtoWithListFieldsDtoFromJSON = exports.instanceOfIntersectionLeadDtoWithListFieldsDto = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = exports.IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithListFieldsDtoStatusEnum = void 0;
|
|
17
|
+
var IntersectionLeadDtoWithListFieldsDtoLastMessageData_1 = require("./IntersectionLeadDtoWithListFieldsDtoLastMessageData");
|
|
18
|
+
var IntersectionLeadDtoWithListFieldsDtoLastOffer_1 = require("./IntersectionLeadDtoWithListFieldsDtoLastOffer");
|
|
17
19
|
/**
|
|
18
20
|
* @export
|
|
19
21
|
*/
|
|
@@ -22,6 +24,14 @@ exports.IntersectionLeadDtoWithListFieldsDtoStatusEnum = {
|
|
|
22
24
|
DELETED: 'deleted',
|
|
23
25
|
ARCHIVED: 'archived'
|
|
24
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
exports.IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum = {
|
|
31
|
+
BUYER: 'buyer',
|
|
32
|
+
SELLER: 'seller',
|
|
33
|
+
ADMIN: 'admin'
|
|
34
|
+
};
|
|
25
35
|
/**
|
|
26
36
|
* @export
|
|
27
37
|
*/
|
|
@@ -44,12 +54,16 @@ function instanceOfIntersectionLeadDtoWithListFieldsDto(value) {
|
|
|
44
54
|
var isInstance = true;
|
|
45
55
|
isInstance = isInstance && "id" in value;
|
|
46
56
|
isInstance = isInstance && "status" in value;
|
|
57
|
+
isInstance = isInstance && "lastOffer" in value;
|
|
58
|
+
isInstance = isInstance && "lastOfferBy" in value;
|
|
47
59
|
isInstance = isInstance && "lastMessageFrom" in value;
|
|
48
60
|
isInstance = isInstance && "lastMessageType" in value;
|
|
61
|
+
isInstance = isInstance && "lastMessageData" in value;
|
|
49
62
|
isInstance = isInstance && "createdAt" in value;
|
|
50
63
|
isInstance = isInstance && "domainName" in value;
|
|
51
64
|
isInstance = isInstance && "buyerInitials" in value;
|
|
52
65
|
isInstance = isInstance && "lastMessageMessage" in value;
|
|
66
|
+
isInstance = isInstance && "lastMessageDate" in value;
|
|
53
67
|
return isInstance;
|
|
54
68
|
}
|
|
55
69
|
exports.instanceOfIntersectionLeadDtoWithListFieldsDto = instanceOfIntersectionLeadDtoWithListFieldsDto;
|
|
@@ -64,12 +78,16 @@ function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json, ignoreDiscrimin
|
|
|
64
78
|
return {
|
|
65
79
|
'id': json['id'],
|
|
66
80
|
'status': json['status'],
|
|
81
|
+
'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON)(json['lastOffer']),
|
|
82
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
67
83
|
'lastMessageFrom': json['lastMessageFrom'],
|
|
68
84
|
'lastMessageType': json['lastMessageType'],
|
|
85
|
+
'lastMessageData': (0, IntersectionLeadDtoWithListFieldsDtoLastMessageData_1.IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON)(json['lastMessageData']),
|
|
69
86
|
'createdAt': (new Date(json['createdAt'])),
|
|
70
87
|
'domainName': json['domainName'],
|
|
71
88
|
'buyerInitials': json['buyerInitials'],
|
|
72
89
|
'lastMessageMessage': json['lastMessageMessage'],
|
|
90
|
+
'lastMessageDate': (new Date(json['lastMessageDate'])),
|
|
73
91
|
};
|
|
74
92
|
}
|
|
75
93
|
exports.IntersectionLeadDtoWithListFieldsDtoFromJSONTyped = IntersectionLeadDtoWithListFieldsDtoFromJSONTyped;
|
|
@@ -83,12 +101,16 @@ function IntersectionLeadDtoWithListFieldsDtoToJSON(value) {
|
|
|
83
101
|
return {
|
|
84
102
|
'id': value.id,
|
|
85
103
|
'status': value.status,
|
|
104
|
+
'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON)(value.lastOffer),
|
|
105
|
+
'lastOfferBy': value.lastOfferBy,
|
|
86
106
|
'lastMessageFrom': value.lastMessageFrom,
|
|
87
107
|
'lastMessageType': value.lastMessageType,
|
|
108
|
+
'lastMessageData': (0, IntersectionLeadDtoWithListFieldsDtoLastMessageData_1.IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON)(value.lastMessageData),
|
|
88
109
|
'createdAt': (value.createdAt.toISOString()),
|
|
89
110
|
'domainName': value.domainName,
|
|
90
111
|
'buyerInitials': value.buyerInitials,
|
|
91
112
|
'lastMessageMessage': value.lastMessageMessage,
|
|
113
|
+
'lastMessageDate': (value.lastMessageDate.toISOString()),
|
|
92
114
|
};
|
|
93
115
|
}
|
|
94
116
|
exports.IntersectionLeadDtoWithListFieldsDtoToJSON = IntersectionLeadDtoWithListFieldsDtoToJSON;
|
|
@@ -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
|
+
* The data
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IntersectionLeadDtoWithListFieldsDtoLastMessageData
|
|
17
|
+
*/
|
|
18
|
+
export interface IntersectionLeadDtoWithListFieldsDtoLastMessageData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {MoneyDto}
|
|
22
|
+
* @memberof IntersectionLeadDtoWithListFieldsDtoLastMessageData
|
|
23
|
+
*/
|
|
24
|
+
price: MoneyDto;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastMessageData interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData(value: object): boolean;
|
|
30
|
+
export declare function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON(json: any): IntersectionLeadDtoWithListFieldsDtoLastMessageData;
|
|
31
|
+
export declare function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithListFieldsDtoLastMessageData;
|
|
32
|
+
export declare function IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON(value?: IntersectionLeadDtoWithListFieldsDtoLastMessageData | 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.IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON = exports.instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData = void 0;
|
|
17
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastMessageData interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "price" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData = instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData;
|
|
27
|
+
function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON(json) {
|
|
28
|
+
return IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON = IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON;
|
|
31
|
+
function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped(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.IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped = IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped;
|
|
40
|
+
function IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON(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.IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON = IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 IntersectionLeadDtoWithListFieldsDtoLastOffer
|
|
16
|
+
*/
|
|
17
|
+
export interface IntersectionLeadDtoWithListFieldsDtoLastOffer {
|
|
18
|
+
/**
|
|
19
|
+
* Monetary amount, represented as an integer without scale/decimals.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof IntersectionLeadDtoWithListFieldsDtoLastOffer
|
|
22
|
+
*/
|
|
23
|
+
amount: number;
|
|
24
|
+
/**
|
|
25
|
+
* Three letter ISO currency code
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IntersectionLeadDtoWithListFieldsDtoLastOffer
|
|
28
|
+
*/
|
|
29
|
+
currencyCode: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastOffer interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfIntersectionLeadDtoWithListFieldsDtoLastOffer(value: object): boolean;
|
|
35
|
+
export declare function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json: any): IntersectionLeadDtoWithListFieldsDtoLastOffer;
|
|
36
|
+
export declare function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithListFieldsDtoLastOffer;
|
|
37
|
+
export declare function IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value?: IntersectionLeadDtoWithListFieldsDtoLastOffer | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON = exports.IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped = exports.IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON = exports.instanceOfIntersectionLeadDtoWithListFieldsDtoLastOffer = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastOffer interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfIntersectionLeadDtoWithListFieldsDtoLastOffer(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "amount" in value;
|
|
23
|
+
isInstance = isInstance && "currencyCode" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfIntersectionLeadDtoWithListFieldsDtoLastOffer = instanceOfIntersectionLeadDtoWithListFieldsDtoLastOffer;
|
|
27
|
+
function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json) {
|
|
28
|
+
return IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON = IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON;
|
|
31
|
+
function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'amount': json['amount'],
|
|
37
|
+
'currencyCode': json['currencyCode'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped = IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped;
|
|
41
|
+
function IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'amount': value.amount,
|
|
50
|
+
'currencyCode': value.currencyCode,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON = IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON;
|
package/dist/models/LeadDto.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,18 @@ export interface LeadDto {
|
|
|
27
28
|
* @memberof LeadDto
|
|
28
29
|
*/
|
|
29
30
|
status: LeadDtoStatusEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
|
|
34
|
+
* @memberof LeadDto
|
|
35
|
+
*/
|
|
36
|
+
lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof LeadDto
|
|
41
|
+
*/
|
|
42
|
+
lastOfferBy: LeadDtoLastOfferByEnum | null;
|
|
30
43
|
/**
|
|
31
44
|
* Created at date
|
|
32
45
|
* @type {Date}
|
|
@@ -43,6 +56,15 @@ export declare const LeadDtoStatusEnum: {
|
|
|
43
56
|
readonly ARCHIVED: "archived";
|
|
44
57
|
};
|
|
45
58
|
export type LeadDtoStatusEnum = typeof LeadDtoStatusEnum[keyof typeof LeadDtoStatusEnum];
|
|
59
|
+
/**
|
|
60
|
+
* @export
|
|
61
|
+
*/
|
|
62
|
+
export declare const LeadDtoLastOfferByEnum: {
|
|
63
|
+
readonly BUYER: "buyer";
|
|
64
|
+
readonly SELLER: "seller";
|
|
65
|
+
readonly ADMIN: "admin";
|
|
66
|
+
};
|
|
67
|
+
export type LeadDtoLastOfferByEnum = typeof LeadDtoLastOfferByEnum[keyof typeof LeadDtoLastOfferByEnum];
|
|
46
68
|
/**
|
|
47
69
|
* Check if a given object implements the LeadDto interface.
|
|
48
70
|
*/
|
package/dist/models/LeadDto.js
CHANGED
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.LeadDtoToJSON = exports.LeadDtoFromJSONTyped = exports.LeadDtoFromJSON = exports.instanceOfLeadDto = exports.LeadDtoStatusEnum = void 0;
|
|
16
|
+
exports.LeadDtoToJSON = exports.LeadDtoFromJSONTyped = exports.LeadDtoFromJSON = exports.instanceOfLeadDto = exports.LeadDtoLastOfferByEnum = exports.LeadDtoStatusEnum = void 0;
|
|
17
|
+
var IntersectionLeadDtoWithListFieldsDtoLastOffer_1 = require("./IntersectionLeadDtoWithListFieldsDtoLastOffer");
|
|
17
18
|
/**
|
|
18
19
|
* @export
|
|
19
20
|
*/
|
|
@@ -22,6 +23,14 @@ exports.LeadDtoStatusEnum = {
|
|
|
22
23
|
DELETED: 'deleted',
|
|
23
24
|
ARCHIVED: 'archived'
|
|
24
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.LeadDtoLastOfferByEnum = {
|
|
30
|
+
BUYER: 'buyer',
|
|
31
|
+
SELLER: 'seller',
|
|
32
|
+
ADMIN: 'admin'
|
|
33
|
+
};
|
|
25
34
|
/**
|
|
26
35
|
* Check if a given object implements the LeadDto interface.
|
|
27
36
|
*/
|
|
@@ -29,6 +38,8 @@ function instanceOfLeadDto(value) {
|
|
|
29
38
|
var isInstance = true;
|
|
30
39
|
isInstance = isInstance && "id" in value;
|
|
31
40
|
isInstance = isInstance && "status" in value;
|
|
41
|
+
isInstance = isInstance && "lastOffer" in value;
|
|
42
|
+
isInstance = isInstance && "lastOfferBy" in value;
|
|
32
43
|
isInstance = isInstance && "createdAt" in value;
|
|
33
44
|
return isInstance;
|
|
34
45
|
}
|
|
@@ -44,6 +55,8 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
55
|
return {
|
|
45
56
|
'id': json['id'],
|
|
46
57
|
'status': json['status'],
|
|
58
|
+
'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON)(json['lastOffer']),
|
|
59
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
47
60
|
'createdAt': (new Date(json['createdAt'])),
|
|
48
61
|
};
|
|
49
62
|
}
|
|
@@ -58,6 +71,8 @@ function LeadDtoToJSON(value) {
|
|
|
58
71
|
return {
|
|
59
72
|
'id': value.id,
|
|
60
73
|
'status': value.status,
|
|
74
|
+
'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON)(value.lastOffer),
|
|
75
|
+
'lastOfferBy': value.lastOfferBy,
|
|
61
76
|
'createdAt': (value.createdAt.toISOString()),
|
|
62
77
|
};
|
|
63
78
|
}
|
|
@@ -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;
|