@randock/nameshift-api-client 0.0.469 → 0.0.471

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 (51) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +3 -3
  3. package/dist/apis/CustomerSuccessApi.d.ts +60 -0
  4. package/dist/apis/CustomerSuccessApi.js +227 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  8. package/dist/models/BuyerNotificationDto.js +1 -0
  9. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  10. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  11. package/dist/models/CustomerSuccessDomainAuctionDto.d.ts +86 -0
  12. package/dist/models/CustomerSuccessDomainAuctionDto.js +91 -0
  13. package/dist/models/CustomerSuccessDomainListItemDto.d.ts +255 -0
  14. package/dist/models/CustomerSuccessDomainListItemDto.js +209 -0
  15. package/dist/models/CustomerSuccessListAccountDto.d.ts +163 -0
  16. package/dist/models/CustomerSuccessListAccountDto.js +146 -0
  17. package/dist/models/CustomerSuccessListAccountMetricsDto.d.ts +80 -0
  18. package/dist/models/CustomerSuccessListAccountMetricsDto.js +83 -0
  19. package/dist/models/CustomerSuccessListAccountPortfolioSizeDto.d.ts +38 -0
  20. package/dist/models/CustomerSuccessListAccountPortfolioSizeDto.js +55 -0
  21. package/dist/models/CustomerSuccessListAccountUserDto.d.ts +44 -0
  22. package/dist/models/CustomerSuccessListAccountUserDto.js +59 -0
  23. package/dist/models/LeadEnrichmentCompanyDto.d.ts +36 -0
  24. package/dist/models/LeadEnrichmentCompanyDto.js +24 -0
  25. package/dist/models/ListCustomerSuccessAccountDomains200Response.d.ts +47 -0
  26. package/dist/models/ListCustomerSuccessAccountDomains200Response.js +62 -0
  27. package/dist/models/ListCustomerSuccessAccounts200Response.d.ts +47 -0
  28. package/dist/models/ListCustomerSuccessAccounts200Response.js +62 -0
  29. package/dist/models/UserNotificationDto.d.ts +1 -0
  30. package/dist/models/UserNotificationDto.js +1 -0
  31. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  32. package/dist/models/UserNotificationListItemDto.js +1 -0
  33. package/dist/models/index.d.ts +8 -0
  34. package/dist/models/index.js +8 -0
  35. package/package.json +1 -1
  36. package/src/apis/CustomerSuccessApi.ts +187 -0
  37. package/src/apis/index.ts +1 -0
  38. package/src/models/BuyerNotificationDto.ts +1 -0
  39. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  40. package/src/models/CustomerSuccessDomainAuctionDto.ts +151 -0
  41. package/src/models/CustomerSuccessDomainListItemDto.ts +426 -0
  42. package/src/models/CustomerSuccessListAccountDto.ts +278 -0
  43. package/src/models/CustomerSuccessListAccountMetricsDto.ts +138 -0
  44. package/src/models/CustomerSuccessListAccountPortfolioSizeDto.ts +75 -0
  45. package/src/models/CustomerSuccessListAccountUserDto.ts +84 -0
  46. package/src/models/LeadEnrichmentCompanyDto.ts +54 -0
  47. package/src/models/ListCustomerSuccessAccountDomains200Response.ts +106 -0
  48. package/src/models/ListCustomerSuccessAccounts200Response.ts +106 -0
  49. package/src/models/UserNotificationDto.ts +1 -0
  50. package/src/models/UserNotificationListItemDto.ts +1 -0
  51. package/src/models/index.ts +8 -0
