@randock/nameshift-api-client 0.0.11 → 0.0.12
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 +1 -0
- package/dist/apis/LeadsApi.d.ts +12 -1
- package/dist/apis/LeadsApi.js +53 -0
- package/dist/models/IntersectionLeadDto.d.ts +52 -0
- package/dist/models/IntersectionLeadDto.js +64 -0
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +3 -3
- package/dist/models/LeadDto.d.ts +3 -3
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -2
- package/src/apis/LeadsApi.ts +45 -0
- package/src/models/IntersectionLeadDto.ts +96 -0
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +3 -3
- package/src/models/LeadDto.ts +3 -3
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -24,6 +24,7 @@ src/models/IntersectionAccountDtoWithAddressDto.ts
|
|
|
24
24
|
src/models/IntersectionAccountDtoWithFinancialDto.ts
|
|
25
25
|
src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
|
|
26
26
|
src/models/IntersectionAccountDtoWithSettingsDto.ts
|
|
27
|
+
src/models/IntersectionLeadDto.ts
|
|
27
28
|
src/models/IntersectionLeadDtoWithListFieldsDto.ts
|
|
28
29
|
src/models/LeadDto.ts
|
|
29
30
|
src/models/List200Response.ts
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -10,11 +10,22 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { IntersectionLeadDtoWithListFieldsDto } from '../models/index';
|
|
13
|
+
import type { IntersectionLeadDto, IntersectionLeadDtoWithListFieldsDto } from '../models/index';
|
|
14
|
+
export interface GetRequest {
|
|
15
|
+
leadId: string;
|
|
16
|
+
}
|
|
14
17
|
/**
|
|
15
18
|
*
|
|
16
19
|
*/
|
|
17
20
|
export declare class LeadsApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
getRaw(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IntersectionLeadDto>>>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
get(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IntersectionLeadDto>>;
|
|
18
29
|
/**
|
|
19
30
|
*
|
|
20
31
|
*/
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -75,6 +75,59 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function LeadsApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
LeadsApi.prototype.getRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters.leadId === null || requestParameters.leadId === undefined) {
|
|
88
|
+
throw new runtime.RequiredError('leadId', 'Required parameter requestParameters.leadId was null or undefined when calling get.');
|
|
89
|
+
}
|
|
90
|
+
queryParameters = {};
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
93
|
+
token = this.configuration.accessToken;
|
|
94
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
95
|
+
case 1:
|
|
96
|
+
tokenString = _a.sent();
|
|
97
|
+
if (tokenString) {
|
|
98
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
99
|
+
}
|
|
100
|
+
_a.label = 2;
|
|
101
|
+
case 2: return [4 /*yield*/, this.request({
|
|
102
|
+
path: "/leads/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters.leadId))),
|
|
103
|
+
method: 'GET',
|
|
104
|
+
headers: headerParameters,
|
|
105
|
+
query: queryParameters,
|
|
106
|
+
}, initOverrides)];
|
|
107
|
+
case 3:
|
|
108
|
+
response = _a.sent();
|
|
109
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.IntersectionLeadDtoFromJSON); })];
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
LeadsApi.prototype.get = function (requestParameters, initOverrides) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
119
|
+
var response;
|
|
120
|
+
return __generator(this, function (_a) {
|
|
121
|
+
switch (_a.label) {
|
|
122
|
+
case 0: return [4 /*yield*/, this.getRaw(requestParameters, initOverrides)];
|
|
123
|
+
case 1:
|
|
124
|
+
response = _a.sent();
|
|
125
|
+
return [4 /*yield*/, response.value()];
|
|
126
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
};
|
|
78
131
|
/**
|
|
79
132
|
*
|
|
80
133
|
*/
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IntersectionLeadDto
|
|
16
|
+
*/
|
|
17
|
+
export interface IntersectionLeadDto {
|
|
18
|
+
/**
|
|
19
|
+
* The current id
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IntersectionLeadDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The current lead status
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IntersectionLeadDto
|
|
28
|
+
*/
|
|
29
|
+
status: IntersectionLeadDtoStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Created at date
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof IntersectionLeadDto
|
|
34
|
+
*/
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const IntersectionLeadDtoStatusEnum: {
|
|
41
|
+
readonly ACTIVE: "active";
|
|
42
|
+
readonly DELETED: "deleted";
|
|
43
|
+
readonly ARCHIVED: "archived";
|
|
44
|
+
};
|
|
45
|
+
export type IntersectionLeadDtoStatusEnum = typeof IntersectionLeadDtoStatusEnum[keyof typeof IntersectionLeadDtoStatusEnum];
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the IntersectionLeadDto interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfIntersectionLeadDto(value: object): boolean;
|
|
50
|
+
export declare function IntersectionLeadDtoFromJSON(json: any): IntersectionLeadDto;
|
|
51
|
+
export declare function IntersectionLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDto;
|
|
52
|
+
export declare function IntersectionLeadDtoToJSON(value?: IntersectionLeadDto | null): any;
|
|
@@ -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;
|
|
@@ -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
|
*/
|
package/dist/models/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './IntersectionAccountDtoWithAddressDto';
|
|
|
12
12
|
export * from './IntersectionAccountDtoWithFinancialDto';
|
|
13
13
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
14
14
|
export * from './IntersectionAccountDtoWithSettingsDto';
|
|
15
|
+
export * from './IntersectionLeadDto';
|
|
15
16
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
16
17
|
export * from './LeadDto';
|
|
17
18
|
export * from './List200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __exportStar(require("./IntersectionAccountDtoWithAddressDto"), exports);
|
|
|
30
30
|
__exportStar(require("./IntersectionAccountDtoWithFinancialDto"), exports);
|
|
31
31
|
__exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
|
|
32
32
|
__exportStar(require("./IntersectionAccountDtoWithSettingsDto"), exports);
|
|
33
|
+
__exportStar(require("./IntersectionLeadDto"), exports);
|
|
33
34
|
__exportStar(require("./IntersectionLeadDtoWithListFieldsDto"), exports);
|
|
34
35
|
__exportStar(require("./LeadDto"), exports);
|
|
35
36
|
__exportStar(require("./List200Response"), exports);
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@randock/nameshift-api-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "OpenAPI client for @randock/nameshift-api-client",
|
|
5
|
-
"author": "OpenAPI-Generator",
|
|
6
5
|
"main": "./dist/index.js",
|
|
7
6
|
"typings": "./dist/index.d.ts",
|
|
8
7
|
"scripts": {
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -15,21 +15,66 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
IntersectionLeadDto,
|
|
18
19
|
IntersectionLeadDtoWithListFieldsDto,
|
|
19
20
|
UpdateSettings429Response,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
23
|
+
IntersectionLeadDtoFromJSON,
|
|
24
|
+
IntersectionLeadDtoToJSON,
|
|
22
25
|
IntersectionLeadDtoWithListFieldsDtoFromJSON,
|
|
23
26
|
IntersectionLeadDtoWithListFieldsDtoToJSON,
|
|
24
27
|
UpdateSettings429ResponseFromJSON,
|
|
25
28
|
UpdateSettings429ResponseToJSON,
|
|
26
29
|
} from '../models/index';
|
|
27
30
|
|
|
31
|
+
export interface GetRequest {
|
|
32
|
+
leadId: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
28
35
|
/**
|
|
29
36
|
*
|
|
30
37
|
*/
|
|
31
38
|
export class LeadsApi extends runtime.BaseAPI {
|
|
32
39
|
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
async getRaw(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IntersectionLeadDto>>> {
|
|
44
|
+
if (requestParameters.leadId === null || requestParameters.leadId === undefined) {
|
|
45
|
+
throw new runtime.RequiredError('leadId','Required parameter requestParameters.leadId was null or undefined when calling get.');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const queryParameters: any = {};
|
|
49
|
+
|
|
50
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
51
|
+
|
|
52
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
53
|
+
const token = this.configuration.accessToken;
|
|
54
|
+
const tokenString = await token("bearer", []);
|
|
55
|
+
|
|
56
|
+
if (tokenString) {
|
|
57
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const response = await this.request({
|
|
61
|
+
path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters.leadId))),
|
|
62
|
+
method: 'GET',
|
|
63
|
+
headers: headerParameters,
|
|
64
|
+
query: queryParameters,
|
|
65
|
+
}, initOverrides);
|
|
66
|
+
|
|
67
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IntersectionLeadDtoFromJSON));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
async get(requestParameters: GetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IntersectionLeadDto>> {
|
|
74
|
+
const response = await this.getRaw(requestParameters, initOverrides);
|
|
75
|
+
return await response.value();
|
|
76
|
+
}
|
|
77
|
+
|
|
33
78
|
/**
|
|
34
79
|
*
|
|
35
80
|
*/
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IntersectionLeadDto
|
|
20
|
+
*/
|
|
21
|
+
export interface IntersectionLeadDto {
|
|
22
|
+
/**
|
|
23
|
+
* The current id
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IntersectionLeadDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The current lead status
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntersectionLeadDto
|
|
32
|
+
*/
|
|
33
|
+
status: IntersectionLeadDtoStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Created at date
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof IntersectionLeadDto
|
|
38
|
+
*/
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const IntersectionLeadDtoStatusEnum = {
|
|
47
|
+
ACTIVE: 'active',
|
|
48
|
+
DELETED: 'deleted',
|
|
49
|
+
ARCHIVED: 'archived'
|
|
50
|
+
} as const;
|
|
51
|
+
export type IntersectionLeadDtoStatusEnum = typeof IntersectionLeadDtoStatusEnum[keyof typeof IntersectionLeadDtoStatusEnum];
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the IntersectionLeadDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfIntersectionLeadDto(value: object): boolean {
|
|
58
|
+
let isInstance = true;
|
|
59
|
+
isInstance = isInstance && "id" in value;
|
|
60
|
+
isInstance = isInstance && "status" in value;
|
|
61
|
+
isInstance = isInstance && "createdAt" in value;
|
|
62
|
+
|
|
63
|
+
return isInstance;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function IntersectionLeadDtoFromJSON(json: any): IntersectionLeadDto {
|
|
67
|
+
return IntersectionLeadDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function IntersectionLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDto {
|
|
71
|
+
if ((json === undefined) || (json === null)) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'status': json['status'],
|
|
78
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function IntersectionLeadDtoToJSON(value?: IntersectionLeadDto | null): any {
|
|
83
|
+
if (value === undefined) {
|
|
84
|
+
return undefined;
|
|
85
|
+
}
|
|
86
|
+
if (value === null) {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'id': value.id,
|
|
92
|
+
'status': value.status,
|
|
93
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -20,13 +20,13 @@ import { exists, mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface IntersectionLeadDtoWithListFieldsDto {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The current id
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* The current lead status
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
32
32
|
*/
|
|
@@ -44,7 +44,7 @@ export interface IntersectionLeadDtoWithListFieldsDto {
|
|
|
44
44
|
*/
|
|
45
45
|
lastMessageType: IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Created at date
|
|
48
48
|
* @type {Date}
|
|
49
49
|
* @memberof IntersectionLeadDtoWithListFieldsDto
|
|
50
50
|
*/
|
package/src/models/LeadDto.ts
CHANGED
|
@@ -20,19 +20,19 @@ import { exists, mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface LeadDto {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The current id
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof LeadDto
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* The current lead status
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof LeadDto
|
|
32
32
|
*/
|
|
33
33
|
status: LeadDtoStatusEnum;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Created at date
|
|
36
36
|
* @type {Date}
|
|
37
37
|
* @memberof LeadDto
|
|
38
38
|
*/
|
package/src/models/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './IntersectionAccountDtoWithAddressDto';
|
|
|
14
14
|
export * from './IntersectionAccountDtoWithFinancialDto';
|
|
15
15
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
16
16
|
export * from './IntersectionAccountDtoWithSettingsDto';
|
|
17
|
+
export * from './IntersectionLeadDto';
|
|
17
18
|
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
18
19
|
export * from './LeadDto';
|
|
19
20
|
export * from './List200Response';
|