@randock/nameshift-api-client 0.0.77 → 0.0.78
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/README.md +3 -3
- package/dist/apis/LeadsApi.d.ts +9 -3
- package/dist/apis/LeadsApi.js +18 -5
- package/dist/models/List200Response1.d.ts +46 -0
- package/dist/models/List200Response1.js +58 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/LeadsApi.ts +30 -7
- package/src/models/List200Response1.ts +98 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -78,6 +78,7 @@ src/models/LeadMessageDto.ts
|
|
|
78
78
|
src/models/LeadMessageDtoData.ts
|
|
79
79
|
src/models/LeadStatusDto.ts
|
|
80
80
|
src/models/List200Response.ts
|
|
81
|
+
src/models/List200Response1.ts
|
|
81
82
|
src/models/ListAccountDto.ts
|
|
82
83
|
src/models/ListAccounts200Response.ts
|
|
83
84
|
src/models/ListLeadMessagesDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.78
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.78 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
26f0df9c33e8ca76aac6b6a8ee25a1125795885fe9a527297734f58130f052c5181f38e3fe3e19c86941676f612bb2ae
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto,
|
|
13
|
+
import type { CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, List200Response1, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
|
|
14
14
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -24,6 +24,12 @@ export interface LeadsApiGetLeadRequest {
|
|
|
24
24
|
export interface LeadsApiGetMessagesRequest {
|
|
25
25
|
leadId: string;
|
|
26
26
|
}
|
|
27
|
+
export interface LeadsApiListRequest {
|
|
28
|
+
filter?: object;
|
|
29
|
+
page?: number;
|
|
30
|
+
limit?: number;
|
|
31
|
+
sortBy?: Array<string>;
|
|
32
|
+
}
|
|
27
33
|
export interface LeadsApiPutOfferRequest {
|
|
28
34
|
leadId: string;
|
|
29
35
|
putLeadOfferInput: PutLeadOfferInput;
|
|
@@ -67,11 +73,11 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
67
73
|
/**
|
|
68
74
|
*
|
|
69
75
|
*/
|
|
70
|
-
|
|
76
|
+
listRaw(requestParameters: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>>;
|
|
71
77
|
/**
|
|
72
78
|
*
|
|
73
79
|
*/
|
|
74
|
-
|
|
80
|
+
list(requestParameters?: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1>;
|
|
75
81
|
/**
|
|
76
82
|
*
|
|
77
83
|
*/
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -293,13 +293,25 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
293
293
|
/**
|
|
294
294
|
*
|
|
295
295
|
*/
|
|
296
|
-
LeadsApi.prototype.
|
|
296
|
+
LeadsApi.prototype.listRaw = function (requestParameters, initOverrides) {
|
|
297
297
|
return __awaiter(this, void 0, void 0, function () {
|
|
298
298
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
299
299
|
return __generator(this, function (_a) {
|
|
300
300
|
switch (_a.label) {
|
|
301
301
|
case 0:
|
|
302
302
|
queryParameters = {};
|
|
303
|
+
if (requestParameters['filter'] != null) {
|
|
304
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
305
|
+
}
|
|
306
|
+
if (requestParameters['page'] != null) {
|
|
307
|
+
queryParameters['page'] = requestParameters['page'];
|
|
308
|
+
}
|
|
309
|
+
if (requestParameters['limit'] != null) {
|
|
310
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
311
|
+
}
|
|
312
|
+
if (requestParameters['sortBy'] != null) {
|
|
313
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
314
|
+
}
|
|
303
315
|
headerParameters = {};
|
|
304
316
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
305
317
|
token = this.configuration.accessToken;
|
|
@@ -318,7 +330,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
318
330
|
}, initOverrides)];
|
|
319
331
|
case 3:
|
|
320
332
|
response = _a.sent();
|
|
321
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return
|
|
333
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response1FromJSON)(jsonValue); })];
|
|
322
334
|
}
|
|
323
335
|
});
|
|
324
336
|
});
|
|
@@ -326,12 +338,13 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
326
338
|
/**
|
|
327
339
|
*
|
|
328
340
|
*/
|
|
329
|
-
LeadsApi.prototype.
|
|
330
|
-
return __awaiter(this,
|
|
341
|
+
LeadsApi.prototype.list = function () {
|
|
342
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
331
343
|
var response;
|
|
344
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
332
345
|
return __generator(this, function (_a) {
|
|
333
346
|
switch (_a.label) {
|
|
334
|
-
case 0: return [4 /*yield*/, this.
|
|
347
|
+
case 0: return [4 /*yield*/, this.listRaw(requestParameters, initOverrides)];
|
|
335
348
|
case 1:
|
|
336
349
|
response = _a.sent();
|
|
337
350
|
return [4 /*yield*/, response.value()];
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { IntersectionLeadDtoWithListFieldsDto } from './IntersectionLeadDtoWithListFieldsDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface List200Response1
|
|
19
|
+
*/
|
|
20
|
+
export interface List200Response1 {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<IntersectionLeadDtoWithListFieldsDto>}
|
|
24
|
+
* @memberof List200Response1
|
|
25
|
+
*/
|
|
26
|
+
data: Array<IntersectionLeadDtoWithListFieldsDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof List200Response1
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof List200Response1
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the List200Response1 interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfList200Response1(value: object): value is List200Response1;
|
|
44
|
+
export declare function List200Response1FromJSON(json: any): List200Response1;
|
|
45
|
+
export declare function List200Response1FromJSONTyped(json: any, ignoreDiscriminator: boolean): List200Response1;
|
|
46
|
+
export declare function List200Response1ToJSON(value?: List200Response1 | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.List200Response1ToJSON = exports.List200Response1FromJSONTyped = exports.List200Response1FromJSON = exports.instanceOfList200Response1 = void 0;
|
|
17
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
18
|
+
var IntersectionLeadDtoWithListFieldsDto_1 = require("./IntersectionLeadDtoWithListFieldsDto");
|
|
19
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the List200Response1 interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfList200Response1(value) {
|
|
24
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('links' in value) || value['links'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
exports.instanceOfList200Response1 = instanceOfList200Response1;
|
|
33
|
+
function List200Response1FromJSON(json) {
|
|
34
|
+
return List200Response1FromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
exports.List200Response1FromJSON = List200Response1FromJSON;
|
|
37
|
+
function List200Response1FromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'data': (json['data'].map(IntersectionLeadDtoWithListFieldsDto_1.IntersectionLeadDtoWithListFieldsDtoFromJSON)),
|
|
43
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
44
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.List200Response1FromJSONTyped = List200Response1FromJSONTyped;
|
|
48
|
+
function List200Response1ToJSON(value) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'data': (value['data'].map(IntersectionLeadDtoWithListFieldsDto_1.IntersectionLeadDtoWithListFieldsDtoToJSON)),
|
|
54
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
55
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.List200Response1ToJSON = List200Response1ToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export * from './LeadMessageDto';
|
|
|
58
58
|
export * from './LeadMessageDtoData';
|
|
59
59
|
export * from './LeadStatusDto';
|
|
60
60
|
export * from './List200Response';
|
|
61
|
+
export * from './List200Response1';
|
|
61
62
|
export * from './ListAccountDto';
|
|
62
63
|
export * from './ListAccounts200Response';
|
|
63
64
|
export * from './ListLeadMessagesDto';
|
package/dist/models/index.js
CHANGED
|
@@ -76,6 +76,7 @@ __exportStar(require("./LeadMessageDto"), exports);
|
|
|
76
76
|
__exportStar(require("./LeadMessageDtoData"), exports);
|
|
77
77
|
__exportStar(require("./LeadStatusDto"), exports);
|
|
78
78
|
__exportStar(require("./List200Response"), exports);
|
|
79
|
+
__exportStar(require("./List200Response1"), exports);
|
|
79
80
|
__exportStar(require("./ListAccountDto"), exports);
|
|
80
81
|
__exportStar(require("./ListAccounts200Response"), exports);
|
|
81
82
|
__exportStar(require("./ListLeadMessagesDto"), exports);
|
package/package.json
CHANGED
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -17,7 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
CreateLeadMessageInput,
|
|
19
19
|
IntersectionLeadDtoWithLeadDetailsDto,
|
|
20
|
-
|
|
20
|
+
List200Response1,
|
|
21
21
|
ListLeadMessagesDto,
|
|
22
22
|
ObjectId,
|
|
23
23
|
PutLeadOfferInput,
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
CreateLeadMessageInputToJSON,
|
|
30
30
|
IntersectionLeadDtoWithLeadDetailsDtoFromJSON,
|
|
31
31
|
IntersectionLeadDtoWithLeadDetailsDtoToJSON,
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
List200Response1FromJSON,
|
|
33
|
+
List200Response1ToJSON,
|
|
34
34
|
ListLeadMessagesDtoFromJSON,
|
|
35
35
|
ListLeadMessagesDtoToJSON,
|
|
36
36
|
ObjectIdFromJSON,
|
|
@@ -60,6 +60,13 @@ export interface LeadsApiGetMessagesRequest {
|
|
|
60
60
|
leadId: string;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
export interface LeadsApiListRequest {
|
|
64
|
+
filter?: object;
|
|
65
|
+
page?: number;
|
|
66
|
+
limit?: number;
|
|
67
|
+
sortBy?: Array<string>;
|
|
68
|
+
}
|
|
69
|
+
|
|
63
70
|
export interface LeadsApiPutOfferRequest {
|
|
64
71
|
leadId: string;
|
|
65
72
|
putLeadOfferInput: PutLeadOfferInput;
|
|
@@ -246,9 +253,25 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
246
253
|
/**
|
|
247
254
|
*
|
|
248
255
|
*/
|
|
249
|
-
async
|
|
256
|
+
async listRaw(requestParameters: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>> {
|
|
250
257
|
const queryParameters: any = {};
|
|
251
258
|
|
|
259
|
+
if (requestParameters['filter'] != null) {
|
|
260
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (requestParameters['page'] != null) {
|
|
264
|
+
queryParameters['page'] = requestParameters['page'];
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (requestParameters['limit'] != null) {
|
|
268
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
if (requestParameters['sortBy'] != null) {
|
|
272
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
273
|
+
}
|
|
274
|
+
|
|
252
275
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
253
276
|
|
|
254
277
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -266,14 +289,14 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
266
289
|
query: queryParameters,
|
|
267
290
|
}, initOverrides);
|
|
268
291
|
|
|
269
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
292
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => List200Response1FromJSON(jsonValue));
|
|
270
293
|
}
|
|
271
294
|
|
|
272
295
|
/**
|
|
273
296
|
*
|
|
274
297
|
*/
|
|
275
|
-
async
|
|
276
|
-
const response = await this.
|
|
298
|
+
async list(requestParameters: LeadsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1> {
|
|
299
|
+
const response = await this.listRaw(requestParameters, initOverrides);
|
|
277
300
|
return await response.value();
|
|
278
301
|
}
|
|
279
302
|
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
} from './PaginateResponseLinks';
|
|
22
|
+
import type { IntersectionLeadDtoWithListFieldsDto } from './IntersectionLeadDtoWithListFieldsDto';
|
|
23
|
+
import {
|
|
24
|
+
IntersectionLeadDtoWithListFieldsDtoFromJSON,
|
|
25
|
+
IntersectionLeadDtoWithListFieldsDtoFromJSONTyped,
|
|
26
|
+
IntersectionLeadDtoWithListFieldsDtoToJSON,
|
|
27
|
+
} from './IntersectionLeadDtoWithListFieldsDto';
|
|
28
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
|
+
import {
|
|
30
|
+
PaginateResponseMetaFromJSON,
|
|
31
|
+
PaginateResponseMetaFromJSONTyped,
|
|
32
|
+
PaginateResponseMetaToJSON,
|
|
33
|
+
} from './PaginateResponseMeta';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface List200Response1
|
|
39
|
+
*/
|
|
40
|
+
export interface List200Response1 {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<IntersectionLeadDtoWithListFieldsDto>}
|
|
44
|
+
* @memberof List200Response1
|
|
45
|
+
*/
|
|
46
|
+
data: Array<IntersectionLeadDtoWithListFieldsDto>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {PaginateResponseMeta}
|
|
50
|
+
* @memberof List200Response1
|
|
51
|
+
*/
|
|
52
|
+
meta: PaginateResponseMeta;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {PaginateResponseLinks}
|
|
56
|
+
* @memberof List200Response1
|
|
57
|
+
*/
|
|
58
|
+
links: PaginateResponseLinks;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the List200Response1 interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfList200Response1(value: object): value is List200Response1 {
|
|
65
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
66
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
67
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function List200Response1FromJSON(json: any): List200Response1 {
|
|
72
|
+
return List200Response1FromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function List200Response1FromJSONTyped(json: any, ignoreDiscriminator: boolean): List200Response1 {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'data': ((json['data'] as Array<any>).map(IntersectionLeadDtoWithListFieldsDtoFromJSON)),
|
|
82
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
83
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function List200Response1ToJSON(value?: List200Response1 | null): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'data': ((value['data'] as Array<any>).map(IntersectionLeadDtoWithListFieldsDtoToJSON)),
|
|
94
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
95
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -60,6 +60,7 @@ export * from './LeadMessageDto';
|
|
|
60
60
|
export * from './LeadMessageDtoData';
|
|
61
61
|
export * from './LeadStatusDto';
|
|
62
62
|
export * from './List200Response';
|
|
63
|
+
export * from './List200Response1';
|
|
63
64
|
export * from './ListAccountDto';
|
|
64
65
|
export * from './ListAccounts200Response';
|
|
65
66
|
export * from './ListLeadMessagesDto';
|