@randock/nameshift-api-client 0.0.11 → 0.0.13
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/dist/apis/LeadsApi.d.ts +35 -1
- package/dist/apis/LeadsApi.js +164 -0
- package/dist/models/CreateLeadMessageInput.d.ts +52 -0
- package/dist/models/CreateLeadMessageInput.js +64 -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/IntersectionLeadDto.d.ts +52 -0
- package/dist/models/IntersectionLeadDto.js +64 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +59 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +68 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +3 -3
- package/dist/models/LeadDto.d.ts +3 -3
- package/dist/models/LeadMessageData.d.ts +32 -0
- package/dist/models/LeadMessageData.js +51 -0
- package/dist/models/LeadMessageDto.d.ts +79 -0
- package/dist/models/LeadMessageDto.js +81 -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/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -2
- package/src/apis/LeadsApi.ts +146 -0
- package/src/models/CreateLeadMessageInput.ts +102 -0
- package/src/models/CreateLeadMessageInputData.ts +73 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +142 -0
- package/src/models/IntersectionLeadDto.ts +96 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +112 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +3 -3
- package/src/models/LeadDto.ts +3 -3
- package/src/models/LeadMessageData.ts +73 -0
- package/src/models/LeadMessageDto.ts +139 -0
- package/src/models/LeadMessageDtoData.ts +73 -0
- package/src/models/ListLeadMessagesDto.ts +73 -0
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.IntersectionLeadDtoToJSON = exports.IntersectionLeadDtoFromJSONTyped = exports.IntersectionLeadDtoFromJSON = exports.instanceOfIntersectionLeadDto = exports.IntersectionLeadDtoStatusEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.IntersectionLeadDtoStatusEnum = {
|
|
21
|
+
ACTIVE: 'active',
|
|
22
|
+
DELETED: 'deleted',
|
|
23
|
+
ARCHIVED: 'archived'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the IntersectionLeadDto interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfIntersectionLeadDto(value) {
|
|
29
|
+
var isInstance = true;
|
|
30
|
+
isInstance = isInstance && "id" in value;
|
|
31
|
+
isInstance = isInstance && "status" in value;
|
|
32
|
+
isInstance = isInstance && "createdAt" in value;
|
|
33
|
+
return isInstance;
|
|
34
|
+
}
|
|
35
|
+
exports.instanceOfIntersectionLeadDto = instanceOfIntersectionLeadDto;
|
|
36
|
+
function IntersectionLeadDtoFromJSON(json) {
|
|
37
|
+
return IntersectionLeadDtoFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
exports.IntersectionLeadDtoFromJSON = IntersectionLeadDtoFromJSON;
|
|
40
|
+
function IntersectionLeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'status': json['status'],
|
|
47
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.IntersectionLeadDtoFromJSONTyped = IntersectionLeadDtoFromJSONTyped;
|
|
51
|
+
function IntersectionLeadDtoToJSON(value) {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': value.id,
|
|
60
|
+
'status': value.status,
|
|
61
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.IntersectionLeadDtoToJSON = IntersectionLeadDtoToJSON;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IntersectionLeadDtoWithLeadDetailsDto
|
|
17
|
+
*/
|
|
18
|
+
export interface IntersectionLeadDtoWithLeadDetailsDto {
|
|
19
|
+
/**
|
|
20
|
+
* The current id
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The current lead status
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
29
|
+
*/
|
|
30
|
+
status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {IntersectionDomainDtoWithAccountDto}
|
|
34
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
35
|
+
*/
|
|
36
|
+
domain: IntersectionDomainDtoWithAccountDto;
|
|
37
|
+
/**
|
|
38
|
+
* Created at date
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDto
|
|
41
|
+
*/
|
|
42
|
+
createdAt: Date;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const IntersectionLeadDtoWithLeadDetailsDtoStatusEnum: {
|
|
48
|
+
readonly ACTIVE: "active";
|
|
49
|
+
readonly DELETED: "deleted";
|
|
50
|
+
readonly ARCHIVED: "archived";
|
|
51
|
+
};
|
|
52
|
+
export type IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value: object): boolean;
|
|
57
|
+
export declare function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json: any): IntersectionLeadDtoWithLeadDetailsDto;
|
|
58
|
+
export declare function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithLeadDetailsDto;
|
|
59
|
+
export declare function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value?: IntersectionLeadDtoWithLeadDetailsDto | null): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoToJSON = exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped = exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSON = exports.instanceOfIntersectionLeadDtoWithLeadDetailsDto = exports.IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = void 0;
|
|
17
|
+
var IntersectionDomainDtoWithAccountDto_1 = require("./IntersectionDomainDtoWithAccountDto");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = {
|
|
22
|
+
ACTIVE: 'active',
|
|
23
|
+
DELETED: 'deleted',
|
|
24
|
+
ARCHIVED: 'archived'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value) {
|
|
30
|
+
var isInstance = true;
|
|
31
|
+
isInstance = isInstance && "id" in value;
|
|
32
|
+
isInstance = isInstance && "status" in value;
|
|
33
|
+
isInstance = isInstance && "domain" in value;
|
|
34
|
+
isInstance = isInstance && "createdAt" in value;
|
|
35
|
+
return isInstance;
|
|
36
|
+
}
|
|
37
|
+
exports.instanceOfIntersectionLeadDtoWithLeadDetailsDto = instanceOfIntersectionLeadDtoWithLeadDetailsDto;
|
|
38
|
+
function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json) {
|
|
39
|
+
return IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSON = IntersectionLeadDtoWithLeadDetailsDtoFromJSON;
|
|
42
|
+
function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if ((json === undefined) || (json === null)) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'status': json['status'],
|
|
49
|
+
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoFromJSON)(json['domain']),
|
|
50
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped;
|
|
54
|
+
function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value) {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value.id,
|
|
63
|
+
'status': value.status,
|
|
64
|
+
'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value.domain),
|
|
65
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
exports.IntersectionLeadDtoWithLeadDetailsDtoToJSON = IntersectionLeadDtoWithLeadDetailsDtoToJSON;
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface IntersectionLeadDtoWithListFieldsDto {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* The current id
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
22
22
|
*/
|
|
23
23
|
id: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The current lead status
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
28
28
|
*/
|
|
@@ -40,7 +40,7 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
40
40
|
*/
|
|
41
41
|
lastMessageType: IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Created at date
|
|
44
44
|
* @type {Date}
|
|
45
45
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
46
46
|
*/
|
package/dist/models/LeadDto.d.ts
CHANGED
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface LeadDto {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* The current id
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof LeadDto
|
|
22
22
|
*/
|
|
23
23
|
id: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The current lead status
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof LeadDto
|
|
28
28
|
*/
|
|
29
29
|
status: LeadDtoStatusEnum;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Created at date
|
|
32
32
|
* @type {Date}
|
|
33
33
|
* @memberof LeadDto
|
|
34
34
|
*/
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LeadMessageData
|
|
17
|
+
*/
|
|
18
|
+
export interface LeadMessageData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {MoneyDto}
|
|
22
|
+
* @memberof LeadMessageData
|
|
23
|
+
*/
|
|
24
|
+
price: MoneyDto;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the LeadMessageData interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfLeadMessageData(value: object): boolean;
|
|
30
|
+
export declare function LeadMessageDataFromJSON(json: any): LeadMessageData;
|
|
31
|
+
export declare function LeadMessageDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageData;
|
|
32
|
+
export declare function LeadMessageDataToJSON(value?: LeadMessageData | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LeadMessageDataToJSON = exports.LeadMessageDataFromJSONTyped = exports.LeadMessageDataFromJSON = exports.instanceOfLeadMessageData = void 0;
|
|
17
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the LeadMessageData interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfLeadMessageData(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "price" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfLeadMessageData = instanceOfLeadMessageData;
|
|
27
|
+
function LeadMessageDataFromJSON(json) {
|
|
28
|
+
return LeadMessageDataFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.LeadMessageDataFromJSON = LeadMessageDataFromJSON;
|
|
31
|
+
function LeadMessageDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.LeadMessageDataFromJSONTyped = LeadMessageDataFromJSONTyped;
|
|
40
|
+
function LeadMessageDataToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'price': (0, MoneyDto_1.MoneyDtoToJSON)(value.price),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.LeadMessageDataToJSON = LeadMessageDataToJSON;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { LeadMessageDtoData } from './LeadMessageDtoData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LeadMessageDto
|
|
17
|
+
*/
|
|
18
|
+
export interface LeadMessageDto {
|
|
19
|
+
/**
|
|
20
|
+
* The current id
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof LeadMessageDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The message type
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof LeadMessageDto
|
|
29
|
+
*/
|
|
30
|
+
type: LeadMessageDtoTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* The message origin
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof LeadMessageDto
|
|
35
|
+
*/
|
|
36
|
+
origin: LeadMessageDtoOriginEnum;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {LeadMessageDtoData}
|
|
40
|
+
* @memberof LeadMessageDto
|
|
41
|
+
*/
|
|
42
|
+
data: LeadMessageDtoData | null;
|
|
43
|
+
/**
|
|
44
|
+
* Created at date
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof LeadMessageDto
|
|
47
|
+
*/
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
/**
|
|
50
|
+
* Optional message *
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof LeadMessageDto
|
|
53
|
+
*/
|
|
54
|
+
message: string | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const LeadMessageDtoTypeEnum: {
|
|
60
|
+
readonly OFFER: "offer";
|
|
61
|
+
readonly MESSAGE: "message";
|
|
62
|
+
};
|
|
63
|
+
export type LeadMessageDtoTypeEnum = typeof LeadMessageDtoTypeEnum[keyof typeof LeadMessageDtoTypeEnum];
|
|
64
|
+
/**
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
67
|
+
export declare const LeadMessageDtoOriginEnum: {
|
|
68
|
+
readonly BUYER: "buyer";
|
|
69
|
+
readonly SELLER: "seller";
|
|
70
|
+
readonly ADMIN: "admin";
|
|
71
|
+
};
|
|
72
|
+
export type LeadMessageDtoOriginEnum = typeof LeadMessageDtoOriginEnum[keyof typeof LeadMessageDtoOriginEnum];
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the LeadMessageDto interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfLeadMessageDto(value: object): boolean;
|
|
77
|
+
export declare function LeadMessageDtoFromJSON(json: any): LeadMessageDto;
|
|
78
|
+
export declare function LeadMessageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageDto;
|
|
79
|
+
export declare function LeadMessageDtoToJSON(value?: LeadMessageDto | null): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LeadMessageDtoToJSON = exports.LeadMessageDtoFromJSONTyped = exports.LeadMessageDtoFromJSON = exports.instanceOfLeadMessageDto = exports.LeadMessageDtoOriginEnum = exports.LeadMessageDtoTypeEnum = void 0;
|
|
17
|
+
var LeadMessageDtoData_1 = require("./LeadMessageDtoData");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.LeadMessageDtoTypeEnum = {
|
|
22
|
+
OFFER: 'offer',
|
|
23
|
+
MESSAGE: 'message'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.LeadMessageDtoOriginEnum = {
|
|
29
|
+
BUYER: 'buyer',
|
|
30
|
+
SELLER: 'seller',
|
|
31
|
+
ADMIN: 'admin'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the LeadMessageDto interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfLeadMessageDto(value) {
|
|
37
|
+
var isInstance = true;
|
|
38
|
+
isInstance = isInstance && "id" in value;
|
|
39
|
+
isInstance = isInstance && "type" in value;
|
|
40
|
+
isInstance = isInstance && "origin" in value;
|
|
41
|
+
isInstance = isInstance && "data" in value;
|
|
42
|
+
isInstance = isInstance && "createdAt" in value;
|
|
43
|
+
isInstance = isInstance && "message" in value;
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
exports.instanceOfLeadMessageDto = instanceOfLeadMessageDto;
|
|
47
|
+
function LeadMessageDtoFromJSON(json) {
|
|
48
|
+
return LeadMessageDtoFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
exports.LeadMessageDtoFromJSON = LeadMessageDtoFromJSON;
|
|
51
|
+
function LeadMessageDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': json['id'],
|
|
57
|
+
'type': json['type'],
|
|
58
|
+
'origin': json['origin'],
|
|
59
|
+
'data': (0, LeadMessageDtoData_1.LeadMessageDtoDataFromJSON)(json['data']),
|
|
60
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
61
|
+
'message': json['message'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.LeadMessageDtoFromJSONTyped = LeadMessageDtoFromJSONTyped;
|
|
65
|
+
function LeadMessageDtoToJSON(value) {
|
|
66
|
+
if (value === undefined) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
if (value === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value.id,
|
|
74
|
+
'type': value.type,
|
|
75
|
+
'origin': value.origin,
|
|
76
|
+
'data': (0, LeadMessageDtoData_1.LeadMessageDtoDataToJSON)(value.data),
|
|
77
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
78
|
+
'message': value.message,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
exports.LeadMessageDtoToJSON = LeadMessageDtoToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
/**
|
|
14
|
+
* Optional data *
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LeadMessageDtoData
|
|
17
|
+
*/
|
|
18
|
+
export interface LeadMessageDtoData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {MoneyDto}
|
|
22
|
+
* @memberof LeadMessageDtoData
|
|
23
|
+
*/
|
|
24
|
+
price: MoneyDto;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the LeadMessageDtoData interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfLeadMessageDtoData(value: object): boolean;
|
|
30
|
+
export declare function LeadMessageDtoDataFromJSON(json: any): LeadMessageDtoData;
|
|
31
|
+
export declare function LeadMessageDtoDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageDtoData;
|
|
32
|
+
export declare function LeadMessageDtoDataToJSON(value?: LeadMessageDtoData | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LeadMessageDtoDataToJSON = exports.LeadMessageDtoDataFromJSONTyped = exports.LeadMessageDtoDataFromJSON = exports.instanceOfLeadMessageDtoData = void 0;
|
|
17
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the LeadMessageDtoData interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfLeadMessageDtoData(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "price" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfLeadMessageDtoData = instanceOfLeadMessageDtoData;
|
|
27
|
+
function LeadMessageDtoDataFromJSON(json) {
|
|
28
|
+
return LeadMessageDtoDataFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.LeadMessageDtoDataFromJSON = LeadMessageDtoDataFromJSON;
|
|
31
|
+
function LeadMessageDtoDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.LeadMessageDtoDataFromJSONTyped = LeadMessageDtoDataFromJSONTyped;
|
|
40
|
+
function LeadMessageDtoDataToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'price': (0, MoneyDto_1.MoneyDtoToJSON)(value.price),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.LeadMessageDtoDataToJSON = LeadMessageDtoDataToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { LeadMessageDto } from './LeadMessageDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListLeadMessagesDto
|
|
17
|
+
*/
|
|
18
|
+
export interface ListLeadMessagesDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<LeadMessageDto>}
|
|
22
|
+
* @memberof ListLeadMessagesDto
|
|
23
|
+
*/
|
|
24
|
+
messages: Array<LeadMessageDto>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ListLeadMessagesDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfListLeadMessagesDto(value: object): boolean;
|
|
30
|
+
export declare function ListLeadMessagesDtoFromJSON(json: any): ListLeadMessagesDto;
|
|
31
|
+
export declare function ListLeadMessagesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListLeadMessagesDto;
|
|
32
|
+
export declare function ListLeadMessagesDtoToJSON(value?: ListLeadMessagesDto | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ListLeadMessagesDtoToJSON = exports.ListLeadMessagesDtoFromJSONTyped = exports.ListLeadMessagesDtoFromJSON = exports.instanceOfListLeadMessagesDto = void 0;
|
|
17
|
+
var LeadMessageDto_1 = require("./LeadMessageDto");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ListLeadMessagesDto interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfListLeadMessagesDto(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "messages" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfListLeadMessagesDto = instanceOfListLeadMessagesDto;
|
|
27
|
+
function ListLeadMessagesDtoFromJSON(json) {
|
|
28
|
+
return ListLeadMessagesDtoFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ListLeadMessagesDtoFromJSON = ListLeadMessagesDtoFromJSON;
|
|
31
|
+
function ListLeadMessagesDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'messages': (json['messages'].map(LeadMessageDto_1.LeadMessageDtoFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.ListLeadMessagesDtoFromJSONTyped = ListLeadMessagesDtoFromJSONTyped;
|
|
40
|
+
function ListLeadMessagesDtoToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'messages': (value.messages.map(LeadMessageDto_1.LeadMessageDtoToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.ListLeadMessagesDtoToJSON = ListLeadMessagesDtoToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export * from './AccountAddressDto';
|
|
2
2
|
export * from './AccountAddressInput';
|
|
3
|
+
export * from './AccountDto';
|
|
3
4
|
export * from './AccountFinancialInput';
|
|
4
5
|
export * from './AccountSettingsInput';
|
|
5
6
|
export * from './BatchUpdate404Response';
|
|
6
7
|
export * from './BatchUpdateDomainsInput';
|
|
7
8
|
export * from './CreateLeadInput';
|
|
9
|
+
export * from './CreateLeadMessageInput';
|
|
10
|
+
export * from './CreateLeadMessageInputData';
|
|
8
11
|
export * from './DeleteDomainsInput';
|
|
9
12
|
export * from './DomainDto';
|
|
10
13
|
export * from './ImportDomainsDto';
|
|
@@ -12,11 +15,17 @@ export * from './IntersectionAccountDtoWithAddressDto';
|
|
|
12
15
|
export * from './IntersectionAccountDtoWithFinancialDto';
|
|
13
16
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
14
17
|
export * from './IntersectionAccountDtoWithSettingsDto';
|
|
18
|
+
export * from './IntersectionDomainDtoWithAccountDto';
|
|
19
|
+
export * from './IntersectionLeadDtoWithLeadDetailsDto';
|
|
15
20
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
16
21
|
export * from './LeadDto';
|
|
22
|
+
export * from './LeadMessageData';
|
|
23
|
+
export * from './LeadMessageDto';
|
|
24
|
+
export * from './LeadMessageDtoData';
|
|
17
25
|
export * from './List200Response';
|
|
18
26
|
export * from './List400Response';
|
|
19
27
|
export * from './List401Response';
|
|
28
|
+
export * from './ListLeadMessagesDto';
|
|
20
29
|
export * from './Login401Response';
|
|
21
30
|
export * from './Login429Response';
|
|
22
31
|
export * from './LoginInput';
|