@digital8/security-registers-backend-ts-sdk 0.0.742 → 0.0.744

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.
Files changed (45) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +9 -9
  4. package/dist/apis/GeneralApi.js +4 -4
  5. package/dist/models/LicenceCheckLogListResource.d.ts +75 -0
  6. package/dist/models/LicenceCheckLogListResource.js +75 -0
  7. package/dist/models/LicenceCheckLogListResourceArrayResponse.d.ts +33 -0
  8. package/dist/models/LicenceCheckLogListResourceArrayResponse.js +50 -0
  9. package/dist/models/PaginatedLicenceCheckLogListResourceResponse.d.ts +40 -0
  10. package/dist/models/PaginatedLicenceCheckLogListResourceResponse.js +57 -0
  11. package/dist/models/PaginatedSecurityCompanyListResourceResponse.d.ts +40 -0
  12. package/dist/models/PaginatedSecurityCompanyListResourceResponse.js +57 -0
  13. package/dist/models/PaginatedUserListResourceResponse.d.ts +40 -0
  14. package/dist/models/PaginatedUserListResourceResponse.js +57 -0
  15. package/dist/models/PaginatedVenueListResourceResponse.d.ts +40 -0
  16. package/dist/models/PaginatedVenueListResourceResponse.js +57 -0
  17. package/dist/models/SecurityCompanyListResource.d.ts +63 -0
  18. package/dist/models/SecurityCompanyListResource.js +68 -0
  19. package/dist/models/SecurityCompanyListResourceArrayResponse.d.ts +33 -0
  20. package/dist/models/SecurityCompanyListResourceArrayResponse.js +50 -0
  21. package/dist/models/UserListResource.d.ts +68 -0
  22. package/dist/models/UserListResource.js +75 -0
  23. package/dist/models/UserListResourceArrayResponse.d.ts +33 -0
  24. package/dist/models/UserListResourceArrayResponse.js +50 -0
  25. package/dist/models/VenueListResource.d.ts +70 -0
  26. package/dist/models/VenueListResource.js +74 -0
  27. package/dist/models/VenueListResourceArrayResponse.d.ts +33 -0
  28. package/dist/models/VenueListResourceArrayResponse.js +50 -0
  29. package/dist/models/index.d.ts +12 -0
  30. package/dist/models/index.js +12 -0
  31. package/package.json +1 -1
  32. package/src/apis/GeneralApi.ts +24 -24
  33. package/src/models/LicenceCheckLogListResource.ts +136 -0
  34. package/src/models/LicenceCheckLogListResourceArrayResponse.ts +73 -0
  35. package/src/models/PaginatedLicenceCheckLogListResourceResponse.ts +90 -0
  36. package/src/models/PaginatedSecurityCompanyListResourceResponse.ts +90 -0
  37. package/src/models/PaginatedUserListResourceResponse.ts +90 -0
  38. package/src/models/PaginatedVenueListResourceResponse.ts +90 -0
  39. package/src/models/SecurityCompanyListResource.ts +117 -0
  40. package/src/models/SecurityCompanyListResourceArrayResponse.ts +73 -0
  41. package/src/models/UserListResource.ts +120 -0
  42. package/src/models/UserListResourceArrayResponse.ts +73 -0
  43. package/src/models/VenueListResource.ts +133 -0
  44. package/src/models/VenueListResourceArrayResponse.ts +73 -0
  45. package/src/models/index.ts +12 -0
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Security Registers API
6
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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.instanceOfPaginatedUserListResourceResponse = instanceOfPaginatedUserListResourceResponse;
17
+ exports.PaginatedUserListResourceResponseFromJSON = PaginatedUserListResourceResponseFromJSON;
18
+ exports.PaginatedUserListResourceResponseFromJSONTyped = PaginatedUserListResourceResponseFromJSONTyped;
19
+ exports.PaginatedUserListResourceResponseToJSON = PaginatedUserListResourceResponseToJSON;
20
+ exports.PaginatedUserListResourceResponseToJSONTyped = PaginatedUserListResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var UserListResource_1 = require("./UserListResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedUserListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedUserListResourceResponse(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 PaginatedUserListResourceResponseFromJSON(json) {
34
+ return PaginatedUserListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedUserListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(UserListResource_1.UserListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedUserListResourceResponseToJSON(json) {
46
+ return PaginatedUserListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedUserListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(UserListResource_1.UserListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Security Registers API
3
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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 { VenueListResource } from './VenueListResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedVenueListResourceResponse
18
+ */
19
+ export interface PaginatedVenueListResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<VenueListResource>}
23
+ * @memberof PaginatedVenueListResourceResponse
24
+ */
25
+ data: Array<VenueListResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedVenueListResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedVenueListResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedVenueListResourceResponse(value: object): value is PaginatedVenueListResourceResponse;
37
+ export declare function PaginatedVenueListResourceResponseFromJSON(json: any): PaginatedVenueListResourceResponse;
38
+ export declare function PaginatedVenueListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedVenueListResourceResponse;
39
+ export declare function PaginatedVenueListResourceResponseToJSON(json: any): PaginatedVenueListResourceResponse;
40
+ export declare function PaginatedVenueListResourceResponseToJSONTyped(value?: PaginatedVenueListResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Security Registers API
6
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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.instanceOfPaginatedVenueListResourceResponse = instanceOfPaginatedVenueListResourceResponse;
17
+ exports.PaginatedVenueListResourceResponseFromJSON = PaginatedVenueListResourceResponseFromJSON;
18
+ exports.PaginatedVenueListResourceResponseFromJSONTyped = PaginatedVenueListResourceResponseFromJSONTyped;
19
+ exports.PaginatedVenueListResourceResponseToJSON = PaginatedVenueListResourceResponseToJSON;
20
+ exports.PaginatedVenueListResourceResponseToJSONTyped = PaginatedVenueListResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var VenueListResource_1 = require("./VenueListResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedVenueListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedVenueListResourceResponse(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 PaginatedVenueListResourceResponseFromJSON(json) {
34
+ return PaginatedVenueListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedVenueListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(VenueListResource_1.VenueListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedVenueListResourceResponseToJSON(json) {
46
+ return PaginatedVenueListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedVenueListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(VenueListResource_1.VenueListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Security Registers API
3
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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 { AddressResource } from './AddressResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SecurityCompanyListResource
17
+ */
18
+ export interface SecurityCompanyListResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof SecurityCompanyListResource
23
+ */
24
+ id?: number | null;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SecurityCompanyListResource
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof SecurityCompanyListResource
35
+ */
36
+ email?: string | null;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof SecurityCompanyListResource
41
+ */
42
+ isEnabled: boolean;
43
+ /**
44
+ *
45
+ * @type {AddressResource}
46
+ * @memberof SecurityCompanyListResource
47
+ */
48
+ address: AddressResource | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof SecurityCompanyListResource
53
+ */
54
+ licenceNumber: string;
55
+ }
56
+ /**
57
+ * Check if a given object implements the SecurityCompanyListResource interface.
58
+ */
59
+ export declare function instanceOfSecurityCompanyListResource(value: object): value is SecurityCompanyListResource;
60
+ export declare function SecurityCompanyListResourceFromJSON(json: any): SecurityCompanyListResource;
61
+ export declare function SecurityCompanyListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyListResource;
62
+ export declare function SecurityCompanyListResourceToJSON(json: any): SecurityCompanyListResource;
63
+ export declare function SecurityCompanyListResourceToJSONTyped(value?: SecurityCompanyListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Security Registers API
6
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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.instanceOfSecurityCompanyListResource = instanceOfSecurityCompanyListResource;
17
+ exports.SecurityCompanyListResourceFromJSON = SecurityCompanyListResourceFromJSON;
18
+ exports.SecurityCompanyListResourceFromJSONTyped = SecurityCompanyListResourceFromJSONTyped;
19
+ exports.SecurityCompanyListResourceToJSON = SecurityCompanyListResourceToJSON;
20
+ exports.SecurityCompanyListResourceToJSONTyped = SecurityCompanyListResourceToJSONTyped;
21
+ var AddressResource_1 = require("./AddressResource");
22
+ /**
23
+ * Check if a given object implements the SecurityCompanyListResource interface.
24
+ */
25
+ function instanceOfSecurityCompanyListResource(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('isEnabled' in value) || value['isEnabled'] === undefined)
29
+ return false;
30
+ if (!('address' in value) || value['address'] === undefined)
31
+ return false;
32
+ if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function SecurityCompanyListResourceFromJSON(json) {
37
+ return SecurityCompanyListResourceFromJSONTyped(json, false);
38
+ }
39
+ function SecurityCompanyListResourceFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'] == null ? undefined : json['id'],
45
+ 'name': json['name'],
46
+ 'email': json['email'] == null ? undefined : json['email'],
47
+ 'isEnabled': json['isEnabled'],
48
+ 'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
49
+ 'licenceNumber': json['licenceNumber'],
50
+ };
51
+ }
52
+ function SecurityCompanyListResourceToJSON(json) {
53
+ return SecurityCompanyListResourceToJSONTyped(json, false);
54
+ }
55
+ function SecurityCompanyListResourceToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'id': value['id'],
62
+ 'name': value['name'],
63
+ 'email': value['email'],
64
+ 'isEnabled': value['isEnabled'],
65
+ 'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
66
+ 'licenceNumber': value['licenceNumber'],
67
+ };
68
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Security Registers API
3
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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 { SecurityCompanyListResource } from './SecurityCompanyListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SecurityCompanyListResourceArrayResponse
17
+ */
18
+ export interface SecurityCompanyListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<SecurityCompanyListResource>}
22
+ * @memberof SecurityCompanyListResourceArrayResponse
23
+ */
24
+ data?: Array<SecurityCompanyListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the SecurityCompanyListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfSecurityCompanyListResourceArrayResponse(value: object): value is SecurityCompanyListResourceArrayResponse;
30
+ export declare function SecurityCompanyListResourceArrayResponseFromJSON(json: any): SecurityCompanyListResourceArrayResponse;
31
+ export declare function SecurityCompanyListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyListResourceArrayResponse;
32
+ export declare function SecurityCompanyListResourceArrayResponseToJSON(json: any): SecurityCompanyListResourceArrayResponse;
33
+ export declare function SecurityCompanyListResourceArrayResponseToJSONTyped(value?: SecurityCompanyListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Security Registers API
6
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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.instanceOfSecurityCompanyListResourceArrayResponse = instanceOfSecurityCompanyListResourceArrayResponse;
17
+ exports.SecurityCompanyListResourceArrayResponseFromJSON = SecurityCompanyListResourceArrayResponseFromJSON;
18
+ exports.SecurityCompanyListResourceArrayResponseFromJSONTyped = SecurityCompanyListResourceArrayResponseFromJSONTyped;
19
+ exports.SecurityCompanyListResourceArrayResponseToJSON = SecurityCompanyListResourceArrayResponseToJSON;
20
+ exports.SecurityCompanyListResourceArrayResponseToJSONTyped = SecurityCompanyListResourceArrayResponseToJSONTyped;
21
+ var SecurityCompanyListResource_1 = require("./SecurityCompanyListResource");
22
+ /**
23
+ * Check if a given object implements the SecurityCompanyListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfSecurityCompanyListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function SecurityCompanyListResourceArrayResponseFromJSON(json) {
29
+ return SecurityCompanyListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function SecurityCompanyListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(SecurityCompanyListResource_1.SecurityCompanyListResourceFromJSON)),
37
+ };
38
+ }
39
+ function SecurityCompanyListResourceArrayResponseToJSON(json) {
40
+ return SecurityCompanyListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function SecurityCompanyListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(SecurityCompanyListResource_1.SecurityCompanyListResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Security Registers API
3
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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 UserListResource
16
+ */
17
+ export interface UserListResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof UserListResource
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UserListResource
28
+ */
29
+ firstName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UserListResource
34
+ */
35
+ lastName: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof UserListResource
40
+ */
41
+ fullName: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof UserListResource
46
+ */
47
+ email: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof UserListResource
52
+ */
53
+ mobile: string;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof UserListResource
58
+ */
59
+ roles: Array<string>;
60
+ }
61
+ /**
62
+ * Check if a given object implements the UserListResource interface.
63
+ */
64
+ export declare function instanceOfUserListResource(value: object): value is UserListResource;
65
+ export declare function UserListResourceFromJSON(json: any): UserListResource;
66
+ export declare function UserListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserListResource;
67
+ export declare function UserListResourceToJSON(json: any): UserListResource;
68
+ export declare function UserListResourceToJSONTyped(value?: UserListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Security Registers API
6
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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.instanceOfUserListResource = instanceOfUserListResource;
17
+ exports.UserListResourceFromJSON = UserListResourceFromJSON;
18
+ exports.UserListResourceFromJSONTyped = UserListResourceFromJSONTyped;
19
+ exports.UserListResourceToJSON = UserListResourceToJSON;
20
+ exports.UserListResourceToJSONTyped = UserListResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserListResource interface.
23
+ */
24
+ function instanceOfUserListResource(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('firstName' in value) || value['firstName'] === undefined)
28
+ return false;
29
+ if (!('lastName' in value) || value['lastName'] === undefined)
30
+ return false;
31
+ if (!('fullName' in value) || value['fullName'] === undefined)
32
+ return false;
33
+ if (!('email' in value) || value['email'] === undefined)
34
+ return false;
35
+ if (!('mobile' in value) || value['mobile'] === undefined)
36
+ return false;
37
+ if (!('roles' in value) || value['roles'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function UserListResourceFromJSON(json) {
42
+ return UserListResourceFromJSONTyped(json, false);
43
+ }
44
+ function UserListResourceFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'],
50
+ 'firstName': json['firstName'],
51
+ 'lastName': json['lastName'],
52
+ 'fullName': json['fullName'],
53
+ 'email': json['email'],
54
+ 'mobile': json['mobile'],
55
+ 'roles': json['roles'],
56
+ };
57
+ }
58
+ function UserListResourceToJSON(json) {
59
+ return UserListResourceToJSONTyped(json, false);
60
+ }
61
+ function UserListResourceToJSONTyped(value, ignoreDiscriminator) {
62
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'id': value['id'],
68
+ 'firstName': value['firstName'],
69
+ 'lastName': value['lastName'],
70
+ 'fullName': value['fullName'],
71
+ 'email': value['email'],
72
+ 'mobile': value['mobile'],
73
+ 'roles': value['roles'],
74
+ };
75
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Security Registers API
3
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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 { UserListResource } from './UserListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UserListResourceArrayResponse
17
+ */
18
+ export interface UserListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<UserListResource>}
22
+ * @memberof UserListResourceArrayResponse
23
+ */
24
+ data?: Array<UserListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the UserListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfUserListResourceArrayResponse(value: object): value is UserListResourceArrayResponse;
30
+ export declare function UserListResourceArrayResponseFromJSON(json: any): UserListResourceArrayResponse;
31
+ export declare function UserListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserListResourceArrayResponse;
32
+ export declare function UserListResourceArrayResponseToJSON(json: any): UserListResourceArrayResponse;
33
+ export declare function UserListResourceArrayResponseToJSONTyped(value?: UserListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Security Registers API
6
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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.instanceOfUserListResourceArrayResponse = instanceOfUserListResourceArrayResponse;
17
+ exports.UserListResourceArrayResponseFromJSON = UserListResourceArrayResponseFromJSON;
18
+ exports.UserListResourceArrayResponseFromJSONTyped = UserListResourceArrayResponseFromJSONTyped;
19
+ exports.UserListResourceArrayResponseToJSON = UserListResourceArrayResponseToJSON;
20
+ exports.UserListResourceArrayResponseToJSONTyped = UserListResourceArrayResponseToJSONTyped;
21
+ var UserListResource_1 = require("./UserListResource");
22
+ /**
23
+ * Check if a given object implements the UserListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfUserListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function UserListResourceArrayResponseFromJSON(json) {
29
+ return UserListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function UserListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(UserListResource_1.UserListResourceFromJSON)),
37
+ };
38
+ }
39
+ function UserListResourceArrayResponseToJSON(json) {
40
+ return UserListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function UserListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(UserListResource_1.UserListResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Security Registers API
3
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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 { AddressResource } from './AddressResource';
13
+ import type { UserRelationResource } from './UserRelationResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface VenueListResource
18
+ */
19
+ export interface VenueListResource {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof VenueListResource
24
+ */
25
+ id?: number | null;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof VenueListResource
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof VenueListResource
36
+ */
37
+ venueCode: string;
38
+ /**
39
+ *
40
+ * @type {boolean}
41
+ * @memberof VenueListResource
42
+ */
43
+ isEnabled: boolean;
44
+ /**
45
+ *
46
+ * @type {UserRelationResource}
47
+ * @memberof VenueListResource
48
+ */
49
+ primaryManager: UserRelationResource | null;
50
+ /**
51
+ *
52
+ * @type {AddressResource}
53
+ * @memberof VenueListResource
54
+ */
55
+ address: AddressResource | null;
56
+ /**
57
+ *
58
+ * @type {Date}
59
+ * @memberof VenueListResource
60
+ */
61
+ createdAt?: Date | null;
62
+ }
63
+ /**
64
+ * Check if a given object implements the VenueListResource interface.
65
+ */
66
+ export declare function instanceOfVenueListResource(value: object): value is VenueListResource;
67
+ export declare function VenueListResourceFromJSON(json: any): VenueListResource;
68
+ export declare function VenueListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): VenueListResource;
69
+ export declare function VenueListResourceToJSON(json: any): VenueListResource;
70
+ export declare function VenueListResourceToJSONTyped(value?: VenueListResource | null, ignoreDiscriminator?: boolean): any;