@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,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfListCustomerSuccessAccountDomains200Response = instanceOfListCustomerSuccessAccountDomains200Response;
17
+ exports.ListCustomerSuccessAccountDomains200ResponseFromJSON = ListCustomerSuccessAccountDomains200ResponseFromJSON;
18
+ exports.ListCustomerSuccessAccountDomains200ResponseFromJSONTyped = ListCustomerSuccessAccountDomains200ResponseFromJSONTyped;
19
+ exports.ListCustomerSuccessAccountDomains200ResponseToJSON = ListCustomerSuccessAccountDomains200ResponseToJSON;
20
+ exports.ListCustomerSuccessAccountDomains200ResponseToJSONTyped = ListCustomerSuccessAccountDomains200ResponseToJSONTyped;
21
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
+ var CustomerSuccessDomainListItemDto_1 = require("./CustomerSuccessDomainListItemDto");
23
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * Check if a given object implements the ListCustomerSuccessAccountDomains200Response interface.
26
+ */
27
+ function instanceOfListCustomerSuccessAccountDomains200Response(value) {
28
+ if (!('data' in value) || value['data'] === undefined)
29
+ return false;
30
+ if (!('meta' in value) || value['meta'] === undefined)
31
+ return false;
32
+ if (!('links' in value) || value['links'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function ListCustomerSuccessAccountDomains200ResponseFromJSON(json) {
37
+ return ListCustomerSuccessAccountDomains200ResponseFromJSONTyped(json, false);
38
+ }
39
+ function ListCustomerSuccessAccountDomains200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'data': (json['data'].map(CustomerSuccessDomainListItemDto_1.CustomerSuccessDomainListItemDtoFromJSON)),
45
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
+ };
48
+ }
49
+ function ListCustomerSuccessAccountDomains200ResponseToJSON(json) {
50
+ return ListCustomerSuccessAccountDomains200ResponseToJSONTyped(json, false);
51
+ }
52
+ function ListCustomerSuccessAccountDomains200ResponseToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'data': (value['data'].map(CustomerSuccessDomainListItemDto_1.CustomerSuccessDomainListItemDtoToJSON)),
59
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
+ };
62
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Nameshift
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PaginateResponseLinks } from './PaginateResponseLinks';
13
+ import type { CustomerSuccessListAccountDto } from './CustomerSuccessListAccountDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ListCustomerSuccessAccounts200Response
19
+ */
20
+ export interface ListCustomerSuccessAccounts200Response {
21
+ /**
22
+ *
23
+ * @type {Array<CustomerSuccessListAccountDto>}
24
+ * @memberof ListCustomerSuccessAccounts200Response
25
+ */
26
+ data: Array<CustomerSuccessListAccountDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof ListCustomerSuccessAccounts200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof ListCustomerSuccessAccounts200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the ListCustomerSuccessAccounts200Response interface.
42
+ */
43
+ export declare function instanceOfListCustomerSuccessAccounts200Response(value: object): value is ListCustomerSuccessAccounts200Response;
44
+ export declare function ListCustomerSuccessAccounts200ResponseFromJSON(json: any): ListCustomerSuccessAccounts200Response;
45
+ export declare function ListCustomerSuccessAccounts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListCustomerSuccessAccounts200Response;
46
+ export declare function ListCustomerSuccessAccounts200ResponseToJSON(json: any): ListCustomerSuccessAccounts200Response;
47
+ export declare function ListCustomerSuccessAccounts200ResponseToJSONTyped(value?: ListCustomerSuccessAccounts200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfListCustomerSuccessAccounts200Response = instanceOfListCustomerSuccessAccounts200Response;
17
+ exports.ListCustomerSuccessAccounts200ResponseFromJSON = ListCustomerSuccessAccounts200ResponseFromJSON;
18
+ exports.ListCustomerSuccessAccounts200ResponseFromJSONTyped = ListCustomerSuccessAccounts200ResponseFromJSONTyped;
19
+ exports.ListCustomerSuccessAccounts200ResponseToJSON = ListCustomerSuccessAccounts200ResponseToJSON;
20
+ exports.ListCustomerSuccessAccounts200ResponseToJSONTyped = ListCustomerSuccessAccounts200ResponseToJSONTyped;
21
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
+ var CustomerSuccessListAccountDto_1 = require("./CustomerSuccessListAccountDto");
23
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * Check if a given object implements the ListCustomerSuccessAccounts200Response interface.
26
+ */
27
+ function instanceOfListCustomerSuccessAccounts200Response(value) {
28
+ if (!('data' in value) || value['data'] === undefined)
29
+ return false;
30
+ if (!('meta' in value) || value['meta'] === undefined)
31
+ return false;
32
+ if (!('links' in value) || value['links'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function ListCustomerSuccessAccounts200ResponseFromJSON(json) {
37
+ return ListCustomerSuccessAccounts200ResponseFromJSONTyped(json, false);
38
+ }
39
+ function ListCustomerSuccessAccounts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'data': (json['data'].map(CustomerSuccessListAccountDto_1.CustomerSuccessListAccountDtoFromJSON)),
45
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
+ };
48
+ }
49
+ function ListCustomerSuccessAccounts200ResponseToJSON(json) {
50
+ return ListCustomerSuccessAccounts200ResponseToJSONTyped(json, false);
51
+ }
52
+ function ListCustomerSuccessAccounts200ResponseToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'data': (value['data'].map(CustomerSuccessListAccountDto_1.CustomerSuccessListAccountDtoToJSON)),
59
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
+ };
62
+ }
@@ -114,6 +114,7 @@ export declare const UserNotificationDtoTypeEnum: {
114
114
  readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
115
115
  readonly PASSWORD_RESET: "password_reset";
116
116
  readonly USER_EMAIL_CHANGED: "user_email_changed";
117
+ readonly USER_EMAIL_CHANGE_CONFIRMED: "user_email_change_confirmed";
117
118
  readonly BUYER_INVOICE: "buyer_invoice";
118
119
  readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
119
120
  readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
@@ -75,6 +75,7 @@ exports.UserNotificationDtoTypeEnum = {
75
75
  RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
76
76
  PASSWORD_RESET: 'password_reset',
77
77
  USER_EMAIL_CHANGED: 'user_email_changed',
78
+ USER_EMAIL_CHANGE_CONFIRMED: 'user_email_change_confirmed',
78
79
  BUYER_INVOICE: 'buyer_invoice',
79
80
  BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
80
81
  BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
@@ -107,6 +107,7 @@ export declare const UserNotificationListItemDtoTypeEnum: {
107
107
  readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
108
108
  readonly PASSWORD_RESET: "password_reset";
109
109
  readonly USER_EMAIL_CHANGED: "user_email_changed";
110
+ readonly USER_EMAIL_CHANGE_CONFIRMED: "user_email_change_confirmed";
110
111
  readonly BUYER_INVOICE: "buyer_invoice";
111
112
  readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
112
113
  readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
@@ -74,6 +74,7 @@ exports.UserNotificationListItemDtoTypeEnum = {
74
74
  RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
75
75
  PASSWORD_RESET: 'password_reset',
76
76
  USER_EMAIL_CHANGED: 'user_email_changed',
77
+ USER_EMAIL_CHANGE_CONFIRMED: 'user_email_change_confirmed',
77
78
  BUYER_INVOICE: 'buyer_invoice',
78
79
  BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
79
80
  BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
@@ -183,6 +183,12 @@ export * from './CreateSubscriptionManualTransactionInput';
183
183
  export * from './CreatedApiKeyDto';
184
184
  export * from './CursorBasedPageInfo';
185
185
  export * from './CursorBasedPaginationResponse';
186
+ export * from './CustomerSuccessDomainAuctionDto';
187
+ export * from './CustomerSuccessDomainListItemDto';
188
+ export * from './CustomerSuccessListAccountDto';
189
+ export * from './CustomerSuccessListAccountMetricsDto';
190
+ export * from './CustomerSuccessListAccountPortfolioSizeDto';
191
+ export * from './CustomerSuccessListAccountUserDto';
186
192
  export * from './DeleteDomainsInput';
187
193
  export * from './DomainAuctionDto';
188
194
  export * from './DomainCategoryItemDto';
@@ -340,6 +346,8 @@ export * from './ListAuctions200Response';
340
346
  export * from './ListBankAccounts200Response';
341
347
  export * from './ListBankDeposits200Response';
342
348
  export * from './ListBuyerNotifications200Response';
349
+ export * from './ListCustomerSuccessAccountDomains200Response';
350
+ export * from './ListCustomerSuccessAccounts200Response';
343
351
  export * from './ListDomains200Response';
344
352
  export * from './ListDomainsWithUpdatedPricing200Response';
345
353
  export * from './ListJobs200Response';
@@ -201,6 +201,12 @@ __exportStar(require("./CreateSubscriptionManualTransactionInput"), exports);
201
201
  __exportStar(require("./CreatedApiKeyDto"), exports);
202
202
  __exportStar(require("./CursorBasedPageInfo"), exports);
203
203
  __exportStar(require("./CursorBasedPaginationResponse"), exports);
204
+ __exportStar(require("./CustomerSuccessDomainAuctionDto"), exports);
205
+ __exportStar(require("./CustomerSuccessDomainListItemDto"), exports);
206
+ __exportStar(require("./CustomerSuccessListAccountDto"), exports);
207
+ __exportStar(require("./CustomerSuccessListAccountMetricsDto"), exports);
208
+ __exportStar(require("./CustomerSuccessListAccountPortfolioSizeDto"), exports);
209
+ __exportStar(require("./CustomerSuccessListAccountUserDto"), exports);
204
210
  __exportStar(require("./DeleteDomainsInput"), exports);
205
211
  __exportStar(require("./DomainAuctionDto"), exports);
206
212
  __exportStar(require("./DomainCategoryItemDto"), exports);
@@ -358,6 +364,8 @@ __exportStar(require("./ListAuctions200Response"), exports);
358
364
  __exportStar(require("./ListBankAccounts200Response"), exports);
359
365
  __exportStar(require("./ListBankDeposits200Response"), exports);
360
366
  __exportStar(require("./ListBuyerNotifications200Response"), exports);
367
+ __exportStar(require("./ListCustomerSuccessAccountDomains200Response"), exports);
368
+ __exportStar(require("./ListCustomerSuccessAccounts200Response"), exports);
361
369
  __exportStar(require("./ListDomains200Response"), exports);
362
370
  __exportStar(require("./ListDomainsWithUpdatedPricing200Response"), exports);
363
371
  __exportStar(require("./ListJobs200Response"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.469",
3
+ "version": "0.0.471",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,187 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ListCustomerSuccessAccountDomains200Response,
19
+ ListCustomerSuccessAccounts200Response,
20
+ ValidationException,
21
+ } from '../models/index';
22
+ import {
23
+ ListCustomerSuccessAccountDomains200ResponseFromJSON,
24
+ ListCustomerSuccessAccountDomains200ResponseToJSON,
25
+ ListCustomerSuccessAccounts200ResponseFromJSON,
26
+ ListCustomerSuccessAccounts200ResponseToJSON,
27
+ ValidationExceptionFromJSON,
28
+ ValidationExceptionToJSON,
29
+ } from '../models/index';
30
+
31
+ export interface CustomerSuccessApiListCustomerSuccessAccountDomainsRequest {
32
+ accountId: string;
33
+ filter?: { [key: string]: string; };
34
+ page?: number;
35
+ limit?: number;
36
+ sortBy?: Array<string>;
37
+ filterSold?: string;
38
+ filterPointingDnsStatus?: string;
39
+ }
40
+
41
+ export interface CustomerSuccessApiListCustomerSuccessAccountsRequest {
42
+ filter?: { [key: string]: string; };
43
+ page?: number;
44
+ limit?: number;
45
+ sortBy?: Array<string>;
46
+ filterSearchTerm?: string;
47
+ filterOnboardingStatus?: string;
48
+ filterAffiliateIdentifier?: string;
49
+ }
50
+
51
+ /**
52
+ *
53
+ */
54
+ export class CustomerSuccessApi extends runtime.BaseAPI {
55
+
56
+ /**
57
+ * Lists the domains of a single seller account for customer success follow-up. The account is taken from the path and cannot be widened through filters.
58
+ * List account domains
59
+ */
60
+ async listCustomerSuccessAccountDomainsRaw(requestParameters: CustomerSuccessApiListCustomerSuccessAccountDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListCustomerSuccessAccountDomains200Response>> {
61
+ if (requestParameters['accountId'] == null) {
62
+ throw new runtime.RequiredError(
63
+ 'accountId',
64
+ 'Required parameter "accountId" was null or undefined when calling listCustomerSuccessAccountDomains().'
65
+ );
66
+ }
67
+
68
+ const queryParameters: any = {};
69
+
70
+ if (requestParameters['filter'] != null) {
71
+ queryParameters['filter'] = requestParameters['filter'];
72
+ }
73
+
74
+ if (requestParameters['page'] != null) {
75
+ queryParameters['page'] = requestParameters['page'];
76
+ }
77
+
78
+ if (requestParameters['limit'] != null) {
79
+ queryParameters['limit'] = requestParameters['limit'];
80
+ }
81
+
82
+ if (requestParameters['sortBy'] != null) {
83
+ queryParameters['sortBy'] = requestParameters['sortBy'];
84
+ }
85
+
86
+ if (requestParameters['filterSold'] != null) {
87
+ queryParameters['filter[sold]'] = requestParameters['filterSold'];
88
+ }
89
+
90
+ if (requestParameters['filterPointingDnsStatus'] != null) {
91
+ queryParameters['filter[pointingDnsStatus]'] = requestParameters['filterPointingDnsStatus'];
92
+ }
93
+
94
+ const headerParameters: runtime.HTTPHeaders = {};
95
+
96
+ if (this.configuration && this.configuration.accessToken) {
97
+ const token = this.configuration.accessToken;
98
+ const tokenString = await token("bearer", []);
99
+
100
+ if (tokenString) {
101
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
102
+ }
103
+ }
104
+ const response = await this.request({
105
+ path: `/customer-success/accounts/{accountId}/domains`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
106
+ method: 'GET',
107
+ headers: headerParameters,
108
+ query: queryParameters,
109
+ }, initOverrides);
110
+
111
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListCustomerSuccessAccountDomains200ResponseFromJSON(jsonValue));
112
+ }
113
+
114
+ /**
115
+ * Lists the domains of a single seller account for customer success follow-up. The account is taken from the path and cannot be widened through filters.
116
+ * List account domains
117
+ */
118
+ async listCustomerSuccessAccountDomains(requestParameters: CustomerSuccessApiListCustomerSuccessAccountDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListCustomerSuccessAccountDomains200Response> {
119
+ const response = await this.listCustomerSuccessAccountDomainsRaw(requestParameters, initOverrides);
120
+ return await response.value();
121
+ }
122
+
123
+ /**
124
+ * Lists seller accounts for customer success follow-up.
125
+ * List accounts
126
+ */
127
+ async listCustomerSuccessAccountsRaw(requestParameters: CustomerSuccessApiListCustomerSuccessAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListCustomerSuccessAccounts200Response>> {
128
+ const queryParameters: any = {};
129
+
130
+ if (requestParameters['filter'] != null) {
131
+ queryParameters['filter'] = requestParameters['filter'];
132
+ }
133
+
134
+ if (requestParameters['page'] != null) {
135
+ queryParameters['page'] = requestParameters['page'];
136
+ }
137
+
138
+ if (requestParameters['limit'] != null) {
139
+ queryParameters['limit'] = requestParameters['limit'];
140
+ }
141
+
142
+ if (requestParameters['sortBy'] != null) {
143
+ queryParameters['sortBy'] = requestParameters['sortBy'];
144
+ }
145
+
146
+ if (requestParameters['filterSearchTerm'] != null) {
147
+ queryParameters['filter[search_term]'] = requestParameters['filterSearchTerm'];
148
+ }
149
+
150
+ if (requestParameters['filterOnboardingStatus'] != null) {
151
+ queryParameters['filter[onboarding_status]'] = requestParameters['filterOnboardingStatus'];
152
+ }
153
+
154
+ if (requestParameters['filterAffiliateIdentifier'] != null) {
155
+ queryParameters['filter[affiliate.identifier]'] = requestParameters['filterAffiliateIdentifier'];
156
+ }
157
+
158
+ const headerParameters: runtime.HTTPHeaders = {};
159
+
160
+ if (this.configuration && this.configuration.accessToken) {
161
+ const token = this.configuration.accessToken;
162
+ const tokenString = await token("bearer", []);
163
+
164
+ if (tokenString) {
165
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
166
+ }
167
+ }
168
+ const response = await this.request({
169
+ path: `/customer-success/accounts`,
170
+ method: 'GET',
171
+ headers: headerParameters,
172
+ query: queryParameters,
173
+ }, initOverrides);
174
+
175
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListCustomerSuccessAccounts200ResponseFromJSON(jsonValue));
176
+ }
177
+
178
+ /**
179
+ * Lists seller accounts for customer success follow-up.
180
+ * List accounts
181
+ */
182
+ async listCustomerSuccessAccounts(requestParameters: CustomerSuccessApiListCustomerSuccessAccountsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListCustomerSuccessAccounts200Response> {
183
+ const response = await this.listCustomerSuccessAccountsRaw(requestParameters, initOverrides);
184
+ return await response.value();
185
+ }
186
+
187
+ }
package/src/apis/index.ts CHANGED
@@ -11,6 +11,7 @@ export * from './BankAccountsApi';
11
11
  export * from './BuyersApi';
12
12
  export * from './BuyersPublicApi';
13
13
  export * from './ChallengesApi';
14
+ export * from './CustomerSuccessApi';
14
15
  export * from './DomainTransfersApi';
15
16
  export * from './DomainsApi';
16
17
  export * from './DomainsPublicApi';
@@ -127,6 +127,7 @@ export const BuyerNotificationDtoTypeEnum = {
127
127
  RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
128
128
  PASSWORD_RESET: 'password_reset',
129
129
  USER_EMAIL_CHANGED: 'user_email_changed',
130
+ USER_EMAIL_CHANGE_CONFIRMED: 'user_email_change_confirmed',
130
131
  BUYER_INVOICE: 'buyer_invoice',
131
132
  BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
132
133
  BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
@@ -113,6 +113,7 @@ export const BuyerNotificationListItemDtoTypeEnum = {
113
113
  RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
114
114
  PASSWORD_RESET: 'password_reset',
115
115
  USER_EMAIL_CHANGED: 'user_email_changed',
116
+ USER_EMAIL_CHANGE_CONFIRMED: 'user_email_change_confirmed',
116
117
  BUYER_INVOICE: 'buyer_invoice',
117
118
  BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
118
119
  BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
@@ -0,0 +1,151 @@
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 { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ MoneyDtoToJSONTyped,
22
+ } from './MoneyDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CustomerSuccessDomainAuctionDto
28
+ */
29
+ export interface CustomerSuccessDomainAuctionDto {
30
+ /**
31
+ * Unique identifier of the auction.
32
+ * @type {string}
33
+ * @memberof CustomerSuccessDomainAuctionDto
34
+ */
35
+ id: string;
36
+ /**
37
+ * Minimum bid amount required to participate.
38
+ * @type {MoneyDto}
39
+ * @memberof CustomerSuccessDomainAuctionDto
40
+ */
41
+ minimumBid: MoneyDto;
42
+ /**
43
+ * Hidden reserve price that must be met to sell the domain.
44
+ * @type {MoneyDto}
45
+ * @memberof CustomerSuccessDomainAuctionDto
46
+ */
47
+ reservePrice: MoneyDto | null;
48
+ /**
49
+ * Auction start date and time.
50
+ * @type {Date}
51
+ * @memberof CustomerSuccessDomainAuctionDto
52
+ */
53
+ startDate: Date;
54
+ /**
55
+ * Auction end date and time.
56
+ * @type {Date}
57
+ * @memberof CustomerSuccessDomainAuctionDto
58
+ */
59
+ endDate: Date;
60
+ /**
61
+ * Current highest bid, or null if no bids have been placed.
62
+ * @type {MoneyDto}
63
+ * @memberof CustomerSuccessDomainAuctionDto
64
+ */
65
+ highestBid: MoneyDto | null;
66
+ /**
67
+ * Current lifecycle status of the auction.
68
+ * @type {string}
69
+ * @memberof CustomerSuccessDomainAuctionDto
70
+ */
71
+ status: CustomerSuccessDomainAuctionDtoStatusEnum;
72
+ /**
73
+ * Account payment ID linked to the paid auction fee, when applicable.
74
+ * @type {string}
75
+ * @memberof CustomerSuccessDomainAuctionDto
76
+ */
77
+ accountPaymentId: string | null;
78
+ }
79
+
80
+
81
+ /**
82
+ * @export
83
+ */
84
+ export const CustomerSuccessDomainAuctionDtoStatusEnum = {
85
+ SCHEDULED: 'scheduled',
86
+ ACTIVE: 'active',
87
+ ENDED: 'ended',
88
+ PENDING_PAYMENT: 'pending_payment',
89
+ FINISHED: 'finished'
90
+ } as const;
91
+ export type CustomerSuccessDomainAuctionDtoStatusEnum = typeof CustomerSuccessDomainAuctionDtoStatusEnum[keyof typeof CustomerSuccessDomainAuctionDtoStatusEnum];
92
+
93
+
94
+ /**
95
+ * Check if a given object implements the CustomerSuccessDomainAuctionDto interface.
96
+ */
97
+ export function instanceOfCustomerSuccessDomainAuctionDto(value: object): value is CustomerSuccessDomainAuctionDto {
98
+ if (!('id' in value) || value['id'] === undefined) return false;
99
+ if (!('minimumBid' in value) || value['minimumBid'] === undefined) return false;
100
+ if (!('reservePrice' in value) || value['reservePrice'] === undefined) return false;
101
+ if (!('startDate' in value) || value['startDate'] === undefined) return false;
102
+ if (!('endDate' in value) || value['endDate'] === undefined) return false;
103
+ if (!('highestBid' in value) || value['highestBid'] === undefined) return false;
104
+ if (!('status' in value) || value['status'] === undefined) return false;
105
+ if (!('accountPaymentId' in value) || value['accountPaymentId'] === undefined) return false;
106
+ return true;
107
+ }
108
+
109
+ export function CustomerSuccessDomainAuctionDtoFromJSON(json: any): CustomerSuccessDomainAuctionDto {
110
+ return CustomerSuccessDomainAuctionDtoFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function CustomerSuccessDomainAuctionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerSuccessDomainAuctionDto {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'id': json['id'],
120
+ 'minimumBid': MoneyDtoFromJSON(json['minimumBid']),
121
+ 'reservePrice': MoneyDtoFromJSON(json['reservePrice']),
122
+ 'startDate': (new Date(json['startDate'])),
123
+ 'endDate': (new Date(json['endDate'])),
124
+ 'highestBid': MoneyDtoFromJSON(json['highestBid']),
125
+ 'status': json['status'],
126
+ 'accountPaymentId': json['accountPaymentId'],
127
+ };
128
+ }
129
+
130
+ export function CustomerSuccessDomainAuctionDtoToJSON(json: any): CustomerSuccessDomainAuctionDto {
131
+ return CustomerSuccessDomainAuctionDtoToJSONTyped(json, false);
132
+ }
133
+
134
+ export function CustomerSuccessDomainAuctionDtoToJSONTyped(value?: CustomerSuccessDomainAuctionDto | null, ignoreDiscriminator: boolean = false): any {
135
+ if (value == null) {
136
+ return value;
137
+ }
138
+
139
+ return {
140
+
141
+ 'id': value['id'],
142
+ 'minimumBid': MoneyDtoToJSON(value['minimumBid']),
143
+ 'reservePrice': MoneyDtoToJSON(value['reservePrice']),
144
+ 'startDate': ((value['startDate']).toISOString()),
145
+ 'endDate': ((value['endDate']).toISOString()),
146
+ 'highestBid': MoneyDtoToJSON(value['highestBid']),
147
+ 'status': value['status'],
148
+ 'accountPaymentId': value['accountPaymentId'],
149
+ };
150
+ }
151
+