@randock/nameshift-api-client 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/.openapi-generator/FILES +1 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +6 -4
  4. package/dist/apis/AccountsApi.js +18 -18
  5. package/dist/apis/AuthApi.js +3 -3
  6. package/dist/apis/DomainsApi.d.ts +1 -1
  7. package/dist/apis/DomainsApi.js +30 -30
  8. package/dist/apis/LeadsApi.js +18 -18
  9. package/dist/apis/LeadsPublicApi.js +3 -3
  10. package/dist/apis/index.d.ts +0 -1
  11. package/dist/apis/index.js +0 -1
  12. package/dist/models/AccountAddressDto.js +21 -21
  13. package/dist/models/AccountAddressInput.js +21 -21
  14. package/dist/models/AccountDto.js +10 -12
  15. package/dist/models/AccountFinancialInput.js +16 -16
  16. package/dist/models/AccountSettingsInput.js +6 -11
  17. package/dist/models/BatchUpdate404Response.js +12 -15
  18. package/dist/models/BatchUpdateDomainsInput.js +10 -12
  19. package/dist/models/CreateLeadInput.js +22 -20
  20. package/dist/models/CreateLeadMessageInput.js +7 -10
  21. package/dist/models/DeleteDomainsInput.js +7 -10
  22. package/dist/models/DomainDto.d.ts +2 -2
  23. package/dist/models/DomainDto.js +25 -22
  24. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +19 -18
  25. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +2 -2
  26. package/dist/models/IntersectionDomainDtoWithAccountDto.js +28 -24
  27. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +2 -2
  28. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +31 -26
  29. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +22 -20
  30. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +40 -32
  31. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +7 -10
  32. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +10 -12
  33. package/dist/models/LeadMessageData.js +7 -10
  34. package/dist/models/LeadMessageDto.js +25 -22
  35. package/dist/models/LeadMessageDtoData.js +7 -10
  36. package/dist/models/List200Response.js +13 -14
  37. package/dist/models/List400Response.js +12 -15
  38. package/dist/models/List401Response.js +12 -15
  39. package/dist/models/ListLeadMessagesDto.js +7 -10
  40. package/dist/models/Login401Response.js +12 -15
  41. package/dist/models/Login429Response.js +12 -15
  42. package/dist/models/LoginInput.js +10 -12
  43. package/dist/models/MoneyDto.js +10 -12
  44. package/dist/models/MoneyInput.js +10 -12
  45. package/dist/models/ObjectId.js +7 -10
  46. package/dist/models/PaginateResponse.js +13 -14
  47. package/dist/models/PaginateResponseLinks.d.ts +5 -5
  48. package/dist/models/PaginateResponseLinks.js +14 -19
  49. package/dist/models/PaginateResponseMeta.js +18 -23
  50. package/dist/models/PutLeadInput.js +7 -10
  51. package/dist/models/TokenDto.js +7 -10
  52. package/dist/models/UpdateDomainInput.d.ts +2 -2
  53. package/dist/models/UpdateDomainInput.js +8 -13
  54. package/dist/models/UpdateFinancial400Response.js +12 -15
  55. package/dist/models/UpdateSettings400Response.js +12 -15
  56. package/dist/models/UpdateSettings401Response.js +12 -15
  57. package/dist/models/UpdateSettings429Response.js +12 -15
  58. package/dist/models/WithFinancialDtoInner.js +16 -16
  59. package/dist/models/WithSettingsInner.js +7 -10
  60. package/dist/models/index.d.ts +0 -1
  61. package/dist/models/index.js +0 -1
  62. package/dist/runtime.d.ts +2 -3
  63. package/dist/runtime.js +1 -6
  64. package/package.json +1 -1
  65. package/src/apis/AccountsApi.ts +36 -18
  66. package/src/apis/AuthApi.ts +6 -3
  67. package/src/apis/DomainsApi.ts +49 -31
  68. package/src/apis/LeadsApi.ts +36 -18
  69. package/src/apis/LeadsPublicApi.ts +6 -3
  70. package/src/apis/index.ts +0 -1
  71. package/src/models/AccountAddressDto.ts +17 -22
  72. package/src/models/AccountAddressInput.ts +17 -22
  73. package/src/models/AccountDto.ts +9 -14
  74. package/src/models/AccountFinancialInput.ts +13 -18
  75. package/src/models/AccountSettingsInput.ts +7 -12
  76. package/src/models/BatchUpdate404Response.ts +11 -16
  77. package/src/models/BatchUpdateDomainsInput.ts +9 -14
  78. package/src/models/CreateLeadInput.ts +17 -22
  79. package/src/models/CreateLeadMessageInput.ts +7 -12
  80. package/src/models/DeleteDomainsInput.ts +7 -12
  81. package/src/models/DomainDto.ts +21 -26
  82. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +15 -20
  83. package/src/models/IntersectionDomainDtoWithAccountDto.ts +23 -28
  84. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +25 -30
  85. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +17 -22
  86. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +29 -34
  87. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +7 -12
  88. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +9 -14
  89. package/src/models/LeadMessageData.ts +7 -12
  90. package/src/models/LeadMessageDto.ts +19 -24
  91. package/src/models/LeadMessageDtoData.ts +7 -12
  92. package/src/models/List200Response.ts +11 -16
  93. package/src/models/List400Response.ts +11 -16
  94. package/src/models/List401Response.ts +11 -16
  95. package/src/models/ListLeadMessagesDto.ts +7 -12
  96. package/src/models/Login401Response.ts +11 -16
  97. package/src/models/Login429Response.ts +11 -16
  98. package/src/models/LoginInput.ts +9 -14
  99. package/src/models/MoneyDto.ts +9 -14
  100. package/src/models/MoneyInput.ts +9 -14
  101. package/src/models/ObjectId.ts +7 -12
  102. package/src/models/PaginateResponse.ts +11 -16
  103. package/src/models/PaginateResponseLinks.ts +20 -25
  104. package/src/models/PaginateResponseMeta.ts +19 -24
  105. package/src/models/PutLeadInput.ts +7 -12
  106. package/src/models/TokenDto.ts +7 -12
  107. package/src/models/UpdateDomainInput.ts +11 -16
  108. package/src/models/UpdateFinancial400Response.ts +11 -16
  109. package/src/models/UpdateSettings400Response.ts +11 -16
  110. package/src/models/UpdateSettings401Response.ts +11 -16
  111. package/src/models/UpdateSettings429Response.ts +11 -16
  112. package/src/models/WithFinancialDtoInner.ts +13 -18
  113. package/src/models/WithSettingsInner.ts +7 -12
  114. package/src/models/index.ts +0 -1
  115. package/src/runtime.ts +3 -8
  116. package/dist/apis/DomainsPublicApi.d.ts +0 -35
  117. package/dist/apis/DomainsPublicApi.js +0 -164
  118. package/dist/apis/TestApi.d.ts +0 -23
  119. package/dist/apis/TestApi.js +0 -116
  120. package/dist/models/CreateLeadMessageInputData.d.ts +0 -32
  121. package/dist/models/CreateLeadMessageInputData.js +0 -51
  122. package/dist/models/ImportDomainsDto.d.ts +0 -49
  123. package/dist/models/ImportDomainsDto.js +0 -59
  124. package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +0 -44
  125. package/dist/models/IntersectionAccountDtoWithAddressDto.js +0 -57
  126. package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +0 -44
  127. package/dist/models/IntersectionAccountDtoWithFinancialDto.js +0 -57
  128. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +0 -49
  129. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +0 -56
  130. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +0 -44
  131. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +0 -57
  132. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +0 -32
  133. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +0 -51
  134. package/dist/models/IntersectionLeadDto.d.ts +0 -52
  135. package/dist/models/IntersectionLeadDto.js +0 -64
  136. package/dist/models/LeadDto.d.ts +0 -74
  137. package/dist/models/LeadDto.js +0 -79
  138. package/dist/models/List429Response.d.ts +0 -43
  139. package/dist/models/List429Response.js +0 -56
  140. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.d.ts +0 -43
  141. package/dist/models/PublicDomainControllerGetDomainIdentifier404Response.js +0 -56
  142. package/src/apis/DomainsPublicApi.ts +0 -97
  143. package/src/apis/TestApi.ts +0 -46
  144. package/src/models/CreateLeadMessageInputData.ts +0 -73
  145. package/src/models/ImportDomainsDto.ts +0 -93
  146. package/src/models/IntersectionAccountDtoWithAddressDto.ts +0 -91
  147. package/src/models/IntersectionAccountDtoWithFinancialDto.ts +0 -91
  148. package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +0 -89
  149. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +0 -91
  150. package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +0 -72
  151. package/src/models/IntersectionLeadDto.ts +0 -96
  152. package/src/models/LeadDto.ts +0 -131
  153. package/src/models/List429Response.ts +0 -83
  154. package/src/models/PublicDomainControllerGetDomainIdentifier404Response.ts +0 -83
