@randock/nameshift-api-client 0.0.529 → 0.0.531
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.
- package/.openapi-generator/FILES +2 -0
- package/README.md +3 -3
- package/dist/apis/DomainsApi.d.ts +2 -2
- package/dist/apis/DomainsApi.js +2 -2
- package/dist/models/CreateNewsletterInput.d.ts +4 -21
- package/dist/models/CreateNewsletterInput.js +3 -8
- package/dist/models/NewsletterDto.d.ts +4 -21
- package/dist/models/NewsletterDto.js +4 -15
- package/dist/models/NewsletterEventDto.d.ts +68 -0
- package/dist/models/NewsletterEventDto.js +75 -0
- package/dist/models/NewsletterEventInput.d.ts +68 -0
- package/dist/models/NewsletterEventInput.js +75 -0
- package/dist/models/UpdateNewsletterInput.d.ts +4 -21
- package/dist/models/UpdateNewsletterInput.js +3 -8
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/DomainsApi.ts +2 -2
- package/src/models/CreateNewsletterInput.ts +12 -29
- package/src/models/NewsletterDto.ts +13 -33
- package/src/models/NewsletterEventDto.ts +120 -0
- package/src/models/NewsletterEventInput.ts +120 -0
- package/src/models/UpdateNewsletterInput.ts +12 -29
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -477,6 +477,8 @@ src/models/MoneyInput.ts
|
|
|
477
477
|
src/models/MozMetrics.ts
|
|
478
478
|
src/models/NewsStoryDto.ts
|
|
479
479
|
src/models/NewsletterDto.ts
|
|
480
|
+
src/models/NewsletterEventDto.ts
|
|
481
|
+
src/models/NewsletterEventInput.ts
|
|
480
482
|
src/models/NewsletterPreviewDto.ts
|
|
481
483
|
src/models/NewsletterSecondaryStoryDto.ts
|
|
482
484
|
src/models/NewsletterSecondaryStoryInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.531
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.531 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
e519a9375e36a3cbbc74292937535e361e1439fb5562d26fc6be5d468adbd871778762dcd5ec52ea93766c8e0412829f
|
|
@@ -136,12 +136,12 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
136
136
|
*/
|
|
137
137
|
applyDomainEdit(requestParameters: DomainsApiApplyDomainEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto>;
|
|
138
138
|
/**
|
|
139
|
-
* Imports domains from an uploaded file or a list of domain names.
|
|
139
|
+
* Imports domains from an uploaded file or a list of domain names. A list is imported whole or not at all, before the response is sent. It is checked before any of it is imported. When a name is not a domain that can be listed, or is one the account has already, nothing is imported, and the request is answered with a 400 `ValidationException` holding one error per such name. Its `property` is `domains.<index>`, the index in `domains` as sent, and its `code` one of: - `INVALID_DOMAIN_NAME`: not a domain name, such as a single word, an extension on its own, or characters or labels no domain name has. - `UNKNOWN_DOMAIN_EXTENSION`: the extension is on no public suffix list, ICANN or private. - `DOMAIN_NAME_HAS_SUBDOMAIN`: a name under a registrable domain, such as `www.example.com`. - `DOMAIN_ALREADY_IN_ACCOUNT`: the account has the domain already. A name listed more than once, in whatever spelling, is imported once. When a domain of the list cannot be imported for any other reason, none of the list is, and the request is answered with a 400 whose `message` is `api.domains.import.error.unexpected`. Otherwise the list is answered with 201, once every name of it has been saved for the account. A name another account has is saved as a hijack, pending verification of its ownership, after which the domain moves to this account. A file is imported in the background: 1. The upload is answered with 202 and the job, which the `Location` header points at as well. The id to poll is at `job.id`. 2. Poll `GET /private/jobs/{jobId}` until its `status` is `finished` or `failed`. 3. Download the outcome of every row from `GET /private/jobs/{jobId}/result`, which redirects to a CSV on a public host. Follow the redirect without the `apikey` header, which the file does not need. With an API key, starting an import needs the `DOMAINS_WRITE` scope, while polling the job and downloading its result need `DOMAINS_READ`. Scopes are matched exactly, so a key that imports files needs both. `notifyByEmail` decides whether the user who started a file import is emailed about how it ended: when it has failed, or when it has finished after running for longer than 30 seconds. It defaults to true. An integration that polls the job usually sets it to false, which skips both emails. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
140
140
|
* Import domains
|
|
141
141
|
*/
|
|
142
142
|
batchImportRaw(requestParameters: DomainsApiBatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportDomainsResponseDto>>;
|
|
143
143
|
/**
|
|
144
|
-
* Imports domains from an uploaded file or a list of domain names.
|
|
144
|
+
* Imports domains from an uploaded file or a list of domain names. A list is imported whole or not at all, before the response is sent. It is checked before any of it is imported. When a name is not a domain that can be listed, or is one the account has already, nothing is imported, and the request is answered with a 400 `ValidationException` holding one error per such name. Its `property` is `domains.<index>`, the index in `domains` as sent, and its `code` one of: - `INVALID_DOMAIN_NAME`: not a domain name, such as a single word, an extension on its own, or characters or labels no domain name has. - `UNKNOWN_DOMAIN_EXTENSION`: the extension is on no public suffix list, ICANN or private. - `DOMAIN_NAME_HAS_SUBDOMAIN`: a name under a registrable domain, such as `www.example.com`. - `DOMAIN_ALREADY_IN_ACCOUNT`: the account has the domain already. A name listed more than once, in whatever spelling, is imported once. When a domain of the list cannot be imported for any other reason, none of the list is, and the request is answered with a 400 whose `message` is `api.domains.import.error.unexpected`. Otherwise the list is answered with 201, once every name of it has been saved for the account. A name another account has is saved as a hijack, pending verification of its ownership, after which the domain moves to this account. A file is imported in the background: 1. The upload is answered with 202 and the job, which the `Location` header points at as well. The id to poll is at `job.id`. 2. Poll `GET /private/jobs/{jobId}` until its `status` is `finished` or `failed`. 3. Download the outcome of every row from `GET /private/jobs/{jobId}/result`, which redirects to a CSV on a public host. Follow the redirect without the `apikey` header, which the file does not need. With an API key, starting an import needs the `DOMAINS_WRITE` scope, while polling the job and downloading its result need `DOMAINS_READ`. Scopes are matched exactly, so a key that imports files needs both. `notifyByEmail` decides whether the user who started a file import is emailed about how it ended: when it has failed, or when it has finished after running for longer than 30 seconds. It defaults to true. An integration that polls the job usually sets it to false, which skips both emails. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
145
145
|
* Import domains
|
|
146
146
|
*/
|
|
147
147
|
batchImport(requestParameters?: DomainsApiBatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportDomainsResponseDto>;
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -147,7 +147,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
147
147
|
});
|
|
148
148
|
};
|
|
149
149
|
/**
|
|
150
|
-
* Imports domains from an uploaded file or a list of domain names.
|
|
150
|
+
* Imports domains from an uploaded file or a list of domain names. A list is imported whole or not at all, before the response is sent. It is checked before any of it is imported. When a name is not a domain that can be listed, or is one the account has already, nothing is imported, and the request is answered with a 400 `ValidationException` holding one error per such name. Its `property` is `domains.<index>`, the index in `domains` as sent, and its `code` one of: - `INVALID_DOMAIN_NAME`: not a domain name, such as a single word, an extension on its own, or characters or labels no domain name has. - `UNKNOWN_DOMAIN_EXTENSION`: the extension is on no public suffix list, ICANN or private. - `DOMAIN_NAME_HAS_SUBDOMAIN`: a name under a registrable domain, such as `www.example.com`. - `DOMAIN_ALREADY_IN_ACCOUNT`: the account has the domain already. A name listed more than once, in whatever spelling, is imported once. When a domain of the list cannot be imported for any other reason, none of the list is, and the request is answered with a 400 whose `message` is `api.domains.import.error.unexpected`. Otherwise the list is answered with 201, once every name of it has been saved for the account. A name another account has is saved as a hijack, pending verification of its ownership, after which the domain moves to this account. A file is imported in the background: 1. The upload is answered with 202 and the job, which the `Location` header points at as well. The id to poll is at `job.id`. 2. Poll `GET /private/jobs/{jobId}` until its `status` is `finished` or `failed`. 3. Download the outcome of every row from `GET /private/jobs/{jobId}/result`, which redirects to a CSV on a public host. Follow the redirect without the `apikey` header, which the file does not need. With an API key, starting an import needs the `DOMAINS_WRITE` scope, while polling the job and downloading its result need `DOMAINS_READ`. Scopes are matched exactly, so a key that imports files needs both. `notifyByEmail` decides whether the user who started a file import is emailed about how it ended: when it has failed, or when it has finished after running for longer than 30 seconds. It defaults to true. An integration that polls the job usually sets it to false, which skips both emails. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
151
151
|
* Import domains
|
|
152
152
|
*/
|
|
153
153
|
DomainsApi.prototype.batchImportRaw = function (requestParameters, initOverrides) {
|
|
@@ -213,7 +213,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
213
213
|
});
|
|
214
214
|
};
|
|
215
215
|
/**
|
|
216
|
-
* Imports domains from an uploaded file or a list of domain names.
|
|
216
|
+
* Imports domains from an uploaded file or a list of domain names. A list is imported whole or not at all, before the response is sent. It is checked before any of it is imported. When a name is not a domain that can be listed, or is one the account has already, nothing is imported, and the request is answered with a 400 `ValidationException` holding one error per such name. Its `property` is `domains.<index>`, the index in `domains` as sent, and its `code` one of: - `INVALID_DOMAIN_NAME`: not a domain name, such as a single word, an extension on its own, or characters or labels no domain name has. - `UNKNOWN_DOMAIN_EXTENSION`: the extension is on no public suffix list, ICANN or private. - `DOMAIN_NAME_HAS_SUBDOMAIN`: a name under a registrable domain, such as `www.example.com`. - `DOMAIN_ALREADY_IN_ACCOUNT`: the account has the domain already. A name listed more than once, in whatever spelling, is imported once. When a domain of the list cannot be imported for any other reason, none of the list is, and the request is answered with a 400 whose `message` is `api.domains.import.error.unexpected`. Otherwise the list is answered with 201, once every name of it has been saved for the account. A name another account has is saved as a hijack, pending verification of its ownership, after which the domain moves to this account. A file is imported in the background: 1. The upload is answered with 202 and the job, which the `Location` header points at as well. The id to poll is at `job.id`. 2. Poll `GET /private/jobs/{jobId}` until its `status` is `finished` or `failed`. 3. Download the outcome of every row from `GET /private/jobs/{jobId}/result`, which redirects to a CSV on a public host. Follow the redirect without the `apikey` header, which the file does not need. With an API key, starting an import needs the `DOMAINS_WRITE` scope, while polling the job and downloading its result need `DOMAINS_READ`. Scopes are matched exactly, so a key that imports files needs both. `notifyByEmail` decides whether the user who started a file import is emailed about how it ended: when it has failed, or when it has finished after running for longer than 30 seconds. It defaults to true. An integration that polls the job usually sets it to false, which skips both emails. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
217
217
|
* Import domains
|
|
218
218
|
*/
|
|
219
219
|
DomainsApi.prototype.batchImport = function () {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { NewsletterSecondaryStoryInput } from './NewsletterSecondaryStoryInput';
|
|
13
|
+
import type { NewsletterEventInput } from './NewsletterEventInput';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -83,29 +84,11 @@ export interface CreateNewsletterInput {
|
|
|
83
84
|
*/
|
|
84
85
|
featureLink?: string;
|
|
85
86
|
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {
|
|
88
|
-
* @memberof CreateNewsletterInput
|
|
89
|
-
*/
|
|
90
|
-
eventLead?: string | null;
|
|
91
|
-
/**
|
|
92
|
-
* Event text.
|
|
93
|
-
* @type {string}
|
|
94
|
-
* @memberof CreateNewsletterInput
|
|
95
|
-
*/
|
|
96
|
-
eventText?: string | null;
|
|
97
|
-
/**
|
|
98
|
-
* Event link URL.
|
|
99
|
-
* @type {string}
|
|
100
|
-
* @memberof CreateNewsletterInput
|
|
101
|
-
*/
|
|
102
|
-
eventUrl?: string | null;
|
|
103
|
-
/**
|
|
104
|
-
* Event link text.
|
|
105
|
-
* @type {string}
|
|
87
|
+
* Events, in order.
|
|
88
|
+
* @type {Array<NewsletterEventInput>}
|
|
106
89
|
* @memberof CreateNewsletterInput
|
|
107
90
|
*/
|
|
108
|
-
|
|
91
|
+
events?: Array<NewsletterEventInput>;
|
|
109
92
|
/**
|
|
110
93
|
* Whether the recent-sales module is in the issue.
|
|
111
94
|
* @type {boolean}
|
|
@@ -19,6 +19,7 @@ exports.CreateNewsletterInputFromJSONTyped = CreateNewsletterInputFromJSONTyped;
|
|
|
19
19
|
exports.CreateNewsletterInputToJSON = CreateNewsletterInputToJSON;
|
|
20
20
|
exports.CreateNewsletterInputToJSONTyped = CreateNewsletterInputToJSONTyped;
|
|
21
21
|
var NewsletterSecondaryStoryInput_1 = require("./NewsletterSecondaryStoryInput");
|
|
22
|
+
var NewsletterEventInput_1 = require("./NewsletterEventInput");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the CreateNewsletterInput interface.
|
|
24
25
|
*/
|
|
@@ -46,10 +47,7 @@ function CreateNewsletterInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
47
|
'featureStoryUuid': json['featureStoryUuid'] == null ? undefined : json['featureStoryUuid'],
|
|
47
48
|
'featureText': json['featureText'] == null ? undefined : json['featureText'],
|
|
48
49
|
'featureLink': json['featureLink'] == null ? undefined : json['featureLink'],
|
|
49
|
-
'
|
|
50
|
-
'eventText': json['eventText'] == null ? undefined : json['eventText'],
|
|
51
|
-
'eventUrl': json['eventUrl'] == null ? undefined : json['eventUrl'],
|
|
52
|
-
'eventLink': json['eventLink'] == null ? undefined : json['eventLink'],
|
|
50
|
+
'events': json['events'] == null ? undefined : (json['events'].map(NewsletterEventInput_1.NewsletterEventInputFromJSON)),
|
|
53
51
|
'salesEnabled': json['salesEnabled'] == null ? undefined : json['salesEnabled'],
|
|
54
52
|
'salesFrom': json['salesFrom'] == null ? undefined : json['salesFrom'],
|
|
55
53
|
'salesTo': json['salesTo'] == null ? undefined : json['salesTo'],
|
|
@@ -81,10 +79,7 @@ function CreateNewsletterInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
81
79
|
'featureStoryUuid': value['featureStoryUuid'],
|
|
82
80
|
'featureText': value['featureText'],
|
|
83
81
|
'featureLink': value['featureLink'],
|
|
84
|
-
'
|
|
85
|
-
'eventText': value['eventText'],
|
|
86
|
-
'eventUrl': value['eventUrl'],
|
|
87
|
-
'eventLink': value['eventLink'],
|
|
82
|
+
'events': value['events'] == null ? undefined : (value['events'].map(NewsletterEventInput_1.NewsletterEventInputToJSON)),
|
|
88
83
|
'salesEnabled': value['salesEnabled'],
|
|
89
84
|
'salesFrom': value['salesFrom'],
|
|
90
85
|
'salesTo': value['salesTo'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { NewsletterSecondaryStoryDto } from './NewsletterSecondaryStoryDto';
|
|
13
|
+
import type { NewsletterEventDto } from './NewsletterEventDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -101,29 +102,11 @@ export interface NewsletterDto {
|
|
|
101
102
|
*/
|
|
102
103
|
featureLink: string;
|
|
103
104
|
/**
|
|
104
|
-
*
|
|
105
|
-
* @type {
|
|
106
|
-
* @memberof NewsletterDto
|
|
107
|
-
*/
|
|
108
|
-
eventLead: string | null;
|
|
109
|
-
/**
|
|
110
|
-
* Event text, e.g. "We are at booth 214."
|
|
111
|
-
* @type {string}
|
|
112
|
-
* @memberof NewsletterDto
|
|
113
|
-
*/
|
|
114
|
-
eventText: string | null;
|
|
115
|
-
/**
|
|
116
|
-
* Event link URL.
|
|
117
|
-
* @type {string}
|
|
118
|
-
* @memberof NewsletterDto
|
|
119
|
-
*/
|
|
120
|
-
eventUrl: string | null;
|
|
121
|
-
/**
|
|
122
|
-
* Event link text.
|
|
123
|
-
* @type {string}
|
|
105
|
+
* Events, in order.
|
|
106
|
+
* @type {Array<NewsletterEventDto>}
|
|
124
107
|
* @memberof NewsletterDto
|
|
125
108
|
*/
|
|
126
|
-
|
|
109
|
+
events: Array<NewsletterEventDto>;
|
|
127
110
|
/**
|
|
128
111
|
* Whether the recent-sales module is in the issue.
|
|
129
112
|
* @type {boolean}
|
|
@@ -20,6 +20,7 @@ exports.NewsletterDtoFromJSONTyped = NewsletterDtoFromJSONTyped;
|
|
|
20
20
|
exports.NewsletterDtoToJSON = NewsletterDtoToJSON;
|
|
21
21
|
exports.NewsletterDtoToJSONTyped = NewsletterDtoToJSONTyped;
|
|
22
22
|
var NewsletterSecondaryStoryDto_1 = require("./NewsletterSecondaryStoryDto");
|
|
23
|
+
var NewsletterEventDto_1 = require("./NewsletterEventDto");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
@@ -59,13 +60,7 @@ function instanceOfNewsletterDto(value) {
|
|
|
59
60
|
return false;
|
|
60
61
|
if (!('featureLink' in value) || value['featureLink'] === undefined)
|
|
61
62
|
return false;
|
|
62
|
-
if (!('
|
|
63
|
-
return false;
|
|
64
|
-
if (!('eventText' in value) || value['eventText'] === undefined)
|
|
65
|
-
return false;
|
|
66
|
-
if (!('eventUrl' in value) || value['eventUrl'] === undefined)
|
|
67
|
-
return false;
|
|
68
|
-
if (!('eventLink' in value) || value['eventLink'] === undefined)
|
|
63
|
+
if (!('events' in value) || value['events'] === undefined)
|
|
69
64
|
return false;
|
|
70
65
|
if (!('salesEnabled' in value) || value['salesEnabled'] === undefined)
|
|
71
66
|
return false;
|
|
@@ -127,10 +122,7 @@ function NewsletterDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
127
122
|
'featureStoryUuid': json['featureStoryUuid'],
|
|
128
123
|
'featureText': json['featureText'],
|
|
129
124
|
'featureLink': json['featureLink'],
|
|
130
|
-
'
|
|
131
|
-
'eventText': json['eventText'],
|
|
132
|
-
'eventUrl': json['eventUrl'],
|
|
133
|
-
'eventLink': json['eventLink'],
|
|
125
|
+
'events': (json['events'].map(NewsletterEventDto_1.NewsletterEventDtoFromJSON)),
|
|
134
126
|
'salesEnabled': json['salesEnabled'],
|
|
135
127
|
'salesFrom': json['salesFrom'],
|
|
136
128
|
'salesTo': json['salesTo'],
|
|
@@ -174,10 +166,7 @@ function NewsletterDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
174
166
|
'featureStoryUuid': value['featureStoryUuid'],
|
|
175
167
|
'featureText': value['featureText'],
|
|
176
168
|
'featureLink': value['featureLink'],
|
|
177
|
-
'
|
|
178
|
-
'eventText': value['eventText'],
|
|
179
|
-
'eventUrl': value['eventUrl'],
|
|
180
|
-
'eventLink': value['eventLink'],
|
|
169
|
+
'events': (value['events'].map(NewsletterEventDto_1.NewsletterEventDtoToJSON)),
|
|
181
170
|
'salesEnabled': value['salesEnabled'],
|
|
182
171
|
'salesFrom': value['salesFrom'],
|
|
183
172
|
'salesTo': value['salesTo'],
|
|
@@ -0,0 +1,68 @@
|
|
|
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 NewsletterEventDto
|
|
16
|
+
*/
|
|
17
|
+
export interface NewsletterEventDto {
|
|
18
|
+
/**
|
|
19
|
+
* Event name, e.g. "NamesCon Global".
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NewsletterEventDto
|
|
22
|
+
*/
|
|
23
|
+
title: string;
|
|
24
|
+
/**
|
|
25
|
+
* First day (YYYY-MM-DD); draws the date tile.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof NewsletterEventDto
|
|
28
|
+
*/
|
|
29
|
+
startsOn: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Last day of a multi-day event (YYYY-MM-DD).
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof NewsletterEventDto
|
|
34
|
+
*/
|
|
35
|
+
endsOn: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* City, venue or "Online".
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof NewsletterEventDto
|
|
40
|
+
*/
|
|
41
|
+
location: string;
|
|
42
|
+
/**
|
|
43
|
+
* One or two sentences, e.g. "We are at booth 214."
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof NewsletterEventDto
|
|
46
|
+
*/
|
|
47
|
+
text: string;
|
|
48
|
+
/**
|
|
49
|
+
* Event link URL.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof NewsletterEventDto
|
|
52
|
+
*/
|
|
53
|
+
url: string;
|
|
54
|
+
/**
|
|
55
|
+
* Button text, 2 to 5 words.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof NewsletterEventDto
|
|
58
|
+
*/
|
|
59
|
+
link: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the NewsletterEventDto interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfNewsletterEventDto(value: object): value is NewsletterEventDto;
|
|
65
|
+
export declare function NewsletterEventDtoFromJSON(json: any): NewsletterEventDto;
|
|
66
|
+
export declare function NewsletterEventDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewsletterEventDto;
|
|
67
|
+
export declare function NewsletterEventDtoToJSON(json: any): NewsletterEventDto;
|
|
68
|
+
export declare function NewsletterEventDtoToJSONTyped(value?: NewsletterEventDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.instanceOfNewsletterEventDto = instanceOfNewsletterEventDto;
|
|
17
|
+
exports.NewsletterEventDtoFromJSON = NewsletterEventDtoFromJSON;
|
|
18
|
+
exports.NewsletterEventDtoFromJSONTyped = NewsletterEventDtoFromJSONTyped;
|
|
19
|
+
exports.NewsletterEventDtoToJSON = NewsletterEventDtoToJSON;
|
|
20
|
+
exports.NewsletterEventDtoToJSONTyped = NewsletterEventDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the NewsletterEventDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfNewsletterEventDto(value) {
|
|
25
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('startsOn' in value) || value['startsOn'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('endsOn' in value) || value['endsOn'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('location' in value) || value['location'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('link' in value) || value['link'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function NewsletterEventDtoFromJSON(json) {
|
|
42
|
+
return NewsletterEventDtoFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function NewsletterEventDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'title': json['title'],
|
|
50
|
+
'startsOn': json['startsOn'],
|
|
51
|
+
'endsOn': json['endsOn'],
|
|
52
|
+
'location': json['location'],
|
|
53
|
+
'text': json['text'],
|
|
54
|
+
'url': json['url'],
|
|
55
|
+
'link': json['link'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function NewsletterEventDtoToJSON(json) {
|
|
59
|
+
return NewsletterEventDtoToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function NewsletterEventDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'title': value['title'],
|
|
68
|
+
'startsOn': value['startsOn'],
|
|
69
|
+
'endsOn': value['endsOn'],
|
|
70
|
+
'location': value['location'],
|
|
71
|
+
'text': value['text'],
|
|
72
|
+
'url': value['url'],
|
|
73
|
+
'link': value['link'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 NewsletterEventInput
|
|
16
|
+
*/
|
|
17
|
+
export interface NewsletterEventInput {
|
|
18
|
+
/**
|
|
19
|
+
* Event name, e.g. "NamesCon Global".
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NewsletterEventInput
|
|
22
|
+
*/
|
|
23
|
+
title: string;
|
|
24
|
+
/**
|
|
25
|
+
* First day (YYYY-MM-DD); draws the date tile.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof NewsletterEventInput
|
|
28
|
+
*/
|
|
29
|
+
startsOn: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Last day of a multi-day event (YYYY-MM-DD).
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof NewsletterEventInput
|
|
34
|
+
*/
|
|
35
|
+
endsOn: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* City, venue or "Online".
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof NewsletterEventInput
|
|
40
|
+
*/
|
|
41
|
+
location: string;
|
|
42
|
+
/**
|
|
43
|
+
* One or two sentences, e.g. "We are at booth 214."
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof NewsletterEventInput
|
|
46
|
+
*/
|
|
47
|
+
text: string;
|
|
48
|
+
/**
|
|
49
|
+
* Event link URL.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof NewsletterEventInput
|
|
52
|
+
*/
|
|
53
|
+
url: string;
|
|
54
|
+
/**
|
|
55
|
+
* Button text, 2 to 5 words.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof NewsletterEventInput
|
|
58
|
+
*/
|
|
59
|
+
link: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the NewsletterEventInput interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfNewsletterEventInput(value: object): value is NewsletterEventInput;
|
|
65
|
+
export declare function NewsletterEventInputFromJSON(json: any): NewsletterEventInput;
|
|
66
|
+
export declare function NewsletterEventInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewsletterEventInput;
|
|
67
|
+
export declare function NewsletterEventInputToJSON(json: any): NewsletterEventInput;
|
|
68
|
+
export declare function NewsletterEventInputToJSONTyped(value?: NewsletterEventInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.instanceOfNewsletterEventInput = instanceOfNewsletterEventInput;
|
|
17
|
+
exports.NewsletterEventInputFromJSON = NewsletterEventInputFromJSON;
|
|
18
|
+
exports.NewsletterEventInputFromJSONTyped = NewsletterEventInputFromJSONTyped;
|
|
19
|
+
exports.NewsletterEventInputToJSON = NewsletterEventInputToJSON;
|
|
20
|
+
exports.NewsletterEventInputToJSONTyped = NewsletterEventInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the NewsletterEventInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfNewsletterEventInput(value) {
|
|
25
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('startsOn' in value) || value['startsOn'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('endsOn' in value) || value['endsOn'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('location' in value) || value['location'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('link' in value) || value['link'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function NewsletterEventInputFromJSON(json) {
|
|
42
|
+
return NewsletterEventInputFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function NewsletterEventInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'title': json['title'],
|
|
50
|
+
'startsOn': json['startsOn'],
|
|
51
|
+
'endsOn': json['endsOn'],
|
|
52
|
+
'location': json['location'],
|
|
53
|
+
'text': json['text'],
|
|
54
|
+
'url': json['url'],
|
|
55
|
+
'link': json['link'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function NewsletterEventInputToJSON(json) {
|
|
59
|
+
return NewsletterEventInputToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function NewsletterEventInputToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'title': value['title'],
|
|
68
|
+
'startsOn': value['startsOn'],
|
|
69
|
+
'endsOn': value['endsOn'],
|
|
70
|
+
'location': value['location'],
|
|
71
|
+
'text': value['text'],
|
|
72
|
+
'url': value['url'],
|
|
73
|
+
'link': value['link'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { NewsletterSecondaryStoryInput } from './NewsletterSecondaryStoryInput';
|
|
13
|
+
import type { NewsletterEventInput } from './NewsletterEventInput';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -89,29 +90,11 @@ export interface UpdateNewsletterInput {
|
|
|
89
90
|
*/
|
|
90
91
|
featureLink?: string;
|
|
91
92
|
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {
|
|
94
|
-
* @memberof UpdateNewsletterInput
|
|
95
|
-
*/
|
|
96
|
-
eventLead?: string | null;
|
|
97
|
-
/**
|
|
98
|
-
* Event text.
|
|
99
|
-
* @type {string}
|
|
100
|
-
* @memberof UpdateNewsletterInput
|
|
101
|
-
*/
|
|
102
|
-
eventText?: string | null;
|
|
103
|
-
/**
|
|
104
|
-
* Event link URL.
|
|
105
|
-
* @type {string}
|
|
106
|
-
* @memberof UpdateNewsletterInput
|
|
107
|
-
*/
|
|
108
|
-
eventUrl?: string | null;
|
|
109
|
-
/**
|
|
110
|
-
* Event link text.
|
|
111
|
-
* @type {string}
|
|
93
|
+
* Events, in order.
|
|
94
|
+
* @type {Array<NewsletterEventInput>}
|
|
112
95
|
* @memberof UpdateNewsletterInput
|
|
113
96
|
*/
|
|
114
|
-
|
|
97
|
+
events?: Array<NewsletterEventInput>;
|
|
115
98
|
/**
|
|
116
99
|
* Whether the recent-sales module is in the issue.
|
|
117
100
|
* @type {boolean}
|
|
@@ -19,6 +19,7 @@ exports.UpdateNewsletterInputFromJSONTyped = UpdateNewsletterInputFromJSONTyped;
|
|
|
19
19
|
exports.UpdateNewsletterInputToJSON = UpdateNewsletterInputToJSON;
|
|
20
20
|
exports.UpdateNewsletterInputToJSONTyped = UpdateNewsletterInputToJSONTyped;
|
|
21
21
|
var NewsletterSecondaryStoryInput_1 = require("./NewsletterSecondaryStoryInput");
|
|
22
|
+
var NewsletterEventInput_1 = require("./NewsletterEventInput");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the UpdateNewsletterInput interface.
|
|
24
25
|
*/
|
|
@@ -45,10 +46,7 @@ function UpdateNewsletterInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
46
|
'featureStoryUuid': json['featureStoryUuid'] == null ? undefined : json['featureStoryUuid'],
|
|
46
47
|
'featureText': json['featureText'] == null ? undefined : json['featureText'],
|
|
47
48
|
'featureLink': json['featureLink'] == null ? undefined : json['featureLink'],
|
|
48
|
-
'
|
|
49
|
-
'eventText': json['eventText'] == null ? undefined : json['eventText'],
|
|
50
|
-
'eventUrl': json['eventUrl'] == null ? undefined : json['eventUrl'],
|
|
51
|
-
'eventLink': json['eventLink'] == null ? undefined : json['eventLink'],
|
|
49
|
+
'events': json['events'] == null ? undefined : (json['events'].map(NewsletterEventInput_1.NewsletterEventInputFromJSON)),
|
|
52
50
|
'salesEnabled': json['salesEnabled'] == null ? undefined : json['salesEnabled'],
|
|
53
51
|
'salesFrom': json['salesFrom'] == null ? undefined : json['salesFrom'],
|
|
54
52
|
'salesTo': json['salesTo'] == null ? undefined : json['salesTo'],
|
|
@@ -80,10 +78,7 @@ function UpdateNewsletterInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
78
|
'featureStoryUuid': value['featureStoryUuid'],
|
|
81
79
|
'featureText': value['featureText'],
|
|
82
80
|
'featureLink': value['featureLink'],
|
|
83
|
-
'
|
|
84
|
-
'eventText': value['eventText'],
|
|
85
|
-
'eventUrl': value['eventUrl'],
|
|
86
|
-
'eventLink': value['eventLink'],
|
|
81
|
+
'events': value['events'] == null ? undefined : (value['events'].map(NewsletterEventInput_1.NewsletterEventInputToJSON)),
|
|
87
82
|
'salesEnabled': value['salesEnabled'],
|
|
88
83
|
'salesFrom': value['salesFrom'],
|
|
89
84
|
'salesTo': value['salesTo'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -433,6 +433,8 @@ export * from './MoneyInput';
|
|
|
433
433
|
export * from './MozMetrics';
|
|
434
434
|
export * from './NewsStoryDto';
|
|
435
435
|
export * from './NewsletterDto';
|
|
436
|
+
export * from './NewsletterEventDto';
|
|
437
|
+
export * from './NewsletterEventInput';
|
|
436
438
|
export * from './NewsletterPreviewDto';
|
|
437
439
|
export * from './NewsletterSecondaryStoryDto';
|
|
438
440
|
export * from './NewsletterSecondaryStoryInput';
|
package/dist/models/index.js
CHANGED
|
@@ -451,6 +451,8 @@ __exportStar(require("./MoneyInput"), exports);
|
|
|
451
451
|
__exportStar(require("./MozMetrics"), exports);
|
|
452
452
|
__exportStar(require("./NewsStoryDto"), exports);
|
|
453
453
|
__exportStar(require("./NewsletterDto"), exports);
|
|
454
|
+
__exportStar(require("./NewsletterEventDto"), exports);
|
|
455
|
+
__exportStar(require("./NewsletterEventInput"), exports);
|
|
454
456
|
__exportStar(require("./NewsletterPreviewDto"), exports);
|
|
455
457
|
__exportStar(require("./NewsletterSecondaryStoryDto"), exports);
|
|
456
458
|
__exportStar(require("./NewsletterSecondaryStoryInput"), exports);
|
package/package.json
CHANGED
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -290,7 +290,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
|
-
* Imports domains from an uploaded file or a list of domain names.
|
|
293
|
+
* Imports domains from an uploaded file or a list of domain names. A list is imported whole or not at all, before the response is sent. It is checked before any of it is imported. When a name is not a domain that can be listed, or is one the account has already, nothing is imported, and the request is answered with a 400 `ValidationException` holding one error per such name. Its `property` is `domains.<index>`, the index in `domains` as sent, and its `code` one of: - `INVALID_DOMAIN_NAME`: not a domain name, such as a single word, an extension on its own, or characters or labels no domain name has. - `UNKNOWN_DOMAIN_EXTENSION`: the extension is on no public suffix list, ICANN or private. - `DOMAIN_NAME_HAS_SUBDOMAIN`: a name under a registrable domain, such as `www.example.com`. - `DOMAIN_ALREADY_IN_ACCOUNT`: the account has the domain already. A name listed more than once, in whatever spelling, is imported once. When a domain of the list cannot be imported for any other reason, none of the list is, and the request is answered with a 400 whose `message` is `api.domains.import.error.unexpected`. Otherwise the list is answered with 201, once every name of it has been saved for the account. A name another account has is saved as a hijack, pending verification of its ownership, after which the domain moves to this account. A file is imported in the background: 1. The upload is answered with 202 and the job, which the `Location` header points at as well. The id to poll is at `job.id`. 2. Poll `GET /private/jobs/{jobId}` until its `status` is `finished` or `failed`. 3. Download the outcome of every row from `GET /private/jobs/{jobId}/result`, which redirects to a CSV on a public host. Follow the redirect without the `apikey` header, which the file does not need. With an API key, starting an import needs the `DOMAINS_WRITE` scope, while polling the job and downloading its result need `DOMAINS_READ`. Scopes are matched exactly, so a key that imports files needs both. `notifyByEmail` decides whether the user who started a file import is emailed about how it ended: when it has failed, or when it has finished after running for longer than 30 seconds. It defaults to true. An integration that polls the job usually sets it to false, which skips both emails. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
294
294
|
* Import domains
|
|
295
295
|
*/
|
|
296
296
|
async batchImportRaw(requestParameters: DomainsApiBatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportDomainsResponseDto>> {
|
|
@@ -350,7 +350,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
/**
|
|
353
|
-
* Imports domains from an uploaded file or a list of domain names.
|
|
353
|
+
* Imports domains from an uploaded file or a list of domain names. A list is imported whole or not at all, before the response is sent. It is checked before any of it is imported. When a name is not a domain that can be listed, or is one the account has already, nothing is imported, and the request is answered with a 400 `ValidationException` holding one error per such name. Its `property` is `domains.<index>`, the index in `domains` as sent, and its `code` one of: - `INVALID_DOMAIN_NAME`: not a domain name, such as a single word, an extension on its own, or characters or labels no domain name has. - `UNKNOWN_DOMAIN_EXTENSION`: the extension is on no public suffix list, ICANN or private. - `DOMAIN_NAME_HAS_SUBDOMAIN`: a name under a registrable domain, such as `www.example.com`. - `DOMAIN_ALREADY_IN_ACCOUNT`: the account has the domain already. A name listed more than once, in whatever spelling, is imported once. When a domain of the list cannot be imported for any other reason, none of the list is, and the request is answered with a 400 whose `message` is `api.domains.import.error.unexpected`. Otherwise the list is answered with 201, once every name of it has been saved for the account. A name another account has is saved as a hijack, pending verification of its ownership, after which the domain moves to this account. A file is imported in the background: 1. The upload is answered with 202 and the job, which the `Location` header points at as well. The id to poll is at `job.id`. 2. Poll `GET /private/jobs/{jobId}` until its `status` is `finished` or `failed`. 3. Download the outcome of every row from `GET /private/jobs/{jobId}/result`, which redirects to a CSV on a public host. Follow the redirect without the `apikey` header, which the file does not need. With an API key, starting an import needs the `DOMAINS_WRITE` scope, while polling the job and downloading its result need `DOMAINS_READ`. Scopes are matched exactly, so a key that imports files needs both. `notifyByEmail` decides whether the user who started a file import is emailed about how it ended: when it has failed, or when it has finished after running for longer than 30 seconds. It defaults to true. An integration that polls the job usually sets it to false, which skips both emails. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
354
354
|
* Import domains
|
|
355
355
|
*/
|
|
356
356
|
async batchImport(requestParameters: DomainsApiBatchImportRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportDomainsResponseDto> {
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
NewsletterSecondaryStoryInputToJSON,
|
|
21
21
|
NewsletterSecondaryStoryInputToJSONTyped,
|
|
22
22
|
} from './NewsletterSecondaryStoryInput';
|
|
23
|
+
import type { NewsletterEventInput } from './NewsletterEventInput';
|
|
24
|
+
import {
|
|
25
|
+
NewsletterEventInputFromJSON,
|
|
26
|
+
NewsletterEventInputFromJSONTyped,
|
|
27
|
+
NewsletterEventInputToJSON,
|
|
28
|
+
NewsletterEventInputToJSONTyped,
|
|
29
|
+
} from './NewsletterEventInput';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -94,29 +101,11 @@ export interface CreateNewsletterInput {
|
|
|
94
101
|
*/
|
|
95
102
|
featureLink?: string;
|
|
96
103
|
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {
|
|
99
|
-
* @memberof CreateNewsletterInput
|
|
100
|
-
*/
|
|
101
|
-
eventLead?: string | null;
|
|
102
|
-
/**
|
|
103
|
-
* Event text.
|
|
104
|
-
* @type {string}
|
|
105
|
-
* @memberof CreateNewsletterInput
|
|
106
|
-
*/
|
|
107
|
-
eventText?: string | null;
|
|
108
|
-
/**
|
|
109
|
-
* Event link URL.
|
|
110
|
-
* @type {string}
|
|
111
|
-
* @memberof CreateNewsletterInput
|
|
112
|
-
*/
|
|
113
|
-
eventUrl?: string | null;
|
|
114
|
-
/**
|
|
115
|
-
* Event link text.
|
|
116
|
-
* @type {string}
|
|
104
|
+
* Events, in order.
|
|
105
|
+
* @type {Array<NewsletterEventInput>}
|
|
117
106
|
* @memberof CreateNewsletterInput
|
|
118
107
|
*/
|
|
119
|
-
|
|
108
|
+
events?: Array<NewsletterEventInput>;
|
|
120
109
|
/**
|
|
121
110
|
* Whether the recent-sales module is in the issue.
|
|
122
111
|
* @type {boolean}
|
|
@@ -202,10 +191,7 @@ export function CreateNewsletterInputFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
202
191
|
'featureStoryUuid': json['featureStoryUuid'] == null ? undefined : json['featureStoryUuid'],
|
|
203
192
|
'featureText': json['featureText'] == null ? undefined : json['featureText'],
|
|
204
193
|
'featureLink': json['featureLink'] == null ? undefined : json['featureLink'],
|
|
205
|
-
'
|
|
206
|
-
'eventText': json['eventText'] == null ? undefined : json['eventText'],
|
|
207
|
-
'eventUrl': json['eventUrl'] == null ? undefined : json['eventUrl'],
|
|
208
|
-
'eventLink': json['eventLink'] == null ? undefined : json['eventLink'],
|
|
194
|
+
'events': json['events'] == null ? undefined : ((json['events'] as Array<any>).map(NewsletterEventInputFromJSON)),
|
|
209
195
|
'salesEnabled': json['salesEnabled'] == null ? undefined : json['salesEnabled'],
|
|
210
196
|
'salesFrom': json['salesFrom'] == null ? undefined : json['salesFrom'],
|
|
211
197
|
'salesTo': json['salesTo'] == null ? undefined : json['salesTo'],
|
|
@@ -240,10 +226,7 @@ export function CreateNewsletterInputToJSONTyped(value?: CreateNewsletterInput |
|
|
|
240
226
|
'featureStoryUuid': value['featureStoryUuid'],
|
|
241
227
|
'featureText': value['featureText'],
|
|
242
228
|
'featureLink': value['featureLink'],
|
|
243
|
-
'
|
|
244
|
-
'eventText': value['eventText'],
|
|
245
|
-
'eventUrl': value['eventUrl'],
|
|
246
|
-
'eventLink': value['eventLink'],
|
|
229
|
+
'events': value['events'] == null ? undefined : ((value['events'] as Array<any>).map(NewsletterEventInputToJSON)),
|
|
247
230
|
'salesEnabled': value['salesEnabled'],
|
|
248
231
|
'salesFrom': value['salesFrom'],
|
|
249
232
|
'salesTo': value['salesTo'],
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
NewsletterSecondaryStoryDtoToJSON,
|
|
21
21
|
NewsletterSecondaryStoryDtoToJSONTyped,
|
|
22
22
|
} from './NewsletterSecondaryStoryDto';
|
|
23
|
+
import type { NewsletterEventDto } from './NewsletterEventDto';
|
|
24
|
+
import {
|
|
25
|
+
NewsletterEventDtoFromJSON,
|
|
26
|
+
NewsletterEventDtoFromJSONTyped,
|
|
27
|
+
NewsletterEventDtoToJSON,
|
|
28
|
+
NewsletterEventDtoToJSONTyped,
|
|
29
|
+
} from './NewsletterEventDto';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -112,29 +119,11 @@ export interface NewsletterDto {
|
|
|
112
119
|
*/
|
|
113
120
|
featureLink: string;
|
|
114
121
|
/**
|
|
115
|
-
*
|
|
116
|
-
* @type {
|
|
117
|
-
* @memberof NewsletterDto
|
|
118
|
-
*/
|
|
119
|
-
eventLead: string | null;
|
|
120
|
-
/**
|
|
121
|
-
* Event text, e.g. "We are at booth 214."
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof NewsletterDto
|
|
124
|
-
*/
|
|
125
|
-
eventText: string | null;
|
|
126
|
-
/**
|
|
127
|
-
* Event link URL.
|
|
128
|
-
* @type {string}
|
|
129
|
-
* @memberof NewsletterDto
|
|
130
|
-
*/
|
|
131
|
-
eventUrl: string | null;
|
|
132
|
-
/**
|
|
133
|
-
* Event link text.
|
|
134
|
-
* @type {string}
|
|
122
|
+
* Events, in order.
|
|
123
|
+
* @type {Array<NewsletterEventDto>}
|
|
135
124
|
* @memberof NewsletterDto
|
|
136
125
|
*/
|
|
137
|
-
|
|
126
|
+
events: Array<NewsletterEventDto>;
|
|
138
127
|
/**
|
|
139
128
|
* Whether the recent-sales module is in the issue.
|
|
140
129
|
* @type {boolean}
|
|
@@ -274,10 +263,7 @@ export function instanceOfNewsletterDto(value: object): value is NewsletterDto {
|
|
|
274
263
|
if (!('featureStoryUuid' in value) || value['featureStoryUuid'] === undefined) return false;
|
|
275
264
|
if (!('featureText' in value) || value['featureText'] === undefined) return false;
|
|
276
265
|
if (!('featureLink' in value) || value['featureLink'] === undefined) return false;
|
|
277
|
-
if (!('
|
|
278
|
-
if (!('eventText' in value) || value['eventText'] === undefined) return false;
|
|
279
|
-
if (!('eventUrl' in value) || value['eventUrl'] === undefined) return false;
|
|
280
|
-
if (!('eventLink' in value) || value['eventLink'] === undefined) return false;
|
|
266
|
+
if (!('events' in value) || value['events'] === undefined) return false;
|
|
281
267
|
if (!('salesEnabled' in value) || value['salesEnabled'] === undefined) return false;
|
|
282
268
|
if (!('salesFrom' in value) || value['salesFrom'] === undefined) return false;
|
|
283
269
|
if (!('salesTo' in value) || value['salesTo'] === undefined) return false;
|
|
@@ -323,10 +309,7 @@ export function NewsletterDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
323
309
|
'featureStoryUuid': json['featureStoryUuid'],
|
|
324
310
|
'featureText': json['featureText'],
|
|
325
311
|
'featureLink': json['featureLink'],
|
|
326
|
-
'
|
|
327
|
-
'eventText': json['eventText'],
|
|
328
|
-
'eventUrl': json['eventUrl'],
|
|
329
|
-
'eventLink': json['eventLink'],
|
|
312
|
+
'events': ((json['events'] as Array<any>).map(NewsletterEventDtoFromJSON)),
|
|
330
313
|
'salesEnabled': json['salesEnabled'],
|
|
331
314
|
'salesFrom': json['salesFrom'],
|
|
332
315
|
'salesTo': json['salesTo'],
|
|
@@ -373,10 +356,7 @@ export function NewsletterDtoToJSONTyped(value?: NewsletterDto | null, ignoreDis
|
|
|
373
356
|
'featureStoryUuid': value['featureStoryUuid'],
|
|
374
357
|
'featureText': value['featureText'],
|
|
375
358
|
'featureLink': value['featureLink'],
|
|
376
|
-
'
|
|
377
|
-
'eventText': value['eventText'],
|
|
378
|
-
'eventUrl': value['eventUrl'],
|
|
379
|
-
'eventLink': value['eventLink'],
|
|
359
|
+
'events': ((value['events'] as Array<any>).map(NewsletterEventDtoToJSON)),
|
|
380
360
|
'salesEnabled': value['salesEnabled'],
|
|
381
361
|
'salesFrom': value['salesFrom'],
|
|
382
362
|
'salesTo': value['salesTo'],
|
|
@@ -0,0 +1,120 @@
|
|
|
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 NewsletterEventDto
|
|
20
|
+
*/
|
|
21
|
+
export interface NewsletterEventDto {
|
|
22
|
+
/**
|
|
23
|
+
* Event name, e.g. "NamesCon Global".
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof NewsletterEventDto
|
|
26
|
+
*/
|
|
27
|
+
title: string;
|
|
28
|
+
/**
|
|
29
|
+
* First day (YYYY-MM-DD); draws the date tile.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof NewsletterEventDto
|
|
32
|
+
*/
|
|
33
|
+
startsOn: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Last day of a multi-day event (YYYY-MM-DD).
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof NewsletterEventDto
|
|
38
|
+
*/
|
|
39
|
+
endsOn: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* City, venue or "Online".
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof NewsletterEventDto
|
|
44
|
+
*/
|
|
45
|
+
location: string;
|
|
46
|
+
/**
|
|
47
|
+
* One or two sentences, e.g. "We are at booth 214."
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof NewsletterEventDto
|
|
50
|
+
*/
|
|
51
|
+
text: string;
|
|
52
|
+
/**
|
|
53
|
+
* Event link URL.
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof NewsletterEventDto
|
|
56
|
+
*/
|
|
57
|
+
url: string;
|
|
58
|
+
/**
|
|
59
|
+
* Button text, 2 to 5 words.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof NewsletterEventDto
|
|
62
|
+
*/
|
|
63
|
+
link: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the NewsletterEventDto interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfNewsletterEventDto(value: object): value is NewsletterEventDto {
|
|
70
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
71
|
+
if (!('startsOn' in value) || value['startsOn'] === undefined) return false;
|
|
72
|
+
if (!('endsOn' in value) || value['endsOn'] === undefined) return false;
|
|
73
|
+
if (!('location' in value) || value['location'] === undefined) return false;
|
|
74
|
+
if (!('text' in value) || value['text'] === undefined) return false;
|
|
75
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
76
|
+
if (!('link' in value) || value['link'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function NewsletterEventDtoFromJSON(json: any): NewsletterEventDto {
|
|
81
|
+
return NewsletterEventDtoFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function NewsletterEventDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewsletterEventDto {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'title': json['title'],
|
|
91
|
+
'startsOn': json['startsOn'],
|
|
92
|
+
'endsOn': json['endsOn'],
|
|
93
|
+
'location': json['location'],
|
|
94
|
+
'text': json['text'],
|
|
95
|
+
'url': json['url'],
|
|
96
|
+
'link': json['link'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function NewsletterEventDtoToJSON(json: any): NewsletterEventDto {
|
|
101
|
+
return NewsletterEventDtoToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function NewsletterEventDtoToJSONTyped(value?: NewsletterEventDto | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'title': value['title'],
|
|
112
|
+
'startsOn': value['startsOn'],
|
|
113
|
+
'endsOn': value['endsOn'],
|
|
114
|
+
'location': value['location'],
|
|
115
|
+
'text': value['text'],
|
|
116
|
+
'url': value['url'],
|
|
117
|
+
'link': value['link'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
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 NewsletterEventInput
|
|
20
|
+
*/
|
|
21
|
+
export interface NewsletterEventInput {
|
|
22
|
+
/**
|
|
23
|
+
* Event name, e.g. "NamesCon Global".
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof NewsletterEventInput
|
|
26
|
+
*/
|
|
27
|
+
title: string;
|
|
28
|
+
/**
|
|
29
|
+
* First day (YYYY-MM-DD); draws the date tile.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof NewsletterEventInput
|
|
32
|
+
*/
|
|
33
|
+
startsOn: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Last day of a multi-day event (YYYY-MM-DD).
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof NewsletterEventInput
|
|
38
|
+
*/
|
|
39
|
+
endsOn: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* City, venue or "Online".
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof NewsletterEventInput
|
|
44
|
+
*/
|
|
45
|
+
location: string;
|
|
46
|
+
/**
|
|
47
|
+
* One or two sentences, e.g. "We are at booth 214."
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof NewsletterEventInput
|
|
50
|
+
*/
|
|
51
|
+
text: string;
|
|
52
|
+
/**
|
|
53
|
+
* Event link URL.
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof NewsletterEventInput
|
|
56
|
+
*/
|
|
57
|
+
url: string;
|
|
58
|
+
/**
|
|
59
|
+
* Button text, 2 to 5 words.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof NewsletterEventInput
|
|
62
|
+
*/
|
|
63
|
+
link: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the NewsletterEventInput interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfNewsletterEventInput(value: object): value is NewsletterEventInput {
|
|
70
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
71
|
+
if (!('startsOn' in value) || value['startsOn'] === undefined) return false;
|
|
72
|
+
if (!('endsOn' in value) || value['endsOn'] === undefined) return false;
|
|
73
|
+
if (!('location' in value) || value['location'] === undefined) return false;
|
|
74
|
+
if (!('text' in value) || value['text'] === undefined) return false;
|
|
75
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
76
|
+
if (!('link' in value) || value['link'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function NewsletterEventInputFromJSON(json: any): NewsletterEventInput {
|
|
81
|
+
return NewsletterEventInputFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function NewsletterEventInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewsletterEventInput {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'title': json['title'],
|
|
91
|
+
'startsOn': json['startsOn'],
|
|
92
|
+
'endsOn': json['endsOn'],
|
|
93
|
+
'location': json['location'],
|
|
94
|
+
'text': json['text'],
|
|
95
|
+
'url': json['url'],
|
|
96
|
+
'link': json['link'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function NewsletterEventInputToJSON(json: any): NewsletterEventInput {
|
|
101
|
+
return NewsletterEventInputToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function NewsletterEventInputToJSONTyped(value?: NewsletterEventInput | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'title': value['title'],
|
|
112
|
+
'startsOn': value['startsOn'],
|
|
113
|
+
'endsOn': value['endsOn'],
|
|
114
|
+
'location': value['location'],
|
|
115
|
+
'text': value['text'],
|
|
116
|
+
'url': value['url'],
|
|
117
|
+
'link': value['link'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
NewsletterSecondaryStoryInputToJSON,
|
|
21
21
|
NewsletterSecondaryStoryInputToJSONTyped,
|
|
22
22
|
} from './NewsletterSecondaryStoryInput';
|
|
23
|
+
import type { NewsletterEventInput } from './NewsletterEventInput';
|
|
24
|
+
import {
|
|
25
|
+
NewsletterEventInputFromJSON,
|
|
26
|
+
NewsletterEventInputFromJSONTyped,
|
|
27
|
+
NewsletterEventInputToJSON,
|
|
28
|
+
NewsletterEventInputToJSONTyped,
|
|
29
|
+
} from './NewsletterEventInput';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -100,29 +107,11 @@ export interface UpdateNewsletterInput {
|
|
|
100
107
|
*/
|
|
101
108
|
featureLink?: string;
|
|
102
109
|
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {
|
|
105
|
-
* @memberof UpdateNewsletterInput
|
|
106
|
-
*/
|
|
107
|
-
eventLead?: string | null;
|
|
108
|
-
/**
|
|
109
|
-
* Event text.
|
|
110
|
-
* @type {string}
|
|
111
|
-
* @memberof UpdateNewsletterInput
|
|
112
|
-
*/
|
|
113
|
-
eventText?: string | null;
|
|
114
|
-
/**
|
|
115
|
-
* Event link URL.
|
|
116
|
-
* @type {string}
|
|
117
|
-
* @memberof UpdateNewsletterInput
|
|
118
|
-
*/
|
|
119
|
-
eventUrl?: string | null;
|
|
120
|
-
/**
|
|
121
|
-
* Event link text.
|
|
122
|
-
* @type {string}
|
|
110
|
+
* Events, in order.
|
|
111
|
+
* @type {Array<NewsletterEventInput>}
|
|
123
112
|
* @memberof UpdateNewsletterInput
|
|
124
113
|
*/
|
|
125
|
-
|
|
114
|
+
events?: Array<NewsletterEventInput>;
|
|
126
115
|
/**
|
|
127
116
|
* Whether the recent-sales module is in the issue.
|
|
128
117
|
* @type {boolean}
|
|
@@ -202,10 +191,7 @@ export function UpdateNewsletterInputFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
202
191
|
'featureStoryUuid': json['featureStoryUuid'] == null ? undefined : json['featureStoryUuid'],
|
|
203
192
|
'featureText': json['featureText'] == null ? undefined : json['featureText'],
|
|
204
193
|
'featureLink': json['featureLink'] == null ? undefined : json['featureLink'],
|
|
205
|
-
'
|
|
206
|
-
'eventText': json['eventText'] == null ? undefined : json['eventText'],
|
|
207
|
-
'eventUrl': json['eventUrl'] == null ? undefined : json['eventUrl'],
|
|
208
|
-
'eventLink': json['eventLink'] == null ? undefined : json['eventLink'],
|
|
194
|
+
'events': json['events'] == null ? undefined : ((json['events'] as Array<any>).map(NewsletterEventInputFromJSON)),
|
|
209
195
|
'salesEnabled': json['salesEnabled'] == null ? undefined : json['salesEnabled'],
|
|
210
196
|
'salesFrom': json['salesFrom'] == null ? undefined : json['salesFrom'],
|
|
211
197
|
'salesTo': json['salesTo'] == null ? undefined : json['salesTo'],
|
|
@@ -240,10 +226,7 @@ export function UpdateNewsletterInputToJSONTyped(value?: UpdateNewsletterInput |
|
|
|
240
226
|
'featureStoryUuid': value['featureStoryUuid'],
|
|
241
227
|
'featureText': value['featureText'],
|
|
242
228
|
'featureLink': value['featureLink'],
|
|
243
|
-
'
|
|
244
|
-
'eventText': value['eventText'],
|
|
245
|
-
'eventUrl': value['eventUrl'],
|
|
246
|
-
'eventLink': value['eventLink'],
|
|
229
|
+
'events': value['events'] == null ? undefined : ((value['events'] as Array<any>).map(NewsletterEventInputToJSON)),
|
|
247
230
|
'salesEnabled': value['salesEnabled'],
|
|
248
231
|
'salesFrom': value['salesFrom'],
|
|
249
232
|
'salesTo': value['salesTo'],
|
package/src/models/index.ts
CHANGED
|
@@ -435,6 +435,8 @@ export * from './MoneyInput';
|
|
|
435
435
|
export * from './MozMetrics';
|
|
436
436
|
export * from './NewsStoryDto';
|
|
437
437
|
export * from './NewsletterDto';
|
|
438
|
+
export * from './NewsletterEventDto';
|
|
439
|
+
export * from './NewsletterEventInput';
|
|
438
440
|
export * from './NewsletterPreviewDto';
|
|
439
441
|
export * from './NewsletterSecondaryStoryDto';
|
|
440
442
|
export * from './NewsletterSecondaryStoryInput';
|