@digital8/security-registers-backend-ts-sdk 0.0.515 → 0.0.517

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.
@@ -25,8 +25,6 @@ src/models/BackAsset.ts
25
25
  src/models/CurrentRegisterResource.ts
26
26
  src/models/CurrentRegisterResourceArrayResponse.ts
27
27
  src/models/DevicesRegisterRequest.ts
28
- src/models/EligibleIncidentOwnerResource.ts
29
- src/models/EligibleIncidentOwnerResourceArrayResponse.ts
30
28
  src/models/ExportQueuedResource.ts
31
29
  src/models/ExportQueuedResourceArrayResponse.ts
32
30
  src/models/FirstAidAsset.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/security-registers-backend-ts-sdk@0.0.515
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.517
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.515 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.517 --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, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, EligibleIncidentOwnerResourceArrayResponse, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsEligibleOwnersRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsExportPdfRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, MobileAppConfigRequest, MobileAppConfigResource, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceCheckLogResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, 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, SettingsLicenceVerificationFallbackUpdateRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
13
+ import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsEligibleOwnersRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsExportPdfRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, MobileAppConfigRequest, MobileAppConfigResource, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceCheckLogResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, 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, SettingsLicenceVerificationFallbackUpdateRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
14
14
  export interface AuthChangePasswordOperationRequest {
15
15
  authChangePasswordRequest?: AuthChangePasswordRequest;
16
16
  }
@@ -458,11 +458,11 @@ export declare class GeneralApi extends runtime.BaseAPI {
458
458
  /**
459
459
  * Auto-generated: incidents.eligibleOwners
460
460
  */
461
- incidentsEligibleOwnersRaw(requestParameters: IncidentsEligibleOwnersOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EligibleIncidentOwnerResourceArrayResponse>>;
461
+ incidentsEligibleOwnersRaw(requestParameters: IncidentsEligibleOwnersOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserLiteResourceArrayResponse>>;
462
462
  /**
463
463
  * Auto-generated: incidents.eligibleOwners
464
464
  */
465
- incidentsEligibleOwners(requestParameters?: IncidentsEligibleOwnersOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EligibleIncidentOwnerResourceArrayResponse>;
465
+ incidentsEligibleOwners(requestParameters?: IncidentsEligibleOwnersOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLiteResourceArrayResponse>;
466
466
  /**
467
467
  * Auto-generated: incidents.exportCsv
468
468
  */
@@ -825,7 +825,7 @@ var GeneralApi = /** @class */ (function (_super) {
825
825
  }, initOverrides)];
826
826
  case 3:
827
827
  response = _a.sent();
828
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.EligibleIncidentOwnerResourceArrayResponseFromJSON)(jsonValue); })];
828
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserLiteResourceArrayResponseFromJSON)(jsonValue); })];
829
829
  }
830
830
  });
831
831
  });
