@randock/nameshift-api-client 0.0.459 → 0.0.461

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 (81) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +3 -3
  3. package/dist/apis/DomainsApi.d.ts +43 -9
  4. package/dist/apis/DomainsApi.js +156 -10
  5. package/dist/apis/JobsApi.d.ts +51 -0
  6. package/dist/apis/JobsApi.js +222 -0
  7. package/dist/apis/LeadsApi.d.ts +14 -1
  8. package/dist/apis/LeadsApi.js +63 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/ApplyDomainEditInput.d.ts +40 -0
  12. package/dist/models/ApplyDomainEditInput.js +53 -0
  13. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  14. package/dist/models/BuyerNotificationDto.js +1 -0
  15. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  16. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  17. package/dist/models/DomainEditPreviewDto.d.ts +83 -0
  18. package/dist/models/DomainEditPreviewDto.js +84 -0
  19. package/dist/models/DomainEditPreviewRowDto.d.ts +60 -0
  20. package/dist/models/DomainEditPreviewRowDto.js +67 -0
  21. package/dist/models/FeatureFlagListItemDto.d.ts +2 -0
  22. package/dist/models/FeatureFlagListItemDto.js +3 -1
  23. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
  24. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
  25. package/dist/models/JobDto.d.ts +101 -0
  26. package/dist/models/JobDto.js +98 -0
  27. package/dist/models/JobFailureDto.d.ts +38 -0
  28. package/dist/models/JobFailureDto.js +55 -0
  29. package/dist/models/JobStatus.d.ts +27 -0
  30. package/dist/models/JobStatus.js +53 -0
  31. package/dist/models/JobType.d.ts +24 -0
  32. package/dist/models/JobType.js +50 -0
  33. package/dist/models/LeadEnrichmentCompanyDto.d.ts +68 -0
  34. package/dist/models/LeadEnrichmentCompanyDto.js +75 -0
  35. package/dist/models/LeadEnrichmentDto.d.ts +72 -0
  36. package/dist/models/LeadEnrichmentDto.js +79 -0
  37. package/dist/models/LeadEnrichmentEmailDto.d.ts +44 -0
  38. package/dist/models/LeadEnrichmentEmailDto.js +59 -0
  39. package/dist/models/LeadEnrichmentIpDto.d.ts +62 -0
  40. package/dist/models/LeadEnrichmentIpDto.js +71 -0
  41. package/dist/models/LeadEnrichmentWebResultDto.d.ts +44 -0
  42. package/dist/models/LeadEnrichmentWebResultDto.js +59 -0
  43. package/dist/models/ListJobs200Response.d.ts +47 -0
  44. package/dist/models/ListJobs200Response.js +62 -0
  45. package/dist/models/PreviewDomainEditInput.d.ts +38 -0
  46. package/dist/models/PreviewDomainEditInput.js +53 -0
  47. package/dist/models/PrivateAccountGetMeResponse.d.ts +2 -0
  48. package/dist/models/PrivateAccountGetMeResponse.js +3 -1
  49. package/dist/models/UserNotificationDto.d.ts +1 -0
  50. package/dist/models/UserNotificationDto.js +1 -0
  51. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  52. package/dist/models/UserNotificationListItemDto.js +1 -0
  53. package/dist/models/index.d.ts +14 -0
  54. package/dist/models/index.js +14 -0
  55. package/package.json +1 -1
  56. package/src/apis/DomainsApi.ts +154 -12
  57. package/src/apis/JobsApi.ts +163 -0
  58. package/src/apis/LeadsApi.ts +54 -0
  59. package/src/apis/index.ts +1 -0
  60. package/src/models/ApplyDomainEditInput.ts +74 -0
  61. package/src/models/BuyerNotificationDto.ts +1 -0
  62. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  63. package/src/models/DomainEditPreviewDto.ts +146 -0
  64. package/src/models/DomainEditPreviewRowDto.ts +102 -0
  65. package/src/models/FeatureFlagListItemDto.ts +3 -1
  66. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
  67. package/src/models/JobDto.ts +189 -0
  68. package/src/models/JobFailureDto.ts +75 -0
  69. package/src/models/JobStatus.ts +55 -0
  70. package/src/models/JobType.ts +52 -0
  71. package/src/models/LeadEnrichmentCompanyDto.ts +120 -0
  72. package/src/models/LeadEnrichmentDto.ts +149 -0
  73. package/src/models/LeadEnrichmentEmailDto.ts +84 -0
  74. package/src/models/LeadEnrichmentIpDto.ts +111 -0
  75. package/src/models/LeadEnrichmentWebResultDto.ts +84 -0
  76. package/src/models/ListJobs200Response.ts +106 -0
  77. package/src/models/PreviewDomainEditInput.ts +74 -0
  78. package/src/models/PrivateAccountGetMeResponse.ts +3 -1
  79. package/src/models/UserNotificationDto.ts +1 -0
  80. package/src/models/UserNotificationListItemDto.ts +1 -0
  81. package/src/models/index.ts +14 -0
