@digital8/security-registers-backend-ts-sdk 0.0.198 → 0.0.200

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.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +5 -3
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +39 -12
  4. package/dist/apis/GeneralApi.js +215 -55
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +3 -1
  7. package/dist/models/NotificationPreferenceResource.d.ts +63 -0
  8. package/dist/models/NotificationPreferenceResource.js +67 -0
  9. package/dist/models/NotificationPreferenceResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/NotificationPreferenceResourceArrayResponse.js +50 -0
  11. package/dist/models/NotificationPreferencesStoreRequest.d.ts +55 -0
  12. package/dist/models/NotificationPreferencesStoreRequest.js +68 -0
  13. package/dist/models/NotificationTypeResource.d.ts +38 -0
  14. package/dist/models/NotificationTypeResource.js +55 -0
  15. package/dist/models/NotificationTypeResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/NotificationTypeResourceArrayResponse.js +50 -0
  17. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  18. package/dist/models/RegisterGroupedByRosterResource.js +3 -4
  19. package/dist/models/RegisterListResource.d.ts +3 -3
  20. package/dist/models/RegisterListResource.js +4 -6
  21. package/dist/models/RegisterResource.d.ts +2 -2
  22. package/dist/models/RegisterResource.js +8 -8
  23. package/dist/models/RosterListResource.d.ts +1 -1
  24. package/dist/models/RosterListResource.js +4 -3
  25. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  26. package/dist/models/SecurityCompanyResource.js +1 -3
  27. package/dist/models/index.d.ts +5 -3
  28. package/dist/models/index.js +5 -3
  29. package/package.json +1 -1
  30. package/src/apis/GeneralApi.ts +179 -50
  31. package/src/models/AddressResource.ts +3 -2
  32. package/src/models/NotificationPreferenceResource.ts +116 -0
  33. package/src/models/NotificationPreferenceResourceArrayResponse.ts +73 -0
  34. package/src/models/NotificationPreferencesStoreRequest.ts +97 -0
  35. package/src/models/NotificationTypeResource.ts +75 -0
  36. package/src/models/NotificationTypeResourceArrayResponse.ts +73 -0
  37. package/src/models/RegisterGroupedByRosterResource.ts +3 -4
  38. package/src/models/RegisterListResource.ts +7 -8
  39. package/src/models/RegisterResource.ts +6 -6
  40. package/src/models/RosterListResource.ts +4 -3
  41. package/src/models/SecurityCompanyResource.ts +2 -3
  42. package/src/models/index.ts +5 -3
  43. package/dist/models/IncidentResource.d.ts +0 -119
  44. package/dist/models/IncidentResource.js +0 -91
  45. package/dist/models/IncidentResourceArrayResponse.d.ts +0 -33
  46. package/dist/models/IncidentResourceArrayResponse.js +0 -50
  47. package/dist/models/IncidentsStoreRequest.d.ts +0 -38
  48. package/dist/models/IncidentsStoreRequest.js +0 -55
  49. package/src/models/IncidentResource.ts +0 -204
  50. package/src/models/IncidentResourceArrayResponse.ts +0 -73
  51. package/src/models/IncidentsStoreRequest.ts +0 -75
