@randock/nameshift-api-client 0.0.18 → 0.0.20

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 (160) hide show
  1. package/.openapi-generator/FILES +4 -1
  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/DomainsPublicApi.d.ts +4 -12
  9. package/dist/apis/DomainsPublicApi.js +8 -50
  10. package/dist/apis/LeadsApi.js +18 -18
  11. package/dist/apis/LeadsPublicApi.js +3 -3
  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/DomainSalesInformationDto.d.ts +51 -0
  25. package/dist/models/DomainSalesInformationDto.js +61 -0
  26. package/dist/models/DomainSellerDto.d.ts +37 -0
  27. package/dist/models/DomainSellerDto.js +51 -0
  28. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +19 -18
  29. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +2 -2
  30. package/dist/models/IntersectionDomainDtoWithAccountDto.js +28 -24
  31. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +2 -2
  32. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +31 -26
  33. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +22 -20
  34. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +40 -32
  35. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +7 -10
  36. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +10 -12
  37. package/dist/models/LeadMessageData.js +7 -10
  38. package/dist/models/LeadMessageDto.js +25 -22
  39. package/dist/models/LeadMessageDtoData.js +7 -10
  40. package/dist/models/List200Response.js +13 -14
  41. package/dist/models/List400Response.js +12 -15
  42. package/dist/models/List401Response.js +12 -15
  43. package/dist/models/ListLeadMessagesDto.js +7 -10
  44. package/dist/models/Login401Response.js +12 -15
  45. package/dist/models/Login429Response.js +12 -15
  46. package/dist/models/LoginInput.js +10 -12
  47. package/dist/models/MoneyDto.js +10 -12
  48. package/dist/models/MoneyInput.js +10 -12
  49. package/dist/models/ObjectId.js +7 -10
  50. package/dist/models/PaginateResponse.js +13 -14
  51. package/dist/models/PaginateResponseLinks.d.ts +5 -5
  52. package/dist/models/PaginateResponseLinks.js +14 -19
  53. package/dist/models/PaginateResponseMeta.js +18 -23
  54. package/dist/models/PublicDomainControllerGetDomainSalesInformation404Response.d.ts +43 -0
  55. package/dist/models/PublicDomainControllerGetDomainSalesInformation404Response.js +53 -0
  56. package/dist/models/PutLeadInput.js +7 -10
  57. package/dist/models/TokenDto.js +7 -10
  58. package/dist/models/UpdateDomainInput.d.ts +2 -2
  59. package/dist/models/UpdateDomainInput.js +8 -13
  60. package/dist/models/UpdateFinancial400Response.js +12 -15
  61. package/dist/models/UpdateSettings400Response.js +12 -15
  62. package/dist/models/UpdateSettings401Response.js +12 -15
  63. package/dist/models/UpdateSettings429Response.js +12 -15
  64. package/dist/models/WithFinancialDtoInner.js +16 -16
  65. package/dist/models/WithSettingsInner.js +7 -10
  66. package/dist/models/index.d.ts +3 -1
  67. package/dist/models/index.js +3 -1
  68. package/dist/runtime.d.ts +2 -3
  69. package/dist/runtime.js +1 -6
  70. package/package.json +1 -1
  71. package/src/apis/AccountsApi.ts +36 -18
  72. package/src/apis/AuthApi.ts +6 -3
  73. package/src/apis/DomainsApi.ts +49 -31
  74. package/src/apis/DomainsPublicApi.ts +17 -46
  75. package/src/apis/LeadsApi.ts +36 -18
  76. package/src/apis/LeadsPublicApi.ts +6 -3
  77. package/src/models/AccountAddressDto.ts +17 -22
  78. package/src/models/AccountAddressInput.ts +17 -22
  79. package/src/models/AccountDto.ts +9 -14
  80. package/src/models/AccountFinancialInput.ts +13 -18
  81. package/src/models/AccountSettingsInput.ts +7 -12
  82. package/src/models/BatchUpdate404Response.ts +11 -16
  83. package/src/models/BatchUpdateDomainsInput.ts +9 -14
  84. package/src/models/CreateLeadInput.ts +17 -22
  85. package/src/models/CreateLeadMessageInput.ts +7 -12
  86. package/src/models/DeleteDomainsInput.ts +7 -12
  87. package/src/models/DomainDto.ts +21 -26
  88. package/src/models/DomainSalesInformationDto.ts +101 -0
  89. package/src/models/DomainSellerDto.ts +70 -0
  90. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +15 -20
  91. package/src/models/IntersectionDomainDtoWithAccountDto.ts +23 -28
  92. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +25 -30
  93. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +17 -22
  94. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +29 -34
  95. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +7 -12
  96. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +9 -14
  97. package/src/models/LeadMessageData.ts +7 -12
  98. package/src/models/LeadMessageDto.ts +19 -24
  99. package/src/models/LeadMessageDtoData.ts +7 -12
  100. package/src/models/List200Response.ts +11 -16
  101. package/src/models/List400Response.ts +11 -16
  102. package/src/models/List401Response.ts +11 -16
  103. package/src/models/ListLeadMessagesDto.ts +7 -12
  104. package/src/models/Login401Response.ts +11 -16
  105. package/src/models/Login429Response.ts +11 -16
  106. package/src/models/LoginInput.ts +9 -14
  107. package/src/models/MoneyDto.ts +9 -14
  108. package/src/models/MoneyInput.ts +9 -14
  109. package/src/models/ObjectId.ts +7 -12
  110. package/src/models/PaginateResponse.ts +11 -16
  111. package/src/models/PaginateResponseLinks.ts +20 -25
  112. package/src/models/PaginateResponseMeta.ts +19 -24
  113. package/src/models/PublicDomainControllerGetDomainSalesInformation404Response.ts +78 -0
  114. package/src/models/PutLeadInput.ts +7 -12
  115. package/src/models/TokenDto.ts +7 -12
  116. package/src/models/UpdateDomainInput.ts +11 -16
  117. package/src/models/UpdateFinancial400Response.ts +11 -16
  118. package/src/models/UpdateSettings400Response.ts +11 -16
  119. package/src/models/UpdateSettings401Response.ts +11 -16
  120. package/src/models/UpdateSettings429Response.ts +11 -16
  121. package/src/models/WithFinancialDtoInner.ts +13 -18
  122. package/src/models/WithSettingsInner.ts +7 -12
  123. package/src/models/index.ts +3 -1
  124. package/src/runtime.ts +3 -8
  125. package/dist/apis/TestApi.d.ts +0 -23
  126. package/dist/apis/TestApi.js +0 -116
  127. package/dist/models/CreateLeadMessageInputData.d.ts +0 -32
  128. package/dist/models/CreateLeadMessageInputData.js +0 -51
  129. package/dist/models/ImportDomainsDto.d.ts +0 -49
  130. package/dist/models/ImportDomainsDto.js +0 -59
  131. package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +0 -44
  132. package/dist/models/IntersectionAccountDtoWithAddressDto.js +0 -57
  133. package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +0 -44
  134. package/dist/models/IntersectionAccountDtoWithFinancialDto.js +0 -57
  135. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +0 -49
  136. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +0 -56
  137. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +0 -44
  138. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +0 -57
  139. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +0 -32
  140. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +0 -51
  141. package/dist/models/IntersectionLeadDto.d.ts +0 -52
  142. package/dist/models/IntersectionLeadDto.js +0 -64
  143. package/dist/models/LeadDto.d.ts +0 -74
  144. package/dist/models/LeadDto.js +0 -79
  145. package/dist/models/List429Response.d.ts +0 -43
  146. package/dist/models/List429Response.js +0 -56
  147. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +0 -43
  148. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +0 -56
  149. package/src/apis/TestApi.ts +0 -46
  150. package/src/models/CreateLeadMessageInputData.ts +0 -73
  151. package/src/models/ImportDomainsDto.ts +0 -93
  152. package/src/models/IntersectionAccountDtoWithAddressDto.ts +0 -91
  153. package/src/models/IntersectionAccountDtoWithFinancialDto.ts +0 -91
  154. package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +0 -89
  155. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +0 -91
  156. package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +0 -72
  157. package/src/models/IntersectionLeadDto.ts +0 -96
  158. package/src/models/LeadDto.ts +0 -131
  159. package/src/models/List429Response.ts +0 -83
  160. package/src/models/PublicDomainControllerGetDomainIdentifier404Response.ts +0 -83
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { DomainSellerDto } from './DomainSellerDto';
13
+ import type { MoneyDto } from './MoneyDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface DomainSalesInformationDto
18
+ */
19
+ export interface DomainSalesInformationDto {
20
+ /**
21
+ * The domain name (example.com)
22
+ * @type {string}
23
+ * @memberof DomainSalesInformationDto
24
+ */
25
+ domain: string;
26
+ /**
27
+ *
28
+ * @type {MoneyDto}
29
+ * @memberof DomainSalesInformationDto
30
+ */
31
+ buyNowPrice: MoneyDto | null;
32
+ /**
33
+ *
34
+ * @type {MoneyDto}
35
+ * @memberof DomainSalesInformationDto
36
+ */
37
+ minOfferPrice: MoneyDto | null;
38
+ /**
39
+ * The domain seller information
40
+ * @type {DomainSellerDto}
41
+ * @memberof DomainSalesInformationDto
42
+ */
43
+ seller: DomainSellerDto;
44
+ }
45
+ /**
46
+ * Check if a given object implements the DomainSalesInformationDto interface.
47
+ */
48
+ export declare function instanceOfDomainSalesInformationDto(value: object): boolean;
49
+ export declare function DomainSalesInformationDtoFromJSON(json: any): DomainSalesInformationDto;
50
+ export declare function DomainSalesInformationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSalesInformationDto;
51
+ export declare function DomainSalesInformationDtoToJSON(value?: DomainSalesInformationDto | null): any;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DomainSalesInformationDtoToJSON = exports.DomainSalesInformationDtoFromJSONTyped = exports.DomainSalesInformationDtoFromJSON = exports.instanceOfDomainSalesInformationDto = void 0;
17
+ var DomainSellerDto_1 = require("./DomainSellerDto");
18
+ var MoneyDto_1 = require("./MoneyDto");
19
+ /**
20
+ * Check if a given object implements the DomainSalesInformationDto interface.
21
+ */
22
+ function instanceOfDomainSalesInformationDto(value) {
23
+ if (!('domain' in value))
24
+ return false;
25
+ if (!('buyNowPrice' in value))
26
+ return false;
27
+ if (!('minOfferPrice' in value))
28
+ return false;
29
+ if (!('seller' in value))
30
+ return false;
31
+ return true;
32
+ }
33
+ exports.instanceOfDomainSalesInformationDto = instanceOfDomainSalesInformationDto;
34
+ function DomainSalesInformationDtoFromJSON(json) {
35
+ return DomainSalesInformationDtoFromJSONTyped(json, false);
36
+ }
37
+ exports.DomainSalesInformationDtoFromJSON = DomainSalesInformationDtoFromJSON;
38
+ function DomainSalesInformationDtoFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'domain': json['domain'],
44
+ 'buyNowPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNowPrice']),
45
+ 'minOfferPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOfferPrice']),
46
+ 'seller': (0, DomainSellerDto_1.DomainSellerDtoFromJSON)(json['seller']),
47
+ };
48
+ }
49
+ exports.DomainSalesInformationDtoFromJSONTyped = DomainSalesInformationDtoFromJSONTyped;
50
+ function DomainSalesInformationDtoToJSON(value) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'domain': value['domain'],
56
+ 'buyNowPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNowPrice']),
57
+ 'minOfferPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOfferPrice']),
58
+ 'seller': (0, DomainSellerDto_1.DomainSellerDtoToJSON)(value['seller']),
59
+ };
60
+ }
61
+ exports.DomainSalesInformationDtoToJSON = DomainSalesInformationDtoToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface DomainSellerDto
16
+ */
17
+ export interface DomainSellerDto {
18
+ /**
19
+ * The domain seller account verified status
20
+ * @type {boolean}
21
+ * @memberof DomainSellerDto
22
+ */
23
+ verified: boolean;
24
+ /**
25
+ * The domain seller account creation date
26
+ * @type {Date}
27
+ * @memberof DomainSellerDto
28
+ */
29
+ createdAt: Date;
30
+ }
31
+ /**
32
+ * Check if a given object implements the DomainSellerDto interface.
33
+ */
34
+ export declare function instanceOfDomainSellerDto(value: object): boolean;
35
+ export declare function DomainSellerDtoFromJSON(json: any): DomainSellerDto;
36
+ export declare function DomainSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSellerDto;
37
+ export declare function DomainSellerDtoToJSON(value?: DomainSellerDto | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DomainSellerDtoToJSON = exports.DomainSellerDtoFromJSONTyped = exports.DomainSellerDtoFromJSON = exports.instanceOfDomainSellerDto = void 0;
17
+ /**
18
+ * Check if a given object implements the DomainSellerDto interface.
19
+ */
20
+ function instanceOfDomainSellerDto(value) {
21
+ if (!('verified' in value))
22
+ return false;
23
+ if (!('createdAt' in value))
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfDomainSellerDto = instanceOfDomainSellerDto;
28
+ function DomainSellerDtoFromJSON(json) {
29
+ return DomainSellerDtoFromJSONTyped(json, false);
30
+ }
31
+ exports.DomainSellerDtoFromJSON = DomainSellerDtoFromJSON;
32
+ function DomainSellerDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'verified': json['verified'],
38
+ 'createdAt': (new Date(json['createdAt'])),
39
+ };
40
+ }
41
+ exports.DomainSellerDtoFromJSONTyped = DomainSellerDtoFromJSONTyped;
42
+ function DomainSellerDtoToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'verified': value['verified'],
48
+ 'createdAt': ((value['createdAt']).toISOString()),
49
+ };
50
+ }
51
+ exports.DomainSellerDtoToJSON = DomainSellerDtoToJSON;
@@ -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
  */
@@ -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;