@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,163 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ JobDto,
19
+ ListJobs200Response,
20
+ NotFoundException,
21
+ ValidationException,
22
+ } from '../models/index';
23
+ import {
24
+ JobDtoFromJSON,
25
+ JobDtoToJSON,
26
+ ListJobs200ResponseFromJSON,
27
+ ListJobs200ResponseToJSON,
28
+ NotFoundExceptionFromJSON,
29
+ NotFoundExceptionToJSON,
30
+ ValidationExceptionFromJSON,
31
+ ValidationExceptionToJSON,
32
+ } from '../models/index';
33
+
34
+ export interface JobsApiGetJobRequest {
35
+ jobId: string;
36
+ }
37
+
38
+ export interface JobsApiListJobsRequest {
39
+ filter?: { [key: string]: string; };
40
+ page?: number;
41
+ limit?: number;
42
+ sortBy?: Array<string>;
43
+ filterStatus?: string;
44
+ filterType?: string;
45
+ }
46
+
47
+ /**
48
+ *
49
+ */
50
+ export class JobsApi extends runtime.BaseAPI {
51
+
52
+ /**
53
+ * Progress and result of one job belonging to the account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
54
+ * Get a background job
55
+ */
56
+ async getJobRaw(requestParameters: JobsApiGetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>> {
57
+ if (requestParameters['jobId'] == null) {
58
+ throw new runtime.RequiredError(
59
+ 'jobId',
60
+ 'Required parameter "jobId" was null or undefined when calling getJob().'
61
+ );
62
+ }
63
+
64
+ const queryParameters: any = {};
65
+
66
+ const headerParameters: runtime.HTTPHeaders = {};
67
+
68
+ if (this.configuration && this.configuration.apiKey) {
69
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
70
+ }
71
+
72
+ if (this.configuration && this.configuration.accessToken) {
73
+ const token = this.configuration.accessToken;
74
+ const tokenString = await token("bearer", []);
75
+
76
+ if (tokenString) {
77
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
78
+ }
79
+ }
80
+ const response = await this.request({
81
+ path: `/private/jobs/{jobId}`.replace(`{${"jobId"}}`, encodeURIComponent(String(requestParameters['jobId']))),
82
+ method: 'GET',
83
+ headers: headerParameters,
84
+ query: queryParameters,
85
+ }, initOverrides);
86
+
87
+ return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
88
+ }
89
+
90
+ /**
91
+ * Progress and result of one job belonging to the account. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
92
+ * Get a background job
93
+ */
94
+ async getJob(requestParameters: JobsApiGetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto> {
95
+ const response = await this.getJobRaw(requestParameters, initOverrides);
96
+ return await response.value();
97
+ }
98
+
99
+ /**
100
+ * The account\'s own background jobs, newest first. Filter on status while polling, so watching a run costs nothing however long the history is. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
101
+ * List background jobs
102
+ */
103
+ async listJobsRaw(requestParameters: JobsApiListJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListJobs200Response>> {
104
+ const queryParameters: any = {};
105
+
106
+ if (requestParameters['filter'] != null) {
107
+ queryParameters['filter'] = requestParameters['filter'];
108
+ }
109
+
110
+ if (requestParameters['page'] != null) {
111
+ queryParameters['page'] = requestParameters['page'];
112
+ }
113
+
114
+ if (requestParameters['limit'] != null) {
115
+ queryParameters['limit'] = requestParameters['limit'];
116
+ }
117
+
118
+ if (requestParameters['sortBy'] != null) {
119
+ queryParameters['sortBy'] = requestParameters['sortBy'];
120
+ }
121
+
122
+ if (requestParameters['filterStatus'] != null) {
123
+ queryParameters['filter[status]'] = requestParameters['filterStatus'];
124
+ }
125
+
126
+ if (requestParameters['filterType'] != null) {
127
+ queryParameters['filter[type]'] = requestParameters['filterType'];
128
+ }
129
+
130
+ const headerParameters: runtime.HTTPHeaders = {};
131
+
132
+ if (this.configuration && this.configuration.apiKey) {
133
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
134
+ }
135
+
136
+ if (this.configuration && this.configuration.accessToken) {
137
+ const token = this.configuration.accessToken;
138
+ const tokenString = await token("bearer", []);
139
+
140
+ if (tokenString) {
141
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
142
+ }
143
+ }
144
+ const response = await this.request({
145
+ path: `/private/jobs`,
146
+ method: 'GET',
147
+ headers: headerParameters,
148
+ query: queryParameters,
149
+ }, initOverrides);
150
+
151
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListJobs200ResponseFromJSON(jsonValue));
152
+ }
153
+
154
+ /**
155
+ * The account\'s own background jobs, newest first. Filter on status while polling, so watching a run costs nothing however long the history is. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
156
+ * List background jobs
157
+ */
158
+ async listJobs(requestParameters: JobsApiListJobsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListJobs200Response> {
159
+ const response = await this.listJobsRaw(requestParameters, initOverrides);
160
+ return await response.value();
161
+ }
162
+
163
+ }
package/src/apis/index.ts CHANGED
@@ -16,6 +16,7 @@ export * from './DomainsApi';
16
16
  export * from './DomainsPublicApi';
17
17
  export * from './EppApi';
18
18
  export * from './InvoicesApi';
19
+ export * from './JobsApi';
19
20
  export * from './LeadsApi';
20
21
  export * from './LeadsPublicApi';
21
22
  export * from './MarketApi';
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApplyDomainEditInput
20
+ */
21
+ export interface ApplyDomainEditInput {
22
+ /**
23
+ * The selected domains. Omit to apply to everything the filter and searchFilter match.
24
+ * @type {Array<string>}
25
+ * @memberof ApplyDomainEditInput
26
+ */
27
+ domainIds?: Array<string>;
28
+ /**
29
+ * The operations returned by the preview, sent back unchanged. Validated again here.
30
+ * @type {Array<{ [key: string]: any; }>}
31
+ * @memberof ApplyDomainEditInput
32
+ */
33
+ operations: Array<{ [key: string]: any; }>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApplyDomainEditInput interface.
38
+ */
39
+ export function instanceOfApplyDomainEditInput(value: object): value is ApplyDomainEditInput {
40
+ if (!('operations' in value) || value['operations'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function ApplyDomainEditInputFromJSON(json: any): ApplyDomainEditInput {
45
+ return ApplyDomainEditInputFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function ApplyDomainEditInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplyDomainEditInput {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'domainIds': json['domainIds'] == null ? undefined : json['domainIds'],
55
+ 'operations': json['operations'],
56
+ };
57
+ }
58
+
59
+ export function ApplyDomainEditInputToJSON(json: any): ApplyDomainEditInput {
60
+ return ApplyDomainEditInputToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ApplyDomainEditInputToJSONTyped(value?: ApplyDomainEditInput | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'domainIds': value['domainIds'],
71
+ 'operations': value['operations'],
72
+ };
73
+ }
74
+
@@ -133,6 +133,7 @@ export const BuyerNotificationDtoTypeEnum = {
133
133
  SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
134
134
  SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
135
135
  EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
136
+ BULK_EDIT_DOMAINS_FINISHED: 'bulk_edit_domains_finished',
136
137
  ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
137
138
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
138
139
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
@@ -119,6 +119,7 @@ export const BuyerNotificationListItemDtoTypeEnum = {
119
119
  SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
120
120
  SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
121
121
  EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
122
+ BULK_EDIT_DOMAINS_FINISHED: 'bulk_edit_domains_finished',
122
123
  ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
123
124
  PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
124
125
  DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
@@ -0,0 +1,146 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { DomainEditPreviewRowDto } from './DomainEditPreviewRowDto';
17
+ import {
18
+ DomainEditPreviewRowDtoFromJSON,
19
+ DomainEditPreviewRowDtoFromJSONTyped,
20
+ DomainEditPreviewRowDtoToJSON,
21
+ DomainEditPreviewRowDtoToJSONTyped,
22
+ } from './DomainEditPreviewRowDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface DomainEditPreviewDto
28
+ */
29
+ export interface DomainEditPreviewDto {
30
+ /**
31
+ * False when the request could not be expressed. No operations are returned and nothing may be applied.
32
+ * @type {boolean}
33
+ * @memberof DomainEditPreviewDto
34
+ */
35
+ understood: boolean;
36
+ /**
37
+ * One sentence describing the change, for the seller.
38
+ * @type {string}
39
+ * @memberof DomainEditPreviewDto
40
+ */
41
+ summary: string;
42
+ /**
43
+ * True when the request applies to only some of the selected domains. An edit has no conditions, so the seller narrows the list with search or filters first and then edits what is left.
44
+ * @type {boolean}
45
+ * @memberof DomainEditPreviewDto
46
+ */
47
+ needsFilter: boolean;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof DomainEditPreviewDto
52
+ */
53
+ unresolved: Array<string>;
54
+ /**
55
+ * The operations to send back when the seller accepts. Opaque to the client; validated server-side.
56
+ * @type {Array<{ [key: string]: any; }>}
57
+ * @memberof DomainEditPreviewDto
58
+ */
59
+ operations: Array<{ [key: string]: any; }>;
60
+ /**
61
+ * How many domains the edit would change.
62
+ * @type {number}
63
+ * @memberof DomainEditPreviewDto
64
+ */
65
+ count: number;
66
+ /**
67
+ *
68
+ * @type {Array<DomainEditPreviewRowDto>}
69
+ * @memberof DomainEditPreviewDto
70
+ */
71
+ sample: Array<DomainEditPreviewRowDto>;
72
+ /**
73
+ * The currency every price moves to, when the edit changes it. Null otherwise.
74
+ * @type {string}
75
+ * @memberof DomainEditPreviewDto
76
+ */
77
+ toCurrencyCode: string | null;
78
+ /**
79
+ * Whether prices the edit does not replace are converted at the exchange rate, or kept at their current number under the new currency. Only meaningful alongside toCurrencyCode.
80
+ * @type {boolean}
81
+ * @memberof DomainEditPreviewDto
82
+ */
83
+ convertsPrices: boolean;
84
+ }
85
+
86
+ /**
87
+ * Check if a given object implements the DomainEditPreviewDto interface.
88
+ */
89
+ export function instanceOfDomainEditPreviewDto(value: object): value is DomainEditPreviewDto {
90
+ if (!('understood' in value) || value['understood'] === undefined) return false;
91
+ if (!('summary' in value) || value['summary'] === undefined) return false;
92
+ if (!('needsFilter' in value) || value['needsFilter'] === undefined) return false;
93
+ if (!('unresolved' in value) || value['unresolved'] === undefined) return false;
94
+ if (!('operations' in value) || value['operations'] === undefined) return false;
95
+ if (!('count' in value) || value['count'] === undefined) return false;
96
+ if (!('sample' in value) || value['sample'] === undefined) return false;
97
+ if (!('toCurrencyCode' in value) || value['toCurrencyCode'] === undefined) return false;
98
+ if (!('convertsPrices' in value) || value['convertsPrices'] === undefined) return false;
99
+ return true;
100
+ }
101
+
102
+ export function DomainEditPreviewDtoFromJSON(json: any): DomainEditPreviewDto {
103
+ return DomainEditPreviewDtoFromJSONTyped(json, false);
104
+ }
105
+
106
+ export function DomainEditPreviewDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainEditPreviewDto {
107
+ if (json == null) {
108
+ return json;
109
+ }
110
+ return {
111
+
112
+ 'understood': json['understood'],
113
+ 'summary': json['summary'],
114
+ 'needsFilter': json['needsFilter'],
115
+ 'unresolved': json['unresolved'],
116
+ 'operations': json['operations'],
117
+ 'count': json['count'],
118
+ 'sample': ((json['sample'] as Array<any>).map(DomainEditPreviewRowDtoFromJSON)),
119
+ 'toCurrencyCode': json['toCurrencyCode'],
120
+ 'convertsPrices': json['convertsPrices'],
121
+ };
122
+ }
123
+
124
+ export function DomainEditPreviewDtoToJSON(json: any): DomainEditPreviewDto {
125
+ return DomainEditPreviewDtoToJSONTyped(json, false);
126
+ }
127
+
128
+ export function DomainEditPreviewDtoToJSONTyped(value?: DomainEditPreviewDto | null, ignoreDiscriminator: boolean = false): any {
129
+ if (value == null) {
130
+ return value;
131
+ }
132
+
133
+ return {
134
+
135
+ 'understood': value['understood'],
136
+ 'summary': value['summary'],
137
+ 'needsFilter': value['needsFilter'],
138
+ 'unresolved': value['unresolved'],
139
+ 'operations': value['operations'],
140
+ 'count': value['count'],
141
+ 'sample': ((value['sample'] as Array<any>).map(DomainEditPreviewRowDtoToJSON)),
142
+ 'toCurrencyCode': value['toCurrencyCode'],
143
+ 'convertsPrices': value['convertsPrices'],
144
+ };
145
+ }
146
+
@@ -0,0 +1,102 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DomainEditPreviewRowDto
20
+ */
21
+ export interface DomainEditPreviewRowDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof DomainEditPreviewRowDto
26
+ */
27
+ domainName: string;
28
+ /**
29
+ * The currency the before values are in.
30
+ * @type {string}
31
+ * @memberof DomainEditPreviewRowDto
32
+ */
33
+ currencyCode: string;
34
+ /**
35
+ * The currency the after values are in. Differs from currencyCode when the edit changes it.
36
+ * @type {string}
37
+ * @memberof DomainEditPreviewRowDto
38
+ */
39
+ toCurrencyCode: string;
40
+ /**
41
+ * Current value per changed field, keyed by field name.
42
+ * @type {{ [key: string]: any; }}
43
+ * @memberof DomainEditPreviewRowDto
44
+ */
45
+ before: { [key: string]: any; };
46
+ /**
47
+ * Resulting value per changed field, keyed by field name.
48
+ * @type {{ [key: string]: any; }}
49
+ * @memberof DomainEditPreviewRowDto
50
+ */
51
+ after: { [key: string]: any; };
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the DomainEditPreviewRowDto interface.
56
+ */
57
+ export function instanceOfDomainEditPreviewRowDto(value: object): value is DomainEditPreviewRowDto {
58
+ if (!('domainName' in value) || value['domainName'] === undefined) return false;
59
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
60
+ if (!('toCurrencyCode' in value) || value['toCurrencyCode'] === undefined) return false;
61
+ if (!('before' in value) || value['before'] === undefined) return false;
62
+ if (!('after' in value) || value['after'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function DomainEditPreviewRowDtoFromJSON(json: any): DomainEditPreviewRowDto {
67
+ return DomainEditPreviewRowDtoFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function DomainEditPreviewRowDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainEditPreviewRowDto {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'domainName': json['domainName'],
77
+ 'currencyCode': json['currencyCode'],
78
+ 'toCurrencyCode': json['toCurrencyCode'],
79
+ 'before': json['before'],
80
+ 'after': json['after'],
81
+ };
82
+ }
83
+
84
+ export function DomainEditPreviewRowDtoToJSON(json: any): DomainEditPreviewRowDto {
85
+ return DomainEditPreviewRowDtoToJSONTyped(json, false);
86
+ }
87
+
88
+ export function DomainEditPreviewRowDtoToJSONTyped(value?: DomainEditPreviewRowDto | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'domainName': value['domainName'],
96
+ 'currencyCode': value['currencyCode'],
97
+ 'toCurrencyCode': value['toCurrencyCode'],
98
+ 'before': value['before'],
99
+ 'after': value['after'],
100
+ };
101
+ }
102
+
@@ -94,7 +94,8 @@ export const FeatureFlagListItemDtoNameEnum = {
94
94
  USE_MAILER_FALLBACK_URL: 'USE_MAILER_FALLBACK_URL',
95
95
  USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
96
96
  AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
97
- MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING'
97
+ MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING',
98
+ AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT'
98
99
  } as const;
99
100
  export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
100
101
 
@@ -180,7 +180,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
180
180
  USE_MAILER_FALLBACK_URL: 'USE_MAILER_FALLBACK_URL',
181
181
  USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST: 'USE_MAILER_FALLBACK_FOR_MANUAL_OTP_REQUEST',
182
182
  AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD: 'AIRWALLEX_BANK_TRANSFER_PAYMENT_METHOD',
183
- MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING'
183
+ MARKETPLACE_ROUTING: 'MARKETPLACE_ROUTING',
184
+ AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT'
184
185
  } as const;
185
186
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
186
187