@randock/nameshift-api-client 0.0.41 → 0.0.43

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 (219) hide show
  1. package/.openapi-generator/FILES +4 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/dist/apis/AdminApi.d.ts +1 -14
  5. package/dist/apis/AdminApi.js +6 -65
  6. package/dist/apis/DomainsApi.d.ts +24 -1
  7. package/dist/apis/DomainsApi.js +118 -9
  8. package/dist/models/AccountAddressDto.d.ts +1 -1
  9. package/dist/models/AccountAddressDto.js +5 -5
  10. package/dist/models/AccountAddressInput.d.ts +1 -1
  11. package/dist/models/AccountAddressInput.js +5 -5
  12. package/dist/models/AccountDto.d.ts +1 -1
  13. package/dist/models/AccountDto.js +2 -2
  14. package/dist/models/AccountFinancialInput.d.ts +1 -1
  15. package/dist/models/AccountFinancialInput.js +4 -4
  16. package/dist/models/AccountSettingsInput.d.ts +1 -1
  17. package/dist/models/AdminGetAllDomainTransfers200Response.d.ts +1 -1
  18. package/dist/models/AdminGetAllDomainTransfers200Response.js +3 -3
  19. package/dist/models/BatchUpdateDomainsInput.d.ts +1 -1
  20. package/dist/models/BatchUpdateDomainsInput.js +2 -2
  21. package/dist/models/BuyDomainInput.d.ts +1 -1
  22. package/dist/models/BuyDomainInput.js +10 -10
  23. package/dist/models/ChangeOrderStatusInput.d.ts +1 -1
  24. package/dist/models/ChangeOrderStatusInput.js +1 -1
  25. package/dist/models/ConflictException.d.ts +1 -1
  26. package/dist/models/ConflictException.js +4 -4
  27. package/dist/models/CreateLeadInput.d.ts +1 -1
  28. package/dist/models/CreateLeadInput.js +8 -8
  29. package/dist/models/CreateLeadMessageInput.d.ts +1 -1
  30. package/dist/models/CreateLeadMessageInput.js +1 -1
  31. package/dist/models/DashboardStatsDto.d.ts +1 -1
  32. package/dist/models/DashboardStatsDto.js +3 -3
  33. package/dist/models/DeleteDomainsInput.d.ts +1 -1
  34. package/dist/models/DeleteDomainsInput.js +1 -1
  35. package/dist/models/DomainDto.d.ts +1 -1
  36. package/dist/models/DomainDto.js +8 -8
  37. package/dist/models/DomainSalesInformationDto.d.ts +1 -1
  38. package/dist/models/DomainSalesInformationDto.js +4 -4
  39. package/dist/models/DomainSellerDto.d.ts +1 -1
  40. package/dist/models/DomainSellerDto.js +3 -3
  41. package/dist/models/DomainTransferAgentDto.d.ts +1 -1
  42. package/dist/models/DomainTransferAgentDto.js +2 -2
  43. package/dist/models/DomainTransferDomainDto.d.ts +1 -1
  44. package/dist/models/DomainTransferDomainDto.js +3 -3
  45. package/dist/models/DomainTransferDto.d.ts +1 -1
  46. package/dist/models/DomainTransferDto.js +6 -6
  47. package/dist/models/DomainTransferDtoAgent.d.ts +1 -1
  48. package/dist/models/DomainTransferDtoAgent.js +2 -2
  49. package/dist/models/DomainTransferOrderDto.d.ts +1 -1
  50. package/dist/models/DomainTransferOrderDto.js +3 -3
  51. package/dist/models/ForgotPasswordRequestInput.d.ts +1 -1
  52. package/dist/models/ForgotPasswordRequestInput.js +1 -1
  53. package/dist/models/GetAllDomainTransfers200Response.d.ts +4 -4
  54. package/dist/models/GetAllDomainTransfers200Response.js +6 -6
  55. package/dist/models/HttpException.d.ts +1 -1
  56. package/dist/models/HttpException.js +3 -3
  57. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +1 -1
  58. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js +5 -5
  59. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +1 -1
  60. package/dist/models/IntersectionDomainDtoWithAccountDto.js +9 -9
  61. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +1 -1
  62. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +10 -10
  63. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +1 -1
  64. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +6 -6
  65. package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +1 -1
  66. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +12 -12
  67. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.d.ts +1 -1
  68. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +1 -1
  69. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.d.ts +1 -1
  70. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +2 -2
  71. package/dist/models/LeadMessageData.d.ts +1 -1
  72. package/dist/models/LeadMessageData.js +1 -1
  73. package/dist/models/LeadMessageDto.d.ts +1 -1
  74. package/dist/models/LeadMessageDto.js +7 -7
  75. package/dist/models/LeadMessageDtoData.d.ts +1 -1
  76. package/dist/models/LeadMessageDtoData.js +1 -1
  77. package/dist/models/LeadStatusDto.d.ts +1 -1
  78. package/dist/models/LeadStatusDto.js +1 -1
  79. package/dist/models/List200Response.d.ts +1 -1
  80. package/dist/models/List200Response.js +3 -3
  81. package/dist/models/ListAccountDto.d.ts +1 -1
  82. package/dist/models/ListAccountDto.js +4 -4
  83. package/dist/models/ListAccounts200Response.d.ts +1 -1
  84. package/dist/models/ListAccounts200Response.js +3 -3
  85. package/dist/models/ListLeadMessagesDto.d.ts +1 -1
  86. package/dist/models/ListLeadMessagesDto.js +1 -1
  87. package/dist/models/LoginDto.d.ts +1 -1
  88. package/dist/models/LoginDto.js +2 -2
  89. package/dist/models/LoginInput.d.ts +1 -1
  90. package/dist/models/LoginInput.js +2 -2
  91. package/dist/models/MoneyDto.d.ts +1 -1
  92. package/dist/models/MoneyDto.js +2 -2
  93. package/dist/models/MoneyInput.d.ts +1 -1
  94. package/dist/models/MoneyInput.js +2 -2
  95. package/dist/models/NotFoundException.d.ts +1 -1
  96. package/dist/models/NotFoundException.js +3 -3
  97. package/dist/models/ObjectId.d.ts +1 -1
  98. package/dist/models/ObjectId.js +1 -1
  99. package/dist/models/PaginateResponse.d.ts +1 -1
  100. package/dist/models/PaginateResponse.js +3 -3
  101. package/dist/models/PaginateResponseLinks.d.ts +1 -1
  102. package/dist/models/PaginateResponseMeta.d.ts +1 -1
  103. package/dist/models/PutLeadInput.d.ts +1 -1
  104. package/dist/models/PutLeadInput.js +1 -1
  105. package/dist/models/RegisterAccountInput.d.ts +1 -1
  106. package/dist/models/RegisterAccountInput.js +4 -4
  107. package/dist/models/RelatedSellerDomain.d.ts +1 -1
  108. package/dist/models/RelatedSellerDomain.js +4 -4
  109. package/dist/models/SecurityUserDto.d.ts +1 -1
  110. package/dist/models/SecurityUserDto.js +6 -6
  111. package/dist/models/SellerDomainTransferAuthCodeDto.d.ts +37 -0
  112. package/dist/models/SellerDomainTransferAuthCodeDto.js +51 -0
  113. package/dist/models/SellerDomainTransferDomainDto.d.ts +1 -1
  114. package/dist/models/SellerDomainTransferDomainDto.js +3 -3
  115. package/dist/models/SellerDomainTransferDto.d.ts +18 -11
  116. package/dist/models/SellerDomainTransferDto.js +19 -14
  117. package/dist/models/SellerDomainTransferDtoAuthCode.d.ts +37 -0
  118. package/dist/models/SellerDomainTransferDtoAuthCode.js +51 -0
  119. package/dist/models/SellerDomainTransferListItemDomainDto.d.ts +43 -0
  120. package/dist/models/SellerDomainTransferListItemDomainDto.js +55 -0
  121. package/dist/models/SellerDomainTransferListItemDto.d.ts +74 -0
  122. package/dist/models/SellerDomainTransferListItemDto.js +80 -0
  123. package/dist/models/SetNewPasswordInput.d.ts +1 -1
  124. package/dist/models/SetNewPasswordInput.js +1 -1
  125. package/dist/models/ThrottlerException.d.ts +1 -1
  126. package/dist/models/ThrottlerException.js +3 -3
  127. package/dist/models/UpdateDomainInput.d.ts +1 -1
  128. package/dist/models/UpdateDomainTransferAuthCodeInput.d.ts +1 -1
  129. package/dist/models/UpdateDomainTransferAuthCodeInput.js +2 -2
  130. package/dist/models/UserPasswordResetDto.d.ts +1 -1
  131. package/dist/models/UserPasswordResetDto.js +2 -2
  132. package/dist/models/ValidationError.d.ts +1 -1
  133. package/dist/models/ValidationError.js +3 -3
  134. package/dist/models/ValidationException.d.ts +1 -1
  135. package/dist/models/ValidationException.js +3 -3
  136. package/dist/models/VerifyLeadInput.d.ts +1 -1
  137. package/dist/models/VerifyLeadInput.js +1 -1
  138. package/dist/models/WithFinancialDtoInner.d.ts +1 -1
  139. package/dist/models/WithFinancialDtoInner.js +4 -4
  140. package/dist/models/WithSettingsInner.d.ts +1 -1
  141. package/dist/models/WithSettingsInner.js +2 -2
  142. package/dist/models/index.d.ts +4 -1
  143. package/dist/models/index.js +4 -1
  144. package/package.json +2 -2
  145. package/src/apis/AdminApi.ts +0 -69
  146. package/src/apis/DomainsApi.ts +106 -0
  147. package/src/models/AccountAddressDto.ts +6 -6
  148. package/src/models/AccountAddressInput.ts +6 -6
  149. package/src/models/AccountDto.ts +3 -3
  150. package/src/models/AccountFinancialInput.ts +5 -5
  151. package/src/models/AccountSettingsInput.ts +1 -1
  152. package/src/models/AdminGetAllDomainTransfers200Response.ts +4 -4
  153. package/src/models/BatchUpdateDomainsInput.ts +3 -3
  154. package/src/models/BuyDomainInput.ts +11 -11
  155. package/src/models/ChangeOrderStatusInput.ts +2 -2
  156. package/src/models/ConflictException.ts +5 -5
  157. package/src/models/CreateLeadInput.ts +9 -9
  158. package/src/models/CreateLeadMessageInput.ts +2 -2
  159. package/src/models/DashboardStatsDto.ts +4 -4
  160. package/src/models/DeleteDomainsInput.ts +2 -2
  161. package/src/models/DomainDto.ts +9 -9
  162. package/src/models/DomainSalesInformationDto.ts +5 -5
  163. package/src/models/DomainSellerDto.ts +4 -4
  164. package/src/models/DomainTransferAgentDto.ts +3 -3
  165. package/src/models/DomainTransferDomainDto.ts +4 -4
  166. package/src/models/DomainTransferDto.ts +7 -7
  167. package/src/models/DomainTransferDtoAgent.ts +3 -3
  168. package/src/models/DomainTransferOrderDto.ts +4 -4
  169. package/src/models/ForgotPasswordRequestInput.ts +2 -2
  170. package/src/models/GetAllDomainTransfers200Response.ts +13 -13
  171. package/src/models/HttpException.ts +4 -4
  172. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +6 -6
  173. package/src/models/IntersectionDomainDtoWithAccountDto.ts +10 -10
  174. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +11 -11
  175. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +7 -7
  176. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +13 -13
  177. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +2 -2
  178. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +3 -3
  179. package/src/models/LeadMessageData.ts +2 -2
  180. package/src/models/LeadMessageDto.ts +8 -8
  181. package/src/models/LeadMessageDtoData.ts +2 -2
  182. package/src/models/LeadStatusDto.ts +2 -2
  183. package/src/models/List200Response.ts +4 -4
  184. package/src/models/ListAccountDto.ts +5 -5
  185. package/src/models/ListAccounts200Response.ts +4 -4
  186. package/src/models/ListLeadMessagesDto.ts +2 -2
  187. package/src/models/LoginDto.ts +3 -3
  188. package/src/models/LoginInput.ts +3 -3
  189. package/src/models/MoneyDto.ts +3 -3
  190. package/src/models/MoneyInput.ts +3 -3
  191. package/src/models/NotFoundException.ts +4 -4
  192. package/src/models/ObjectId.ts +2 -2
  193. package/src/models/PaginateResponse.ts +4 -4
  194. package/src/models/PaginateResponseLinks.ts +1 -1
  195. package/src/models/PaginateResponseMeta.ts +1 -1
  196. package/src/models/PutLeadInput.ts +2 -2
  197. package/src/models/RegisterAccountInput.ts +5 -5
  198. package/src/models/RelatedSellerDomain.ts +5 -5
  199. package/src/models/SecurityUserDto.ts +7 -7
  200. package/src/models/SellerDomainTransferAuthCodeDto.ts +70 -0
  201. package/src/models/SellerDomainTransferDomainDto.ts +4 -4
  202. package/src/models/SellerDomainTransferDto.ts +34 -19
  203. package/src/models/SellerDomainTransferDtoAuthCode.ts +70 -0
  204. package/src/models/SellerDomainTransferListItemDomainDto.ts +79 -0
  205. package/src/models/SellerDomainTransferListItemDto.ts +126 -0
  206. package/src/models/SetNewPasswordInput.ts +2 -2
  207. package/src/models/ThrottlerException.ts +4 -4
  208. package/src/models/UpdateDomainInput.ts +1 -1
  209. package/src/models/UpdateDomainTransferAuthCodeInput.ts +3 -3
  210. package/src/models/UserPasswordResetDto.ts +3 -3
  211. package/src/models/ValidationError.ts +4 -4
  212. package/src/models/ValidationException.ts +4 -4
  213. package/src/models/VerifyLeadInput.ts +2 -2
  214. package/src/models/WithFinancialDtoInner.ts +5 -5
  215. package/src/models/WithSettingsInner.ts +3 -3
  216. package/src/models/index.ts +4 -1
  217. package/dist/models/ForbiddenException.d.ts +0 -43
  218. package/dist/models/ForbiddenException.js +0 -55
  219. package/src/models/ForbiddenException.ts +0 -79
