@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.
Files changed (154) hide show
  1. package/.openapi-generator/FILES +1 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +6 -4
  4. package/dist/apis/AccountsApi.js +18 -18
  5. package/dist/apis/AuthApi.js +3 -3
  6. package/dist/apis/DomainsApi.d.ts +1 -1
  7. package/dist/apis/DomainsApi.js +30 -30
  8. package/dist/apis/LeadsApi.js +18 -18
  9. package/dist/apis/LeadsPublicApi.js +3 -3
  10. package/dist/apis/index.d.ts +0 -1
  11. package/dist/apis/index.js +0 -1
  12. package/dist/models/AccountAddressDto.js +21 -21
  13. package/dist/models/AccountAddressInput.js +21 -21
  14. package/dist/models/AccountDto.js +10 -12
  15. package/dist/models/AccountFinancialInput.js +16 -16
  16. package/dist/models/AccountSettingsInput.js +6 -11
  17. package/dist/models/BatchUpdate404Response.js +12 -15
  18. package/dist/models/BatchUpdateDomainsInput.js +10 -12
  19. package/dist/models/CreateLeadInput.js +22 -20
  20. package/dist/models/CreateLeadMessageInput.js +7 -10
  21. package/dist/models/DeleteDomainsInput.js +7 -10
  22. package/dist/models/DomainDto.d.ts +2 -2
  23. package/dist/models/DomainDto.js +25 -22
  24. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +19 -18
  25. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +2 -2
  26. package/dist/models/IntersectionDomainDtoWithAccountDto.js +28 -24
  27. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +2 -2
  28. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +31 -26
  29. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +22 -20
  30. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +40 -32
  31. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +7 -10
  32. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +10 -12
  33. package/dist/models/LeadMessageData.js +7 -10
  34. package/dist/models/LeadMessageDto.js +25 -22
  35. package/dist/models/LeadMessageDtoData.js +7 -10
  36. package/dist/models/List200Response.js +13 -14
  37. package/dist/models/List400Response.js +12 -15
  38. package/dist/models/List401Response.js +12 -15
  39. package/dist/models/ListLeadMessagesDto.js +7 -10
  40. package/dist/models/Login401Response.js +12 -15
  41. package/dist/models/Login429Response.js +12 -15
  42. package/dist/models/LoginInput.js +10 -12
  43. package/dist/models/MoneyDto.js +10 -12
  44. package/dist/models/MoneyInput.js +10 -12
  45. package/dist/models/ObjectId.js +7 -10
  46. package/dist/models/PaginateResponse.js +13 -14
  47. package/dist/models/PaginateResponseLinks.d.ts +5 -5
  48. package/dist/models/PaginateResponseLinks.js +14 -19
  49. package/dist/models/PaginateResponseMeta.js +18 -23
  50. package/dist/models/PutLeadInput.js +7 -10
  51. package/dist/models/TokenDto.js +7 -10
  52. package/dist/models/UpdateDomainInput.d.ts +2 -2
  53. package/dist/models/UpdateDomainInput.js +8 -13
  54. package/dist/models/UpdateFinancial400Response.js +12 -15
  55. package/dist/models/UpdateSettings400Response.js +12 -15
  56. package/dist/models/UpdateSettings401Response.js +12 -15
  57. package/dist/models/UpdateSettings429Response.js +12 -15
  58. package/dist/models/WithFinancialDtoInner.js +16 -16
  59. package/dist/models/WithSettingsInner.js +7 -10
  60. package/dist/models/index.d.ts +0 -1
  61. package/dist/models/index.js +0 -1
  62. package/dist/runtime.d.ts +2 -3
  63. package/dist/runtime.js +1 -6
  64. package/package.json +1 -1
  65. package/src/apis/AccountsApi.ts +36 -18
  66. package/src/apis/AuthApi.ts +6 -3
  67. package/src/apis/DomainsApi.ts +49 -31
  68. package/src/apis/LeadsApi.ts +36 -18
  69. package/src/apis/LeadsPublicApi.ts +6 -3
  70. package/src/apis/index.ts +0 -1
  71. package/src/models/AccountAddressDto.ts +17 -22
  72. package/src/models/AccountAddressInput.ts +17 -22
  73. package/src/models/AccountDto.ts +9 -14
  74. package/src/models/AccountFinancialInput.ts +13 -18
  75. package/src/models/AccountSettingsInput.ts +7 -12
  76. package/src/models/BatchUpdate404Response.ts +11 -16
  77. package/src/models/BatchUpdateDomainsInput.ts +9 -14
  78. package/src/models/CreateLeadInput.ts +17 -22
  79. package/src/models/CreateLeadMessageInput.ts +7 -12
  80. package/src/models/DeleteDomainsInput.ts +7 -12
  81. package/src/models/DomainDto.ts +21 -26
  82. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +15 -20
  83. package/src/models/IntersectionDomainDtoWithAccountDto.ts +23 -28
  84. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +25 -30
  85. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +17 -22
  86. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +29 -34
  87. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +7 -12
  88. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +9 -14
  89. package/src/models/LeadMessageData.ts +7 -12
  90. package/src/models/LeadMessageDto.ts +19 -24
  91. package/src/models/LeadMessageDtoData.ts +7 -12
  92. package/src/models/List200Response.ts +11 -16
  93. package/src/models/List400Response.ts +11 -16
  94. package/src/models/List401Response.ts +11 -16
  95. package/src/models/ListLeadMessagesDto.ts +7 -12
  96. package/src/models/Login401Response.ts +11 -16
  97. package/src/models/Login429Response.ts +11 -16
  98. package/src/models/LoginInput.ts +9 -14
  99. package/src/models/MoneyDto.ts +9 -14
  100. package/src/models/MoneyInput.ts +9 -14
  101. package/src/models/ObjectId.ts +7 -12
  102. package/src/models/PaginateResponse.ts +11 -16
  103. package/src/models/PaginateResponseLinks.ts +20 -25
  104. package/src/models/PaginateResponseMeta.ts +19 -24
  105. package/src/models/PutLeadInput.ts +7 -12
  106. package/src/models/TokenDto.ts +7 -12
  107. package/src/models/UpdateDomainInput.ts +11 -16
  108. package/src/models/UpdateFinancial400Response.ts +11 -16
  109. package/src/models/UpdateSettings400Response.ts +11 -16
  110. package/src/models/UpdateSettings401Response.ts +11 -16
  111. package/src/models/UpdateSettings429Response.ts +11 -16
  112. package/src/models/WithFinancialDtoInner.ts +13 -18
  113. package/src/models/WithSettingsInner.ts +7 -12
  114. package/src/models/index.ts +0 -1
  115. package/src/runtime.ts +3 -8
  116. package/dist/apis/DomainsPublicApi.d.ts +0 -35
  117. package/dist/apis/DomainsPublicApi.js +0 -164
  118. package/dist/apis/TestApi.d.ts +0 -23
  119. package/dist/apis/TestApi.js +0 -116
  120. package/dist/models/CreateLeadMessageInputData.d.ts +0 -32
  121. package/dist/models/CreateLeadMessageInputData.js +0 -51
  122. package/dist/models/ImportDomainsDto.d.ts +0 -49
  123. package/dist/models/ImportDomainsDto.js +0 -59
  124. package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +0 -44
  125. package/dist/models/IntersectionAccountDtoWithAddressDto.js +0 -57
  126. package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +0 -44
  127. package/dist/models/IntersectionAccountDtoWithFinancialDto.js +0 -57
  128. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +0 -49
  129. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +0 -56
  130. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +0 -44
  131. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +0 -57
  132. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +0 -32
  133. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +0 -51
  134. package/dist/models/IntersectionLeadDto.d.ts +0 -52
  135. package/dist/models/IntersectionLeadDto.js +0 -64
  136. package/dist/models/LeadDto.d.ts +0 -74
  137. package/dist/models/LeadDto.js +0 -79
  138. package/dist/models/List429Response.d.ts +0 -43
  139. package/dist/models/List429Response.js +0 -56
  140. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +0 -43
  141. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +0 -56
  142. package/src/apis/DomainsPublicApi.ts +0 -97
  143. package/src/apis/TestApi.ts +0 -46
  144. package/src/models/CreateLeadMessageInputData.ts +0 -73
  145. package/src/models/ImportDomainsDto.ts +0 -93
  146. package/src/models/IntersectionAccountDtoWithAddressDto.ts +0 -91
  147. package/src/models/IntersectionAccountDtoWithFinancialDto.ts +0 -91
  148. package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +0 -89
  149. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +0 -91
  150. package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +0 -72
  151. package/src/models/IntersectionLeadDto.ts +0 -96
  152. package/src/models/LeadDto.ts +0 -131
  153. package/src/models/List429Response.ts +0 -83
  154. 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
