@digital8/security-registers-backend-ts-sdk 0.0.312 → 0.0.313
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 +2 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +5 -5
- package/dist/apis/GeneralApi.js +2 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/AuthProfileUpdateRequest.d.ts +6 -0
- package/dist/models/AuthProfileUpdateRequest.js +2 -0
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +3 -3
- package/dist/models/AuthRegisterGuardRequestLicence.js +2 -2
- package/dist/models/CurrentRegisterResource.d.ts +22 -5
- package/dist/models/CurrentRegisterResource.js +14 -7
- package/dist/models/IncidentFieldSchemaResource.d.ts +16 -2
- package/dist/models/IncidentFieldSchemaResource.js +14 -0
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- package/dist/models/IncidentVideoResource.d.ts +10 -1
- package/dist/models/IncidentVideoResource.js +9 -0
- package/dist/models/LicenceListResource.d.ts +16 -2
- package/dist/models/LicenceListResource.js +14 -0
- package/dist/models/LicenceLiteResource.d.ts +16 -2
- package/dist/models/LicenceLiteResource.js +14 -0
- package/dist/models/LicenceResource.d.ts +16 -2
- package/dist/models/LicenceResource.js +14 -0
- package/dist/models/LicencesStoreRequest.d.ts +3 -3
- package/dist/models/LicencesStoreRequest.js +2 -2
- package/dist/models/LicencesUpdateRequest.d.ts +3 -3
- package/dist/models/LicencesUpdateRequest.js +2 -2
- package/dist/models/LicencesVerifyRequest.d.ts +1 -1
- package/dist/models/MobileDeviceResource.d.ts +9 -1
- package/dist/models/MobileDeviceResource.js +8 -0
- package/dist/models/NotificationPreferenceResource.d.ts +12 -1
- package/dist/models/NotificationPreferenceResource.js +11 -0
- package/dist/models/NotificationPreferencesStoreRequest.d.ts +0 -1
- package/dist/models/NotificationPreferencesStoreRequest.js +0 -1
- package/dist/models/PdfExportQueuedResource.d.ts +11 -1
- package/dist/models/PdfExportQueuedResource.js +10 -0
- package/dist/models/PdfExportResource.d.ts +11 -1
- package/dist/models/PdfExportResource.js +10 -0
- package/dist/models/RegisterListResource.d.ts +11 -2
- package/dist/models/RegisterListResource.js +10 -3
- package/dist/models/RegisterResource.d.ts +13 -4
- package/dist/models/RegisterResource.js +20 -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 +18 -3
- package/dist/models/RosterListResource.js +13 -0
- package/dist/models/RosterResource.d.ts +11 -2
- package/dist/models/RosterResource.js +12 -4
- package/dist/models/RosterWithRegistersResource.d.ts +10 -1
- package/dist/models/RosterWithRegistersResource.js +9 -0
- package/dist/models/UserResource.d.ts +9 -2
- package/dist/models/UserResource.js +7 -2
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +3 -3
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +2 -2
- package/dist/models/VenueMobileResource.d.ts +93 -0
- package/dist/models/VenueMobileResource.js +88 -0
- package/dist/models/VenueMobileResourceArrayResponse.d.ts +33 -0
- package/dist/models/VenueMobileResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +9 -6
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AssetResource.ts +2 -3
- package/src/models/AuthProfileUpdateRequest.ts +8 -0
- package/src/models/AuthRegisterGuardRequestLicence.ts +5 -5
- package/src/models/CurrentRegisterResource.ts +35 -18
- package/src/models/IncidentFieldSchemaResource.ts +19 -2
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/IncidentVideoResource.ts +13 -1
- package/src/models/LicenceListResource.ts +19 -2
- package/src/models/LicenceLiteResource.ts +19 -2
- package/src/models/LicenceResource.ts +19 -2
- package/src/models/LicencesStoreRequest.ts +5 -5
- package/src/models/LicencesUpdateRequest.ts +5 -5
- package/src/models/LicencesVerifyRequest.ts +1 -1
- package/src/models/MobileDeviceResource.ts +12 -1
- package/src/models/NotificationPreferenceResource.ts +15 -1
- package/src/models/NotificationPreferencesStoreRequest.ts +0 -1
- package/src/models/PdfExportQueuedResource.ts +14 -1
- package/src/models/PdfExportResource.ts +14 -1
- package/src/models/RegisterListResource.ts +15 -4
- package/src/models/RegisterResource.ts +22 -9
- package/src/models/RegistersSignOffRequest.ts +5 -5
- package/src/models/RegistersSignOnRequest.ts +5 -5
- package/src/models/RosterListResource.ts +24 -3
- package/src/models/RosterResource.ts +16 -5
- package/src/models/RosterWithRegistersResource.ts +13 -1
- package/src/models/UserResource.ts +20 -4
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +5 -5
- package/src/models/VenueMobileResource.ts +162 -0
- package/src/models/VenueMobileResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -155,6 +155,8 @@ src/models/UsersDetachVenuesRequest.ts
|
|
|
155
155
|
src/models/UsersRegisterVenueManagerRequest.ts
|
|
156
156
|
src/models/VenueLiteResource.ts
|
|
157
157
|
src/models/VenueLiteResourceArrayResponse.ts
|
|
158
|
+
src/models/VenueMobileResource.ts
|
|
159
|
+
src/models/VenueMobileResourceArrayResponse.ts
|
|
158
160
|
src/models/VenueResource.ts
|
|
159
161
|
src/models/VenueResourceArrayResponse.ts
|
|
160
162
|
src/models/VenuesAttachUsersRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.313
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/security-registers-backend-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/security-registers-backend-ts-sdk@0.0.313 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthProfileUpdateRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsExportPdfBulkRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, LoginAuthRequest, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, PdfExportQueuedResource, PdfExportResource, RegisterLiteResourceArrayResponse, RegisterResource, RegistersCreateRequest, RegistersListAllRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, ResetPasswordAuthRequest, RosterLiteResourceArrayResponse, RosterResource, RostersExportPdfRequest, RostersListAllRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SendForgotPasswordLinkAuthRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesListAllRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
|
|
13
|
+
import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthProfileUpdateRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsExportPdfBulkRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, LoginAuthRequest, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, PdfExportQueuedResource, PdfExportResource, RegisterLiteResourceArrayResponse, RegisterResource, RegistersCreateRequest, RegistersListAllRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, ResetPasswordAuthRequest, RosterLiteResourceArrayResponse, RosterResource, RostersExportPdfRequest, RostersListAllRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SendForgotPasswordLinkAuthRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueLiteResourceArrayResponse, VenueMobileResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesListAllRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
|
|
14
14
|
export interface AuthChangePasswordOperationRequest {
|
|
15
15
|
authChangePasswordRequest?: AuthChangePasswordRequest;
|
|
16
16
|
}
|
|
@@ -945,19 +945,19 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
945
945
|
/**
|
|
946
946
|
* Auto-generated: venues.nearby
|
|
947
947
|
*/
|
|
948
|
-
venuesNearbyRaw(requestParameters: VenuesNearbyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
948
|
+
venuesNearbyRaw(requestParameters: VenuesNearbyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VenueMobileResourceArrayResponse>>;
|
|
949
949
|
/**
|
|
950
950
|
* Auto-generated: venues.nearby
|
|
951
951
|
*/
|
|
952
|
-
venuesNearby(requestParameters?: VenuesNearbyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
952
|
+
venuesNearby(requestParameters?: VenuesNearbyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VenueMobileResourceArrayResponse>;
|
|
953
953
|
/**
|
|
954
954
|
* Auto-generated: venues.previous
|
|
955
955
|
*/
|
|
956
|
-
venuesPreviousRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
956
|
+
venuesPreviousRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VenueMobileResourceArrayResponse>>;
|
|
957
957
|
/**
|
|
958
958
|
* Auto-generated: venues.previous
|
|
959
959
|
*/
|
|
960
|
-
venuesPrevious(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
960
|
+
venuesPrevious(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VenueMobileResourceArrayResponse>;
|
|
961
961
|
/**
|
|
962
962
|
* Auto-generated: venues.public.store
|
|
963
963
|
*/
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -4693,7 +4693,7 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
4693
4693
|
}, initOverrides)];
|
|
4694
4694
|
case 3:
|
|
4695
4695
|
response = _a.sent();
|
|
4696
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
4696
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.VenueMobileResourceArrayResponseFromJSON)(jsonValue); })];
|
|
4697
4697
|
}
|
|
4698
4698
|
});
|
|
4699
4699
|
});
|
|
@@ -4746,7 +4746,7 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
4746
4746
|
}, initOverrides)];
|
|
4747
4747
|
case 3:
|
|
4748
4748
|
response = _a.sent();
|
|
4749
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
4749
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.VenueMobileResourceArrayResponseFromJSON)(jsonValue); })];
|
|
4750
4750
|
}
|
|
4751
4751
|
});
|
|
4752
4752
|
});
|
|
@@ -24,8 +24,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('addressLine2' in value) || value['addressLine2'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
return {
|
|
51
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
50
|
'addressLine1': json['addressLine1'],
|
|
53
|
-
'addressLine2': json['addressLine2'],
|
|
51
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
54
52
|
'suburb': json['suburb'],
|
|
55
53
|
'city': json['city'],
|
|
56
54
|
'state': json['state'],
|
|
@@ -30,8 +30,6 @@ function instanceOfAssetResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('altText' in value) || value['altText'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
if (!('index' in value) || value['index'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
'filePath': json['filePath'],
|
|
51
49
|
'fileName': json['fileName'],
|
|
52
50
|
'mimeType': json['mimeType'],
|
|
53
|
-
'altText': json['altText'],
|
|
51
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
54
52
|
'index': json['index'],
|
|
55
53
|
'fileId': json['fileId'],
|
|
56
54
|
};
|
|
@@ -45,6 +45,12 @@ export interface AuthProfileUpdateRequest {
|
|
|
45
45
|
* @memberof AuthProfileUpdateRequest
|
|
46
46
|
*/
|
|
47
47
|
signatureAssetId?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof AuthProfileUpdateRequest
|
|
52
|
+
*/
|
|
53
|
+
profileImageAssetId?: number;
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* Check if a given object implements the AuthProfileUpdateRequest interface.
|
|
@@ -37,6 +37,7 @@ function AuthProfileUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'email': json['email'] == null ? undefined : json['email'],
|
|
38
38
|
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
39
39
|
'signatureAssetId': json['signature_asset_id'] == null ? undefined : json['signature_asset_id'],
|
|
40
|
+
'profileImageAssetId': json['profile_image_asset_id'] == null ? undefined : json['profile_image_asset_id'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
function AuthProfileUpdateRequestToJSON(json) {
|
|
@@ -53,5 +54,6 @@ function AuthProfileUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
53
54
|
'email': value['email'],
|
|
54
55
|
'mobile': value['mobile'],
|
|
55
56
|
'signature_asset_id': value['signatureAssetId'],
|
|
57
|
+
'profile_image_asset_id': value['profileImageAssetId'],
|
|
56
58
|
};
|
|
57
59
|
}
|
|
@@ -44,11 +44,11 @@ export interface AuthRegisterGuardRequestLicence {
|
|
|
44
44
|
*/
|
|
45
45
|
lastName: string;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {
|
|
47
|
+
* ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
|
|
48
|
+
* @type {string}
|
|
49
49
|
* @memberof AuthRegisterGuardRequestLicence
|
|
50
50
|
*/
|
|
51
|
-
expiryDate:
|
|
51
|
+
expiryDate: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {FrontAsset}
|
|
@@ -66,7 +66,7 @@ function AuthRegisterGuardRequestLicenceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
66
66
|
'licenceNumber': json['licence_number'],
|
|
67
67
|
'firstName': json['first_name'],
|
|
68
68
|
'lastName': json['last_name'],
|
|
69
|
-
'expiryDate':
|
|
69
|
+
'expiryDate': json['expiry_date'],
|
|
70
70
|
'frontAsset': (0, FrontAsset_1.FrontAssetFromJSON)(json['front_asset']),
|
|
71
71
|
'backAsset': json['back_asset'] == null ? undefined : (0, BackAsset_1.BackAssetFromJSON)(json['back_asset']),
|
|
72
72
|
'rsaAsset': json['rsa_asset'] == null ? undefined : (0, RsaAsset_1.RsaAssetFromJSON)(json['rsa_asset']),
|
|
@@ -86,7 +86,7 @@ function AuthRegisterGuardRequestLicenceToJSONTyped(value, ignoreDiscriminator)
|
|
|
86
86
|
'licence_number': value['licenceNumber'],
|
|
87
87
|
'first_name': value['firstName'],
|
|
88
88
|
'last_name': value['lastName'],
|
|
89
|
-
'expiry_date':
|
|
89
|
+
'expiry_date': value['expiryDate'],
|
|
90
90
|
'front_asset': (0, FrontAsset_1.FrontAssetToJSON)(value['frontAsset']),
|
|
91
91
|
'back_asset': (0, BackAsset_1.BackAssetToJSON)(value['backAsset']),
|
|
92
92
|
'rsa_asset': (0, RsaAsset_1.RsaAssetToJSON)(value['rsaAsset']),
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { VenueLiteResource } from './VenueLiteResource';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -18,16 +17,34 @@ import type { VenueLiteResource } from './VenueLiteResource';
|
|
|
18
17
|
export interface CurrentRegisterResource {
|
|
19
18
|
/**
|
|
20
19
|
*
|
|
21
|
-
* @type {
|
|
20
|
+
* @type {number}
|
|
22
21
|
* @memberof CurrentRegisterResource
|
|
23
22
|
*/
|
|
24
|
-
|
|
23
|
+
id?: number | null;
|
|
25
24
|
/**
|
|
26
25
|
*
|
|
27
|
-
* @type {
|
|
26
|
+
* @type {number}
|
|
28
27
|
* @memberof CurrentRegisterResource
|
|
29
28
|
*/
|
|
30
|
-
|
|
29
|
+
venueId?: number | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof CurrentRegisterResource
|
|
34
|
+
*/
|
|
35
|
+
startDateTime: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CurrentRegisterResource
|
|
40
|
+
*/
|
|
41
|
+
latitude: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CurrentRegisterResource
|
|
46
|
+
*/
|
|
47
|
+
longitude: number;
|
|
31
48
|
}
|
|
32
49
|
/**
|
|
33
50
|
* Check if a given object implements the CurrentRegisterResource interface.
|
|
@@ -18,14 +18,15 @@ exports.CurrentRegisterResourceFromJSON = CurrentRegisterResourceFromJSON;
|
|
|
18
18
|
exports.CurrentRegisterResourceFromJSONTyped = CurrentRegisterResourceFromJSONTyped;
|
|
19
19
|
exports.CurrentRegisterResourceToJSON = CurrentRegisterResourceToJSON;
|
|
20
20
|
exports.CurrentRegisterResourceToJSONTyped = CurrentRegisterResourceToJSONTyped;
|
|
21
|
-
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
21
|
/**
|
|
23
22
|
* Check if a given object implements the CurrentRegisterResource interface.
|
|
24
23
|
*/
|
|
25
24
|
function instanceOfCurrentRegisterResource(value) {
|
|
26
|
-
if (!('
|
|
25
|
+
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
27
26
|
return false;
|
|
28
|
-
if (!('
|
|
27
|
+
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
29
30
|
return false;
|
|
30
31
|
return true;
|
|
31
32
|
}
|
|
@@ -37,8 +38,11 @@ function CurrentRegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
return json;
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
40
|
-
'
|
|
41
|
-
'
|
|
41
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
42
|
+
'venueId': json['venueId'] == null ? undefined : json['venueId'],
|
|
43
|
+
'startDateTime': (new Date(json['startDateTime'])),
|
|
44
|
+
'latitude': json['latitude'],
|
|
45
|
+
'longitude': json['longitude'],
|
|
42
46
|
};
|
|
43
47
|
}
|
|
44
48
|
function CurrentRegisterResourceToJSON(json) {
|
|
@@ -50,7 +54,10 @@ function CurrentRegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
50
54
|
return value;
|
|
51
55
|
}
|
|
52
56
|
return {
|
|
53
|
-
'
|
|
54
|
-
'
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'venueId': value['venueId'],
|
|
59
|
+
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
60
|
+
'latitude': value['latitude'],
|
|
61
|
+
'longitude': value['longitude'],
|
|
55
62
|
};
|
|
56
63
|
}
|
|
@@ -23,10 +23,10 @@ export interface IncidentFieldSchemaResource {
|
|
|
23
23
|
id?: number | null;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {string}
|
|
27
27
|
* @memberof IncidentFieldSchemaResource
|
|
28
28
|
*/
|
|
29
|
-
state:
|
|
29
|
+
state: IncidentFieldSchemaResourceStateEnum;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {{ [key: string]: boolean; }}
|
|
@@ -48,6 +48,20 @@ export interface IncidentFieldSchemaResource {
|
|
|
48
48
|
*/
|
|
49
49
|
updatedAt?: Date | null;
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export declare const IncidentFieldSchemaResourceStateEnum: {
|
|
55
|
+
readonly Qld: "QLD";
|
|
56
|
+
readonly Nsw: "NSW";
|
|
57
|
+
readonly Act: "ACT";
|
|
58
|
+
readonly Vic: "VIC";
|
|
59
|
+
readonly Tas: "TAS";
|
|
60
|
+
readonly Sa: "SA";
|
|
61
|
+
readonly Wa: "WA";
|
|
62
|
+
readonly Nt: "NT";
|
|
63
|
+
};
|
|
64
|
+
export type IncidentFieldSchemaResourceStateEnum = typeof IncidentFieldSchemaResourceStateEnum[keyof typeof IncidentFieldSchemaResourceStateEnum];
|
|
51
65
|
/**
|
|
52
66
|
* Check if a given object implements the IncidentFieldSchemaResource interface.
|
|
53
67
|
*/
|
|
@@ -13,11 +13,25 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.IncidentFieldSchemaResourceStateEnum = void 0;
|
|
16
17
|
exports.instanceOfIncidentFieldSchemaResource = instanceOfIncidentFieldSchemaResource;
|
|
17
18
|
exports.IncidentFieldSchemaResourceFromJSON = IncidentFieldSchemaResourceFromJSON;
|
|
18
19
|
exports.IncidentFieldSchemaResourceFromJSONTyped = IncidentFieldSchemaResourceFromJSONTyped;
|
|
19
20
|
exports.IncidentFieldSchemaResourceToJSON = IncidentFieldSchemaResourceToJSON;
|
|
20
21
|
exports.IncidentFieldSchemaResourceToJSONTyped = IncidentFieldSchemaResourceToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IncidentFieldSchemaResourceStateEnum = {
|
|
26
|
+
Qld: 'QLD',
|
|
27
|
+
Nsw: 'NSW',
|
|
28
|
+
Act: 'ACT',
|
|
29
|
+
Vic: 'VIC',
|
|
30
|
+
Tas: 'TAS',
|
|
31
|
+
Sa: 'SA',
|
|
32
|
+
Wa: 'WA',
|
|
33
|
+
Nt: 'NT'
|
|
34
|
+
};
|
|
21
35
|
/**
|
|
22
36
|
* Check if a given object implements the IncidentFieldSchemaResource interface.
|
|
23
37
|
*/
|
|
@@ -26,6 +26,8 @@ function instanceOfIncidentImageResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('altText' in value) || value['altText'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('url' in value) || value['url'] === undefined)
|
|
@@ -42,7 +44,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
return {
|
|
43
45
|
'fileId': json['file_id'],
|
|
44
46
|
'mimeType': json['mime_type'],
|
|
45
|
-
'altText': json['alt_text']
|
|
47
|
+
'altText': json['alt_text'],
|
|
46
48
|
'assetId': json['asset_id'],
|
|
47
49
|
'url': json['url'],
|
|
48
50
|
};
|
|
@@ -26,7 +26,7 @@ export interface IncidentVideoResource {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof IncidentVideoResource
|
|
28
28
|
*/
|
|
29
|
-
status:
|
|
29
|
+
status: IncidentVideoResourceStatusEnum;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
@@ -64,6 +64,15 @@ export interface IncidentVideoResource {
|
|
|
64
64
|
*/
|
|
65
65
|
updatedAt?: Date | null;
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const IncidentVideoResourceStatusEnum: {
|
|
71
|
+
readonly Processing: "processing";
|
|
72
|
+
readonly Ready: "ready";
|
|
73
|
+
readonly Failed: "failed";
|
|
74
|
+
};
|
|
75
|
+
export type IncidentVideoResourceStatusEnum = typeof IncidentVideoResourceStatusEnum[keyof typeof IncidentVideoResourceStatusEnum];
|
|
67
76
|
/**
|
|
68
77
|
* Check if a given object implements the IncidentVideoResource interface.
|
|
69
78
|
*/
|
|
@@ -13,11 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.IncidentVideoResourceStatusEnum = void 0;
|
|
16
17
|
exports.instanceOfIncidentVideoResource = instanceOfIncidentVideoResource;
|
|
17
18
|
exports.IncidentVideoResourceFromJSON = IncidentVideoResourceFromJSON;
|
|
18
19
|
exports.IncidentVideoResourceFromJSONTyped = IncidentVideoResourceFromJSONTyped;
|
|
19
20
|
exports.IncidentVideoResourceToJSON = IncidentVideoResourceToJSON;
|
|
20
21
|
exports.IncidentVideoResourceToJSONTyped = IncidentVideoResourceToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IncidentVideoResourceStatusEnum = {
|
|
26
|
+
Processing: 'processing',
|
|
27
|
+
Ready: 'ready',
|
|
28
|
+
Failed: 'failed'
|
|
29
|
+
};
|
|
21
30
|
/**
|
|
22
31
|
* Check if a given object implements the IncidentVideoResource interface.
|
|
23
32
|
*/
|
|
@@ -30,10 +30,10 @@ export interface LicenceListResource {
|
|
|
30
30
|
user: UserRelationResource | null;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {
|
|
33
|
+
* @type {string}
|
|
34
34
|
* @memberof LicenceListResource
|
|
35
35
|
*/
|
|
36
|
-
state:
|
|
36
|
+
state: LicenceListResourceStateEnum;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
@@ -71,6 +71,20 @@ export interface LicenceListResource {
|
|
|
71
71
|
*/
|
|
72
72
|
createdAt?: Date | null;
|
|
73
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const LicenceListResourceStateEnum: {
|
|
78
|
+
readonly Qld: "QLD";
|
|
79
|
+
readonly Nsw: "NSW";
|
|
80
|
+
readonly Act: "ACT";
|
|
81
|
+
readonly Vic: "VIC";
|
|
82
|
+
readonly Tas: "TAS";
|
|
83
|
+
readonly Sa: "SA";
|
|
84
|
+
readonly Wa: "WA";
|
|
85
|
+
readonly Nt: "NT";
|
|
86
|
+
};
|
|
87
|
+
export type LicenceListResourceStateEnum = typeof LicenceListResourceStateEnum[keyof typeof LicenceListResourceStateEnum];
|
|
74
88
|
/**
|
|
75
89
|
* Check if a given object implements the LicenceListResource interface.
|
|
76
90
|
*/
|
|
@@ -13,12 +13,26 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LicenceListResourceStateEnum = void 0;
|
|
16
17
|
exports.instanceOfLicenceListResource = instanceOfLicenceListResource;
|
|
17
18
|
exports.LicenceListResourceFromJSON = LicenceListResourceFromJSON;
|
|
18
19
|
exports.LicenceListResourceFromJSONTyped = LicenceListResourceFromJSONTyped;
|
|
19
20
|
exports.LicenceListResourceToJSON = LicenceListResourceToJSON;
|
|
20
21
|
exports.LicenceListResourceToJSONTyped = LicenceListResourceToJSONTyped;
|
|
21
22
|
var UserRelationResource_1 = require("./UserRelationResource");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.LicenceListResourceStateEnum = {
|
|
27
|
+
Qld: 'QLD',
|
|
28
|
+
Nsw: 'NSW',
|
|
29
|
+
Act: 'ACT',
|
|
30
|
+
Vic: 'VIC',
|
|
31
|
+
Tas: 'TAS',
|
|
32
|
+
Sa: 'SA',
|
|
33
|
+
Wa: 'WA',
|
|
34
|
+
Nt: 'NT'
|
|
35
|
+
};
|
|
22
36
|
/**
|
|
23
37
|
* Check if a given object implements the LicenceListResource interface.
|
|
24
38
|
*/
|
|
@@ -29,11 +29,25 @@ export interface LicenceLiteResource {
|
|
|
29
29
|
licenceNumber: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {string}
|
|
33
33
|
* @memberof LicenceLiteResource
|
|
34
34
|
*/
|
|
35
|
-
state:
|
|
35
|
+
state: LicenceLiteResourceStateEnum;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const LicenceLiteResourceStateEnum: {
|
|
41
|
+
readonly Qld: "QLD";
|
|
42
|
+
readonly Nsw: "NSW";
|
|
43
|
+
readonly Act: "ACT";
|
|
44
|
+
readonly Vic: "VIC";
|
|
45
|
+
readonly Tas: "TAS";
|
|
46
|
+
readonly Sa: "SA";
|
|
47
|
+
readonly Wa: "WA";
|
|
48
|
+
readonly Nt: "NT";
|
|
49
|
+
};
|
|
50
|
+
export type LicenceLiteResourceStateEnum = typeof LicenceLiteResourceStateEnum[keyof typeof LicenceLiteResourceStateEnum];
|
|
37
51
|
/**
|
|
38
52
|
* Check if a given object implements the LicenceLiteResource interface.
|
|
39
53
|
*/
|
|
@@ -13,11 +13,25 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LicenceLiteResourceStateEnum = void 0;
|
|
16
17
|
exports.instanceOfLicenceLiteResource = instanceOfLicenceLiteResource;
|
|
17
18
|
exports.LicenceLiteResourceFromJSON = LicenceLiteResourceFromJSON;
|
|
18
19
|
exports.LicenceLiteResourceFromJSONTyped = LicenceLiteResourceFromJSONTyped;
|
|
19
20
|
exports.LicenceLiteResourceToJSON = LicenceLiteResourceToJSON;
|
|
20
21
|
exports.LicenceLiteResourceToJSONTyped = LicenceLiteResourceToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.LicenceLiteResourceStateEnum = {
|
|
26
|
+
Qld: 'QLD',
|
|
27
|
+
Nsw: 'NSW',
|
|
28
|
+
Act: 'ACT',
|
|
29
|
+
Vic: 'VIC',
|
|
30
|
+
Tas: 'TAS',
|
|
31
|
+
Sa: 'SA',
|
|
32
|
+
Wa: 'WA',
|
|
33
|
+
Nt: 'NT'
|
|
34
|
+
};
|
|
21
35
|
/**
|
|
22
36
|
* Check if a given object implements the LicenceLiteResource interface.
|
|
23
37
|
*/
|
|
@@ -30,10 +30,10 @@ export interface LicenceResource {
|
|
|
30
30
|
user: UserRelationResource | null;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {
|
|
33
|
+
* @type {string}
|
|
34
34
|
* @memberof LicenceResource
|
|
35
35
|
*/
|
|
36
|
-
state:
|
|
36
|
+
state: LicenceResourceStateEnum;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
@@ -101,6 +101,20 @@ export interface LicenceResource {
|
|
|
101
101
|
*/
|
|
102
102
|
updatedAt?: Date | null;
|
|
103
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
107
|
+
export declare const LicenceResourceStateEnum: {
|
|
108
|
+
readonly Qld: "QLD";
|
|
109
|
+
readonly Nsw: "NSW";
|
|
110
|
+
readonly Act: "ACT";
|
|
111
|
+
readonly Vic: "VIC";
|
|
112
|
+
readonly Tas: "TAS";
|
|
113
|
+
readonly Sa: "SA";
|
|
114
|
+
readonly Wa: "WA";
|
|
115
|
+
readonly Nt: "NT";
|
|
116
|
+
};
|
|
117
|
+
export type LicenceResourceStateEnum = typeof LicenceResourceStateEnum[keyof typeof LicenceResourceStateEnum];
|
|
104
118
|
/**
|
|
105
119
|
* Check if a given object implements the LicenceResource interface.
|
|
106
120
|
*/
|
|
@@ -13,12 +13,26 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LicenceResourceStateEnum = void 0;
|
|
16
17
|
exports.instanceOfLicenceResource = instanceOfLicenceResource;
|
|
17
18
|
exports.LicenceResourceFromJSON = LicenceResourceFromJSON;
|
|
18
19
|
exports.LicenceResourceFromJSONTyped = LicenceResourceFromJSONTyped;
|
|
19
20
|
exports.LicenceResourceToJSON = LicenceResourceToJSON;
|
|
20
21
|
exports.LicenceResourceToJSONTyped = LicenceResourceToJSONTyped;
|
|
21
22
|
var UserRelationResource_1 = require("./UserRelationResource");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.LicenceResourceStateEnum = {
|
|
27
|
+
Qld: 'QLD',
|
|
28
|
+
Nsw: 'NSW',
|
|
29
|
+
Act: 'ACT',
|
|
30
|
+
Vic: 'VIC',
|
|
31
|
+
Tas: 'TAS',
|
|
32
|
+
Sa: 'SA',
|
|
33
|
+
Wa: 'WA',
|
|
34
|
+
Nt: 'NT'
|
|
35
|
+
};
|
|
22
36
|
/**
|
|
23
37
|
* Check if a given object implements the LicenceResource interface.
|
|
24
38
|
*/
|
|
@@ -48,11 +48,11 @@ export interface LicencesStoreRequest {
|
|
|
48
48
|
*/
|
|
49
49
|
lastName: string;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {
|
|
51
|
+
* ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
|
|
52
|
+
* @type {string}
|
|
53
53
|
* @memberof LicencesStoreRequest
|
|
54
54
|
*/
|
|
55
|
-
expiryDate:
|
|
55
|
+
expiryDate: string;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {AuthRegisterGuardRequestProfileSignature}
|
|
@@ -67,7 +67,7 @@ function LicencesStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
67
|
'licenceNumber': json['licence_number'],
|
|
68
68
|
'firstName': json['first_name'],
|
|
69
69
|
'lastName': json['last_name'],
|
|
70
|
-
'expiryDate':
|
|
70
|
+
'expiryDate': json['expiry_date'],
|
|
71
71
|
'frontAsset': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureFromJSON)(json['front_asset']),
|
|
72
72
|
'backAsset': json['back_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['back_asset']),
|
|
73
73
|
'rsaAsset': json['rsa_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['rsa_asset']),
|
|
@@ -88,7 +88,7 @@ function LicencesStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
88
88
|
'licence_number': value['licenceNumber'],
|
|
89
89
|
'first_name': value['firstName'],
|
|
90
90
|
'last_name': value['lastName'],
|
|
91
|
-
'expiry_date':
|
|
91
|
+
'expiry_date': value['expiryDate'],
|
|
92
92
|
'front_asset': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureToJSON)(value['frontAsset']),
|
|
93
93
|
'back_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['backAsset']),
|
|
94
94
|
'rsa_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['rsaAsset']),
|