@randock/nameshift-api-client 0.0.504 → 0.0.506
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 +12 -2
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +113 -1
- package/dist/apis/AdminApi.js +500 -0
- package/dist/apis/UsersApi.d.ts +18 -18
- package/dist/apis/UsersApi.js +69 -70
- package/dist/apis/UsersPublicApi.d.ts +20 -7
- package/dist/apis/UsersPublicApi.js +54 -6
- package/dist/models/AdminUserNewsletterInput.d.ts +41 -0
- package/dist/models/AdminUserNewsletterInput.js +60 -0
- package/dist/models/AdminUserSecurityDto.d.ts +4 -4
- package/dist/models/AdminUserSecurityDto.js +3 -4
- package/dist/models/ChangeUserSignInStepsInput.d.ts +33 -0
- package/dist/models/ChangeUserSignInStepsInput.js +51 -0
- package/dist/models/CreateNewsletterInput.d.ts +171 -0
- package/dist/models/CreateNewsletterInput.js +98 -0
- package/dist/models/LoginPasswordInput.d.ts +38 -0
- package/dist/models/LoginPasswordInput.js +55 -0
- package/dist/models/NewsStoryDto.d.ts +80 -0
- package/dist/models/NewsStoryDto.js +83 -0
- package/dist/models/NewsletterDto.d.ts +251 -0
- package/dist/models/NewsletterDto.js +200 -0
- package/dist/models/NewsletterPreviewDto.d.ts +44 -0
- package/dist/models/NewsletterPreviewDto.js +59 -0
- package/dist/models/NewsletterSecondaryStoryDto.d.ts +44 -0
- package/dist/models/NewsletterSecondaryStoryDto.js +59 -0
- package/dist/models/NewsletterSecondaryStoryInput.d.ts +44 -0
- package/dist/models/NewsletterSecondaryStoryInput.js +59 -0
- package/dist/models/SecondFactorMethod.d.ts +1 -0
- package/dist/models/SecondFactorMethod.js +1 -0
- package/dist/models/SendNewsletterPreviewInput.d.ts +32 -0
- package/dist/models/SendNewsletterPreviewInput.js +51 -0
- package/dist/models/UpdateNewsletterInput.d.ts +171 -0
- package/dist/models/UpdateNewsletterInput.js +96 -0
- package/dist/models/UserLoginAttemptResult.d.ts +1 -0
- package/dist/models/UserLoginAttemptResult.js +1 -0
- package/dist/models/UserSecurityDto.d.ts +11 -11
- package/dist/models/UserSecurityDto.js +10 -10
- package/dist/models/UserSignInFactor.d.ts +26 -0
- package/dist/models/UserSignInFactor.js +52 -0
- package/dist/models/index.d.ts +12 -2
- package/dist/models/index.js +12 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +454 -0
- package/src/apis/UsersApi.ts +73 -74
- package/src/apis/UsersPublicApi.ts +51 -6
- package/src/models/AdminUserNewsletterInput.ts +78 -0
- package/src/models/AdminUserSecurityDto.ts +12 -14
- package/src/models/ChangeUserSignInStepsInput.ts +74 -0
- package/src/models/CreateNewsletterInput.ts +258 -0
- package/src/models/LoginPasswordInput.ts +75 -0
- package/src/models/NewsStoryDto.ts +138 -0
- package/src/models/NewsletterDto.ts +400 -0
- package/src/models/NewsletterPreviewDto.ts +84 -0
- package/src/models/NewsletterSecondaryStoryDto.ts +84 -0
- package/src/models/NewsletterSecondaryStoryInput.ts +84 -0
- package/src/models/SecondFactorMethod.ts +1 -0
- package/src/models/SendNewsletterPreviewInput.ts +66 -0
- package/src/models/UpdateNewsletterInput.ts +257 -0
- package/src/models/UserLoginAttemptResult.ts +1 -0
- package/src/models/UserSecurityDto.ts +25 -27
- package/src/models/UserSignInFactor.ts +54 -0
- package/src/models/index.ts +12 -2
- package/dist/models/ChangeUserAuthenticationMethodInput.d.ts +0 -33
- package/dist/models/ChangeUserAuthenticationMethodInput.js +0 -52
- package/dist/models/UserAuthenticationMethod.d.ts +0 -27
- package/dist/models/UserAuthenticationMethod.js +0 -53
- package/src/models/ChangeUserAuthenticationMethodInput.ts +0 -76
- package/src/models/UserAuthenticationMethod.ts +0 -55
|
@@ -0,0 +1,258 @@
|
|
|
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 { NewsletterSecondaryStoryInput } from './NewsletterSecondaryStoryInput';
|
|
17
|
+
import {
|
|
18
|
+
NewsletterSecondaryStoryInputFromJSON,
|
|
19
|
+
NewsletterSecondaryStoryInputFromJSONTyped,
|
|
20
|
+
NewsletterSecondaryStoryInputToJSON,
|
|
21
|
+
NewsletterSecondaryStoryInputToJSONTyped,
|
|
22
|
+
} from './NewsletterSecondaryStoryInput';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CreateNewsletterInput
|
|
28
|
+
*/
|
|
29
|
+
export interface CreateNewsletterInput {
|
|
30
|
+
/**
|
|
31
|
+
* Subject line.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateNewsletterInput
|
|
34
|
+
*/
|
|
35
|
+
subject?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Preheader, 40 to 90 characters.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateNewsletterInput
|
|
40
|
+
*/
|
|
41
|
+
preheader?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Issue label in the header; may carry HTML entities.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateNewsletterInput
|
|
46
|
+
*/
|
|
47
|
+
issueLabel?: string;
|
|
48
|
+
/**
|
|
49
|
+
* utm_campaign on every link, e.g. nl-2026-10.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateNewsletterInput
|
|
52
|
+
*/
|
|
53
|
+
campaignSlug?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Lead story UUID.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateNewsletterInput
|
|
58
|
+
*/
|
|
59
|
+
leadStoryUuid?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Lead teaser, 30 to 60 words.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CreateNewsletterInput
|
|
64
|
+
*/
|
|
65
|
+
leadTeaser?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Lead button text, 2 to 5 words.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CreateNewsletterInput
|
|
70
|
+
*/
|
|
71
|
+
leadCta?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Secondary stories, in order.
|
|
74
|
+
* @type {Array<NewsletterSecondaryStoryInput>}
|
|
75
|
+
* @memberof CreateNewsletterInput
|
|
76
|
+
*/
|
|
77
|
+
secondaryStories?: Array<NewsletterSecondaryStoryInput>;
|
|
78
|
+
/**
|
|
79
|
+
* Feature story UUID.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof CreateNewsletterInput
|
|
82
|
+
*/
|
|
83
|
+
featureStoryUuid?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Feature text, 1 to 2 sentences.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof CreateNewsletterInput
|
|
88
|
+
*/
|
|
89
|
+
featureText?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Feature link text.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof CreateNewsletterInput
|
|
94
|
+
*/
|
|
95
|
+
featureLink?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Event lead line.
|
|
98
|
+
* @type {string}
|
|
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}
|
|
117
|
+
* @memberof CreateNewsletterInput
|
|
118
|
+
*/
|
|
119
|
+
eventLink?: string | null;
|
|
120
|
+
/**
|
|
121
|
+
* Whether the recent-sales module is in the issue.
|
|
122
|
+
* @type {boolean}
|
|
123
|
+
* @memberof CreateNewsletterInput
|
|
124
|
+
*/
|
|
125
|
+
salesEnabled?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* First day of the sales period (YYYY-MM-DD).
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof CreateNewsletterInput
|
|
130
|
+
*/
|
|
131
|
+
salesFrom?: string | null;
|
|
132
|
+
/**
|
|
133
|
+
* Last day of the sales period (YYYY-MM-DD).
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof CreateNewsletterInput
|
|
136
|
+
*/
|
|
137
|
+
salesTo?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* Closing band line.
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof CreateNewsletterInput
|
|
142
|
+
*/
|
|
143
|
+
closingLine?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Closing button text.
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof CreateNewsletterInput
|
|
148
|
+
*/
|
|
149
|
+
closingCta?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Closing button URL.
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof CreateNewsletterInput
|
|
154
|
+
*/
|
|
155
|
+
closingUrl?: string;
|
|
156
|
+
/**
|
|
157
|
+
* Closing note under the button.
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof CreateNewsletterInput
|
|
160
|
+
*/
|
|
161
|
+
closingNote?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Why the reader receives the email.
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof CreateNewsletterInput
|
|
166
|
+
*/
|
|
167
|
+
footerReason?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Internal title, also the Mailchimp campaign name.
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof CreateNewsletterInput
|
|
172
|
+
*/
|
|
173
|
+
title: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Check if a given object implements the CreateNewsletterInput interface.
|
|
178
|
+
*/
|
|
179
|
+
export function instanceOfCreateNewsletterInput(value: object): value is CreateNewsletterInput {
|
|
180
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
181
|
+
return true;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export function CreateNewsletterInputFromJSON(json: any): CreateNewsletterInput {
|
|
185
|
+
return CreateNewsletterInputFromJSONTyped(json, false);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export function CreateNewsletterInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNewsletterInput {
|
|
189
|
+
if (json == null) {
|
|
190
|
+
return json;
|
|
191
|
+
}
|
|
192
|
+
return {
|
|
193
|
+
|
|
194
|
+
'subject': json['subject'] == null ? undefined : json['subject'],
|
|
195
|
+
'preheader': json['preheader'] == null ? undefined : json['preheader'],
|
|
196
|
+
'issueLabel': json['issueLabel'] == null ? undefined : json['issueLabel'],
|
|
197
|
+
'campaignSlug': json['campaignSlug'] == null ? undefined : json['campaignSlug'],
|
|
198
|
+
'leadStoryUuid': json['leadStoryUuid'] == null ? undefined : json['leadStoryUuid'],
|
|
199
|
+
'leadTeaser': json['leadTeaser'] == null ? undefined : json['leadTeaser'],
|
|
200
|
+
'leadCta': json['leadCta'] == null ? undefined : json['leadCta'],
|
|
201
|
+
'secondaryStories': json['secondaryStories'] == null ? undefined : ((json['secondaryStories'] as Array<any>).map(NewsletterSecondaryStoryInputFromJSON)),
|
|
202
|
+
'featureStoryUuid': json['featureStoryUuid'] == null ? undefined : json['featureStoryUuid'],
|
|
203
|
+
'featureText': json['featureText'] == null ? undefined : json['featureText'],
|
|
204
|
+
'featureLink': json['featureLink'] == null ? undefined : json['featureLink'],
|
|
205
|
+
'eventLead': json['eventLead'] == null ? undefined : json['eventLead'],
|
|
206
|
+
'eventText': json['eventText'] == null ? undefined : json['eventText'],
|
|
207
|
+
'eventUrl': json['eventUrl'] == null ? undefined : json['eventUrl'],
|
|
208
|
+
'eventLink': json['eventLink'] == null ? undefined : json['eventLink'],
|
|
209
|
+
'salesEnabled': json['salesEnabled'] == null ? undefined : json['salesEnabled'],
|
|
210
|
+
'salesFrom': json['salesFrom'] == null ? undefined : json['salesFrom'],
|
|
211
|
+
'salesTo': json['salesTo'] == null ? undefined : json['salesTo'],
|
|
212
|
+
'closingLine': json['closingLine'] == null ? undefined : json['closingLine'],
|
|
213
|
+
'closingCta': json['closingCta'] == null ? undefined : json['closingCta'],
|
|
214
|
+
'closingUrl': json['closingUrl'] == null ? undefined : json['closingUrl'],
|
|
215
|
+
'closingNote': json['closingNote'] == null ? undefined : json['closingNote'],
|
|
216
|
+
'footerReason': json['footerReason'] == null ? undefined : json['footerReason'],
|
|
217
|
+
'title': json['title'],
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export function CreateNewsletterInputToJSON(json: any): CreateNewsletterInput {
|
|
222
|
+
return CreateNewsletterInputToJSONTyped(json, false);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export function CreateNewsletterInputToJSONTyped(value?: CreateNewsletterInput | null, ignoreDiscriminator: boolean = false): any {
|
|
226
|
+
if (value == null) {
|
|
227
|
+
return value;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
return {
|
|
231
|
+
|
|
232
|
+
'subject': value['subject'],
|
|
233
|
+
'preheader': value['preheader'],
|
|
234
|
+
'issueLabel': value['issueLabel'],
|
|
235
|
+
'campaignSlug': value['campaignSlug'],
|
|
236
|
+
'leadStoryUuid': value['leadStoryUuid'],
|
|
237
|
+
'leadTeaser': value['leadTeaser'],
|
|
238
|
+
'leadCta': value['leadCta'],
|
|
239
|
+
'secondaryStories': value['secondaryStories'] == null ? undefined : ((value['secondaryStories'] as Array<any>).map(NewsletterSecondaryStoryInputToJSON)),
|
|
240
|
+
'featureStoryUuid': value['featureStoryUuid'],
|
|
241
|
+
'featureText': value['featureText'],
|
|
242
|
+
'featureLink': value['featureLink'],
|
|
243
|
+
'eventLead': value['eventLead'],
|
|
244
|
+
'eventText': value['eventText'],
|
|
245
|
+
'eventUrl': value['eventUrl'],
|
|
246
|
+
'eventLink': value['eventLink'],
|
|
247
|
+
'salesEnabled': value['salesEnabled'],
|
|
248
|
+
'salesFrom': value['salesFrom'],
|
|
249
|
+
'salesTo': value['salesTo'],
|
|
250
|
+
'closingLine': value['closingLine'],
|
|
251
|
+
'closingCta': value['closingCta'],
|
|
252
|
+
'closingUrl': value['closingUrl'],
|
|
253
|
+
'closingNote': value['closingNote'],
|
|
254
|
+
'footerReason': value['footerReason'],
|
|
255
|
+
'title': value['title'],
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 LoginPasswordInput
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginPasswordInput {
|
|
22
|
+
/**
|
|
23
|
+
* Challenge token returned by the previous sign-in step.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginPasswordInput
|
|
26
|
+
*/
|
|
27
|
+
challengeToken: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LoginPasswordInput
|
|
32
|
+
*/
|
|
33
|
+
password: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the LoginPasswordInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfLoginPasswordInput(value: object): value is LoginPasswordInput {
|
|
40
|
+
if (!('challengeToken' in value) || value['challengeToken'] === undefined) return false;
|
|
41
|
+
if (!('password' in value) || value['password'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LoginPasswordInputFromJSON(json: any): LoginPasswordInput {
|
|
46
|
+
return LoginPasswordInputFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LoginPasswordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginPasswordInput {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'challengeToken': json['challengeToken'],
|
|
56
|
+
'password': json['password'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function LoginPasswordInputToJSON(json: any): LoginPasswordInput {
|
|
61
|
+
return LoginPasswordInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function LoginPasswordInputToJSONTyped(value?: LoginPasswordInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'challengeToken': value['challengeToken'],
|
|
72
|
+
'password': value['password'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,138 @@
|
|
|
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 NewsStoryDto
|
|
20
|
+
*/
|
|
21
|
+
export interface NewsStoryDto {
|
|
22
|
+
/**
|
|
23
|
+
* Storyblok story UUID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof NewsStoryDto
|
|
26
|
+
*/
|
|
27
|
+
uuid: string;
|
|
28
|
+
/**
|
|
29
|
+
* Headline of the post.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof NewsStoryDto
|
|
32
|
+
*/
|
|
33
|
+
title: string;
|
|
34
|
+
/**
|
|
35
|
+
* Public URL of the post.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof NewsStoryDto
|
|
38
|
+
*/
|
|
39
|
+
url: string;
|
|
40
|
+
/**
|
|
41
|
+
* Category key, e.g. articles.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof NewsStoryDto
|
|
44
|
+
*/
|
|
45
|
+
category: string;
|
|
46
|
+
/**
|
|
47
|
+
* Category as the email shows it, e.g. Article.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof NewsStoryDto
|
|
50
|
+
*/
|
|
51
|
+
categoryLabel: string;
|
|
52
|
+
/**
|
|
53
|
+
* Publication date (YYYY-MM-DD).
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof NewsStoryDto
|
|
56
|
+
*/
|
|
57
|
+
date: string;
|
|
58
|
+
/**
|
|
59
|
+
* Intro paragraph of the post.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof NewsStoryDto
|
|
62
|
+
*/
|
|
63
|
+
intro: string;
|
|
64
|
+
/**
|
|
65
|
+
* Hero image on the image CDN, without crop parameters.
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof NewsStoryDto
|
|
68
|
+
*/
|
|
69
|
+
heroImageUrl: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* Alt text of the hero image.
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof NewsStoryDto
|
|
74
|
+
*/
|
|
75
|
+
heroImageAlt: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the NewsStoryDto interface.
|
|
80
|
+
*/
|
|
81
|
+
export function instanceOfNewsStoryDto(value: object): value is NewsStoryDto {
|
|
82
|
+
if (!('uuid' in value) || value['uuid'] === undefined) return false;
|
|
83
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
84
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
85
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
86
|
+
if (!('categoryLabel' in value) || value['categoryLabel'] === undefined) return false;
|
|
87
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
88
|
+
if (!('intro' in value) || value['intro'] === undefined) return false;
|
|
89
|
+
if (!('heroImageUrl' in value) || value['heroImageUrl'] === undefined) return false;
|
|
90
|
+
if (!('heroImageAlt' in value) || value['heroImageAlt'] === undefined) return false;
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function NewsStoryDtoFromJSON(json: any): NewsStoryDto {
|
|
95
|
+
return NewsStoryDtoFromJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function NewsStoryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewsStoryDto {
|
|
99
|
+
if (json == null) {
|
|
100
|
+
return json;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'uuid': json['uuid'],
|
|
105
|
+
'title': json['title'],
|
|
106
|
+
'url': json['url'],
|
|
107
|
+
'category': json['category'],
|
|
108
|
+
'categoryLabel': json['categoryLabel'],
|
|
109
|
+
'date': json['date'],
|
|
110
|
+
'intro': json['intro'],
|
|
111
|
+
'heroImageUrl': json['heroImageUrl'],
|
|
112
|
+
'heroImageAlt': json['heroImageAlt'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function NewsStoryDtoToJSON(json: any): NewsStoryDto {
|
|
117
|
+
return NewsStoryDtoToJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function NewsStoryDtoToJSONTyped(value?: NewsStoryDto | null, ignoreDiscriminator: boolean = false): any {
|
|
121
|
+
if (value == null) {
|
|
122
|
+
return value;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
|
|
127
|
+
'uuid': value['uuid'],
|
|
128
|
+
'title': value['title'],
|
|
129
|
+
'url': value['url'],
|
|
130
|
+
'category': value['category'],
|
|
131
|
+
'categoryLabel': value['categoryLabel'],
|
|
132
|
+
'date': value['date'],
|
|
133
|
+
'intro': value['intro'],
|
|
134
|
+
'heroImageUrl': value['heroImageUrl'],
|
|
135
|
+
'heroImageAlt': value['heroImageAlt'],
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|