@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
|
@@ -18,10 +18,11 @@ exports.AccountDtoToJSON = exports.AccountDtoFromJSONTyped = exports.AccountDtoF
|
|
|
18
18
|
* Check if a given object implements the AccountDto interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfAccountDto(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
if (!('id' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('identifier' in value))
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
25
26
|
}
|
|
26
27
|
exports.instanceOfAccountDto = instanceOfAccountDto;
|
|
27
28
|
function AccountDtoFromJSON(json) {
|
|
@@ -29,7 +30,7 @@ function AccountDtoFromJSON(json) {
|
|
|
29
30
|
}
|
|
30
31
|
exports.AccountDtoFromJSON = AccountDtoFromJSON;
|
|
31
32
|
function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
33
|
+
if (json == null) {
|
|
33
34
|
return json;
|
|
34
35
|
}
|
|
35
36
|
return {
|
|
@@ -39,15 +40,12 @@ function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
}
|
|
40
41
|
exports.AccountDtoFromJSONTyped = AccountDtoFromJSONTyped;
|
|
41
42
|
function AccountDtoToJSON(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
|
-
'id': value
|
|
50
|
-
'identifier': value
|
|
47
|
+
'id': value['id'],
|
|
48
|
+
'identifier': value['identifier'],
|
|
51
49
|
};
|
|
52
50
|
}
|
|
53
51
|
exports.AccountDtoToJSON = AccountDtoToJSON;
|
|
@@ -18,12 +18,15 @@ exports.AccountFinancialInputToJSON = exports.AccountFinancialInputFromJSONTyped
|
|
|
18
18
|
* Check if a given object implements the AccountFinancialInput interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfAccountFinancialInput(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
if (!('companyName' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('companyVatNumber' in value))
|
|
24
|
+
return false;
|
|
25
|
+
if (!('companyRegistrationNumber' in value))
|
|
26
|
+
return false;
|
|
27
|
+
if (!('company' in value))
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
27
30
|
}
|
|
28
31
|
exports.instanceOfAccountFinancialInput = instanceOfAccountFinancialInput;
|
|
29
32
|
function AccountFinancialInputFromJSON(json) {
|
|
@@ -31,7 +34,7 @@ function AccountFinancialInputFromJSON(json) {
|
|
|
31
34
|
}
|
|
32
35
|
exports.AccountFinancialInputFromJSON = AccountFinancialInputFromJSON;
|
|
33
36
|
function AccountFinancialInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (
|
|
37
|
+
if (json == null) {
|
|
35
38
|
return json;
|
|
36
39
|
}
|
|
37
40
|
return {
|
|
@@ -43,17 +46,14 @@ function AccountFinancialInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
46
|
}
|
|
44
47
|
exports.AccountFinancialInputFromJSONTyped = AccountFinancialInputFromJSONTyped;
|
|
45
48
|
function AccountFinancialInputToJSON(value) {
|
|
46
|
-
if (value
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
if (value === null) {
|
|
50
|
-
return null;
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
'companyName': value
|
|
54
|
-
'companyVatNumber': value
|
|
55
|
-
'companyRegistrationNumber': value
|
|
56
|
-
'company': value
|
|
53
|
+
'companyName': value['companyName'],
|
|
54
|
+
'companyVatNumber': value['companyVatNumber'],
|
|
55
|
+
'companyRegistrationNumber': value['companyRegistrationNumber'],
|
|
56
|
+
'company': value['company'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
exports.AccountFinancialInputToJSON = AccountFinancialInputToJSON;
|
|
@@ -14,14 +14,12 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AccountSettingsInputToJSON = exports.AccountSettingsInputFromJSONTyped = exports.AccountSettingsInputFromJSON = exports.instanceOfAccountSettingsInput = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
var MoneyInput_1 = require("./MoneyInput");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the AccountSettingsInput interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfAccountSettingsInput(value) {
|
|
23
|
-
|
|
24
|
-
return isInstance;
|
|
22
|
+
return true;
|
|
25
23
|
}
|
|
26
24
|
exports.instanceOfAccountSettingsInput = instanceOfAccountSettingsInput;
|
|
27
25
|
function AccountSettingsInputFromJSON(json) {
|
|
@@ -29,23 +27,20 @@ function AccountSettingsInputFromJSON(json) {
|
|
|
29
27
|
}
|
|
30
28
|
exports.AccountSettingsInputFromJSON = AccountSettingsInputFromJSON;
|
|
31
29
|
function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
30
|
+
if (json == null) {
|
|
33
31
|
return json;
|
|
34
32
|
}
|
|
35
33
|
return {
|
|
36
|
-
'defaultStartingOffer':
|
|
34
|
+
'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['defaultStartingOffer']),
|
|
37
35
|
};
|
|
38
36
|
}
|
|
39
37
|
exports.AccountSettingsInputFromJSONTyped = AccountSettingsInputFromJSONTyped;
|
|
40
38
|
function AccountSettingsInputToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
46
41
|
}
|
|
47
42
|
return {
|
|
48
|
-
'defaultStartingOffer': (0, MoneyInput_1.MoneyInputToJSON)(value
|
|
43
|
+
'defaultStartingOffer': (0, MoneyInput_1.MoneyInputToJSON)(value['defaultStartingOffer']),
|
|
49
44
|
};
|
|
50
45
|
}
|
|
51
46
|
exports.AccountSettingsInputToJSON = AccountSettingsInputToJSON;
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.BatchUpdate404ResponseToJSON = exports.BatchUpdate404ResponseFromJSONTyped = exports.BatchUpdate404ResponseFromJSON = exports.instanceOfBatchUpdate404Response = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the BatchUpdate404Response interface.
|
|
20
19
|
*/
|
|
21
20
|
function instanceOfBatchUpdate404Response(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.instanceOfBatchUpdate404Response = instanceOfBatchUpdate404Response;
|
|
28
28
|
function BatchUpdate404ResponseFromJSON(json) {
|
|
@@ -30,27 +30,24 @@ function BatchUpdate404ResponseFromJSON(json) {
|
|
|
30
30
|
}
|
|
31
31
|
exports.BatchUpdate404ResponseFromJSON = BatchUpdate404ResponseFromJSON;
|
|
32
32
|
function BatchUpdate404ResponseFromJSONTyped(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.BatchUpdate404ResponseFromJSONTyped = BatchUpdate404ResponseFromJSONTyped;
|
|
43
43
|
function BatchUpdate404ResponseToJSON(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.BatchUpdate404ResponseToJSON = BatchUpdate404ResponseToJSON;
|
|
@@ -19,10 +19,11 @@ var UpdateDomainInput_1 = require("./UpdateDomainInput");
|
|
|
19
19
|
* Check if a given object implements the BatchUpdateDomainsInput interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfBatchUpdateDomainsInput(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
if (!('domainIds' in value))
|
|
23
|
+
return false;
|
|
24
|
+
if (!('update' in value))
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
26
27
|
}
|
|
27
28
|
exports.instanceOfBatchUpdateDomainsInput = instanceOfBatchUpdateDomainsInput;
|
|
28
29
|
function BatchUpdateDomainsInputFromJSON(json) {
|
|
@@ -30,7 +31,7 @@ function BatchUpdateDomainsInputFromJSON(json) {
|
|
|
30
31
|
}
|
|
31
32
|
exports.BatchUpdateDomainsInputFromJSON = BatchUpdateDomainsInputFromJSON;
|
|
32
33
|
function BatchUpdateDomainsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (
|
|
34
|
+
if (json == null) {
|
|
34
35
|
return json;
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
@@ -40,15 +41,12 @@ function BatchUpdateDomainsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
}
|
|
41
42
|
exports.BatchUpdateDomainsInputFromJSONTyped = BatchUpdateDomainsInputFromJSONTyped;
|
|
42
43
|
function BatchUpdateDomainsInputToJSON(value) {
|
|
43
|
-
if (value
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
if (value === null) {
|
|
47
|
-
return null;
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
48
46
|
}
|
|
49
47
|
return {
|
|
50
|
-
'domainIds': value
|
|
51
|
-
'update': (0, UpdateDomainInput_1.UpdateDomainInputToJSON)(value
|
|
48
|
+
'domainIds': value['domainIds'],
|
|
49
|
+
'update': (0, UpdateDomainInput_1.UpdateDomainInputToJSON)(value['update']),
|
|
52
50
|
};
|
|
53
51
|
}
|
|
54
52
|
exports.BatchUpdateDomainsInputToJSON = BatchUpdateDomainsInputToJSON;
|
|
@@ -18,14 +18,19 @@ exports.CreateLeadInputToJSON = exports.CreateLeadInputFromJSONTyped = exports.C
|
|
|
18
18
|
* Check if a given object implements the CreateLeadInput interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfCreateLeadInput(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
if (!('domainId' in value))
|
|
22
|
+
return false;
|
|
23
|
+
if (!('firstname' in value))
|
|
24
|
+
return false;
|
|
25
|
+
if (!('lastname' in value))
|
|
26
|
+
return false;
|
|
27
|
+
if (!('email' in value))
|
|
28
|
+
return false;
|
|
29
|
+
if (!('phone' in value))
|
|
30
|
+
return false;
|
|
31
|
+
if (!('companyName' in value))
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
29
34
|
}
|
|
30
35
|
exports.instanceOfCreateLeadInput = instanceOfCreateLeadInput;
|
|
31
36
|
function CreateLeadInputFromJSON(json) {
|
|
@@ -33,7 +38,7 @@ function CreateLeadInputFromJSON(json) {
|
|
|
33
38
|
}
|
|
34
39
|
exports.CreateLeadInputFromJSON = CreateLeadInputFromJSON;
|
|
35
40
|
function CreateLeadInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (
|
|
41
|
+
if (json == null) {
|
|
37
42
|
return json;
|
|
38
43
|
}
|
|
39
44
|
return {
|
|
@@ -47,19 +52,16 @@ function CreateLeadInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
52
|
}
|
|
48
53
|
exports.CreateLeadInputFromJSONTyped = CreateLeadInputFromJSONTyped;
|
|
49
54
|
function CreateLeadInputToJSON(value) {
|
|
50
|
-
if (value
|
|
51
|
-
return
|
|
52
|
-
}
|
|
53
|
-
if (value === null) {
|
|
54
|
-
return null;
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
55
57
|
}
|
|
56
58
|
return {
|
|
57
|
-
'domainId': value
|
|
58
|
-
'firstname': value
|
|
59
|
-
'lastname': value
|
|
60
|
-
'email': value
|
|
61
|
-
'phone': value
|
|
62
|
-
'companyName': value
|
|
59
|
+
'domainId': value['domainId'],
|
|
60
|
+
'firstname': value['firstname'],
|
|
61
|
+
'lastname': value['lastname'],
|
|
62
|
+
'email': value['email'],
|
|
63
|
+
'phone': value['phone'],
|
|
64
|
+
'companyName': value['companyName'],
|
|
63
65
|
};
|
|
64
66
|
}
|
|
65
67
|
exports.CreateLeadInputToJSON = CreateLeadInputToJSON;
|
|
@@ -18,9 +18,9 @@ exports.CreateLeadMessageInputToJSON = exports.CreateLeadMessageInputFromJSONTyp
|
|
|
18
18
|
* Check if a given object implements the CreateLeadMessageInput interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfCreateLeadMessageInput(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return
|
|
21
|
+
if (!('message' in value))
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
24
|
}
|
|
25
25
|
exports.instanceOfCreateLeadMessageInput = instanceOfCreateLeadMessageInput;
|
|
26
26
|
function CreateLeadMessageInputFromJSON(json) {
|
|
@@ -28,7 +28,7 @@ function CreateLeadMessageInputFromJSON(json) {
|
|
|
28
28
|
}
|
|
29
29
|
exports.CreateLeadMessageInputFromJSON = CreateLeadMessageInputFromJSON;
|
|
30
30
|
function CreateLeadMessageInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
31
|
+
if (json == null) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
@@ -37,14 +37,11 @@ function CreateLeadMessageInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
}
|
|
38
38
|
exports.CreateLeadMessageInputFromJSONTyped = CreateLeadMessageInputFromJSONTyped;
|
|
39
39
|
function CreateLeadMessageInputToJSON(value) {
|
|
40
|
-
if (value
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
if (value === null) {
|
|
44
|
-
return null;
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
45
42
|
}
|
|
46
43
|
return {
|
|
47
|
-
'message': value
|
|
44
|
+
'message': value['message'],
|
|
48
45
|
};
|
|
49
46
|
}
|
|
50
47
|
exports.CreateLeadMessageInputToJSON = CreateLeadMessageInputToJSON;
|
|
@@ -18,9 +18,9 @@ exports.DeleteDomainsInputToJSON = exports.DeleteDomainsInputFromJSONTyped = exp
|
|
|
18
18
|
* Check if a given object implements the DeleteDomainsInput interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfDeleteDomainsInput(value) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return
|
|
21
|
+
if (!('domainIds' in value))
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
24
|
}
|
|
25
25
|
exports.instanceOfDeleteDomainsInput = instanceOfDeleteDomainsInput;
|
|
26
26
|
function DeleteDomainsInputFromJSON(json) {
|
|
@@ -28,7 +28,7 @@ function DeleteDomainsInputFromJSON(json) {
|
|
|
28
28
|
}
|
|
29
29
|
exports.DeleteDomainsInputFromJSON = DeleteDomainsInputFromJSON;
|
|
30
30
|
function DeleteDomainsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (
|
|
31
|
+
if (json == null) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
@@ -37,14 +37,11 @@ function DeleteDomainsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
}
|
|
38
38
|
exports.DeleteDomainsInputFromJSONTyped = DeleteDomainsInputFromJSONTyped;
|
|
39
39
|
function DeleteDomainsInputToJSON(value) {
|
|
40
|
-
if (value
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
if (value === null) {
|
|
44
|
-
return null;
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
45
42
|
}
|
|
46
43
|
return {
|
|
47
|
-
'domainIds': value
|
|
44
|
+
'domainIds': value['domainIds'],
|
|
48
45
|
};
|
|
49
46
|
}
|
|
50
47
|
exports.DeleteDomainsInputToJSON = DeleteDomainsInputToJSON;
|
package/dist/models/DomainDto.js
CHANGED
|
@@ -19,15 +19,21 @@ var MoneyDto_1 = require("./MoneyDto");
|
|
|
19
19
|
* Check if a given object implements the DomainDto interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfDomainDto(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
if (!('id' in value))
|
|
23
|
+
return false;
|
|
24
|
+
if (!('tld' in value))
|
|
25
|
+
return false;
|
|
26
|
+
if (!('verified' in value))
|
|
27
|
+
return false;
|
|
28
|
+
if (!('nameservers' in value))
|
|
29
|
+
return false;
|
|
30
|
+
if (!('name' in value))
|
|
31
|
+
return false;
|
|
32
|
+
if (!('buyNow' in value))
|
|
33
|
+
return false;
|
|
34
|
+
if (!('minOffer' in value))
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
31
37
|
}
|
|
32
38
|
exports.instanceOfDomainDto = instanceOfDomainDto;
|
|
33
39
|
function DomainDtoFromJSON(json) {
|
|
@@ -35,7 +41,7 @@ function DomainDtoFromJSON(json) {
|
|
|
35
41
|
}
|
|
36
42
|
exports.DomainDtoFromJSON = DomainDtoFromJSON;
|
|
37
43
|
function DomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
-
if (
|
|
44
|
+
if (json == null) {
|
|
39
45
|
return json;
|
|
40
46
|
}
|
|
41
47
|
return {
|
|
@@ -50,20 +56,17 @@ function DomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
56
|
}
|
|
51
57
|
exports.DomainDtoFromJSONTyped = DomainDtoFromJSONTyped;
|
|
52
58
|
function DomainDtoToJSON(value) {
|
|
53
|
-
if (value
|
|
54
|
-
return
|
|
55
|
-
}
|
|
56
|
-
if (value === null) {
|
|
57
|
-
return null;
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
58
61
|
}
|
|
59
62
|
return {
|
|
60
|
-
'id': value
|
|
61
|
-
'tld': value
|
|
62
|
-
'verified': value
|
|
63
|
-
'nameservers': value
|
|
64
|
-
'name': value
|
|
65
|
-
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value
|
|
66
|
-
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
'tld': value['tld'],
|
|
65
|
+
'verified': value['verified'],
|
|
66
|
+
'nameservers': value['nameservers'],
|
|
67
|
+
'name': value['name'],
|
|
68
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
69
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
67
70
|
};
|
|
68
71
|
}
|
|
69
72
|
exports.DomainDtoToJSON = DomainDtoToJSON;
|
|
@@ -21,13 +21,17 @@ var WithSettingsInner_1 = require("./WithSettingsInner");
|
|
|
21
21
|
* Check if a given object implements the IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto interface.
|
|
22
22
|
*/
|
|
23
23
|
function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto(value) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
if (!('id' in value))
|
|
25
|
+
return false;
|
|
26
|
+
if (!('identifier' in value))
|
|
27
|
+
return false;
|
|
28
|
+
if (!('financial' in value))
|
|
29
|
+
return false;
|
|
30
|
+
if (!('settings' in value))
|
|
31
|
+
return false;
|
|
32
|
+
if (!('addresses' in value))
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
31
35
|
}
|
|
32
36
|
exports.instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto = instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
|
|
33
37
|
function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(json) {
|
|
@@ -35,7 +39,7 @@ function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFrom
|
|
|
35
39
|
}
|
|
36
40
|
exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON;
|
|
37
41
|
function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
-
if (
|
|
42
|
+
if (json == null) {
|
|
39
43
|
return json;
|
|
40
44
|
}
|
|
41
45
|
return {
|
|
@@ -48,18 +52,15 @@ function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFrom
|
|
|
48
52
|
}
|
|
49
53
|
exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped;
|
|
50
54
|
function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON(value) {
|
|
51
|
-
if (value
|
|
52
|
-
return
|
|
53
|
-
}
|
|
54
|
-
if (value === null) {
|
|
55
|
-
return null;
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
56
57
|
}
|
|
57
58
|
return {
|
|
58
|
-
'id': value
|
|
59
|
-
'identifier': value
|
|
60
|
-
'financial': (0, WithFinancialDtoInner_1.WithFinancialDtoInnerToJSON)(value
|
|
61
|
-
'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value
|
|
62
|
-
'addresses': (value
|
|
59
|
+
'id': value['id'],
|
|
60
|
+
'identifier': value['identifier'],
|
|
61
|
+
'financial': (0, WithFinancialDtoInner_1.WithFinancialDtoInnerToJSON)(value['financial']),
|
|
62
|
+
'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value['settings']),
|
|
63
|
+
'addresses': (value['addresses'].map(AccountAddressDto_1.AccountAddressDtoToJSON)),
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON;
|
|
@@ -48,13 +48,13 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
48
48
|
*/
|
|
49
49
|
name: string;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* The BIN
|
|
52
52
|
* @type {MoneyDto}
|
|
53
53
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
54
54
|
*/
|
|
55
55
|
buyNow: MoneyDto;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* The minimum offer
|
|
58
58
|
* @type {MoneyDto}
|
|
59
59
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
60
60
|
*/
|
|
@@ -20,16 +20,23 @@ var MoneyDto_1 = require("./MoneyDto");
|
|
|
20
20
|
* Check if a given object implements the IntersectionDomainDtoWithAccountDto interface.
|
|
21
21
|
*/
|
|
22
22
|
function instanceOfIntersectionDomainDtoWithAccountDto(value) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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 (!('account' in value))
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
33
40
|
}
|
|
34
41
|
exports.instanceOfIntersectionDomainDtoWithAccountDto = instanceOfIntersectionDomainDtoWithAccountDto;
|
|
35
42
|
function IntersectionDomainDtoWithAccountDtoFromJSON(json) {
|
|
@@ -37,7 +44,7 @@ function IntersectionDomainDtoWithAccountDtoFromJSON(json) {
|
|
|
37
44
|
}
|
|
38
45
|
exports.IntersectionDomainDtoWithAccountDtoFromJSON = IntersectionDomainDtoWithAccountDtoFromJSON;
|
|
39
46
|
function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
-
if (
|
|
47
|
+
if (json == null) {
|
|
41
48
|
return json;
|
|
42
49
|
}
|
|
43
50
|
return {
|
|
@@ -53,21 +60,18 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
|
|
|
53
60
|
}
|
|
54
61
|
exports.IntersectionDomainDtoWithAccountDtoFromJSONTyped = IntersectionDomainDtoWithAccountDtoFromJSONTyped;
|
|
55
62
|
function IntersectionDomainDtoWithAccountDtoToJSON(value) {
|
|
56
|
-
if (value
|
|
57
|
-
return
|
|
58
|
-
}
|
|
59
|
-
if (value === null) {
|
|
60
|
-
return null;
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
61
65
|
}
|
|
62
66
|
return {
|
|
63
|
-
'id': value
|
|
64
|
-
'tld': value
|
|
65
|
-
'verified': value
|
|
66
|
-
'nameservers': value
|
|
67
|
-
'name': value
|
|
68
|
-
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value
|
|
69
|
-
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value
|
|
70
|
-
'account': (0, AccountDto_1.AccountDtoToJSON)(value
|
|
67
|
+
'id': value['id'],
|
|
68
|
+
'tld': value['tld'],
|
|
69
|
+
'verified': value['verified'],
|
|
70
|
+
'nameservers': value['nameservers'],
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
73
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
74
|
+
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
71
75
|
};
|
|
72
76
|
}
|
|
73
77
|
exports.IntersectionDomainDtoWithAccountDtoToJSON = IntersectionDomainDtoWithAccountDtoToJSON;
|
|
@@ -48,13 +48,13 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
48
48
|
*/
|
|
49
49
|
name: string;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* The BIN
|
|
52
52
|
* @type {MoneyDto}
|
|
53
53
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
54
54
|
*/
|
|
55
55
|
buyNow: MoneyDto;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* The minimum offer
|
|
58
58
|
* @type {MoneyDto}
|
|
59
59
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
60
60
|
*/
|