@@ -0,0 +1,278 @@
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 { CustomerSuccessListAccountUserDto } from './CustomerSuccessListAccountUserDto';
17
+ import {
18
+ CustomerSuccessListAccountUserDtoFromJSON,
19
+ CustomerSuccessListAccountUserDtoFromJSONTyped,
20
+ CustomerSuccessListAccountUserDtoToJSON,
21
+ CustomerSuccessListAccountUserDtoToJSONTyped,
22
+ } from './CustomerSuccessListAccountUserDto';
23
+ import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
24
+ import {
25
+ ChallengeRewardBalanceDtoFromJSON,
26
+ ChallengeRewardBalanceDtoFromJSONTyped,
27
+ ChallengeRewardBalanceDtoToJSON,
28
+ ChallengeRewardBalanceDtoToJSONTyped,
29
+ } from './ChallengeRewardBalanceDto';
30
+ import type { CustomerSuccessListAccountMetricsDto } from './CustomerSuccessListAccountMetricsDto';
31
+ import {
32
+ CustomerSuccessListAccountMetricsDtoFromJSON,
33
+ CustomerSuccessListAccountMetricsDtoFromJSONTyped,
34
+ CustomerSuccessListAccountMetricsDtoToJSON,
35
+ CustomerSuccessListAccountMetricsDtoToJSONTyped,
36
+ } from './CustomerSuccessListAccountMetricsDto';
37
+ import type { CustomerSuccessListAccountPortfolioSizeDto } from './CustomerSuccessListAccountPortfolioSizeDto';
38
+ import {
39
+ CustomerSuccessListAccountPortfolioSizeDtoFromJSON,
40
+ CustomerSuccessListAccountPortfolioSizeDtoFromJSONTyped,
41
+ CustomerSuccessListAccountPortfolioSizeDtoToJSON,
42
+ CustomerSuccessListAccountPortfolioSizeDtoToJSONTyped,
43
+ } from './CustomerSuccessListAccountPortfolioSizeDto';
44
+
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface CustomerSuccessListAccountDto
49
+ */
50
+ export interface CustomerSuccessListAccountDto {
51
+ /**
52
+ * Account ID.
53
+ * @type {string}
54
+ * @memberof CustomerSuccessListAccountDto
55
+ */
56
+ id: string;
57
+ /**
58
+ * Account identifier (human-readable).
59
+ * @type {string}
60
+ * @memberof CustomerSuccessListAccountDto
61
+ */
62
+ identifier: string;
63
+ /**
64
+ * Account creation date.
65
+ * @type {Date}
66
+ * @memberof CustomerSuccessListAccountDto
67
+ */
68
+ createdAt: Date;
69
+ /**
70
+ * Account name.
71
+ * @type {string}
72
+ * @memberof CustomerSuccessListAccountDto
73
+ */
74
+ name: string | null;
75
+ /**
76
+ * Billing information type.
77
+ * @type {string}
78
+ * @memberof CustomerSuccessListAccountDto
79
+ */
80
+ type: string | null;
81
+ /**
82
+ * Account alias.
83
+ * @type {string}
84
+ * @memberof CustomerSuccessListAccountDto
85
+ */
86
+ alias: string | null;
87
+ /**
88
+ * Whether the alias is verified.
89
+ * @type {boolean}
90
+ * @memberof CustomerSuccessListAccountDto
91
+ */
92
+ aliasVerified: boolean;
93
+ /**
94
+ * Account metrics.
95
+ * @type {CustomerSuccessListAccountMetricsDto}
96
+ * @memberof CustomerSuccessListAccountDto
97
+ */
98
+ metrics: CustomerSuccessListAccountMetricsDto;
99
+ /**
100
+ * Last online date.
101
+ * @type {Date}
102
+ * @memberof CustomerSuccessListAccountDto
103
+ */
104
+ lastOnline: Date;
105
+ /**
106
+ * Account users.
107
+ * @type {Array<CustomerSuccessListAccountUserDto>}
108
+ * @memberof CustomerSuccessListAccountDto
109
+ */
110
+ users: Array<CustomerSuccessListAccountUserDto>;
111
+ /**
112
+ * Onboarding provider.
113
+ * @type {string}
114
+ * @memberof CustomerSuccessListAccountDto
115
+ */
116
+ onboardingProvider: CustomerSuccessListAccountDtoOnboardingProviderEnum;
117
+ /**
118
+ * Onboarding status.
119
+ * @type {string}
120
+ * @memberof CustomerSuccessListAccountDto
121
+ */
122
+ onboardingStatus: CustomerSuccessListAccountDtoOnboardingStatusEnum;
123
+ /**
124
+ * Payout provider.
125
+ * @type {string}
126
+ * @memberof CustomerSuccessListAccountDto
127
+ */
128
+ payoutProvider: CustomerSuccessListAccountDtoPayoutProviderEnum;
129
+ /**
130
+ * Affiliate account ID.
131
+ * @type {string}
132
+ * @memberof CustomerSuccessListAccountDto
133
+ */
134
+ affiliateId: string | null;
135
+ /**
136
+ * Estimated domain portfolio size range reported during registration.
137
+ * @type {CustomerSuccessListAccountPortfolioSizeDto}
138
+ * @memberof CustomerSuccessListAccountDto
139
+ */
140
+ portfolioSize: CustomerSuccessListAccountPortfolioSizeDto | null;
141
+ /**
142
+ * Company name.
143
+ * @type {string}
144
+ * @memberof CustomerSuccessListAccountDto
145
+ */
146
+ companyName: string | null;
147
+ /**
148
+ * Whether third-party sales data sharing is allowed.
149
+ * @type {boolean}
150
+ * @memberof CustomerSuccessListAccountDto
151
+ */
152
+ allowThirdPartySalesDataSharing: boolean;
153
+ /**
154
+ * Challenge reward balance (available and used).
155
+ * @type {ChallengeRewardBalanceDto}
156
+ * @memberof CustomerSuccessListAccountDto
157
+ */
158
+ challengeRewardBalance: ChallengeRewardBalanceDto;
159
+ }
160
+
161
+
162
+ /**
163
+ * @export
164
+ */
165
+ export const CustomerSuccessListAccountDtoOnboardingProviderEnum = {
166
+ STRIPE: 'stripe',
167
+ SUMSUB: 'sumsub'
168
+ } as const;
169
+ export type CustomerSuccessListAccountDtoOnboardingProviderEnum = typeof CustomerSuccessListAccountDtoOnboardingProviderEnum[keyof typeof CustomerSuccessListAccountDtoOnboardingProviderEnum];
170
+
171
+ /**
172
+ * @export
173
+ */
174
+ export const CustomerSuccessListAccountDtoOnboardingStatusEnum = {
175
+ PENDING: 'pending',
176
+ ACTIVE: 'active',
177
+ REJECTED: 'rejected'
178
+ } as const;
179
+ export type CustomerSuccessListAccountDtoOnboardingStatusEnum = typeof CustomerSuccessListAccountDtoOnboardingStatusEnum[keyof typeof CustomerSuccessListAccountDtoOnboardingStatusEnum];
180
+
181
+ /**
182
+ * @export
183
+ */
184
+ export const CustomerSuccessListAccountDtoPayoutProviderEnum = {
185
+ STRIPE: 'stripe',
186
+ BANK_ACCOUNT: 'bank_account'
187
+ } as const;
188
+ export type CustomerSuccessListAccountDtoPayoutProviderEnum = typeof CustomerSuccessListAccountDtoPayoutProviderEnum[keyof typeof CustomerSuccessListAccountDtoPayoutProviderEnum];
189
+
190
+
191
+ /**
192
+ * Check if a given object implements the CustomerSuccessListAccountDto interface.
193
+ */
194
+ export function instanceOfCustomerSuccessListAccountDto(value: object): value is CustomerSuccessListAccountDto {
195
+ if (!('id' in value) || value['id'] === undefined) return false;
196
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
197
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
198
+ if (!('name' in value) || value['name'] === undefined) return false;
199
+ if (!('type' in value) || value['type'] === undefined) return false;
200
+ if (!('alias' in value) || value['alias'] === undefined) return false;
201
+ if (!('aliasVerified' in value) || value['aliasVerified'] === undefined) return false;
202
+ if (!('metrics' in value) || value['metrics'] === undefined) return false;
203
+ if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
204
+ if (!('users' in value) || value['users'] === undefined) return false;
205
+ if (!('onboardingProvider' in value) || value['onboardingProvider'] === undefined) return false;
206
+ if (!('onboardingStatus' in value) || value['onboardingStatus'] === undefined) return false;
207
+ if (!('payoutProvider' in value) || value['payoutProvider'] === undefined) return false;
208
+ if (!('affiliateId' in value) || value['affiliateId'] === undefined) return false;
209
+ if (!('portfolioSize' in value) || value['portfolioSize'] === undefined) return false;
210
+ if (!('companyName' in value) || value['companyName'] === undefined) return false;
211
+ if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
212
+ if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined) return false;
213
+ return true;
214
+ }
215
+
216
+ export function CustomerSuccessListAccountDtoFromJSON(json: any): CustomerSuccessListAccountDto {
217
+ return CustomerSuccessListAccountDtoFromJSONTyped(json, false);
218
+ }
219
+
220
+ export function CustomerSuccessListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerSuccessListAccountDto {
221
+ if (json == null) {
222
+ return json;
223
+ }
224
+ return {
225
+
226
+ 'id': json['id'],
227
+ 'identifier': json['identifier'],
228
+ 'createdAt': (new Date(json['createdAt'])),
229
+ 'name': json['name'],
230
+ 'type': json['type'],
231
+ 'alias': json['alias'],
232
+ 'aliasVerified': json['aliasVerified'],
233
+ 'metrics': CustomerSuccessListAccountMetricsDtoFromJSON(json['metrics']),
234
+ 'lastOnline': (new Date(json['lastOnline'])),
235
+ 'users': ((json['users'] as Array<any>).map(CustomerSuccessListAccountUserDtoFromJSON)),
236
+ 'onboardingProvider': json['onboardingProvider'],
237
+ 'onboardingStatus': json['onboardingStatus'],
238
+ 'payoutProvider': json['payoutProvider'],
239
+ 'affiliateId': json['affiliateId'],
240
+ 'portfolioSize': CustomerSuccessListAccountPortfolioSizeDtoFromJSON(json['portfolioSize']),
241
+ 'companyName': json['companyName'],
242
+ 'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
243
+ 'challengeRewardBalance': ChallengeRewardBalanceDtoFromJSON(json['challengeRewardBalance']),
244
+ };
245
+ }
246
+
247
+ export function CustomerSuccessListAccountDtoToJSON(json: any): CustomerSuccessListAccountDto {
248
+ return CustomerSuccessListAccountDtoToJSONTyped(json, false);
249
+ }
250
+
251
+ export function CustomerSuccessListAccountDtoToJSONTyped(value?: CustomerSuccessListAccountDto | null, ignoreDiscriminator: boolean = false): any {
252
+ if (value == null) {
253
+ return value;
254
+ }
255
+
256
+ return {
257
+
258
+ 'id': value['id'],
259
+ 'identifier': value['identifier'],
260
+ 'createdAt': ((value['createdAt']).toISOString()),
261
+ 'name': value['name'],
262
+ 'type': value['type'],
263
+ 'alias': value['alias'],
264
+ 'aliasVerified': value['aliasVerified'],
265
+ 'metrics': CustomerSuccessListAccountMetricsDtoToJSON(value['metrics']),
266
+ 'lastOnline': ((value['lastOnline']).toISOString()),
267
+ 'users': ((value['users'] as Array<any>).map(CustomerSuccessListAccountUserDtoToJSON)),
268
+ 'onboardingProvider': value['onboardingProvider'],
269
+ 'onboardingStatus': value['onboardingStatus'],
270
+ 'payoutProvider': value['payoutProvider'],
271
+ 'affiliateId': value['affiliateId'],
272
+ 'portfolioSize': CustomerSuccessListAccountPortfolioSizeDtoToJSON(value['portfolioSize']),
273
+ 'companyName': value['companyName'],
274
+ 'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
275
+ 'challengeRewardBalance': ChallengeRewardBalanceDtoToJSON(value['challengeRewardBalance']),
276
+ };
277
+ }
278
+
@@ -0,0 +1,138 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface CustomerSuccessListAccountMetricsDto
20
+ */
21
+ export interface CustomerSuccessListAccountMetricsDto {
22
+ /**
23
+ * Total number of leads.
24
+ * @type {number}
25
+ * @memberof CustomerSuccessListAccountMetricsDto
26
+ */
27
+ leadsNumber: number;
28
+ /**
29
+ * Total number of domains.
30
+ * @type {number}
31
+ * @memberof CustomerSuccessListAccountMetricsDto
32
+ */
33
+ domainsNumber: number;
34
+ /**
35
+ * Number of active leads.
36
+ * @type {number}
37
+ * @memberof CustomerSuccessListAccountMetricsDto
38
+ */
39
+ activeLeadsNumber: number;
40
+ /**
41
+ * Number of active domain transfers.
42
+ * @type {number}
43
+ * @memberof CustomerSuccessListAccountMetricsDto
44
+ */
45
+ activeDomainTransfersNumber: number;
46
+ /**
47
+ * Number of open tasks.
48
+ * @type {number}
49
+ * @memberof CustomerSuccessListAccountMetricsDto
50
+ */
51
+ tasksNumber: number;
52
+ /**
53
+ * Number of sold domains.
54
+ * @type {number}
55
+ * @memberof CustomerSuccessListAccountMetricsDto
56
+ */
57
+ soldDomainsNumber: number;
58
+ /**
59
+ * Number of referrals.
60
+ * @type {number}
61
+ * @memberof CustomerSuccessListAccountMetricsDto
62
+ */
63
+ referralsNumber: number;
64
+ /**
65
+ * Number of domains pointing DNS.
66
+ * @type {number}
67
+ * @memberof CustomerSuccessListAccountMetricsDto
68
+ */
69
+ pointingDomainsNumber: number;
70
+ /**
71
+ * Number of pending challenges to collect.
72
+ * @type {number}
73
+ * @memberof CustomerSuccessListAccountMetricsDto
74
+ */
75
+ pendingChallengesToCollectNumber: number;
76
+ }
77
+
78
+ /**
79
+ * Check if a given object implements the CustomerSuccessListAccountMetricsDto interface.
80
+ */
81
+ export function instanceOfCustomerSuccessListAccountMetricsDto(value: object): value is CustomerSuccessListAccountMetricsDto {
82
+ if (!('leadsNumber' in value) || value['leadsNumber'] === undefined) return false;
83
+ if (!('domainsNumber' in value) || value['domainsNumber'] === undefined) return false;
84
+ if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined) return false;
85
+ if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined) return false;
86
+ if (!('tasksNumber' in value) || value['tasksNumber'] === undefined) return false;
87
+ if (!('soldDomainsNumber' in value) || value['soldDomainsNumber'] === undefined) return false;
88
+ if (!('referralsNumber' in value) || value['referralsNumber'] === undefined) return false;
89
+ if (!('pointingDomainsNumber' in value) || value['pointingDomainsNumber'] === undefined) return false;
90
+ if (!('pendingChallengesToCollectNumber' in value) || value['pendingChallengesToCollectNumber'] === undefined) return false;
91
+ return true;
92
+ }
93
+
94
+ export function CustomerSuccessListAccountMetricsDtoFromJSON(json: any): CustomerSuccessListAccountMetricsDto {
95
+ return CustomerSuccessListAccountMetricsDtoFromJSONTyped(json, false);
96
+ }
97
+
98
+ export function CustomerSuccessListAccountMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerSuccessListAccountMetricsDto {
99
+ if (json == null) {
100
+ return json;
101
+ }
102
+ return {
103
+
104
+ 'leadsNumber': json['leadsNumber'],
105
+ 'domainsNumber': json['domainsNumber'],
106
+ 'activeLeadsNumber': json['activeLeadsNumber'],
107
+ 'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
108
+ 'tasksNumber': json['tasksNumber'],
109
+ 'soldDomainsNumber': json['soldDomainsNumber'],
110
+ 'referralsNumber': json['referralsNumber'],
111
+ 'pointingDomainsNumber': json['pointingDomainsNumber'],
112
+ 'pendingChallengesToCollectNumber': json['pendingChallengesToCollectNumber'],
113
+ };
114
+ }
115
+
116
+ export function CustomerSuccessListAccountMetricsDtoToJSON(json: any): CustomerSuccessListAccountMetricsDto {
117
+ return CustomerSuccessListAccountMetricsDtoToJSONTyped(json, false);
118
+ }
119
+
120
+ export function CustomerSuccessListAccountMetricsDtoToJSONTyped(value?: CustomerSuccessListAccountMetricsDto | null, ignoreDiscriminator: boolean = false): any {
121
+ if (value == null) {
122
+ return value;
123
+ }
124
+
125
+ return {
126
+
127
+ 'leadsNumber': value['leadsNumber'],
128
+ 'domainsNumber': value['domainsNumber'],
129
+ 'activeLeadsNumber': value['activeLeadsNumber'],
130
+ 'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
131
+ 'tasksNumber': value['tasksNumber'],
132
+ 'soldDomainsNumber': value['soldDomainsNumber'],
133
+ 'referralsNumber': value['referralsNumber'],
134
+ 'pointingDomainsNumber': value['pointingDomainsNumber'],
135
+ 'pendingChallengesToCollectNumber': value['pendingChallengesToCollectNumber'],
136
+ };
137
+ }
138
+
@@ -0,0 +1,75 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface CustomerSuccessListAccountPortfolioSizeDto
20
+ */
21
+ export interface CustomerSuccessListAccountPortfolioSizeDto {
22
+ /**
23
+ * Portfolio size lower bound.
24
+ * @type {number}
25
+ * @memberof CustomerSuccessListAccountPortfolioSizeDto
26
+ */
27
+ from: number;
28
+ /**
29
+ * Portfolio size upper bound.
30
+ * @type {number}
31
+ * @memberof CustomerSuccessListAccountPortfolioSizeDto
32
+ */
33
+ to: number | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the CustomerSuccessListAccountPortfolioSizeDto interface.
38
+ */
39
+ export function instanceOfCustomerSuccessListAccountPortfolioSizeDto(value: object): value is CustomerSuccessListAccountPortfolioSizeDto {
40
+ if (!('from' in value) || value['from'] === undefined) return false;
41
+ if (!('to' in value) || value['to'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function CustomerSuccessListAccountPortfolioSizeDtoFromJSON(json: any): CustomerSuccessListAccountPortfolioSizeDto {
46
+ return CustomerSuccessListAccountPortfolioSizeDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function CustomerSuccessListAccountPortfolioSizeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerSuccessListAccountPortfolioSizeDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'from': json['from'],
56
+ 'to': json['to'],
57
+ };
58
+ }
59
+
60
+ export function CustomerSuccessListAccountPortfolioSizeDtoToJSON(json: any): CustomerSuccessListAccountPortfolioSizeDto {
61
+ return CustomerSuccessListAccountPortfolioSizeDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function CustomerSuccessListAccountPortfolioSizeDtoToJSONTyped(value?: CustomerSuccessListAccountPortfolioSizeDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'from': value['from'],
72
+ 'to': value['to'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,84 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface CustomerSuccessListAccountUserDto
20
+ */
21
+ export interface CustomerSuccessListAccountUserDto {
22
+ /**
23
+ * User full name.
24
+ * @type {string}
25
+ * @memberof CustomerSuccessListAccountUserDto
26
+ */
27
+ name: string;
28
+ /**
29
+ * User email address.
30
+ * @type {string}
31
+ * @memberof CustomerSuccessListAccountUserDto
32
+ */
33
+ email: string;
34
+ /**
35
+ * User phone number.
36
+ * @type {string}
37
+ * @memberof CustomerSuccessListAccountUserDto
38
+ */
39
+ phone: string | null;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the CustomerSuccessListAccountUserDto interface.
44
+ */
45
+ export function instanceOfCustomerSuccessListAccountUserDto(value: object): value is CustomerSuccessListAccountUserDto {
46
+ if (!('name' in value) || value['name'] === undefined) return false;
47
+ if (!('email' in value) || value['email'] === undefined) return false;
48
+ if (!('phone' in value) || value['phone'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function CustomerSuccessListAccountUserDtoFromJSON(json: any): CustomerSuccessListAccountUserDto {
53
+ return CustomerSuccessListAccountUserDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function CustomerSuccessListAccountUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerSuccessListAccountUserDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'name': json['name'],
63
+ 'email': json['email'],
64
+ 'phone': json['phone'],
65
+ };
66
+ }
67
+
68
+ export function CustomerSuccessListAccountUserDtoToJSON(json: any): CustomerSuccessListAccountUserDto {
69
+ return CustomerSuccessListAccountUserDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function CustomerSuccessListAccountUserDtoToJSONTyped(value?: CustomerSuccessListAccountUserDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'name': value['name'],
80
+ 'email': value['email'],
81
+ 'phone': value['phone'],
82
+ };
83
+ }
84
+
@@ -43,6 +43,30 @@ export interface LeadEnrichmentCompanyDto {
43
43
  * @memberof LeadEnrichmentCompanyDto
44
44
  */
45
45
  countryCode: string | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof LeadEnrichmentCompanyDto
50
+ */
51
+ industry: string | null;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof LeadEnrichmentCompanyDto
56
+ */
57
+ employeeRange: string | null;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof LeadEnrichmentCompanyDto
62
+ */
63
+ revenueRange: string | null;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof LeadEnrichmentCompanyDto
68
+ */
69
+ foundedYear: number | null;
46
70
  /**
47
71
  *
48
72
  * @type {string}
@@ -55,6 +79,18 @@ export interface LeadEnrichmentCompanyDto {
55
79
  * @memberof LeadEnrichmentCompanyDto
56
80
  */
57
81
  registryId: string | null;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof LeadEnrichmentCompanyDto
86
+ */
87
+ leiCode: string | null;
88
+ /**
89
+ * When this record was last enriched.
90
+ * @type {string}
91
+ * @memberof LeadEnrichmentCompanyDto
92
+ */
93
+ enrichedAt: string | null;
58
94
  }
59
95
 
60
96
  /**
@@ -65,8 +101,14 @@ export function instanceOfLeadEnrichmentCompanyDto(value: object): value is Lead
65
101
  if (!('legalName' in value) || value['legalName'] === undefined) return false;
66
102
  if (!('tradeName' in value) || value['tradeName'] === undefined) return false;
67
103
  if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
104
+ if (!('industry' in value) || value['industry'] === undefined) return false;
105
+ if (!('employeeRange' in value) || value['employeeRange'] === undefined) return false;
106
+ if (!('revenueRange' in value) || value['revenueRange'] === undefined) return false;
107
+ if (!('foundedYear' in value) || value['foundedYear'] === undefined) return false;
68
108
  if (!('vatId' in value) || value['vatId'] === undefined) return false;
69
109
  if (!('registryId' in value) || value['registryId'] === undefined) return false;
110
+ if (!('leiCode' in value) || value['leiCode'] === undefined) return false;
111
+ if (!('enrichedAt' in value) || value['enrichedAt'] === undefined) return false;
70
112
  return true;
71
113
  }
72
114
 
@@ -84,8 +126,14 @@ export function LeadEnrichmentCompanyDtoFromJSONTyped(json: any, ignoreDiscrimin
84
126
  'legalName': json['legalName'],
85
127
  'tradeName': json['tradeName'],
86
128
  'countryCode': json['countryCode'],
129
+ 'industry': json['industry'],
130
+ 'employeeRange': json['employeeRange'],
131
+ 'revenueRange': json['revenueRange'],
132
+ 'foundedYear': json['foundedYear'],
87
133
  'vatId': json['vatId'],
88
134
  'registryId': json['registryId'],
135
+ 'leiCode': json['leiCode'],
136
+ 'enrichedAt': json['enrichedAt'],
89
137
  };
90
138
  }
91
139
 
@@ -104,8 +152,14 @@ export function LeadEnrichmentCompanyDtoToJSONTyped(value?: LeadEnrichmentCompan
104
152
  'legalName': value['legalName'],
105
153
  'tradeName': value['tradeName'],
106
154
  'countryCode': value['countryCode'],
155
+ 'industry': value['industry'],
156
+ 'employeeRange': value['employeeRange'],
157
+ 'revenueRange': value['revenueRange'],
158
+ 'foundedYear': value['foundedYear'],
107
159
  'vatId': value['vatId'],
108
160
  'registryId': value['registryId'],
161
+ 'leiCode': value['leiCode'],
162
+ 'enrichedAt': value['enrichedAt'],
109
163
  };
110
164
  }
111
165