@digital8/security-registers-backend-ts-sdk 0.0.295 → 0.0.296

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.
@@ -16,7 +16,6 @@ src/models/AssetResource.ts
16
16
  src/models/AssetResourceArrayResponse.ts
17
17
  src/models/AuthChangePasswordRequest.ts
18
18
  src/models/AuthProfileUpdateRequest.ts
19
- src/models/AuthRegisterGuardRequest.ts
20
19
  src/models/CurrentRegisterResource.ts
21
20
  src/models/CurrentRegisterResourceArrayResponse.ts
22
21
  src/models/DevicesRegisterRequest.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/security-registers-backend-ts-sdk@0.0.295
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.296
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.295 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.296 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,16 +10,13 @@
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, 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';
14
14
  export interface AuthChangePasswordOperationRequest {
15
15
  authChangePasswordRequest?: AuthChangePasswordRequest;
16
16
  }
17
17
  export interface AuthProfileUpdateOperationRequest {
18
18
  authProfileUpdateRequest?: AuthProfileUpdateRequest;
19
19
  }
20
- export interface AuthRegisterGuardOperationRequest {
21
- authRegisterGuardRequest?: AuthRegisterGuardRequest;
22
- }
23
20
  export interface DestroyUserRequest {
24
21
  user: number;
25
22
  }
@@ -302,14 +299,6 @@ export declare class GeneralApi extends runtime.BaseAPI {
302
299
  * Auto-generated: auth.profile.update
303
300
  */
304
301
  authProfileUpdate(requestParameters?: AuthProfileUpdateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResource>;
305
- /**
306
- * Auto-generated: auth.registerGuard
307
- */
308
- authRegisterGuardRaw(requestParameters: AuthRegisterGuardOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>>;
309
- /**
310
- * Auto-generated: auth.registerGuard
311
- */
312
- authRegisterGuard(requestParameters?: AuthRegisterGuardOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource>;
313
302
  /**
314
303
  * Auto-generated: destroyUser
315
304
  */
@@ -185,61 +185,6 @@ var GeneralApi = /** @class */ (function (_super) {
185
185
  });
186
186
  });
187
187
  };
188
- /**
189
- * Auto-generated: auth.registerGuard
190
- */
191
- GeneralApi.prototype.authRegisterGuardRaw = function (requestParameters, initOverrides) {
192
- return __awaiter(this, void 0, void 0, function () {
193
- var queryParameters, headerParameters, token, tokenString, urlPath, response;
194
- return __generator(this, function (_a) {
195
- switch (_a.label) {
196
- case 0:
197
- queryParameters = {};
198
- headerParameters = {};
199
- headerParameters['Content-Type'] = 'application/json';
200
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
201
- token = this.configuration.accessToken;
202
- return [4 /*yield*/, token("bearerAuth", [])];
203
- case 1:
204
- tokenString = _a.sent();
205
- if (tokenString) {
206
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
207
- }
208
- _a.label = 2;
209
- case 2:
210
- urlPath = "/api/auth/register-guard";
211
- return [4 /*yield*/, this.request({
212
- path: urlPath,
213
- method: 'POST',
214
- headers: headerParameters,
215
- query: queryParameters,
216
- body: (0, index_1.AuthRegisterGuardRequestToJSON)(requestParameters['authRegisterGuardRequest']),
217
- }, initOverrides)];
218
- case 3:
219
- response = _a.sent();
220
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserAuthTokenResourceFromJSON)(jsonValue); })];
221
- }
222
- });
223
- });
224
- };
225
- /**
226
- * Auto-generated: auth.registerGuard
227
- */
228
- GeneralApi.prototype.authRegisterGuard = function () {
229
- return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
230
- var response;
231
- if (requestParameters === void 0) { requestParameters = {}; }
232
- return __generator(this, function (_a) {
233
- switch (_a.label) {
234
- case 0: return [4 /*yield*/, this.authRegisterGuardRaw(requestParameters, initOverrides)];
235
- case 1:
236
- response = _a.sent();
237
- return [4 /*yield*/, response.value()];
238
- case 2: return [2 /*return*/, _a.sent()];
239
- }
240
- });
241
- });
242
- };
243
188
  /**
244
189
  * Auto-generated: destroyUser
245
190
  */
@@ -44,7 +44,7 @@ export interface AssetResource {
44
44
  * @type {string}
45
45
  * @memberof AssetResource
46
46
  */
47
- altText: string;
47
+ altText?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -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
  };
