@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
@@ -14,14 +14,12 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UpdateDomainInputToJSON = exports.UpdateDomainInputFromJSONTyped = exports.UpdateDomainInputFromJSON = exports.instanceOfUpdateDomainInput = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  var MoneyInput_1 = require("./MoneyInput");
19
18
  /**
20
19
  * Check if a given object implements the UpdateDomainInput interface.
21
20
  */
22
21
  function instanceOfUpdateDomainInput(value) {
23
- var isInstance = true;
24
- return isInstance;
22
+ return true;
25
23
  }
26
24
  exports.instanceOfUpdateDomainInput = instanceOfUpdateDomainInput;
27
25
  function UpdateDomainInputFromJSON(json) {
@@ -29,25 +27,22 @@ function UpdateDomainInputFromJSON(json) {
29
27
  }
30
28
  exports.UpdateDomainInputFromJSON = UpdateDomainInputFromJSON;
31
29
  function UpdateDomainInputFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
30
+ if (json == null) {
33
31
  return json;
34
32
  }
35
33
  return {
36
- 'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['bin']),
37
- 'minOffer': !(0, runtime_1.exists)(json, 'minOffer') ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['minOffer']),
34
+ 'bin': json['bin'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['bin']),
35
+ 'minOffer': json['minOffer'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['minOffer']),
38
36
  };
39
37
  }
40
38
  exports.UpdateDomainInputFromJSONTyped = UpdateDomainInputFromJSONTyped;
41
39
  function UpdateDomainInputToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
40
+ if (value == null) {
41
+ return value;
47
42
  }
48
43
  return {
49
- 'bin': (0, MoneyInput_1.MoneyInputToJSON)(value.bin),
50
- 'minOffer': (0, MoneyInput_1.MoneyInputToJSON)(value.minOffer),
44
+ 'bin': (0, MoneyInput_1.MoneyInputToJSON)(value['bin']),
45
+ 'minOffer': (0, MoneyInput_1.MoneyInputToJSON)(value['minOffer']),
51
46
  };
52
47
  }
53
48
  exports.UpdateDomainInputToJSON = UpdateDomainInputToJSON;
@@ -14,15 +14,15 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UpdateFinancial400ResponseToJSON = exports.UpdateFinancial400ResponseFromJSONTyped = exports.UpdateFinancial400ResponseFromJSON = exports.instanceOfUpdateFinancial400Response = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the UpdateFinancial400Response interface.
20
19
  */