@@ -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;
@@ -18,9 +18,9 @@ exports.ObjectIdToJSON = exports.ObjectIdFromJSONTyped = exports.ObjectIdFromJSO
18
18
  * Check if a given object implements the ObjectId interface.
19
19
  */
20
20
  function instanceOfObjectId(value) {
21
- var isInstance = true;
22
- isInstance = isInstance && "id" in value;
23
- return isInstance;
21
+ if (!('id' in value))
22
+ return false;
23
+ return true;
24
24
  }
25
25
  exports.instanceOfObjectId = instanceOfObjectId;
26
26
  function ObjectIdFromJSON(json) {
@@ -28,7 +28,7 @@ function ObjectIdFromJSON(json) {
28
28
  }
29
29
  exports.ObjectIdFromJSON = ObjectIdFromJSON;
30
30
  function ObjectIdFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
31
+ if (json == null) {
32
32
  return json;
33
33
  }
34
34
  return {
@@ -37,14 +37,11 @@ function ObjectIdFromJSONTyped(json, ignoreDiscriminator) {
37
37
  }
38
38
  exports.ObjectIdFromJSONTyped = ObjectIdFromJSONTyped;
39
39
  function ObjectIdToJSON(value) {
40
- if (value === undefined) {
41
- return undefined;
42
- }
43
- if (value === null) {
44
- return null;
40
+ if (value == null) {
41
+ return value;
45
42
  }
46
43
  return {
47
- 'id': value.id,
44
+ 'id': value['id'],
48
45
  };
49
46
  }
50
47
  exports.ObjectIdToJSON = ObjectIdToJSON;
@@ -20,11 +20,13 @@ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
20
20
  * Check if a given object implements the PaginateResponse interface.
21
21
  */
22
22
  function instanceOfPaginateResponse(value) {
23
- var isInstance = true;
24
- isInstance = isInstance && "data" in value;
25
- isInstance = isInstance && "meta" in value;
26
- isInstance = isInstance && "links" in value;
27
- return isInstance;
23
+ if (!('data' in value))
24
+ return false;
25
+ if (!('meta' in value))
26
+ return false;
27
+ if (!('links' in value))
28
+ return false;
29
+ return true;
28
30
  }
29
31
  exports.instanceOfPaginateResponse = instanceOfPaginateResponse;
30
32
  function PaginateResponseFromJSON(json) {
@@ -32,7 +34,7 @@ function PaginateResponseFromJSON(json) {
32
34
  }
33
35
  exports.PaginateResponseFromJSON = PaginateResponseFromJSON;
34
36
  function PaginateResponseFromJSONTyped(json, ignoreDiscriminator) {
35
- if ((json === undefined) || (json === null)) {
37
+ if (json == null) {
36
38
  return json;
37
39
  }
38
40
  return {
@@ -43,16 +45,13 @@ function PaginateResponseFromJSONTyped(json, ignoreDiscriminator) {
43
45
  }
44
46
  exports.PaginateResponseFromJSONTyped = PaginateResponseFromJSONTyped;
45
47
  function PaginateResponseToJSON(value) {
46
- if (value === undefined) {
47
- return undefined;
48
- }
49
- if (value === null) {
50
- return null;
48
+ if (value == null) {
49
+ return value;
51
50
  }
52
51
  return {
53
- 'data': value.data,
54
- 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value.meta),
55
- 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value.links),
52
+ 'data': value['data'],
53
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
54
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
56
55
  };
57
56
  }
58
57
  exports.PaginateResponseToJSON = PaginateResponseToJSON;
@@ -20,31 +20,31 @@ export interface PaginateResponseLinks {
20
20
  * @type {string}
21
21
  * @memberof PaginateResponseLinks
22
22
  */
23
- first?: string | null;
23
+ first?: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
27
  * @memberof PaginateResponseLinks
28
28
  */
29
- previous?: string | null;
29
+ previous?: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof PaginateResponseLinks
34
34
  */
35
- current?: string | null;
35
+ current?: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
39
  * @memberof PaginateResponseLinks
40
40
  */
41
- next?: string | null;
41
+ next?: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
45
45
  * @memberof PaginateResponseLinks
46
46
  */
47
- last?: string | null;
47
+ last?: string;
48
48
  }
49
49
  /**
50
50
  * Check if a given object implements the PaginateResponseLinks interface.
@@ -14,13 +14,11 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PaginateResponseLinksToJSON = exports.PaginateResponseLinksFromJSONTyped = exports.PaginateResponseLinksFromJSON = exports.instanceOfPaginateResponseLinks = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the PaginateResponseLinks interface.
20
19
  */
21
20
  function instanceOfPaginateResponseLinks(value) {
22
- var isInstance = true;
23
- return isInstance;
21
+ return true;
24
22
  }
25
23
  exports.instanceOfPaginateResponseLinks = instanceOfPaginateResponseLinks;
26
24
  function PaginateResponseLinksFromJSON(json) {
@@ -28,31 +26,28 @@ function PaginateResponseLinksFromJSON(json) {
28
26
  }
29
27
  exports.PaginateResponseLinksFromJSON = PaginateResponseLinksFromJSON;
30
28
  function PaginateResponseLinksFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
29
+ if (json == null) {
32
30
  return json;
33
31
  }
34
32
  return {
35
- 'first': !(0, runtime_1.exists)(json, 'first') ? undefined : json['first'],
36
- 'previous': !(0, runtime_1.exists)(json, 'previous') ? undefined : json['previous'],
37
- 'current': !(0, runtime_1.exists)(json, 'current') ? undefined : json['current'],
38
- 'next': !(0, runtime_1.exists)(json, 'next') ? undefined : json['next'],
39
- 'last': !(0, runtime_1.exists)(json, 'last') ? undefined : json['last'],
33
+ 'first': json['first'] == null ? undefined : json['first'],
34
+ 'previous': json['previous'] == null ? undefined : json['previous'],
35
+ 'current': json['current'] == null ? undefined : json['current'],
36
+ 'next': json['next'] == null ? undefined : json['next'],
37
+ 'last': json['last'] == null ? undefined : json['last'],
40
38
  };
41
39
  }
42
40
  exports.PaginateResponseLinksFromJSONTyped = PaginateResponseLinksFromJSONTyped;
43
41
  function PaginateResponseLinksToJSON(value) {
44
- if (value === undefined) {
45
- return undefined;
46
- }
47
- if (value === null) {
48
- return null;
42
+ if (value == null) {
43
+ return value;
49
44
  }
50
45
  return {
51
- 'first': value.first,
52
- 'previous': value.previous,
53
- 'current': value.current,
54
- 'next': value.next,
55
- 'last': value.last,
46
+ 'first': value['first'],
47
+ 'previous': value['previous'],
48
+ 'current': value['current'],
49
+ 'next': value['next'],
50
+ 'last': value['last'],
56
51
  };
57
52
  }
58
53
  exports.PaginateResponseLinksToJSON = PaginateResponseLinksToJSON;
@@ -14,13 +14,11 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PaginateResponseMetaToJSON = exports.PaginateResponseMetaFromJSONTyped = exports.PaginateResponseMetaFromJSON = exports.instanceOfPaginateResponseMeta = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the PaginateResponseMeta interface.
20
19
  */
21
20
  function instanceOfPaginateResponseMeta(value) {
22
- var isInstance = true;
23
- return isInstance;
21
+ return true;
24
22
  }
25
23
  exports.instanceOfPaginateResponseMeta = instanceOfPaginateResponseMeta;
26
24
  function PaginateResponseMetaFromJSON(json) {
@@ -28,35 +26,32 @@ function PaginateResponseMetaFromJSON(json) {
28
26
  }
29
27
  exports.PaginateResponseMetaFromJSON = PaginateResponseMetaFromJSON;
30
28
  function PaginateResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
29
+ if (json == null) {
32
30
  return json;
33
31
  }
34
32
  return {
35
- 'page': !(0, runtime_1.exists)(json, 'page') ? undefined : json['page'],
36
- 'itemsPerPage': !(0, runtime_1.exists)(json, 'itemsPerPage') ? undefined : json['itemsPerPage'],
37
- 'offset': !(0, runtime_1.exists)(json, 'offset') ? undefined : json['offset'],
38
- 'unpaged': !(0, runtime_1.exists)(json, 'unpaged') ? undefined : json['unpaged'],
39
- 'totalPages': !(0, runtime_1.exists)(json, 'totalPages') ? undefined : json['totalPages'],
40
- 'totalItems': !(0, runtime_1.exists)(json, 'totalItems') ? undefined : json['totalItems'],
41
- 'sortBy': !(0, runtime_1.exists)(json, 'sortBy') ? undefined : json['sortBy'],
33
+ 'page': json['page'] == null ? undefined : json['page'],
34
+ 'itemsPerPage': json['itemsPerPage'] == null ? undefined : json['itemsPerPage'],
35
+ 'offset': json['offset'] == null ? undefined : json['offset'],
36
+ 'unpaged': json['unpaged'] == null ? undefined : json['unpaged'],
37
+ 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
38
+ 'totalItems': json['totalItems'] == null ? undefined : json['totalItems'],
39
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
42
40
  };
43
41
  }
44
42
  exports.PaginateResponseMetaFromJSONTyped = PaginateResponseMetaFromJSONTyped;
45
43
  function PaginateResponseMetaToJSON(value) {
46
- if (value === undefined) {
47
- return undefined;
48
- }
49
- if (value === null) {
50
- return null;
44
+ if (value == null) {
45
+ return value;
51
46
  }
52
47
  return {
53
- 'page': value.page,
54
- 'itemsPerPage': value.itemsPerPage,
55
- 'offset': value.offset,
56
- 'unpaged': value.unpaged,
57
- 'totalPages': value.totalPages,
58
- 'totalItems': value.totalItems,
59
- 'sortBy': value.sortBy,
48
+ 'page': value['page'],
49
+ 'itemsPerPage': value['itemsPerPage'],
50
+ 'offset': value['offset'],
51
+ 'unpaged': value['unpaged'],
52
+ 'totalPages': value['totalPages'],
53
+ 'totalItems': value['totalItems'],
54
+ 'sortBy': value['sortBy'],
60
55
  };
61
56
  }
62
57
  exports.PaginateResponseMetaToJSON = PaginateResponseMetaToJSON;
@@ -19,9 +19,9 @@ var MoneyDto_1 = require("./MoneyDto");
19
19
  * Check if a given object implements the PutLeadInput interface.
20
20
  */
21
21
  function instanceOfPutLeadInput(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "offer" in value;
24
- return isInstance;
22
+ if (!('offer' in value))
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfPutLeadInput = instanceOfPutLeadInput;
27
27
  function PutLeadInputFromJSON(json) {
@@ -29,7 +29,7 @@ function PutLeadInputFromJSON(json) {
29
29
  }
30
30
  exports.PutLeadInputFromJSON = PutLeadInputFromJSON;
31
31
  function PutLeadInputFromJSONTyped(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 PutLeadInputFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.PutLeadInputFromJSONTyped = PutLeadInputFromJSONTyped;
40
40
  function PutLeadInputToJSON(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
- 'offer': (0, MoneyDto_1.MoneyDtoToJSON)(value.offer),
45
+ 'offer': (0, MoneyDto_1.MoneyDtoToJSON)(value['offer']),
49
46
  };
50
47
  }
51
48
  exports.PutLeadInputToJSON = PutLeadInputToJSON;
@@ -18,9 +18,9 @@ exports.TokenDtoToJSON = exports.TokenDtoFromJSONTyped = exports.TokenDtoFromJSO
18
18
  * Check if a given object implements the TokenDto interface.
19
19
  */
20
20
  function instanceOfTokenDto(value) {
21
- var isInstance = true;
22
- isInstance = isInstance && "token" in value;
23
- return isInstance;
21
+ if (!('token' in value))
22
+ return false;
23
+ return true;
24
24
  }
25
25
  exports.instanceOfTokenDto = instanceOfTokenDto;
26
26
  function TokenDtoFromJSON(json) {
@@ -28,7 +28,7 @@ function TokenDtoFromJSON(json) {
28
28
  }
29
29
  exports.TokenDtoFromJSON = TokenDtoFromJSON;
30
30
  function TokenDtoFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
31
+ if (json == null) {
32
32
  return json;
33
33
  }
34
34
  return {
@@ -37,14 +37,11 @@ function TokenDtoFromJSONTyped(json, ignoreDiscriminator) {
37
37
  }
38
38
  exports.TokenDtoFromJSONTyped = TokenDtoFromJSONTyped;
39
39
  function TokenDtoToJSON(value) {
40
- if (value === undefined) {
41
- return undefined;
42
- }
43
- if (value === null) {
44
- return null;
40
+ if (value == null) {
41
+ return value;
45
42
  }
46
43
  return {
47
- 'token': value.token,
44
+ 'token': value['token'],
48
45
  };
49
46
  }
50
47
  exports.TokenDtoToJSON = TokenDtoToJSON;
@@ -21,13 +21,13 @@ export interface UpdateDomainInput {
21
21
  * @type {MoneyInput}
22
22
  * @memberof UpdateDomainInput
23
23
  */
24
- bin?: MoneyInput | null;
24
+ bin?: MoneyInput;
25
25
  /**
26
26
  *
27
27
  * @type {MoneyInput}
28
28
  * @memberof UpdateDomainInput
29
29
  */
30
- minOffer?: MoneyInput | null;
30
+ minOffer?: MoneyInput;
31
31
  }
32
32
  /**
33
33
  * Check if a given object implements the UpdateDomainInput interface.