@@ -63,6 +63,12 @@ export interface IncidentsListRequest {
63
63
  * @memberof IncidentsListRequest
64
64
  */
65
65
  rosterId?: Array<string>;
66
+ /**
67
+ *
68
+ * @type {Array<string>}
69
+ * @memberof IncidentsListRequest
70
+ */
71
+ registerId?: Array<string>;
66
72
  /**
67
73
  *
68
74
  * @type {Array<string>}
@@ -56,6 +56,7 @@ function IncidentsListRequestFromJSONTyped(json, ignoreDiscriminator) {
56
56
  'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
57
57
  'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
58
58
  'rosterId': json['roster_id'] == null ? undefined : json['roster_id'],
59
+ 'registerId': json['register_id'] == null ? undefined : json['register_id'],
59
60
  'userId': json['user_id'] == null ? undefined : json['user_id'],
60
61
  'approvedByUserId': json['approved_by_user_id'] == null ? undefined : json['approved_by_user_id'],
61
62
  'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
@@ -85,6 +86,7 @@ function IncidentsListRequestToJSONTyped(value, ignoreDiscriminator) {
85
86
  'venue_id': value['venueId'],
86
87
  'security_company_id': value['securityCompanyId'],
87
88
  'roster_id': value['rosterId'],
89
+ 'register_id': value['registerId'],
88
90
  'user_id': value['userId'],
89
91
  'approved_by_user_id': value['approvedByUserId'],
90
92
  'has_approved_at': value['hasApprovedAt'],
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import type { VenueLiteResource } from './VenueLiteResource';
13
13
  import type { UserLiteResource } from './UserLiteResource';
14
- import type { IncidentLiteResource } from './IncidentLiteResource';
15
14
  /**
16
15
  *
17
16
  * @export
@@ -143,7 +142,7 @@ export interface RegisterListResource {
143
142
  * @type {number}
144
143
  * @memberof RegisterListResource
145
144
  */
146
- signOffLat: number;
145
+ signOffLat?: number | null;
147
146
  /**
148
147
  *
149
148
  * @type {number}
@@ -152,10 +151,10 @@ export interface RegisterListResource {
152
151
  signOffLong: number;
153
152
  /**
154
153
  *
155
- * @type {Array<IncidentLiteResource>}
154
+ * @type {boolean}
156
155
  * @memberof RegisterListResource
157
156
  */
158
- incidents: Array<IncidentLiteResource> | null;
157
+ hasIncidents: boolean;
159
158
  }
160
159
  /**
161
160
  * Check if a given object implements the RegisterListResource interface.
@@ -20,7 +20,6 @@ exports.RegisterListResourceToJSON = RegisterListResourceToJSON;
20
20
  exports.RegisterListResourceToJSONTyped = RegisterListResourceToJSONTyped;
21
21
  var VenueLiteResource_1 = require("./VenueLiteResource");
22
22
  var UserLiteResource_1 = require("./UserLiteResource");
23
- var IncidentLiteResource_1 = require("./IncidentLiteResource");
24
23
  /**
25
24
  * Check if a given object implements the RegisterListResource interface.
26
25
  */
@@ -61,11 +60,9 @@ function instanceOfRegisterListResource(value) {
61
60
  return false;
62
61
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
63
62
  return false;
64
- if (!('signOffLat' in value) || value['signOffLat'] === undefined)
65
- return false;
66
63
  if (!('signOffLong' in value) || value['signOffLong'] === undefined)
67
64
  return false;
68
- if (!('incidents' in value) || value['incidents'] === undefined)
65
+ if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
69
66
  return false;
70
67
  return true;
71
68
  }
@@ -97,9 +94,9 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
97
94
  'firstAid': json['firstAid'],
98
95
  'signOnLat': json['signOnLat'],
99
96
  'signOnLong': json['signOnLong'],
100
- 'signOffLat': json['signOffLat'],
97
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
101
98
  'signOffLong': json['signOffLong'],
102
- 'incidents': (json['incidents'] == null ? null : json['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceFromJSON)),
99
+ 'hasIncidents': json['hasIncidents'],
103
100
  };
104
101
  }
105
102
  function RegisterListResourceToJSON(json) {
@@ -133,6 +130,6 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
133
130
  'signOnLong': value['signOnLong'],
134
131
  'signOffLat': value['signOffLat'],
135
132
  'signOffLong': value['signOffLong'],
136
- 'incidents': (value['incidents'] == null ? null : value['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceToJSON)),
133
+ 'hasIncidents': value['hasIncidents'],
137
134
  };
138
135
  }
@@ -106,7 +106,7 @@ 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}
@@ -50,6 +50,8 @@ function instanceOfRegisterResource(value) {
50
50
  return false;
51
51
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
52
52
  return false;
53
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined)
54
+ return false;
53
55
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
54
56
  return false;
