@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
@@ -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;
@@ -14,15 +14,15 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.List400ResponseToJSON = exports.List400ResponseFromJSONTyped = exports.List400ResponseFromJSON = exports.instanceOfList400Response = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the List400Response interface.
20
19
  */
21
20
  function instanceOfList400Response(value) {
22
- 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.instanceOfList400Response = instanceOfList400Response;
28
28
  function List400ResponseFromJSON(json) {
@@ -30,27 +30,24 @@ function List400ResponseFromJSON(json) {
30
30
  }
31
31
  exports.List400ResponseFromJSON = List400ResponseFromJSON;
32
32
  function List400ResponseFromJSONTyped(json, ignoreDiscriminator) {
33
- if ((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.List400ResponseFromJSONTyped = List400ResponseFromJSONTyped;
43
43
  function List400ResponseToJSON(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.List400ResponseToJSON = List400ResponseToJSON;
@@ -14,15 +14,15 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.List401ResponseToJSON = exports.List401ResponseFromJSONTyped = exports.List401ResponseFromJSON = exports.instanceOfList401Response = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the List401Response interface.
20
19
  */
21
20
  function instanceOfList401Response(value) {
22
- 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.instanceOfList401Response = instanceOfList401Response;
28
28
  function List401ResponseFromJSON(json) {
@@ -30,27 +30,24 @@ function List401ResponseFromJSON(json) {
30
30
  }
31
31
  exports.List401ResponseFromJSON = List401ResponseFromJSON;
32
32
  function List401ResponseFromJSONTyped(json, ignoreDiscriminator) {
33
- if ((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.List401ResponseFromJSONTyped = List401ResponseFromJSONTyped;
43
43
  function List401ResponseToJSON(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.List401ResponseToJSON = List401ResponseToJSON;
@@ -19,9 +19,9 @@ var LeadMessageDto_1 = require("./LeadMessageDto");
19
19
  * Check if a given object implements the ListLeadMessagesDto interface.
20
20
  */
21
21
  function instanceOfListLeadMessagesDto(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "messages" in value;
24
- return isInstance;
22
+ if (!('messages' in value))
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfListLeadMessagesDto = instanceOfListLeadMessagesDto;
27
27
  function ListLeadMessagesDtoFromJSON(json) {
@@ -29,7 +29,7 @@ function ListLeadMessagesDtoFromJSON(json) {
29
29
  }
30
30
  exports.ListLeadMessagesDtoFromJSON = ListLeadMessagesDtoFromJSON;
31
31
  function ListLeadMessagesDtoFromJSONTyped(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 ListLeadMessagesDtoFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.ListLeadMessagesDtoFromJSONTyped = ListLeadMessagesDtoFromJSONTyped;
40
40
  function ListLeadMessagesDtoToJSON(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
- 'messages': (value.messages.map(LeadMessageDto_1.LeadMessageDtoToJSON)),
45
+ 'messages': (value['messages'].map(LeadMessageDto_1.LeadMessageDtoToJSON)),
49
46
  };
50
47
  }
51
48
  exports.ListLeadMessagesDtoToJSON = ListLeadMessagesDtoToJSON;
@@ -14,15 +14,15 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.Login401ResponseToJSON = exports.Login401ResponseFromJSONTyped = exports.Login401ResponseFromJSON = exports.instanceOfLogin401Response = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the Login401Response interface.
20
19
  */
21
20
  function instanceOfLogin401Response(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.instanceOfLogin401Response = instanceOfLogin401Response;
28
28
  function Login401ResponseFromJSON(json) {
@@ -30,27 +30,24 @@ function Login401ResponseFromJSON(json) {
30
30
  }
31
31
  exports.Login401ResponseFromJSON = Login401ResponseFromJSON;
32
32
  function Login401ResponseFromJSONTyped(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.Login401ResponseFromJSONTyped = Login401ResponseFromJSONTyped;
43
43
  function Login401ResponseToJSON(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.Login401ResponseToJSON = Login401ResponseToJSON;
@@ -14,15 +14,15 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.Login429ResponseToJSON = exports.Login429ResponseFromJSONTyped = exports.Login429ResponseFromJSON = exports.instanceOfLogin429Response = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the Login429Response interface.
20
19
  */
21
20
  function instanceOfLogin429Response(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.instanceOfLogin429Response = instanceOfLogin429Response;
28
28
  function Login429ResponseFromJSON(json) {
@@ -30,27 +30,24 @@ function Login429ResponseFromJSON(json) {
30
30
  }
31
31
  exports.Login429ResponseFromJSON = Login429ResponseFromJSON;
32
32
  function Login429ResponseFromJSONTyped(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.Login429ResponseFromJSONTyped = Login429ResponseFromJSONTyped;
43
43
  function Login429ResponseToJSON(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.Login429ResponseToJSON = Login429ResponseToJSON;
@@ -18,10 +18,11 @@ exports.LoginInputToJSON = exports.LoginInputFromJSONTyped = exports.LoginInputF
18
18
  * Check if a given object implements the LoginInput interface.
19
19
  */
20
20
  function instanceOfLoginInput(value) {
21
- var isInstance = true;
22
- isInstance = isInstance && "email" in value;
23
- isInstance = isInstance && "password" in value;
24
- return isInstance;
21
+ if (!('email' in value))
22
+ return false;
23
+ if (!('password' in value))
24
+ return false;
25
+ return true;
25
26
  }
26
27
  exports.instanceOfLoginInput = instanceOfLoginInput;
27
28
  function LoginInputFromJSON(json) {
@@ -29,7 +30,7 @@ function LoginInputFromJSON(json) {
29
30
  }
30
31
  exports.LoginInputFromJSON = LoginInputFromJSON;
31
32
  function LoginInputFromJSONTyped(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 LoginInputFromJSONTyped(json, ignoreDiscriminator) {
39
40
  }
40
41
  exports.LoginInputFromJSONTyped = LoginInputFromJSONTyped;
41
42
  function LoginInputToJSON(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
- 'email': value.email,
50
- 'password': value.password,
47
+ 'email': value['email'],
48
+ 'password': value['password'],
51
49
  };
52
50
  }
53
51
  exports.LoginInputToJSON = LoginInputToJSON;
@@ -18,10 +18,11 @@ exports.MoneyDtoToJSON = exports.MoneyDtoFromJSONTyped = exports.MoneyDtoFromJSO
18
18
  * Check if a given object implements the MoneyDto interface.
19
19
  */
20
20
  function instanceOfMoneyDto(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.instanceOfMoneyDto = instanceOfMoneyDto;
27
28
  function MoneyDtoFromJSON(json) {
@@ -29,7 +30,7 @@ function MoneyDtoFromJSON(json) {
29
30
  }
30
31
  exports.MoneyDtoFromJSON = MoneyDtoFromJSON;
31
32
  function MoneyDtoFromJSONTyped(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 MoneyDtoFromJSONTyped(json, ignoreDiscriminator) {
39
40
  }
40
41
  exports.MoneyDtoFromJSONTyped = MoneyDtoFromJSONTyped;
41
42
  function MoneyDtoToJSON(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.MoneyDtoToJSON = MoneyDtoToJSON;
@@ -18,10 +18,11 @@ exports.MoneyInputToJSON = exports.MoneyInputFromJSONTyped = exports.MoneyInputF
18
18
  * Check if a given object implements the MoneyInput interface.
19
19
  */
20
20
  function instanceOfMoneyInput(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.instanceOfMoneyInput = instanceOfMoneyInput;
27
28
  function MoneyInputFromJSON(json) {
@@ -29,7 +30,7 @@ function MoneyInputFromJSON(json) {
29
30
  }
30
31
  exports.MoneyInputFromJSON = MoneyInputFromJSON;
31
32
  function MoneyInputFromJSONTyped(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 MoneyInputFromJSONTyped(json, ignoreDiscriminator) {
39
40
  }
40
41
  exports.MoneyInputFromJSONTyped = MoneyInputFromJSONTyped;
41
42
  function MoneyInputToJSON(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.MoneyInputToJSON = MoneyInputToJSON;