@digital8/security-registers-backend-ts-sdk 0.0.277 → 0.0.278

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.
@@ -30,12 +30,18 @@ function instanceOfRegisterResource(value) {
30
30
  return false;
31
31
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
32
32
  return false;
33
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
34
+ return false;
33
35
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
34
36
  return false;
35
37
  if (!('signOnSignature' in value) || value['signOnSignature'] === undefined)
36
38
  return false;
37
39
  if (!('signOffSignature' in value) || value['signOffSignature'] === undefined)
38
40
  return false;
41
+ if (!('signOnPhoto' in value) || value['signOnPhoto'] === undefined)
42
+ return false;
43
+ if (!('signOffPhoto' in value) || value['signOffPhoto'] === undefined)
44
+ return false;
39
45
  if (!('licenceFront' in value) || value['licenceFront'] === undefined)
40
46
  return false;
41
47
  if (!('licenceBack' in value) || value['licenceBack'] === undefined)
@@ -48,10 +54,6 @@ function instanceOfRegisterResource(value) {
48
54
  return false;
49
55
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
50
56
  return false;
51
- if (!('signOffLat' in value) || value['signOffLat'] === undefined)
52
- return false;
53
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
54
- return false;
55
57
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
56
58
  return false;
57
59
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -60,8 +62,6 @@ function instanceOfRegisterResource(value) {
60
62
  return false;
61
63
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
62
64
  return false;
63
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
64
- return false;
65
65
  return true;
66
66
  }
67
67
  function RegisterResourceFromJSON(json) {
@@ -76,23 +76,25 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
76
76
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
77
77
  'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
78
78
  'startDateTime': (new Date(json['startDateTime'])),
79
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
79
+ 'finishDateTime': (new Date(json['finishDateTime'])),
80
80
  'signOffStatus': json['signOffStatus'],
81
81
  'signOnSignature': json['signOnSignature'],
82
82
  'signOffSignature': json['signOffSignature'],
83
+ 'signOnPhoto': json['signOnPhoto'],
84
+ 'signOffPhoto': json['signOffPhoto'],
83
85
  'licenceFront': json['licenceFront'],
84
86
  'licenceBack': json['licenceBack'],
85
87
  'rsaImage': json['rsaImage'],
86
88
  'firstAidImage': json['firstAidImage'],
87
89
  'signOnLat': json['signOnLat'],
88
90
  'signOnLong': json['signOnLong'],
89
- 'signOffLat': json['signOffLat'],
90
- 'signOffLong': json['signOffLong'],
91
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
92
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
91
93
  'licenceNumber': json['licenceNumber'],
92
94
  'licenceExpiry': json['licenceExpiry'],
93
95
  'licenceFirstName': json['licenceFirstName'],
94
96
  'licenceLastName': json['licenceLastName'],
95
- 'badgeNumber': json['badgeNumber'],
97
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
96
98
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
97
99
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
98
100
  };
@@ -101,7 +103,7 @@ function RegisterResourceToJSON(json) {
101
103
  return RegisterResourceToJSONTyped(json, false);
102
104
  }
103
105
  function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
104
- var _a, _b, _c;
106
+ var _a, _b;
105
107
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
106
108
  if (value == null) {
107
109
  return value;
@@ -111,10 +113,12 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
111
113
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
112
114
  'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
113
115
  'startDateTime': ((value['startDateTime']).toISOString()),
114
- 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
116
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
115
117
  'signOffStatus': value['signOffStatus'],
116
118
  'signOnSignature': value['signOnSignature'],
117
119
  'signOffSignature': value['signOffSignature'],
120
+ 'signOnPhoto': value['signOnPhoto'],
121
+ 'signOffPhoto': value['signOffPhoto'],
118
122
  'licenceFront': value['licenceFront'],
119
123
  'licenceBack': value['licenceBack'],
120
124
  'rsaImage': value['rsaImage'],
@@ -128,7 +132,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
128
132
  'licenceFirstName': value['licenceFirstName'],
129
133
  'licenceLastName': value['licenceLastName'],
130
134
  'badgeNumber': value['badgeNumber'],
131
- 'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
132
- 'updatedAt': value['updatedAt'] === null ? null : ((_c = value['updatedAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
135
+ 'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
136
+ 'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
133
137
  };
134
138
  }
@@ -46,7 +46,7 @@ export interface RosterListResource {
46
46
  * @type {Date}
47
47
  * @memberof RosterListResource
48
48
  */
49
- finishDateTime?: Date | null;
49
+ finishDateTime: Date;
50
50
  /**
51
51
  *
52
52
  * @type {boolean}
@@ -30,6 +30,8 @@ function instanceOfRosterListResource(value) {
30
30
  return false;
31
31
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
32
32
  return false;
33
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
34
+ return false;
33
35
  if (!('isCompliant' in value) || value['isCompliant'] === undefined)
34
36
  return false;
35
37
  if (!('isComplete' in value) || value['isComplete'] === undefined)
@@ -52,7 +54,7 @@ function RosterListResourceFromJSONTyped(json, ignoreDiscriminator) {
52
54
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
53
55
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
54
56
  'startDateTime': (new Date(json['startDateTime'])),
55
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
57
+ 'finishDateTime': (new Date(json['finishDateTime'])),
56
58
  'isCompliant': json['isCompliant'],
57
59
  'isComplete': json['isComplete'],
58
60
  'signOffStatus': json['signOffStatus'],
@@ -63,7 +65,6 @@ function RosterListResourceToJSON(json) {
63
65
  return RosterListResourceToJSONTyped(json, false);
64
66
  }
65
67
  function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
66
- var _a;
67
68
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
68
69
  if (value == null) {
69
70
  return value;
@@ -73,7 +74,7 @@ function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
73
74
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
74
75
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
75
76
  'startDateTime': ((value['startDateTime']).toISOString()),
76
- 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
77
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
77
78
  'isCompliant': value['isCompliant'],
78
79
  'isComplete': value['isComplete'],
79
80
  'signOffStatus': value['signOffStatus'],
@@ -31,7 +31,6 @@ export * from './IncidentVideoSignedUrlResourceArrayResponse';
31
31
  export * from './IncidentVideoUploadTokenResource';
32
32
  export * from './IncidentVideoUploadTokenResourceArrayResponse';
33
33
  export * from './IncidentsApproveRequest';
34
- export * from './IncidentsExportPdfBulkRequest';
35
34
  export * from './IncidentsStoreRequest';
36
35
  export * from './IncidentsUpdateRequest';
37
36
  export * from './IncidentsVideosStoreRequest';
@@ -49,7 +49,6 @@ __exportStar(require("./IncidentVideoSignedUrlResourceArrayResponse"), exports);
49
49
  __exportStar(require("./IncidentVideoUploadTokenResource"), exports);
50
50
  __exportStar(require("./IncidentVideoUploadTokenResourceArrayResponse"), exports);
51
51
  __exportStar(require("./IncidentsApproveRequest"), exports);
52
- __exportStar(require("./IncidentsExportPdfBulkRequest"), exports);
53
52
  __exportStar(require("./IncidentsStoreRequest"), exports);
54
53
  __exportStar(require("./IncidentsUpdateRequest"), exports);
55
54
  __exportStar(require("./IncidentsVideosStoreRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.277",
3
+ "version": "0.0.278",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -26,7 +26,6 @@ import type {
26
26
  IncidentVideoSignedUrlResource,
27
27
  IncidentVideoUploadTokenResource,
28
28
  IncidentsApproveRequest,
29
- IncidentsExportPdfBulkRequest,
30
29
  IncidentsStoreRequest,
31
30
  IncidentsUpdateRequest,
32
31
  IncidentsVideosStoreRequest,
@@ -121,8 +120,6 @@ import {
121
120
  IncidentVideoUploadTokenResourceToJSON,
122
121
  IncidentsApproveRequestFromJSON,
123
122
  IncidentsApproveRequestToJSON,
124
- IncidentsExportPdfBulkRequestFromJSON,
125
- IncidentsExportPdfBulkRequestToJSON,
126
123
  IncidentsStoreRequestFromJSON,
127
124
  IncidentsStoreRequestToJSON,
128
125
  IncidentsUpdateRequestFromJSON,
@@ -278,22 +275,6 @@ export interface IncidentsApproveOperationRequest {
278
275
  incidentsApproveRequest?: IncidentsApproveRequest;
279
276
  }
280
277
 
281
- export interface IncidentsExportPdfRequest {
282
- incident: number;
283
- }
284
-
285
- export interface IncidentsExportPdfBulkOperationRequest {
286
- incidentsExportPdfBulkRequest?: IncidentsExportPdfBulkRequest;
287
- }
288
-
289
- export interface IncidentsExportPdfDownloadRequest {
290
- pdfExport: number;
291
- }
292
-
293
- export interface IncidentsExportPdfStatusRequest {
294
- pdfExport: number;
295
- }
296
-
297
278
  export interface IncidentsShowRequest {
298
279
  incident: number;
299
280
  }
@@ -770,181 +751,6 @@ export class GeneralApi extends runtime.BaseAPI {
770
751
  return await response.value();
771
752
  }
772
753
 
773
- /**
774
- * Auto-generated: incidents.exportPdf
775
- */
776
- async incidentsExportPdfRaw(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
777
- if (requestParameters['incident'] == null) {
778
- throw new runtime.RequiredError(
779
- 'incident',
780
- 'Required parameter "incident" was null or undefined when calling incidentsExportPdf().'
781
- );
782
- }
783
-
784
- const queryParameters: any = {};
785
-
786
- const headerParameters: runtime.HTTPHeaders = {};
787
-
788
- if (this.configuration && this.configuration.accessToken) {
789
- const token = this.configuration.accessToken;
790
- const tokenString = await token("bearerAuth", []);
791
-
792
- if (tokenString) {
793
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
794
- }
795
- }
796
-
797
- let urlPath = `/api/incidents/{incident}/export-pdf`;
798
- urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
799
-
800
- const response = await this.request({
801
- path: urlPath,
802
- method: 'POST',
803
- headers: headerParameters,
804
- query: queryParameters,
805
- }, initOverrides);
806
-
807
- return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
808
- }
809
-
810
- /**
811
- * Auto-generated: incidents.exportPdf
812
- */
813
- async incidentsExportPdf(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
814
- const response = await this.incidentsExportPdfRaw(requestParameters, initOverrides);
815
- return await response.value();
816
- }
817
-
818
- /**
819
- * Auto-generated: incidents.exportPdf.bulk
820
- */
821
- async incidentsExportPdfBulkRaw(requestParameters: IncidentsExportPdfBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
822
- const queryParameters: any = {};
823
-
824
- const headerParameters: runtime.HTTPHeaders = {};
825
-
826
- headerParameters['Content-Type'] = 'application/json';
827
-
828
- if (this.configuration && this.configuration.accessToken) {
829
- const token = this.configuration.accessToken;
830
- const tokenString = await token("bearerAuth", []);
831
-
832
- if (tokenString) {
833
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
834
- }
835
- }
836
-
837
- let urlPath = `/api/incidents/export-pdf/bulk`;
838
-
839
- const response = await this.request({
840
- path: urlPath,
841
- method: 'POST',
842
- headers: headerParameters,
843
- query: queryParameters,
844
- body: IncidentsExportPdfBulkRequestToJSON(requestParameters['incidentsExportPdfBulkRequest']),
845
- }, initOverrides);
846
-
847
- return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
848
- }
849
-
850
- /**
851
- * Auto-generated: incidents.exportPdf.bulk
852
- */
853
- async incidentsExportPdfBulk(requestParameters: IncidentsExportPdfBulkOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
854
- const response = await this.incidentsExportPdfBulkRaw(requestParameters, initOverrides);
855
- return await response.value();
856
- }
857
-
858
- /**
859
- * Auto-generated: incidents.exportPdf.download
860
- */
861
- async incidentsExportPdfDownloadRaw(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
862
- if (requestParameters['pdfExport'] == null) {
863
- throw new runtime.RequiredError(
864
- 'pdfExport',
865
- 'Required parameter "pdfExport" was null or undefined when calling incidentsExportPdfDownload().'
866
- );
867
- }
868
-
869
- const queryParameters: any = {};
870
-
871
- const headerParameters: runtime.HTTPHeaders = {};
872
-
873
- if (this.configuration && this.configuration.accessToken) {
874
- const token = this.configuration.accessToken;
875
- const tokenString = await token("bearerAuth", []);
876
-
877
- if (tokenString) {
878
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
879
- }
880
- }
881
-
882
- let urlPath = `/api/incidents/export-pdf/{pdfExport}/download`;
883
- urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
884
-
885
- const response = await this.request({
886
- path: urlPath,
887
- method: 'GET',
888
- headers: headerParameters,
889
- query: queryParameters,
890
- }, initOverrides);
891
-
892
- return new runtime.BlobApiResponse(response);
893
- }
894
-
895
- /**
896
- * Auto-generated: incidents.exportPdf.download
897
- */
898
- async incidentsExportPdfDownload(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
899
- const response = await this.incidentsExportPdfDownloadRaw(requestParameters, initOverrides);
900
- return await response.value();
901
- }
902
-
903
- /**
904
- * Auto-generated: incidents.exportPdf.status
905
- */
906
- async incidentsExportPdfStatusRaw(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportResource>> {
907
- if (requestParameters['pdfExport'] == null) {
908
- throw new runtime.RequiredError(
909
- 'pdfExport',
910
- 'Required parameter "pdfExport" was null or undefined when calling incidentsExportPdfStatus().'
911
- );
912
- }
913
-
914
- const queryParameters: any = {};
915
-
916
- const headerParameters: runtime.HTTPHeaders = {};
917
-
918
- if (this.configuration && this.configuration.accessToken) {
919
- const token = this.configuration.accessToken;
920
- const tokenString = await token("bearerAuth", []);
921
-
922
- if (tokenString) {
923
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
924
- }
925
- }
926
-
927
- let urlPath = `/api/incidents/export-pdf/{pdfExport}/status`;
928
- urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
929
-
930
- const response = await this.request({
931
- path: urlPath,
932
- method: 'POST',
933
- headers: headerParameters,
934
- query: queryParameters,
935
- }, initOverrides);
936
-
937
- return new runtime.JSONApiResponse(response, (jsonValue) => PdfExportResourceFromJSON(jsonValue));
938
- }
939
-
940
- /**
941
- * Auto-generated: incidents.exportPdf.status
942
- */
943
- async incidentsExportPdfStatus(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportResource> {
944
- const response = await this.incidentsExportPdfStatusRaw(requestParameters, initOverrides);
945
- return await response.value();
946
- }
947
-
948
754
  /**
949
755
  * Auto-generated: incidents.show
950
756
  */
@@ -36,7 +36,7 @@ export interface AddressResource {
36
36
  * @type {string}
37
37
  * @memberof AddressResource
38
38
  */
39
- addressLine2: string;
39
+ addressLine2?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -80,7 +80,6 @@ export interface AddressResource {
80
80
  */
81
81
  export function instanceOfAddressResource(value: object): value is AddressResource {
82
82
  if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
83
- if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
84
83
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
85
84
  if (!('city' in value) || value['city'] === undefined) return false;
86
85
  if (!('state' in value) || value['state'] === undefined) return false;
@@ -102,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
102
101
 
103
102
  'id': json['id'] == null ? undefined : json['id'],
104
103
  'addressLine1': json['addressLine1'],
105
- 'addressLine2': json['addressLine2'],
104
+ 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
106
105
  'suburb': json['suburb'],
107
106
  'city': json['city'],
108
107
  'state': json['state'],
@@ -31,6 +31,18 @@ export interface AssetLiteResource {
31
31
  * @memberof AssetLiteResource
32
32
  */
33
33
  filePath: string;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof AssetLiteResource
38
+ */
39
+ isExternal: boolean;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AssetLiteResource
44
+ */
45
+ externalUrl?: string | null;
34
46
  }
35
47
 
36
48
  /**
@@ -39,6 +51,7 @@ export interface AssetLiteResource {
39
51
  export function instanceOfAssetLiteResource(value: object): value is AssetLiteResource {
40
52
  if (!('id' in value) || value['id'] === undefined) return false;
41
53
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
54
+ if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
42
55
  return true;
43
56
  }
44
57
 
@@ -54,6 +67,8 @@ export function AssetLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: b
54
67
 
55
68
  'id': json['id'],
56
69
  'filePath': json['filePath'],
70
+ 'isExternal': json['isExternal'],
71
+ 'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
57
72
  };
58
73
  }
59
74
 
@@ -70,6 +85,8 @@ export function AssetLiteResourceToJSONTyped(value?: AssetLiteResource | null, i
70
85
 
71
86
  'id': value['id'],
72
87
  'filePath': value['filePath'],
88
+ 'isExternal': value['isExternal'],
89
+ 'externalUrl': value['externalUrl'],
73
90
  };
74
91
  }
75
92
 
@@ -48,7 +48,7 @@ export interface AssetResource {
48
48
  * @type {string}
49
49
  * @memberof AssetResource
50
50
  */
51
- altText: string;
51
+ altText?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -61,6 +61,18 @@ export interface AssetResource {
61
61
  * @memberof AssetResource
62
62
  */
63
63
  fileId: number;
64
+ /**
65
+ *
66
+ * @type {boolean}
67
+ * @memberof AssetResource
68
+ */
69
+ isExternal: boolean;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof AssetResource
74
+ */
75
+ externalUrl?: string | null;
64
76
  }
65
77
 
66
78
  /**
@@ -71,9 +83,9 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
71
83
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
72
84
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
73
85
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
74
- if (!('altText' in value) || value['altText'] === undefined) return false;
75
86
  if (!('index' in value) || value['index'] === undefined) return false;
76
87
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
88
+ if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
77
89
  return true;
78
90
  }
79
91
 
@@ -91,9 +103,11 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
91
103
  'filePath': json['filePath'],
92
104
  'fileName': json['fileName'],
93
105
  'mimeType': json['mimeType'],
94
- 'altText': json['altText'],
106
+ 'altText': json['altText'] == null ? undefined : json['altText'],
95
107
  'index': json['index'],
96
108
  'fileId': json['fileId'],
109
+ 'isExternal': json['isExternal'],
110
+ 'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
97
111
  };
98
112
  }
99
113
 
@@ -115,6 +129,8 @@ export function AssetResourceToJSONTyped(value?: AssetResource | null, ignoreDis
115
129
  'altText': value['altText'],
116
130
  'index': value['index'],
117
131
  'fileId': value['fileId'],
132
+ 'isExternal': value['isExternal'],
133
+ 'externalUrl': value['externalUrl'],
118
134
  };
119
135
  }
120
136
 
@@ -88,7 +88,7 @@ export interface RegisterListResource {
88
88
  * @type {string}
89
89
  * @memberof RegisterListResource
90
90
  */
91
- badgeNumber?: string | null;
91
+ badgeNumber: string;
92
92
  /**
93
93
  *
94
94
  * @type {string}
@@ -172,7 +172,7 @@ export interface RegisterListResource {
172
172
  * @type {number}
173
173
  * @memberof RegisterListResource
174
174
  */
175
- signOffLong?: number | null;
175
+ signOffLong: number;
176
176
  /**
177
177
  *
178
178
  * @type {Array<IncidentLiteResource>}
@@ -190,6 +190,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
190
190
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
191
191
  if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
192
192
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
193
+ if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
193
194
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
194
195
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
195
196
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
@@ -203,6 +204,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
203
204
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
204
205
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
205
206
  if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
207
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
206
208
  if (!('incidents' in value) || value['incidents'] === undefined) return false;
207
209
  return true;
208
210
  }
@@ -224,7 +226,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
224
226
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
225
227
  'shiftLength': json['shiftLength'],
226
228
  'signOffStatus': json['signOffStatus'],
227
- 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
229
+ 'badgeNumber': json['badgeNumber'],
228
230
  'licenceNumber': json['licenceNumber'],
229
231
  'licenceFirstName': json['licenceFirstName'],
230
232
  'licenceLastName': json['licenceLastName'],
@@ -238,7 +240,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
238
240
  'signOnLat': json['signOnLat'],
239
241
  'signOnLong': json['signOnLong'],
240
242
  'signOffLat': json['signOffLat'],
241
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
243
+ 'signOffLong': json['signOffLong'],
242
244
  'incidents': (json['incidents'] == null ? null : (json['incidents'] as Array<any>).map(IncidentLiteResourceFromJSON)),
243
245
  };
244
246
  }