@@ -18,11 +18,11 @@ exports.ThrottlerExceptionToJSON = exports.ThrottlerExceptionFromJSONTyped = exp
18
18
  * Check if a given object implements the ThrottlerException interface.
19
19
  */
20
20
  function instanceOfThrottlerException(value) {
21
- if (!('name' in value))
21
+ if (!('name' in value) || value['name'] === undefined)
22
22
  return false;
23
- if (!('statusCode' in value))
23
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
24
24
  return false;
25
- if (!('message' in value))
25
+ if (!('message' in value) || value['message'] === undefined)
26
26
  return false;
27
27
  return true;
28
28
  }
@@ -32,7 +32,7 @@ export interface UpdateDomainInput {
32
32
  /**
33
33
  * Check if a given object implements the UpdateDomainInput interface.
34
34
  */
35
- export declare function instanceOfUpdateDomainInput(value: object): boolean;
35
+ export declare function instanceOfUpdateDomainInput(value: object): value is UpdateDomainInput;
36
36
  export declare function UpdateDomainInputFromJSON(json: any): UpdateDomainInput;
37
37
  export declare function UpdateDomainInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDomainInput;
38
38
  export declare function UpdateDomainInputToJSON(value?: UpdateDomainInput | null): any;
@@ -31,7 +31,7 @@ export interface UpdateDomainTransferAuthCodeInput {
31
31
  /**
32
32
  * Check if a given object implements the UpdateDomainTransferAuthCodeInput interface.
33
33
  */
34
- export declare function instanceOfUpdateDomainTransferAuthCodeInput(value: object): boolean;
34
+ export declare function instanceOfUpdateDomainTransferAuthCodeInput(value: object): value is UpdateDomainTransferAuthCodeInput;
35
35
  export declare function UpdateDomainTransferAuthCodeInputFromJSON(json: any): UpdateDomainTransferAuthCodeInput;
36
36
  export declare function UpdateDomainTransferAuthCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDomainTransferAuthCodeInput;
37
37
  export declare function UpdateDomainTransferAuthCodeInputToJSON(value?: UpdateDomainTransferAuthCodeInput | null): any;
@@ -18,9 +18,9 @@ exports.UpdateDomainTransferAuthCodeInputToJSON = exports.UpdateDomainTransferAu
18
18
  * Check if a given object implements the UpdateDomainTransferAuthCodeInput interface.
19
19
  */
20
20
  function instanceOfUpdateDomainTransferAuthCodeInput(value) {
21
- if (!('authCode' in value))
21
+ if (!('authCode' in value) || value['authCode'] === undefined)
22
22
  return false;
23
- if (!('expiryDate' in value))
23
+ if (!('expiryDate' in value) || value['expiryDate'] === undefined)
24
24
  return false;
25
25
  return true;
26
26
  }
@@ -39,7 +39,7 @@ export type UserPasswordResetDtoStatusEnum = typeof UserPasswordResetDtoStatusEn
39
39
  /**
40
40
  * Check if a given object implements the UserPasswordResetDto interface.
41
41
  */
42
- export declare function instanceOfUserPasswordResetDto(value: object): boolean;
42
+ export declare function instanceOfUserPasswordResetDto(value: object): value is UserPasswordResetDto;
43
43
  export declare function UserPasswordResetDtoFromJSON(json: any): UserPasswordResetDto;
44
44
  export declare function UserPasswordResetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPasswordResetDto;
45
45
  export declare function UserPasswordResetDtoToJSON(value?: UserPasswordResetDto | null): any;
@@ -25,9 +25,9 @@ exports.UserPasswordResetDtoStatusEnum = {
25
25
  * Check if a given object implements the UserPasswordResetDto interface.
26
26
  */
27
27
  function instanceOfUserPasswordResetDto(value) {
28
- if (!('id' in value))
28
+ if (!('id' in value) || value['id'] === undefined)
29
29
  return false;
30
- if (!('status' in value))
30
+ if (!('status' in value) || value['status'] === undefined)
31
31
  return false;
32
32
  return true;
33
33
  }
@@ -37,7 +37,7 @@ export interface ValidationError {
37
37
  /**
38
38
  * Check if a given object implements the ValidationError interface.
39
39
  */
40
- export declare function instanceOfValidationError(value: object): boolean;
40
+ export declare function instanceOfValidationError(value: object): value is ValidationError;
41
41
  export declare function ValidationErrorFromJSON(json: any): ValidationError;
42
42
  export declare function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError;
43
43
  export declare function ValidationErrorToJSON(value?: ValidationError | null): any;
@@ -18,11 +18,11 @@ exports.ValidationErrorToJSON = exports.ValidationErrorFromJSONTyped = exports.V
18
18
  * Check if a given object implements the ValidationError interface.
19
19
  */
20
20
  function instanceOfValidationError(value) {
21
- if (!('code' in value))
21
+ if (!('code' in value) || value['code'] === undefined)
22
22
  return false;
23
- if (!('property' in value))
23
+ if (!('property' in value) || value['property'] === undefined)
24
24
  return false;
25
- if (!('message' in value))
25
+ if (!('message' in value) || value['message'] === undefined)
26
26
  return false;
27
27
  return true;
28
28
  }
@@ -38,7 +38,7 @@ export interface ValidationException {
38
38
  /**
39
39
  * Check if a given object implements the ValidationException interface.
40
40
  */
41
- export declare function instanceOfValidationException(value: object): boolean;
41
+ export declare function instanceOfValidationException(value: object): value is ValidationException;
42
42
  export declare function ValidationExceptionFromJSON(json: any): ValidationException;
43
43
  export declare function ValidationExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationException;
44
44
  export declare function ValidationExceptionToJSON(value?: ValidationException | null): any;
@@ -19,11 +19,11 @@ var ValidationError_1 = require("./ValidationError");
19
19
  * Check if a given object implements the ValidationException interface.
20
20
  */
21
21
  function instanceOfValidationException(value) {
22
- if (!('name' in value))
22
+ if (!('name' in value) || value['name'] === undefined)
23
23
  return false;
24
- if (!('statusCode' in value))
24
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
25
25
  return false;
26
- if (!('errors' in value))
26
+ if (!('errors' in value) || value['errors'] === undefined)
27
27
  return false;
28
28
  return true;
29
29
  }
@@ -25,7 +25,7 @@ export interface VerifyLeadInput {
25
25
  /**
26
26
  * Check if a given object implements the VerifyLeadInput interface.
27
27
  */
28
- export declare function instanceOfVerifyLeadInput(value: object): boolean;
28
+ export declare function instanceOfVerifyLeadInput(value: object): value is VerifyLeadInput;
29
29
  export declare function VerifyLeadInputFromJSON(json: any): VerifyLeadInput;
30
30
  export declare function VerifyLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyLeadInput;
31
31
  export declare function VerifyLeadInputToJSON(value?: VerifyLeadInput | null): any;
@@ -18,7 +18,7 @@ exports.VerifyLeadInputToJSON = exports.VerifyLeadInputFromJSONTyped = exports.V
18
18
  * Check if a given object implements the VerifyLeadInput interface.
19
19
  */
20
20
  function instanceOfVerifyLeadInput(value) {
21
- if (!('verificationCode' in value))
21
+ if (!('verificationCode' in value) || value['verificationCode'] === undefined)
22
22
  return false;
23
23
  return true;
24
24
  }
@@ -43,7 +43,7 @@ export interface WithFinancialDtoInner {
43
43
  /**
44
44
  * Check if a given object implements the WithFinancialDtoInner interface.
45
45
  */
46
- export declare function instanceOfWithFinancialDtoInner(value: object): boolean;
46
+ export declare function instanceOfWithFinancialDtoInner(value: object): value is WithFinancialDtoInner;
47
47
  export declare function WithFinancialDtoInnerFromJSON(json: any): WithFinancialDtoInner;
48
48
  export declare function WithFinancialDtoInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithFinancialDtoInner;
49
49
  export declare function WithFinancialDtoInnerToJSON(value?: WithFinancialDtoInner | null): any;
@@ -18,13 +18,13 @@ exports.WithFinancialDtoInnerToJSON = exports.WithFinancialDtoInnerFromJSONTyped
18
18
  * Check if a given object implements the WithFinancialDtoInner interface.
19
19
  */
20
20
  function instanceOfWithFinancialDtoInner(value) {
21
- if (!('company' in value))
21
+ if (!('company' in value) || value['company'] === undefined)
22
22
  return false;
23
- if (!('companyName' in value))
23
+ if (!('companyName' in value) || value['companyName'] === undefined)
24
24
  return false;
25
- if (!('companyVatNumber' in value))
25
+ if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined)
26
26
  return false;
27
- if (!('companyRegistrationNumber' in value))
27
+ if (!('companyRegistrationNumber' in value) || value['companyRegistrationNumber'] === undefined)
28
28
  return false;
29
29
  return true;
30
30
  }
@@ -32,7 +32,7 @@ export interface WithSettingsInner {
32
32
  /**
33
33
  * Check if a given object implements the WithSettingsInner interface.
34
34
  */
35
- export declare function instanceOfWithSettingsInner(value: object): boolean;
35
+ export declare function instanceOfWithSettingsInner(value: object): value is WithSettingsInner;
36
36
  export declare function WithSettingsInnerFromJSON(json: any): WithSettingsInner;
37
37
  export declare function WithSettingsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithSettingsInner;
38
38
  export declare function WithSettingsInnerToJSON(value?: WithSettingsInner | null): any;
@@ -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
- if (!('defaultCurrencyCode' in value))
22
+ if (!('defaultCurrencyCode' in value) || value['defaultCurrencyCode'] === undefined)
23
23
  return false;
24
- if (!('defaultStartingOffer' in value))
24
+ if (!('defaultStartingOffer' in value) || value['defaultStartingOffer'] === undefined)
25
25
  return false;
26
26
  return true;
27
27
  }
@@ -20,7 +20,6 @@ export * from './DomainTransferDomainDto';
20
20
  export * from './DomainTransferDto';
21
21
  export * from './DomainTransferDtoAgent';
22
22
  export * from './DomainTransferOrderDto';
23
- export * from './ForbiddenException';
24
23
  export * from './ForgotPasswordRequestInput';
25
24
  export * from './GetAllDomainTransfers200Response';
26
25
  export * from './HttpException';
@@ -52,8 +51,12 @@ export * from './PutLeadInput';
52
51
  export * from './RegisterAccountInput';
53
52
  export * from './RelatedSellerDomain';
54
53
  export * from './SecurityUserDto';
54
+ export * from './SellerDomainTransferAuthCodeDto';
55
55
  export * from './SellerDomainTransferDomainDto';
56
56
  export * from './SellerDomainTransferDto';
57
+ export * from './SellerDomainTransferDtoAuthCode';
58
+ export * from './SellerDomainTransferListItemDomainDto';
59
+ export * from './SellerDomainTransferListItemDto';
57
60
  export * from './SetNewPasswordInput';
58
61
  export * from './ThrottlerException';
59
62
  export * from './UpdateDomainInput';
@@ -38,7 +38,6 @@ __exportStar(require("./DomainTransferDomainDto"), exports);
38
38
  __exportStar(require("./DomainTransferDto"), exports);
39
39
  __exportStar(require("./DomainTransferDtoAgent"), exports);
40
40
  __exportStar(require("./DomainTransferOrderDto"), exports);
41
- __exportStar(require("./ForbiddenException"), exports);
42
41
  __exportStar(require("./ForgotPasswordRequestInput"), exports);
43
42
  __exportStar(require("./GetAllDomainTransfers200Response"), exports);
44
43
  __exportStar(require("./HttpException"), exports);
@@ -70,8 +69,12 @@ __exportStar(require("./PutLeadInput"), exports);
70
69
  __exportStar(require("./RegisterAccountInput"), exports);
71
70
  __exportStar(require("./RelatedSellerDomain"), exports);
72
71
  __exportStar(require("./SecurityUserDto"), exports);
72
+ __exportStar(require("./SellerDomainTransferAuthCodeDto"), exports);
73
73
  __exportStar(require("./SellerDomainTransferDomainDto"), exports);
74
74
  __exportStar(require("./SellerDomainTransferDto"), exports);
75
+ __exportStar(require("./SellerDomainTransferDtoAuthCode"), exports);
76
+ __exportStar(require("./SellerDomainTransferListItemDomainDto"), exports);
77
+ __exportStar(require("./SellerDomainTransferListItemDto"), exports);
75
78
  __exportStar(require("./SetNewPasswordInput"), exports);
76
79
  __exportStar(require("./ThrottlerException"), exports);
77
80
  __exportStar(require("./UpdateDomainInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -14,6 +14,6 @@
14
14
  "prepare": "npm run build"
15
15
  },
16
16
  "devDependencies": {
17
- "typescript": "^4.0"
17
+ "typescript": "^4.0 || ^5.0"
18
18
  }
19
19
  }
@@ -17,11 +17,9 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  AdminGetAllDomainTransfers200Response,
19
19
  ChangeOrderStatusInput,
20
- ForbiddenException,
21
20
  ListAccounts200Response,
22
21
  NotFoundException,
23
22
  ThrottlerException,
24
- UpdateDomainTransferAuthCodeInput,
25
23
  ValidationException,
26
24
  } from '../models/index';
27
25
  import {
@@ -29,26 +27,16 @@ import {
29
27
  AdminGetAllDomainTransfers200ResponseToJSON,
30
28
  ChangeOrderStatusInputFromJSON,
31
29
  ChangeOrderStatusInputToJSON,
32
- ForbiddenExceptionFromJSON,
33
- ForbiddenExceptionToJSON,
34
30
  ListAccounts200ResponseFromJSON,
35
31
  ListAccounts200ResponseToJSON,
36
32
  NotFoundExceptionFromJSON,
37
33
  NotFoundExceptionToJSON,
38
34
  ThrottlerExceptionFromJSON,
39
35
  ThrottlerExceptionToJSON,
40
- UpdateDomainTransferAuthCodeInputFromJSON,
41
- UpdateDomainTransferAuthCodeInputToJSON,
42
36
  ValidationExceptionFromJSON,
43
37
  ValidationExceptionToJSON,
44
38
  } from '../models/index';
45
39
 
46
- export interface AdminApiAdminChangeDomainTransferAuthCodeRequest {
47
- domainId: string;
48
- transferId: string;
49
- updateDomainTransferAuthCodeInput: UpdateDomainTransferAuthCodeInput;
50
- }
51
-
52
40
  export interface AdminApiAdminGetAllDomainTransfersRequest {
53
41
  filter?: object;
54
42
  page?: number;
@@ -73,63 +61,6 @@ export interface AdminApiListAccountsRequest {
73
61
  */
74
62
  export class AdminApi extends runtime.BaseAPI {
75
63
 
76
- /**
77
- *
78
- */
79
- async adminChangeDomainTransferAuthCodeRaw(requestParameters: AdminApiAdminChangeDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
80
- if (requestParameters['domainId'] == null) {
81
- throw new runtime.RequiredError(
82
- 'domainId',
83
- 'Required parameter "domainId" was null or undefined when calling adminChangeDomainTransferAuthCode().'
84
- );
85
- }
86
-
87
- if (requestParameters['transferId'] == null) {
88
- throw new runtime.RequiredError(
89
- 'transferId',
90
- 'Required parameter "transferId" was null or undefined when calling adminChangeDomainTransferAuthCode().'
91
- );
92
- }
93
-
94
- if (requestParameters['updateDomainTransferAuthCodeInput'] == null) {
95
- throw new runtime.RequiredError(
96
- 'updateDomainTransferAuthCodeInput',
97
- 'Required parameter "updateDomainTransferAuthCodeInput" was null or undefined when calling adminChangeDomainTransferAuthCode().'
98
- );
99
- }
100
-
101
- const queryParameters: any = {};
102
-
103
- const headerParameters: runtime.HTTPHeaders = {};
104
-
105
- headerParameters['Content-Type'] = 'application/json';
106
-
107
- if (this.configuration && this.configuration.accessToken) {
108
- const token = this.configuration.accessToken;
109
- const tokenString = await token("bearer", []);
110
-
111
- if (tokenString) {
112
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
113
- }
114
- }
115
- const response = await this.request({
116
- path: `/admin/domains/{domainId}/transfers/{transferId}/auth-code`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))).replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
117
- method: 'PATCH',
118
- headers: headerParameters,
119
- query: queryParameters,
120
- body: UpdateDomainTransferAuthCodeInputToJSON(requestParameters['updateDomainTransferAuthCodeInput']),
121
- }, initOverrides);
122
-
123
- return new runtime.VoidApiResponse(response);
124
- }
125
-
126
- /**
127
- *
128
- */
129
- async adminChangeDomainTransferAuthCode(requestParameters: AdminApiAdminChangeDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
130
- await this.adminChangeDomainTransferAuthCodeRaw(requestParameters, initOverrides);
131
- }
132
-
133
64
  /**
134
65
  *
135
66
  */
@@ -22,8 +22,10 @@ import type {
22
22
  IntersectionDomainDtoWithHijackerDtoWithAccountDto,
23
23
  List200Response,
24
24
  NotFoundException,
25
+ SellerDomainTransferDto,
25
26
  ThrottlerException,
26
27
  UpdateDomainInput,
28
+ UpdateDomainTransferAuthCodeInput,
27
29
  ValidationException,
28
30
  } from '../models/index';
29
31
  import {
@@ -41,10 +43,14 @@ import {
41
43
  List200ResponseToJSON,
42
44
  NotFoundExceptionFromJSON,
43
45
  NotFoundExceptionToJSON,
46
+ SellerDomainTransferDtoFromJSON,
47
+ SellerDomainTransferDtoToJSON,
44
48
  ThrottlerExceptionFromJSON,
45
49
  ThrottlerExceptionToJSON,
46
50
  UpdateDomainInputFromJSON,
47
51
  UpdateDomainInputToJSON,
52
+ UpdateDomainTransferAuthCodeInputFromJSON,
53
+ UpdateDomainTransferAuthCodeInputToJSON,
48
54
  ValidationExceptionFromJSON,
49
55
  ValidationExceptionToJSON,
50
56
  } from '../models/index';
@@ -77,6 +83,10 @@ export interface DomainsApiGetAllDomainTransfersRequest {
77
83
  sortBy?: Array<string>;
78
84
  }
79
85
 
86
+ export interface DomainsApiGetDomainTransferRequest {
87
+ transferId: string;
88
+ }
89
+
80
90
  export interface DomainsApiListRequest {
81
91
  filter?: object;
82
92
  page?: number;
@@ -89,6 +99,11 @@ export interface DomainsApiUpdateRequest {
89
99
  updateDomainInput: UpdateDomainInput;
90
100
  }
91
101
 
102
+ export interface DomainsApiUpdateDomainTransferAuthCodeRequest {
103
+ transferId: string;
104
+ updateDomainTransferAuthCodeInput: UpdateDomainTransferAuthCodeInput;
105
+ }
106
+
92
107
  /**
93
108
  *
94
109
  */
@@ -369,6 +384,47 @@ export class DomainsApi extends runtime.BaseAPI {
369
384
  return await response.value();
370
385
  }
371
386
 
387
+ /**
388
+ *
389
+ */
390
+ async getDomainTransferRaw(requestParameters: DomainsApiGetDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SellerDomainTransferDto>> {
391
+ if (requestParameters['transferId'] == null) {
392
+ throw new runtime.RequiredError(
393
+ 'transferId',
394
+ 'Required parameter "transferId" was null or undefined when calling getDomainTransfer().'
395
+ );
396
+ }
397
+
398
+ const queryParameters: any = {};
399
+
400
+ const headerParameters: runtime.HTTPHeaders = {};
401
+
402
+ if (this.configuration && this.configuration.accessToken) {
403
+ const token = this.configuration.accessToken;
404
+ const tokenString = await token("bearer", []);
405
+
406
+ if (tokenString) {
407
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
408
+ }
409
+ }
410
+ const response = await this.request({
411
+ path: `/domains/transfers/{transferId}`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
412
+ method: 'GET',
413
+ headers: headerParameters,
414
+ query: queryParameters,
415
+ }, initOverrides);
416
+
417
+ return new runtime.JSONApiResponse(response, (jsonValue) => SellerDomainTransferDtoFromJSON(jsonValue));
418
+ }
419
+
420
+ /**
421
+ *
422
+ */
423
+ async getDomainTransfer(requestParameters: DomainsApiGetDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerDomainTransferDto> {
424
+ const response = await this.getDomainTransferRaw(requestParameters, initOverrides);
425
+ return await response.value();
426
+ }
427
+
372
428
  /**
373
429
  *
374
430
  */
@@ -470,4 +526,54 @@ export class DomainsApi extends runtime.BaseAPI {
470
526
  return await response.value();
471
527
  }
472
528
 
529
+ /**
530
+ *
531
+ */
532
+ async updateDomainTransferAuthCodeRaw(requestParameters: DomainsApiUpdateDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
533
+ if (requestParameters['transferId'] == null) {
534
+ throw new runtime.RequiredError(
535
+ 'transferId',
536
+ 'Required parameter "transferId" was null or undefined when calling updateDomainTransferAuthCode().'
537
+ );
538
+ }
539
+
540
+ if (requestParameters['updateDomainTransferAuthCodeInput'] == null) {
541
+ throw new runtime.RequiredError(
542
+ 'updateDomainTransferAuthCodeInput',
543
+ 'Required parameter "updateDomainTransferAuthCodeInput" was null or undefined when calling updateDomainTransferAuthCode().'
544
+ );
545
+ }
546
+
547
+ const queryParameters: any = {};
548
+
549
+ const headerParameters: runtime.HTTPHeaders = {};
550
+
551
+ headerParameters['Content-Type'] = 'application/json';
552
+
553
+ if (this.configuration && this.configuration.accessToken) {
554
+ const token = this.configuration.accessToken;
555
+ const tokenString = await token("bearer", []);
556
+
557
+ if (tokenString) {
558
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
559
+ }
560
+ }
561
+ const response = await this.request({
562
+ path: `/domains/transfers/{transferId}/auth-code`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
563
+ method: 'PATCH',
564
+ headers: headerParameters,
565
+ query: queryParameters,
566
+ body: UpdateDomainTransferAuthCodeInputToJSON(requestParameters['updateDomainTransferAuthCodeInput']),
567
+ }, initOverrides);
568
+
569
+ return new runtime.VoidApiResponse(response);
570
+ }
571
+
572
+ /**
573
+ *
574
+ */
575
+ async updateDomainTransferAuthCode(requestParameters: DomainsApiUpdateDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
576
+ await this.updateDomainTransferAuthCodeRaw(requestParameters, initOverrides);
577
+ }
578
+
473
579
  }
@@ -70,12 +70,12 @@ export type AccountAddressDtoTypeEnum = typeof AccountAddressDtoTypeEnum[keyof t
70
70
  /**
71
71
  * Check if a given object implements the AccountAddressDto interface.
72
72
  */
73
- export function instanceOfAccountAddressDto(value: object): boolean {
74
- if (!('type' in value)) return false;
75
- if (!('address' in value)) return false;
76
- if (!('postalCode' in value)) return false;
77
- if (!('city' in value)) return false;
78
- if (!('country' in value)) return false;
73
+ export function instanceOfAccountAddressDto(value: object): value is AccountAddressDto {
74
+ if (!('type' in value) || value['type'] === undefined) return false;
75
+ if (!('address' in value) || value['address'] === undefined) return false;
76
+ if (!('postalCode' in value) || value['postalCode'] === undefined) return false;
77
+ if (!('city' in value) || value['city'] === undefined) return false;
78
+ if (!('country' in value) || value['country'] === undefined) return false;
79
79
  return true;
80
80
  }
81
81
 
@@ -70,12 +70,12 @@ export type AccountAddressInputTypeEnum = typeof AccountAddressInputTypeEnum[key
70
70
  /**
71
71
  * Check if a given object implements the AccountAddressInput interface.
72
72
  */
73
- export function instanceOfAccountAddressInput(value: object): boolean {
74
- if (!('type' in value)) return false;
75
- if (!('address' in value)) return false;
76
- if (!('postalCode' in value)) return false;
77
- if (!('city' in value)) return false;
78
- if (!('country' in value)) return false;
73
+ export function instanceOfAccountAddressInput(value: object): value is AccountAddressInput {
74
+ if (!('type' in value) || value['type'] === undefined) return false;
75
+ if (!('address' in value) || value['address'] === undefined) return false;
76
+ if (!('postalCode' in value) || value['postalCode'] === undefined) return false;
77
+ if (!('city' in value) || value['city'] === undefined) return false;
78
+ if (!('country' in value) || value['country'] === undefined) return false;
79
79
  return true;
80
80
  }
81
81
 
@@ -36,9 +36,9 @@ export interface AccountDto {
36
36
  /**
37
37
  * Check if a given object implements the AccountDto interface.
38
38
  */
39
- export function instanceOfAccountDto(value: object): boolean {
40
- if (!('id' in value)) return false;
41
- if (!('identifier' in value)) return false;
39
+ export function instanceOfAccountDto(value: object): value is AccountDto {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
42
42
  return true;
43
43
  }
44
44
 
@@ -48,11 +48,11 @@ export interface AccountFinancialInput {
48
48
  /**
49
49
  * Check if a given object implements the AccountFinancialInput interface.
50
50
  */
51
- export function instanceOfAccountFinancialInput(value: object): boolean {
52
- if (!('companyName' in value)) return false;
53
- if (!('companyVatNumber' in value)) return false;
54
- if (!('companyRegistrationNumber' in value)) return false;
55
- if (!('company' in value)) return false;
51
+ export function instanceOfAccountFinancialInput(value: object): value is AccountFinancialInput {
52
+ if (!('companyName' in value) || value['companyName'] === undefined) return false;
53
+ if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined) return false;
54
+ if (!('companyRegistrationNumber' in value) || value['companyRegistrationNumber'] === undefined) return false;
55
+ if (!('company' in value) || value['company'] === undefined) return false;
56
56
  return true;
57
57
  }
58
58
 
@@ -43,7 +43,7 @@ export interface AccountSettingsInput {
43
43
  /**
44
44
  * Check if a given object implements the AccountSettingsInput interface.
45
45
  */
46
- export function instanceOfAccountSettingsInput(value: object): boolean {
46
+ export function instanceOfAccountSettingsInput(value: object): value is AccountSettingsInput {
47
47
  return true;
48
48
  }
49
49
 
@@ -61,10 +61,10 @@ export interface AdminGetAllDomainTransfers200Response {
61
61
  /**
62
62
  * Check if a given object implements the AdminGetAllDomainTransfers200Response interface.
63
63
  */
64
- export function instanceOfAdminGetAllDomainTransfers200Response(value: object): boolean {
65
- if (!('data' in value)) return false;
66
- if (!('meta' in value)) return false;
67
- if (!('links' in value)) return false;
64
+ export function instanceOfAdminGetAllDomainTransfers200Response(value: object): value is AdminGetAllDomainTransfers200Response {
65
+ if (!('data' in value) || value['data'] === undefined) return false;
66
+ if (!('meta' in value) || value['meta'] === undefined) return false;
67
+ if (!('links' in value) || value['links'] === undefined) return false;
68
68
  return true;
69
69
  }
70
70
 
@@ -43,9 +43,9 @@ export interface BatchUpdateDomainsInput {
43
43
  /**
44
44
  * Check if a given object implements the BatchUpdateDomainsInput interface.
45
45
  */
46
- export function instanceOfBatchUpdateDomainsInput(value: object): boolean {
47
- if (!('domainIds' in value)) return false;
48
- if (!('update' in value)) return false;
46
+ export function instanceOfBatchUpdateDomainsInput(value: object): value is BatchUpdateDomainsInput {
47
+ if (!('domainIds' in value) || value['domainIds'] === undefined) return false;
48
+ if (!('update' in value) || value['update'] === undefined) return false;
49
49
  return true;
50
50
  }
51
51