@randock/nameshift-api-client 0.0.505 → 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.
Files changed (36) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +113 -1
  4. package/dist/apis/AdminApi.js +500 -0
  5. package/dist/models/AdminUserNewsletterInput.d.ts +41 -0
  6. package/dist/models/AdminUserNewsletterInput.js +60 -0
  7. package/dist/models/CreateNewsletterInput.d.ts +171 -0
  8. package/dist/models/CreateNewsletterInput.js +98 -0
  9. package/dist/models/NewsStoryDto.d.ts +80 -0
  10. package/dist/models/NewsStoryDto.js +83 -0
  11. package/dist/models/NewsletterDto.d.ts +251 -0
  12. package/dist/models/NewsletterDto.js +200 -0
  13. package/dist/models/NewsletterPreviewDto.d.ts +44 -0
  14. package/dist/models/NewsletterPreviewDto.js +59 -0
  15. package/dist/models/NewsletterSecondaryStoryDto.d.ts +44 -0
  16. package/dist/models/NewsletterSecondaryStoryDto.js +59 -0
  17. package/dist/models/NewsletterSecondaryStoryInput.d.ts +44 -0
  18. package/dist/models/NewsletterSecondaryStoryInput.js +59 -0
  19. package/dist/models/SendNewsletterPreviewInput.d.ts +32 -0
  20. package/dist/models/SendNewsletterPreviewInput.js +51 -0
  21. package/dist/models/UpdateNewsletterInput.d.ts +171 -0
  22. package/dist/models/UpdateNewsletterInput.js +96 -0
  23. package/dist/models/index.d.ts +9 -0
  24. package/dist/models/index.js +9 -0
  25. package/package.json +1 -1
  26. package/src/apis/AdminApi.ts +454 -0
  27. package/src/models/AdminUserNewsletterInput.ts +78 -0
  28. package/src/models/CreateNewsletterInput.ts +258 -0
  29. package/src/models/NewsStoryDto.ts +138 -0
  30. package/src/models/NewsletterDto.ts +400 -0
  31. package/src/models/NewsletterPreviewDto.ts +84 -0
  32. package/src/models/NewsletterSecondaryStoryDto.ts +84 -0
  33. package/src/models/NewsletterSecondaryStoryInput.ts +84 -0
  34. package/src/models/SendNewsletterPreviewInput.ts +66 -0
  35. package/src/models/UpdateNewsletterInput.ts +257 -0
  36. package/src/models/index.ts +9 -0
