@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,60 @@
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 DomainEditPreviewRowDto
16
+ */
17
+ export interface DomainEditPreviewRowDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof DomainEditPreviewRowDto
22
+ */
23
+ domainName: string;
24
+ /**
25
+ * The currency the before values are in.
26
+ * @type {string}
27
+ * @memberof DomainEditPreviewRowDto
28
+ */
29
+ currencyCode: string;
30
+ /**
31
+ * The currency the after values are in. Differs from currencyCode when the edit changes it.
32
+ * @type {string}
33
+ * @memberof DomainEditPreviewRowDto
34
+ */
35
+ toCurrencyCode: string;
36
+ /**
37
+ * Current value per changed field, keyed by field name.
38
+ * @type {{ [key: string]: any; }}
39
+ * @memberof DomainEditPreviewRowDto
40
+ */
41
+ before: {
42
+ [key: string]: any;
43
+ };
44
+ /**
45
+ * Resulting value per changed field, keyed by field name.
46
+ * @type {{ [key: string]: any; }}
47
+ * @memberof DomainEditPreviewRowDto
48
+ */
49
+ after: {
50
+ [key: string]: any;
51
+ };
52
+ }
53
+ /**
54
+ * Check if a given object implements the DomainEditPreviewRowDto interface.
55
+ */
56
+ export declare function instanceOfDomainEditPreviewRowDto(value: object): value is DomainEditPreviewRowDto;
57
+ export declare function DomainEditPreviewRowDtoFromJSON(json: any): DomainEditPreviewRowDto;
58
+ export declare function DomainEditPreviewRowDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainEditPreviewRowDto;
59
+ export declare function DomainEditPreviewRowDtoToJSON(json: any): DomainEditPreviewRowDto;
60
+ export declare function DomainEditPreviewRowDtoToJSONTyped(value?: DomainEditPreviewRowDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfDomainEditPreviewRowDto = instanceOfDomainEditPreviewRowDto;
17
+ exports.DomainEditPreviewRowDtoFromJSON = DomainEditPreviewRowDtoFromJSON;
18
+ exports.DomainEditPreviewRowDtoFromJSONTyped = DomainEditPreviewRowDtoFromJSONTyped;
19
+ exports.DomainEditPreviewRowDtoToJSON = DomainEditPreviewRowDtoToJSON;
20
+ exports.DomainEditPreviewRowDtoToJSONTyped = DomainEditPreviewRowDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DomainEditPreviewRowDto interface.
23
+ */
24
+ function instanceOfDomainEditPreviewRowDto(value) {
25
+ if (!('domainName' in value) || value['domainName'] === undefined)
26
+ return false;
27
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
28
+ return false;
29
+ if (!('toCurrencyCode' in value) || value['toCurrencyCode'] === undefined)
30
+ return false;
31
+ if (!('before' in value) || value['before'] === undefined)
32
+ return false;
33
+ if (!('after' in value) || value['after'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function DomainEditPreviewRowDtoFromJSON(json) {
38
+ return DomainEditPreviewRowDtoFromJSONTyped(json, false);
39
+ }
40
+ function DomainEditPreviewRowDtoFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'domainName': json['domainName'],
46
+ 'currencyCode': json['currencyCode'],
47
+ 'toCurrencyCode': json['toCurrencyCode'],
48
+ 'before': json['before'],
49
+ 'after': json['after'],
50
+ };
51
+ }
52
+ function DomainEditPreviewRowDtoToJSON(json) {
53
+ return DomainEditPreviewRowDtoToJSONTyped(json, false);
54
+ }
55
+ function DomainEditPreviewRowDtoToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'domainName': value['domainName'],
62
+ 'currencyCode': value['currencyCode'],
63
+ 'toCurrencyCode': value['toCurrencyCode'],
64
+ 'before': value['before'],
65
+ 'after': value['after'],
66
+ };
67
+ }
@@ -89,6 +89,8 @@ export declare const FeatureFlagListItemDtoNameEnum: {
89
89
  readonly USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: "USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST";
90
90
  readonly AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: "AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD";
91
91
  readonly MARKETPLACE_ROUTING: "MARKETPLACE_ROUTING";
92
+ readonly AI_DOMAIN_EDIT: "AI_DOMAIN_EDIT";
93
+ readonly LEAD_ENRICHMENT: "LEAD_ENRICHMENT";
92
94
  };
