@digital8/security-registers-backend-ts-sdk 0.0.304 → 0.0.305

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 (120) hide show
  1. package/.openapi-generator/FILES +0 -22
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +1 -127
  4. package/dist/apis/GeneralApi.js +36 -694
  5. package/dist/models/AssetFileForUploadResource.d.ts +2 -4
  6. package/dist/models/AssetLiteResource.d.ts +12 -0
  7. package/dist/models/AssetLiteResource.js +6 -0
  8. package/dist/models/AssetResource.d.ts +12 -0
  9. package/dist/models/AssetResource.js +6 -0
  10. package/dist/models/IncidentFieldSchemaResource.d.ts +2 -4
  11. package/dist/models/IncidentImageResource.d.ts +1 -1
  12. package/dist/models/IncidentImageResource.js +1 -3
  13. package/dist/models/IncidentVideoUploadTokenResource.d.ts +2 -4
  14. package/dist/models/LicencesStoreRequest.d.ts +104 -10
  15. package/dist/models/LicencesStoreRequest.js +40 -10
  16. package/dist/models/LicencesUpdateRequest.d.ts +104 -9
  17. package/dist/models/LicencesUpdateRequest.js +40 -9
  18. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  19. package/dist/models/RegisterGroupedByRosterResource.js +3 -4
  20. package/dist/models/RegisterListResource.d.ts +5 -4
  21. package/dist/models/RegisterListResource.js +6 -9
  22. package/dist/models/RegisterResource.d.ts +15 -3
  23. package/dist/models/RegisterResource.js +17 -11
  24. package/dist/models/RosterListResource.d.ts +1 -1
  25. package/dist/models/RosterListResource.js +3 -4
  26. package/dist/models/RosterResource.d.ts +1 -1
  27. package/dist/models/RosterResource.js +4 -3
  28. package/dist/models/RosterWithRegistersResource.d.ts +1 -1
  29. package/dist/models/RosterWithRegistersResource.js +3 -4
  30. package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +8 -12
  31. package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +8 -12
  32. package/dist/models/VenueLiteResource.d.ts +0 -6
  33. package/dist/models/VenueLiteResource.js +0 -4
  34. package/dist/models/index.d.ts +0 -22
  35. package/dist/models/index.js +0 -22
  36. package/package.json +1 -1
  37. package/src/apis/GeneralApi.ts +0 -564
  38. package/src/models/AssetFileForUploadResource.ts +2 -2
  39. package/src/models/AssetLiteResource.ts +17 -0
  40. package/src/models/AssetResource.ts +17 -0
  41. package/src/models/IncidentFieldSchemaResource.ts +2 -2
  42. package/src/models/IncidentImageResource.ts +2 -3
  43. package/src/models/IncidentVideoUploadTokenResource.ts +2 -2
  44. package/src/models/LicencesStoreRequest.ts +144 -31
  45. package/src/models/LicencesUpdateRequest.ts +144 -24
  46. package/src/models/RegisterGroupedByRosterResource.ts +3 -4
  47. package/src/models/RegisterListResource.ts +16 -11
  48. package/src/models/RegisterResource.ts +26 -9
  49. package/src/models/RosterListResource.ts +3 -4
  50. package/src/models/RosterResource.ts +4 -3
  51. package/src/models/RosterWithRegistersResource.ts +3 -4
  52. package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +16 -45
  53. package/src/models/VenueLiteResource.ts +0 -9
  54. package/src/models/index.ts +0 -22
  55. package/dist/models/AuthChangePasswordRequest.d.ts +0 -38
  56. package/dist/models/AuthChangePasswordRequest.js +0 -55
  57. package/dist/models/AuthProfileUpdateRequest.d.ts +0 -56
  58. package/dist/models/AuthProfileUpdateRequest.js +0 -57
  59. package/dist/models/AuthRegisterGuardRequest.d.ts +0 -70
  60. package/dist/models/AuthRegisterGuardRequest.js +0 -77
  61. package/dist/models/AuthRegisterGuardRequestLicence.d.ts +0 -98
  62. package/dist/models/AuthRegisterGuardRequestLicence.js +0 -95
  63. package/dist/models/AuthRegisterGuardRequestProfileSignature.d.ts +0 -50
  64. package/dist/models/AuthRegisterGuardRequestProfileSignature.js +0 -55
  65. package/dist/models/BackAsset.d.ts +0 -50
  66. package/dist/models/BackAsset.js +0 -55
  67. package/dist/models/DevicesRegisterRequest.d.ts +0 -76
  68. package/dist/models/DevicesRegisterRequest.js +0 -73
  69. package/dist/models/FirstAidAsset.d.ts +0 -50
  70. package/dist/models/FirstAidAsset.js +0 -55
  71. package/dist/models/FrontAsset.d.ts +0 -50
  72. package/dist/models/FrontAsset.js +0 -55
  73. package/dist/models/IncidentListResource.d.ts +0 -107
  74. package/dist/models/IncidentListResource.js +0 -81
  75. package/dist/models/IncidentListResourceArrayResponse.d.ts +0 -33
  76. package/dist/models/IncidentListResourceArrayResponse.js +0 -50
  77. package/dist/models/IncidentsExportPdfBulkRequest.d.ts +0 -56
  78. package/dist/models/IncidentsExportPdfBulkRequest.js +0 -63
  79. package/dist/models/IncidentsListRequest.d.ts +0 -163
  80. package/dist/models/IncidentsListRequest.js +0 -103
  81. package/dist/models/LicencesStoreRequestBackAsset.d.ts +0 -50
  82. package/dist/models/LicencesStoreRequestBackAsset.js +0 -55
  83. package/dist/models/MobileDeviceResource.d.ts +0 -92
  84. package/dist/models/MobileDeviceResource.js +0 -86
  85. package/dist/models/MobileDeviceResourceArrayResponse.d.ts +0 -33
  86. package/dist/models/MobileDeviceResourceArrayResponse.js +0 -50
  87. package/dist/models/MobileInitResource.d.ts +0 -47
  88. package/dist/models/MobileInitResource.js +0 -62
  89. package/dist/models/MobileInitResourceArrayResponse.d.ts +0 -33
  90. package/dist/models/MobileInitResourceArrayResponse.js +0 -50
  91. package/dist/models/PaginatedIncidentListResourceResponse.d.ts +0 -40
  92. package/dist/models/PaginatedIncidentListResourceResponse.js +0 -57
  93. package/dist/models/PdfExportQueuedResource.d.ts +0 -44
  94. package/dist/models/PdfExportQueuedResource.js +0 -59
  95. package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +0 -33
  96. package/dist/models/PdfExportQueuedResourceArrayResponse.js +0 -50
  97. package/dist/models/RsaAsset.d.ts +0 -50
  98. package/dist/models/RsaAsset.js +0 -55
  99. package/src/models/AuthChangePasswordRequest.ts +0 -75
  100. package/src/models/AuthProfileUpdateRequest.ts +0 -97
  101. package/src/models/AuthRegisterGuardRequest.ts +0 -135
  102. package/src/models/AuthRegisterGuardRequestLicence.ts +0 -181
  103. package/src/models/AuthRegisterGuardRequestProfileSignature.ts +0 -89
  104. package/src/models/BackAsset.ts +0 -89
  105. package/src/models/DevicesRegisterRequest.ts +0 -126
  106. package/src/models/FirstAidAsset.ts +0 -89
  107. package/src/models/FrontAsset.ts +0 -89
  108. package/src/models/IncidentListResource.ts +0 -185
  109. package/src/models/IncidentListResourceArrayResponse.ts +0 -73
  110. package/src/models/IncidentsExportPdfBulkRequest.ts +0 -100
  111. package/src/models/IncidentsListRequest.ts +0 -238
  112. package/src/models/LicencesStoreRequestBackAsset.ts +0 -89
  113. package/src/models/MobileDeviceResource.ts +0 -153
  114. package/src/models/MobileDeviceResourceArrayResponse.ts +0 -73
  115. package/src/models/MobileInitResource.ts +0 -106
  116. package/src/models/MobileInitResourceArrayResponse.ts +0 -73
  117. package/src/models/PaginatedIncidentListResourceResponse.ts +0 -90
  118. package/src/models/PdfExportQueuedResource.ts +0 -84
  119. package/src/models/PdfExportQueuedResourceArrayResponse.ts +0 -73
  120. package/src/models/RsaAsset.ts +0 -89
