@digital8/security-registers-backend-ts-sdk 0.0.313 → 0.0.314

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 (159) hide show
  1. package/.openapi-generator/FILES +0 -24
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +3 -129
  4. package/dist/apis/GeneralApi.js +37 -695
  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 +13 -1
  9. package/dist/models/AssetResource.js +9 -1
  10. package/dist/models/CurrentRegisterResource.d.ts +5 -22
  11. package/dist/models/CurrentRegisterResource.js +7 -14
  12. package/dist/models/IncidentFieldSchemaResource.d.ts +4 -20
  13. package/dist/models/IncidentFieldSchemaResource.js +0 -14
  14. package/dist/models/IncidentImageResource.d.ts +1 -1
  15. package/dist/models/IncidentImageResource.js +1 -3
  16. package/dist/models/IncidentVideoResource.d.ts +1 -10
  17. package/dist/models/IncidentVideoResource.js +0 -9
  18. package/dist/models/IncidentVideoUploadTokenResource.d.ts +2 -4
  19. package/dist/models/LicenceListResource.d.ts +2 -16
  20. package/dist/models/LicenceListResource.js +0 -14
  21. package/dist/models/LicenceLiteResource.d.ts +2 -16
  22. package/dist/models/LicenceLiteResource.js +0 -14
  23. package/dist/models/LicenceResource.d.ts +2 -16
  24. package/dist/models/LicenceResource.js +0 -14
  25. package/dist/models/LicencesStoreRequest.d.ts +106 -12
  26. package/dist/models/LicencesStoreRequest.js +42 -12
  27. package/dist/models/LicencesUpdateRequest.d.ts +106 -11
  28. package/dist/models/LicencesUpdateRequest.js +42 -11
  29. package/dist/models/LicencesVerifyRequest.d.ts +1 -1
  30. package/dist/models/NotificationPreferenceResource.d.ts +1 -12
  31. package/dist/models/NotificationPreferenceResource.js +0 -11
  32. package/dist/models/PdfExportResource.d.ts +1 -11
  33. package/dist/models/PdfExportResource.js +0 -10
  34. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  35. package/dist/models/RegisterGroupedByRosterResource.js +3 -4
  36. package/dist/models/RegisterListResource.d.ts +9 -17
  37. package/dist/models/RegisterListResource.js +13 -18
  38. package/dist/models/RegisterResource.d.ts +16 -13
  39. package/dist/models/RegisterResource.js +19 -18
  40. package/dist/models/RegistersSignOffRequest.d.ts +3 -3
  41. package/dist/models/RegistersSignOffRequest.js +2 -2
  42. package/dist/models/RegistersSignOnRequest.d.ts +3 -3
  43. package/dist/models/RegistersSignOnRequest.js +2 -2
  44. package/dist/models/RosterListResource.d.ts +3 -18
  45. package/dist/models/RosterListResource.js +0 -13
  46. package/dist/models/RosterResource.d.ts +1 -10
  47. package/dist/models/RosterResource.js +0 -9
  48. package/dist/models/RosterWithRegistersResource.d.ts +2 -11
  49. package/dist/models/RosterWithRegistersResource.js +4 -12
  50. package/dist/models/UserResource.d.ts +2 -9
  51. package/dist/models/UserResource.js +2 -7
  52. package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +11 -15
  53. package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +10 -14
  54. package/dist/models/VenueLiteResource.d.ts +0 -6
  55. package/dist/models/VenueLiteResource.js +0 -4
  56. package/dist/models/index.d.ts +0 -24
  57. package/dist/models/index.js +0 -24
  58. package/package.json +1 -1
  59. package/src/apis/GeneralApi.ts +3 -570
  60. package/src/models/AssetFileForUploadResource.ts +2 -2
  61. package/src/models/AssetLiteResource.ts +17 -0
  62. package/src/models/AssetResource.ts +20 -2
  63. package/src/models/CurrentRegisterResource.ts +18 -35
  64. package/src/models/IncidentFieldSchemaResource.ts +4 -21
  65. package/src/models/IncidentImageResource.ts +2 -3
  66. package/src/models/IncidentVideoResource.ts +1 -13
  67. package/src/models/IncidentVideoUploadTokenResource.ts +2 -2
  68. package/src/models/LicenceListResource.ts +2 -19
  69. package/src/models/LicenceLiteResource.ts +2 -19
  70. package/src/models/LicenceResource.ts +2 -19
  71. package/src/models/LicencesStoreRequest.ts +148 -35
  72. package/src/models/LicencesUpdateRequest.ts +148 -28
  73. package/src/models/LicencesVerifyRequest.ts +1 -1
  74. package/src/models/NotificationPreferenceResource.ts +1 -15
  75. package/src/models/PdfExportResource.ts +1 -14
  76. package/src/models/RegisterGroupedByRosterResource.ts +3 -4
  77. package/src/models/RegisterListResource.ts +24 -28
  78. package/src/models/RegisterResource.ts +28 -21
  79. package/src/models/RegistersSignOffRequest.ts +5 -5
  80. package/src/models/RegistersSignOnRequest.ts +5 -5
  81. package/src/models/RosterListResource.ts +3 -24
  82. package/src/models/RosterResource.ts +1 -13
  83. package/src/models/RosterWithRegistersResource.ts +5 -16
  84. package/src/models/UserResource.ts +4 -20
  85. package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +21 -50
  86. package/src/models/VenueLiteResource.ts +0 -9
  87. package/src/models/index.ts +0 -24
  88. package/dist/models/AuthChangePasswordRequest.d.ts +0 -38
  89. package/dist/models/AuthChangePasswordRequest.js +0 -55
  90. package/dist/models/AuthProfileUpdateRequest.d.ts +0 -62
  91. package/dist/models/AuthProfileUpdateRequest.js +0 -59
  92. package/dist/models/AuthRegisterGuardRequest.d.ts +0 -70
  93. package/dist/models/AuthRegisterGuardRequest.js +0 -77
  94. package/dist/models/AuthRegisterGuardRequestLicence.d.ts +0 -98
  95. package/dist/models/AuthRegisterGuardRequestLicence.js +0 -95
  96. package/dist/models/AuthRegisterGuardRequestProfileSignature.d.ts +0 -50
  97. package/dist/models/AuthRegisterGuardRequestProfileSignature.js +0 -55
  98. package/dist/models/BackAsset.d.ts +0 -50
  99. package/dist/models/BackAsset.js +0 -55
  100. package/dist/models/DevicesRegisterRequest.d.ts +0 -76
  101. package/dist/models/DevicesRegisterRequest.js +0 -73
  102. package/dist/models/FirstAidAsset.d.ts +0 -50
  103. package/dist/models/FirstAidAsset.js +0 -55
  104. package/dist/models/FrontAsset.d.ts +0 -50
  105. package/dist/models/FrontAsset.js +0 -55
  106. package/dist/models/IncidentListResource.d.ts +0 -107
  107. package/dist/models/IncidentListResource.js +0 -81
  108. package/dist/models/IncidentListResourceArrayResponse.d.ts +0 -33
  109. package/dist/models/IncidentListResourceArrayResponse.js +0 -50
  110. package/dist/models/IncidentsExportPdfBulkRequest.d.ts +0 -56
  111. package/dist/models/IncidentsExportPdfBulkRequest.js +0 -63
  112. package/dist/models/IncidentsListRequest.d.ts +0 -163
  113. package/dist/models/IncidentsListRequest.js +0 -103
  114. package/dist/models/LicencesStoreRequestBackAsset.d.ts +0 -50
  115. package/dist/models/LicencesStoreRequestBackAsset.js +0 -55
  116. package/dist/models/MobileDeviceResource.d.ts +0 -100
  117. package/dist/models/MobileDeviceResource.js +0 -94
  118. package/dist/models/MobileDeviceResourceArrayResponse.d.ts +0 -33
  119. package/dist/models/MobileDeviceResourceArrayResponse.js +0 -50
  120. package/dist/models/MobileInitResource.d.ts +0 -47
  121. package/dist/models/MobileInitResource.js +0 -62
  122. package/dist/models/MobileInitResourceArrayResponse.d.ts +0 -33
  123. package/dist/models/MobileInitResourceArrayResponse.js +0 -50
  124. package/dist/models/PaginatedIncidentListResourceResponse.d.ts +0 -40
  125. package/dist/models/PaginatedIncidentListResourceResponse.js +0 -57
  126. package/dist/models/PdfExportQueuedResource.d.ts +0 -54
  127. package/dist/models/PdfExportQueuedResource.js +0 -69
  128. package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +0 -33
  129. package/dist/models/PdfExportQueuedResourceArrayResponse.js +0 -50
  130. package/dist/models/RsaAsset.d.ts +0 -50
  131. package/dist/models/RsaAsset.js +0 -55
  132. package/dist/models/VenueMobileResource.d.ts +0 -93
  133. package/dist/models/VenueMobileResource.js +0 -88
  134. package/dist/models/VenueMobileResourceArrayResponse.d.ts +0 -33
  135. package/dist/models/VenueMobileResourceArrayResponse.js +0 -50
  136. package/src/models/AuthChangePasswordRequest.ts +0 -75
  137. package/src/models/AuthProfileUpdateRequest.ts +0 -105
  138. package/src/models/AuthRegisterGuardRequest.ts +0 -135
  139. package/src/models/AuthRegisterGuardRequestLicence.ts +0 -181
  140. package/src/models/AuthRegisterGuardRequestProfileSignature.ts +0 -89
  141. package/src/models/BackAsset.ts +0 -89
  142. package/src/models/DevicesRegisterRequest.ts +0 -126
  143. package/src/models/FirstAidAsset.ts +0 -89
  144. package/src/models/FrontAsset.ts +0 -89
  145. package/src/models/IncidentListResource.ts +0 -185
  146. package/src/models/IncidentListResourceArrayResponse.ts +0 -73
  147. package/src/models/IncidentsExportPdfBulkRequest.ts +0 -100
  148. package/src/models/IncidentsListRequest.ts +0 -238
  149. package/src/models/LicencesStoreRequestBackAsset.ts +0 -89
  150. package/src/models/MobileDeviceResource.ts +0 -164
  151. package/src/models/MobileDeviceResourceArrayResponse.ts +0 -73
  152. package/src/models/MobileInitResource.ts +0 -106
  153. package/src/models/MobileInitResourceArrayResponse.ts +0 -73
  154. package/src/models/PaginatedIncidentListResourceResponse.ts +0 -90
  155. package/src/models/PdfExportQueuedResource.ts +0 -97
  156. package/src/models/PdfExportQueuedResourceArrayResponse.ts +0 -73
  157. package/src/models/RsaAsset.ts +0 -89
  158. package/src/models/VenueMobileResource.ts +0 -162
  159. package/src/models/VenueMobileResourceArrayResponse.ts +0 -73
