@randock/nameshift-api-client 0.0.17 → 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 (157) hide show
  1. package/.openapi-generator/FILES +3 -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.d.ts +3 -3
  38. package/dist/models/List400Response.js +12 -15
  39. package/dist/models/List401Response.js +12 -15
  40. package/dist/models/ListLeadMessagesDto.js +7 -10
  41. package/dist/models/Login401Response.js +12 -15
  42. package/dist/models/Login429Response.js +12 -15
  43. package/dist/models/LoginInput.js +10 -12
  44. package/dist/models/MoneyDto.js +10 -12
  45. package/dist/models/MoneyInput.js +10 -12
  46. package/dist/models/ObjectId.js +7 -10
  47. package/dist/models/PaginateResponse.js +13 -14
  48. package/dist/models/PaginateResponseLinks.d.ts +5 -5
  49. package/dist/models/PaginateResponseLinks.js +14 -19
  50. package/dist/models/PaginateResponseMeta.js +18 -23
  51. package/dist/models/PutLeadInput.js +7 -10
  52. package/dist/models/TokenDto.js +7 -10
  53. package/dist/models/UpdateDomainInput.d.ts +2 -2
  54. package/dist/models/UpdateDomainInput.js +8 -13
  55. package/dist/models/UpdateFinancial400Response.d.ts +43 -0
  56. package/dist/models/UpdateFinancial400Response.js +53 -0
  57. package/dist/models/UpdateSettings400Response.d.ts +43 -0
  58. package/dist/models/UpdateSettings400Response.js +53 -0
  59. package/dist/models/UpdateSettings401Response.js +12 -15
  60. package/dist/models/UpdateSettings429Response.js +12 -15
  61. package/dist/models/WithFinancialDtoInner.js +16 -16
  62. package/dist/models/WithSettingsInner.js +7 -10
  63. package/dist/models/index.d.ts +2 -1
  64. package/dist/models/index.js +2 -1
  65. package/dist/runtime.d.ts +2 -3
  66. package/dist/runtime.js +1 -6
  67. package/package.json +1 -1
  68. package/src/apis/AccountsApi.ts +42 -18
  69. package/src/apis/AuthApi.ts +6 -3
  70. package/src/apis/DomainsApi.ts +49 -31
  71. package/src/apis/LeadsApi.ts +39 -18
  72. package/src/apis/LeadsPublicApi.ts +9 -3
  73. package/src/apis/index.ts +0 -1
  74. package/src/models/AccountAddressDto.ts +17 -22
  75. package/src/models/AccountAddressInput.ts +17 -22
  76. package/src/models/AccountDto.ts +9 -14
  77. package/src/models/AccountFinancialInput.ts +13 -18
  78. package/src/models/AccountSettingsInput.ts +7 -12
  79. package/src/models/BatchUpdate404Response.ts +11 -16
  80. package/src/models/BatchUpdateDomainsInput.ts +9 -14
  81. package/src/models/CreateLeadInput.ts +17 -22
  82. package/src/models/CreateLeadMessageInput.ts +7 -12
  83. package/src/models/DeleteDomainsInput.ts +7 -12
  84. package/src/models/DomainDto.ts +21 -26
  85. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +15 -20
  86. package/src/models/IntersectionDomainDtoWithAccountDto.ts +23 -28
  87. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +25 -30
  88. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +17 -22
  89. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +29 -34
  90. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +7 -12
  91. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +9 -14
  92. package/src/models/LeadMessageData.ts +7 -12
  93. package/src/models/LeadMessageDto.ts +19 -24
  94. package/src/models/LeadMessageDtoData.ts +7 -12
  95. package/src/models/List200Response.ts +11 -16
  96. package/src/models/List400Response.ts +14 -19
  97. package/src/models/List401Response.ts +11 -16
  98. package/src/models/ListLeadMessagesDto.ts +7 -12
  99. package/src/models/Login401Response.ts +11 -16
  100. package/src/models/Login429Response.ts +11 -16
  101. package/src/models/LoginInput.ts +9 -14
  102. package/src/models/MoneyDto.ts +9 -14
  103. package/src/models/MoneyInput.ts +9 -14
  104. package/src/models/ObjectId.ts +7 -12
  105. package/src/models/PaginateResponse.ts +11 -16
  106. package/src/models/PaginateResponseLinks.ts +20 -25
  107. package/src/models/PaginateResponseMeta.ts +19 -24
  108. package/src/models/PutLeadInput.ts +7 -12
  109. package/src/models/TokenDto.ts +7 -12
  110. package/src/models/UpdateDomainInput.ts +11 -16
  111. package/src/models/UpdateFinancial400Response.ts +78 -0
  112. package/src/models/UpdateSettings400Response.ts +78 -0
  113. package/src/models/UpdateSettings401Response.ts +11 -16
  114. package/src/models/UpdateSettings429Response.ts +11 -16
  115. package/src/models/WithFinancialDtoInner.ts +13 -18
  116. package/src/models/WithSettingsInner.ts +7 -12
  117. package/src/models/index.ts +2 -1
  118. package/src/runtime.ts +3 -8
  119. package/dist/apis/DomainsPublicApi.d.ts +0 -35
  120. package/dist/apis/DomainsPublicApi.js +0 -164
  121. package/dist/apis/TestApi.d.ts +0 -23
  122. package/dist/apis/TestApi.js +0 -116
  123. package/dist/models/CreateLeadMessageInputData.d.ts +0 -32
  124. package/dist/models/CreateLeadMessageInputData.js +0 -51
  125. package/dist/models/ImportDomainsDto.d.ts +0 -49
  126. package/dist/models/ImportDomainsDto.js +0 -59
  127. package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +0 -44
  128. package/dist/models/IntersectionAccountDtoWithAddressDto.js +0 -57
  129. package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +0 -44
  130. package/dist/models/IntersectionAccountDtoWithFinancialDto.js +0 -57
  131. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +0 -49
  132. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +0 -56
  133. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +0 -44
  134. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +0 -57
  135. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +0 -32
  136. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +0 -51
  137. package/dist/models/IntersectionLeadDto.d.ts +0 -52
  138. package/dist/models/IntersectionLeadDto.js +0 -64
  139. package/dist/models/LeadDto.d.ts +0 -74
  140. package/dist/models/LeadDto.js +0 -79
  141. package/dist/models/List429Response.d.ts +0 -43
  142. package/dist/models/List429Response.js +0 -56
  143. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +0 -43
  144. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +0 -56
  145. package/src/apis/DomainsPublicApi.ts +0 -97
  146. package/src/apis/TestApi.ts +0 -46
  147. package/src/models/CreateLeadMessageInputData.ts +0 -73
  148. package/src/models/ImportDomainsDto.ts +0 -93
  149. package/src/models/IntersectionAccountDtoWithAddressDto.ts +0 -91
  150. package/src/models/IntersectionAccountDtoWithFinancialDto.ts +0 -91
  151. package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +0 -89
  152. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +0 -91
  153. package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +0 -72
  154. package/src/models/IntersectionLeadDto.ts +0 -96
  155. package/src/models/LeadDto.ts +0 -131
  156. package/src/models/List429Response.ts +0 -83
  157. package/src/models/PublicDomainControllerGetDomainIdentifier404Response.ts +0 -83