@@ -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 { JobDto } from './JobDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ListJobs200Response
19
+ */
20
+ export interface ListJobs200Response {
21
+ /**
22
+ *
23
+ * @type {Array<JobDto>}
24
+ * @memberof ListJobs200Response
25
+ */
26
+ data: Array<JobDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof ListJobs200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof ListJobs200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the ListJobs200Response interface.
42
+ */
43
+ export declare function instanceOfListJobs200Response(value: object): value is ListJobs200Response;
44
+ export declare function ListJobs200ResponseFromJSON(json: any): ListJobs200Response;
45
+ export declare function ListJobs200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListJobs200Response;
46
+ export declare function ListJobs200ResponseToJSON(json: any): ListJobs200Response;
47
+ export declare function ListJobs200ResponseToJSONTyped(value?: ListJobs200Response | 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.instanceOfListJobs200Response = instanceOfListJobs200Response;
17
+ exports.ListJobs200ResponseFromJSON = ListJobs200ResponseFromJSON;
18
+ exports.ListJobs200ResponseFromJSONTyped = ListJobs200ResponseFromJSONTyped;
19
+ exports.ListJobs200ResponseToJSON = ListJobs200ResponseToJSON;
20
+ exports.ListJobs200ResponseToJSONTyped = ListJobs200ResponseToJSONTyped;
21
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
+ var JobDto_1 = require("./JobDto");
23
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * Check if a given object implements the ListJobs200Response interface.
26
+ */
27
+ function instanceOfListJobs200Response(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 ListJobs200ResponseFromJSON(json) {
37
+ return ListJobs200ResponseFromJSONTyped(json, false);
38
+ }
39
+ function ListJobs200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'data': (json['data'].map(JobDto_1.JobDtoFromJSON)),
45
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
+ };
48
+ }
49
+ function ListJobs200ResponseToJSON(json) {
50
+ return ListJobs200ResponseToJSONTyped(json, false);
51
+ }
52
+ function ListJobs200ResponseToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'data': (value['data'].map(JobDto_1.JobDtoToJSON)),
59
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
+ };
62
+ }
@@ -0,0 +1,38 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface PreviewDomainEditInput
16
+ */
17
+ export interface PreviewDomainEditInput {
18
+ /**
19
+ * The selected domains. Omit to apply to everything the filter and searchFilter match.
20
+ * @type {Array<string>}
21
+ * @memberof PreviewDomainEditInput
22
+ */
23
+ domainIds?: Array<string>;
24
+ /**
25
+ * The change the seller wants, in their own words.
26
+ * @type {string}
27
+ * @memberof PreviewDomainEditInput
28
+ */
29
+ request: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PreviewDomainEditInput interface.
33
+ */
34
+ export declare function instanceOfPreviewDomainEditInput(value: object): value is PreviewDomainEditInput;
35
+ export declare function PreviewDomainEditInputFromJSON(json: any): PreviewDomainEditInput;
36
+ export declare function PreviewDomainEditInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreviewDomainEditInput;
37
+ export declare function PreviewDomainEditInputToJSON(json: any): PreviewDomainEditInput;
38
+ export declare function PreviewDomainEditInputToJSONTyped(value?: PreviewDomainEditInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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.instanceOfPreviewDomainEditInput = instanceOfPreviewDomainEditInput;
17
+ exports.PreviewDomainEditInputFromJSON = PreviewDomainEditInputFromJSON;
18
+ exports.PreviewDomainEditInputFromJSONTyped = PreviewDomainEditInputFromJSONTyped;
19
+ exports.PreviewDomainEditInputToJSON = PreviewDomainEditInputToJSON;
20
+ exports.PreviewDomainEditInputToJSONTyped = PreviewDomainEditInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PreviewDomainEditInput interface.
23
+ */
24
+ function instanceOfPreviewDomainEditInput(value) {
25
+ if (!('request' in value) || value['request'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PreviewDomainEditInputFromJSON(json) {
30
+ return PreviewDomainEditInputFromJSONTyped(json, false);
31
+ }
32
+ function PreviewDomainEditInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'domainIds': json['domainIds'] == null ? undefined : json['domainIds'],
38
+ 'request': json['request'],
39
+ };
40
+ }
41
+ function PreviewDomainEditInputToJSON(json) {
42
+ return PreviewDomainEditInputToJSONTyped(json, false);
43
+ }
44
+ function PreviewDomainEditInputToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'domainIds': value['domainIds'],
51
+ 'request': value['request'],
52
+ };
53
+ }
@@ -138,6 +138,8 @@ export declare const PrivateAccountGetMeResponseEnabledFeaturesEnum: {
138
138
  readonly USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: "USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST";
139
139
  readonly AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: "AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD";
140
140
  readonly MARKETPLACE_ROUTING: "MARKETPLACE_ROUTING";
141
+ readonly AI_DOMAIN_EDIT: "AI_DOMAIN_EDIT";
142
+ readonly LEAD_ENRICHMENT: "LEAD_ENRICHMENT";
141
143
  };
142
144
  export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
143
145
  /**
@@ -56,7 +56,9 @@ exports.PrivateAccountGetMeResponseEnabledFeaturesEnum = {
56
56
  USE_MAILER_FALLBACK_URL: 'USE_MAILER_FALLBACK_URL',
57
57
  USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
58
58
  AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
59
- MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING'
59
+ MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING',
60
+ AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
61
+ LEAD_ENRICHMENT: 'LEAD_ENRICHMENT'
60
62
  };
61
63
  /**
62
64
  * Check if a given object implements the PrivateAccountGetMeResponse interface.
@@ -120,6 +120,7 @@ export declare const UserNotificationDtoTypeEnum: {
120
120
  readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
121
121
  readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
122
122
  readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
123
+ readonly BULK_EDIT_DOMAINS_FINISHED: "bulk_edit_domains_finished";
123
124
  readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
124
125
  readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
125
126
  readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
@@ -81,6 +81,7 @@ exports.UserNotificationDtoTypeEnum = {
81
81
  SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
82
82
  SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
83
83
  EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
84
+ BULK_EDIT_DOMAINS_FINISHED: 'bulk_edit_domains_finished',
84
85
  ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
85
86
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
86
87
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
@@ -113,6 +113,7 @@ export declare const UserNotificationListItemDtoTypeEnum: {
113
113
  readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
114
114
  readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
115
115
  readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
116
+ readonly BULK_EDIT_DOMAINS_FINISHED: "bulk_edit_domains_finished";
116
117
  readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
117
118
  readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
118
119
  readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
@@ -80,6 +80,7 @@ exports.UserNotificationListItemDtoTypeEnum = {
80
80
  SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
81
81
  SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
82
82
  EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
83
+ BULK_EDIT_DOMAINS_FINISHED: 'bulk_edit_domains_finished',
83
84
  ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
84
85
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
85
86
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
@@ -73,6 +73,7 @@ export * from './AirwallexDepositDto';
73
73
  export * from './AirwallexDepositDtoFee';
74
74
  export * from './ApiKeyDto';
75
75
  export * from './ApiKeyScopeDto';
76
+ export * from './ApplyDomainEditInput';
76
77
  export * from './AuBankAccountDetails';
77
78
  export * from './AuctionBidDto';
78
79
  export * from './AuctionBidInput';
@@ -181,6 +182,8 @@ export * from './CursorBasedPaginationResponse';
181
182
  export * from './DeleteDomainsInput';
182
183
  export * from './DomainAuctionDto';
183
184
  export * from './DomainCategoryItemDto';
185
+ export * from './DomainEditPreviewDto';
186
+ export * from './DomainEditPreviewRowDto';
184
187
  export * from './DomainExchangeRateDto';
185
188
  export * from './DomainFiltersDto';
186
189
  export * from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
@@ -268,6 +271,10 @@ export * from './InvoiceItemDto';
268
271
  export * from './InvoiceItemTaxDto';
269
272
  export * from './InvoiceSellerAccountDto';
270
273
  export * from './InvoiceTransactionDto';
274
+ export * from './JobDto';
275
+ export * from './JobFailureDto';
276
+ export * from './JobStatus';
277
+ export * from './JobType';
271
278
  export * from './LandingPageDesignSettingsDto';
272
279
  export * from './LandingPageDesignSettingsInput';
273
280
  export * from './LandingPageInput';
@@ -281,6 +288,11 @@ export * from './LandingPageSettingsDto';
281
288
  export * from './LeadBuyerConfigDto';
282
289
  export * from './LeadDomainDto';
283
290
  export * from './LeadDto';
291
+ export * from './LeadEnrichmentCompanyDto';
292
+ export * from './LeadEnrichmentDto';
293
+ export * from './LeadEnrichmentEmailDto';
294
+ export * from './LeadEnrichmentIpDto';
295
+ export * from './LeadEnrichmentWebResultDto';
284
296
  export * from './LeadLeaseToOwnAndRentConfigurationPresetsDto';
285
297
  export * from './LeadLeaseToOwnConfigurationDto';
286
298
  export * from './LeadMessageData';
@@ -318,6 +330,7 @@ export * from './ListBankDeposits200Response';
318
330
  export * from './ListBuyerNotifications200Response';
319
331
  export * from './ListDomains200Response';
320
332
  export * from './ListDomainsWithUpdatedPricing200Response';
333
+ export * from './ListJobs200Response';
321
334
  export * from './ListLeadMessagesDto';
322
335
  export * from './ListLeads200Response';
323
336
  export * from './ListLeadsResultItem';
@@ -363,6 +376,7 @@ export * from './PartnerDomainFindDto';
363
376
  export * from './PayAccountPaymentInput';
364
377
  export * from './PaymentMethodsStatsDto';
365
378
  export * from './PopularCategoryDto';
379
+ export * from './PreviewDomainEditInput';
366
380
  export * from './PrivateAccountGetMeResponse';
367
381
  export * from './PublicAccountInformationDto';
368
382
  export * from './PublicAuctionListItemDto';
@@ -91,6 +91,7 @@ __exportStar(require("./AirwallexDepositDto"), exports);
91
91
  __exportStar(require("./AirwallexDepositDtoFee"), exports);
92
92
  __exportStar(require("./ApiKeyDto"), exports);
93
93
  __exportStar(require("./ApiKeyScopeDto"), exports);
94
+ __exportStar(require("./ApplyDomainEditInput"), exports);
94
95
  __exportStar(require("./AuBankAccountDetails"), exports);
95
96
  __exportStar(require("./AuctionBidDto"), exports);
96
97
  __exportStar(require("./AuctionBidInput"), exports);
@@ -199,6 +200,8 @@ __exportStar(require("./CursorBasedPaginationResponse"), exports);
199
200
  __exportStar(require("./DeleteDomainsInput"), exports);
200
201
  __exportStar(require("./DomainAuctionDto"), exports);
201
202
  __exportStar(require("./DomainCategoryItemDto"), exports);
203
+ __exportStar(require("./DomainEditPreviewDto"), exports);
204
+ __exportStar(require("./DomainEditPreviewRowDto"), exports);
202
205
  __exportStar(require("./DomainExchangeRateDto"), exports);
203
206
  __exportStar(require("./DomainFiltersDto"), exports);
204
207
  __exportStar(require("./DomainLeadPriceNegotiatorAiAgentConfigurationDto"), exports);
@@ -286,6 +289,10 @@ __exportStar(require("./InvoiceItemDto"), exports);
286
289
  __exportStar(require("./InvoiceItemTaxDto"), exports);
287
290
  __exportStar(require("./InvoiceSellerAccountDto"), exports);
288
291
  __exportStar(require("./InvoiceTransactionDto"), exports);
292
+ __exportStar(require("./JobDto"), exports);
293
+ __exportStar(require("./JobFailureDto"), exports);
294
+ __exportStar(require("./JobStatus"), exports);
295
+ __exportStar(require("./JobType"), exports);
289
296
  __exportStar(require("./LandingPageDesignSettingsDto"), exports);
290
297
  __exportStar(require("./LandingPageDesignSettingsInput"), exports);
291
298
  __exportStar(require("./LandingPageInput"), exports);
@@ -299,6 +306,11 @@ __exportStar(require("./LandingPageSettingsDto"), exports);
299
306
  __exportStar(require("./LeadBuyerConfigDto"), exports);
300
307
  __exportStar(require("./LeadDomainDto"), exports);
301
308
  __exportStar(require("./LeadDto"), exports);
309
+ __exportStar(require("./LeadEnrichmentCompanyDto"), exports);
310
+ __exportStar(require("./LeadEnrichmentDto"), exports);
311
+ __exportStar(require("./LeadEnrichmentEmailDto"), exports);
312
+ __exportStar(require("./LeadEnrichmentIpDto"), exports);
313
+ __exportStar(require("./LeadEnrichmentWebResultDto"), exports);
302
314
  __exportStar(require("./LeadLeaseToOwnAndRentConfigurationPresetsDto"), exports);
303
315
  __exportStar(require("./LeadLeaseToOwnConfigurationDto"), exports);
304
316
  __exportStar(require("./LeadMessageData"), exports);
@@ -336,6 +348,7 @@ __exportStar(require("./ListBankDeposits200Response"), exports);
336
348
  __exportStar(require("./ListBuyerNotifications200Response"), exports);
337
349
  __exportStar(require("./ListDomains200Response"), exports);
338
350
  __exportStar(require("./ListDomainsWithUpdatedPricing200Response"), exports);
351
+ __exportStar(require("./ListJobs200Response"), exports);
339
352
  __exportStar(require("./ListLeadMessagesDto"), exports);
340
353
  __exportStar(require("./ListLeads200Response"), exports);
341
354
  __exportStar(require("./ListLeadsResultItem"), exports);
@@ -381,6 +394,7 @@ __exportStar(require("./PartnerDomainFindDto"), exports);
381
394
  __exportStar(require("./PayAccountPaymentInput"), exports);
382
395
  __exportStar(require("./PaymentMethodsStatsDto"), exports);
383
396
  __exportStar(require("./PopularCategoryDto"), exports);
397
+ __exportStar(require("./PreviewDomainEditInput"), exports);
384
398
  __exportStar(require("./PrivateAccountGetMeResponse"), exports);
385
399
  __exportStar(require("./PublicAccountInformationDto"), exports);
386
400
  __exportStar(require("./PublicAuctionListItemDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.459",
3
+ "version": "0.0.461",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -15,12 +15,14 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ApplyDomainEditInput,
18
19
  BadRequestException,
19
20
  BatchImportPreviewDto,
20
21
  BatchUpdateDomainsInput,
21
22
  BulkUpdateDomainsWithFiltersInput,
22
23
  CheckDomainsNsInput,
23
24
  DeleteDomainsInput,
25
+ DomainEditPreviewDto,
24
26
  DomainExchangeRateDto,
25
27
  DomainFiltersDto,
26
28
  DomainSearchTranslationDto,
@@ -28,8 +30,10 @@ import type {
28
30
  DomainVerificationStatusDto,
29
31
  GetAllDomainTransfers200Response,
30
32
  IntersectionDomainDtoWithHijackerDtoWithAccountDto,
33
+ JobDto,
31
34
  List200Response2,
32
35
  NotFoundException,
36
+ PreviewDomainEditInput,
33
37
  SellerDomainAffiliateCommissionDto,
34
38
  SellerDomainTransferDto,
35
39
  StartAuctionInput,
@@ -40,6 +44,8 @@ import type {
40
44
  ValidationException,
41
45
  } from '../models/index';
42
46
  import {
47
+ ApplyDomainEditInputFromJSON,
48
+ ApplyDomainEditInputToJSON,
43
49
  BadRequestExceptionFromJSON,
44
50
  BadRequestExceptionToJSON,
45
51
  BatchImportPreviewDtoFromJSON,
@@ -52,6 +58,8 @@ import {
52
58
  CheckDomainsNsInputToJSON,
53
59
  DeleteDomainsInputFromJSON,
54
60
  DeleteDomainsInputToJSON,
61
+ DomainEditPreviewDtoFromJSON,
62
+ DomainEditPreviewDtoToJSON,
55
63
  DomainExchangeRateDtoFromJSON,
56
64
  DomainExchangeRateDtoToJSON,
57
65
  DomainFiltersDtoFromJSON,
@@ -66,10 +74,14 @@ import {
66
74
  GetAllDomainTransfers200ResponseToJSON,
67
75
  IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON,
68
76
  IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON,
77
+ JobDtoFromJSON,
78
+ JobDtoToJSON,
69
79
  List200Response2FromJSON,
70
80
  List200Response2ToJSON,
71
81
  NotFoundExceptionFromJSON,
72
82
  NotFoundExceptionToJSON,
83
+ PreviewDomainEditInputFromJSON,
84
+ PreviewDomainEditInputToJSON,
73
85
  SellerDomainAffiliateCommissionDtoFromJSON,
74
86
  SellerDomainAffiliateCommissionDtoToJSON,
75
87
  SellerDomainTransferDtoFromJSON,
@@ -88,6 +100,12 @@ import {
88
100
  ValidationExceptionToJSON,
89
101
  } from '../models/index';
90
102
 
103
+ export interface DomainsApiApplyDomainEditRequest {
104
+ applyDomainEditInput: ApplyDomainEditInput;
105
+ searchFilter?: string;
106
+ filter?: { [key: string]: string; };
107
+ }
108
+
91
109
  export interface DomainsApiBatchImportRequest {
92
110
  domains?: Array<string>;
93
111
  file?: Blob | null;
@@ -172,6 +190,12 @@ export interface DomainsApiListRequest {
172
190
  filterName?: string;
173
191
  }
174
192
 
193
+ export interface DomainsApiPreviewDomainEditRequest {
194
+ previewDomainEditInput: PreviewDomainEditInput;
195
+ searchFilter?: string;
196
+ filter?: { [key: string]: string; };
197
+ }
198
+
175
199
  export interface DomainsApiStartAuctionRequest {
176
200
  domainId: string;
177
201
  startAuctionInput: StartAuctionInput;
@@ -201,6 +225,64 @@ export interface DomainsApiUpdateDomainTransferIpsTagRequest {
201
225
  */
202
226
  export class DomainsApi extends runtime.BaseAPI {
203
227
 
228
+ /**
229
+ * Queues the operations a preview returned. Send them back unchanged; they are validated again here. Domains failing validation are skipped and the rest still apply. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
230
+ * Queue a previewed bulk edit
231
+ */
232
+ async applyDomainEditRaw(requestParameters: DomainsApiApplyDomainEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>> {
233
+ if (requestParameters['applyDomainEditInput'] == null) {
234
+ throw new runtime.RequiredError(
235
+ 'applyDomainEditInput',
236
+ 'Required parameter "applyDomainEditInput" was null or undefined when calling applyDomainEdit().'
237
+ );
238
+ }
239
+
240
+ const queryParameters: any = {};
241
+
242
+ if (requestParameters['searchFilter'] != null) {
243
+ queryParameters['searchFilter'] = requestParameters['searchFilter'];
244
+ }
245
+
246
+ if (requestParameters['filter'] != null) {
247
+ queryParameters['filter'] = requestParameters['filter'];
248
+ }
249
+
250
+ const headerParameters: runtime.HTTPHeaders = {};
251
+
252
+ headerParameters['Content-Type'] = 'application/json';
253
+
254
+ if (this.configuration && this.configuration.apiKey) {
255
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
256
+ }
257
+
258
+ if (this.configuration && this.configuration.accessToken) {
259
+ const token = this.configuration.accessToken;
260
+ const tokenString = await token("bearer", []);
261
+
262
+ if (tokenString) {
263
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
264
+ }
265
+ }
266
+ const response = await this.request({
267
+ path: `/private/domains/edit`,
268
+ method: 'PATCH',
269
+ headers: headerParameters,
270
+ query: queryParameters,
271
+ body: ApplyDomainEditInputToJSON(requestParameters['applyDomainEditInput']),
272
+ }, initOverrides);
273
+
274
+ return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
275
+ }
276
+
277
+ /**
278
+ * Queues the operations a preview returned. Send them back unchanged; they are validated again here. Domains failing validation are skipped and the rest still apply. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
279
+ * Queue a previewed bulk edit
280
+ */
281
+ async applyDomainEdit(requestParameters: DomainsApiApplyDomainEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto> {
282
+ const response = await this.applyDomainEditRaw(requestParameters, initOverrides);
283
+ return await response.value();
284
+ }
285
+
204
286
  /**
205
287
  * Imports domains from an uploaded file or a list of domain names and queues them for processing. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
206
288
  * Import domains
@@ -327,10 +409,10 @@ export class DomainsApi extends runtime.BaseAPI {
327
409
  }
328
410
 
329
411
  /**
330
- * Applies the same settings update to multiple domains by ID. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
412
+ * Queues the same settings update for multiple domains by ID. Ids belonging to another account match nothing, and domains the update would leave in an invalid state are skipped while the rest still apply. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
331
413
  * Batch update domains
332
414
  */
333
- async batchUpdateRaw(requestParameters: DomainsApiBatchUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
415
+ async batchUpdateRaw(requestParameters: DomainsApiBatchUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>> {
334
416
  if (requestParameters['batchUpdateDomainsInput'] == null) {
335
417
  throw new runtime.RequiredError(
336
418
  'batchUpdateDomainsInput',
@@ -364,22 +446,23 @@ export class DomainsApi extends runtime.BaseAPI {
364
446
  body: BatchUpdateDomainsInputToJSON(requestParameters['batchUpdateDomainsInput']),
365
447
  }, initOverrides);
366
448
 
367
- return new runtime.VoidApiResponse(response);
449
+ return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
368
450
  }
369
451
 
370
452
  /**
371
- * Applies the same settings update to multiple domains by ID. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
453
+ * Queues the same settings update for multiple domains by ID. Ids belonging to another account match nothing, and domains the update would leave in an invalid state are skipped while the rest still apply. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
372
454
  * Batch update domains
373
455
  */
374
- async batchUpdate(requestParameters: DomainsApiBatchUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
375
- await this.batchUpdateRaw(requestParameters, initOverrides);
456
+ async batchUpdate(requestParameters: DomainsApiBatchUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto> {
457
+ const response = await this.batchUpdateRaw(requestParameters, initOverrides);
458
+ return await response.value();
376
459
  }
377
460
 
378
461
  /**
379
- * Applies pricing and configuration updates to all domains matching the provided filter criteria. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
462
+ * Queues pricing and configuration updates for every domain matching the provided filter criteria. Domains the update would leave in an invalid state are skipped and the rest still apply. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
380
463
  * Bulk update domains with filters
381
464
  */
382
- async bulkUpdateDomainsWithFiltersRaw(requestParameters: DomainsApiBulkUpdateDomainsWithFiltersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
465
+ async bulkUpdateDomainsWithFiltersRaw(requestParameters: DomainsApiBulkUpdateDomainsWithFiltersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>> {
383
466
  if (requestParameters['bulkUpdateDomainsWithFiltersInput'] == null) {
384
467
  throw new runtime.RequiredError(
385
468
  'bulkUpdateDomainsWithFiltersInput',
@@ -421,15 +504,16 @@ export class DomainsApi extends runtime.BaseAPI {
421
504
  body: BulkUpdateDomainsWithFiltersInputToJSON(requestParameters['bulkUpdateDomainsWithFiltersInput']),
422
505
  }, initOverrides);
423
506
 
424
- return new runtime.VoidApiResponse(response);
507
+ return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
425
508
  }
426
509
 
427
510
  /**
428
- * Applies pricing and configuration updates to all domains matching the provided filter criteria. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
511
+ * Queues pricing and configuration updates for every domain matching the provided filter criteria. Domains the update would leave in an invalid state are skipped and the rest still apply. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
429
512
  * Bulk update domains with filters
430
513
  */
431
- async bulkUpdateDomainsWithFilters(requestParameters: DomainsApiBulkUpdateDomainsWithFiltersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
432
- await this.bulkUpdateDomainsWithFiltersRaw(requestParameters, initOverrides);
514
+ async bulkUpdateDomainsWithFilters(requestParameters: DomainsApiBulkUpdateDomainsWithFiltersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto> {
515
+ const response = await this.bulkUpdateDomainsWithFiltersRaw(requestParameters, initOverrides);
516
+ return await response.value();
433
517
  }
434
518
 
435
519
  /**
@@ -1141,6 +1225,64 @@ export class DomainsApi extends runtime.BaseAPI {
1141
1225
  return await response.value();
1142
1226
  }
1143
1227
 
1228
+ /**
1229
+ * Turns a sentence into edit operations and returns how many domains it would change, with a sample of before and after values. Nothing is written. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
1230
+ * Translate a plain-language bulk edit and preview it
1231
+ */
1232
+ async previewDomainEditRaw(requestParameters: DomainsApiPreviewDomainEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainEditPreviewDto>> {
1233
+ if (requestParameters['previewDomainEditInput'] == null) {
1234
+ throw new runtime.RequiredError(
1235
+ 'previewDomainEditInput',
1236
+ 'Required parameter "previewDomainEditInput" was null or undefined when calling previewDomainEdit().'
1237
+ );
1238
+ }
1239
+
1240
+ const queryParameters: any = {};
1241
+
1242
+ if (requestParameters['searchFilter'] != null) {
1243
+ queryParameters['searchFilter'] = requestParameters['searchFilter'];
1244
+ }
1245
+
1246
+ if (requestParameters['filter'] != null) {
1247
+ queryParameters['filter'] = requestParameters['filter'];
1248
+ }
1249
+
1250
+ const headerParameters: runtime.HTTPHeaders = {};
1251
+
1252
+ headerParameters['Content-Type'] = 'application/json';
1253
+
1254
+ if (this.configuration && this.configuration.apiKey) {
1255
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
1256
+ }
1257
+
1258
+ if (this.configuration && this.configuration.accessToken) {
1259
+ const token = this.configuration.accessToken;
1260
+ const tokenString = await token("bearer", []);
1261
+
1262
+ if (tokenString) {
1263
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1264
+ }
1265
+ }
1266
+ const response = await this.request({
1267
+ path: `/private/domains/edit/preview`,
1268
+ method: 'POST',
1269
+ headers: headerParameters,
1270
+ query: queryParameters,
1271
+ body: PreviewDomainEditInputToJSON(requestParameters['previewDomainEditInput']),
1272
+ }, initOverrides);
1273
+
1274
+ return new runtime.JSONApiResponse(response, (jsonValue) => DomainEditPreviewDtoFromJSON(jsonValue));
1275
+ }
1276
+
1277
+ /**
1278
+ * Turns a sentence into edit operations and returns how many domains it would change, with a sample of before and after values. Nothing is written. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
1279
+ * Translate a plain-language bulk edit and preview it
1280
+ */
1281
+ async previewDomainEdit(requestParameters: DomainsApiPreviewDomainEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainEditPreviewDto> {
1282
+ const response = await this.previewDomainEditRaw(requestParameters, initOverrides);
1283
+ return await response.value();
1284
+ }
1285
+
1144
1286
  /**
1145
1287
  * Creates and starts an auction for the specified verified domain. **API key scope required:** `AUCTIONS_WRITE`. Requests authenticated with a seller session do not need any scope.
1146
1288
  * Start domain auction