@@ -0,0 +1,55 @@
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 NotificationPreferencesStoreRequest
16
+ */
17
+ export interface NotificationPreferencesStoreRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof NotificationPreferencesStoreRequest
22
+ */
23
+ notificationType: NotificationPreferencesStoreRequestNotificationTypeEnum;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof NotificationPreferencesStoreRequest
28
+ */
29
+ venueId?: number;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof NotificationPreferencesStoreRequest
34
+ */
35
+ enabled: boolean;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const NotificationPreferencesStoreRequestNotificationTypeEnum: {
41
+ readonly IncidentAdded: "incident_added";
42
+ readonly NonSignOff: "non_sign_off";
43
+ readonly NonSignOn: "non_sign_on";
44
+ readonly SignOnRejected: "sign_on_rejected";
45
+ readonly LicenceUpdated: "licence_updated";
46
+ };
47
+ export type NotificationPreferencesStoreRequestNotificationTypeEnum = typeof NotificationPreferencesStoreRequestNotificationTypeEnum[keyof typeof NotificationPreferencesStoreRequestNotificationTypeEnum];
48
+ /**
49
+ * Check if a given object implements the NotificationPreferencesStoreRequest interface.
50
+ */
51
+ export declare function instanceOfNotificationPreferencesStoreRequest(value: object): value is NotificationPreferencesStoreRequest;
52
+ export declare function NotificationPreferencesStoreRequestFromJSON(json: any): NotificationPreferencesStoreRequest;
53
+ export declare function NotificationPreferencesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferencesStoreRequest;
54
+ export declare function NotificationPreferencesStoreRequestToJSON(json: any): NotificationPreferencesStoreRequest;
55
+ export declare function NotificationPreferencesStoreRequestToJSONTyped(value?: NotificationPreferencesStoreRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
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.NotificationPreferencesStoreRequestNotificationTypeEnum = void 0;
17
+ exports.instanceOfNotificationPreferencesStoreRequest = instanceOfNotificationPreferencesStoreRequest;
18
+ exports.NotificationPreferencesStoreRequestFromJSON = NotificationPreferencesStoreRequestFromJSON;
19
+ exports.NotificationPreferencesStoreRequestFromJSONTyped = NotificationPreferencesStoreRequestFromJSONTyped;
20
+ exports.NotificationPreferencesStoreRequestToJSON = NotificationPreferencesStoreRequestToJSON;
21
+ exports.NotificationPreferencesStoreRequestToJSONTyped = NotificationPreferencesStoreRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.NotificationPreferencesStoreRequestNotificationTypeEnum = {
26
+ IncidentAdded: 'incident_added',
27
+ NonSignOff: 'non_sign_off',
28
+ NonSignOn: 'non_sign_on',
29
+ SignOnRejected: 'sign_on_rejected',
30
+ LicenceUpdated: 'licence_updated'
31
+ };
32
+ /**
33
+ * Check if a given object implements the NotificationPreferencesStoreRequest interface.
34
+ */
35
+ function instanceOfNotificationPreferencesStoreRequest(value) {
36
+ if (!('notificationType' in value) || value['notificationType'] === undefined)
37
+ return false;
38
+ if (!('enabled' in value) || value['enabled'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function NotificationPreferencesStoreRequestFromJSON(json) {
43
+ return NotificationPreferencesStoreRequestFromJSONTyped(json, false);
44
+ }
45
+ function NotificationPreferencesStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'notificationType': json['notification_type'],
51
+ 'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
52
+ 'enabled': json['enabled'],
53
+ };
54
+ }
55
+ function NotificationPreferencesStoreRequestToJSON(json) {
56
+ return NotificationPreferencesStoreRequestToJSONTyped(json, false);
57
+ }
58
+ function NotificationPreferencesStoreRequestToJSONTyped(value, ignoreDiscriminator) {
59
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'notification_type': value['notificationType'],
65
+ 'venue_id': value['venueId'],
66
+ 'enabled': value['enabled'],
67
+ };
68
+ }
@@ -0,0 +1,38 @@
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 NotificationTypeResource
16
+ */
17
+ export interface NotificationTypeResource {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof NotificationTypeResource
22
+ */
23
+ value: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof NotificationTypeResource
28
+ */
29
+ label: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the NotificationTypeResource interface.
33
+ */
34
+ export declare function instanceOfNotificationTypeResource(value: object): value is NotificationTypeResource;
35
+ export declare function NotificationTypeResourceFromJSON(json: any): NotificationTypeResource;
36
+ export declare function NotificationTypeResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTypeResource;
37
+ export declare function NotificationTypeResourceToJSON(json: any): NotificationTypeResource;
38
+ export declare function NotificationTypeResourceToJSONTyped(value?: NotificationTypeResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfNotificationTypeResource = instanceOfNotificationTypeResource;
17
+ exports.NotificationTypeResourceFromJSON = NotificationTypeResourceFromJSON;
18
+ exports.NotificationTypeResourceFromJSONTyped = NotificationTypeResourceFromJSONTyped;
19
+ exports.NotificationTypeResourceToJSON = NotificationTypeResourceToJSON;
20
+ exports.NotificationTypeResourceToJSONTyped = NotificationTypeResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the NotificationTypeResource interface.
23
+ */
24
+ function instanceOfNotificationTypeResource(value) {
25
+ if (!('value' in value) || value['value'] === undefined)
26
+ return false;
27
+ if (!('label' in value) || value['label'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function NotificationTypeResourceFromJSON(json) {
32
+ return NotificationTypeResourceFromJSONTyped(json, false);
33
+ }
34
+ function NotificationTypeResourceFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'value': json['value'],
40
+ 'label': json['label'],
41
+ };
42
+ }
43
+ function NotificationTypeResourceToJSON(json) {
44
+ return NotificationTypeResourceToJSONTyped(json, false);
45
+ }
46
+ function NotificationTypeResourceToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'value': value['value'],
53
+ 'label': value['label'],
54
+ };
55
+ }
@@ -0,0 +1,33 @@
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 { NotificationTypeResource } from './NotificationTypeResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface NotificationTypeResourceArrayResponse
17
+ */
18
+ export interface NotificationTypeResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<NotificationTypeResource>}
22
+ * @memberof NotificationTypeResourceArrayResponse
23
+ */
24
+ data?: Array<NotificationTypeResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the NotificationTypeResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfNotificationTypeResourceArrayResponse(value: object): value is NotificationTypeResourceArrayResponse;
30
+ export declare function NotificationTypeResourceArrayResponseFromJSON(json: any): NotificationTypeResourceArrayResponse;
31
+ export declare function NotificationTypeResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTypeResourceArrayResponse;
32
+ export declare function NotificationTypeResourceArrayResponseToJSON(json: any): NotificationTypeResourceArrayResponse;
33
+ export declare function NotificationTypeResourceArrayResponseToJSONTyped(value?: NotificationTypeResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfNotificationTypeResourceArrayResponse = instanceOfNotificationTypeResourceArrayResponse;
17
+ exports.NotificationTypeResourceArrayResponseFromJSON = NotificationTypeResourceArrayResponseFromJSON;
18
+ exports.NotificationTypeResourceArrayResponseFromJSONTyped = NotificationTypeResourceArrayResponseFromJSONTyped;
19
+ exports.NotificationTypeResourceArrayResponseToJSON = NotificationTypeResourceArrayResponseToJSON;
20
+ exports.NotificationTypeResourceArrayResponseToJSONTyped = NotificationTypeResourceArrayResponseToJSONTyped;
21
+ var NotificationTypeResource_1 = require("./NotificationTypeResource");
22
+ /**
23
+ * Check if a given object implements the NotificationTypeResourceArrayResponse interface.
24
+ */
25
+ function instanceOfNotificationTypeResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function NotificationTypeResourceArrayResponseFromJSON(json) {
29
+ return NotificationTypeResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function NotificationTypeResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(NotificationTypeResource_1.NotificationTypeResourceFromJSON)),
37
+ };
38
+ }
39
+ function NotificationTypeResourceArrayResponseToJSON(json) {
40
+ return NotificationTypeResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function NotificationTypeResourceArrayResponseToJSONTyped(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(NotificationTypeResource_1.NotificationTypeResourceToJSON)),
49
+ };
50
+ }
@@ -52,7 +52,7 @@ export interface RegisterGroupedByRosterResource {
52
52
  * @type {Date}
53
53
  * @memberof RegisterGroupedByRosterResource
54
54
  */
55
- finishDateTime: Date;
55
+ finishDateTime?: Date | null;
56
56
  /**
57
57
  *
58
58
  * @type {Array<RegisterListResource>}
@@ -32,8 +32,6 @@ function instanceOfRegisterGroupedByRosterResource(value) {
32
32
  return false;
33
33
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
34
34
  return false;
35
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
36
- return false;
37
35
  if (!('registers' in value) || value['registers'] === undefined)
38
36
  return false;
39
37
  return true;
@@ -51,7 +49,7 @@ function RegisterGroupedByRosterResourceFromJSONTyped(json, ignoreDiscriminator)
51
49
  'timezone': json['timezone'],
52
50
  'state': json['state'],
53
51
  'startDateTime': (new Date(json['startDateTime'])),
54
- 'finishDateTime': (new Date(json['finishDateTime'])),
52
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
55
53
  'registers': (json['registers'] == null ? null : json['registers'].map(RegisterListResource_1.RegisterListResourceFromJSON)),
56
54
  };
57
55
  }
@@ -59,6 +57,7 @@ function RegisterGroupedByRosterResourceToJSON(json) {
59
57
  return RegisterGroupedByRosterResourceToJSONTyped(json, false);
60
58
  }
61
59
  function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator) {
60
+ var _a;
62
61
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
63
62
  if (value == null) {
64
63
  return value;
@@ -69,7 +68,7 @@ function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator)
69
68
  'timezone': value['timezone'],
70
69
  'state': value['state'],
71
70
  'startDateTime': ((value['startDateTime']).toISOString()),
72
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
71
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
73
72
  'registers': (value['registers'] == null ? null : value['registers'].map(RegisterListResource_1.RegisterListResourceToJSON)),
74
73
  };
75
74
  }
@@ -64,7 +64,7 @@ export interface RegisterListResource {
64
64
  * @type {string}
65
65
  * @memberof RegisterListResource
66
66
  */
67
- badgeNumber: string;
67
+ badgeNumber?: string | null;
68
68
  /**
69
69
  *
70
70
  * @type {string}
@@ -142,13 +142,13 @@ export interface RegisterListResource {
142
142
  * @type {number}
143
143
  * @memberof RegisterListResource
144
144
  */
145
- signOffLat?: number | null;
145
+ signOffLat: number;
146
146
  /**
147
147
  *
148
148
  * @type {number}
149
149
  * @memberof RegisterListResource
150
150
  */
151
- signOffLong: number;
151
+ signOffLong?: number | null;
152
152
  /**
153
153
  *
154
154
  * @type {Array<boolean>}
@@ -36,8 +36,6 @@ function instanceOfRegisterListResource(value) {
36
36
  return false;
37
37
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
38
38
  return false;
39
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
40
- return false;
41
39
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
42
40
  return false;
43
41
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
@@ -62,7 +60,7 @@ function instanceOfRegisterListResource(value) {
62
60
  return false;
63
61
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
64
62
  return false;
65
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
63
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined)
66
64
  return false;
67
65
  if (!('incidents' in value) || value['incidents'] === undefined)
68
66
  return false;
@@ -83,7 +81,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
83
81
  'finishDateTime': (new Date(json['finishDateTime'])),
84
82
  'shiftLength': json['shiftLength'],
85
83
  'signOffStatus': json['signOffStatus'],
86
- 'badgeNumber': json['badgeNumber'],
84
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
87
85
  'licenceNumber': json['licenceNumber'],
88
86
  'licenceFirstName': json['licenceFirstName'],
89
87
  'licenceLastName': json['licenceLastName'],
@@ -96,8 +94,8 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
96
94
  'firstAid': json['firstAid'],
97
95
  'signOnLat': json['signOnLat'],
98
96
  'signOnLong': json['signOnLong'],
99
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
100
- 'signOffLong': json['signOffLong'],
97
+ 'signOffLat': json['signOffLat'],
98
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
101
99
  'incidents': json['incidents'],
102
100
  };
103
101
  }
@@ -46,7 +46,7 @@ export interface RegisterResource {
46
46
  * @type {Date}
47
47
  * @memberof RegisterResource
48
48
  */
49
- finishDateTime?: Date | null;
49
+ finishDateTime: Date;
50
50
  /**
51
51
  *
52
52
  * @type {number}
@@ -106,7 +106,7 @@ export interface RegisterResource {
106
106
  * @type {number}
107
107
  * @memberof RegisterResource
108
108
  */
109
- signOffLat: number;
109
+ signOffLat?: number | null;
110
110
  /**
111
111
  *
112
112
  * @type {number}
@@ -30,6 +30,8 @@ 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)
@@ -48,8 +50,6 @@ function instanceOfRegisterResource(value) {
48
50
  return false;
49
51
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
50
52
  return false;
51
- if (!('signOffLat' in value) || value['signOffLat'] === undefined)
52
- return false;
53
53
  if (!('signOffLong' in value) || value['signOffLong'] === undefined)
54
54
  return false;
55
55
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
@@ -76,7 +76,7 @@ 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'],
@@ -86,7 +86,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
86
86
  'firstAidImage': json['firstAidImage'],
87
87
  'signOnLat': json['signOnLat'],
88
88
  'signOnLong': json['signOnLong'],
89
- 'signOffLat': json['signOffLat'],
89
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
90
90
  'signOffLong': json['signOffLong'],
91
91
  'licenceNumber': json['licenceNumber'],
92
92
  'licenceExpiry': json['licenceExpiry'],
@@ -101,7 +101,7 @@ function RegisterResourceToJSON(json) {
101
101
  return RegisterResourceToJSONTyped(json, false);
102
102
  }
103
103
  function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
104
- var _a, _b, _c;
104
+ var _a, _b;
105
105
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
106
106
  if (value == null) {
107
107
  return value;
@@ -111,7 +111,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
111
111
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
112
112
  'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
113
113
  'startDateTime': ((value['startDateTime']).toISOString()),
114
- 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
114
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
115
115
  'signOffStatus': value['signOffStatus'],
116
116
  'signOnSignature': value['signOnSignature'],
117
117
  'signOffSignature': value['signOffSignature'],
@@ -128,7 +128,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
128
128
  'licenceFirstName': value['licenceFirstName'],
129
129
  'licenceLastName': value['licenceLastName'],
130
130
  '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()),
131
+ 'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
132
+ 'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
133
133
  };
134
134
  }
@@ -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'],
@@ -33,7 +33,7 @@ export interface SecurityCompanyResource {
33
33
  * @type {string}
34
34
  * @memberof SecurityCompanyResource
35
35
  */
36
- email: string;
36
+ email?: string | null;
37
37
  /**
38
38
  *
39
39
  * @type {boolean}
@@ -25,8 +25,6 @@ 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;
30
28
  if (!('isEnabled' in value) || value['isEnabled'] === undefined)
31
29
  return false;
32
30
  if (!('address' in value) || value['address'] === undefined)
@@ -45,7 +43,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
45
43
  return {
46
44
  'id': json['id'] == null ? undefined : json['id'],
47
45
  'name': json['name'],
48
- 'email': json['email'],
46
+ 'email': json['email'] == null ? undefined : json['email'],
49
47
  'isEnabled': json['isEnabled'],
50
48
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
51
49
  'licenceNumber': json['licenceNumber'],
@@ -11,9 +11,6 @@ export * from './CurrentRegisterResourceArrayResponse';
11
11
  export * from './GenericResponse';
12
12
  export * from './IncidentFieldSchemaResource';
13
13
  export * from './IncidentFieldSchemaResourceArrayResponse';
14
- export * from './IncidentResource';
15
- export * from './IncidentResourceArrayResponse';
16
- export * from './IncidentsStoreRequest';
17
14
  export * from './IndexMinimalUserRequest';
18
15
  export * from './IndexUserRequest';
19
16
  export * from './LicenceListResource';
@@ -28,6 +25,11 @@ export * from './LicencesStoreRequest';
28
25
  export * from './LicencesUpdateRequest';
29
26
  export * from './LicencesVerifyRequest';
30
27
  export * from './LoginAuthRequest';
28
+ export * from './NotificationPreferenceResource';
29
+ export * from './NotificationPreferenceResourceArrayResponse';
30
+ export * from './NotificationPreferencesStoreRequest';
31
+ export * from './NotificationTypeResource';
32
+ export * from './NotificationTypeResourceArrayResponse';
31
33
  export * from './PaginatedLicenceListResourceResponse';
32
34
  export * from './PaginatedLicenceResourceResponse';
33
35
  export * from './PaginatedRegisterGroupedByRosterResourceResponse';
@@ -29,9 +29,6 @@ __exportStar(require("./CurrentRegisterResourceArrayResponse"), exports);
29
29
  __exportStar(require("./GenericResponse"), exports);
30
30
  __exportStar(require("./IncidentFieldSchemaResource"), exports);
31
31
  __exportStar(require("./IncidentFieldSchemaResourceArrayResponse"), exports);
32
- __exportStar(require("./IncidentResource"), exports);
33
- __exportStar(require("./IncidentResourceArrayResponse"), exports);
34
- __exportStar(require("./IncidentsStoreRequest"), exports);
35
32
  __exportStar(require("./IndexMinimalUserRequest"), exports);
36
33
  __exportStar(require("./IndexUserRequest"), exports);
37
34
  __exportStar(require("./LicenceListResource"), exports);
@@ -46,6 +43,11 @@ __exportStar(require("./LicencesStoreRequest"), exports);
46
43
  __exportStar(require("./LicencesUpdateRequest"), exports);
47
44
  __exportStar(require("./LicencesVerifyRequest"), exports);
48
45
  __exportStar(require("./LoginAuthRequest"), exports);
46
+ __exportStar(require("./NotificationPreferenceResource"), exports);
47
+ __exportStar(require("./NotificationPreferenceResourceArrayResponse"), exports);
48
+ __exportStar(require("./NotificationPreferencesStoreRequest"), exports);
49
+ __exportStar(require("./NotificationTypeResource"), exports);
50
+ __exportStar(require("./NotificationTypeResourceArrayResponse"), exports);
49
51
  __exportStar(require("./PaginatedLicenceListResourceResponse"), exports);
50
52
  __exportStar(require("./PaginatedLicenceResourceResponse"), exports);
51
53
  __exportStar(require("./PaginatedRegisterGroupedByRosterResourceResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.198",
3
+ "version": "0.0.200",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {