@digital8/security-registers-backend-ts-sdk 0.0.120 → 0.0.121
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 +0 -13
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +1 -80
- package/dist/apis/GeneralApi.js +0 -393
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/index.d.ts +0 -13
- package/dist/models/index.js +0 -13
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +0 -360
- package/src/models/AssetResource.ts +2 -3
- package/src/models/index.ts +0 -13
- package/dist/models/LicenceListResource.d.ts +0 -87
- package/dist/models/LicenceListResource.js +0 -83
- package/dist/models/LicenceListResourceArrayResponse.d.ts +0 -33
- package/dist/models/LicenceListResourceArrayResponse.js +0 -50
- package/dist/models/LicenceLiteResource.d.ts +0 -44
- package/dist/models/LicenceLiteResource.js +0 -57
- package/dist/models/LicenceLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/LicenceLiteResourceArrayResponse.js +0 -50
- package/dist/models/LicenceResource.d.ts +0 -117
- package/dist/models/LicenceResource.js +0 -93
- package/dist/models/LicenceResourceArrayResponse.d.ts +0 -33
- package/dist/models/LicenceResourceArrayResponse.js +0 -50
- package/dist/models/LicencesListAllRequest.d.ts +0 -92
- package/dist/models/LicencesListAllRequest.js +0 -83
- package/dist/models/LicencesListRequest.d.ts +0 -116
- package/dist/models/LicencesListRequest.js +0 -91
- package/dist/models/LicencesStoreRequest.d.ts +0 -100
- package/dist/models/LicencesStoreRequest.js +0 -95
- package/dist/models/LicencesUpdateRequest.d.ts +0 -74
- package/dist/models/LicencesUpdateRequest.js +0 -63
- package/dist/models/LicencesVerifyRequest.d.ts +0 -64
- package/dist/models/LicencesVerifyRequest.js +0 -77
- package/dist/models/PaginatedLicenceListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedLicenceListResourceResponse.js +0 -57
- package/dist/models/PaginatedLicenceResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedLicenceResourceResponse.js +0 -57
- package/src/models/LicenceListResource.ts +0 -152
- package/src/models/LicenceListResourceArrayResponse.ts +0 -73
- package/src/models/LicenceLiteResource.ts +0 -83
- package/src/models/LicenceLiteResourceArrayResponse.ts +0 -73
- package/src/models/LicenceResource.ts +0 -192
- package/src/models/LicenceResourceArrayResponse.ts +0 -73
- package/src/models/LicencesListAllRequest.ts +0 -142
- package/src/models/LicencesListRequest.ts +0 -174
- package/src/models/LicencesStoreRequest.ts +0 -161
- package/src/models/LicencesUpdateRequest.ts +0 -121
- package/src/models/LicencesVerifyRequest.ts +0 -110
- package/src/models/PaginatedLicenceListResourceResponse.ts +0 -90
- package/src/models/PaginatedLicenceResourceResponse.ts +0 -90
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
-
import type { LicenceListResource } from './LicenceListResource';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface PaginatedLicenceListResourceResponse
|
|
18
|
-
*/
|
|
19
|
-
export interface PaginatedLicenceListResourceResponse {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {Array<LicenceListResource>}
|
|
23
|
-
* @memberof PaginatedLicenceListResourceResponse
|
|
24
|
-
*/
|
|
25
|
-
data: Array<LicenceListResource>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {PagingMetadata}
|
|
29
|
-
* @memberof PaginatedLicenceListResourceResponse
|
|
30
|
-
*/
|
|
31
|
-
meta: PagingMetadata;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Check if a given object implements the PaginatedLicenceListResourceResponse interface.
|
|
35
|
-
*/
|
|
36
|
-
export declare function instanceOfPaginatedLicenceListResourceResponse(value: object): value is PaginatedLicenceListResourceResponse;
|
|
37
|
-
export declare function PaginatedLicenceListResourceResponseFromJSON(json: any): PaginatedLicenceListResourceResponse;
|
|
38
|
-
export declare function PaginatedLicenceListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLicenceListResourceResponse;
|
|
39
|
-
export declare function PaginatedLicenceListResourceResponseToJSON(json: any): PaginatedLicenceListResourceResponse;
|
|
40
|
-
export declare function PaginatedLicenceListResourceResponseToJSONTyped(value?: PaginatedLicenceListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.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.instanceOfPaginatedLicenceListResourceResponse = instanceOfPaginatedLicenceListResourceResponse;
|
|
17
|
-
exports.PaginatedLicenceListResourceResponseFromJSON = PaginatedLicenceListResourceResponseFromJSON;
|
|
18
|
-
exports.PaginatedLicenceListResourceResponseFromJSONTyped = PaginatedLicenceListResourceResponseFromJSONTyped;
|
|
19
|
-
exports.PaginatedLicenceListResourceResponseToJSON = PaginatedLicenceListResourceResponseToJSON;
|
|
20
|
-
exports.PaginatedLicenceListResourceResponseToJSONTyped = PaginatedLicenceListResourceResponseToJSONTyped;
|
|
21
|
-
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
-
var LicenceListResource_1 = require("./LicenceListResource");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the PaginatedLicenceListResourceResponse interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfPaginatedLicenceListResourceResponse(value) {
|
|
27
|
-
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function PaginatedLicenceListResourceResponseFromJSON(json) {
|
|
34
|
-
return PaginatedLicenceListResourceResponseFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function PaginatedLicenceListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'data': (json['data'].map(LicenceListResource_1.LicenceListResourceFromJSON)),
|
|
42
|
-
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function PaginatedLicenceListResourceResponseToJSON(json) {
|
|
46
|
-
return PaginatedLicenceListResourceResponseToJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
function PaginatedLicenceListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'data': (value['data'].map(LicenceListResource_1.LicenceListResourceToJSON)),
|
|
55
|
-
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.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 { LicenceResource } from './LicenceResource';
|
|
13
|
-
import type { PagingMetadata } from './PagingMetadata';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface PaginatedLicenceResourceResponse
|
|
18
|
-
*/
|
|
19
|
-
export interface PaginatedLicenceResourceResponse {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {Array<LicenceResource>}
|
|
23
|
-
* @memberof PaginatedLicenceResourceResponse
|
|
24
|
-
*/
|
|
25
|
-
data: Array<LicenceResource>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {PagingMetadata}
|
|
29
|
-
* @memberof PaginatedLicenceResourceResponse
|
|
30
|
-
*/
|
|
31
|
-
meta: PagingMetadata;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Check if a given object implements the PaginatedLicenceResourceResponse interface.
|
|
35
|
-
*/
|
|
36
|
-
export declare function instanceOfPaginatedLicenceResourceResponse(value: object): value is PaginatedLicenceResourceResponse;
|
|
37
|
-
export declare function PaginatedLicenceResourceResponseFromJSON(json: any): PaginatedLicenceResourceResponse;
|
|
38
|
-
export declare function PaginatedLicenceResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLicenceResourceResponse;
|
|
39
|
-
export declare function PaginatedLicenceResourceResponseToJSON(json: any): PaginatedLicenceResourceResponse;
|
|
40
|
-
export declare function PaginatedLicenceResourceResponseToJSONTyped(value?: PaginatedLicenceResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.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.instanceOfPaginatedLicenceResourceResponse = instanceOfPaginatedLicenceResourceResponse;
|
|
17
|
-
exports.PaginatedLicenceResourceResponseFromJSON = PaginatedLicenceResourceResponseFromJSON;
|
|
18
|
-
exports.PaginatedLicenceResourceResponseFromJSONTyped = PaginatedLicenceResourceResponseFromJSONTyped;
|
|
19
|
-
exports.PaginatedLicenceResourceResponseToJSON = PaginatedLicenceResourceResponseToJSON;
|
|
20
|
-
exports.PaginatedLicenceResourceResponseToJSONTyped = PaginatedLicenceResourceResponseToJSONTyped;
|
|
21
|
-
var LicenceResource_1 = require("./LicenceResource");
|
|
22
|
-
var PagingMetadata_1 = require("./PagingMetadata");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the PaginatedLicenceResourceResponse interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfPaginatedLicenceResourceResponse(value) {
|
|
27
|
-
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function PaginatedLicenceResourceResponseFromJSON(json) {
|
|
34
|
-
return PaginatedLicenceResourceResponseFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function PaginatedLicenceResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'data': (json['data'].map(LicenceResource_1.LicenceResourceFromJSON)),
|
|
42
|
-
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function PaginatedLicenceResourceResponseToJSON(json) {
|
|
46
|
-
return PaginatedLicenceResourceResponseToJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
function PaginatedLicenceResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'data': (value['data'].map(LicenceResource_1.LicenceResourceToJSON)),
|
|
55
|
-
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.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 { UserRelationResource } from './UserRelationResource';
|
|
17
|
-
import {
|
|
18
|
-
UserRelationResourceFromJSON,
|
|
19
|
-
UserRelationResourceFromJSONTyped,
|
|
20
|
-
UserRelationResourceToJSON,
|
|
21
|
-
UserRelationResourceToJSONTyped,
|
|
22
|
-
} from './UserRelationResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface LicenceListResource
|
|
28
|
-
*/
|
|
29
|
-
export interface LicenceListResource {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof LicenceListResource
|
|
34
|
-
*/
|
|
35
|
-
id?: number | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof LicenceListResource
|
|
40
|
-
*/
|
|
41
|
-
userId?: number | null;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {UserRelationResource}
|
|
45
|
-
* @memberof LicenceListResource
|
|
46
|
-
*/
|
|
47
|
-
user: UserRelationResource | null;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {object}
|
|
51
|
-
* @memberof LicenceListResource
|
|
52
|
-
*/
|
|
53
|
-
state: object;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof LicenceListResource
|
|
58
|
-
*/
|
|
59
|
-
licenceNumber: string;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof LicenceListResource
|
|
64
|
-
*/
|
|
65
|
-
firstName: string;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof LicenceListResource
|
|
70
|
-
*/
|
|
71
|
-
lastName: string;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof LicenceListResource
|
|
76
|
-
*/
|
|
77
|
-
fullName: string;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {Date}
|
|
81
|
-
* @memberof LicenceListResource
|
|
82
|
-
*/
|
|
83
|
-
expiryDate: Date;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {Date}
|
|
87
|
-
* @memberof LicenceListResource
|
|
88
|
-
*/
|
|
89
|
-
createdAt?: Date | null;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Check if a given object implements the LicenceListResource interface.
|
|
94
|
-
*/
|
|
95
|
-
export function instanceOfLicenceListResource(value: object): value is LicenceListResource {
|
|
96
|
-
if (!('user' in value) || value['user'] === undefined) return false;
|
|
97
|
-
if (!('state' in value) || value['state'] === undefined) return false;
|
|
98
|
-
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
99
|
-
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
100
|
-
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
101
|
-
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
102
|
-
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
103
|
-
return true;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export function LicenceListResourceFromJSON(json: any): LicenceListResource {
|
|
107
|
-
return LicenceListResourceFromJSONTyped(json, false);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export function LicenceListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceListResource {
|
|
111
|
-
if (json == null) {
|
|
112
|
-
return json;
|
|
113
|
-
}
|
|
114
|
-
return {
|
|
115
|
-
|
|
116
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
117
|
-
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
118
|
-
'user': UserRelationResourceFromJSON(json['user']),
|
|
119
|
-
'state': json['state'],
|
|
120
|
-
'licenceNumber': json['licenceNumber'],
|
|
121
|
-
'firstName': json['firstName'],
|
|
122
|
-
'lastName': json['lastName'],
|
|
123
|
-
'fullName': json['fullName'],
|
|
124
|
-
'expiryDate': (new Date(json['expiryDate'])),
|
|
125
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export function LicenceListResourceToJSON(json: any): LicenceListResource {
|
|
130
|
-
return LicenceListResourceToJSONTyped(json, false);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export function LicenceListResourceToJSONTyped(value?: LicenceListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
134
|
-
if (value == null) {
|
|
135
|
-
return value;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
return {
|
|
139
|
-
|
|
140
|
-
'id': value['id'],
|
|
141
|
-
'userId': value['userId'],
|
|
142
|
-
'user': UserRelationResourceToJSON(value['user']),
|
|
143
|
-
'state': value['state'],
|
|
144
|
-
'licenceNumber': value['licenceNumber'],
|
|
145
|
-
'firstName': value['firstName'],
|
|
146
|
-
'lastName': value['lastName'],
|
|
147
|
-
'fullName': value['fullName'],
|
|
148
|
-
'expiryDate': ((value['expiryDate']).toISOString()),
|
|
149
|
-
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.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 { LicenceListResource } from './LicenceListResource';
|
|
17
|
-
import {
|
|
18
|
-
LicenceListResourceFromJSON,
|
|
19
|
-
LicenceListResourceFromJSONTyped,
|
|
20
|
-
LicenceListResourceToJSON,
|
|
21
|
-
LicenceListResourceToJSONTyped,
|
|
22
|
-
} from './LicenceListResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface LicenceListResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface LicenceListResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<LicenceListResource>}
|
|
33
|
-
* @memberof LicenceListResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<LicenceListResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the LicenceListResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfLicenceListResourceArrayResponse(value: object): value is LicenceListResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function LicenceListResourceArrayResponseFromJSON(json: any): LicenceListResourceArrayResponse {
|
|
46
|
-
return LicenceListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function LicenceListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceListResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LicenceListResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function LicenceListResourceArrayResponseToJSON(json: any): LicenceListResourceArrayResponse {
|
|
60
|
-
return LicenceListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function LicenceListResourceArrayResponseToJSONTyped(value?: LicenceListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(LicenceListResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.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 LicenceLiteResource
|
|
20
|
-
*/
|
|
21
|
-
export interface LicenceLiteResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof LicenceLiteResource
|
|
26
|
-
*/
|
|
27
|
-
id?: number | null;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof LicenceLiteResource
|
|
32
|
-
*/
|
|
33
|
-
licenceNumber: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {object}
|
|
37
|
-
* @memberof LicenceLiteResource
|
|
38
|
-
*/
|
|
39
|
-
state: object;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the LicenceLiteResource interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfLicenceLiteResource(value: object): value is LicenceLiteResource {
|
|
46
|
-
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
47
|
-
if (!('state' in value) || value['state'] === undefined) return false;
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function LicenceLiteResourceFromJSON(json: any): LicenceLiteResource {
|
|
52
|
-
return LicenceLiteResourceFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function LicenceLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceLiteResource {
|
|
56
|
-
if (json == null) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
62
|
-
'licenceNumber': json['licenceNumber'],
|
|
63
|
-
'state': json['state'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function LicenceLiteResourceToJSON(json: any): LicenceLiteResource {
|
|
68
|
-
return LicenceLiteResourceToJSONTyped(json, false);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function LicenceLiteResourceToJSONTyped(value?: LicenceLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
-
if (value == null) {
|
|
73
|
-
return value;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return {
|
|
77
|
-
|
|
78
|
-
'id': value['id'],
|
|
79
|
-
'licenceNumber': value['licenceNumber'],
|
|
80
|
-
'state': value['state'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.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 { LicenceLiteResource } from './LicenceLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
LicenceLiteResourceFromJSON,
|
|
19
|
-
LicenceLiteResourceFromJSONTyped,
|
|
20
|
-
LicenceLiteResourceToJSON,
|
|
21
|
-
LicenceLiteResourceToJSONTyped,
|
|
22
|
-
} from './LicenceLiteResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface LicenceLiteResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface LicenceLiteResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<LicenceLiteResource>}
|
|
33
|
-
* @memberof LicenceLiteResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<LicenceLiteResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the LicenceLiteResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfLicenceLiteResourceArrayResponse(value: object): value is LicenceLiteResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function LicenceLiteResourceArrayResponseFromJSON(json: any): LicenceLiteResourceArrayResponse {
|
|
46
|
-
return LicenceLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function LicenceLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceLiteResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LicenceLiteResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function LicenceLiteResourceArrayResponseToJSON(json: any): LicenceLiteResourceArrayResponse {
|
|
60
|
-
return LicenceLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function LicenceLiteResourceArrayResponseToJSONTyped(value?: LicenceLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(LicenceLiteResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|