@randock/nameshift-api-client 0.0.486 → 0.0.488

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 (91) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +38 -3
  4. package/dist/apis/AdminApi.js +132 -2
  5. package/dist/apis/BuyersApi.d.ts +33 -1
  6. package/dist/apis/BuyersApi.js +121 -0
  7. package/dist/apis/DomainAppraisalRequestsApi.d.ts +50 -0
  8. package/dist/apis/DomainAppraisalRequestsApi.js +217 -0
  9. package/dist/apis/DomainAppraisalRequestsPublicApi.d.ts +86 -0
  10. package/dist/apis/DomainAppraisalRequestsPublicApi.js +321 -0
  11. package/dist/apis/index.d.ts +2 -0
  12. package/dist/apis/index.js +2 -0
  13. package/dist/models/AccountAliasDto.d.ts +18 -3
  14. package/dist/models/AccountAliasDto.js +13 -0
  15. package/dist/models/AccountSettingsAliasDto.d.ts +18 -3
  16. package/dist/models/AccountSettingsAliasDto.js +13 -0
  17. package/dist/models/AdminDomainAppraisalRequestListItemDto.d.ts +118 -0
  18. package/dist/models/AdminDomainAppraisalRequestListItemDto.js +109 -0
  19. package/dist/models/AdminListAccountDto.d.ts +16 -1
  20. package/dist/models/AdminListAccountDto.js +13 -1
  21. package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.d.ts +268 -0
  22. package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.js +237 -0
  23. package/dist/models/BuyerInvoiceDto.d.ts +2 -2
  24. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  25. package/dist/models/BuyerNotificationDto.js +1 -0
  26. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  27. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  28. package/dist/models/BuyerSessionDto.d.ts +6 -0
  29. package/dist/models/BuyerSessionDto.js +4 -0
  30. package/dist/models/CreateAccountPaymentInput.d.ts +1 -0
  31. package/dist/models/CreateAccountPaymentInput.js +2 -1
  32. package/dist/models/CreateBuyerDomainAppraisalRequestInput.d.ts +44 -0
  33. package/dist/models/CreateBuyerDomainAppraisalRequestInput.js +59 -0
  34. package/dist/models/CustomerSuccessListAccountDto.d.ts +16 -1
  35. package/dist/models/CustomerSuccessListAccountDto.js +13 -1
  36. package/dist/models/DomainAppraisalRequestListItemDto.d.ts +82 -0
  37. package/dist/models/DomainAppraisalRequestListItemDto.js +85 -0
  38. package/dist/models/DomainAppraisalRequestStatus.d.ts +27 -0
  39. package/dist/models/DomainAppraisalRequestStatus.js +53 -0
  40. package/dist/models/DomainAppraisalRequester.d.ts +25 -0
  41. package/dist/models/DomainAppraisalRequester.js +51 -0
  42. package/dist/models/DomainSalesInformationDto.d.ts +6 -0
  43. package/dist/models/DomainSalesInformationDto.js +4 -0
  44. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  45. package/dist/models/FeatureFlagListItemDto.js +2 -1
  46. package/dist/models/GetAdminDomainAppraisalRequests200Response.d.ts +47 -0
  47. package/dist/models/GetAdminDomainAppraisalRequests200Response.js +62 -0
  48. package/dist/models/GetBuyerDomainAppraisalRequests200Response.d.ts +47 -0
  49. package/dist/models/GetBuyerDomainAppraisalRequests200Response.js +62 -0
  50. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  51. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  52. package/dist/models/InvoiceDto.d.ts +2 -2
  53. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  54. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  55. package/dist/models/UserNotificationDto.d.ts +1 -0
  56. package/dist/models/UserNotificationDto.js +1 -0
  57. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  58. package/dist/models/UserNotificationListItemDto.js +1 -0
  59. package/dist/models/index.d.ts +8 -0
  60. package/dist/models/index.js +8 -0
  61. package/package.json +1 -1
  62. package/src/apis/AdminApi.ts +130 -2
  63. package/src/apis/BuyersApi.ts +113 -0
  64. package/src/apis/DomainAppraisalRequestsApi.ts +157 -0
  65. package/src/apis/DomainAppraisalRequestsPublicApi.ts +271 -0
  66. package/src/apis/index.ts +2 -0
  67. package/src/models/AccountAliasDto.ts +24 -3
  68. package/src/models/AccountSettingsAliasDto.ts +24 -3
  69. package/src/models/AdminDomainAppraisalRequestListItemDto.ts +209 -0
  70. package/src/models/AdminListAccountDto.ts +20 -1
  71. package/src/models/BuyerDomainAppraisalRequestCheckoutDto.ts +411 -0
  72. package/src/models/BuyerInvoiceDto.ts +2 -2
  73. package/src/models/BuyerNotificationDto.ts +1 -0
  74. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  75. package/src/models/BuyerSessionDto.ts +9 -0
  76. package/src/models/CreateAccountPaymentInput.ts +2 -1
  77. package/src/models/CreateBuyerDomainAppraisalRequestInput.ts +84 -0
  78. package/src/models/CustomerSuccessListAccountDto.ts +20 -1
  79. package/src/models/DomainAppraisalRequestListItemDto.ts +155 -0
  80. package/src/models/DomainAppraisalRequestStatus.ts +55 -0
  81. package/src/models/DomainAppraisalRequester.ts +53 -0
  82. package/src/models/DomainSalesInformationDto.ts +9 -0
  83. package/src/models/FeatureFlagListItemDto.ts +2 -1
  84. package/src/models/GetAdminDomainAppraisalRequests200Response.ts +106 -0
  85. package/src/models/GetBuyerDomainAppraisalRequests200Response.ts +106 -0
  86. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  87. package/src/models/InvoiceDto.ts +2 -2
  88. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  89. package/src/models/UserNotificationDto.ts +1 -0
  90. package/src/models/UserNotificationListItemDto.ts +1 -0
  91. package/src/models/index.ts +8 -0