55
57
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -82,7 +84,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
82
84
  'firstAidImage': json['firstAidImage'],
83
85
  'signOnLat': json['signOnLat'],
84
86
  'signOnLong': json['signOnLong'],
85
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
87
+ 'signOffLat': json['signOffLat'],
86
88
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
87
89
  'licenceNumber': json['licenceNumber'],
88
90
  'licenceExpiry': json['licenceExpiry'],
@@ -53,7 +53,7 @@ export interface RosterWithRegistersResource {
53
53
  * @type {Date}
54
54
  * @memberof RosterWithRegistersResource
55
55
  */
56
- finishDateTime?: Date | null;
56
+ finishDateTime: Date;
57
57
  /**
58
58
  *
59
59
  * @type {boolean}
@@ -33,6 +33,8 @@ function instanceOfRosterWithRegistersResource(value) {
33
33
  return false;
34
34
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
35
35
  return false;
36
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
37
+ return false;
36
38
  if (!('isCompliant' in value) || value['isCompliant'] === undefined)
37
39
  return false;
38
40
  if (!('isComplete' in value) || value['isComplete'] === undefined)
@@ -56,7 +58,7 @@ function RosterWithRegistersResourceFromJSONTyped(json, ignoreDiscriminator) {
56
58
  'state': json['state'],
57
59
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
58
60
  'startDateTime': (new Date(json['startDateTime'])),
59
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
61
+ 'finishDateTime': (new Date(json['finishDateTime'])),
60
62
  'isCompliant': json['isCompliant'],
61
63
  'isComplete': json['isComplete'],
62
64
  'signOffStatus': json['signOffStatus'],
@@ -67,7 +69,6 @@ function RosterWithRegistersResourceToJSON(json) {
67
69
  return RosterWithRegistersResourceToJSONTyped(json, false);
68
70
  }
69
71
  function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
70
- var _a;
71
72
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
72
73
  if (value == null) {
73
74
  return value;
@@ -78,7 +79,7 @@ function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
78
79
  'state': value['state'],
79
80
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
80
81
  'startDateTime': ((value['startDateTime']).toISOString()),
81
- 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
82
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
82
83
  'isCompliant': value['isCompliant'],
83
84
  'isComplete': value['isComplete'],
84
85
  'signOffStatus': value['signOffStatus'],
@@ -33,7 +33,7 @@ export interface SecurityCompanyResource {
33
33
  * @type {string}
34
34
  * @memberof SecurityCompanyResource
35
35
  */
36
- email?: string | null;
36
+ email: string;
37
37
  /**
38
38
  *
39
39
  * @type {boolean}
@@ -25,6 +25,8 @@ var AddressResource_1 = require("./AddressResource");
25
25
  function instanceOfSecurityCompanyResource(value) {
26
26
  if (!('name' in value) || value['name'] === undefined)
27
27
  return false;
28
+ if (!('email' in value) || value['email'] === undefined)
29
+ return false;
28
30
  if (!('isEnabled' in value) || value['isEnabled'] === undefined)
29
31
  return false;
30
32
  if (!('address' in value) || value['address'] === undefined)
@@ -43,7 +45,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
43
45
  return {
44
46
  'id': json['id'] == null ? undefined : json['id'],
45
47
  'name': json['name'],
46
- 'email': json['email'] == null ? undefined : json['email'],
48
+ 'email': json['email'],
47
49
  'isEnabled': json['isEnabled'],
48
50
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
49
51
  'licenceNumber': json['licenceNumber'],
@@ -8,7 +8,6 @@ export * from './AssetResource';
8
8
  export * from './AssetResourceArrayResponse';
9
9
  export * from './AuthChangePasswordRequest';
10
10
  export * from './AuthProfileUpdateRequest';
11
- export * from './AuthRegisterGuardRequest';
12
11
  export * from './CurrentRegisterResource';
13
12
  export * from './CurrentRegisterResourceArrayResponse';
14
13
  export * from './DevicesRegisterRequest';
@@ -26,7 +26,6 @@ __exportStar(require("./AssetResource"), exports);
26
26
  __exportStar(require("./AssetResourceArrayResponse"), exports);
27
27
  __exportStar(require("./AuthChangePasswordRequest"), exports);
28
28
  __exportStar(require("./AuthProfileUpdateRequest"), exports);
29
- __exportStar(require("./AuthRegisterGuardRequest"), exports);
30
29
  __exportStar(require("./CurrentRegisterResource"), exports);
31
30
  __exportStar(require("./CurrentRegisterResourceArrayResponse"), exports);
32
31
  __exportStar(require("./DevicesRegisterRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.295",
3
+ "version": "0.0.296",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -18,7 +18,6 @@ import type {
18
18
  AssetFileForUploadResource,
19
19
  AuthChangePasswordRequest,
20
20
  AuthProfileUpdateRequest,
21
- AuthRegisterGuardRequest,
22
21
  DevicesRegisterRequest,
23
22
  GenericResponse,
24
23
  IncidentFieldSchemaResource,
@@ -114,8 +113,6 @@ import {
114
113
  AuthChangePasswordRequestToJSON,
115
114
  AuthProfileUpdateRequestFromJSON,
116
115
  AuthProfileUpdateRequestToJSON,
117
- AuthRegisterGuardRequestFromJSON,
118
- AuthRegisterGuardRequestToJSON,
119
116
  DevicesRegisterRequestFromJSON,
120
117
  DevicesRegisterRequestToJSON,
121
118
  GenericResponseFromJSON,
@@ -300,10 +297,6 @@ export interface AuthProfileUpdateOperationRequest {
300
297
  authProfileUpdateRequest?: AuthProfileUpdateRequest;
301
298
  }
302
299
 
303
- export interface AuthRegisterGuardOperationRequest {
304
- authRegisterGuardRequest?: AuthRegisterGuardRequest;
305
- }
306
-
307
300
  export interface DestroyUserRequest {
308
301
  user: number;
309
302
  }
@@ -731,46 +724,6 @@ export class GeneralApi extends runtime.BaseAPI {
731
724
  return await response.value();
732
725
  }
733
726
 
734
- /**
735
- * Auto-generated: auth.registerGuard
736
- */
737
- async authRegisterGuardRaw(requestParameters: AuthRegisterGuardOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>> {
738
- const queryParameters: any = {};
739
-
740
- const headerParameters: runtime.HTTPHeaders = {};
741
-
742
- headerParameters['Content-Type'] = 'application/json';
743
-
744
- if (this.configuration && this.configuration.accessToken) {
745
- const token = this.configuration.accessToken;
746
- const tokenString = await token("bearerAuth", []);
747
-
748
- if (tokenString) {
749
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
750
- }
751
- }
752
-
753
- let urlPath = `/api/auth/register-guard`;
754
-
755
- const response = await this.request({
756
- path: urlPath,
757
- method: 'POST',
758
- headers: headerParameters,
759
- query: queryParameters,
760
- body: AuthRegisterGuardRequestToJSON(requestParameters['authRegisterGuardRequest']),
761
- }, initOverrides);
762
-
763
- return new runtime.JSONApiResponse(response, (jsonValue) => UserAuthTokenResourceFromJSON(jsonValue));
764
- }
765
-
766
- /**
767
- * Auto-generated: auth.registerGuard
768
- */
769
- async authRegisterGuard(requestParameters: AuthRegisterGuardOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource> {
770
- const response = await this.authRegisterGuardRaw(requestParameters, initOverrides);
771
- return await response.value();
772
- }
773
-
774
727
  /**
775
728
  * Auto-generated: destroyUser
776
729
  */
@@ -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}
@@ -71,7 +71,6 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
71
71
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
72
72
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
73
73
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
74
- if (!('altText' in value) || value['altText'] === undefined) return false;
75
74
  if (!('index' in value) || value['index'] === undefined) return false;
76
75
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
77
76
  return true;
@@ -91,7 +90,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
91
90
  'filePath': json['filePath'],
92
91
  'fileName': json['fileName'],
93
92
  'mimeType': json['mimeType'],
94
- 'altText': json['altText'],
93
+ 'altText': json['altText'] == null ? undefined : json['altText'],
95
94
  'index': json['index'],
96
95
  'fileId': json['fileId'],
97
96
  };
@@ -67,6 +67,12 @@ export interface IncidentsListRequest {
67
67
  * @memberof IncidentsListRequest
68
68
  */
69
69
  rosterId?: Array<string>;
70
+ /**
71
+ *
72
+ * @type {Array<string>}
73
+ * @memberof IncidentsListRequest
74
+ */
75
+ registerId?: Array<string>;
70
76
  /**
71
77
  *
72
78
  * @type {Array<string>}
@@ -175,6 +181,7 @@ export function IncidentsListRequestFromJSONTyped(json: any, ignoreDiscriminator
175
181
  'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
176
182
  'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
177
183
  'rosterId': json['roster_id'] == null ? undefined : json['roster_id'],
184
+ 'registerId': json['register_id'] == null ? undefined : json['register_id'],
178
185
  'userId': json['user_id'] == null ? undefined : json['user_id'],
179
186
  'approvedByUserId': json['approved_by_user_id'] == null ? undefined : json['approved_by_user_id'],
180
187
  'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
@@ -207,6 +214,7 @@ export function IncidentsListRequestToJSONTyped(value?: IncidentsListRequest | n
207
214
  'venue_id': value['venueId'],
208
215
  'security_company_id': value['securityCompanyId'],
209
216
  'roster_id': value['rosterId'],
217
+ 'register_id': value['registerId'],
210
218
  'user_id': value['userId'],
211
219
  'approved_by_user_id': value['approvedByUserId'],
212
220
  'has_approved_at': value['hasApprovedAt'],
@@ -27,13 +27,6 @@ import {
27
27
  UserLiteResourceToJSON,
28
28
  UserLiteResourceToJSONTyped,
29
29
  } from './UserLiteResource';
30
- import type { IncidentLiteResource } from './IncidentLiteResource';
31
- import {
32
- IncidentLiteResourceFromJSON,
33
- IncidentLiteResourceFromJSONTyped,
34
- IncidentLiteResourceToJSON,
35
- IncidentLiteResourceToJSONTyped,
36
- } from './IncidentLiteResource';
37
30
 
38
31
  /**
39
32
  *
@@ -166,7 +159,7 @@ export interface RegisterListResource {
166
159
  * @type {number}
167
160
  * @memberof RegisterListResource
168
161
  */
169
- signOffLat: number;
162
+ signOffLat?: number | null;
170
163
  /**
171
164
  *
172
165
  * @type {number}
@@ -175,10 +168,10 @@ export interface RegisterListResource {
175
168
  signOffLong: number;
176
169
  /**
177
170
  *
178
- * @type {Array<IncidentLiteResource>}
171
+ * @type {boolean}
179
172
  * @memberof RegisterListResource
180
173
  */
181
- incidents: Array<IncidentLiteResource> | null;
174
+ hasIncidents: boolean;
182
175
  }
183
176
 
184
177
  /**
@@ -203,9 +196,8 @@ export function instanceOfRegisterListResource(value: object): value is Register
203
196
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
204
197
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
205
198
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
206
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
207
199
  if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
208
- if (!('incidents' in value) || value['incidents'] === undefined) return false;
200
+ if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
209
201
  return true;
210
202
  }
211
203
 
@@ -239,9 +231,9 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
239
231
  'firstAid': json['firstAid'],
240
232
  'signOnLat': json['signOnLat'],
241
233
  'signOnLong': json['signOnLong'],
242
- 'signOffLat': json['signOffLat'],
234
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
243
235
  'signOffLong': json['signOffLong'],
244
- 'incidents': (json['incidents'] == null ? null : (json['incidents'] as Array<any>).map(IncidentLiteResourceFromJSON)),
236
+ 'hasIncidents': json['hasIncidents'],
245
237
  };
246
238
  }
247
239
 
@@ -278,7 +270,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
278
270
  'signOnLong': value['signOnLong'],
279
271
  'signOffLat': value['signOffLat'],
280
272
  'signOffLong': value['signOffLong'],
281
- 'incidents': (value['incidents'] == null ? null : (value['incidents'] as Array<any>).map(IncidentLiteResourceToJSON)),
273
+ 'hasIncidents': value['hasIncidents'],
282
274
  };
283
275
  }
284
276
 
@@ -123,7 +123,7 @@ 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}
@@ -191,6 +191,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
191
191
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
192
192
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
193
193
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
194
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
194
195
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
195
196
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
196
197
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -222,7 +223,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
222
223
  'firstAidImage': json['firstAidImage'],
223
224
  'signOnLat': json['signOnLat'],
224
225
  'signOnLong': json['signOnLong'],
225
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
226
+ 'signOffLat': json['signOffLat'],
226
227
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
227
228
  'licenceNumber': json['licenceNumber'],
228
229
  'licenceExpiry': json['licenceExpiry'],