@@ -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;
@@ -1,63 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfIncidentsExportPdfBulkRequest = instanceOfIncidentsExportPdfBulkRequest;
17
- exports.IncidentsExportPdfBulkRequestFromJSON = IncidentsExportPdfBulkRequestFromJSON;
18
- exports.IncidentsExportPdfBulkRequestFromJSONTyped = IncidentsExportPdfBulkRequestFromJSONTyped;
19
- exports.IncidentsExportPdfBulkRequestToJSON = IncidentsExportPdfBulkRequestToJSON;
20
- exports.IncidentsExportPdfBulkRequestToJSONTyped = IncidentsExportPdfBulkRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the IncidentsExportPdfBulkRequest interface.
23
- */
24
- function instanceOfIncidentsExportPdfBulkRequest(value) {
25
- if (!('venueId' in value) || value['venueId'] === undefined)
26
- return false;
27
- if (!('afterCreatedAt' in value) || value['afterCreatedAt'] === undefined)
28
- return false;
29
- if (!('beforeCreatedAt' in value) || value['beforeCreatedAt'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function IncidentsExportPdfBulkRequestFromJSON(json) {
34
- return IncidentsExportPdfBulkRequestFromJSONTyped(json, false);
35
- }
36
- function IncidentsExportPdfBulkRequestFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'venueId': json['venue_id'],
42
- 'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
43
- 'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
44
- 'afterCreatedAt': (new Date(json['after_created_at'])),
45
- 'beforeCreatedAt': (new Date(json['before_created_at'])),
46
- };
47
- }
48
- function IncidentsExportPdfBulkRequestToJSON(json) {
49
- return IncidentsExportPdfBulkRequestToJSONTyped(json, false);
50
- }
51
- function IncidentsExportPdfBulkRequestToJSONTyped(value, ignoreDiscriminator) {
52
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
53
- if (value == null) {
54
- return value;
55
- }
56
- return {
57
- 'venue_id': value['venueId'],
58
- 'security_company_id': value['securityCompanyId'],
59
- 'has_approved_at': value['hasApprovedAt'],
60
- 'after_created_at': ((value['afterCreatedAt']).toISOString()),
61
- 'before_created_at': ((value['beforeCreatedAt']).toISOString()),
62
- };
63
- }