@@ -0,0 +1,66 @@
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 SendNewsletterPreviewInput
20
+ */
21
+ export interface SendNewsletterPreviewInput {
22
+ /**
23
+ * Where the preview goes.
24
+ * @type {string}
25
+ * @memberof SendNewsletterPreviewInput
26
+ */
27
+ email: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SendNewsletterPreviewInput interface.
32
+ */
33
+ export function instanceOfSendNewsletterPreviewInput(value: object): value is SendNewsletterPreviewInput {
34
+ if (!('email' in value) || value['email'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function SendNewsletterPreviewInputFromJSON(json: any): SendNewsletterPreviewInput {
39
+ return SendNewsletterPreviewInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function SendNewsletterPreviewInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendNewsletterPreviewInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'email': json['email'],
49
+ };
50
+ }
51
+
52
+ export function SendNewsletterPreviewInputToJSON(json: any): SendNewsletterPreviewInput {
53
+ return SendNewsletterPreviewInputToJSONTyped(json, false);
54
+ }
55
+
56
+ export function SendNewsletterPreviewInputToJSONTyped(value?: SendNewsletterPreviewInput | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'email': value['email'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,257 @@
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 UpdateNewsletterInput
28
+ */
29
+ export interface UpdateNewsletterInput {
30
+ /**
31
+ * Internal title, also the Mailchimp campaign name.
32
+ * @type {string}
33
+ * @memberof UpdateNewsletterInput
34
+ */
35
+ title?: string;
36
+ /**
37
+ * Subject line.
38
+ * @type {string}
39
+ * @memberof UpdateNewsletterInput
40
+ */
41
+ subject?: string;
42
+ /**
43
+ * Preheader, 40 to 90 characters.
44
+ * @type {string}
45
+ * @memberof UpdateNewsletterInput
46
+ */
47
+ preheader?: string;
48
+ /**
49
+ * Issue label in the header; may carry HTML entities.
50
+ * @type {string}
51
+ * @memberof UpdateNewsletterInput
52
+ */
53
+ issueLabel?: string;
54
+ /**
55
+ * utm_campaign on every link, e.g. nl-2026-10.
56
+ * @type {string}
57
+ * @memberof UpdateNewsletterInput
58
+ */
59
+ campaignSlug?: string;
60
+ /**
61
+ * Lead story UUID.
62
+ * @type {string}
63
+ * @memberof UpdateNewsletterInput
64
+ */
65
+ leadStoryUuid?: string | null;
66
+ /**
67
+ * Lead teaser, 30 to 60 words.
68
+ * @type {string}
69
+ * @memberof UpdateNewsletterInput
70
+ */
71
+ leadTeaser?: string;
72
+ /**
73
+ * Lead button text, 2 to 5 words.
74
+ * @type {string}
75
+ * @memberof UpdateNewsletterInput
76
+ */
77
+ leadCta?: string;
78
+ /**
79
+ * Secondary stories, in order.
80
+ * @type {Array<NewsletterSecondaryStoryInput>}
81
+ * @memberof UpdateNewsletterInput
82
+ */
83
+ secondaryStories?: Array<NewsletterSecondaryStoryInput>;
84
+ /**
85
+ * Feature story UUID.
86
+ * @type {string}
87
+ * @memberof UpdateNewsletterInput
88
+ */
89
+ featureStoryUuid?: string | null;
90
+ /**
91
+ * Feature text, 1 to 2 sentences.
92
+ * @type {string}
93
+ * @memberof UpdateNewsletterInput
94
+ */
95
+ featureText?: string;
96
+ /**
97
+ * Feature link text.
98
+ * @type {string}
99
+ * @memberof UpdateNewsletterInput
100
+ */
101
+ featureLink?: string;
102
+ /**
103
+ * Event lead line.
104
+ * @type {string}
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}
123
+ * @memberof UpdateNewsletterInput
124
+ */
125
+ eventLink?: string | null;
126
+ /**
127
+ * Whether the recent-sales module is in the issue.
128
+ * @type {boolean}
129
+ * @memberof UpdateNewsletterInput
130
+ */
131
+ salesEnabled?: boolean;
132
+ /**
133
+ * First day of the sales period (YYYY-MM-DD).
134
+ * @type {string}
135
+ * @memberof UpdateNewsletterInput
136
+ */
137
+ salesFrom?: string | null;
138
+ /**
139
+ * Last day of the sales period (YYYY-MM-DD).
140
+ * @type {string}
141
+ * @memberof UpdateNewsletterInput
142
+ */
143
+ salesTo?: string | null;
144
+ /**
145
+ * Closing band line.
146
+ * @type {string}
147
+ * @memberof UpdateNewsletterInput
148
+ */
149
+ closingLine?: string;
150
+ /**
151
+ * Closing button text.
152
+ * @type {string}
153
+ * @memberof UpdateNewsletterInput
154
+ */
155
+ closingCta?: string;
156
+ /**
157
+ * Closing button URL.
158
+ * @type {string}
159
+ * @memberof UpdateNewsletterInput
160
+ */
161
+ closingUrl?: string;
162
+ /**
163
+ * Closing note under the button.
164
+ * @type {string}
165
+ * @memberof UpdateNewsletterInput
166
+ */
167
+ closingNote?: string;
168
+ /**
169
+ * Why the reader receives the email.
170
+ * @type {string}
171
+ * @memberof UpdateNewsletterInput
172
+ */
173
+ footerReason?: string;
174
+ }
175
+
176
+ /**
177
+ * Check if a given object implements the UpdateNewsletterInput interface.
178
+ */
179
+ export function instanceOfUpdateNewsletterInput(value: object): value is UpdateNewsletterInput {
180
+ return true;
181
+ }
182
+
183
+ export function UpdateNewsletterInputFromJSON(json: any): UpdateNewsletterInput {
184
+ return UpdateNewsletterInputFromJSONTyped(json, false);
185
+ }
186
+
187
+ export function UpdateNewsletterInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNewsletterInput {
188
+ if (json == null) {
189
+ return json;
190
+ }
191
+ return {
192
+
193
+ 'title': json['title'] == null ? undefined : json['title'],
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
+ };
218
+ }
219
+
220
+ export function UpdateNewsletterInputToJSON(json: any): UpdateNewsletterInput {
221
+ return UpdateNewsletterInputToJSONTyped(json, false);
222
+ }
223
+
224
+ export function UpdateNewsletterInputToJSONTyped(value?: UpdateNewsletterInput | null, ignoreDiscriminator: boolean = false): any {
225
+ if (value == null) {
226
+ return value;
227
+ }
228
+
229
+ return {
230
+
231
+ 'title': value['title'],
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
+ };
256
+ }
257
+
@@ -73,6 +73,7 @@ export * from './AdminLeadListItemDomainDto';
73
73
  export * from './AdminLeadListItemDto';
74
74
  export * from './AdminListAccountDto';
75
75
  export * from './AdminMarketplaceDto';
76
+ export * from './AdminUserNewsletterInput';
76
77
  export * from './AdminUserSecurityDto';
77
78
  export * from './AdminVerificationDepositDto';
78
79
  export * from './AffiliatesStatsDto';
@@ -202,6 +203,7 @@ export * from './CreateLeadInput';
202
203
  export * from './CreateLeadMessageInput';
203
204
  export * from './CreateManualLeadInput';
204
205
  export * from './CreateManualTransactionInput';
206
+ export * from './CreateNewsletterInput';
205
207
  export * from './CreateOrderInput';
206
208
  export * from './CreateSubscriptionBillingPeriodicityInput';
207
209
  export * from './CreateSubscriptionInput';
@@ -422,6 +424,11 @@ export * from './MoneyDecimalDto';
422
424
  export * from './MoneyDto';
423
425
  export * from './MoneyInput';
424
426
  export * from './MozMetrics';
427
+ export * from './NewsStoryDto';
428
+ export * from './NewsletterDto';
429
+ export * from './NewsletterPreviewDto';
430
+ export * from './NewsletterSecondaryStoryDto';
431
+ export * from './NewsletterSecondaryStoryInput';
425
432
  export * from './NotificationsUnsubscribeResultDto';
426
433
  export * from './ObjectId';
427
434
  export * from './OrderCompanyInfoDto';
@@ -530,6 +537,7 @@ export * from './SellerTotalEarningsByCurrencyStatsItemDto';
530
537
  export * from './SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto';
531
538
  export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInput';
532
539
  export * from './SendAdminLeadAiPriceNegotiatorAgentChatMessageInputAiModel';
540
+ export * from './SendNewsletterPreviewInput';
533
541
  export * from './SeoMetricsDto';
534
542
  export * from './SetAccountMarketplaceInput';
535
543
  export * from './SetDomainTransferConfirmationInput';
@@ -596,6 +604,7 @@ export * from './UpdateLeadMuteStatusForBuyerInput';
596
604
  export * from './UpdateLeadMuteStatusInput';
597
605
  export * from './UpdateLeaseToOwnConfigurationDto';
598
606
  export * from './UpdateMarketplaceInput';
607
+ export * from './UpdateNewsletterInput';
599
608
  export * from './UpdateOrderInput';
600
609
  export * from './UpdateRentConfigurationDto';
601
610
  export * from './UpdateSubscriptionBillingPeriodicityInput';