@@ -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
  */
@@ -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
- 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 && "hijacker" in value;
32
- isInstance = isInstance && "account" in value;
33
- 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 (!('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 ((json === undefined) || (json === null)) {
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 === undefined) {
59
- return undefined;
60
- }
61
- if (value === null) {
62
- return null;
66
+ if (value == null) {
67
+ return value;
63
68
  }
64
69
  return {
65
- 'id': value.id,
66
- 'tld': value.tld,
67
- 'verified': value.verified,
68
- 'nameservers': value.nameservers,
69
- 'name': value.name,
70
- 'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value.buyNow),
71
- 'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value.minOffer),
72
- 'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value.hijacker),
73
- 'account': (0, AccountDto_1.AccountDtoToJSON)(value.account),
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
- var isInstance = true;
40
- isInstance = isInstance && "id" in value;
41
- isInstance = isInstance && "status" in value;
42
- isInstance = isInstance && "lastOffer" in value;
43
- isInstance = isInstance && "lastOfferBy" in value;
44
- isInstance = isInstance && "domain" in value;
45
- isInstance = isInstance && "createdAt" in value;
46
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
69
- return undefined;
70
- }
71
- if (value === null) {
72
- return null;
73
+ if (value == null) {
74
+ return value;
73
75
  }
74
76
  return {
75
- 'id': value.id,
76
- 'status': value.status,
77
- 'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON)(value.lastOffer),
78
- 'lastOfferBy': value.lastOfferBy,
79
- 'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value.domain),
80
- 'createdAt': (value.createdAt.toISOString()),
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
- var isInstance = true;
55
- isInstance = isInstance && "id" in value;
56
- isInstance = isInstance && "status" in value;
57
- isInstance = isInstance && "lastOffer" in value;
58
- isInstance = isInstance && "lastOfferBy" in value;
59
- isInstance = isInstance && "lastMessageFrom" in value;
60
- isInstance = isInstance && "lastMessageType" in value;
61
- isInstance = isInstance && "lastMessageData" in value;
62
- isInstance = isInstance && "createdAt" in value;
63
- isInstance = isInstance && "domainName" in value;
64
- isInstance = isInstance && "buyerInitials" in value;
65
- isInstance = isInstance && "lastMessageMessage" in value;
66
- isInstance = isInstance && "lastMessageDate" in value;
67
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
96
- return undefined;
97
- }
98
- if (value === null) {
99
- return null;
106
+ if (value == null) {
107
+ return value;
100
108
  }
101
109
  return {
102
- 'id': value.id,
103
- 'status': value.status,
104
- 'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON)(value.lastOffer),
105
- 'lastOfferBy': value.lastOfferBy,
106
- 'lastMessageFrom': value.lastMessageFrom,
107
- 'lastMessageType': value.lastMessageType,
108
- 'lastMessageData': (0, IntersectionLeadDtoWithListFieldsDtoLastMessageData_1.IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON)(value.lastMessageData),
109
- 'createdAt': (value.createdAt.toISOString()),
110
- 'domainName': value.domainName,
111
- 'buyerInitials': value.buyerInitials,
112
- 'lastMessageMessage': value.lastMessageMessage,
113
- 'lastMessageDate': (value.lastMessageDate.toISOString()),
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
- var isInstance = true;
23
- isInstance = isInstance && "price" in value;
24
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
42
- return undefined;
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.price),
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
- var isInstance = true;
22
- isInstance = isInstance && "amount" in value;
23
- isInstance = isInstance && "currencyCode" in value;
24
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === 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
- 'amount': value.amount,
50
- 'currencyCode': value.currencyCode,
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
- var isInstance = true;
23
- isInstance = isInstance && "price" in value;
24
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
42
- return undefined;
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.price),
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
- var isInstance = true;
38
- isInstance = isInstance && "id" in value;
39
- isInstance = isInstance && "type" in value;
40
- isInstance = isInstance && "origin" in value;
41
- isInstance = isInstance && "data" in value;
42
- isInstance = isInstance && "createdAt" in value;
43
- isInstance = isInstance && "initials" in value;
44
- isInstance = isInstance && "message" in value;
45
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
69
- return undefined;
70
- }
71
- if (value === null) {
72
- return null;
74
+ if (value == null) {
75
+ return value;
73
76
  }
74
77
  return {
75
- 'id': value.id,
76
- 'type': value.type,
77
- 'origin': value.origin,
78
- 'data': (0, LeadMessageDtoData_1.LeadMessageDtoDataToJSON)(value.data),
79
- 'createdAt': (value.createdAt.toISOString()),
80
- 'initials': value.initials,
81
- 'message': value.message,
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
- var isInstance = true;
23
- isInstance = isInstance && "price" in value;
24
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
42
- return undefined;
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.price),
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
- var isInstance = true;
25
- isInstance = isInstance && "data" in value;
26
- isInstance = isInstance && "meta" in value;
27
- isInstance = isInstance && "links" in value;
28
- return isInstance;
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 ((json === undefined) || (json === null)) {
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 === undefined) {
48
- return undefined;
49
- }
50
- if (value === null) {
51
- return null;
49
+ if (value == null) {
50
+ return value;
52
51
  }
53
52
  return {
54
- 'data': (value.data.map(DomainDto_1.DomainDtoToJSON)),
55
- 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value.meta),
56
- 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value.links),
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;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Returned if invalid request was specified.
13
+ * Thrown in case of request errors.
14
14
  * @export
15
15
  * @interface List400Response
16
16
  */
@@ -23,10 +23,10 @@ export interface List400Response {
23
23
  statusCode: number;
24
24
  /**
25
25
  *
26
- * @type {string}
26
+ * @type {Array<object>}
27
27
  * @memberof List400Response
28
28
  */
29
- message: string;
29
+ message: Array<object>;
30
30
  /**
31
31
  *
32
32
  * @type {string}