@randock/nameshift-api-client 0.0.12 → 0.0.14
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 +11 -1
- package/dist/apis/LeadsApi.d.ts +38 -3
- package/dist/apis/LeadsApi.js +170 -1
- package/dist/models/CreateLeadMessageInput.d.ts +31 -0
- package/dist/models/CreateLeadMessageInput.js +50 -0
- package/dist/models/CreateLeadMessageInputData.d.ts +32 -0
- package/dist/models/CreateLeadMessageInputData.js +51 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +75 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +73 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +81 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +83 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +37 -2
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +23 -1
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.d.ts +32 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +51 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.d.ts +37 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +53 -0
- package/dist/models/LeadDto.d.ts +22 -0
- package/dist/models/LeadDto.js +16 -1
- package/dist/models/LeadMessageData.d.ts +32 -0
- package/dist/models/LeadMessageData.js +51 -0
- package/dist/models/LeadMessageDto.d.ts +85 -0
- package/dist/models/LeadMessageDto.js +84 -0
- package/dist/models/LeadMessageDtoData.d.ts +32 -0
- package/dist/models/LeadMessageDtoData.js +51 -0
- package/dist/models/ListLeadMessagesDto.d.ts +32 -0
- package/dist/models/ListLeadMessagesDto.js +51 -0
- package/dist/models/PutLeadInput.d.ts +32 -0
- package/dist/models/PutLeadInput.js +51 -0
- package/dist/models/index.d.ts +11 -1
- package/dist/models/index.js +11 -1
- package/package.json +2 -1
- package/src/apis/LeadsApi.ts +160 -6
- package/src/models/CreateLeadMessageInput.ts +66 -0
- package/src/models/CreateLeadMessageInputData.ts +73 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +142 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +146 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +61 -2
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +73 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +75 -0
- package/src/models/LeadDto.ts +35 -0
- package/src/models/LeadMessageData.ts +73 -0
- package/src/models/LeadMessageDto.ts +148 -0
- package/src/models/LeadMessageDtoData.ts +73 -0
- package/src/models/ListLeadMessagesDto.ts +73 -0
- package/src/models/PutLeadInput.ts +73 -0
- package/src/models/index.ts +11 -1
|
@@ -0,0 +1,73 @@
|
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { LeadMessageDto } from './LeadMessageDto';
|
|
17
|
+
import {
|
|
18
|
+
LeadMessageDtoFromJSON,
|
|
19
|
+
LeadMessageDtoFromJSONTyped,
|
|
20
|
+
LeadMessageDtoToJSON,
|
|
21
|
+
} from './LeadMessageDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ListLeadMessagesDto
|
|
27
|
+
*/
|
|
28
|
+
export interface ListLeadMessagesDto {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<LeadMessageDto>}
|
|
32
|
+
* @memberof ListLeadMessagesDto
|
|
33
|
+
*/
|
|
34
|
+
messages: Array<LeadMessageDto>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ListLeadMessagesDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfListLeadMessagesDto(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "messages" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ListLeadMessagesDtoFromJSON(json: any): ListLeadMessagesDto {
|
|
48
|
+
return ListLeadMessagesDtoFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ListLeadMessagesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListLeadMessagesDto {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'messages': ((json['messages'] as Array<any>).map(LeadMessageDtoFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ListLeadMessagesDtoToJSON(value?: ListLeadMessagesDto | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'messages': ((value.messages as Array<any>).map(LeadMessageDtoToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
} from './MoneyDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PutLeadInput
|
|
27
|
+
*/
|
|
28
|
+
export interface PutLeadInput {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MoneyDto}
|
|
32
|
+
* @memberof PutLeadInput
|
|
33
|
+
*/
|
|
34
|
+
offer: MoneyDto | null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PutLeadInput interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfPutLeadInput(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "offer" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PutLeadInputFromJSON(json: any): PutLeadInput {
|
|
48
|
+
return PutLeadInputFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PutLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLeadInput {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'offer': MoneyDtoFromJSON(json['offer']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function PutLeadInputToJSON(value?: PutLeadInput | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'offer': MoneyDtoToJSON(value.offer),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AccountAddressDto';
|
|
4
4
|
export * from './AccountAddressInput';
|
|
5
|
+
export * from './AccountDto';
|
|
5
6
|
export * from './AccountFinancialInput';
|
|
6
7
|
export * from './AccountSettingsInput';
|
|
7
8
|
export * from './BatchUpdate404Response';
|
|
8
9
|
export * from './BatchUpdateDomainsInput';
|
|
9
10
|
export * from './CreateLeadInput';
|
|
11
|
+
export * from './CreateLeadMessageInput';
|
|
10
12
|
export * from './DeleteDomainsInput';
|
|
11
13
|
export * from './DomainDto';
|
|
12
14
|
export * from './ImportDomainsDto';
|
|
@@ -14,12 +16,19 @@ export * from './IntersectionAccountDtoWithAddressDto';
|
|
|
14
16
|
export * from './IntersectionAccountDtoWithFinancialDto';
|
|
15
17
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
16
18
|
export * from './IntersectionAccountDtoWithSettingsDto';
|
|
17
|
-
export * from './
|
|
19
|
+
export * from './IntersectionDomainDtoWithAccountDto';
|
|
20
|
+
export * from './IntersectionLeadDtoWithLeadDetailsDto';
|
|
18
21
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
22
|
+
export * from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
|
|
23
|
+
export * from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
|
|
19
24
|
export * from './LeadDto';
|
|
25
|
+
export * from './LeadMessageData';
|
|
26
|
+
export * from './LeadMessageDto';
|
|
27
|
+
export * from './LeadMessageDtoData';
|
|
20
28
|
export * from './List200Response';
|
|
21
29
|
export * from './List400Response';
|
|
22
30
|
export * from './List401Response';
|
|
31
|
+
export * from './ListLeadMessagesDto';
|
|
23
32
|
export * from './Login401Response';
|
|
24
33
|
export * from './Login429Response';
|
|
25
34
|
export * from './LoginInput';
|
|
@@ -29,6 +38,7 @@ export * from './PaginateResponse';
|
|
|
29
38
|
export * from './PaginateResponseLinks';
|
|
30
39
|
export * from './PaginateResponseMeta';
|
|
31
40
|
export * from './PublicDomainControllerGetDomainIdentifier404Response';
|
|
41
|
+
export * from './PutLeadInput';
|
|
32
42
|
export * from './TokenDto';
|
|
33
43
|
export * from './UpdateDomainInput';
|
|
34
44
|
export * from './UpdateSettings401Response';
|