@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,90 @@
|
|
|
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 { LicenceResource } from './LicenceResource';
|
|
17
|
+
import {
|
|
18
|
+
LicenceResourceFromJSON,
|
|
19
|
+
LicenceResourceFromJSONTyped,
|
|
20
|
+
LicenceResourceToJSON,
|
|
21
|
+
LicenceResourceToJSONTyped,
|
|
22
|
+
} from './LicenceResource';
|
|
23
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
24
|
+
import {
|
|
25
|
+
PagingMetadataFromJSON,
|
|
26
|
+
PagingMetadataFromJSONTyped,
|
|
27
|
+
PagingMetadataToJSON,
|
|
28
|
+
PagingMetadataToJSONTyped,
|
|
29
|
+
} from './PagingMetadata';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedLicenceResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedLicenceResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<LicenceResource>}
|
|
40
|
+
* @memberof PaginatedLicenceResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<LicenceResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedLicenceResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedLicenceResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedLicenceResourceResponse(value: object): value is PaginatedLicenceResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedLicenceResourceResponseFromJSON(json: any): PaginatedLicenceResourceResponse {
|
|
61
|
+
return PaginatedLicenceResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedLicenceResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLicenceResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(LicenceResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedLicenceResourceResponseToJSON(json: any): PaginatedLicenceResourceResponse {
|
|
76
|
+
return PaginatedLicenceResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedLicenceResourceResponseToJSONTyped(value?: PaginatedLicenceResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(LicenceResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SecurityCompanyResource
|
|
46
46
|
*/
|
|
47
|
-
email
|
|
47
|
+
email?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
@@ -82,7 +82,6 @@ export interface SecurityCompanyResource {
|
|
|
82
82
|
*/
|
|
83
83
|
export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
|
|
84
84
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
85
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
86
85
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
87
86
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
88
87
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -101,7 +100,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
101
100
|
|
|
102
101
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
102
|
'name': json['name'],
|
|
104
|
-
'email': json['email'],
|
|
103
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
105
104
|
'isEnabled': json['isEnabled'],
|
|
106
105
|
'address': AddressResourceFromJSON(json['address']),
|
|
107
106
|
'licenceNumber': json['licenceNumber'],
|
package/src/models/index.ts
CHANGED
|
@@ -11,7 +11,20 @@ export * from './AssetResourceArrayResponse';
|
|
|
11
11
|
export * from './GenericResponse';
|
|
12
12
|
export * from './IndexMinimalUserRequest';
|
|
13
13
|
export * from './IndexUserRequest';
|
|
14
|
+
export * from './LicenceListResource';
|
|
15
|
+
export * from './LicenceListResourceArrayResponse';
|
|
16
|
+
export * from './LicenceLiteResource';
|
|
17
|
+
export * from './LicenceLiteResourceArrayResponse';
|
|
18
|
+
export * from './LicenceResource';
|
|
19
|
+
export * from './LicenceResourceArrayResponse';
|
|
20
|
+
export * from './LicencesListAllRequest';
|
|
21
|
+
export * from './LicencesListRequest';
|
|
22
|
+
export * from './LicencesStoreRequest';
|
|
23
|
+
export * from './LicencesUpdateRequest';
|
|
24
|
+
export * from './LicencesVerifyRequest';
|
|
14
25
|
export * from './LoginAuthRequest';
|
|
26
|
+
export * from './PaginatedLicenceListResourceResponse';
|
|
27
|
+
export * from './PaginatedLicenceResourceResponse';
|
|
15
28
|
export * from './PaginatedSecurityCompanyResourceResponse';
|
|
16
29
|
export * from './PaginatedUserResourceResponse';
|
|
17
30
|
export * from './PaginatedVenueResourceResponse';
|