@digital8/security-registers-backend-ts-sdk 0.0.124 → 0.0.126
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 -79
- package/dist/apis/GeneralApi.js +0 -390
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/UserResource.d.ts +0 -6
- package/dist/models/UserResource.js +0 -4
- package/dist/models/UsersRegisterVenueManagerRequest.d.ts +0 -12
- package/dist/models/UsersRegisterVenueManagerRequest.js +0 -4
- 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 -351
- package/src/models/AddressResource.ts +3 -2
- package/src/models/UserResource.ts +0 -9
- package/src/models/UsersRegisterVenueManagerRequest.ts +0 -16
- package/src/models/index.ts +0 -13
- package/dist/models/LicenceListResource.d.ts +0 -81
- package/dist/models/LicenceListResource.js +0 -81
- 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 -111
- package/dist/models/LicenceResource.js +0 -99
- 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 -144
- 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 -188
- 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,63 +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.instanceOfLicencesUpdateRequest = instanceOfLicencesUpdateRequest;
|
|
17
|
-
exports.LicencesUpdateRequestFromJSON = LicencesUpdateRequestFromJSON;
|
|
18
|
-
exports.LicencesUpdateRequestFromJSONTyped = LicencesUpdateRequestFromJSONTyped;
|
|
19
|
-
exports.LicencesUpdateRequestToJSON = LicencesUpdateRequestToJSON;
|
|
20
|
-
exports.LicencesUpdateRequestToJSONTyped = LicencesUpdateRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the LicencesUpdateRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfLicencesUpdateRequest(value) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
function LicencesUpdateRequestFromJSON(json) {
|
|
28
|
-
return LicencesUpdateRequestFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
function LicencesUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'licenceNumber': json['licence_number'] == null ? undefined : json['licence_number'],
|
|
36
|
-
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
37
|
-
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
38
|
-
'expiryDate': json['expiry_date'] == null ? undefined : (new Date(json['expiry_date'])),
|
|
39
|
-
'frontAssetId': json['front_asset_id'] == null ? undefined : json['front_asset_id'],
|
|
40
|
-
'backAssetId': json['back_asset_id'] == null ? undefined : json['back_asset_id'],
|
|
41
|
-
'rsaAssetId': json['rsa_asset_id'] == null ? undefined : json['rsa_asset_id'],
|
|
42
|
-
'firstAidAssetId': json['first_aid_asset_id'] == null ? undefined : json['first_aid_asset_id'],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function LicencesUpdateRequestToJSON(json) {
|
|
46
|
-
return LicencesUpdateRequestToJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
function LicencesUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'licence_number': value['licenceNumber'],
|
|
55
|
-
'first_name': value['firstName'],
|
|
56
|
-
'last_name': value['lastName'],
|
|
57
|
-
'expiry_date': value['expiryDate'] == null ? undefined : ((value['expiryDate']).toISOString()),
|
|
58
|
-
'front_asset_id': value['frontAssetId'],
|
|
59
|
-
'back_asset_id': value['backAssetId'],
|
|
60
|
-
'rsa_asset_id': value['rsaAssetId'],
|
|
61
|
-
'first_aid_asset_id': value['firstAidAssetId'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
@@ -1,64 +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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface LicencesVerifyRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface LicencesVerifyRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof LicencesVerifyRequest
|
|
22
|
-
*/
|
|
23
|
-
state: LicencesVerifyRequestStateEnum;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof LicencesVerifyRequest
|
|
28
|
-
*/
|
|
29
|
-
licenceNumber: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Date}
|
|
33
|
-
* @memberof LicencesVerifyRequest
|
|
34
|
-
*/
|
|
35
|
-
expiryDate: Date;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof LicencesVerifyRequest
|
|
40
|
-
*/
|
|
41
|
-
name: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @export
|
|
45
|
-
*/
|
|
46
|
-
export declare const LicencesVerifyRequestStateEnum: {
|
|
47
|
-
readonly Qld: "QLD";
|
|
48
|
-
readonly Nsw: "NSW";
|
|
49
|
-
readonly Act: "ACT";
|
|
50
|
-
readonly Vic: "VIC";
|
|
51
|
-
readonly Tas: "TAS";
|
|
52
|
-
readonly Sa: "SA";
|
|
53
|
-
readonly Wa: "WA";
|
|
54
|
-
readonly Nt: "NT";
|
|
55
|
-
};
|
|
56
|
-
export type LicencesVerifyRequestStateEnum = typeof LicencesVerifyRequestStateEnum[keyof typeof LicencesVerifyRequestStateEnum];
|
|
57
|
-
/**
|
|
58
|
-
* Check if a given object implements the LicencesVerifyRequest interface.
|
|
59
|
-
*/
|
|
60
|
-
export declare function instanceOfLicencesVerifyRequest(value: object): value is LicencesVerifyRequest;
|
|
61
|
-
export declare function LicencesVerifyRequestFromJSON(json: any): LicencesVerifyRequest;
|
|
62
|
-
export declare function LicencesVerifyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesVerifyRequest;
|
|
63
|
-
export declare function LicencesVerifyRequestToJSON(json: any): LicencesVerifyRequest;
|
|
64
|
-
export declare function LicencesVerifyRequestToJSONTyped(value?: LicencesVerifyRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,77 +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.LicencesVerifyRequestStateEnum = void 0;
|
|
17
|
-
exports.instanceOfLicencesVerifyRequest = instanceOfLicencesVerifyRequest;
|
|
18
|
-
exports.LicencesVerifyRequestFromJSON = LicencesVerifyRequestFromJSON;
|
|
19
|
-
exports.LicencesVerifyRequestFromJSONTyped = LicencesVerifyRequestFromJSONTyped;
|
|
20
|
-
exports.LicencesVerifyRequestToJSON = LicencesVerifyRequestToJSON;
|
|
21
|
-
exports.LicencesVerifyRequestToJSONTyped = LicencesVerifyRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.LicencesVerifyRequestStateEnum = {
|
|
26
|
-
Qld: 'QLD',
|
|
27
|
-
Nsw: 'NSW',
|
|
28
|
-
Act: 'ACT',
|
|
29
|
-
Vic: 'VIC',
|
|
30
|
-
Tas: 'TAS',
|
|
31
|
-
Sa: 'SA',
|
|
32
|
-
Wa: 'WA',
|
|
33
|
-
Nt: 'NT'
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Check if a given object implements the LicencesVerifyRequest interface.
|
|
37
|
-
*/
|
|
38
|
-
function instanceOfLicencesVerifyRequest(value) {
|
|
39
|
-
if (!('state' in value) || value['state'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
if (!('expiryDate' in value) || value['expiryDate'] === undefined)
|
|
44
|
-
return false;
|
|
45
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
46
|
-
return false;
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
function LicencesVerifyRequestFromJSON(json) {
|
|
50
|
-
return LicencesVerifyRequestFromJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
function LicencesVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
-
if (json == null) {
|
|
54
|
-
return json;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'state': json['state'],
|
|
58
|
-
'licenceNumber': json['licence_number'],
|
|
59
|
-
'expiryDate': (new Date(json['expiry_date'])),
|
|
60
|
-
'name': json['name'],
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
function LicencesVerifyRequestToJSON(json) {
|
|
64
|
-
return LicencesVerifyRequestToJSONTyped(json, false);
|
|
65
|
-
}
|
|
66
|
-
function LicencesVerifyRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
|
-
if (value == null) {
|
|
69
|
-
return value;
|
|
70
|
-
}
|
|
71
|
-
return {
|
|
72
|
-
'state': value['state'],
|
|
73
|
-
'licence_number': value['licenceNumber'],
|
|
74
|
-
'expiry_date': ((value['expiryDate']).toISOString()),
|
|
75
|
-
'name': value['name'],
|
|
76
|
-
};
|
|
77
|
-
}
|
|
@@ -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,144 +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 {UserRelationResource}
|
|
39
|
-
* @memberof LicenceListResource
|
|
40
|
-
*/
|
|
41
|
-
user: UserRelationResource | null;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {object}
|
|
45
|
-
* @memberof LicenceListResource
|
|
46
|
-
*/
|
|
47
|
-
state: object;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof LicenceListResource
|
|
52
|
-
*/
|
|
53
|
-
licenceNumber: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof LicenceListResource
|
|
58
|
-
*/
|
|
59
|
-
firstName: string;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof LicenceListResource
|
|
64
|
-
*/
|
|
65
|
-
lastName: string;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof LicenceListResource
|
|
70
|
-
*/
|
|
71
|
-
fullName: string;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {Date}
|
|
75
|
-
* @memberof LicenceListResource
|
|
76
|
-
*/
|
|
77
|
-
expiryDate: Date;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {Date}
|
|
81
|
-
* @memberof LicenceListResource
|
|
82
|
-
*/
|
|
83
|
-
createdAt?: Date | null;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Check if a given object implements the LicenceListResource interface.
|
|
88
|
-
*/
|
|
89
|
-
export function instanceOfLicenceListResource(value: object): value is LicenceListResource {
|
|
90
|
-
if (!('user' in value) || value['user'] === undefined) return false;
|
|
91
|
-
if (!('state' in value) || value['state'] === undefined) return false;
|
|
92
|
-
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
93
|
-
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
94
|
-
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
95
|
-
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
96
|
-
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
97
|
-
return true;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function LicenceListResourceFromJSON(json: any): LicenceListResource {
|
|
101
|
-
return LicenceListResourceFromJSONTyped(json, false);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export function LicenceListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceListResource {
|
|
105
|
-
if (json == null) {
|
|
106
|
-
return json;
|
|
107
|
-
}
|
|
108
|
-
return {
|
|
109
|
-
|
|
110
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
111
|
-
'user': UserRelationResourceFromJSON(json['user']),
|
|
112
|
-
'state': json['state'],
|
|
113
|
-
'licenceNumber': json['licenceNumber'],
|
|
114
|
-
'firstName': json['firstName'],
|
|
115
|
-
'lastName': json['lastName'],
|
|
116
|
-
'fullName': json['fullName'],
|
|
117
|
-
'expiryDate': (new Date(json['expiryDate'])),
|
|
118
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export function LicenceListResourceToJSON(json: any): LicenceListResource {
|
|
123
|
-
return LicenceListResourceToJSONTyped(json, false);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export function LicenceListResourceToJSONTyped(value?: LicenceListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
127
|
-
if (value == null) {
|
|
128
|
-
return value;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
return {
|
|
132
|
-
|
|
133
|
-
'id': value['id'],
|
|
134
|
-
'user': UserRelationResourceToJSON(value['user']),
|
|
135
|
-
'state': value['state'],
|
|
136
|
-
'licenceNumber': value['licenceNumber'],
|
|
137
|
-
'firstName': value['firstName'],
|
|
138
|
-
'lastName': value['lastName'],
|
|
139
|
-
'fullName': value['fullName'],
|
|
140
|
-
'expiryDate': ((value['expiryDate']).toISOString()),
|
|
141
|
-
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
|
|
@@ -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
|
-
|