@randock/nameshift-api-client 0.0.18 → 0.0.19
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 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +6 -4
- package/dist/apis/AccountsApi.js +18 -18
- package/dist/apis/AuthApi.js +3 -3
- package/dist/apis/DomainsApi.d.ts +1 -1
- package/dist/apis/DomainsApi.js +30 -30
- package/dist/apis/LeadsApi.js +18 -18
- package/dist/apis/LeadsPublicApi.js +3 -3
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AccountAddressDto.js +21 -21
- package/dist/models/AccountAddressInput.js +21 -21
- package/dist/models/AccountDto.js +10 -12
- package/dist/models/AccountFinancialInput.js +16 -16
- package/dist/models/AccountSettingsInput.js +6 -11
- package/dist/models/BatchUpdate404Response.js +12 -15
- package/dist/models/BatchUpdateDomainsInput.js +10 -12
- package/dist/models/CreateLeadInput.js +22 -20
- package/dist/models/CreateLeadMessageInput.js +7 -10
- package/dist/models/DeleteDomainsInput.js +7 -10
- package/dist/models/DomainDto.d.ts +2 -2
- package/dist/models/DomainDto.js +25 -22
- package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +19 -18
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +2 -2
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +28 -24
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +2 -2
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +31 -26
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +22 -20
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +40 -32
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +7 -10
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +10 -12
- package/dist/models/LeadMessageData.js +7 -10
- package/dist/models/LeadMessageDto.js +25 -22
- package/dist/models/LeadMessageDtoData.js +7 -10
- package/dist/models/List200Response.js +13 -14
- package/dist/models/List400Response.js +12 -15
- package/dist/models/List401Response.js +12 -15
- package/dist/models/ListLeadMessagesDto.js +7 -10
- package/dist/models/Login401Response.js +12 -15
- package/dist/models/Login429Response.js +12 -15
- package/dist/models/LoginInput.js +10 -12
- package/dist/models/MoneyDto.js +10 -12
- package/dist/models/MoneyInput.js +10 -12
- package/dist/models/ObjectId.js +7 -10
- package/dist/models/PaginateResponse.js +13 -14
- package/dist/models/PaginateResponseLinks.d.ts +5 -5
- package/dist/models/PaginateResponseLinks.js +14 -19
- package/dist/models/PaginateResponseMeta.js +18 -23
- package/dist/models/PutLeadInput.js +7 -10
- package/dist/models/TokenDto.js +7 -10
- package/dist/models/UpdateDomainInput.d.ts +2 -2
- package/dist/models/UpdateDomainInput.js +8 -13
- package/dist/models/UpdateFinancial400Response.js +12 -15
- package/dist/models/UpdateSettings400Response.js +12 -15
- package/dist/models/UpdateSettings401Response.js +12 -15
- package/dist/models/UpdateSettings429Response.js +12 -15
- package/dist/models/WithFinancialDtoInner.js +16 -16
- package/dist/models/WithSettingsInner.js +7 -10
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/dist/runtime.d.ts +2 -3
- package/dist/runtime.js +1 -6
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +36 -18
- package/src/apis/AuthApi.ts +6 -3
- package/src/apis/DomainsApi.ts +49 -31
- package/src/apis/LeadsApi.ts +36 -18
- package/src/apis/LeadsPublicApi.ts +6 -3
- package/src/apis/index.ts +0 -1
- package/src/models/AccountAddressDto.ts +17 -22
- package/src/models/AccountAddressInput.ts +17 -22
- package/src/models/AccountDto.ts +9 -14
- package/src/models/AccountFinancialInput.ts +13 -18
- package/src/models/AccountSettingsInput.ts +7 -12
- package/src/models/BatchUpdate404Response.ts +11 -16
- package/src/models/BatchUpdateDomainsInput.ts +9 -14
- package/src/models/CreateLeadInput.ts +17 -22
- package/src/models/CreateLeadMessageInput.ts +7 -12
- package/src/models/DeleteDomainsInput.ts +7 -12
- package/src/models/DomainDto.ts +21 -26
- package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +15 -20
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +23 -28
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +25 -30
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +17 -22
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +29 -34
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +7 -12
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +9 -14
- package/src/models/LeadMessageData.ts +7 -12
- package/src/models/LeadMessageDto.ts +19 -24
- package/src/models/LeadMessageDtoData.ts +7 -12
- package/src/models/List200Response.ts +11 -16
- package/src/models/List400Response.ts +11 -16
- package/src/models/List401Response.ts +11 -16
- package/src/models/ListLeadMessagesDto.ts +7 -12
- package/src/models/Login401Response.ts +11 -16
- package/src/models/Login429Response.ts +11 -16
- package/src/models/LoginInput.ts +9 -14
- package/src/models/MoneyDto.ts +9 -14
- package/src/models/MoneyInput.ts +9 -14
- package/src/models/ObjectId.ts +7 -12
- package/src/models/PaginateResponse.ts +11 -16
- package/src/models/PaginateResponseLinks.ts +20 -25
- package/src/models/PaginateResponseMeta.ts +19 -24
- package/src/models/PutLeadInput.ts +7 -12
- package/src/models/TokenDto.ts +7 -12
- package/src/models/UpdateDomainInput.ts +11 -16
- package/src/models/UpdateFinancial400Response.ts +11 -16
- package/src/models/UpdateSettings400Response.ts +11 -16
- package/src/models/UpdateSettings401Response.ts +11 -16
- package/src/models/UpdateSettings429Response.ts +11 -16
- package/src/models/WithFinancialDtoInner.ts +13 -18
- package/src/models/WithSettingsInner.ts +7 -12
- package/src/models/index.ts +0 -1
- package/src/runtime.ts +3 -8
- package/dist/apis/DomainsPublicApi.d.ts +0 -35
- package/dist/apis/DomainsPublicApi.js +0 -164
- package/dist/apis/TestApi.d.ts +0 -23
- package/dist/apis/TestApi.js +0 -116
- package/dist/models/CreateLeadMessageInputData.d.ts +0 -32
- package/dist/models/CreateLeadMessageInputData.js +0 -51
- package/dist/models/ImportDomainsDto.d.ts +0 -49
- package/dist/models/ImportDomainsDto.js +0 -59
- package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +0 -44
- package/dist/models/IntersectionAccountDtoWithAddressDto.js +0 -57
- package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +0 -44
- package/dist/models/IntersectionAccountDtoWithFinancialDto.js +0 -57
- package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +0 -49
- package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +0 -56
- package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +0 -44
- package/dist/models/IntersectionAccountDtoWithSettingsDto.js +0 -57
- package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +0 -32
- package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +0 -51
- package/dist/models/IntersectionLeadDto.d.ts +0 -52
- package/dist/models/IntersectionLeadDto.js +0 -64
- package/dist/models/LeadDto.d.ts +0 -74
- package/dist/models/LeadDto.js +0 -79
- package/dist/models/List429Response.d.ts +0 -43
- package/dist/models/List429Response.js +0 -56
- package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +0 -43
- package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +0 -56
- package/src/apis/DomainsPublicApi.ts +0 -97
- package/src/apis/TestApi.ts +0 -46
- package/src/models/CreateLeadMessageInputData.ts +0 -73
- package/src/models/ImportDomainsDto.ts +0 -93
- package/src/models/IntersectionAccountDtoWithAddressDto.ts +0 -91
- package/src/models/IntersectionAccountDtoWithFinancialDto.ts +0 -91
- package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +0 -89
- package/src/models/IntersectionAccountDtoWithSettingsDto.ts +0 -91
- package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +0 -72
- package/src/models/IntersectionLeadDto.ts +0 -96
- package/src/models/LeadDto.ts +0 -131
- package/src/models/List429Response.ts +0 -83
- package/src/models/PublicDomainControllerGetDomainIdentifier404Response.ts +0 -83
|
@@ -20,17 +20,25 @@ var MoneyDto_1 = require("./MoneyDto");
|
|
|
20
20
|
* Check if a given object implements the IntersectionDomainDtoWithHijackerDtoWithAccountDto interface.
|
|
21
21
|
*/
|
|
22
22
|
function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
if (!('id' in value))
|
|
24
|
+
return false;
|
|
25
|
+
if (!('tld' in value))
|
|
26
|
+
return false;
|
|
27
|
+
if (!('verified' in value))
|
|
28
|
+
return false;
|
|
29
|
+
if (!('nameservers' in value))
|
|
30
|
+
return false;
|
|
31
|
+
if (!('name' in value))
|
|
32
|
+
return false;
|
|
33
|
+
if (!('buyNow' in value))
|
|
34
|
+
return false;
|
|
35
|
+
if (!('minOffer' in value))
|
|
36
|
+
return false;
|
|
37
|
+
if (!('hijacker' in value))
|
|
38
|
+
return false;
|
|
39
|
+
if (!('account' in value))
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
34
42
|
}
|
|
35
43
|
exports.instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto = instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto;
|
|
36
44
|
function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON(json) {
|
|
@@ -38,7 +46,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON(json) {
|
|
|
38
46
|
}
|
|
39
47
|
exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON = IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON;
|
|
40
48
|
function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
-
if (
|
|
49
|
+
if (json == null) {
|
|
42
50
|
return json;
|
|
43
51
|
}
|
|
44
52
|
return {
|
|
@@ -55,22 +63,19 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
|
|
|
55
63
|
}
|
|
56
64
|
exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped = IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped;
|
|
57
65
|
function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value) {
|
|
58
|
-
if (value
|
|
59
|
-
return
|
|
60
|
-
}
|
|
61
|
-
if (value === null) {
|
|
62
|
-
return null;
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
63
68
|
}
|
|
64
69
|
return {
|
|
65
|
-
'id': value
|
|
66
|
-
'tld': value
|
|
67
|
-
'verified': value
|
|
68
|
-
'nameservers': value
|
|
69
|
-
'name': value
|
|
70
|
-
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value
|
|
71
|
-
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value
|
|
72
|
-
'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value
|
|
73
|
-
'account': (0, AccountDto_1.AccountDtoToJSON)(value
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'tld': value['tld'],
|
|
72
|
+
'verified': value['verified'],
|
|
73
|
+
'nameservers': value['nameservers'],
|
|
74
|
+
'name': value['name'],
|
|
75
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
76
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
77
|
+
'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value['hijacker']),
|
|
78
|
+
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
74
79
|
};
|
|
75
80
|
}
|
|
76
81
|
exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON = IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON;
|
|
@@ -36,14 +36,19 @@ exports.IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = {
|
|
|
36
36
|
* Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
|
|
37
37
|
*/
|
|
38
38
|
function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
if (!('id' in value))
|
|
40
|
+
return false;
|
|
41
|
+
if (!('status' in value))
|
|
42
|
+
return false;
|
|
43
|
+
if (!('lastOffer' in value))
|
|
44
|
+
return false;
|
|
45
|
+
if (!('lastOfferBy' in value))
|
|
46
|
+
return false;
|
|
47
|
+
if (!('domain' in value))
|
|
48
|
+
return false;
|
|
49
|
+
if (!('createdAt' in value))
|
|
50
|
+
return false;
|
|
51
|
+
return true;
|
|
47
52
|
}
|
|
48
53
|
exports.instanceOfIntersectionLeadDtoWithLeadDetailsDto = instanceOfIntersectionLeadDtoWithLeadDetailsDto;
|
|
49
54
|
function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json) {
|
|
@@ -51,7 +56,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json) {
|
|
|
51
56
|
}
|
|
52
57
|
exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSON = IntersectionLeadDtoWithLeadDetailsDtoFromJSON;
|
|
53
58
|
function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
-
if (
|
|
59
|
+
if (json == null) {
|
|
55
60
|
return json;
|
|
56
61
|
}
|
|
57
62
|
return {
|
|
@@ -65,19 +70,16 @@ function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, ignoreDiscrimi
|
|
|
65
70
|
}
|
|
66
71
|
exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped;
|
|
67
72
|
function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value) {
|
|
68
|
-
if (value
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
if (value === null) {
|
|
72
|
-
return null;
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
73
75
|
}
|
|
74
76
|
return {
|
|
75
|
-
'id': value
|
|
76
|
-
'status': value
|
|
77
|
-
'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON)(value
|
|
78
|
-
'lastOfferBy': value
|
|
79
|
-
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value
|
|
80
|
-
'createdAt': (value
|
|
77
|
+
'id': value['id'],
|
|
78
|
+
'status': value['status'],
|
|
79
|
+
'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON)(value['lastOffer']),
|
|
80
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
81
|
+
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value['domain']),
|
|
82
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
81
83
|
};
|
|
82
84
|
}
|
|
83
85
|
exports.IntersectionLeadDtoWithLeadDetailsDtoToJSON = IntersectionLeadDtoWithLeadDetailsDtoToJSON;
|
|
@@ -51,20 +51,31 @@ exports.IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = {
|
|
|
51
51
|
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDto interface.
|
|
52
52
|
*/
|
|
53
53
|
function instanceOfIntersectionLeadDtoWithListFieldsDto(value) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
54
|
+
if (!('id' in value))
|
|
55
|
+
return false;
|
|
56
|
+
if (!('status' in value))
|
|
57
|
+
return false;
|
|
58
|
+
if (!('lastOffer' in value))
|
|
59
|
+
return false;
|
|
60
|
+
if (!('lastOfferBy' in value))
|
|
61
|
+
return false;
|
|
62
|
+
if (!('lastMessageFrom' in value))
|
|
63
|
+
return false;
|
|
64
|
+
if (!('lastMessageType' in value))
|
|
65
|
+
return false;
|
|
66
|
+
if (!('lastMessageData' in value))
|
|
67
|
+
return false;
|
|
68
|
+
if (!('createdAt' in value))
|
|
69
|
+
return false;
|
|
70
|
+
if (!('domainName' in value))
|
|
71
|
+
return false;
|
|
72
|
+
if (!('buyerInitials' in value))
|
|
73
|
+
return false;
|
|
74
|
+
if (!('lastMessageMessage' in value))
|
|
75
|
+
return false;
|
|
76
|
+
if (!('lastMessageDate' in value))
|
|
77
|
+
return false;
|
|
78
|
+
return true;
|
|
68
79
|
}
|
|
69
80
|
exports.instanceOfIntersectionLeadDtoWithListFieldsDto = instanceOfIntersectionLeadDtoWithListFieldsDto;
|
|
70
81
|
function IntersectionLeadDtoWithListFieldsDtoFromJSON(json) {
|
|
@@ -72,7 +83,7 @@ function IntersectionLeadDtoWithListFieldsDtoFromJSON(json) {
|
|
|
72
83
|
}
|
|
73
84
|
exports.IntersectionLeadDtoWithListFieldsDtoFromJSON = IntersectionLeadDtoWithListFieldsDtoFromJSON;
|
|
74
85
|
function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
75
|
-
if (
|
|
86
|
+
if (json == null) {
|
|
76
87
|
return json;
|
|
77
88
|
}
|
|
78
89
|
return {
|
|
@@ -92,25 +103,22 @@ function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json, ignoreDiscrimin
|
|
|
92
103
|
}
|
|
93
104
|
exports.IntersectionLeadDtoWithListFieldsDtoFromJSONTyped = IntersectionLeadDtoWithListFieldsDtoFromJSONTyped;
|
|
94
105
|
function IntersectionLeadDtoWithListFieldsDtoToJSON(value) {
|
|
95
|
-
if (value
|
|
96
|
-
return
|
|
97
|
-
}
|
|
98
|
-
if (value === null) {
|
|
99
|
-
return null;
|
|
106
|
+
if (value == null) {
|
|
107
|
+
return value;
|
|
100
108
|
}
|
|
101
109
|
return {
|
|
102
|
-
'id': value
|
|
103
|
-
'status': value
|
|
104
|
-
'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON)(value
|
|
105
|
-
'lastOfferBy': value
|
|
106
|
-
'lastMessageFrom': value
|
|
107
|
-
'lastMessageType': value
|
|
108
|
-
'lastMessageData': (0, IntersectionLeadDtoWithListFieldsDtoLastMessageData_1.IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON)(value
|
|
109
|
-
'createdAt': (value
|
|
110
|
-
'domainName': value
|
|
111
|
-
'buyerInitials': value
|
|
112
|
-
'lastMessageMessage': value
|
|
113
|
-
'lastMessageDate': (value
|
|
110
|
+
'id': value['id'],
|
|
111
|
+
'status': value['status'],
|
|
112
|
+
'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON)(value['lastOffer']),
|
|
113
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
114
|
+
'lastMessageFrom': value['lastMessageFrom'],
|
|
115
|
+
'lastMessageType': value['lastMessageType'],
|
|
116
|
+
'lastMessageData': (0, IntersectionLeadDtoWithListFieldsDtoLastMessageData_1.IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON)(value['lastMessageData']),
|
|
117
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
118
|
+
'domainName': value['domainName'],
|
|
119
|
+
'buyerInitials': value['buyerInitials'],
|
|
120
|
+
'lastMessageMessage': value['lastMessageMessage'],
|
|
121
|
+
'lastMessageDate': ((value['lastMessageDate']).toISOString()),
|
|
114
122
|
};
|
|
115
123
|
}
|
|
116
124
|
exports.IntersectionLeadDtoWithListFieldsDtoToJSON = IntersectionLeadDtoWithListFieldsDtoToJSON;
|
|
@@ -19,9 +19,9 @@ var MoneyDto_1 = require("./MoneyDto");
|
|
|
19
19
|
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastMessageData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('price' in value))
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData = instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData;
|
|
27
27
|
function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON = IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON;
|
|
31
31
|
function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped(json,
|
|
|
38
38
|
}
|
|
39
39
|
exports.IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped = IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped;
|
|
40
40
|
function IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
46
43
|
}
|
|
47
44
|
return {
|
|
48
|
-
'price': (0, MoneyDto_1.MoneyDtoToJSON)(value
|
|
45
|
+
'price': (0, MoneyDto_1.MoneyDtoToJSON)(value['price']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON = IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON;
|
|
@@ -18,10 +18,11 @@ exports.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON = exports.Intersecti
|
|
|
18
18
|
* Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastOffer interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfIntersectionLeadDtoWithListFieldsDtoLastOffer(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
if (!('amount' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('currencyCode' in value))
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
25
26
|
}
|
|
26
27
|
exports.instanceOfIntersectionLeadDtoWithListFieldsDtoLastOffer = instanceOfIntersectionLeadDtoWithListFieldsDtoLastOffer;
|
|
27
28
|
function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json) {
|
|
@@ -29,7 +30,7 @@ function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json) {
|
|
|
29
30
|
}
|
|
30
31
|
exports.IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON = IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON;
|
|
31
32
|
function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
33
|
+
if (json == null) {
|
|
33
34
|
return json;
|
|
34
35
|
}
|
|
35
36
|
return {
|
|
@@ -39,15 +40,12 @@ function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped(json, ignore
|
|
|
39
40
|
}
|
|
40
41
|
exports.IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped = IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped;
|
|
41
42
|
function IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value) {
|
|
42
|
-
if (value
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
49
|
-
'amount': value
|
|
50
|
-
'currencyCode': value
|
|
47
|
+
'amount': value['amount'],
|
|
48
|
+
'currencyCode': value['currencyCode'],
|
|
51
49
|
};
|
|
52
50
|
}
|
|
53
51
|
exports.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON = IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON;
|
|
@@ -19,9 +19,9 @@ var MoneyDto_1 = require("./MoneyDto");
|
|
|
19
19
|
* Check if a given object implements the LeadMessageData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfLeadMessageData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('price' in value))
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfLeadMessageData = instanceOfLeadMessageData;
|
|
27
27
|
function LeadMessageDataFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function LeadMessageDataFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.LeadMessageDataFromJSON = LeadMessageDataFromJSON;
|
|
31
31
|
function LeadMessageDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function LeadMessageDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.LeadMessageDataFromJSONTyped = LeadMessageDataFromJSONTyped;
|
|
40
40
|
function LeadMessageDataToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
46
43
|
}
|
|
47
44
|
return {
|
|
48
|
-
'price': (0, MoneyDto_1.MoneyDtoToJSON)(value
|
|
45
|
+
'price': (0, MoneyDto_1.MoneyDtoToJSON)(value['price']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.LeadMessageDataToJSON = LeadMessageDataToJSON;
|
|
@@ -34,15 +34,21 @@ exports.LeadMessageDtoOriginEnum = {
|
|
|
34
34
|
* Check if a given object implements the LeadMessageDto interface.
|
|
35
35
|
*/
|
|
36
36
|
function instanceOfLeadMessageDto(value) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
if (!('id' in value))
|
|
38
|
+
return false;
|
|
39
|
+
if (!('type' in value))
|
|
40
|
+
return false;
|
|
41
|
+
if (!('origin' in value))
|
|
42
|
+
return false;
|
|
43
|
+
if (!('data' in value))
|
|
44
|
+
return false;
|
|
45
|
+
if (!('createdAt' in value))
|
|
46
|
+
return false;
|
|
47
|
+
if (!('initials' in value))
|
|
48
|
+
return false;
|
|
49
|
+
if (!('message' in value))
|
|
50
|
+
return false;
|
|
51
|
+
return true;
|
|
46
52
|
}
|
|
47
53
|
exports.instanceOfLeadMessageDto = instanceOfLeadMessageDto;
|
|
48
54
|
function LeadMessageDtoFromJSON(json) {
|
|
@@ -50,7 +56,7 @@ function LeadMessageDtoFromJSON(json) {
|
|
|
50
56
|
}
|
|
51
57
|
exports.LeadMessageDtoFromJSON = LeadMessageDtoFromJSON;
|
|
52
58
|
function LeadMessageDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
-
if (
|
|
59
|
+
if (json == null) {
|
|
54
60
|
return json;
|
|
55
61
|
}
|
|
56
62
|
return {
|
|
@@ -65,20 +71,17 @@ function LeadMessageDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
71
|
}
|
|
66
72
|
exports.LeadMessageDtoFromJSONTyped = LeadMessageDtoFromJSONTyped;
|
|
67
73
|
function LeadMessageDtoToJSON(value) {
|
|
68
|
-
if (value
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
if (value === null) {
|
|
72
|
-
return null;
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
73
76
|
}
|
|
74
77
|
return {
|
|
75
|
-
'id': value
|
|
76
|
-
'type': value
|
|
77
|
-
'origin': value
|
|
78
|
-
'data': (0, LeadMessageDtoData_1.LeadMessageDtoDataToJSON)(value
|
|
79
|
-
'createdAt': (value
|
|
80
|
-
'initials': value
|
|
81
|
-
'message': value
|
|
78
|
+
'id': value['id'],
|
|
79
|
+
'type': value['type'],
|
|
80
|
+
'origin': value['origin'],
|
|
81
|
+
'data': (0, LeadMessageDtoData_1.LeadMessageDtoDataToJSON)(value['data']),
|
|
82
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
83
|
+
'initials': value['initials'],
|
|
84
|
+
'message': value['message'],
|
|
82
85
|
};
|
|
83
86
|
}
|
|
84
87
|
exports.LeadMessageDtoToJSON = LeadMessageDtoToJSON;
|
|
@@ -19,9 +19,9 @@ var MoneyDto_1 = require("./MoneyDto");
|
|
|
19
19
|
* Check if a given object implements the LeadMessageDtoData interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfLeadMessageDtoData(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('price' in value))
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfLeadMessageDtoData = instanceOfLeadMessageDtoData;
|
|
27
27
|
function LeadMessageDtoDataFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function LeadMessageDtoDataFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.LeadMessageDtoDataFromJSON = LeadMessageDtoDataFromJSON;
|
|
31
31
|
function LeadMessageDtoDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function LeadMessageDtoDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.LeadMessageDtoDataFromJSONTyped = LeadMessageDtoDataFromJSONTyped;
|
|
40
40
|
function LeadMessageDtoDataToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
46
43
|
}
|
|
47
44
|
return {
|
|
48
|
-
'price': (0, MoneyDto_1.MoneyDtoToJSON)(value
|
|
45
|
+
'price': (0, MoneyDto_1.MoneyDtoToJSON)(value['price']),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.LeadMessageDtoDataToJSON = LeadMessageDtoDataToJSON;
|
|
@@ -21,11 +21,13 @@ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
|
21
21
|
* Check if a given object implements the List200Response interface.
|
|
22
22
|
*/
|
|
23
23
|
function instanceOfList200Response(value) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
if (!('data' in value))
|
|
25
|
+
return false;
|
|
26
|
+
if (!('meta' in value))
|
|
27
|
+
return false;
|
|
28
|
+
if (!('links' in value))
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
29
31
|
}
|
|
30
32
|
exports.instanceOfList200Response = instanceOfList200Response;
|
|
31
33
|
function List200ResponseFromJSON(json) {
|
|
@@ -33,7 +35,7 @@ function List200ResponseFromJSON(json) {
|
|
|
33
35
|
}
|
|
34
36
|
exports.List200ResponseFromJSON = List200ResponseFromJSON;
|
|
35
37
|
function List200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (
|
|
38
|
+
if (json == null) {
|
|
37
39
|
return json;
|
|
38
40
|
}
|
|
39
41
|
return {
|
|
@@ -44,16 +46,13 @@ function List200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
46
|
}
|
|
45
47
|
exports.List200ResponseFromJSONTyped = List200ResponseFromJSONTyped;
|
|
46
48
|
function List200ResponseToJSON(value) {
|
|
47
|
-
if (value
|
|
48
|
-
return
|
|
49
|
-
}
|
|
50
|
-
if (value === null) {
|
|
51
|
-
return null;
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
52
51
|
}
|
|
53
52
|
return {
|
|
54
|
-
'data': (value
|
|
55
|
-
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value
|
|
56
|
-
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value
|
|
53
|
+
'data': (value['data'].map(DomainDto_1.DomainDtoToJSON)),
|
|
54
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
55
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
57
56
|
};
|
|
58
57
|
}
|
|
59
58
|
exports.List200ResponseToJSON = List200ResponseToJSON;
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.List400ResponseToJSON = exports.List400ResponseFromJSONTyped = exports.List400ResponseFromJSON = exports.instanceOfList400Response = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the List400Response interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfList400Response(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
if (!('statusCode' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('message' in value))
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
26
|
}
|
|
27
27
|
exports.instanceOfList400Response = instanceOfList400Response;
|
|
28
28
|
function List400ResponseFromJSON(json) {
|
|
@@ -30,27 +30,24 @@ function List400ResponseFromJSON(json) {
|
|
|
30
30
|
}
|
|
31
31
|
exports.List400ResponseFromJSON = List400ResponseFromJSON;
|
|
32
32
|
function List400ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (
|
|
33
|
+
if (json == null) {
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'statusCode': json['statusCode'],
|
|
38
38
|
'message': json['message'],
|
|
39
|
-
'error':
|
|
39
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
exports.List400ResponseFromJSONTyped = List400ResponseFromJSONTyped;
|
|
43
43
|
function List400ResponseToJSON(value) {
|
|
44
|
-
if (value
|
|
45
|
-
return
|
|
46
|
-
}
|
|
47
|
-
if (value === null) {
|
|
48
|
-
return null;
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
49
46
|
}
|
|
50
47
|
return {
|
|
51
|
-
'statusCode': value
|
|
52
|
-
'message': value
|
|
53
|
-
'error': value
|
|
48
|
+
'statusCode': value['statusCode'],
|
|
49
|
+
'message': value['message'],
|
|
50
|
+
'error': value['error'],
|
|
54
51
|
};
|
|
55
52
|
}
|
|
56
53
|
exports.List400ResponseToJSON = List400ResponseToJSON;
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.List401ResponseToJSON = exports.List401ResponseFromJSONTyped = exports.List401ResponseFromJSON = exports.instanceOfList401Response = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the List401Response interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfList401Response(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
if (!('statusCode' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('message' in value))
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
26
|
}
|
|
27
27
|
exports.instanceOfList401Response = instanceOfList401Response;
|
|
28
28
|
function List401ResponseFromJSON(json) {
|
|
@@ -30,27 +30,24 @@ function List401ResponseFromJSON(json) {
|
|
|
30
30
|
}
|
|
31
31
|
exports.List401ResponseFromJSON = List401ResponseFromJSON;
|
|
32
32
|
function List401ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (
|
|
33
|
+
if (json == null) {
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'statusCode': json['statusCode'],
|
|
38
38
|
'message': json['message'],
|
|
39
|
-
'error':
|
|
39
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
exports.List401ResponseFromJSONTyped = List401ResponseFromJSONTyped;
|
|
43
43
|
function List401ResponseToJSON(value) {
|
|
44
|
-
if (value
|
|
45
|
-
return
|
|
46
|
-
}
|
|
47
|
-
if (value === null) {
|
|
48
|
-
return null;
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
49
46
|
}
|
|
50
47
|
return {
|
|
51
|
-
'statusCode': value
|
|
52
|
-
'message': value
|
|
53
|
-
'error': value
|
|
48
|
+
'statusCode': value['statusCode'],
|
|
49
|
+
'message': value['message'],
|
|
50
|
+
'error': value['error'],
|
|
54
51
|
};
|
|
55
52
|
}
|
|
56
53
|
exports.List401ResponseToJSON = List401ResponseToJSON;
|