@@ -32,7 +32,7 @@ export interface AddressResource {
32
32
  * @type {string}
33
33
  * @memberof AddressResource
34
34
  */
35
- addressLine2?: string | null;
35
+ addressLine2: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -24,6 +24,8 @@ 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;
27
29
  if (!('suburb' in value) || value['suburb'] === undefined)
28
30
  return false;
29
31
  if (!('city' in value) || value['city'] === undefined)
@@ -48,7 +50,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
48
50
  return {
49
51
  'id': json['id'] == null ? undefined : json['id'],
50
52
  'addressLine1': json['addressLine1'],
51
- 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
53
+ 'addressLine2': json['addressLine2'],
52
54
  'suburb': json['suburb'],
53
55
  'city': json['city'],
54
56
  'state': json['state'],
@@ -22,7 +22,7 @@ export interface IncidentsEligibleOwnersRequest {
22
22
  */
23
23
  venueId: number;
24
24
  /**
25
- * Optional incident start datetime (ISO-8601, in the venue's timezone). Used to decide guard eligibility ("signed on at this venue OR not signed on at any other venue at that time") and to flag the `activeRegisterAtIncidentDatetime` field on each result. Omit to fall back to the current server time.
25
+ * Optional incident start datetime (ISO-8601, in the venue's timezone). Used to decide guard eligibility ("signed on at this venue OR not signed on at any other venue at that time"). Omit to fall back to the current server time.
26
26
  * @type {Date}
27
27
  * @memberof IncidentsEligibleOwnersRequest
28
28
  */
@@ -154,7 +154,7 @@ export interface RegisterListResource {
154
154
  * @type {number}
155
155
  * @memberof RegisterListResource
156
156
  */
157
- signOffLong?: number | null;
157
+ signOffLong: number;
158
158
  /**
159
159
  *
160
160
  * @type {boolean}
@@ -69,6 +69,8 @@ function instanceOfRegisterListResource(value) {
69
69
  return false;
70
70
  if (!('signOffLat' in value) || value['signOffLat'] === undefined)
71
71
  return false;
72
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
73
+ return false;
72
74
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
73
75
  return false;
74
76
  return true;
@@ -103,7 +105,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
103
105
  'signOnLat': json['signOnLat'],
104
106
  'signOnLong': json['signOnLong'],
105
107
  'signOffLat': json['signOffLat'],
106
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
108
+ 'signOffLong': json['signOffLong'],
107
109
  'hasIncidents': json['hasIncidents'],
108
110
  };
109
111
  }
@@ -106,13 +106,13 @@ export interface RegisterResource {
106
106
  * @type {number}
107
107
  * @memberof RegisterResource
108
108
  */
109
- signOffLat?: number | null;
109
+ signOffLat: number;
110
110
  /**
111
111
  *
112
112
  * @type {number}
113
113
  * @memberof RegisterResource
114
114
  */
115
- signOffLong?: number | null;
115
+ signOffLong: number;
116
116
  /**
117
117
  *
118
118
  * @type {string}
@@ -57,6 +57,10 @@ function instanceOfRegisterResource(value) {
57
57
  return false;
58
58
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
59
59
  return false;
60
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined)
61
+ return false;
62
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
63
+ return false;
60
64
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
61
65
  return false;
62
66
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -89,8 +93,8 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
89
93
  'firstAidImage': json['firstAidImage'],
90
94
  'signOnLat': json['signOnLat'],
91
95
  'signOnLong': json['signOnLong'],
92
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
93
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
96
+ 'signOffLat': json['signOffLat'],
97
+ 'signOffLong': json['signOffLong'],
94
98
  'licenceNumber': json['licenceNumber'],
95
99
  'licenceExpiry': json['licenceExpiry'],
96
100
  'licenceFirstName': json['licenceFirstName'],
@@ -17,8 +17,6 @@ export * from './BackAsset';
17
17
  export * from './CurrentRegisterResource';
18
18
  export * from './CurrentRegisterResourceArrayResponse';
19
19
  export * from './DevicesRegisterRequest';
20
- export * from './EligibleIncidentOwnerResource';
21
- export * from './EligibleIncidentOwnerResourceArrayResponse';
22
20
  export * from './ExportQueuedResource';
23
21
  export * from './ExportQueuedResourceArrayResponse';
24
22
  export * from './FirstAidAsset';
@@ -35,8 +35,6 @@ __exportStar(require("./BackAsset"), exports);
35
35
  __exportStar(require("./CurrentRegisterResource"), exports);
36
36
  __exportStar(require("./CurrentRegisterResourceArrayResponse"), exports);
37
37
  __exportStar(require("./DevicesRegisterRequest"), exports);
38
- __exportStar(require("./EligibleIncidentOwnerResource"), exports);
39
- __exportStar(require("./EligibleIncidentOwnerResourceArrayResponse"), exports);
40
38
  __exportStar(require("./ExportQueuedResource"), exports);
41
39
  __exportStar(require("./ExportQueuedResourceArrayResponse"), exports);
42
40
  __exportStar(require("./FirstAidAsset"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.515",
3
+ "version": "0.0.517",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -22,7 +22,6 @@ import type {
22
22
  AuthRegisterGuardFileRequest,
23
23
  AuthRegisterGuardRequest,
24
24
  DevicesRegisterRequest,
25
- EligibleIncidentOwnerResourceArrayResponse,
26
25
  ExportQueuedResource,
27
26
  GenericResponse,
28
27
  IncidentFieldSchemaResource,
@@ -139,8 +138,6 @@ import {
139
138
  AuthRegisterGuardRequestToJSON,
140
139
  DevicesRegisterRequestFromJSON,
141
140
  DevicesRegisterRequestToJSON,
142
- EligibleIncidentOwnerResourceArrayResponseFromJSON,
143
- EligibleIncidentOwnerResourceArrayResponseToJSON,
144
141
  ExportQueuedResourceFromJSON,
145
142
  ExportQueuedResourceToJSON,
146
143
  GenericResponseFromJSON,
@@ -1330,7 +1327,7 @@ export class GeneralApi extends runtime.BaseAPI {
1330
1327
  /**
1331
1328
  * Auto-generated: incidents.eligibleOwners
1332
1329
  */
1333
- async incidentsEligibleOwnersRaw(requestParameters: IncidentsEligibleOwnersOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EligibleIncidentOwnerResourceArrayResponse>> {
1330
+ async incidentsEligibleOwnersRaw(requestParameters: IncidentsEligibleOwnersOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserLiteResourceArrayResponse>> {
1334
1331
  const queryParameters: any = {};
1335
1332
 
1336
1333
  const headerParameters: runtime.HTTPHeaders = {};
@@ -1356,13 +1353,13 @@ export class GeneralApi extends runtime.BaseAPI {
1356
1353
  body: IncidentsEligibleOwnersRequestToJSON(requestParameters['incidentsEligibleOwnersRequest']),
1357
1354
  }, initOverrides);
1358
1355
 
1359
- return new runtime.JSONApiResponse(response, (jsonValue) => EligibleIncidentOwnerResourceArrayResponseFromJSON(jsonValue));
1356
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserLiteResourceArrayResponseFromJSON(jsonValue));
1360
1357
  }
1361
1358
 
1362
1359
  /**
1363
1360
  * Auto-generated: incidents.eligibleOwners
1364
1361
  */
1365
- async incidentsEligibleOwners(requestParameters: IncidentsEligibleOwnersOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EligibleIncidentOwnerResourceArrayResponse> {
1362
+ async incidentsEligibleOwners(requestParameters: IncidentsEligibleOwnersOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLiteResourceArrayResponse> {
1366
1363
  const response = await this.incidentsEligibleOwnersRaw(requestParameters, initOverrides);
1367
1364
  return await response.value();
1368
1365
  }
@@ -36,7 +36,7 @@ export interface AddressResource {
36
36
  * @type {string}
37
37
  * @memberof AddressResource
38
38
  */
39
- addressLine2?: string | null;
39
+ addressLine2: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -80,6 +80,7 @@ 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;
83
84
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
84
85
  if (!('city' in value) || value['city'] === undefined) return false;
85
86
  if (!('state' in value) || value['state'] === undefined) return false;
@@ -101,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
101
102
 
102
103
  'id': json['id'] == null ? undefined : json['id'],
103
104
  'addressLine1': json['addressLine1'],
104
- 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
105
+ 'addressLine2': json['addressLine2'],
105
106
  'suburb': json['suburb'],
106
107
  'city': json['city'],
107
108
  'state': json['state'],
@@ -26,7 +26,7 @@ export interface IncidentsEligibleOwnersRequest {
26
26
  */
27
27
  venueId: number;
28
28
  /**
29
- * Optional incident start datetime (ISO-8601, in the venue's timezone). Used to decide guard eligibility ("signed on at this venue OR not signed on at any other venue at that time") and to flag the `activeRegisterAtIncidentDatetime` field on each result. Omit to fall back to the current server time.
29
+ * Optional incident start datetime (ISO-8601, in the venue's timezone). Used to decide guard eligibility ("signed on at this venue OR not signed on at any other venue at that time"). Omit to fall back to the current server time.
30
30
  * @type {Date}
31
31
  * @memberof IncidentsEligibleOwnersRequest
32
32
  */
@@ -171,7 +171,7 @@ export interface RegisterListResource {
171
171
  * @type {number}
172
172
  * @memberof RegisterListResource
173
173
  */
174
- signOffLong?: number | null;
174
+ signOffLong: number;
175
175
  /**
176
176
  *
177
177
  * @type {boolean}
@@ -214,6 +214,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
214
214
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
215
215
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
216
216
  if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
217
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
217
218
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
218
219
  return true;
219
220
  }
@@ -250,7 +251,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
250
251
  'signOnLat': json['signOnLat'],
251
252
  'signOnLong': json['signOnLong'],
252
253
  'signOffLat': json['signOffLat'],
253
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
254
+ 'signOffLong': json['signOffLong'],
254
255
  'hasIncidents': json['hasIncidents'],
255
256
  };
256
257
  }
@@ -123,13 +123,13 @@ export interface RegisterResource {
123
123
  * @type {number}
124
124
  * @memberof RegisterResource
125
125
  */
126
- signOffLat?: number | null;
126
+ signOffLat: number;
127
127
  /**
128
128
  *
129
129
  * @type {number}
130
130
  * @memberof RegisterResource
131
131
  */
132
- signOffLong?: number | null;
132
+ signOffLong: number;
133
133
  /**
134
134
  *
135
135
  * @type {string}
@@ -208,6 +208,8 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
208
208
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
209
209
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
210
210
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
211
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
212
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
211
213
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
212
214
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
213
215
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -239,8 +241,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
239
241
  'firstAidImage': json['firstAidImage'],
240
242
  'signOnLat': json['signOnLat'],
241
243
  'signOnLong': json['signOnLong'],
242
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
243
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
244
+ 'signOffLat': json['signOffLat'],
245
+ 'signOffLong': json['signOffLong'],
244
246
  'licenceNumber': json['licenceNumber'],
245
247
  'licenceExpiry': json['licenceExpiry'],
246
248
  'licenceFirstName': json['licenceFirstName'],
@@ -19,8 +19,6 @@ export * from './BackAsset';
19
19
  export * from './CurrentRegisterResource';
20
20
  export * from './CurrentRegisterResourceArrayResponse';
21
21
  export * from './DevicesRegisterRequest';
22
- export * from './EligibleIncidentOwnerResource';
23
- export * from './EligibleIncidentOwnerResourceArrayResponse';
24
22
  export * from './ExportQueuedResource';
25
23
  export * from './ExportQueuedResourceArrayResponse';
26
24
  export * from './FirstAidAsset';
@@ -1,62 +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 EligibleIncidentOwnerResource
16
- */
17
- export interface EligibleIncidentOwnerResource {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof EligibleIncidentOwnerResource
22
- */
23
- id: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof EligibleIncidentOwnerResource
28
- */
29
- firstName: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof EligibleIncidentOwnerResource
34
- */
35
- lastName: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof EligibleIncidentOwnerResource
40
- */
41
- fullName: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof EligibleIncidentOwnerResource
46
- */
47
- role: string;
48
- /**
49
- *
50
- * @type {boolean}
51
- * @memberof EligibleIncidentOwnerResource
52
- */
53
- activeRegisterAtIncidentDatetime: boolean;
54
- }
55
- /**
56
- * Check if a given object implements the EligibleIncidentOwnerResource interface.
57
- */
58
- export declare function instanceOfEligibleIncidentOwnerResource(value: object): value is EligibleIncidentOwnerResource;
59
- export declare function EligibleIncidentOwnerResourceFromJSON(json: any): EligibleIncidentOwnerResource;
60
- export declare function EligibleIncidentOwnerResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): EligibleIncidentOwnerResource;
61
- export declare function EligibleIncidentOwnerResourceToJSON(json: any): EligibleIncidentOwnerResource;
62
- export declare function EligibleIncidentOwnerResourceToJSONTyped(value?: EligibleIncidentOwnerResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,71 +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.instanceOfEligibleIncidentOwnerResource = instanceOfEligibleIncidentOwnerResource;
17
- exports.EligibleIncidentOwnerResourceFromJSON = EligibleIncidentOwnerResourceFromJSON;
18
- exports.EligibleIncidentOwnerResourceFromJSONTyped = EligibleIncidentOwnerResourceFromJSONTyped;
19
- exports.EligibleIncidentOwnerResourceToJSON = EligibleIncidentOwnerResourceToJSON;
20
- exports.EligibleIncidentOwnerResourceToJSONTyped = EligibleIncidentOwnerResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the EligibleIncidentOwnerResource interface.
23
- */
24
- function instanceOfEligibleIncidentOwnerResource(value) {
25
- if (!('id' in value) || value['id'] === undefined)
26
- return false;
27
- if (!('firstName' in value) || value['firstName'] === undefined)
28
- return false;
29
- if (!('lastName' in value) || value['lastName'] === undefined)
30
- return false;
31
- if (!('fullName' in value) || value['fullName'] === undefined)
32
- return false;
33
- if (!('role' in value) || value['role'] === undefined)
34
- return false;
35
- if (!('activeRegisterAtIncidentDatetime' in value) || value['activeRegisterAtIncidentDatetime'] === undefined)
36
- return false;
37
- return true;
38
- }
39
- function EligibleIncidentOwnerResourceFromJSON(json) {
40
- return EligibleIncidentOwnerResourceFromJSONTyped(json, false);
41
- }
42
- function EligibleIncidentOwnerResourceFromJSONTyped(json, ignoreDiscriminator) {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
- 'id': json['id'],
48
- 'firstName': json['firstName'],
49
- 'lastName': json['lastName'],
50
- 'fullName': json['fullName'],
51
- 'role': json['role'],
52
- 'activeRegisterAtIncidentDatetime': json['activeRegisterAtIncidentDatetime'],
53
- };
54
- }
55
- function EligibleIncidentOwnerResourceToJSON(json) {
56
- return EligibleIncidentOwnerResourceToJSONTyped(json, false);
57
- }
58
- function EligibleIncidentOwnerResourceToJSONTyped(value, ignoreDiscriminator) {
59
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
60
- if (value == null) {
61
- return value;
62
- }
63
- return {
64
- 'id': value['id'],
65
- 'firstName': value['firstName'],
66
- 'lastName': value['lastName'],
67
- 'fullName': value['fullName'],
68
- 'role': value['role'],
69
- 'activeRegisterAtIncidentDatetime': value['activeRegisterAtIncidentDatetime'],
70
- };
71
- }
@@ -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 { EligibleIncidentOwnerResource } from './EligibleIncidentOwnerResource';
13
- /**
14
- *
15
- * @export
16
- * @interface EligibleIncidentOwnerResourceArrayResponse
17
- */
18
- export interface EligibleIncidentOwnerResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<EligibleIncidentOwnerResource>}
22
- * @memberof EligibleIncidentOwnerResourceArrayResponse
23
- */
24
- data?: Array<EligibleIncidentOwnerResource>;
25
- }
26
- /**
27
- * Check if a given object implements the EligibleIncidentOwnerResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfEligibleIncidentOwnerResourceArrayResponse(value: object): value is EligibleIncidentOwnerResourceArrayResponse;
30
- export declare function EligibleIncidentOwnerResourceArrayResponseFromJSON(json: any): EligibleIncidentOwnerResourceArrayResponse;
31
- export declare function EligibleIncidentOwnerResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EligibleIncidentOwnerResourceArrayResponse;
32
- export declare function EligibleIncidentOwnerResourceArrayResponseToJSON(json: any): EligibleIncidentOwnerResourceArrayResponse;
33
- export declare function EligibleIncidentOwnerResourceArrayResponseToJSONTyped(value?: EligibleIncidentOwnerResourceArrayResponse | 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.instanceOfEligibleIncidentOwnerResourceArrayResponse = instanceOfEligibleIncidentOwnerResourceArrayResponse;
17
- exports.EligibleIncidentOwnerResourceArrayResponseFromJSON = EligibleIncidentOwnerResourceArrayResponseFromJSON;
18
- exports.EligibleIncidentOwnerResourceArrayResponseFromJSONTyped = EligibleIncidentOwnerResourceArrayResponseFromJSONTyped;
19
- exports.EligibleIncidentOwnerResourceArrayResponseToJSON = EligibleIncidentOwnerResourceArrayResponseToJSON;
20
- exports.EligibleIncidentOwnerResourceArrayResponseToJSONTyped = EligibleIncidentOwnerResourceArrayResponseToJSONTyped;
21
- var EligibleIncidentOwnerResource_1 = require("./EligibleIncidentOwnerResource");
22
- /**
23
- * Check if a given object implements the EligibleIncidentOwnerResourceArrayResponse interface.
24
- */
25
- function instanceOfEligibleIncidentOwnerResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function EligibleIncidentOwnerResourceArrayResponseFromJSON(json) {
29
- return EligibleIncidentOwnerResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function EligibleIncidentOwnerResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(EligibleIncidentOwnerResource_1.EligibleIncidentOwnerResourceFromJSON)),
37
- };
38
- }
39
- function EligibleIncidentOwnerResourceArrayResponseToJSON(json) {
40
- return EligibleIncidentOwnerResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function EligibleIncidentOwnerResourceArrayResponseToJSONTyped(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(EligibleIncidentOwnerResource_1.EligibleIncidentOwnerResourceToJSON)),
49
- };
50
- }
@@ -1,111 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface EligibleIncidentOwnerResource
20
- */
21
- export interface EligibleIncidentOwnerResource {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof EligibleIncidentOwnerResource
26
- */
27
- id: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof EligibleIncidentOwnerResource
32
- */
33
- firstName: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof EligibleIncidentOwnerResource
38
- */
39
- lastName: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof EligibleIncidentOwnerResource
44
- */
45
- fullName: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof EligibleIncidentOwnerResource
50
- */
51
- role: string;
52
- /**
53
- *
54
- * @type {boolean}
55
- * @memberof EligibleIncidentOwnerResource
56
- */
57
- activeRegisterAtIncidentDatetime: boolean;
58
- }
59
-
60
- /**
61
- * Check if a given object implements the EligibleIncidentOwnerResource interface.
62
- */
63
- export function instanceOfEligibleIncidentOwnerResource(value: object): value is EligibleIncidentOwnerResource {
64
- if (!('id' in value) || value['id'] === undefined) return false;
65
- if (!('firstName' in value) || value['firstName'] === undefined) return false;
66
- if (!('lastName' in value) || value['lastName'] === undefined) return false;
67
- if (!('fullName' in value) || value['fullName'] === undefined) return false;
68
- if (!('role' in value) || value['role'] === undefined) return false;
69
- if (!('activeRegisterAtIncidentDatetime' in value) || value['activeRegisterAtIncidentDatetime'] === undefined) return false;
70
- return true;
71
- }
72
-
73
- export function EligibleIncidentOwnerResourceFromJSON(json: any): EligibleIncidentOwnerResource {
74
- return EligibleIncidentOwnerResourceFromJSONTyped(json, false);
75
- }
76
-
77
- export function EligibleIncidentOwnerResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): EligibleIncidentOwnerResource {
78
- if (json == null) {
79
- return json;
80
- }
81
- return {
82
-
83
- 'id': json['id'],
84
- 'firstName': json['firstName'],
85
- 'lastName': json['lastName'],
86
- 'fullName': json['fullName'],
87
- 'role': json['role'],
88
- 'activeRegisterAtIncidentDatetime': json['activeRegisterAtIncidentDatetime'],
89
- };
90
- }
91
-
92
- export function EligibleIncidentOwnerResourceToJSON(json: any): EligibleIncidentOwnerResource {
93
- return EligibleIncidentOwnerResourceToJSONTyped(json, false);
94
- }
95
-
96
- export function EligibleIncidentOwnerResourceToJSONTyped(value?: EligibleIncidentOwnerResource | null, ignoreDiscriminator: boolean = false): any {
97
- if (value == null) {
98
- return value;
99
- }
100
-
101
- return {
102
-
103
- 'id': value['id'],
104
- 'firstName': value['firstName'],
105
- 'lastName': value['lastName'],
106
- 'fullName': value['fullName'],
107
- 'role': value['role'],
108
- 'activeRegisterAtIncidentDatetime': value['activeRegisterAtIncidentDatetime'],
109
- };
110
- }
111
-
@@ -1,73 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { EligibleIncidentOwnerResource } from './EligibleIncidentOwnerResource';
17
- import {
18
- EligibleIncidentOwnerResourceFromJSON,
19
- EligibleIncidentOwnerResourceFromJSONTyped,
20
- EligibleIncidentOwnerResourceToJSON,
21
- EligibleIncidentOwnerResourceToJSONTyped,
22
- } from './EligibleIncidentOwnerResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface EligibleIncidentOwnerResourceArrayResponse
28
- */
29
- export interface EligibleIncidentOwnerResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<EligibleIncidentOwnerResource>}
33
- * @memberof EligibleIncidentOwnerResourceArrayResponse
34
- */
35
- data?: Array<EligibleIncidentOwnerResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the EligibleIncidentOwnerResourceArrayResponse interface.
40
- */
41
- export function instanceOfEligibleIncidentOwnerResourceArrayResponse(value: object): value is EligibleIncidentOwnerResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function EligibleIncidentOwnerResourceArrayResponseFromJSON(json: any): EligibleIncidentOwnerResourceArrayResponse {
46
- return EligibleIncidentOwnerResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function EligibleIncidentOwnerResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EligibleIncidentOwnerResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(EligibleIncidentOwnerResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function EligibleIncidentOwnerResourceArrayResponseToJSON(json: any): EligibleIncidentOwnerResourceArrayResponse {
60
- return EligibleIncidentOwnerResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function EligibleIncidentOwnerResourceArrayResponseToJSONTyped(value?: EligibleIncidentOwnerResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(EligibleIncidentOwnerResourceToJSON)),
71
- };
72
- }
73
-