@randock/nameshift-api-client 0.0.459 → 0.0.460

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 (63) hide show
  1. package/.openapi-generator/FILES +10 -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/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/ApplyDomainEditInput.d.ts +40 -0
  10. package/dist/models/ApplyDomainEditInput.js +53 -0
  11. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  12. package/dist/models/BuyerNotificationDto.js +1 -0
  13. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  14. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  15. package/dist/models/DomainEditPreviewDto.d.ts +83 -0
  16. package/dist/models/DomainEditPreviewDto.js +84 -0
  17. package/dist/models/DomainEditPreviewRowDto.d.ts +60 -0
  18. package/dist/models/DomainEditPreviewRowDto.js +67 -0
  19. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  20. package/dist/models/FeatureFlagListItemDto.js +2 -1
  21. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  22. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  23. package/dist/models/JobDto.d.ts +101 -0
  24. package/dist/models/JobDto.js +98 -0
  25. package/dist/models/JobFailureDto.d.ts +38 -0
  26. package/dist/models/JobFailureDto.js +55 -0
  27. package/dist/models/JobStatus.d.ts +27 -0
  28. package/dist/models/JobStatus.js +53 -0
  29. package/dist/models/JobType.d.ts +24 -0
  30. package/dist/models/JobType.js +50 -0
  31. package/dist/models/ListJobs200Response.d.ts +47 -0
  32. package/dist/models/ListJobs200Response.js +62 -0
  33. package/dist/models/PreviewDomainEditInput.d.ts +38 -0
  34. package/dist/models/PreviewDomainEditInput.js +53 -0
  35. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  36. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  37. package/dist/models/UserNotificationDto.d.ts +1 -0
  38. package/dist/models/UserNotificationDto.js +1 -0
  39. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  40. package/dist/models/UserNotificationListItemDto.js +1 -0
  41. package/dist/models/index.d.ts +9 -0
  42. package/dist/models/index.js +9 -0
  43. package/package.json +1 -1
  44. package/src/apis/DomainsApi.ts +154 -12
  45. package/src/apis/JobsApi.ts +163 -0
  46. package/src/apis/index.ts +1 -0
  47. package/src/models/ApplyDomainEditInput.ts +74 -0
  48. package/src/models/BuyerNotificationDto.ts +1 -0
  49. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  50. package/src/models/DomainEditPreviewDto.ts +146 -0
  51. package/src/models/DomainEditPreviewRowDto.ts +102 -0
  52. package/src/models/FeatureFlagListItemDto.ts +2 -1
  53. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  54. package/src/models/JobDto.ts +189 -0
  55. package/src/models/JobFailureDto.ts +75 -0
  56. package/src/models/JobStatus.ts +55 -0
  57. package/src/models/JobType.ts +52 -0
  58. package/src/models/ListJobs200Response.ts +106 -0
  59. package/src/models/PreviewDomainEditInput.ts +74 -0
  60. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  61. package/src/models/UserNotificationDto.ts +1 -0
  62. package/src/models/UserNotificationListItemDto.ts +1 -0
  63. package/src/models/index.ts +9 -0
@@ -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,7 @@ 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";
92
93
  };
93
94
  export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
94
95
  /**
@@ -49,7 +49,8 @@ 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'
53
54
  };
54
55
  /**
55
56
  * Check if a given object implements the FeatureFlagListItemDto interface.
@@ -132,6 +132,7 @@ 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";
135
136
  };
136
137
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
137
138
  /**
@@ -56,7 +56,8 @@ 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'
60
61
  };
61
62
  /**
62
63
  * 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
+ }
@@ -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
+ }