@@ -1,76 +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 DevicesRegisterRequest
16
- */
17
- export interface DevicesRegisterRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof DevicesRegisterRequest
22
- */
23
- deviceId: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof DevicesRegisterRequest
28
- */
29
- platform: DevicesRegisterRequestPlatformEnum;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof DevicesRegisterRequest
34
- */
35
- osVersion?: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof DevicesRegisterRequest
40
- */
41
- appVersion?: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof DevicesRegisterRequest
46
- */
47
- model?: string;
48
- /**
49
- *
50
- * @type {string}
51
- * @memberof DevicesRegisterRequest
52
- */
53
- name?: string;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof DevicesRegisterRequest
58
- */
59
- pushToken?: string;
60
- }
61
- /**
62
- * @export
63
- */
64
- export declare const DevicesRegisterRequestPlatformEnum: {
65
- readonly Ios: "ios";
66
- readonly Android: "android";
67
- };
68
- export type DevicesRegisterRequestPlatformEnum = typeof DevicesRegisterRequestPlatformEnum[keyof typeof DevicesRegisterRequestPlatformEnum];
69
- /**
70
- * Check if a given object implements the DevicesRegisterRequest interface.
71
- */
72
- export declare function instanceOfDevicesRegisterRequest(value: object): value is DevicesRegisterRequest;
73
- export declare function DevicesRegisterRequestFromJSON(json: any): DevicesRegisterRequest;
74
- export declare function DevicesRegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DevicesRegisterRequest;
75
- export declare function DevicesRegisterRequestToJSON(json: any): DevicesRegisterRequest;
76
- export declare function DevicesRegisterRequestToJSONTyped(value?: DevicesRegisterRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,73 +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.DevicesRegisterRequestPlatformEnum = void 0;
17
- exports.instanceOfDevicesRegisterRequest = instanceOfDevicesRegisterRequest;
18
- exports.DevicesRegisterRequestFromJSON = DevicesRegisterRequestFromJSON;
19
- exports.DevicesRegisterRequestFromJSONTyped = DevicesRegisterRequestFromJSONTyped;
20
- exports.DevicesRegisterRequestToJSON = DevicesRegisterRequestToJSON;
21
- exports.DevicesRegisterRequestToJSONTyped = DevicesRegisterRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.DevicesRegisterRequestPlatformEnum = {
26
- Ios: 'ios',
27
- Android: 'android'
28
- };
29
- /**
30
- * Check if a given object implements the DevicesRegisterRequest interface.
31
- */
32
- function instanceOfDevicesRegisterRequest(value) {
33
- if (!('deviceId' in value) || value['deviceId'] === undefined)
34
- return false;
35
- if (!('platform' in value) || value['platform'] === undefined)
36
- return false;
37
- return true;
38
- }
39
- function DevicesRegisterRequestFromJSON(json) {
40
- return DevicesRegisterRequestFromJSONTyped(json, false);
41
- }
42
- function DevicesRegisterRequestFromJSONTyped(json, ignoreDiscriminator) {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
- 'deviceId': json['device_id'],
48
- 'platform': json['platform'],
49
- 'osVersion': json['os_version'] == null ? undefined : json['os_version'],
50
- 'appVersion': json['app_version'] == null ? undefined : json['app_version'],
51
- 'model': json['model'] == null ? undefined : json['model'],
52
- 'name': json['name'] == null ? undefined : json['name'],
53
- 'pushToken': json['push_token'] == null ? undefined : json['push_token'],
54
- };
55
- }
56
- function DevicesRegisterRequestToJSON(json) {
57
- return DevicesRegisterRequestToJSONTyped(json, false);
58
- }
59
- function DevicesRegisterRequestToJSONTyped(value, ignoreDiscriminator) {
60
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
61
- if (value == null) {
62
- return value;
63
- }
64
- return {
65
- 'device_id': value['deviceId'],
66
- 'platform': value['platform'],
67
- 'os_version': value['osVersion'],
68
- 'app_version': value['appVersion'],
69
- 'model': value['model'],
70
- 'name': value['name'],
71
- 'push_token': value['pushToken'],
72
- };
73
- }
@@ -1,50 +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 FirstAidAsset
16
- */
17
- export interface FirstAidAsset {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof FirstAidAsset
22
- */
23
- fileId?: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof FirstAidAsset
28
- */
29
- fileName?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof FirstAidAsset
34
- */
35
- mimeType?: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof FirstAidAsset
40
- */
41
- altText?: string;
42
- }
43
- /**
44
- * Check if a given object implements the FirstAidAsset interface.
45
- */
46
- export declare function instanceOfFirstAidAsset(value: object): value is FirstAidAsset;
47
- export declare function FirstAidAssetFromJSON(json: any): FirstAidAsset;
48
- export declare function FirstAidAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FirstAidAsset;
49
- export declare function FirstAidAssetToJSON(json: any): FirstAidAsset;
50
- export declare function FirstAidAssetToJSONTyped(value?: FirstAidAsset | null, ignoreDiscriminator?: boolean): any;
@@ -1,55 +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.instanceOfFirstAidAsset = instanceOfFirstAidAsset;
17
- exports.FirstAidAssetFromJSON = FirstAidAssetFromJSON;
18
- exports.FirstAidAssetFromJSONTyped = FirstAidAssetFromJSONTyped;
19
- exports.FirstAidAssetToJSON = FirstAidAssetToJSON;
20
- exports.FirstAidAssetToJSONTyped = FirstAidAssetToJSONTyped;
21
- /**
22
- * Check if a given object implements the FirstAidAsset interface.
23
- */
24
- function instanceOfFirstAidAsset(value) {
25
- return true;
26
- }
27
- function FirstAidAssetFromJSON(json) {
28
- return FirstAidAssetFromJSONTyped(json, false);
29
- }
30
- function FirstAidAssetFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'fileId': json['file_id'] == null ? undefined : json['file_id'],
36
- 'fileName': json['file_name'] == null ? undefined : json['file_name'],
37
- 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
38
- 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
39
- };
40
- }
41
- function FirstAidAssetToJSON(json) {
42
- return FirstAidAssetToJSONTyped(json, false);
43
- }
44
- function FirstAidAssetToJSONTyped(value, ignoreDiscriminator) {
45
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'file_id': value['fileId'],
51
- 'file_name': value['fileName'],
52
- 'mime_type': value['mimeType'],
53
- 'alt_text': value['altText'],
54
- };
55
- }
@@ -1,50 +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 FrontAsset
16
- */
17
- export interface FrontAsset {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof FrontAsset
22
- */
23
- fileId?: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof FrontAsset
28
- */
29
- fileName?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof FrontAsset
34
- */
35
- mimeType?: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof FrontAsset
40
- */
41
- altText?: string;
42
- }
43
- /**
44
- * Check if a given object implements the FrontAsset interface.
45
- */
46
- export declare function instanceOfFrontAsset(value: object): value is FrontAsset;
47
- export declare function FrontAssetFromJSON(json: any): FrontAsset;
48
- export declare function FrontAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontAsset;
49
- export declare function FrontAssetToJSON(json: any): FrontAsset;
50
- export declare function FrontAssetToJSONTyped(value?: FrontAsset | null, ignoreDiscriminator?: boolean): any;
@@ -1,55 +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.instanceOfFrontAsset = instanceOfFrontAsset;
17
- exports.FrontAssetFromJSON = FrontAssetFromJSON;
18
- exports.FrontAssetFromJSONTyped = FrontAssetFromJSONTyped;
19
- exports.FrontAssetToJSON = FrontAssetToJSON;
20
- exports.FrontAssetToJSONTyped = FrontAssetToJSONTyped;
21
- /**
22
- * Check if a given object implements the FrontAsset interface.
23
- */
24
- function instanceOfFrontAsset(value) {
25
- return true;
26
- }
27
- function FrontAssetFromJSON(json) {
28
- return FrontAssetFromJSONTyped(json, false);
29
- }
30
- function FrontAssetFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'fileId': json['file_id'] == null ? undefined : json['file_id'],
36
- 'fileName': json['file_name'] == null ? undefined : json['file_name'],
37
- 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
38
- 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
39
- };
40
- }
41
- function FrontAssetToJSON(json) {
42
- return FrontAssetToJSONTyped(json, false);
43
- }
44
- function FrontAssetToJSONTyped(value, ignoreDiscriminator) {
45
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'file_id': value['fileId'],
51
- 'file_name': value['fileName'],
52
- 'mime_type': value['mimeType'],
53
- 'alt_text': value['altText'],
54
- };
55
- }
@@ -1,107 +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 { VenueLiteResource } from './VenueLiteResource';
13
- import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
14
- import type { UserLiteResource } from './UserLiteResource';
15
- /**
16
- *
17
- * @export
18
- * @interface IncidentListResource
19
- */
20
- export interface IncidentListResource {
21
- /**
22
- *
23
- * @type {number}
24
- * @memberof IncidentListResource
25
- */
26
- id: number;
27
- /**
28
- *
29
- * @type {VenueLiteResource}
30
- * @memberof IncidentListResource
31
- */
32
- venue?: VenueLiteResource;
33
- /**
34
- *
35
- * @type {SecurityCompanyLiteResource}
36
- * @memberof IncidentListResource
37
- */
38
- securityCompany?: SecurityCompanyLiteResource;
39
- /**
40
- *
41
- * @type {UserLiteResource}
42
- * @memberof IncidentListResource
43
- */
44
- user?: UserLiteResource;
45
- /**
46
- *
47
- * @type {UserLiteResource}
48
- * @memberof IncidentListResource
49
- */
50
- approvedByUser?: UserLiteResource;
51
- /**
52
- *
53
- * @type {string}
54
- * @memberof IncidentListResource
55
- */
56
- title?: string | null;
57
- /**
58
- *
59
- * @type {string}
60
- * @memberof IncidentListResource
61
- */
62
- dutyManager?: string | null;
63
- /**
64
- *
65
- * @type {Date}
66
- * @memberof IncidentListResource
67
- */
68
- incidentDateTime?: Date | null;
69
- /**
70
- *
71
- * @type {string}
72
- * @memberof IncidentListResource
73
- */
74
- state?: string | null;
75
- /**
76
- *
77
- * @type {boolean}
78
- * @memberof IncidentListResource
79
- */
80
- submittedByGuard: boolean;
81
- /**
82
- *
83
- * @type {Date}
84
- * @memberof IncidentListResource
85
- */
86
- approvedAt?: Date | null;
87
- /**
88
- *
89
- * @type {Date}
90
- * @memberof IncidentListResource
91
- */
92
- createdAt?: Date | null;
93
- /**
94
- *
95
- * @type {Date}
96
- * @memberof IncidentListResource
97
- */
98
- updatedAt?: Date | null;
99
- }
100
- /**
101
- * Check if a given object implements the IncidentListResource interface.
102
- */
103
- export declare function instanceOfIncidentListResource(value: object): value is IncidentListResource;
104
- export declare function IncidentListResourceFromJSON(json: any): IncidentListResource;
105
- export declare function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResource;
106
- export declare function IncidentListResourceToJSON(json: any): IncidentListResource;
107
- export declare function IncidentListResourceToJSONTyped(value?: IncidentListResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,81 +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.instanceOfIncidentListResource = instanceOfIncidentListResource;
17
- exports.IncidentListResourceFromJSON = IncidentListResourceFromJSON;
18
- exports.IncidentListResourceFromJSONTyped = IncidentListResourceFromJSONTyped;
19
- exports.IncidentListResourceToJSON = IncidentListResourceToJSON;
20
- exports.IncidentListResourceToJSONTyped = IncidentListResourceToJSONTyped;
21
- var VenueLiteResource_1 = require("./VenueLiteResource");
22
- var SecurityCompanyLiteResource_1 = require("./SecurityCompanyLiteResource");
23
- var UserLiteResource_1 = require("./UserLiteResource");
24
- /**
25
- * Check if a given object implements the IncidentListResource interface.
26
- */
27
- function instanceOfIncidentListResource(value) {
28
- if (!('id' in value) || value['id'] === undefined)
29
- return false;
30
- if (!('submittedByGuard' in value) || value['submittedByGuard'] === undefined)
31
- return false;
32
- return true;
33
- }
34
- function IncidentListResourceFromJSON(json) {
35
- return IncidentListResourceFromJSONTyped(json, false);
36
- }
37
- function IncidentListResourceFromJSONTyped(json, ignoreDiscriminator) {
38
- if (json == null) {
39
- return json;
40
- }
41
- return {
42
- 'id': json['id'],
43
- 'venue': json['venue'] == null ? undefined : (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
44
- 'securityCompany': json['securityCompany'] == null ? undefined : (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
45
- 'user': json['user'] == null ? undefined : (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
46
- 'approvedByUser': json['approvedByUser'] == null ? undefined : (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['approvedByUser']),
47
- 'title': json['title'] == null ? undefined : json['title'],
48
- 'dutyManager': json['dutyManager'] == null ? undefined : json['dutyManager'],
49
- 'incidentDateTime': json['incidentDateTime'] == null ? undefined : (new Date(json['incidentDateTime'])),
50
- 'state': json['state'] == null ? undefined : json['state'],
51
- 'submittedByGuard': json['submittedByGuard'],
52
- 'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
53
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
54
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
55
- };
56
- }
57
- function IncidentListResourceToJSON(json) {
58
- return IncidentListResourceToJSONTyped(json, false);
59
- }
60
- function IncidentListResourceToJSONTyped(value, ignoreDiscriminator) {
61
- var _a, _b, _c, _d;
62
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
63
- if (value == null) {
64
- return value;
65
- }
66
- return {
67
- 'id': value['id'],
68
- 'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
69
- 'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
70
- 'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
71
- 'approvedByUser': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['approvedByUser']),
72
- 'title': value['title'],
73
- 'dutyManager': value['dutyManager'],
74
- 'incidentDateTime': value['incidentDateTime'] === null ? null : ((_a = value['incidentDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
75
- 'state': value['state'],
76
- 'submittedByGuard': value['submittedByGuard'],
77
- 'approvedAt': value['approvedAt'] === null ? null : ((_b = value['approvedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
78
- 'createdAt': value['createdAt'] === null ? null : ((_c = value['createdAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
79
- 'updatedAt': value['updatedAt'] === null ? null : ((_d = value['updatedAt']) === null || _d === void 0 ? void 0 : _d.toISOString()),
80
- };
81
- }
@@ -1,33 +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 { IncidentListResource } from './IncidentListResource';
13
- /**
14
- *
15
- * @export
16
- * @interface IncidentListResourceArrayResponse
17
- */
18
- export interface IncidentListResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<IncidentListResource>}
22
- * @memberof IncidentListResourceArrayResponse
23
- */
24
- data?: Array<IncidentListResource>;
25
- }
26
- /**
27
- * Check if a given object implements the IncidentListResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfIncidentListResourceArrayResponse(value: object): value is IncidentListResourceArrayResponse;
30
- export declare function IncidentListResourceArrayResponseFromJSON(json: any): IncidentListResourceArrayResponse;
31
- export declare function IncidentListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResourceArrayResponse;
32
- export declare function IncidentListResourceArrayResponseToJSON(json: any): IncidentListResourceArrayResponse;
33
- export declare function IncidentListResourceArrayResponseToJSONTyped(value?: IncidentListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +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.instanceOfIncidentListResourceArrayResponse = instanceOfIncidentListResourceArrayResponse;
17
- exports.IncidentListResourceArrayResponseFromJSON = IncidentListResourceArrayResponseFromJSON;
18
- exports.IncidentListResourceArrayResponseFromJSONTyped = IncidentListResourceArrayResponseFromJSONTyped;
19
- exports.IncidentListResourceArrayResponseToJSON = IncidentListResourceArrayResponseToJSON;
20
- exports.IncidentListResourceArrayResponseToJSONTyped = IncidentListResourceArrayResponseToJSONTyped;
21
- var IncidentListResource_1 = require("./IncidentListResource");
22
- /**
23
- * Check if a given object implements the IncidentListResourceArrayResponse interface.
24
- */
25
- function instanceOfIncidentListResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function IncidentListResourceArrayResponseFromJSON(json) {
29
- return IncidentListResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function IncidentListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(IncidentListResource_1.IncidentListResourceFromJSON)),
37
- };
38
- }
39
- function IncidentListResourceArrayResponseToJSON(json) {
40
- return IncidentListResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function IncidentListResourceArrayResponseToJSONTyped(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(IncidentListResource_1.IncidentListResourceToJSON)),
49
- };
50
- }
@@ -1,56 +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 IncidentsExportPdfBulkRequest
16
- */
17
- export interface IncidentsExportPdfBulkRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof IncidentsExportPdfBulkRequest
22
- */
23
- venueId: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof IncidentsExportPdfBulkRequest
28
- */
29
- securityCompanyId?: number;
30
- /**
31
- *
32
- * @type {boolean}
33
- * @memberof IncidentsExportPdfBulkRequest
34
- */
35
- hasApprovedAt?: boolean;
36
- /**
37
- *
38
- * @type {Date}
39
- * @memberof IncidentsExportPdfBulkRequest
40
- */
41
- afterCreatedAt: Date;
42
- /**
43
- *
44
- * @type {Date}
45
- * @memberof IncidentsExportPdfBulkRequest
46
- */
47
- beforeCreatedAt: Date;
48
- }
49
- /**
50
- * Check if a given object implements the IncidentsExportPdfBulkRequest interface.
51
- */
52
- export declare function instanceOfIncidentsExportPdfBulkRequest(value: object): value is IncidentsExportPdfBulkRequest;
53
- export declare function IncidentsExportPdfBulkRequestFromJSON(json: any): IncidentsExportPdfBulkRequest;
54
- export declare function IncidentsExportPdfBulkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsExportPdfBulkRequest;
55
- export declare function IncidentsExportPdfBulkRequestToJSON(json: any): IncidentsExportPdfBulkRequest;
56
- export declare function IncidentsExportPdfBulkRequestToJSONTyped(value?: IncidentsExportPdfBulkRequest | null, ignoreDiscriminator?: boolean): any;