93
95
  export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
94
96
  /**
@@ -49,7 +49,9 @@ exports.FeatureFlagListItemDtoNameEnum = {
49
49
  USE_MAILER_FALLBACK_URL: 'USE_MAILER_FALLBACK_URL',
50
50
  USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
51
51
  AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
52
- MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING'
52
+ MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING',
53
+ AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
54
+ LEAD_ENRICHMENT: 'LEAD_ENRICHMENT'
53
55
  };
54
56
  /**
55
57
  * Check if a given object implements the FeatureFlagListItemDto interface.
@@ -132,6 +132,8 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
132
132
  readonly USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: "USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST";
133
133
  readonly AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: "AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD";
134
134
  readonly MARKETPLACE_ROUTING: "MARKETPLACE_ROUTING";
135
+ readonly AI_DOMAIN_EDIT: "AI_DOMAIN_EDIT";
136
+ readonly LEAD_ENRICHMENT: "LEAD_ENRICHMENT";
135
137
  };
136
138
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
137
139
  /**
@@ -56,7 +56,9 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
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 IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
@@ -0,0 +1,101 @@
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 { JobStatus } from './JobStatus';
13
+ import type { JobType } from './JobType';
14
+ import type { JobFailureDto } from './JobFailureDto';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface JobDto
19
+ */
20
+ export interface JobDto {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof JobDto
25
+ */
26
+ id: string;
27
+ /**
28
+ *
29
+ * @type {JobType}
30
+ * @memberof JobDto
31
+ */
32
+ type: JobType;
33
+ /**
34
+ *
35
+ * @type {JobStatus}
36
+ * @memberof JobDto
37
+ */
38
+ status: JobStatus;
39
+ /**
40
+ * How many items the job expects to touch. An estimate while it runs, exact once it has finished.
41
+ * @type {number}
42
+ * @memberof JobDto
43
+ */
44
+ total: number;
45
+ /**
46
+ *
47
+ * @type {number}
48
+ * @memberof JobDto
49
+ */
50
+ processed: number;
51
+ /**
52
+ *
53
+ * @type {number}
54
+ * @memberof JobDto
55
+ */
56
+ succeeded: number;
57
+ /**
58
+ * Items the job refused rather than applied, most often because the change would have left them invalid.
59
+ * @type {number}
60
+ * @memberof JobDto
61
+ */
62
+ failed: number;
63
+ /**
64
+ * The first few failures, for showing without a second request.
65
+ * @type {Array<JobFailureDto>}
66
+ * @memberof JobDto
67
+ */
68
+ failures: Array<JobFailureDto>;
69
+ /**
70
+ * Why the job as a whole stopped. Never a per-item problem.
71
+ * @type {string}
72
+ * @memberof JobDto
73
+ */
74
+ failureReason: string | null;
75
+ /**
76
+ *
77
+ * @type {Date}
78
+ * @memberof JobDto
79
+ */
80
+ createdAt: Date;
81
+ /**
82
+ *
83
+ * @type {Date}
84
+ * @memberof JobDto
85
+ */
86
+ startedAt: Date | null;
87
+ /**
88
+ *
89
+ * @type {Date}
90
+ * @memberof JobDto
91
+ */
92
+ finishedAt: Date | null;
93
+ }
94
+ /**
95
+ * Check if a given object implements the JobDto interface.
96
+ */
97
+ export declare function instanceOfJobDto(value: object): value is JobDto;
98
+ export declare function JobDtoFromJSON(json: any): JobDto;
99
+ export declare function JobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobDto;
100
+ export declare function JobDtoToJSON(json: any): JobDto;
101
+ export declare function JobDtoToJSONTyped(value?: JobDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,98 @@
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.instanceOfJobDto = instanceOfJobDto;
17
+ exports.JobDtoFromJSON = JobDtoFromJSON;
18
+ exports.JobDtoFromJSONTyped = JobDtoFromJSONTyped;
19
+ exports.JobDtoToJSON = JobDtoToJSON;
20
+ exports.JobDtoToJSONTyped = JobDtoToJSONTyped;
21
+ var JobStatus_1 = require("./JobStatus");
22
+ var JobType_1 = require("./JobType");
23
+ var JobFailureDto_1 = require("./JobFailureDto");
24
+ /**
25
+ * Check if a given object implements the JobDto interface.
26
+ */
27
+ function instanceOfJobDto(value) {
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('type' in value) || value['type'] === undefined)
31
+ return false;
32
+ if (!('status' in value) || value['status'] === undefined)
33
+ return false;
34
+ if (!('total' in value) || value['total'] === undefined)
35
+ return false;
36
+ if (!('processed' in value) || value['processed'] === undefined)
37
+ return false;
38
+ if (!('succeeded' in value) || value['succeeded'] === undefined)
39
+ return false;
40
+ if (!('failed' in value) || value['failed'] === undefined)
41
+ return false;
42
+ if (!('failures' in value) || value['failures'] === undefined)
43
+ return false;
44
+ if (!('failureReason' in value) || value['failureReason'] === undefined)
45
+ return false;
46
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
47
+ return false;
48
+ if (!('startedAt' in value) || value['startedAt'] === undefined)
49
+ return false;
50
+ if (!('finishedAt' in value) || value['finishedAt'] === undefined)
51
+ return false;
52
+ return true;
53
+ }
54
+ function JobDtoFromJSON(json) {
55
+ return JobDtoFromJSONTyped(json, false);
56
+ }
57
+ function JobDtoFromJSONTyped(json, ignoreDiscriminator) {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+ 'id': json['id'],
63
+ 'type': (0, JobType_1.JobTypeFromJSON)(json['type']),
64
+ 'status': (0, JobStatus_1.JobStatusFromJSON)(json['status']),
65
+ 'total': json['total'],
66
+ 'processed': json['processed'],
67
+ 'succeeded': json['succeeded'],
68
+ 'failed': json['failed'],
69
+ 'failures': (json['failures'].map(JobFailureDto_1.JobFailureDtoFromJSON)),
70
+ 'failureReason': json['failureReason'],
71
+ 'createdAt': (new Date(json['createdAt'])),
72
+ 'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
73
+ 'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
74
+ };
75
+ }
76
+ function JobDtoToJSON(json) {
77
+ return JobDtoToJSONTyped(json, false);
78
+ }
79
+ function JobDtoToJSONTyped(value, ignoreDiscriminator) {
80
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+ 'id': value['id'],
86
+ 'type': (0, JobType_1.JobTypeToJSON)(value['type']),
87
+ 'status': (0, JobStatus_1.JobStatusToJSON)(value['status']),
88
+ 'total': value['total'],
89
+ 'processed': value['processed'],
90
+ 'succeeded': value['succeeded'],
91
+ 'failed': value['failed'],
92
+ 'failures': (value['failures'].map(JobFailureDto_1.JobFailureDtoToJSON)),
93
+ 'failureReason': value['failureReason'],
94
+ 'createdAt': ((value['createdAt']).toISOString()),
95
+ 'startedAt': (value['startedAt'] == null ? null : value['startedAt'].toISOString()),
96
+ 'finishedAt': (value['finishedAt'] == null ? null : value['finishedAt'].toISOString()),
97
+ };
98
+ }
@@ -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 JobFailureDto
16
+ */
17
+ export interface JobFailureDto {
18
+ /**
19
+ * What the failure was about — a domain name, for a bulk edit.
20
+ * @type {string}
21
+ * @memberof JobFailureDto
22
+ */
23
+ subject: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof JobFailureDto
28
+ */
29
+ reason: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the JobFailureDto interface.
33
+ */
34
+ export declare function instanceOfJobFailureDto(value: object): value is JobFailureDto;
35
+ export declare function JobFailureDtoFromJSON(json: any): JobFailureDto;
36
+ export declare function JobFailureDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobFailureDto;
37
+ export declare function JobFailureDtoToJSON(json: any): JobFailureDto;
38
+ export declare function JobFailureDtoToJSONTyped(value?: JobFailureDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfJobFailureDto = instanceOfJobFailureDto;
17
+ exports.JobFailureDtoFromJSON = JobFailureDtoFromJSON;
18
+ exports.JobFailureDtoFromJSONTyped = JobFailureDtoFromJSONTyped;
19
+ exports.JobFailureDtoToJSON = JobFailureDtoToJSON;
20
+ exports.JobFailureDtoToJSONTyped = JobFailureDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the JobFailureDto interface.
23
+ */
24
+ function instanceOfJobFailureDto(value) {
25
+ if (!('subject' in value) || value['subject'] === undefined)
26
+ return false;
27
+ if (!('reason' in value) || value['reason'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function JobFailureDtoFromJSON(json) {
32
+ return JobFailureDtoFromJSONTyped(json, false);
33
+ }
34
+ function JobFailureDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'subject': json['subject'],
40
+ 'reason': json['reason'],
41
+ };
42
+ }
43
+ function JobFailureDtoToJSON(json) {
44
+ return JobFailureDtoToJSONTyped(json, false);
45
+ }
46
+ function JobFailureDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'subject': value['subject'],
53
+ 'reason': value['reason'],
54
+ };
55
+ }
@@ -0,0 +1,27 @@
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
+ */
16
+ export declare const JobStatus: {
17
+ readonly QUEUED: "queued";
18
+ readonly RUNNING: "running";
19
+ readonly FINISHED: "finished";
20
+ readonly FAILED: "failed";
21
+ };
22
+ export type JobStatus = typeof JobStatus[keyof typeof JobStatus];
23
+ export declare function instanceOfJobStatus(value: any): boolean;
24
+ export declare function JobStatusFromJSON(json: any): JobStatus;
25
+ export declare function JobStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobStatus;
26
+ export declare function JobStatusToJSON(value?: JobStatus | null): any;
27
+ export declare function JobStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): JobStatus;
@@ -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.JobStatus = void 0;
17
+ exports.instanceOfJobStatus = instanceOfJobStatus;
18
+ exports.JobStatusFromJSON = JobStatusFromJSON;
19
+ exports.JobStatusFromJSONTyped = JobStatusFromJSONTyped;
20
+ exports.JobStatusToJSON = JobStatusToJSON;
21
+ exports.JobStatusToJSONTyped = JobStatusToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.JobStatus = {
27
+ QUEUED: 'queued',
28
+ RUNNING: 'running',
29
+ FINISHED: 'finished',
30
+ FAILED: 'failed'
31
+ };
32
+ function instanceOfJobStatus(value) {
33
+ for (var key in exports.JobStatus) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.JobStatus, key)) {
35
+ if (exports.JobStatus[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function JobStatusFromJSON(json) {
43
+ return JobStatusFromJSONTyped(json, false);
44
+ }
45
+ function JobStatusFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function JobStatusToJSON(value) {
49
+ return value;
50
+ }
51
+ function JobStatusToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }
@@ -0,0 +1,24 @@
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
+ */
16
+ export declare const JobType: {
17
+ readonly BULK_EDIT_DOMAINS: "bulk_edit_domains";
18
+ };
19
+ export type JobType = typeof JobType[keyof typeof JobType];
20
+ export declare function instanceOfJobType(value: any): boolean;
21
+ export declare function JobTypeFromJSON(json: any): JobType;
22
+ export declare function JobTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobType;
23
+ export declare function JobTypeToJSON(value?: JobType | null): any;
24
+ export declare function JobTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): JobType;
@@ -0,0 +1,50 @@
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.JobType = void 0;
17
+ exports.instanceOfJobType = instanceOfJobType;
18
+ exports.JobTypeFromJSON = JobTypeFromJSON;
19
+ exports.JobTypeFromJSONTyped = JobTypeFromJSONTyped;
20
+ exports.JobTypeToJSON = JobTypeToJSON;
21
+ exports.JobTypeToJSONTyped = JobTypeToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.JobType = {
27
+ BULK_EDIT_DOMAINS: 'bulk_edit_domains'
28
+ };
29
+ function instanceOfJobType(value) {
30
+ for (var key in exports.JobType) {
31
+ if (Object.prototype.hasOwnProperty.call(exports.JobType, key)) {
32
+ if (exports.JobType[key] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+ function JobTypeFromJSON(json) {
40
+ return JobTypeFromJSONTyped(json, false);
41
+ }
42
+ function JobTypeFromJSONTyped(json, ignoreDiscriminator) {
43
+ return json;
44
+ }
45
+ function JobTypeToJSON(value) {
46
+ return value;
47
+ }
48
+ function JobTypeToJSONTyped(value, ignoreDiscriminator) {
49
+ return value;
50
+ }