21
20
  function instanceOfUpdateFinancial400Response(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.instanceOfUpdateFinancial400Response = instanceOfUpdateFinancial400Response;
28
28
  function UpdateFinancial400ResponseFromJSON(json) {
@@ -30,27 +30,24 @@ function UpdateFinancial400ResponseFromJSON(json) {
30
30
  }
31
31
  exports.UpdateFinancial400ResponseFromJSON = UpdateFinancial400ResponseFromJSON;
32
32
  function UpdateFinancial400ResponseFromJSONTyped(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.UpdateFinancial400ResponseFromJSONTyped = UpdateFinancial400ResponseFromJSONTyped;
43
43
  function UpdateFinancial400ResponseToJSON(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.UpdateFinancial400ResponseToJSON = UpdateFinancial400ResponseToJSON;
@@ -14,15 +14,15 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UpdateSettings400ResponseToJSON = exports.UpdateSettings400ResponseFromJSONTyped = exports.UpdateSettings400ResponseFromJSON = exports.instanceOfUpdateSettings400Response = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the UpdateSettings400Response interface.
20
19
  */
21
20
  function instanceOfUpdateSettings400Response(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.instanceOfUpdateSettings400Response = instanceOfUpdateSettings400Response;
28
28
  function UpdateSettings400ResponseFromJSON(json) {
@@ -30,27 +30,24 @@ function UpdateSettings400ResponseFromJSON(json) {
30
30
  }
31
31
  exports.UpdateSettings400ResponseFromJSON = UpdateSettings400ResponseFromJSON;
32
32
  function UpdateSettings400ResponseFromJSONTyped(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.UpdateSettings400ResponseFromJSONTyped = UpdateSettings400ResponseFromJSONTyped;
43
43
  function UpdateSettings400ResponseToJSON(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.UpdateSettings400ResponseToJSON = UpdateSettings400ResponseToJSON;
@@ -14,15 +14,15 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UpdateSettings401ResponseToJSON = exports.UpdateSettings401ResponseFromJSONTyped = exports.UpdateSettings401ResponseFromJSON = exports.instanceOfUpdateSettings401Response = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the UpdateSettings401Response interface.
20
19
  */
21
20
  function instanceOfUpdateSettings401Response(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.instanceOfUpdateSettings401Response = instanceOfUpdateSettings401Response;
28
28
  function UpdateSettings401ResponseFromJSON(json) {
@@ -30,27 +30,24 @@ function UpdateSettings401ResponseFromJSON(json) {
30
30
  }
31
31
  exports.UpdateSettings401ResponseFromJSON = UpdateSettings401ResponseFromJSON;
32
32
  function UpdateSettings401ResponseFromJSONTyped(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.UpdateSettings401ResponseFromJSONTyped = UpdateSettings401ResponseFromJSONTyped;
43
43
  function UpdateSettings401ResponseToJSON(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.UpdateSettings401ResponseToJSON = UpdateSettings401ResponseToJSON;
@@ -14,15 +14,15 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UpdateSettings429ResponseToJSON = exports.UpdateSettings429ResponseFromJSONTyped = exports.UpdateSettings429ResponseFromJSON = exports.instanceOfUpdateSettings429Response = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the UpdateSettings429Response interface.
20
19
  */
21
20
  function instanceOfUpdateSettings429Response(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.instanceOfUpdateSettings429Response = instanceOfUpdateSettings429Response;
28
28
  function UpdateSettings429ResponseFromJSON(json) {
@@ -30,27 +30,24 @@ function UpdateSettings429ResponseFromJSON(json) {
30
30
  }
31
31
  exports.UpdateSettings429ResponseFromJSON = UpdateSettings429ResponseFromJSON;
32
32
  function UpdateSettings429ResponseFromJSONTyped(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.UpdateSettings429ResponseFromJSONTyped = UpdateSettings429ResponseFromJSONTyped;
43
43
  function UpdateSettings429ResponseToJSON(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.UpdateSettings429ResponseToJSON = UpdateSettings429ResponseToJSON;
@@ -18,12 +18,15 @@ exports.WithFinancialDtoInnerToJSON = exports.WithFinancialDtoInnerFromJSONTyped
18
18
  * Check if a given object implements the WithFinancialDtoInner interface.
19
19
  */
20
20
  function instanceOfWithFinancialDtoInner(value) {
21
- var isInstance = true;
22
- isInstance = isInstance && "company" in value;
23
- isInstance = isInstance && "companyName" in value;
24
- isInstance = isInstance && "companyVatNumber" in value;
25
- isInstance = isInstance && "companyRegistrationNumber" in value;
26
- return isInstance;
21
+ if (!('company' in value))
22
+ return false;
23
+ if (!('companyName' in value))
24
+ return false;
25
+ if (!('companyVatNumber' in value))
26
+ return false;
27
+ if (!('companyRegistrationNumber' in value))
28
+ return false;
29
+ return true;
27
30
  }
28
31
  exports.instanceOfWithFinancialDtoInner = instanceOfWithFinancialDtoInner;
29
32
  function WithFinancialDtoInnerFromJSON(json) {
@@ -31,7 +34,7 @@ function WithFinancialDtoInnerFromJSON(json) {
31
34
  }
32
35
  exports.WithFinancialDtoInnerFromJSON = WithFinancialDtoInnerFromJSON;
33
36
  function WithFinancialDtoInnerFromJSONTyped(json, ignoreDiscriminator) {
34
- if ((json === undefined) || (json === null)) {
37
+ if (json == null) {
35
38
  return json;
36
39
  }
37
40
  return {
@@ -43,17 +46,14 @@ function WithFinancialDtoInnerFromJSONTyped(json, ignoreDiscriminator) {
43
46
  }
44
47
  exports.WithFinancialDtoInnerFromJSONTyped = WithFinancialDtoInnerFromJSONTyped;
45
48
  function WithFinancialDtoInnerToJSON(value) {
46
- if (value === undefined) {
47
- return undefined;
48
- }
49
- if (value === null) {
50
- return null;
49
+ if (value == null) {
50
+ return value;
51
51
  }
52
52
  return {
53
- 'company': value.company,
54
- 'companyName': value.companyName,
55
- 'companyVatNumber': value.companyVatNumber,
56
- 'companyRegistrationNumber': value.companyRegistrationNumber,
53
+ 'company': value['company'],
54
+ 'companyName': value['companyName'],
55
+ 'companyVatNumber': value['companyVatNumber'],
56
+ 'companyRegistrationNumber': value['companyRegistrationNumber'],
57
57
  };
58
58
  }
59
59
  exports.WithFinancialDtoInnerToJSON = WithFinancialDtoInnerToJSON;
@@ -19,9 +19,9 @@ var MoneyDto_1 = require("./MoneyDto");
19
19
  * Check if a given object implements the WithSettingsInner interface.
20
20
  */
21
21
  function instanceOfWithSettingsInner(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "defaultStartingOffer" in value;
24
- return isInstance;
22
+ if (!('defaultStartingOffer' in value))
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfWithSettingsInner = instanceOfWithSettingsInner;
27
27
  function WithSettingsInnerFromJSON(json) {
@@ -29,7 +29,7 @@ function WithSettingsInnerFromJSON(json) {
29
29
  }
30
30
  exports.WithSettingsInnerFromJSON = WithSettingsInnerFromJSON;
31
31
  function WithSettingsInnerFromJSONTyped(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 WithSettingsInnerFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.WithSettingsInnerFromJSONTyped = WithSettingsInnerFromJSONTyped;
40
40
  function WithSettingsInnerToJSON(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
- 'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value.defaultStartingOffer),
45
+ 'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['defaultStartingOffer']),
49
46
  };
50
47
  }
51
48
  exports.WithSettingsInnerToJSON = WithSettingsInnerToJSON;
@@ -32,7 +32,6 @@ export * from './ObjectId';
32
32
  export * from './PaginateResponse';
33
33
  export * from './PaginateResponseLinks';
34
34
  export * from './PaginateResponseMeta';
35
- export * from './PublicDomainControllerGetDomainIdentifier404Response';
36
35
  export * from './PutLeadInput';
37
36
  export * from './TokenDto';
38
37
  export * from './UpdateDomainInput';
@@ -50,7 +50,6 @@ __exportStar(require("./ObjectId"), exports);
50
50
  __exportStar(require("./PaginateResponse"), exports);
51
51
  __exportStar(require("./PaginateResponseLinks"), exports);
52
52
  __exportStar(require("./PaginateResponseMeta"), exports);
53
- __exportStar(require("./PublicDomainControllerGetDomainIdentifier404Response"), exports);
54
53
  __exportStar(require("./PutLeadInput"), exports);
55
54
  __exportStar(require("./TokenDto"), exports);
56
55
  __exportStar(require("./UpdateDomainInput"), exports);
package/dist/runtime.d.ts CHANGED
@@ -17,7 +17,7 @@ export interface ConfigurationParameters {
17
17
  queryParamsStringify?: (params: HTTPQuery) => string;
18
18
  username?: string;
19
19
  password?: string;
20
- apiKey?: string | ((name: string) => string);
20
+ apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
21
21
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
22
22
  headers?: HTTPHeaders;
23
23
  credentials?: RequestCredentials;
@@ -32,7 +32,7 @@ export declare class Configuration {
32
32
  get queryParamsStringify(): (params: HTTPQuery) => string;
33
33
  get username(): string | undefined;
34
34
  get password(): string | undefined;
35
- get apiKey(): ((name: string) => string) | undefined;
35
+ get apiKey(): ((name: string) => string | Promise<string>) | undefined;
36
36
  get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
37
37
  get headers(): HTTPHeaders | undefined;
38
38
  get credentials(): RequestCredentials | undefined;
@@ -122,7 +122,6 @@ export interface RequestOpts {
122
122
  query?: HTTPQuery;
123
123
  body?: HTTPBody;
124
124
  }
125
- export declare function exists(json: any, key: string): boolean;
126
125
  export declare function querystring(params: HTTPQuery, prefix?: string): string;
127
126
  export declare function mapValues(data: any, fn: (item: any) => any): {};
128
127
  export declare function canConsumeForm(consumes: Consume[]): boolean;
package/dist/runtime.js CHANGED
@@ -75,7 +75,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
75
75
  }
76
76
  };
77
77
  Object.defineProperty(exports, "__esModule", { value: true });
78
- exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
78
+ exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
79
79
  exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
80
80
  var Configuration = /** @class */ (function () {
81
81
  function Configuration(configuration) {
@@ -438,11 +438,6 @@ exports.COLLECTION_FORMATS = {
438
438
  tsv: "\t",
439
439
  pipes: "|",
440
440
  };
441
- function exists(json, key) {
442
- var value = json[key];
443
- return value !== null && value !== undefined;
444
- }
445
- exports.exists = exists;
446
441
  function querystring(params, prefix) {
447
442
  if (prefix === void 0) { prefix = ''; }
448
443
  return Object.keys(params)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -101,12 +101,18 @@ export class AccountsApi extends runtime.BaseAPI {
101
101
  *
102
102
  */
103
103
  async updateAddressRaw(requestParameters: AccountsApiUpdateAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
104
- if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
105
- throw new runtime.RequiredError('accountId','Required parameter requestParameters.accountId was null or undefined when calling updateAddress.');
104
+ if (requestParameters['accountId'] == null) {
105
+ throw new runtime.RequiredError(
106
+ 'accountId',
107
+ 'Required parameter "accountId" was null or undefined when calling updateAddress().'
108
+ );
106
109
  }
107
110
 
108
- if (requestParameters.accountAddressInput === null || requestParameters.accountAddressInput === undefined) {
109
- throw new runtime.RequiredError('accountAddressInput','Required parameter requestParameters.accountAddressInput was null or undefined when calling updateAddress.');
111
+ if (requestParameters['accountAddressInput'] == null) {
112
+ throw new runtime.RequiredError(
113
+ 'accountAddressInput',
114
+ 'Required parameter "accountAddressInput" was null or undefined when calling updateAddress().'
115
+ );
110
116
  }
111
117
 
112
118
  const queryParameters: any = {};
@@ -124,11 +130,11 @@ export class AccountsApi extends runtime.BaseAPI {
124
130
  }
125
131
  }
126
132
  const response = await this.request({
127
- path: `/accounts/{accountId}/addresses`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters.accountId))),
133
+ path: `/accounts/{accountId}/addresses`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
128
134
  method: 'PUT',
129
135
  headers: headerParameters,
130
136
  query: queryParameters,
131
- body: AccountAddressInputToJSON(requestParameters.accountAddressInput),
137
+ body: AccountAddressInputToJSON(requestParameters['accountAddressInput']),
132
138
  }, initOverrides);
133
139
 
134
140
  return new runtime.VoidApiResponse(response);
@@ -145,12 +151,18 @@ export class AccountsApi extends runtime.BaseAPI {
145
151
  *
146
152
  */
147
153
  async updateFinancialRaw(requestParameters: AccountsApiUpdateFinancialRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
148
- if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
149
- throw new runtime.RequiredError('accountId','Required parameter requestParameters.accountId was null or undefined when calling updateFinancial.');
154
+ if (requestParameters['accountId'] == null) {
155
+ throw new runtime.RequiredError(
156
+ 'accountId',
157
+ 'Required parameter "accountId" was null or undefined when calling updateFinancial().'
158
+ );
150
159
  }
151
160
 
152
- if (requestParameters.accountFinancialInput === null || requestParameters.accountFinancialInput === undefined) {
153
- throw new runtime.RequiredError('accountFinancialInput','Required parameter requestParameters.accountFinancialInput was null or undefined when calling updateFinancial.');
161
+ if (requestParameters['accountFinancialInput'] == null) {
162
+ throw new runtime.RequiredError(
163
+ 'accountFinancialInput',
164
+ 'Required parameter "accountFinancialInput" was null or undefined when calling updateFinancial().'
165
+ );
154
166
  }
155
167
 
156
168
  const queryParameters: any = {};
@@ -168,11 +180,11 @@ export class AccountsApi extends runtime.BaseAPI {
168
180
  }
169
181
  }
170
182
  const response = await this.request({
171
- path: `/accounts/{accountId}/financial`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters.accountId))),
183
+ path: `/accounts/{accountId}/financial`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
172
184
  method: 'PUT',
173
185
  headers: headerParameters,
174
186
  query: queryParameters,
175
- body: AccountFinancialInputToJSON(requestParameters.accountFinancialInput),
187
+ body: AccountFinancialInputToJSON(requestParameters['accountFinancialInput']),
176
188
  }, initOverrides);
177
189
 
178
190
  return new runtime.VoidApiResponse(response);
@@ -189,12 +201,18 @@ export class AccountsApi extends runtime.BaseAPI {
189
201
  *
190
202
  */
191
203
  async updateSettingsRaw(requestParameters: AccountsApiUpdateSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
192
- if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
193
- throw new runtime.RequiredError('accountId','Required parameter requestParameters.accountId was null or undefined when calling updateSettings.');
204
+ if (requestParameters['accountId'] == null) {
205
+ throw new runtime.RequiredError(
206
+ 'accountId',
207
+ 'Required parameter "accountId" was null or undefined when calling updateSettings().'
208
+ );
194
209
  }
195
210
 
196
- if (requestParameters.accountSettingsInput === null || requestParameters.accountSettingsInput === undefined) {
197
- throw new runtime.RequiredError('accountSettingsInput','Required parameter requestParameters.accountSettingsInput was null or undefined when calling updateSettings.');
211
+ if (requestParameters['accountSettingsInput'] == null) {
212
+ throw new runtime.RequiredError(
213
+ 'accountSettingsInput',
214
+ 'Required parameter "accountSettingsInput" was null or undefined when calling updateSettings().'
215
+ );
198
216
  }
199
217
 
200
218
  const queryParameters: any = {};
@@ -212,11 +230,11 @@ export class AccountsApi extends runtime.BaseAPI {
212
230
  }
213
231
  }
214
232
  const response = await this.request({
215
- path: `/accounts/{accountId}/settings`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters.accountId))),
233
+ path: `/accounts/{accountId}/settings`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
216
234
  method: 'PUT',
217
235
  headers: headerParameters,
218
236
  query: queryParameters,
219
- body: AccountSettingsInputToJSON(requestParameters.accountSettingsInput),
237
+ body: AccountSettingsInputToJSON(requestParameters['accountSettingsInput']),
220
238
  }, initOverrides);
221
239
 
222
240
  return new runtime.VoidApiResponse(response);
@@ -44,8 +44,11 @@ export class AuthApi extends runtime.BaseAPI {
44
44
  *
45
45
  */
46
46
  async loginRaw(requestParameters: AuthApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenDto>> {
47
- if (requestParameters.loginInput === null || requestParameters.loginInput === undefined) {
48
- throw new runtime.RequiredError('loginInput','Required parameter requestParameters.loginInput was null or undefined when calling login.');
47
+ if (requestParameters['loginInput'] == null) {
48
+ throw new runtime.RequiredError(
49
+ 'loginInput',
50
+ 'Required parameter "loginInput" was null or undefined when calling login().'
51
+ );
49
52
  }
50
53
 
51
54
  const queryParameters: any = {};
@@ -59,7 +62,7 @@ export class AuthApi extends runtime.BaseAPI {
59
62
  method: 'POST',
60
63
  headers: headerParameters,
61
64
  query: queryParameters,
62
- body: LoginInputToJSON(requestParameters.loginInput),
65
+ body: LoginInputToJSON(requestParameters['loginInput']),
63
66
  }, initOverrides);
64
67
 
65
68
  return new runtime.JSONApiResponse(response, (jsonValue) => TokenDtoFromJSON(jsonValue));