@randock/nameshift-api-client 0.0.531 → 0.0.533
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 +3 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +2 -2
- package/dist/apis/AdminApi.js +2 -2
- package/dist/apis/UsersApi.d.ts +34 -1
- package/dist/apis/UsersApi.js +185 -0
- package/dist/models/AccountSettingsDto.d.ts +14 -0
- package/dist/models/AccountSettingsDto.js +12 -1
- package/dist/models/AccountSettingsInput.d.ts +14 -0
- package/dist/models/AccountSettingsInput.js +10 -1
- package/dist/models/AdminUserNewsletterInput.d.ts +3 -1
- package/dist/models/AdminUserNewsletterInput.js +3 -1
- package/dist/models/LeadDto.d.ts +6 -0
- package/dist/models/LeadDto.js +4 -0
- package/dist/models/ListLeadsResultItem.d.ts +6 -0
- package/dist/models/ListLeadsResultItem.js +4 -0
- package/dist/models/ManualLeadDetails.d.ts +6 -0
- package/dist/models/ManualLeadDetails.js +4 -0
- package/dist/models/NewsletterSubscriptionState.d.ts +28 -0
- package/dist/models/NewsletterSubscriptionState.js +54 -0
- package/dist/models/SellerLeadDetails.d.ts +6 -0
- package/dist/models/SellerLeadDetails.js +4 -0
- package/dist/models/UpdateUserNewsletterSubscriptionInput.d.ts +32 -0
- package/dist/models/UpdateUserNewsletterSubscriptionInput.js +51 -0
- package/dist/models/UserNewsletterSubscriptionDto.d.ts +51 -0
- package/dist/models/UserNewsletterSubscriptionDto.js +64 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +2 -2
- package/src/apis/UsersApi.ts +140 -0
- package/src/models/AccountSettingsDto.ts +18 -0
- package/src/models/AccountSettingsInput.ts +17 -0
- package/src/models/AdminUserNewsletterInput.ts +4 -2
- package/src/models/LeadDto.ts +9 -0
- package/src/models/ListLeadsResultItem.ts +9 -0
- package/src/models/ManualLeadDetails.ts +9 -0
- package/src/models/NewsletterSubscriptionState.ts +56 -0
- package/src/models/SellerLeadDetails.ts +9 -0
- package/src/models/UpdateUserNewsletterSubscriptionInput.ts +66 -0
- package/src/models/UserNewsletterSubscriptionDto.ts +103 -0
- package/src/models/index.ts +3 -0
|
@@ -173,6 +173,12 @@ export interface AccountSettingsDto {
|
|
|
173
173
|
* @memberof AccountSettingsDto
|
|
174
174
|
*/
|
|
175
175
|
leadVerification: LeadVerificationSettingsDto;
|
|
176
|
+
/**
|
|
177
|
+
* When the buyer of an information request (a lead opened to ask for the price) may write and make offers: immediately, or only after the seller has written or made an offer.
|
|
178
|
+
* @type {string}
|
|
179
|
+
* @memberof AccountSettingsDto
|
|
180
|
+
*/
|
|
181
|
+
informationRequestCommunication: AccountSettingsDtoInformationRequestCommunicationEnum;
|
|
176
182
|
}
|
|
177
183
|
|
|
178
184
|
|
|
@@ -189,6 +195,15 @@ export const AccountSettingsDtoMarketplaceEnum = {
|
|
|
189
195
|
} as const;
|
|
190
196
|
export type AccountSettingsDtoMarketplaceEnum = typeof AccountSettingsDtoMarketplaceEnum[keyof typeof AccountSettingsDtoMarketplaceEnum];
|
|
191
197
|
|
|
198
|
+
/**
|
|
199
|
+
* @export
|
|
200
|
+
*/
|
|
201
|
+
export const AccountSettingsDtoInformationRequestCommunicationEnum = {
|
|
202
|
+
IMMEDIATELY: 'immediately',
|
|
203
|
+
AFTER_SELLER_FIRST_MESSAGE: 'after_seller_first_message'
|
|
204
|
+
} as const;
|
|
205
|
+
export type AccountSettingsDtoInformationRequestCommunicationEnum = typeof AccountSettingsDtoInformationRequestCommunicationEnum[keyof typeof AccountSettingsDtoInformationRequestCommunicationEnum];
|
|
206
|
+
|
|
192
207
|
|
|
193
208
|
/**
|
|
194
209
|
* Check if a given object implements the AccountSettingsDto interface.
|
|
@@ -209,6 +224,7 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
|
|
|
209
224
|
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
|
|
210
225
|
if (!('marketplace' in value) || value['marketplace'] === undefined) return false;
|
|
211
226
|
if (!('leadVerification' in value) || value['leadVerification'] === undefined) return false;
|
|
227
|
+
if (!('informationRequestCommunication' in value) || value['informationRequestCommunication'] === undefined) return false;
|
|
212
228
|
return true;
|
|
213
229
|
}
|
|
214
230
|
|
|
@@ -237,6 +253,7 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
237
253
|
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
|
|
238
254
|
'marketplace': json['marketplace'],
|
|
239
255
|
'leadVerification': LeadVerificationSettingsDtoFromJSON(json['leadVerification']),
|
|
256
|
+
'informationRequestCommunication': json['informationRequestCommunication'],
|
|
240
257
|
};
|
|
241
258
|
}
|
|
242
259
|
|
|
@@ -266,6 +283,7 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
|
|
|
266
283
|
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
|
|
267
284
|
'marketplace': value['marketplace'],
|
|
268
285
|
'leadVerification': LeadVerificationSettingsDtoToJSON(value['leadVerification']),
|
|
286
|
+
'informationRequestCommunication': value['informationRequestCommunication'],
|
|
269
287
|
};
|
|
270
288
|
}
|
|
271
289
|
|
|
@@ -172,6 +172,12 @@ export interface AccountSettingsInput {
|
|
|
172
172
|
* @memberof AccountSettingsInput
|
|
173
173
|
*/
|
|
174
174
|
leadVerification?: LeadVerificationInput;
|
|
175
|
+
/**
|
|
176
|
+
* When the buyer of an information request (a lead opened to ask for the price) may write and make offers: immediately, or only after the seller has written or made an offer. Applies to information requests opened after the change.
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof AccountSettingsInput
|
|
179
|
+
*/
|
|
180
|
+
informationRequestCommunication?: AccountSettingsInputInformationRequestCommunicationEnum;
|
|
175
181
|
}
|
|
176
182
|
|
|
177
183
|
|
|
@@ -188,6 +194,15 @@ export const AccountSettingsInputMarketplaceEnum = {
|
|
|
188
194
|
} as const;
|
|
189
195
|
export type AccountSettingsInputMarketplaceEnum = typeof AccountSettingsInputMarketplaceEnum[keyof typeof AccountSettingsInputMarketplaceEnum];
|
|
190
196
|
|
|
197
|
+
/**
|
|
198
|
+
* @export
|
|
199
|
+
*/
|
|
200
|
+
export const AccountSettingsInputInformationRequestCommunicationEnum = {
|
|
201
|
+
IMMEDIATELY: 'immediately',
|
|
202
|
+
AFTER_SELLER_FIRST_MESSAGE: 'after_seller_first_message'
|
|
203
|
+
} as const;
|
|
204
|
+
export type AccountSettingsInputInformationRequestCommunicationEnum = typeof AccountSettingsInputInformationRequestCommunicationEnum[keyof typeof AccountSettingsInputInformationRequestCommunicationEnum];
|
|
205
|
+
|
|
191
206
|
|
|
192
207
|
/**
|
|
193
208
|
* Check if a given object implements the AccountSettingsInput interface.
|
|
@@ -222,6 +237,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
222
237
|
'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['domainLockConfiguration']),
|
|
223
238
|
'leadOfferExpirationConfiguration': json['leadOfferExpirationConfiguration'] == null ? undefined : LockConfigurationInputFromJSON(json['leadOfferExpirationConfiguration']),
|
|
224
239
|
'leadVerification': json['leadVerification'] == null ? undefined : LeadVerificationInputFromJSON(json['leadVerification']),
|
|
240
|
+
'informationRequestCommunication': json['informationRequestCommunication'] == null ? undefined : json['informationRequestCommunication'],
|
|
225
241
|
};
|
|
226
242
|
}
|
|
227
243
|
|
|
@@ -252,6 +268,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
|
|
|
252
268
|
'domainLockConfiguration': LockConfigurationInputToJSON(value['domainLockConfiguration']),
|
|
253
269
|
'leadOfferExpirationConfiguration': LockConfigurationInputToJSON(value['leadOfferExpirationConfiguration']),
|
|
254
270
|
'leadVerification': LeadVerificationInputToJSON(value['leadVerification']),
|
|
271
|
+
'informationRequestCommunication': value['informationRequestCommunication'],
|
|
255
272
|
};
|
|
256
273
|
}
|
|
257
274
|
|
|
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface AdminUserNewsletterInput {
|
|
22
22
|
/**
|
|
23
|
-
* Seller newsletter consent of the user. An admin change is recorded as such; it never overrides an unsubscribe the user made in Mailchimp, which the audience sync keeps.
|
|
23
|
+
* Seller newsletter consent of the user: subscribed, unsubscribed or never_asked; pending and bounced follow from Mailchimp and are refused. An admin change is recorded as such; it never overrides an unsubscribe the user made in Mailchimp, which the audience sync keeps.
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AdminUserNewsletterInput
|
|
26
26
|
*/
|
|
@@ -34,7 +34,9 @@ export interface AdminUserNewsletterInput {
|
|
|
34
34
|
export const AdminUserNewsletterInputNewsletterStatusEnum = {
|
|
35
35
|
SUBSCRIBED: 'subscribed',
|
|
36
36
|
UNSUBSCRIBED: 'unsubscribed',
|
|
37
|
-
NEVER_ASKED: 'never_asked'
|
|
37
|
+
NEVER_ASKED: 'never_asked',
|
|
38
|
+
PENDING: 'pending',
|
|
39
|
+
BOUNCED: 'bounced'
|
|
38
40
|
} as const;
|
|
39
41
|
export type AdminUserNewsletterInputNewsletterStatusEnum = typeof AdminUserNewsletterInputNewsletterStatusEnum[keyof typeof AdminUserNewsletterInputNewsletterStatusEnum];
|
|
40
42
|
|
package/src/models/LeadDto.ts
CHANGED
|
@@ -200,6 +200,12 @@ export interface LeadDto {
|
|
|
200
200
|
* @memberof LeadDto
|
|
201
201
|
*/
|
|
202
202
|
acceptedAt: Date | null;
|
|
203
|
+
/**
|
|
204
|
+
* Whether the buyer has to wait for the seller to write first. Only an information request can wait, when the seller chose to reply first; the buyer can neither write nor make an offer until the seller has written or made an offer.
|
|
205
|
+
* @type {boolean}
|
|
206
|
+
* @memberof LeadDto
|
|
207
|
+
*/
|
|
208
|
+
awaitingSellerFirstMessage: boolean;
|
|
203
209
|
}
|
|
204
210
|
|
|
205
211
|
|
|
@@ -277,6 +283,7 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
|
|
|
277
283
|
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
|
|
278
284
|
if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
|
|
279
285
|
if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
|
|
286
|
+
if (!('awaitingSellerFirstMessage' in value) || value['awaitingSellerFirstMessage'] === undefined) return false;
|
|
280
287
|
return true;
|
|
281
288
|
}
|
|
282
289
|
|
|
@@ -313,6 +320,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
|
|
|
313
320
|
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
|
|
314
321
|
'canBeClosedBySeller': json['canBeClosedBySeller'],
|
|
315
322
|
'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
|
|
323
|
+
'awaitingSellerFirstMessage': json['awaitingSellerFirstMessage'],
|
|
316
324
|
};
|
|
317
325
|
}
|
|
318
326
|
|
|
@@ -350,6 +358,7 @@ export function LeadDtoToJSONTyped(value?: LeadDto | null, ignoreDiscriminator:
|
|
|
350
358
|
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
|
|
351
359
|
'canBeClosedBySeller': value['canBeClosedBySeller'],
|
|
352
360
|
'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
|
|
361
|
+
'awaitingSellerFirstMessage': value['awaitingSellerFirstMessage'],
|
|
353
362
|
};
|
|
354
363
|
}
|
|
355
364
|
|
|
@@ -207,6 +207,12 @@ export interface ListLeadsResultItem {
|
|
|
207
207
|
* @memberof ListLeadsResultItem
|
|
208
208
|
*/
|
|
209
209
|
acceptedAt: Date | null;
|
|
210
|
+
/**
|
|
211
|
+
* Whether the buyer has to wait for the seller to write first. Only an information request can wait, when the seller chose to reply first; the buyer can neither write nor make an offer until the seller has written or made an offer.
|
|
212
|
+
* @type {boolean}
|
|
213
|
+
* @memberof ListLeadsResultItem
|
|
214
|
+
*/
|
|
215
|
+
awaitingSellerFirstMessage: boolean;
|
|
210
216
|
/**
|
|
211
217
|
* Buyer initials derived from the buyer name.
|
|
212
218
|
* @type {string}
|
|
@@ -356,6 +362,7 @@ export function instanceOfListLeadsResultItem(value: object): value is ListLeads
|
|
|
356
362
|
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
|
|
357
363
|
if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
|
|
358
364
|
if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
|
|
365
|
+
if (!('awaitingSellerFirstMessage' in value) || value['awaitingSellerFirstMessage'] === undefined) return false;
|
|
359
366
|
if (!('buyerInitials' in value) || value['buyerInitials'] === undefined) return false;
|
|
360
367
|
if (!('buyerIpCountryCode' in value) || value['buyerIpCountryCode'] === undefined) return false;
|
|
361
368
|
if (!('lastMessageFrom' in value) || value['lastMessageFrom'] === undefined) return false;
|
|
@@ -400,6 +407,7 @@ export function ListLeadsResultItemFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
400
407
|
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
|
|
401
408
|
'canBeClosedBySeller': json['canBeClosedBySeller'],
|
|
402
409
|
'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
|
|
410
|
+
'awaitingSellerFirstMessage': json['awaitingSellerFirstMessage'],
|
|
403
411
|
'buyerInitials': json['buyerInitials'],
|
|
404
412
|
'buyerIpCountryCode': json['buyerIpCountryCode'],
|
|
405
413
|
'lastMessageFrom': json['lastMessageFrom'],
|
|
@@ -445,6 +453,7 @@ export function ListLeadsResultItemToJSONTyped(value?: ListLeadsResultItem | nul
|
|
|
445
453
|
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
|
|
446
454
|
'canBeClosedBySeller': value['canBeClosedBySeller'],
|
|
447
455
|
'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
|
|
456
|
+
'awaitingSellerFirstMessage': value['awaitingSellerFirstMessage'],
|
|
448
457
|
'buyerInitials': value['buyerInitials'],
|
|
449
458
|
'buyerIpCountryCode': value['buyerIpCountryCode'],
|
|
450
459
|
'lastMessageFrom': value['lastMessageFrom'],
|
|
@@ -214,6 +214,12 @@ export interface ManualLeadDetails {
|
|
|
214
214
|
* @memberof ManualLeadDetails
|
|
215
215
|
*/
|
|
216
216
|
acceptedAt: Date | null;
|
|
217
|
+
/**
|
|
218
|
+
* Whether the buyer has to wait for the seller to write first. Only an information request can wait, when the seller chose to reply first; the buyer can neither write nor make an offer until the seller has written or made an offer.
|
|
219
|
+
* @type {boolean}
|
|
220
|
+
* @memberof ManualLeadDetails
|
|
221
|
+
*/
|
|
222
|
+
awaitingSellerFirstMessage: boolean;
|
|
217
223
|
/**
|
|
218
224
|
* Buyer details for the manually created lead.
|
|
219
225
|
* @type {ManualLeadBuyerDto}
|
|
@@ -303,6 +309,7 @@ export function instanceOfManualLeadDetails(value: object): value is ManualLeadD
|
|
|
303
309
|
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
|
|
304
310
|
if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
|
|
305
311
|
if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
|
|
312
|
+
if (!('awaitingSellerFirstMessage' in value) || value['awaitingSellerFirstMessage'] === undefined) return false;
|
|
306
313
|
if (!('buyer' in value) || value['buyer'] === undefined) return false;
|
|
307
314
|
if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined) return false;
|
|
308
315
|
return true;
|
|
@@ -341,6 +348,7 @@ export function ManualLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
341
348
|
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
|
|
342
349
|
'canBeClosedBySeller': json['canBeClosedBySeller'],
|
|
343
350
|
'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
|
|
351
|
+
'awaitingSellerFirstMessage': json['awaitingSellerFirstMessage'],
|
|
344
352
|
'buyer': ManualLeadBuyerDtoFromJSON(json['buyer']),
|
|
345
353
|
'domainLockConfiguration': DomainLockConfigurationDtoFromJSON(json['domainLockConfiguration']),
|
|
346
354
|
};
|
|
@@ -380,6 +388,7 @@ export function ManualLeadDetailsToJSONTyped(value?: ManualLeadDetails | null, i
|
|
|
380
388
|
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
|
|
381
389
|
'canBeClosedBySeller': value['canBeClosedBySeller'],
|
|
382
390
|
'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
|
|
391
|
+
'awaitingSellerFirstMessage': value['awaitingSellerFirstMessage'],
|
|
383
392
|
'buyer': ManualLeadBuyerDtoToJSON(value['buyer']),
|
|
384
393
|
'domainLockConfiguration': DomainLockConfigurationDtoToJSON(value['domainLockConfiguration']),
|
|
385
394
|
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* subscribed: getting the newsletter (the switch is on). switched_off: switched off by the user, by "Disable all notifications" or by an admin; switching on brings them back right away. unsubscribed_by_email: unsubscribed with the link in a newsletter; switching on may send a confirmation email. pending_confirmation: a confirmation email was sent; back once the user opens its link. bounced: mail to the email bounced; a new email address is needed.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const NewsletterSubscriptionState = {
|
|
21
|
+
SUBSCRIBED: 'subscribed',
|
|
22
|
+
SWITCHED_OFF: 'switched_off',
|
|
23
|
+
UNSUBSCRIBED_BY_EMAIL: 'unsubscribed_by_email',
|
|
24
|
+
PENDING_CONFIRMATION: 'pending_confirmation',
|
|
25
|
+
BOUNCED: 'bounced'
|
|
26
|
+
} as const;
|
|
27
|
+
export type NewsletterSubscriptionState = typeof NewsletterSubscriptionState[keyof typeof NewsletterSubscriptionState];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export function instanceOfNewsletterSubscriptionState(value: any): boolean {
|
|
31
|
+
for (const key in NewsletterSubscriptionState) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(NewsletterSubscriptionState, key)) {
|
|
33
|
+
if (NewsletterSubscriptionState[key as keyof typeof NewsletterSubscriptionState] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function NewsletterSubscriptionStateFromJSON(json: any): NewsletterSubscriptionState {
|
|
42
|
+
return NewsletterSubscriptionStateFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function NewsletterSubscriptionStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewsletterSubscriptionState {
|
|
46
|
+
return json as NewsletterSubscriptionState;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function NewsletterSubscriptionStateToJSON(value?: NewsletterSubscriptionState | null): any {
|
|
50
|
+
return value as any;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function NewsletterSubscriptionStateToJSONTyped(value: any, ignoreDiscriminator: boolean): NewsletterSubscriptionState {
|
|
54
|
+
return value as NewsletterSubscriptionState;
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -214,6 +214,12 @@ export interface SellerLeadDetails {
|
|
|
214
214
|
* @memberof SellerLeadDetails
|
|
215
215
|
*/
|
|
216
216
|
acceptedAt: Date | null;
|
|
217
|
+
/**
|
|
218
|
+
* Whether the buyer has to wait for the seller to write first. Only an information request can wait, when the seller chose to reply first; the buyer can neither write nor make an offer until the seller has written or made an offer.
|
|
219
|
+
* @type {boolean}
|
|
220
|
+
* @memberof SellerLeadDetails
|
|
221
|
+
*/
|
|
222
|
+
awaitingSellerFirstMessage: boolean;
|
|
217
223
|
/**
|
|
218
224
|
* Buyer details associated with the lead.
|
|
219
225
|
* @type {BuyerDto}
|
|
@@ -309,6 +315,7 @@ export function instanceOfSellerLeadDetails(value: object): value is SellerLeadD
|
|
|
309
315
|
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined) return false;
|
|
310
316
|
if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined) return false;
|
|
311
317
|
if (!('acceptedAt' in value) || value['acceptedAt'] === undefined) return false;
|
|
318
|
+
if (!('awaitingSellerFirstMessage' in value) || value['awaitingSellerFirstMessage'] === undefined) return false;
|
|
312
319
|
if (!('buyer' in value) || value['buyer'] === undefined) return false;
|
|
313
320
|
if (!('isMutedForSeller' in value) || value['isMutedForSeller'] === undefined) return false;
|
|
314
321
|
if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined) return false;
|
|
@@ -348,6 +355,7 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
348
355
|
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoFromJSON(json['leadOfferExpirationConfiguration']),
|
|
349
356
|
'canBeClosedBySeller': json['canBeClosedBySeller'],
|
|
350
357
|
'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
|
|
358
|
+
'awaitingSellerFirstMessage': json['awaitingSellerFirstMessage'],
|
|
351
359
|
'buyer': BuyerDtoFromJSON(json['buyer']),
|
|
352
360
|
'isMutedForSeller': json['isMutedForSeller'],
|
|
353
361
|
'domainLockConfiguration': DomainLockConfigurationDtoFromJSON(json['domainLockConfiguration']),
|
|
@@ -388,6 +396,7 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
|
|
|
388
396
|
'leadOfferExpirationConfiguration': LeadOfferExpirationConfigurationDtoToJSON(value['leadOfferExpirationConfiguration']),
|
|
389
397
|
'canBeClosedBySeller': value['canBeClosedBySeller'],
|
|
390
398
|
'acceptedAt': (value['acceptedAt'] == null ? null : (value['acceptedAt'] as any).toISOString()),
|
|
399
|
+
'awaitingSellerFirstMessage': value['awaitingSellerFirstMessage'],
|
|
391
400
|
'buyer': BuyerDtoToJSON(value['buyer']),
|
|
392
401
|
'isMutedForSeller': value['isMutedForSeller'],
|
|
393
402
|
'domainLockConfiguration': DomainLockConfigurationDtoToJSON(value['domainLockConfiguration']),
|
|
@@ -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 UpdateUserNewsletterSubscriptionInput
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateUserNewsletterSubscriptionInput {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the user wants the seller newsletter: the newsletter switch.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UpdateUserNewsletterSubscriptionInput
|
|
26
|
+
*/
|
|
27
|
+
subscribed: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdateUserNewsletterSubscriptionInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdateUserNewsletterSubscriptionInput(value: object): value is UpdateUserNewsletterSubscriptionInput {
|
|
34
|
+
if (!('subscribed' in value) || value['subscribed'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function UpdateUserNewsletterSubscriptionInputFromJSON(json: any): UpdateUserNewsletterSubscriptionInput {
|
|
39
|
+
return UpdateUserNewsletterSubscriptionInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UpdateUserNewsletterSubscriptionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserNewsletterSubscriptionInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'subscribed': json['subscribed'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdateUserNewsletterSubscriptionInputToJSON(json: any): UpdateUserNewsletterSubscriptionInput {
|
|
53
|
+
return UpdateUserNewsletterSubscriptionInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UpdateUserNewsletterSubscriptionInputToJSONTyped(value?: UpdateUserNewsletterSubscriptionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'subscribed': value['subscribed'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
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 { NewsletterSubscriptionState } from './NewsletterSubscriptionState';
|
|
17
|
+
import {
|
|
18
|
+
NewsletterSubscriptionStateFromJSON,
|
|
19
|
+
NewsletterSubscriptionStateFromJSONTyped,
|
|
20
|
+
NewsletterSubscriptionStateToJSON,
|
|
21
|
+
NewsletterSubscriptionStateToJSONTyped,
|
|
22
|
+
} from './NewsletterSubscriptionState';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UserNewsletterSubscriptionDto
|
|
28
|
+
*/
|
|
29
|
+
export interface UserNewsletterSubscriptionDto {
|
|
30
|
+
/**
|
|
31
|
+
* subscribed: getting the newsletter (the switch is on). switched_off: switched off by the user, by "Disable all notifications" or by an admin; switching on brings them back right away. unsubscribed_by_email: unsubscribed with the link in a newsletter; switching on may send a confirmation email. pending_confirmation: a confirmation email was sent; back once the user opens its link. bounced: mail to the email bounced; a new email address is needed.
|
|
32
|
+
* @type {NewsletterSubscriptionState}
|
|
33
|
+
* @memberof UserNewsletterSubscriptionDto
|
|
34
|
+
*/
|
|
35
|
+
state: NewsletterSubscriptionState;
|
|
36
|
+
/**
|
|
37
|
+
* The email address the newsletter goes to.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UserNewsletterSubscriptionDto
|
|
40
|
+
*/
|
|
41
|
+
email: string;
|
|
42
|
+
/**
|
|
43
|
+
* When the confirmation email was last sent; null unless pending_confirmation.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof UserNewsletterSubscriptionDto
|
|
46
|
+
*/
|
|
47
|
+
confirmationRequestedAt: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
* From when the confirmation email can be sent again; null unless pending_confirmation.
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof UserNewsletterSubscriptionDto
|
|
52
|
+
*/
|
|
53
|
+
confirmationCanBeResentAt: Date | null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the UserNewsletterSubscriptionDto interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfUserNewsletterSubscriptionDto(value: object): value is UserNewsletterSubscriptionDto {
|
|
62
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
63
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
64
|
+
if (!('confirmationRequestedAt' in value) || value['confirmationRequestedAt'] === undefined) return false;
|
|
65
|
+
if (!('confirmationCanBeResentAt' in value) || value['confirmationCanBeResentAt'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function UserNewsletterSubscriptionDtoFromJSON(json: any): UserNewsletterSubscriptionDto {
|
|
70
|
+
return UserNewsletterSubscriptionDtoFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function UserNewsletterSubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserNewsletterSubscriptionDto {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'state': NewsletterSubscriptionStateFromJSON(json['state']),
|
|
80
|
+
'email': json['email'],
|
|
81
|
+
'confirmationRequestedAt': (json['confirmationRequestedAt'] == null ? null : new Date(json['confirmationRequestedAt'])),
|
|
82
|
+
'confirmationCanBeResentAt': (json['confirmationCanBeResentAt'] == null ? null : new Date(json['confirmationCanBeResentAt'])),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function UserNewsletterSubscriptionDtoToJSON(json: any): UserNewsletterSubscriptionDto {
|
|
87
|
+
return UserNewsletterSubscriptionDtoToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function UserNewsletterSubscriptionDtoToJSONTyped(value?: UserNewsletterSubscriptionDto | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'state': NewsletterSubscriptionStateToJSON(value['state']),
|
|
98
|
+
'email': value['email'],
|
|
99
|
+
'confirmationRequestedAt': (value['confirmationRequestedAt'] == null ? null : (value['confirmationRequestedAt'] as any).toISOString()),
|
|
100
|
+
'confirmationCanBeResentAt': (value['confirmationCanBeResentAt'] == null ? null : (value['confirmationCanBeResentAt'] as any).toISOString()),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -440,6 +440,7 @@ export * from './NewsletterEventInput';
|
|
|
440
440
|
export * from './NewsletterPreviewDto';
|
|
441
441
|
export * from './NewsletterSecondaryStoryDto';
|
|
442
442
|
export * from './NewsletterSecondaryStoryInput';
|
|
443
|
+
export * from './NewsletterSubscriptionState';
|
|
443
444
|
export * from './NotificationsUnsubscribeResultDto';
|
|
444
445
|
export * from './ObjectId';
|
|
445
446
|
export * from './OrderCompanyInfoDto';
|
|
@@ -634,11 +635,13 @@ export * from './UpdateSubscriptionDomainRecordInput';
|
|
|
634
635
|
export * from './UpdateSubscriptionInput';
|
|
635
636
|
export * from './UpdateTaskMuteStatusForBuyerInput';
|
|
636
637
|
export * from './UpdateTaskMuteStatusInput';
|
|
638
|
+
export * from './UpdateUserNewsletterSubscriptionInput';
|
|
637
639
|
export * from './UpdateUserNotificationSettingsInput';
|
|
638
640
|
export * from './UserLoginAttemptDto';
|
|
639
641
|
export * from './UserLoginAttemptMethod';
|
|
640
642
|
export * from './UserLoginAttemptResult';
|
|
641
643
|
export * from './UserLoginLocationConfirmationDetailsDto';
|
|
644
|
+
export * from './UserNewsletterSubscriptionDto';
|
|
642
645
|
export * from './UserNotificationAttachmentDto';
|
|
643
646
|
export * from './UserNotificationDto';
|
|
644
647
|
export * from './UserNotificationListItemDto';
|