- var isInstance = true;
22
- isInstance = isInstance && "id" in value;
23
- isInstance = isInstance && "identifier" in value;
24
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
43
+ if (value == null) {
44
+ return value;
47
45
  }
48
46
  return {
49
- 'id': value.id,
50
- 'identifier': value.identifier,
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
- var isInstance = true;
22
- isInstance = isInstance && "companyName" in value;
23
- isInstance = isInstance && "companyVatNumber" in value;
24
- isInstance = isInstance && "companyRegistrationNumber" in value;
25
- isInstance = isInstance && "company" in value;
26
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
47
- return undefined;
48
- }
49
- if (value === null) {
50
- return null;
49
+ if (value == null) {
50
+ return value;
51
51
  }
52
52
  return {
53
- 'companyName': value.companyName,
54
- 'companyVatNumber': value.companyVatNumber,
55
- 'companyRegistrationNumber': value.companyRegistrationNumber,
56
- 'company': value.company,
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
- var isInstance = true;
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 ((json === undefined) || (json === null)) {
30
+ if (json == null) {
33
31
  return json;
34
32
  }
35
33
  return {
36
- 'defaultStartingOffer': !(0, runtime_1.exists)(json, 'defaultStartingOffer') ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['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 === undefined) {
42
- return undefined;
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.defaultStartingOffer),
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
- var isInstance = true;
23
- isInstance = isInstance && "statusCode" in value;
24
- isInstance = isInstance && "message" in value;
25
- return isInstance;
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 ((json === undefined) || (json === null)) {
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': !(0, runtime_1.exists)(json, 'error') ? undefined : json['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 === undefined) {
45
- return undefined;
46
- }
47
- if (value === null) {
48
- return null;
44
+ if (value == null) {
45
+ return value;
49
46
  }
50
47
  return {
51
- 'statusCode': value.statusCode,
52
- 'message': value.message,
53
- 'error': value.error,
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
- var isInstance = true;
23
- isInstance = isInstance && "domainIds" in value;
24
- isInstance = isInstance && "update" in value;
25
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
44
- return undefined;
45
- }
46
- if (value === null) {
47
- return null;
44
+ if (value == null) {
45
+ return value;
48
46
  }
49
47
  return {
50
- 'domainIds': value.domainIds,
51
- 'update': (0, UpdateDomainInput_1.UpdateDomainInputToJSON)(value.update),
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
- var isInstance = true;
22
- isInstance = isInstance && "domainId" in value;
23
- isInstance = isInstance && "firstname" in value;
24
- isInstance = isInstance && "lastname" in value;
25
- isInstance = isInstance && "email" in value;
26
- isInstance = isInstance && "phone" in value;
27
- isInstance = isInstance && "companyName" in value;
28
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
51
- return undefined;
52
- }
53
- if (value === null) {
54
- return null;
55
+ if (value == null) {
56
+ return value;
55
57
  }
56
58
  return {
57
- 'domainId': value.domainId,
58
- 'firstname': value.firstname,
59
- 'lastname': value.lastname,
60
- 'email': value.email,
61
- 'phone': value.phone,
62
- 'companyName': value.companyName,
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
- var isInstance = true;
22
- isInstance = isInstance && "message" in value;
23
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
41
- return undefined;
42
- }
43
- if (value === null) {
44
- return null;
40
+ if (value == null) {
41
+ return value;
45
42
  }
46
43
  return {
47
- 'message': value.message,
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
- var isInstance = true;
22
- isInstance = isInstance && "domainIds" in value;
23
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
41
- return undefined;
42
- }
43
- if (value === null) {
44
- return null;
40
+ if (value == null) {
41
+ return value;
45
42
  }
46
43
  return {
47
- 'domainIds': value.domainIds,
44
+ 'domainIds': value['domainIds'],
48
45
  };
49
46
  }
50
47
  exports.DeleteDomainsInputToJSON = DeleteDomainsInputToJSON;
@@ -47,13 +47,13 @@ export interface DomainDto {
47
47
  */
48
48
  name: string;
49
49
  /**
50
- *
50
+ * The BIN
51
51
  * @type {MoneyDto}
52
52
  * @memberof DomainDto
53
53
  */
54
54
  buyNow: MoneyDto;
55
55
  /**
56
- *
56
+ * The minimum offer
57
57
  * @type {MoneyDto}
58
58
  * @memberof DomainDto
59
59
  */
@@ -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
- var isInstance = true;
23
- isInstance = isInstance && "id" in value;
24
- isInstance = isInstance && "tld" in value;
25
- isInstance = isInstance && "verified" in value;
26
- isInstance = isInstance && "nameservers" in value;
27
- isInstance = isInstance && "name" in value;
28
- isInstance = isInstance && "buyNow" in value;
29
- isInstance = isInstance && "minOffer" in value;
30
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
54
- return undefined;
55
- }
56
- if (value === null) {
57
- return null;
59
+ if (value == null) {
60
+ return value;
58
61
  }
59
62
  return {
60
- 'id': value.id,
61
- 'tld': value.tld,
62
- 'verified': value.verified,
63
- 'nameservers': value.nameservers,
64
- 'name': value.name,
65
- 'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value.buyNow),
66
- 'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value.minOffer),
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
- var isInstance = true;
25
- isInstance = isInstance && "id" in value;
26
- isInstance = isInstance && "identifier" in value;
27
- isInstance = isInstance && "financial" in value;
28
- isInstance = isInstance && "settings" in value;
29
- isInstance = isInstance && "addresses" in value;
30
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
52
- return undefined;
53
- }
54
- if (value === null) {
55
- return null;
55
+ if (value == null) {
56
+ return value;
56
57
  }
57
58
  return {
58
- 'id': value.id,
59
- 'identifier': value.identifier,
60
- 'financial': (0, WithFinancialDtoInner_1.WithFinancialDtoInnerToJSON)(value.financial),
61
- 'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value.settings),
62
- 'addresses': (value.addresses.map(AccountAddressDto_1.AccountAddressDtoToJSON)),
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
- var isInstance = true;
24
- isInstance = isInstance && "id" in value;
25
- isInstance = isInstance && "tld" in value;
26
- isInstance = isInstance && "verified" in value;
27
- isInstance = isInstance && "nameservers" in value;
28
- isInstance = isInstance && "name" in value;
29
- isInstance = isInstance && "buyNow" in value;
30
- isInstance = isInstance && "minOffer" in value;
31
- isInstance = isInstance && "account" in value;
32
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
57
- return undefined;
58
- }
59
- if (value === null) {
60
- return null;
63
+ if (value == null) {
64
+ return value;
61
65
  }
62
66
  return {
63
- 'id': value.id,
64
- 'tld': value.tld,
65
- 'verified': value.verified,
66
- 'nameservers': value.nameservers,
67
- 'name': value.name,
68
- 'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value.buyNow),
69
- 'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value.minOffer),
70
- 'account': (0, AccountDto_1.AccountDtoToJSON)(value.account),
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
  */