@@ -0,0 +1,106 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PaginateResponseLinks } from './PaginateResponseLinks';
17
+ import {
18
+ PaginateResponseLinksFromJSON,
19
+ PaginateResponseLinksFromJSONTyped,
20
+ PaginateResponseLinksToJSON,
21
+ PaginateResponseLinksToJSONTyped,
22
+ } from './PaginateResponseLinks';
23
+ import type { DomainAppraisalRequestListItemDto } from './DomainAppraisalRequestListItemDto';
24
+ import {
25
+ DomainAppraisalRequestListItemDtoFromJSON,
26
+ DomainAppraisalRequestListItemDtoFromJSONTyped,
27
+ DomainAppraisalRequestListItemDtoToJSON,
28
+ DomainAppraisalRequestListItemDtoToJSONTyped,
29
+ } from './DomainAppraisalRequestListItemDto';
30
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
31
+ import {
32
+ PaginateResponseMetaFromJSON,
33
+ PaginateResponseMetaFromJSONTyped,
34
+ PaginateResponseMetaToJSON,
35
+ PaginateResponseMetaToJSONTyped,
36
+ } from './PaginateResponseMeta';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface GetBuyerDomainAppraisalRequests200Response
42
+ */
43
+ export interface GetBuyerDomainAppraisalRequests200Response {
44
+ /**
45
+ *
46
+ * @type {Array<DomainAppraisalRequestListItemDto>}
47
+ * @memberof GetBuyerDomainAppraisalRequests200Response
48
+ */
49
+ data: Array<DomainAppraisalRequestListItemDto>;
50
+ /**
51
+ *
52
+ * @type {PaginateResponseMeta}
53
+ * @memberof GetBuyerDomainAppraisalRequests200Response
54
+ */
55
+ meta: PaginateResponseMeta;
56
+ /**
57
+ *
58
+ * @type {PaginateResponseLinks}
59
+ * @memberof GetBuyerDomainAppraisalRequests200Response
60
+ */
61
+ links: PaginateResponseLinks;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the GetBuyerDomainAppraisalRequests200Response interface.
66
+ */
67
+ export function instanceOfGetBuyerDomainAppraisalRequests200Response(value: object): value is GetBuyerDomainAppraisalRequests200Response {
68
+ if (!('data' in value) || value['data'] === undefined) return false;
69
+ if (!('meta' in value) || value['meta'] === undefined) return false;
70
+ if (!('links' in value) || value['links'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function GetBuyerDomainAppraisalRequests200ResponseFromJSON(json: any): GetBuyerDomainAppraisalRequests200Response {
75
+ return GetBuyerDomainAppraisalRequests200ResponseFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetBuyerDomainAppraisalRequests200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetBuyerDomainAppraisalRequests200Response {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'data': ((json['data'] as Array<any>).map(DomainAppraisalRequestListItemDtoFromJSON)),
85
+ 'meta': PaginateResponseMetaFromJSON(json['meta']),
86
+ 'links': PaginateResponseLinksFromJSON(json['links']),
87
+ };
88
+ }
89
+
90
+ export function GetBuyerDomainAppraisalRequests200ResponseToJSON(json: any): GetBuyerDomainAppraisalRequests200Response {
91
+ return GetBuyerDomainAppraisalRequests200ResponseToJSONTyped(json, false);
92
+ }
93
+
94
+ export function GetBuyerDomainAppraisalRequests200ResponseToJSONTyped(value?: GetBuyerDomainAppraisalRequests200Response | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'data': ((value['data'] as Array<any>).map(DomainAppraisalRequestListItemDtoToJSON)),
102
+ 'meta': PaginateResponseMetaToJSON(value['meta']),
103
+ 'links': PaginateResponseLinksToJSON(value['links']),
104
+ };
105
+ }
106
+
@@ -184,7 +184,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
184
184
  AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
185
185
  LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
186
186
  LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
187
- DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU'
187
+ DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
188
+ DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
188
189
  } as const;
189
190
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
190
191
 
@@ -91,11 +91,11 @@ export interface InvoiceDto {
91
91
  */
92
92
  target: InvoiceDtoTargetEnum;
93
93
  /**
94
- * Seller account information.
94
+ * Seller account information; null only for the invoice of a buyer's domain appraisal, which Nameshift sells.
95
95
  * @type {InvoiceSellerAccountDto}
96
96
  * @memberof InvoiceDto
97
97
  */
98
- sellerAccount: InvoiceSellerAccountDto;
98
+ sellerAccount: InvoiceSellerAccountDto | null;
99
99
  /**
100
100
  * Parent invoice ID, if this is a child invoice.
101
101
  * @type {string}
@@ -190,7 +190,8 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
190
190
  AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
191
191
  LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
192
192
  LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
193
- DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU'
193
+ DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
194
+ DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
194
195
  } as const;
195
196
  export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
196
197
 
@@ -81,6 +81,7 @@ export const UserNotificationDtoTypeEnum = {
81
81
  ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
82
82
  ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
83
83
  ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
84
+ ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
84
85
  BUYER_ACCESS_TOKEN: 'buyer_access_token',
85
86
  DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
86
87
  DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
@@ -67,6 +67,7 @@ export const UserNotificationListItemDtoTypeEnum = {
67
67
  ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
68
68
  ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
69
69
  ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
70
+ ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
70
71
  BUYER_ACCESS_TOKEN: 'buyer_access_token',
71
72
  DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
72
73
  DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
@@ -61,6 +61,7 @@ export * from './AdminChallengeListItemDto';
61
61
  export * from './AdminCompanyStatsDto';
62
62
  export * from './AdminCompanyStatsLedger';
63
63
  export * from './AdminDashboardStatsDto';
64
+ export * from './AdminDomainAppraisalRequestListItemDto';
64
65
  export * from './AdminDomainListItemDto';
65
66
  export * from './AdminGetAllDomainTransfers200Response';
66
67
  export * from './AdminLeadListItemBuyerDto';
@@ -116,6 +117,7 @@ export * from './BuyerAuctionDetailDtoDomain';
116
117
  export * from './BuyerAuctionListItemDto';
117
118
  export * from './BuyerAuctionListItemDtoDomainInformation';
118
119
  export * from './BuyerAuctionListItemDtoSellerAccount';
120
+ export * from './BuyerDomainAppraisalRequestCheckoutDto';
119
121
  export * from './BuyerDomainNameserverItemDto';
120
122
  export * from './BuyerDomainRecordItemDto';
121
123
  export * from './BuyerDomainRecordsDto';
@@ -177,6 +179,7 @@ export * from './CreateAccountPaymentInput';
177
179
  export * from './CreateAccountPaymentManualTransactionInput';
178
180
  export * from './CreateApiKeyInput';
179
181
  export * from './CreateBankAccountInput';
182
+ export * from './CreateBuyerDomainAppraisalRequestInput';
180
183
  export * from './CreateBuyerLeadMessageInput';
181
184
  export * from './CreateChallengeInput';
182
185
  export * from './CreateLeadInput';
@@ -197,6 +200,9 @@ export * from './CustomerSuccessListAccountMetricsDto';
197
200
  export * from './CustomerSuccessListAccountPortfolioSizeDto';
198
201
  export * from './CustomerSuccessListAccountUserDto';
199
202
  export * from './DeleteDomainsInput';
203
+ export * from './DomainAppraisalRequestListItemDto';
204
+ export * from './DomainAppraisalRequestStatus';
205
+ export * from './DomainAppraisalRequester';
200
206
  export * from './DomainAuctionDto';
201
207
  export * from './DomainCategoryItemDto';
202
208
  export * from './DomainEditPreviewDto';
@@ -254,6 +260,7 @@ export * from './ForbiddenException';
254
260
  export * from './ForgotPasswordRequestInput';
255
261
  export * from './GetAccountChallengeRewardUsagesListDto';
256
262
  export * from './GetAccountNameshiftCommissionsResponseDto';
263
+ export * from './GetAdminDomainAppraisalRequests200Response';
257
264
  export * from './GetAllAffiliateCommissions200Response';
258
265
  export * from './GetAllAuctions200Response';
259
266
  export * from './GetAllAuctions200Response1';
@@ -266,6 +273,7 @@ export * from './GetAllReferrals200Response';
266
273
  export * from './GetAllSubscriptions200Response';
267
274
  export * from './GetAllSubscriptions200Response1';
268
275
  export * from './GetBuyerAuctions200Response';
276
+ export * from './GetBuyerDomainAppraisalRequests200Response';
269
277
  export * from './GetBuyerInvoices200Response';
270
278
  export * from './GetBuyerLeads200Response';
271
279
  export * from './GetBuyerSubscriptions200Response';