@randock/nameshift-api-client 0.0.46 → 0.0.48
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/AccountsApi.js +4 -4
- package/dist/apis/DashboardApi.js +1 -1
- package/dist/apis/DomainsApi.js +10 -10
- package/dist/apis/LeadsApi.js +6 -6
- package/dist/apis/LeadsPublicApi.d.ts +12 -1
- package/dist/apis/LeadsPublicApi.js +44 -0
- package/dist/models/BuyDomainInput.d.ts +16 -10
- package/dist/models/BuyDomainInput.js +6 -8
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +1 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +1 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +1 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +1 -0
- package/dist/models/LeadStatusDto.d.ts +1 -0
- package/dist/models/LeadStatusDto.js +1 -0
- package/dist/models/PublicLeadBuyerDto.d.ts +55 -0
- package/dist/models/PublicLeadBuyerDto.js +63 -0
- package/dist/models/PublicLeadDto.d.ts +63 -0
- package/dist/models/PublicLeadDto.js +72 -0
- package/dist/models/PublicLeadDtoLastOffer.d.ts +37 -0
- package/dist/models/PublicLeadDtoLastOffer.js +51 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +4 -4
- package/src/apis/DashboardApi.ts +1 -1
- package/src/apis/DomainsApi.ts +10 -10
- package/src/apis/LeadsApi.ts +6 -6
- package/src/apis/LeadsPublicApi.ts +40 -0
- package/src/models/BuyDomainInput.ts +22 -16
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +1 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +1 -0
- package/src/models/LeadStatusDto.ts +1 -0
- package/src/models/PublicLeadBuyerDto.ts +97 -0
- package/src/models/PublicLeadDto.ts +116 -0
- package/src/models/PublicLeadDtoLastOffer.ts +70 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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 PublicLeadBuyerDto
|
|
20
|
+
*/
|
|
21
|
+
export interface PublicLeadBuyerDto {
|
|
22
|
+
/**
|
|
23
|
+
* Lead buyer name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PublicLeadBuyerDto
|
|
26
|
+
*/
|
|
27
|
+
firstname: string;
|
|
28
|
+
/**
|
|
29
|
+
* Lead buyer surname
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PublicLeadBuyerDto
|
|
32
|
+
*/
|
|
33
|
+
lastname: string;
|
|
34
|
+
/**
|
|
35
|
+
* Lead buyer email address
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PublicLeadBuyerDto
|
|
38
|
+
*/
|
|
39
|
+
email: string;
|
|
40
|
+
/**
|
|
41
|
+
* Lead buyer phone number
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PublicLeadBuyerDto
|
|
44
|
+
*/
|
|
45
|
+
phone: string;
|
|
46
|
+
/**
|
|
47
|
+
* Lead buyer company name
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PublicLeadBuyerDto
|
|
50
|
+
*/
|
|
51
|
+
companyName: string | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the PublicLeadBuyerDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfPublicLeadBuyerDto(value: object): value is PublicLeadBuyerDto {
|
|
58
|
+
if (!('firstname' in value) || value['firstname'] === undefined) return false;
|
|
59
|
+
if (!('lastname' in value) || value['lastname'] === undefined) return false;
|
|
60
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
61
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
62
|
+
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function PublicLeadBuyerDtoFromJSON(json: any): PublicLeadBuyerDto {
|
|
67
|
+
return PublicLeadBuyerDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function PublicLeadBuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicLeadBuyerDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'firstname': json['firstname'],
|
|
77
|
+
'lastname': json['lastname'],
|
|
78
|
+
'email': json['email'],
|
|
79
|
+
'phone': json['phone'],
|
|
80
|
+
'companyName': json['companyName'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PublicLeadBuyerDtoToJSON(value?: PublicLeadBuyerDto | null): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'firstname': value['firstname'],
|
|
91
|
+
'lastname': value['lastname'],
|
|
92
|
+
'email': value['email'],
|
|
93
|
+
'phone': value['phone'],
|
|
94
|
+
'companyName': value['companyName'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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 { PublicLeadBuyerDto } from './PublicLeadBuyerDto';
|
|
17
|
+
import {
|
|
18
|
+
PublicLeadBuyerDtoFromJSON,
|
|
19
|
+
PublicLeadBuyerDtoFromJSONTyped,
|
|
20
|
+
PublicLeadBuyerDtoToJSON,
|
|
21
|
+
} from './PublicLeadBuyerDto';
|
|
22
|
+
import type { PublicLeadDtoLastOffer } from './PublicLeadDtoLastOffer';
|
|
23
|
+
import {
|
|
24
|
+
PublicLeadDtoLastOfferFromJSON,
|
|
25
|
+
PublicLeadDtoLastOfferFromJSONTyped,
|
|
26
|
+
PublicLeadDtoLastOfferToJSON,
|
|
27
|
+
} from './PublicLeadDtoLastOffer';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface PublicLeadDto
|
|
33
|
+
*/
|
|
34
|
+
export interface PublicLeadDto {
|
|
35
|
+
/**
|
|
36
|
+
* The current id
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PublicLeadDto
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* The current lead status
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof PublicLeadDto
|
|
45
|
+
*/
|
|
46
|
+
status: PublicLeadDtoStatusEnum;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {PublicLeadDtoLastOffer}
|
|
50
|
+
* @memberof PublicLeadDto
|
|
51
|
+
*/
|
|
52
|
+
lastOffer: PublicLeadDtoLastOffer | null;
|
|
53
|
+
/**
|
|
54
|
+
* The buyer information
|
|
55
|
+
* @type {PublicLeadBuyerDto}
|
|
56
|
+
* @memberof PublicLeadDto
|
|
57
|
+
*/
|
|
58
|
+
buyer: PublicLeadBuyerDto;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export const PublicLeadDtoStatusEnum = {
|
|
66
|
+
UNVERIFIED: 'unverified',
|
|
67
|
+
ACTIVE: 'active',
|
|
68
|
+
ACCEPTED: 'accepted',
|
|
69
|
+
FINISHED: 'finished',
|
|
70
|
+
DELETED: 'deleted',
|
|
71
|
+
ARCHIVED: 'archived'
|
|
72
|
+
} as const;
|
|
73
|
+
export type PublicLeadDtoStatusEnum = typeof PublicLeadDtoStatusEnum[keyof typeof PublicLeadDtoStatusEnum];
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the PublicLeadDto interface.
|
|
78
|
+
*/
|
|
79
|
+
export function instanceOfPublicLeadDto(value: object): value is PublicLeadDto {
|
|
80
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
81
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
82
|
+
if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
|
|
83
|
+
if (!('buyer' in value) || value['buyer'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function PublicLeadDtoFromJSON(json: any): PublicLeadDto {
|
|
88
|
+
return PublicLeadDtoFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function PublicLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicLeadDto {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'id': json['id'],
|
|
98
|
+
'status': json['status'],
|
|
99
|
+
'lastOffer': PublicLeadDtoLastOfferFromJSON(json['lastOffer']),
|
|
100
|
+
'buyer': PublicLeadBuyerDtoFromJSON(json['buyer']),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function PublicLeadDtoToJSON(value?: PublicLeadDto | null): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'id': value['id'],
|
|
111
|
+
'status': value['status'],
|
|
112
|
+
'lastOffer': PublicLeadDtoLastOfferToJSON(value['lastOffer']),
|
|
113
|
+
'buyer': PublicLeadBuyerDtoToJSON(value['buyer']),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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
|
+
* The last offer price
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PublicLeadDtoLastOffer
|
|
20
|
+
*/
|
|
21
|
+
export interface PublicLeadDtoLastOffer {
|
|
22
|
+
/**
|
|
23
|
+
* Monetary amount, represented as an integer without scale/decimals.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PublicLeadDtoLastOffer
|
|
26
|
+
*/
|
|
27
|
+
amount: number;
|
|
28
|
+
/**
|
|
29
|
+
* Three letter ISO currency code
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PublicLeadDtoLastOffer
|
|
32
|
+
*/
|
|
33
|
+
currencyCode: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PublicLeadDtoLastOffer interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPublicLeadDtoLastOffer(value: object): value is PublicLeadDtoLastOffer {
|
|
40
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
41
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PublicLeadDtoLastOfferFromJSON(json: any): PublicLeadDtoLastOffer {
|
|
46
|
+
return PublicLeadDtoLastOfferFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PublicLeadDtoLastOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicLeadDtoLastOffer {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'amount': json['amount'],
|
|
56
|
+
'currencyCode': json['currencyCode'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PublicLeadDtoLastOfferToJSON(value?: PublicLeadDtoLastOffer | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'amount': value['amount'],
|
|
67
|
+
'currencyCode': value['currencyCode'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -49,6 +49,9 @@ export * from './ObjectId';
|
|
|
49
49
|
export * from './PaginateResponse';
|
|
50
50
|
export * from './PaginateResponseLinks';
|
|
51
51
|
export * from './PaginateResponseMeta';
|
|
52
|
+
export * from './PublicLeadBuyerDto';
|
|
53
|
+
export * from './PublicLeadDto';
|
|
54
|
+
export * from './PublicLeadDtoLastOffer';
|
|
52
55
|
export * from './PutLeadInput';
|
|
53
56
|
export * from './RegisterAccountInput';
|
|
54
57
|
export * from './RelatedSellerDomain';
|