@digital8/security-registers-backend-ts-sdk 0.0.383 → 0.0.384
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -10
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +9 -83
- package/dist/apis/GeneralApi.js +4 -390
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/AuthProfileUpdateRequest.d.ts +0 -6
- package/dist/models/AuthProfileUpdateRequest.js +0 -2
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +8 -3
- package/dist/models/AuthRegisterGuardRequestLicence.js +8 -3
- package/dist/models/CurrentRegisterResource.d.ts +5 -22
- package/dist/models/CurrentRegisterResource.js +7 -14
- package/dist/models/IncidentFieldAuditResource.d.ts +2 -17
- package/dist/models/IncidentFieldAuditResource.js +0 -7
- package/dist/models/IncidentFieldSchemaResource.d.ts +6 -13
- package/dist/models/IncidentFieldSchemaResource.js +0 -9
- package/dist/models/IncidentFieldSchemasShowRequest.d.ts +5 -0
- package/dist/models/IncidentFieldSchemasShowRequest.js +6 -1
- package/dist/models/IncidentListResource.d.ts +0 -6
- package/dist/models/IncidentListResource.js +0 -2
- package/dist/models/IncidentResource.d.ts +1 -1
- package/dist/models/IncidentVersionResource.d.ts +2 -2
- package/dist/models/IncidentVideoResource.d.ts +1 -10
- package/dist/models/IncidentVideoResource.js +0 -9
- package/dist/models/IncidentsStoreRequest.d.ts +1 -1
- package/dist/models/IncidentsUpdateRequest.d.ts +3 -3
- package/dist/models/LicenceListResource.d.ts +2 -11
- package/dist/models/LicenceListResource.js +0 -9
- package/dist/models/LicenceLiteResource.d.ts +2 -11
- package/dist/models/LicenceLiteResource.js +0 -9
- package/dist/models/LicenceResource.d.ts +2 -11
- package/dist/models/LicenceResource.js +0 -9
- package/dist/models/LicencesStoreRequest.d.ts +8 -3
- package/dist/models/LicencesStoreRequest.js +8 -3
- package/dist/models/LicencesUpdateRequest.d.ts +8 -3
- package/dist/models/LicencesUpdateRequest.js +8 -3
- package/dist/models/LicencesVerifyRequest.d.ts +6 -1
- package/dist/models/LicencesVerifyRequest.js +6 -1
- package/dist/models/MobileDeviceResource.d.ts +1 -9
- package/dist/models/MobileDeviceResource.js +0 -8
- package/dist/models/NearbyVenueResource.d.ts +62 -0
- package/dist/models/NearbyVenueResource.js +69 -0
- package/dist/models/NearbyVenueResourceArrayResponse.d.ts +33 -0
- package/dist/models/NearbyVenueResourceArrayResponse.js +50 -0
- package/dist/models/NotificationPreferenceResource.d.ts +1 -12
- package/dist/models/NotificationPreferenceResource.js +0 -11
- package/dist/models/NotificationPreferencesStoreRequest.d.ts +1 -0
- package/dist/models/NotificationPreferencesStoreRequest.js +1 -0
- package/dist/models/PdfExportQueuedResource.d.ts +44 -0
- package/dist/models/{ExportQueuedResource.js → PdfExportQueuedResource.js} +13 -23
- package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +33 -0
- package/dist/models/PdfExportQueuedResourceArrayResponse.js +50 -0
- package/dist/models/PdfExportResource.d.ts +1 -11
- package/dist/models/PdfExportResource.js +0 -10
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +3 -12
- package/dist/models/RegisterListResource.js +2 -15
- package/dist/models/RegisterResource.d.ts +1 -10
- package/dist/models/RegisterResource.js +0 -9
- package/dist/models/RegistersSignOffRequest.d.ts +3 -3
- package/dist/models/RegistersSignOffRequest.js +2 -2
- package/dist/models/RegistersSignOnRequest.d.ts +3 -3
- package/dist/models/RegistersSignOnRequest.js +2 -2
- package/dist/models/RosterListResource.d.ts +4 -19
- package/dist/models/RosterListResource.js +3 -17
- package/dist/models/RosterResource.d.ts +1 -10
- package/dist/models/RosterResource.js +0 -9
- package/dist/models/RosterWithRegistersResource.d.ts +1 -10
- package/dist/models/RosterWithRegistersResource.js +0 -9
- package/dist/models/UserResource.d.ts +2 -9
- package/dist/models/UserResource.js +2 -7
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +8 -3
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +8 -3
- package/dist/models/VenueLiteResource.d.ts +0 -6
- package/dist/models/VenueLiteResource.js +0 -4
- package/dist/models/index.d.ts +4 -10
- package/dist/models/index.js +4 -10
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +18 -348
- package/src/models/AssetResource.ts +3 -2
- package/src/models/AuthProfileUpdateRequest.ts +0 -8
- package/src/models/AuthRegisterGuardRequestLicence.ts +11 -6
- package/src/models/CurrentRegisterResource.ts +18 -35
- package/src/models/IncidentFieldAuditResource.ts +2 -27
- package/src/models/IncidentFieldSchemaResource.ts +4 -16
- package/src/models/IncidentFieldSchemasShowRequest.ts +6 -1
- package/src/models/IncidentListResource.ts +0 -8
- package/src/models/IncidentResource.ts +1 -1
- package/src/models/IncidentVersionResource.ts +2 -2
- package/src/models/IncidentVideoResource.ts +1 -13
- package/src/models/IncidentsStoreRequest.ts +1 -1
- package/src/models/IncidentsUpdateRequest.ts +3 -3
- package/src/models/LicenceListResource.ts +2 -14
- package/src/models/LicenceLiteResource.ts +2 -14
- package/src/models/LicenceResource.ts +2 -14
- package/src/models/LicencesStoreRequest.ts +11 -6
- package/src/models/LicencesUpdateRequest.ts +11 -6
- package/src/models/LicencesVerifyRequest.ts +7 -2
- package/src/models/MobileDeviceResource.ts +1 -12
- package/src/models/NearbyVenueResource.ts +110 -0
- package/src/models/NearbyVenueResourceArrayResponse.ts +73 -0
- package/src/models/NotificationPreferenceResource.ts +1 -15
- package/src/models/NotificationPreferencesStoreRequest.ts +1 -0
- package/src/models/PdfExportQueuedResource.ts +84 -0
- package/src/models/PdfExportQueuedResourceArrayResponse.ts +73 -0
- package/src/models/PdfExportResource.ts +1 -14
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +5 -19
- package/src/models/RegisterResource.ts +1 -13
- package/src/models/RegistersSignOffRequest.ts +5 -5
- package/src/models/RegistersSignOnRequest.ts +5 -5
- package/src/models/RosterListResource.ts +6 -28
- package/src/models/RosterResource.ts +1 -13
- package/src/models/RosterWithRegistersResource.ts +1 -13
- package/src/models/UserResource.ts +4 -20
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +11 -6
- package/src/models/VenueLiteResource.ts +0 -9
- package/src/models/index.ts +4 -10
- package/dist/models/ExportQueuedResource.d.ts +0 -54
- package/dist/models/ExportQueuedResourceArrayResponse.d.ts +0 -33
- package/dist/models/ExportQueuedResourceArrayResponse.js +0 -50
- package/dist/models/IncidentFieldItemLiteResource.d.ts +0 -38
- package/dist/models/IncidentFieldItemLiteResource.js +0 -54
- package/dist/models/IncidentFieldItemLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentFieldItemLiteResourceArrayResponse.js +0 -50
- package/dist/models/IncidentsExportCsvBulkRequest.d.ts +0 -56
- package/dist/models/IncidentsExportCsvBulkRequest.js +0 -63
- package/dist/models/LicenceVerificationFallbackSettingResource.d.ts +0 -57
- package/dist/models/LicenceVerificationFallbackSettingResource.js +0 -67
- package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.d.ts +0 -33
- package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.js +0 -50
- package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.d.ts +0 -44
- package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.js +0 -53
- package/dist/models/VenueMobileResource.d.ts +0 -105
- package/dist/models/VenueMobileResource.js +0 -96
- package/dist/models/VenueMobileResourceArrayResponse.d.ts +0 -33
- package/dist/models/VenueMobileResourceArrayResponse.js +0 -50
- package/src/models/ExportQueuedResource.ts +0 -97
- package/src/models/ExportQueuedResourceArrayResponse.ts +0 -73
- package/src/models/IncidentFieldItemLiteResource.ts +0 -74
- package/src/models/IncidentFieldItemLiteResourceArrayResponse.ts +0 -73
- package/src/models/IncidentsExportCsvBulkRequest.ts +0 -100
- package/src/models/LicenceVerificationFallbackSettingResource.ts +0 -109
- package/src/models/LicenceVerificationFallbackSettingResourceArrayResponse.ts +0 -73
- package/src/models/SettingsLicenceVerificationFallbackUpdateRequest.ts +0 -81
- package/src/models/VenueMobileResource.ts +0 -180
- package/src/models/VenueMobileResourceArrayResponse.ts +0 -73
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
AssetLiteResourceToJSON,
|
|
21
21
|
AssetLiteResourceToJSONTyped,
|
|
22
22
|
} from './AssetLiteResource';
|
|
23
|
-
import type { CurrentRegisterResource } from './CurrentRegisterResource';
|
|
24
|
-
import {
|
|
25
|
-
CurrentRegisterResourceFromJSON,
|
|
26
|
-
CurrentRegisterResourceFromJSONTyped,
|
|
27
|
-
CurrentRegisterResourceToJSON,
|
|
28
|
-
CurrentRegisterResourceToJSONTyped,
|
|
29
|
-
} from './CurrentRegisterResource';
|
|
30
23
|
|
|
31
24
|
/**
|
|
32
25
|
*
|
|
@@ -96,16 +89,10 @@ export interface UserResource {
|
|
|
96
89
|
signatureAsset: AssetLiteResource | null;
|
|
97
90
|
/**
|
|
98
91
|
*
|
|
99
|
-
* @type {
|
|
100
|
-
* @memberof UserResource
|
|
101
|
-
*/
|
|
102
|
-
profileImage: AssetLiteResource | null;
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @type {CurrentRegisterResource}
|
|
92
|
+
* @type {object}
|
|
106
93
|
* @memberof UserResource
|
|
107
94
|
*/
|
|
108
|
-
currentRegister:
|
|
95
|
+
currentRegister: object;
|
|
109
96
|
/**
|
|
110
97
|
*
|
|
111
98
|
* @type {Date}
|
|
@@ -134,7 +121,6 @@ export function instanceOfUserResource(value: object): value is UserResource {
|
|
|
134
121
|
if (!('hasVenues' in value) || value['hasVenues'] === undefined) return false;
|
|
135
122
|
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
136
123
|
if (!('signatureAsset' in value) || value['signatureAsset'] === undefined) return false;
|
|
137
|
-
if (!('profileImage' in value) || value['profileImage'] === undefined) return false;
|
|
138
124
|
if (!('currentRegister' in value) || value['currentRegister'] === undefined) return false;
|
|
139
125
|
return true;
|
|
140
126
|
}
|
|
@@ -159,8 +145,7 @@ export function UserResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
159
145
|
'hasVenues': json['hasVenues'],
|
|
160
146
|
'assets': (json['assets'] == null ? null : (json['assets'] as Array<any>).map(AssetLiteResourceFromJSON)),
|
|
161
147
|
'signatureAsset': AssetLiteResourceFromJSON(json['signatureAsset']),
|
|
162
|
-
'
|
|
163
|
-
'currentRegister': CurrentRegisterResourceFromJSON(json['currentRegister']),
|
|
148
|
+
'currentRegister': json['currentRegister'],
|
|
164
149
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
165
150
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
166
151
|
};
|
|
@@ -187,8 +172,7 @@ export function UserResourceToJSONTyped(value?: UserResource | null, ignoreDiscr
|
|
|
187
172
|
'hasVenues': value['hasVenues'],
|
|
188
173
|
'assets': (value['assets'] == null ? null : (value['assets'] as Array<any>).map(AssetLiteResourceToJSON)),
|
|
189
174
|
'signatureAsset': AssetLiteResourceToJSON(value['signatureAsset']),
|
|
190
|
-
'
|
|
191
|
-
'currentRegister': CurrentRegisterResourceToJSON(value['currentRegister']),
|
|
175
|
+
'currentRegister': value['currentRegister'],
|
|
192
176
|
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
193
177
|
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
194
178
|
};
|
|
@@ -73,11 +73,11 @@ export interface UsersCreateWithRoleRequestLicencesInner {
|
|
|
73
73
|
*/
|
|
74
74
|
lastName: string;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {
|
|
76
|
+
*
|
|
77
|
+
* @type {Date}
|
|
78
78
|
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
79
79
|
*/
|
|
80
|
-
expiryDate:
|
|
80
|
+
expiryDate: Date;
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
83
|
* @type {FrontAsset}
|
|
@@ -111,7 +111,12 @@ export interface UsersCreateWithRoleRequestLicencesInner {
|
|
|
111
111
|
export const UsersCreateWithRoleRequestLicencesInnerStateEnum = {
|
|
112
112
|
Qld: 'QLD',
|
|
113
113
|
Nsw: 'NSW',
|
|
114
|
-
|
|
114
|
+
Act: 'ACT',
|
|
115
|
+
Vic: 'VIC',
|
|
116
|
+
Tas: 'TAS',
|
|
117
|
+
Sa: 'SA',
|
|
118
|
+
Wa: 'WA',
|
|
119
|
+
Nt: 'NT'
|
|
115
120
|
} as const;
|
|
116
121
|
export type UsersCreateWithRoleRequestLicencesInnerStateEnum = typeof UsersCreateWithRoleRequestLicencesInnerStateEnum[keyof typeof UsersCreateWithRoleRequestLicencesInnerStateEnum];
|
|
117
122
|
|
|
@@ -143,7 +148,7 @@ export function UsersCreateWithRoleRequestLicencesInnerFromJSONTyped(json: any,
|
|
|
143
148
|
'licenceNumber': json['licence_number'],
|
|
144
149
|
'firstName': json['first_name'],
|
|
145
150
|
'lastName': json['last_name'],
|
|
146
|
-
'expiryDate': json['expiry_date'],
|
|
151
|
+
'expiryDate': (new Date(json['expiry_date'])),
|
|
147
152
|
'frontAsset': FrontAssetFromJSON(json['front_asset']),
|
|
148
153
|
'backAsset': json['back_asset'] == null ? undefined : BackAssetFromJSON(json['back_asset']),
|
|
149
154
|
'rsaAsset': json['rsa_asset'] == null ? undefined : RsaAssetFromJSON(json['rsa_asset']),
|
|
@@ -166,7 +171,7 @@ export function UsersCreateWithRoleRequestLicencesInnerToJSONTyped(value?: Users
|
|
|
166
171
|
'licence_number': value['licenceNumber'],
|
|
167
172
|
'first_name': value['firstName'],
|
|
168
173
|
'last_name': value['lastName'],
|
|
169
|
-
'expiry_date': value['expiryDate'],
|
|
174
|
+
'expiry_date': ((value['expiryDate']).toISOString()),
|
|
170
175
|
'front_asset': FrontAssetToJSON(value['frontAsset']),
|
|
171
176
|
'back_asset': BackAssetToJSON(value['backAsset']),
|
|
172
177
|
'rsa_asset': RsaAssetToJSON(value['rsaAsset']),
|
|
@@ -43,12 +43,6 @@ export interface VenueLiteResource {
|
|
|
43
43
|
* @memberof VenueLiteResource
|
|
44
44
|
*/
|
|
45
45
|
timezone: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof VenueLiteResource
|
|
50
|
-
*/
|
|
51
|
-
state: string;
|
|
52
46
|
}
|
|
53
47
|
|
|
54
48
|
/**
|
|
@@ -58,7 +52,6 @@ export function instanceOfVenueLiteResource(value: object): value is VenueLiteRe
|
|
|
58
52
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
59
53
|
if (!('venueCode' in value) || value['venueCode'] === undefined) return false;
|
|
60
54
|
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
61
|
-
if (!('state' in value) || value['state'] === undefined) return false;
|
|
62
55
|
return true;
|
|
63
56
|
}
|
|
64
57
|
|
|
@@ -76,7 +69,6 @@ export function VenueLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
76
69
|
'name': json['name'],
|
|
77
70
|
'venueCode': json['venueCode'],
|
|
78
71
|
'timezone': json['timezone'],
|
|
79
|
-
'state': json['state'],
|
|
80
72
|
};
|
|
81
73
|
}
|
|
82
74
|
|
|
@@ -95,7 +87,6 @@ export function VenueLiteResourceToJSONTyped(value?: VenueLiteResource | null, i
|
|
|
95
87
|
'name': value['name'],
|
|
96
88
|
'venueCode': value['venueCode'],
|
|
97
89
|
'timezone': value['timezone'],
|
|
98
|
-
'state': value['state'],
|
|
99
90
|
};
|
|
100
91
|
}
|
|
101
92
|
|
package/src/models/index.ts
CHANGED
|
@@ -17,15 +17,11 @@ export * from './BackAsset';
|
|
|
17
17
|
export * from './CurrentRegisterResource';
|
|
18
18
|
export * from './CurrentRegisterResourceArrayResponse';
|
|
19
19
|
export * from './DevicesRegisterRequest';
|
|
20
|
-
export * from './ExportQueuedResource';
|
|
21
|
-
export * from './ExportQueuedResourceArrayResponse';
|
|
22
20
|
export * from './FirstAidAsset';
|
|
23
21
|
export * from './FrontAsset';
|
|
24
22
|
export * from './GenericResponse';
|
|
25
23
|
export * from './IncidentFieldAuditResource';
|
|
26
24
|
export * from './IncidentFieldAuditResourceArrayResponse';
|
|
27
|
-
export * from './IncidentFieldItemLiteResource';
|
|
28
|
-
export * from './IncidentFieldItemLiteResourceArrayResponse';
|
|
29
25
|
export * from './IncidentFieldSchemaResource';
|
|
30
26
|
export * from './IncidentFieldSchemaResourceArrayResponse';
|
|
31
27
|
export * from './IncidentFieldSchemasShowRequest';
|
|
@@ -48,7 +44,6 @@ export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
|
48
44
|
export * from './IncidentVideoUploadTokenResource';
|
|
49
45
|
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
50
46
|
export * from './IncidentsApproveRequest';
|
|
51
|
-
export * from './IncidentsExportCsvBulkRequest';
|
|
52
47
|
export * from './IncidentsExportPdfBulkRequest';
|
|
53
48
|
export * from './IncidentsListRequest';
|
|
54
49
|
export * from './IncidentsStoreRequest';
|
|
@@ -63,8 +58,6 @@ export * from './LicenceLiteResource';
|
|
|
63
58
|
export * from './LicenceLiteResourceArrayResponse';
|
|
64
59
|
export * from './LicenceResource';
|
|
65
60
|
export * from './LicenceResourceArrayResponse';
|
|
66
|
-
export * from './LicenceVerificationFallbackSettingResource';
|
|
67
|
-
export * from './LicenceVerificationFallbackSettingResourceArrayResponse';
|
|
68
61
|
export * from './LicencesListAllRequest';
|
|
69
62
|
export * from './LicencesListRequest';
|
|
70
63
|
export * from './LicencesStoreRequest';
|
|
@@ -76,6 +69,8 @@ export * from './MobileDeviceResource';
|
|
|
76
69
|
export * from './MobileDeviceResourceArrayResponse';
|
|
77
70
|
export * from './MobileInitResource';
|
|
78
71
|
export * from './MobileInitResourceArrayResponse';
|
|
72
|
+
export * from './NearbyVenueResource';
|
|
73
|
+
export * from './NearbyVenueResourceArrayResponse';
|
|
79
74
|
export * from './NotificationPreferenceResource';
|
|
80
75
|
export * from './NotificationPreferenceResourceArrayResponse';
|
|
81
76
|
export * from './NotificationPreferencesStoreRequest';
|
|
@@ -94,6 +89,8 @@ export * from './PaginatedSecurityCompanyResourceResponse';
|
|
|
94
89
|
export * from './PaginatedUserResourceResponse';
|
|
95
90
|
export * from './PaginatedVenueResourceResponse';
|
|
96
91
|
export * from './PagingMetadata';
|
|
92
|
+
export * from './PdfExportQueuedResource';
|
|
93
|
+
export * from './PdfExportQueuedResourceArrayResponse';
|
|
97
94
|
export * from './PdfExportResource';
|
|
98
95
|
export * from './PdfExportResourceArrayResponse';
|
|
99
96
|
export * from './RegisterGroupedByRosterResource';
|
|
@@ -135,7 +132,6 @@ export * from './SecurityCompanyLiteResourceArrayResponse';
|
|
|
135
132
|
export * from './SecurityCompanyResource';
|
|
136
133
|
export * from './SecurityCompanyResourceArrayResponse';
|
|
137
134
|
export * from './SendForgotPasswordLinkAuthRequest';
|
|
138
|
-
export * from './SettingsLicenceVerificationFallbackUpdateRequest';
|
|
139
135
|
export * from './StoreAssetFileRequest';
|
|
140
136
|
export * from './StoreUserRequest';
|
|
141
137
|
export * from './UpdateUserRequest';
|
|
@@ -157,8 +153,6 @@ export * from './VenueGuardScheduleResource';
|
|
|
157
153
|
export * from './VenueGuardScheduleResourceArrayResponse';
|
|
158
154
|
export * from './VenueLiteResource';
|
|
159
155
|
export * from './VenueLiteResourceArrayResponse';
|
|
160
|
-
export * from './VenueMobileResource';
|
|
161
|
-
export * from './VenueMobileResourceArrayResponse';
|
|
162
156
|
export * from './VenueResource';
|
|
163
157
|
export * from './VenueResourceArrayResponse';
|
|
164
158
|
export * from './VenuesAttachUsersRequest';
|
|
@@ -1,54 +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 ExportQueuedResource
|
|
16
|
-
*/
|
|
17
|
-
export interface ExportQueuedResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof ExportQueuedResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ExportQueuedResource
|
|
28
|
-
*/
|
|
29
|
-
status: ExportQueuedResourceStatusEnum;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ExportQueuedResource
|
|
34
|
-
*/
|
|
35
|
-
message: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export declare const ExportQueuedResourceStatusEnum: {
|
|
41
|
-
readonly Pending: "pending";
|
|
42
|
-
readonly Processing: "processing";
|
|
43
|
-
readonly Completed: "completed";
|
|
44
|
-
readonly Failed: "failed";
|
|
45
|
-
};
|
|
46
|
-
export type ExportQueuedResourceStatusEnum = typeof ExportQueuedResourceStatusEnum[keyof typeof ExportQueuedResourceStatusEnum];
|
|
47
|
-
/**
|
|
48
|
-
* Check if a given object implements the ExportQueuedResource interface.
|
|
49
|
-
*/
|
|
50
|
-
export declare function instanceOfExportQueuedResource(value: object): value is ExportQueuedResource;
|
|
51
|
-
export declare function ExportQueuedResourceFromJSON(json: any): ExportQueuedResource;
|
|
52
|
-
export declare function ExportQueuedResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportQueuedResource;
|
|
53
|
-
export declare function ExportQueuedResourceToJSON(json: any): ExportQueuedResource;
|
|
54
|
-
export declare function ExportQueuedResourceToJSONTyped(value?: ExportQueuedResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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 { ExportQueuedResource } from './ExportQueuedResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ExportQueuedResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface ExportQueuedResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<ExportQueuedResource>}
|
|
22
|
-
* @memberof ExportQueuedResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<ExportQueuedResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the ExportQueuedResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfExportQueuedResourceArrayResponse(value: object): value is ExportQueuedResourceArrayResponse;
|
|
30
|
-
export declare function ExportQueuedResourceArrayResponseFromJSON(json: any): ExportQueuedResourceArrayResponse;
|
|
31
|
-
export declare function ExportQueuedResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportQueuedResourceArrayResponse;
|
|
32
|
-
export declare function ExportQueuedResourceArrayResponseToJSON(json: any): ExportQueuedResourceArrayResponse;
|
|
33
|
-
export declare function ExportQueuedResourceArrayResponseToJSONTyped(value?: ExportQueuedResourceArrayResponse | 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.instanceOfExportQueuedResourceArrayResponse = instanceOfExportQueuedResourceArrayResponse;
|
|
17
|
-
exports.ExportQueuedResourceArrayResponseFromJSON = ExportQueuedResourceArrayResponseFromJSON;
|
|
18
|
-
exports.ExportQueuedResourceArrayResponseFromJSONTyped = ExportQueuedResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.ExportQueuedResourceArrayResponseToJSON = ExportQueuedResourceArrayResponseToJSON;
|
|
20
|
-
exports.ExportQueuedResourceArrayResponseToJSONTyped = ExportQueuedResourceArrayResponseToJSONTyped;
|
|
21
|
-
var ExportQueuedResource_1 = require("./ExportQueuedResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the ExportQueuedResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfExportQueuedResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function ExportQueuedResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return ExportQueuedResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function ExportQueuedResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(ExportQueuedResource_1.ExportQueuedResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function ExportQueuedResourceArrayResponseToJSON(json) {
|
|
40
|
-
return ExportQueuedResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function ExportQueuedResourceArrayResponseToJSONTyped(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(ExportQueuedResource_1.ExportQueuedResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,38 +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 IncidentFieldItemLiteResource
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentFieldItemLiteResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof IncidentFieldItemLiteResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {Date}
|
|
27
|
-
* @memberof IncidentFieldItemLiteResource
|
|
28
|
-
*/
|
|
29
|
-
deletedAt?: Date | null;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the IncidentFieldItemLiteResource interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfIncidentFieldItemLiteResource(value: object): value is IncidentFieldItemLiteResource;
|
|
35
|
-
export declare function IncidentFieldItemLiteResourceFromJSON(json: any): IncidentFieldItemLiteResource;
|
|
36
|
-
export declare function IncidentFieldItemLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldItemLiteResource;
|
|
37
|
-
export declare function IncidentFieldItemLiteResourceToJSON(json: any): IncidentFieldItemLiteResource;
|
|
38
|
-
export declare function IncidentFieldItemLiteResourceToJSONTyped(value?: IncidentFieldItemLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,54 +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.instanceOfIncidentFieldItemLiteResource = instanceOfIncidentFieldItemLiteResource;
|
|
17
|
-
exports.IncidentFieldItemLiteResourceFromJSON = IncidentFieldItemLiteResourceFromJSON;
|
|
18
|
-
exports.IncidentFieldItemLiteResourceFromJSONTyped = IncidentFieldItemLiteResourceFromJSONTyped;
|
|
19
|
-
exports.IncidentFieldItemLiteResourceToJSON = IncidentFieldItemLiteResourceToJSON;
|
|
20
|
-
exports.IncidentFieldItemLiteResourceToJSONTyped = IncidentFieldItemLiteResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentFieldItemLiteResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentFieldItemLiteResource(value) {
|
|
25
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function IncidentFieldItemLiteResourceFromJSON(json) {
|
|
30
|
-
return IncidentFieldItemLiteResourceFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function IncidentFieldItemLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'id': json['id'],
|
|
38
|
-
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function IncidentFieldItemLiteResourceToJSON(json) {
|
|
42
|
-
return IncidentFieldItemLiteResourceToJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function IncidentFieldItemLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
-
var _a;
|
|
46
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
-
if (value == null) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'id': value['id'],
|
|
52
|
-
'deletedAt': value['deletedAt'] === null ? null : ((_a = value['deletedAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
53
|
-
};
|
|
54
|
-
}
|
|
@@ -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 { IncidentFieldItemLiteResource } from './IncidentFieldItemLiteResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface IncidentFieldItemLiteResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface IncidentFieldItemLiteResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<IncidentFieldItemLiteResource>}
|
|
22
|
-
* @memberof IncidentFieldItemLiteResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<IncidentFieldItemLiteResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the IncidentFieldItemLiteResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfIncidentFieldItemLiteResourceArrayResponse(value: object): value is IncidentFieldItemLiteResourceArrayResponse;
|
|
30
|
-
export declare function IncidentFieldItemLiteResourceArrayResponseFromJSON(json: any): IncidentFieldItemLiteResourceArrayResponse;
|
|
31
|
-
export declare function IncidentFieldItemLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldItemLiteResourceArrayResponse;
|
|
32
|
-
export declare function IncidentFieldItemLiteResourceArrayResponseToJSON(json: any): IncidentFieldItemLiteResourceArrayResponse;
|
|
33
|
-
export declare function IncidentFieldItemLiteResourceArrayResponseToJSONTyped(value?: IncidentFieldItemLiteResourceArrayResponse | 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.instanceOfIncidentFieldItemLiteResourceArrayResponse = instanceOfIncidentFieldItemLiteResourceArrayResponse;
|
|
17
|
-
exports.IncidentFieldItemLiteResourceArrayResponseFromJSON = IncidentFieldItemLiteResourceArrayResponseFromJSON;
|
|
18
|
-
exports.IncidentFieldItemLiteResourceArrayResponseFromJSONTyped = IncidentFieldItemLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.IncidentFieldItemLiteResourceArrayResponseToJSON = IncidentFieldItemLiteResourceArrayResponseToJSON;
|
|
20
|
-
exports.IncidentFieldItemLiteResourceArrayResponseToJSONTyped = IncidentFieldItemLiteResourceArrayResponseToJSONTyped;
|
|
21
|
-
var IncidentFieldItemLiteResource_1 = require("./IncidentFieldItemLiteResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the IncidentFieldItemLiteResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfIncidentFieldItemLiteResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function IncidentFieldItemLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return IncidentFieldItemLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function IncidentFieldItemLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(IncidentFieldItemLiteResource_1.IncidentFieldItemLiteResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function IncidentFieldItemLiteResourceArrayResponseToJSON(json) {
|
|
40
|
-
return IncidentFieldItemLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function IncidentFieldItemLiteResourceArrayResponseToJSONTyped(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(IncidentFieldItemLiteResource_1.IncidentFieldItemLiteResourceToJSON)),
|
|
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 IncidentsExportCsvBulkRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentsExportCsvBulkRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof IncidentsExportCsvBulkRequest
|
|
22
|
-
*/
|
|
23
|
-
venueId: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof IncidentsExportCsvBulkRequest
|
|
28
|
-
*/
|
|
29
|
-
securityCompanyId?: number;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof IncidentsExportCsvBulkRequest
|
|
34
|
-
*/
|
|
35
|
-
hasApprovedAt?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {Date}
|
|
39
|
-
* @memberof IncidentsExportCsvBulkRequest
|
|
40
|
-
*/
|
|
41
|
-
afterCreatedAt: Date;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {Date}
|
|
45
|
-
* @memberof IncidentsExportCsvBulkRequest
|
|
46
|
-
*/
|
|
47
|
-
beforeCreatedAt: Date;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the IncidentsExportCsvBulkRequest interface.
|
|
51
|
-
*/
|
|
52
|
-
export declare function instanceOfIncidentsExportCsvBulkRequest(value: object): value is IncidentsExportCsvBulkRequest;
|
|
53
|
-
export declare function IncidentsExportCsvBulkRequestFromJSON(json: any): IncidentsExportCsvBulkRequest;
|
|
54
|
-
export declare function IncidentsExportCsvBulkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsExportCsvBulkRequest;
|
|
55
|
-
export declare function IncidentsExportCsvBulkRequestToJSON(json: any): IncidentsExportCsvBulkRequest;
|
|
56
|
-
export declare function IncidentsExportCsvBulkRequestToJSONTyped(value?: IncidentsExportCsvBulkRequest | 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.instanceOfIncidentsExportCsvBulkRequest = instanceOfIncidentsExportCsvBulkRequest;
|
|
17
|
-
exports.IncidentsExportCsvBulkRequestFromJSON = IncidentsExportCsvBulkRequestFromJSON;
|
|
18
|
-
exports.IncidentsExportCsvBulkRequestFromJSONTyped = IncidentsExportCsvBulkRequestFromJSONTyped;
|
|
19
|
-
exports.IncidentsExportCsvBulkRequestToJSON = IncidentsExportCsvBulkRequestToJSON;
|
|
20
|
-
exports.IncidentsExportCsvBulkRequestToJSONTyped = IncidentsExportCsvBulkRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentsExportCsvBulkRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentsExportCsvBulkRequest(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 IncidentsExportCsvBulkRequestFromJSON(json) {
|
|
34
|
-
return IncidentsExportCsvBulkRequestFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function IncidentsExportCsvBulkRequestFromJSONTyped(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 IncidentsExportCsvBulkRequestToJSON(json) {
|
|
49
|
-
return IncidentsExportCsvBulkRequestToJSONTyped(json, false);
|
|
50
|
-
}
|
|
51
|
-
function IncidentsExportCsvBulkRequestToJSONTyped(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
|
-
}
|