@digital8/security-registers-backend-ts-sdk 0.0.121 → 0.0.123
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 +13 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +79 -1
- package/dist/apis/GeneralApi.js +390 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/LicenceListResource.d.ts +81 -0
- package/dist/models/LicenceListResource.js +81 -0
- package/dist/models/LicenceListResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceListResourceArrayResponse.js +50 -0
- package/dist/models/LicenceLiteResource.d.ts +44 -0
- package/dist/models/LicenceLiteResource.js +57 -0
- package/dist/models/LicenceLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceLiteResourceArrayResponse.js +50 -0
- package/dist/models/LicenceResource.d.ts +111 -0
- package/dist/models/LicenceResource.js +99 -0
- package/dist/models/LicenceResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceResourceArrayResponse.js +50 -0
- package/dist/models/LicencesListAllRequest.d.ts +92 -0
- package/dist/models/LicencesListAllRequest.js +83 -0
- package/dist/models/LicencesListRequest.d.ts +116 -0
- package/dist/models/LicencesListRequest.js +91 -0
- package/dist/models/LicencesStoreRequest.d.ts +100 -0
- package/dist/models/LicencesStoreRequest.js +95 -0
- package/dist/models/LicencesUpdateRequest.d.ts +74 -0
- package/dist/models/LicencesUpdateRequest.js +63 -0
- package/dist/models/LicencesVerifyRequest.d.ts +64 -0
- package/dist/models/LicencesVerifyRequest.js +77 -0
- package/dist/models/PaginatedLicenceListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLicenceListResourceResponse.js +57 -0
- package/dist/models/PaginatedLicenceResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLicenceResourceResponse.js +57 -0
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +351 -0
- package/src/models/AddressResource.ts +3 -2
- package/src/models/LicenceListResource.ts +144 -0
- package/src/models/LicenceListResourceArrayResponse.ts +73 -0
- package/src/models/LicenceLiteResource.ts +83 -0
- package/src/models/LicenceLiteResourceArrayResponse.ts +73 -0
- package/src/models/LicenceResource.ts +188 -0
- package/src/models/LicenceResourceArrayResponse.ts +73 -0
- package/src/models/LicencesListAllRequest.ts +142 -0
- package/src/models/LicencesListRequest.ts +174 -0
- package/src/models/LicencesStoreRequest.ts +161 -0
- package/src/models/LicencesUpdateRequest.ts +121 -0
- package/src/models/LicencesVerifyRequest.ts +110 -0
- package/src/models/PaginatedLicenceListResourceResponse.ts +90 -0
- package/src/models/PaginatedLicenceResourceResponse.ts +90 -0
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/index.ts +13 -0
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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;
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
}
|
|
@@ -25,8 +25,6 @@ var AddressResource_1 = require("./AddressResource");
|
|
|
25
25
|
function instanceOfSecurityCompanyResource(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
-
return false;
|
|
30
28
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
31
29
|
return false;
|
|
32
30
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -45,7 +43,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
43
|
return {
|
|
46
44
|
'id': json['id'] == null ? undefined : json['id'],
|
|
47
45
|
'name': json['name'],
|
|
48
|
-
'email': json['email'],
|
|
46
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
49
47
|
'isEnabled': json['isEnabled'],
|
|
50
48
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
51
49
|
'licenceNumber': json['licenceNumber'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -9,7 +9,20 @@ export * from './AssetResourceArrayResponse';
|
|
|
9
9
|
export * from './GenericResponse';
|
|
10
10
|
export * from './IndexMinimalUserRequest';
|
|
11
11
|
export * from './IndexUserRequest';
|
|
12
|
+
export * from './LicenceListResource';
|
|
13
|
+
export * from './LicenceListResourceArrayResponse';
|
|
14
|
+
export * from './LicenceLiteResource';
|
|
15
|
+
export * from './LicenceLiteResourceArrayResponse';
|
|
16
|
+
export * from './LicenceResource';
|
|
17
|
+
export * from './LicenceResourceArrayResponse';
|
|
18
|
+
export * from './LicencesListAllRequest';
|
|
19
|
+
export * from './LicencesListRequest';
|
|
20
|
+
export * from './LicencesStoreRequest';
|
|
21
|
+
export * from './LicencesUpdateRequest';
|
|
22
|
+
export * from './LicencesVerifyRequest';
|
|
12
23
|
export * from './LoginAuthRequest';
|
|
24
|
+
export * from './PaginatedLicenceListResourceResponse';
|
|
25
|
+
export * from './PaginatedLicenceResourceResponse';
|
|
13
26
|
export * from './PaginatedSecurityCompanyResourceResponse';
|
|
14
27
|
export * from './PaginatedUserResourceResponse';
|
|
15
28
|
export * from './PaginatedVenueResourceResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -27,7 +27,20 @@ __exportStar(require("./AssetResourceArrayResponse"), exports);
|
|
|
27
27
|
__exportStar(require("./GenericResponse"), exports);
|
|
28
28
|
__exportStar(require("./IndexMinimalUserRequest"), exports);
|
|
29
29
|
__exportStar(require("./IndexUserRequest"), exports);
|
|
30
|
+
__exportStar(require("./LicenceListResource"), exports);
|
|
31
|
+
__exportStar(require("./LicenceListResourceArrayResponse"), exports);
|
|
32
|
+
__exportStar(require("./LicenceLiteResource"), exports);
|
|
33
|
+
__exportStar(require("./LicenceLiteResourceArrayResponse"), exports);
|
|
34
|
+
__exportStar(require("./LicenceResource"), exports);
|
|
35
|
+
__exportStar(require("./LicenceResourceArrayResponse"), exports);
|
|
36
|
+
__exportStar(require("./LicencesListAllRequest"), exports);
|
|
37
|
+
__exportStar(require("./LicencesListRequest"), exports);
|
|
38
|
+
__exportStar(require("./LicencesStoreRequest"), exports);
|
|
39
|
+
__exportStar(require("./LicencesUpdateRequest"), exports);
|
|
40
|
+
__exportStar(require("./LicencesVerifyRequest"), exports);
|
|
30
41
|
__exportStar(require("./LoginAuthRequest"), exports);
|
|
42
|
+
__exportStar(require("./PaginatedLicenceListResourceResponse"), exports);
|
|
43
|
+
__exportStar(require("./PaginatedLicenceResourceResponse"), exports);
|
|
31
44
|
__exportStar(require("./PaginatedSecurityCompanyResourceResponse"), exports);
|
|
32
45
|
__exportStar(require("./PaginatedUserResourceResponse"), exports);
|
|
33
46
|
__exportStar(require("./PaginatedVenueResourceResponse"), exports);
|
package/package.json
CHANGED