@randock/nameshift-api-client 0.0.563 → 0.0.565
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 +9 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +63 -1
- package/dist/apis/AdminApi.js +246 -0
- package/dist/apis/LeadsApi.d.ts +28 -1
- package/dist/apis/LeadsApi.js +129 -0
- package/dist/apis/SettingsSearchApi.d.ts +31 -0
- package/dist/apis/SettingsSearchApi.js +135 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AcceptHighestBuyerLeadOfferInput.d.ts +32 -0
- package/dist/models/AcceptHighestBuyerLeadOfferInput.js +51 -0
- package/dist/models/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -0
- package/dist/models/GetSettingsSearchMisses200Response.d.ts +47 -0
- package/dist/models/GetSettingsSearchMisses200Response.js +62 -0
- package/dist/models/LeadOfferSummaryCannotAcceptReason.d.ts +29 -0
- package/dist/models/LeadOfferSummaryCannotAcceptReason.js +55 -0
- package/dist/models/LeadOfferSummaryDto.d.ts +52 -0
- package/dist/models/LeadOfferSummaryDto.js +65 -0
- package/dist/models/LeadOfferSummaryItemDto.d.ts +61 -0
- package/dist/models/LeadOfferSummaryItemDto.js +74 -0
- package/dist/models/RecordSettingsSearchMissInput.d.ts +38 -0
- package/dist/models/RecordSettingsSearchMissInput.js +55 -0
- package/dist/models/SettingsSearchMissCountDto.d.ts +50 -0
- package/dist/models/SettingsSearchMissCountDto.js +63 -0
- package/dist/models/SettingsSearchMissDto.d.ts +56 -0
- package/dist/models/SettingsSearchMissDto.js +67 -0
- package/dist/models/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +239 -0
- package/src/apis/LeadsApi.ts +118 -0
- package/src/apis/SettingsSearchApi.ts +82 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AcceptHighestBuyerLeadOfferInput.ts +66 -0
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/GetSettingsSearchMisses200Response.ts +106 -0
- package/src/models/LeadOfferSummaryCannotAcceptReason.ts +57 -0
- package/src/models/LeadOfferSummaryDto.ts +110 -0
- package/src/models/LeadOfferSummaryItemDto.ts +114 -0
- package/src/models/RecordSettingsSearchMissInput.ts +75 -0
- package/src/models/SettingsSearchMissCountDto.ts +93 -0
- package/src/models/SettingsSearchMissDto.ts +102 -0
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,106 @@
|
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
24
|
+
import {
|
|
25
|
+
PaginateResponseMetaFromJSON,
|
|
26
|
+
PaginateResponseMetaFromJSONTyped,
|
|
27
|
+
PaginateResponseMetaToJSON,
|
|
28
|
+
PaginateResponseMetaToJSONTyped,
|
|
29
|
+
} from './PaginateResponseMeta';
|
|
30
|
+
import type { SettingsSearchMissDto } from './SettingsSearchMissDto';
|
|
31
|
+
import {
|
|
32
|
+
SettingsSearchMissDtoFromJSON,
|
|
33
|
+
SettingsSearchMissDtoFromJSONTyped,
|
|
34
|
+
SettingsSearchMissDtoToJSON,
|
|
35
|
+
SettingsSearchMissDtoToJSONTyped,
|
|
36
|
+
} from './SettingsSearchMissDto';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetSettingsSearchMisses200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface GetSettingsSearchMisses200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<SettingsSearchMissDto>}
|
|
47
|
+
* @memberof GetSettingsSearchMisses200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<SettingsSearchMissDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof GetSettingsSearchMisses200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof GetSettingsSearchMisses200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the GetSettingsSearchMisses200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfGetSettingsSearchMisses200Response(value: object): value is GetSettingsSearchMisses200Response {
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
70
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetSettingsSearchMisses200ResponseFromJSON(json: any): GetSettingsSearchMisses200Response {
|
|
75
|
+
return GetSettingsSearchMisses200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetSettingsSearchMisses200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSettingsSearchMisses200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(SettingsSearchMissDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function GetSettingsSearchMisses200ResponseToJSON(json: any): GetSettingsSearchMisses200Response {
|
|
91
|
+
return GetSettingsSearchMisses200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetSettingsSearchMisses200ResponseToJSONTyped(value?: GetSettingsSearchMisses200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(SettingsSearchMissDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
* Why the highest buyer offer cannot be accepted, if so.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const LeadOfferSummaryCannotAcceptReason = {
|
|
21
|
+
NO_BUYER_OFFER: 'no_buyer_offer',
|
|
22
|
+
LEAD_NOT_NEGOTIABLE: 'lead_not_negotiable',
|
|
23
|
+
MANUAL_LEAD: 'manual_lead',
|
|
24
|
+
DOMAIN_IS_LOCKED: 'domain_is_locked',
|
|
25
|
+
DOMAIN_HAS_AN_AUCTION: 'domain_has_an_auction',
|
|
26
|
+
DOMAIN_NOT_PURCHASABLE: 'domain_not_purchasable'
|
|
27
|
+
} as const;
|
|
28
|
+
export type LeadOfferSummaryCannotAcceptReason = typeof LeadOfferSummaryCannotAcceptReason[keyof typeof LeadOfferSummaryCannotAcceptReason];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export function instanceOfLeadOfferSummaryCannotAcceptReason(value: any): boolean {
|
|
32
|
+
for (const key in LeadOfferSummaryCannotAcceptReason) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(LeadOfferSummaryCannotAcceptReason, key)) {
|
|
34
|
+
if (LeadOfferSummaryCannotAcceptReason[key as keyof typeof LeadOfferSummaryCannotAcceptReason] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function LeadOfferSummaryCannotAcceptReasonFromJSON(json: any): LeadOfferSummaryCannotAcceptReason {
|
|
43
|
+
return LeadOfferSummaryCannotAcceptReasonFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function LeadOfferSummaryCannotAcceptReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadOfferSummaryCannotAcceptReason {
|
|
47
|
+
return json as LeadOfferSummaryCannotAcceptReason;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function LeadOfferSummaryCannotAcceptReasonToJSON(value?: LeadOfferSummaryCannotAcceptReason | null): any {
|
|
51
|
+
return value as any;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function LeadOfferSummaryCannotAcceptReasonToJSONTyped(value: any, ignoreDiscriminator: boolean): LeadOfferSummaryCannotAcceptReason {
|
|
55
|
+
return value as LeadOfferSummaryCannotAcceptReason;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { LeadOfferSummaryCannotAcceptReason } from './LeadOfferSummaryCannotAcceptReason';
|
|
17
|
+
import {
|
|
18
|
+
LeadOfferSummaryCannotAcceptReasonFromJSON,
|
|
19
|
+
LeadOfferSummaryCannotAcceptReasonFromJSONTyped,
|
|
20
|
+
LeadOfferSummaryCannotAcceptReasonToJSON,
|
|
21
|
+
LeadOfferSummaryCannotAcceptReasonToJSONTyped,
|
|
22
|
+
} from './LeadOfferSummaryCannotAcceptReason';
|
|
23
|
+
import type { LeadOfferSummaryItemDto } from './LeadOfferSummaryItemDto';
|
|
24
|
+
import {
|
|
25
|
+
LeadOfferSummaryItemDtoFromJSON,
|
|
26
|
+
LeadOfferSummaryItemDtoFromJSONTyped,
|
|
27
|
+
LeadOfferSummaryItemDtoToJSON,
|
|
28
|
+
LeadOfferSummaryItemDtoToJSONTyped,
|
|
29
|
+
} from './LeadOfferSummaryItemDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface LeadOfferSummaryDto
|
|
35
|
+
*/
|
|
36
|
+
export interface LeadOfferSummaryDto {
|
|
37
|
+
/**
|
|
38
|
+
* The highest plain purchase offer the buyer made and did not withdraw, in the domain currency. Null when there is none.
|
|
39
|
+
* @type {LeadOfferSummaryItemDto}
|
|
40
|
+
* @memberof LeadOfferSummaryDto
|
|
41
|
+
*/
|
|
42
|
+
highestBuyerOffer: LeadOfferSummaryItemDto | null;
|
|
43
|
+
/**
|
|
44
|
+
* The lowest plain purchase offer the seller side (seller or price negotiator) made and did not withdraw, in the domain currency. Null when there is none.
|
|
45
|
+
* @type {LeadOfferSummaryItemDto}
|
|
46
|
+
* @memberof LeadOfferSummaryDto
|
|
47
|
+
*/
|
|
48
|
+
lowestSellerOffer: LeadOfferSummaryItemDto | null;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the highest buyer offer can be accepted right now with the accept-highest-buyer-offer endpoint.
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof LeadOfferSummaryDto
|
|
53
|
+
*/
|
|
54
|
+
canAcceptHighestBuyerOffer: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Why the highest buyer offer cannot be accepted, if so.
|
|
57
|
+
* @type {LeadOfferSummaryCannotAcceptReason}
|
|
58
|
+
* @memberof LeadOfferSummaryDto
|
|
59
|
+
*/
|
|
60
|
+
cannotAcceptReason: LeadOfferSummaryCannotAcceptReason | null;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the LeadOfferSummaryDto interface.
|
|
67
|
+
*/
|
|
68
|
+
export function instanceOfLeadOfferSummaryDto(value: object): value is LeadOfferSummaryDto {
|
|
69
|
+
if (!('highestBuyerOffer' in value) || value['highestBuyerOffer'] === undefined) return false;
|
|
70
|
+
if (!('lowestSellerOffer' in value) || value['lowestSellerOffer'] === undefined) return false;
|
|
71
|
+
if (!('canAcceptHighestBuyerOffer' in value) || value['canAcceptHighestBuyerOffer'] === undefined) return false;
|
|
72
|
+
if (!('cannotAcceptReason' in value) || value['cannotAcceptReason'] === undefined) return false;
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function LeadOfferSummaryDtoFromJSON(json: any): LeadOfferSummaryDto {
|
|
77
|
+
return LeadOfferSummaryDtoFromJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function LeadOfferSummaryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadOfferSummaryDto {
|
|
81
|
+
if (json == null) {
|
|
82
|
+
return json;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'highestBuyerOffer': LeadOfferSummaryItemDtoFromJSON(json['highestBuyerOffer']),
|
|
87
|
+
'lowestSellerOffer': LeadOfferSummaryItemDtoFromJSON(json['lowestSellerOffer']),
|
|
88
|
+
'canAcceptHighestBuyerOffer': json['canAcceptHighestBuyerOffer'],
|
|
89
|
+
'cannotAcceptReason': LeadOfferSummaryCannotAcceptReasonFromJSON(json['cannotAcceptReason']),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function LeadOfferSummaryDtoToJSON(json: any): LeadOfferSummaryDto {
|
|
94
|
+
return LeadOfferSummaryDtoToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function LeadOfferSummaryDtoToJSONTyped(value?: LeadOfferSummaryDto | null, ignoreDiscriminator: boolean = false): any {
|
|
98
|
+
if (value == null) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'highestBuyerOffer': LeadOfferSummaryItemDtoToJSON(value['highestBuyerOffer']),
|
|
105
|
+
'lowestSellerOffer': LeadOfferSummaryItemDtoToJSON(value['lowestSellerOffer']),
|
|
106
|
+
'canAcceptHighestBuyerOffer': value['canAcceptHighestBuyerOffer'],
|
|
107
|
+
'cannotAcceptReason': LeadOfferSummaryCannotAcceptReasonToJSON(value['cannotAcceptReason']),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
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 { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
MoneyDtoToJSONTyped,
|
|
22
|
+
} from './MoneyDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LeadOfferSummaryItemDto
|
|
28
|
+
*/
|
|
29
|
+
export interface LeadOfferSummaryItemDto {
|
|
30
|
+
/**
|
|
31
|
+
* The id of the offer message in the lead conversation.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LeadOfferSummaryItemDto
|
|
34
|
+
*/
|
|
35
|
+
leadMessageId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The amount offered.
|
|
38
|
+
* @type {MoneyDto}
|
|
39
|
+
* @memberof LeadOfferSummaryItemDto
|
|
40
|
+
*/
|
|
41
|
+
price: MoneyDto;
|
|
42
|
+
/**
|
|
43
|
+
* Who made the offer.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof LeadOfferSummaryItemDto
|
|
46
|
+
*/
|
|
47
|
+
origin: LeadOfferSummaryItemDtoOriginEnum;
|
|
48
|
+
/**
|
|
49
|
+
* When the offer was made.
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof LeadOfferSummaryItemDto
|
|
52
|
+
*/
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export const LeadOfferSummaryItemDtoOriginEnum = {
|
|
61
|
+
BUYER: 'buyer',
|
|
62
|
+
SELLER: 'seller',
|
|
63
|
+
AI: 'ai',
|
|
64
|
+
ADMIN: 'admin'
|
|
65
|
+
} as const;
|
|
66
|
+
export type LeadOfferSummaryItemDtoOriginEnum = typeof LeadOfferSummaryItemDtoOriginEnum[keyof typeof LeadOfferSummaryItemDtoOriginEnum];
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the LeadOfferSummaryItemDto interface.
|
|
71
|
+
*/
|
|
72
|
+
export function instanceOfLeadOfferSummaryItemDto(value: object): value is LeadOfferSummaryItemDto {
|
|
73
|
+
if (!('leadMessageId' in value) || value['leadMessageId'] === undefined) return false;
|
|
74
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
75
|
+
if (!('origin' in value) || value['origin'] === undefined) return false;
|
|
76
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function LeadOfferSummaryItemDtoFromJSON(json: any): LeadOfferSummaryItemDto {
|
|
81
|
+
return LeadOfferSummaryItemDtoFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function LeadOfferSummaryItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadOfferSummaryItemDto {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'leadMessageId': json['leadMessageId'],
|
|
91
|
+
'price': MoneyDtoFromJSON(json['price']),
|
|
92
|
+
'origin': json['origin'],
|
|
93
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function LeadOfferSummaryItemDtoToJSON(json: any): LeadOfferSummaryItemDto {
|
|
98
|
+
return LeadOfferSummaryItemDtoToJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function LeadOfferSummaryItemDtoToJSONTyped(value?: LeadOfferSummaryItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
102
|
+
if (value == null) {
|
|
103
|
+
return value;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'leadMessageId': value['leadMessageId'],
|
|
109
|
+
'price': MoneyDtoToJSON(value['price']),
|
|
110
|
+
'origin': value['origin'],
|
|
111
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
@@ -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 RecordSettingsSearchMissInput
|
|
20
|
+
*/
|
|
21
|
+
export interface RecordSettingsSearchMissInput {
|
|
22
|
+
/**
|
|
23
|
+
* What the user searched for. Trimmed; 3 to 64 characters after trimming. Longer input is rejected, not truncated.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RecordSettingsSearchMissInput
|
|
26
|
+
*/
|
|
27
|
+
query: string;
|
|
28
|
+
/**
|
|
29
|
+
* Locale of the interface the search was made in.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RecordSettingsSearchMissInput
|
|
32
|
+
*/
|
|
33
|
+
locale: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the RecordSettingsSearchMissInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfRecordSettingsSearchMissInput(value: object): value is RecordSettingsSearchMissInput {
|
|
40
|
+
if (!('query' in value) || value['query'] === undefined) return false;
|
|
41
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function RecordSettingsSearchMissInputFromJSON(json: any): RecordSettingsSearchMissInput {
|
|
46
|
+
return RecordSettingsSearchMissInputFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function RecordSettingsSearchMissInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecordSettingsSearchMissInput {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'query': json['query'],
|
|
56
|
+
'locale': json['locale'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function RecordSettingsSearchMissInputToJSON(json: any): RecordSettingsSearchMissInput {
|
|
61
|
+
return RecordSettingsSearchMissInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function RecordSettingsSearchMissInputToJSONTyped(value?: RecordSettingsSearchMissInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'query': value['query'],
|
|
72
|
+
'locale': value['locale'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 SettingsSearchMissCountDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SettingsSearchMissCountDto {
|
|
22
|
+
/**
|
|
23
|
+
* Trimmed, lower-cased query.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SettingsSearchMissCountDto
|
|
26
|
+
*/
|
|
27
|
+
query: string;
|
|
28
|
+
/**
|
|
29
|
+
* Number of times it came back empty.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SettingsSearchMissCountDto
|
|
32
|
+
*/
|
|
33
|
+
count: number;
|
|
34
|
+
/**
|
|
35
|
+
* Number of distinct accounts that searched it.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof SettingsSearchMissCountDto
|
|
38
|
+
*/
|
|
39
|
+
accounts: number;
|
|
40
|
+
/**
|
|
41
|
+
* Most recent time it came back empty.
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof SettingsSearchMissCountDto
|
|
44
|
+
*/
|
|
45
|
+
lastSeenAt: Date;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the SettingsSearchMissCountDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfSettingsSearchMissCountDto(value: object): value is SettingsSearchMissCountDto {
|
|
52
|
+
if (!('query' in value) || value['query'] === undefined) return false;
|
|
53
|
+
if (!('count' in value) || value['count'] === undefined) return false;
|
|
54
|
+
if (!('accounts' in value) || value['accounts'] === undefined) return false;
|
|
55
|
+
if (!('lastSeenAt' in value) || value['lastSeenAt'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SettingsSearchMissCountDtoFromJSON(json: any): SettingsSearchMissCountDto {
|
|
60
|
+
return SettingsSearchMissCountDtoFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SettingsSearchMissCountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SettingsSearchMissCountDto {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'query': json['query'],
|
|
70
|
+
'count': json['count'],
|
|
71
|
+
'accounts': json['accounts'],
|
|
72
|
+
'lastSeenAt': (new Date(json['lastSeenAt'])),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function SettingsSearchMissCountDtoToJSON(json: any): SettingsSearchMissCountDto {
|
|
77
|
+
return SettingsSearchMissCountDtoToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function SettingsSearchMissCountDtoToJSONTyped(value?: SettingsSearchMissCountDto | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'query': value['query'],
|
|
88
|
+
'count': value['count'],
|
|
89
|
+
'accounts': value['accounts'],
|
|
90
|
+
'lastSeenAt': ((value['lastSeenAt']).toISOString()),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SettingsSearchMissDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SettingsSearchMissDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SettingsSearchMissDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* What was searched for: trimmed and lower-cased user input.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SettingsSearchMissDto
|
|
32
|
+
*/
|
|
33
|
+
query: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SettingsSearchMissDto
|
|
38
|
+
*/
|
|
39
|
+
locale: string;
|
|
40
|
+
/**
|
|
41
|
+
* Account the search came from; null once it was deleted.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SettingsSearchMissDto
|
|
44
|
+
*/
|
|
45
|
+
accountId: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof SettingsSearchMissDto
|
|
50
|
+
*/
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the SettingsSearchMissDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfSettingsSearchMissDto(value: object): value is SettingsSearchMissDto {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('query' in value) || value['query'] === undefined) return false;
|
|
60
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
61
|
+
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
62
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function SettingsSearchMissDtoFromJSON(json: any): SettingsSearchMissDto {
|
|
67
|
+
return SettingsSearchMissDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function SettingsSearchMissDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SettingsSearchMissDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'query': json['query'],
|
|
78
|
+
'locale': json['locale'],
|
|
79
|
+
'accountId': json['accountId'],
|
|
80
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function SettingsSearchMissDtoToJSON(json: any): SettingsSearchMissDto {
|
|
85
|
+
return SettingsSearchMissDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function SettingsSearchMissDtoToJSONTyped(value?: SettingsSearchMissDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'query': value['query'],
|
|
97
|
+
'locale': value['locale'],
|
|
98
|
+
'accountId': value['accountId'],
|
|
99
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -115,6 +115,7 @@ export const UserNotificationDtoTypeEnum = {
|
|
|
115
115
|
DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
|
|
116
116
|
DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
|
|
117
117
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
|
|
118
|
+
DOMAIN_EARLIER_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_earlier_offer_accepted_continue_order_email',
|
|
118
119
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: 'domain_offer_accepted_continue_lease_to_own_email',
|
|
119
120
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL_INSTALLMENTS_RANGE: 'domain_offer_accepted_continue_lease_to_own_email_installments_range',
|
|
120
121
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_RENT_EMAIL: 'domain_offer_accepted_continue_rent_email',
|
|
@@ -101,6 +101,7 @@ export const UserNotificationListItemDtoTypeEnum = {
|
|
|
101
101
|
DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
|
|
102
102
|
DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
|
|
103
103
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
|
|
104
|
+
DOMAIN_EARLIER_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_earlier_offer_accepted_continue_order_email',
|
|
104
105
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: 'domain_offer_accepted_continue_lease_to_own_email',
|
|
105
106
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL_INSTALLMENTS_RANGE: 'domain_offer_accepted_continue_lease_to_own_email_installments_range',
|
|
106
107
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_RENT_EMAIL: 'domain_offer_accepted_continue_rent_email',
|