@digital8/security-registers-backend-ts-sdk 0.0.193 → 0.0.194

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 (66) hide show
  1. package/.openapi-generator/FILES +2 -9
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +23 -74
  4. package/dist/apis/GeneralApi.js +76 -351
  5. package/dist/models/LicencesStoreRequest.d.ts +4 -100
  6. package/dist/models/LicencesStoreRequest.js +9 -41
  7. package/dist/models/LicencesUpdateRequest.d.ts +4 -120
  8. package/dist/models/LicencesUpdateRequest.js +8 -56
  9. package/dist/models/PdfExportResource.d.ts +50 -0
  10. package/dist/models/PdfExportResource.js +61 -0
  11. package/dist/models/PdfExportResourceArrayResponse.d.ts +33 -0
  12. package/dist/models/PdfExportResourceArrayResponse.js +50 -0
  13. package/dist/models/RegisterListResource.d.ts +2 -2
  14. package/dist/models/RegisterListResource.js +6 -2
  15. package/dist/models/RegisterResource.d.ts +1 -1
  16. package/dist/models/RegisterResource.js +1 -3
  17. package/dist/models/RostersListAllRequest.d.ts +0 -6
  18. package/dist/models/RostersListAllRequest.js +0 -2
  19. package/dist/models/RostersListRequest.d.ts +0 -6
  20. package/dist/models/RostersListRequest.js +0 -2
  21. package/dist/models/RostersListWithRegistersRequest.d.ts +0 -6
  22. package/dist/models/RostersListWithRegistersRequest.js +0 -2
  23. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  24. package/dist/models/SecurityCompanyResource.js +3 -1
  25. package/dist/models/index.d.ts +2 -9
  26. package/dist/models/index.js +2 -9
  27. package/package.json +1 -1
  28. package/src/apis/GeneralApi.ts +85 -327
  29. package/src/models/LicencesStoreRequest.ts +13 -141
  30. package/src/models/LicencesUpdateRequest.ts +12 -165
  31. package/src/models/PdfExportResource.ts +92 -0
  32. package/src/models/PdfExportResourceArrayResponse.ts +73 -0
  33. package/src/models/RegisterListResource.ts +6 -4
  34. package/src/models/RegisterResource.ts +2 -3
  35. package/src/models/RostersListAllRequest.ts +0 -8
  36. package/src/models/RostersListRequest.ts +0 -8
  37. package/src/models/RostersListWithRegistersRequest.ts +0 -8
  38. package/src/models/SecurityCompanyResource.ts +3 -2
  39. package/src/models/index.ts +2 -9
  40. package/dist/models/IncidentFieldSchemaResource.d.ts +0 -56
  41. package/dist/models/IncidentFieldSchemaResource.js +0 -62
  42. package/dist/models/IncidentFieldSchemaResourceArrayResponse.d.ts +0 -33
  43. package/dist/models/IncidentFieldSchemaResourceArrayResponse.js +0 -50
  44. package/dist/models/NotificationPreferenceResource.d.ts +0 -63
  45. package/dist/models/NotificationPreferenceResource.js +0 -67
  46. package/dist/models/NotificationPreferenceResourceArrayResponse.d.ts +0 -33
  47. package/dist/models/NotificationPreferenceResourceArrayResponse.js +0 -50
  48. package/dist/models/NotificationPreferencesStoreRequest.d.ts +0 -55
  49. package/dist/models/NotificationPreferencesStoreRequest.js +0 -68
  50. package/dist/models/NotificationTypeResource.d.ts +0 -38
  51. package/dist/models/NotificationTypeResource.js +0 -55
  52. package/dist/models/NotificationTypeResourceArrayResponse.d.ts +0 -33
  53. package/dist/models/NotificationTypeResourceArrayResponse.js +0 -50
  54. package/dist/models/RegistersUpdateRequest.d.ts +0 -101
  55. package/dist/models/RegistersUpdateRequest.js +0 -78
  56. package/dist/models/RostersUpdateRequest.d.ts +0 -77
  57. package/dist/models/RostersUpdateRequest.js +0 -70
  58. package/src/models/IncidentFieldSchemaResource.ts +0 -99
  59. package/src/models/IncidentFieldSchemaResourceArrayResponse.ts +0 -73
  60. package/src/models/NotificationPreferenceResource.ts +0 -116
  61. package/src/models/NotificationPreferenceResourceArrayResponse.ts +0 -73
  62. package/src/models/NotificationPreferencesStoreRequest.ts +0 -97
  63. package/src/models/NotificationTypeResource.ts +0 -75
  64. package/src/models/NotificationTypeResourceArrayResponse.ts +0 -73
  65. package/src/models/RegistersUpdateRequest.ts +0 -157
  66. package/src/models/RostersUpdateRequest.ts +0 -125
@@ -1,68 +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.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
- }
@@ -1,38 +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 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;
@@ -1,55 +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.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
- }
@@ -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 { 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;
@@ -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.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
- }
@@ -1,101 +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 RegistersUpdateRequest
16
- */
17
- export interface RegistersUpdateRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof RegistersUpdateRequest
22
- */
23
- userId?: number;
24
- /**
25
- *
26
- * @type {Date}
27
- * @memberof RegistersUpdateRequest
28
- */
29
- startDateTime?: Date;
30
- /**
31
- *
32
- * @type {Date}
33
- * @memberof RegistersUpdateRequest
34
- */
35
- finishDateTime?: Date;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof RegistersUpdateRequest
40
- */
41
- signOffStatus?: RegistersUpdateRequestSignOffStatusEnum;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof RegistersUpdateRequest
46
- */
47
- signOnSignatureId?: number;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof RegistersUpdateRequest
52
- */
53
- signOffSignatureId?: number;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof RegistersUpdateRequest
58
- */
59
- badgeNumber?: string;
60
- /**
61
- *
62
- * @type {number}
63
- * @memberof RegistersUpdateRequest
64
- */
65
- signOnLat?: number;
66
- /**
67
- *
68
- * @type {number}
69
- * @memberof RegistersUpdateRequest
70
- */
71
- signOnLong?: number;
72
- /**
73
- *
74
- * @type {number}
75
- * @memberof RegistersUpdateRequest
76
- */
77
- signOffLat?: number;
78
- /**
79
- *
80
- * @type {number}
81
- * @memberof RegistersUpdateRequest
82
- */
83
- signOffLong?: number;
84
- }
85
- /**
86
- * @export
87
- */
88
- export declare const RegistersUpdateRequestSignOffStatusEnum: {
89
- readonly _0: "0";
90
- readonly _1: "1";
91
- readonly _2: "2";
92
- };
93
- export type RegistersUpdateRequestSignOffStatusEnum = typeof RegistersUpdateRequestSignOffStatusEnum[keyof typeof RegistersUpdateRequestSignOffStatusEnum];
94
- /**
95
- * Check if a given object implements the RegistersUpdateRequest interface.
96
- */
97
- export declare function instanceOfRegistersUpdateRequest(value: object): value is RegistersUpdateRequest;
98
- export declare function RegistersUpdateRequestFromJSON(json: any): RegistersUpdateRequest;
99
- export declare function RegistersUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegistersUpdateRequest;
100
- export declare function RegistersUpdateRequestToJSON(json: any): RegistersUpdateRequest;
101
- export declare function RegistersUpdateRequestToJSONTyped(value?: RegistersUpdateRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,78 +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.RegistersUpdateRequestSignOffStatusEnum = void 0;
17
- exports.instanceOfRegistersUpdateRequest = instanceOfRegistersUpdateRequest;
18
- exports.RegistersUpdateRequestFromJSON = RegistersUpdateRequestFromJSON;
19
- exports.RegistersUpdateRequestFromJSONTyped = RegistersUpdateRequestFromJSONTyped;
20
- exports.RegistersUpdateRequestToJSON = RegistersUpdateRequestToJSON;
21
- exports.RegistersUpdateRequestToJSONTyped = RegistersUpdateRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.RegistersUpdateRequestSignOffStatusEnum = {
26
- _0: '0',
27
- _1: '1',
28
- _2: '2'
29
- };
30
- /**
31
- * Check if a given object implements the RegistersUpdateRequest interface.
32
- */
33
- function instanceOfRegistersUpdateRequest(value) {
34
- return true;
35
- }
36
- function RegistersUpdateRequestFromJSON(json) {
37
- return RegistersUpdateRequestFromJSONTyped(json, false);
38
- }
39
- function RegistersUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
40
- if (json == null) {
41
- return json;
42
- }
43
- return {
44
- 'userId': json['user_id'] == null ? undefined : json['user_id'],
45
- 'startDateTime': json['start_date_time'] == null ? undefined : (new Date(json['start_date_time'])),
46
- 'finishDateTime': json['finish_date_time'] == null ? undefined : (new Date(json['finish_date_time'])),
47
- 'signOffStatus': json['sign_off_status'] == null ? undefined : json['sign_off_status'],
48
- 'signOnSignatureId': json['sign_on_signature_id'] == null ? undefined : json['sign_on_signature_id'],
49
- 'signOffSignatureId': json['sign_off_signature_id'] == null ? undefined : json['sign_off_signature_id'],
50
- 'badgeNumber': json['badge_number'] == null ? undefined : json['badge_number'],
51
- 'signOnLat': json['sign_on_lat'] == null ? undefined : json['sign_on_lat'],
52
- 'signOnLong': json['sign_on_long'] == null ? undefined : json['sign_on_long'],
53
- 'signOffLat': json['sign_off_lat'] == null ? undefined : json['sign_off_lat'],
54
- 'signOffLong': json['sign_off_long'] == null ? undefined : json['sign_off_long'],
55
- };
56
- }
57
- function RegistersUpdateRequestToJSON(json) {
58
- return RegistersUpdateRequestToJSONTyped(json, false);
59
- }
60
- function RegistersUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
61
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
62
- if (value == null) {
63
- return value;
64
- }
65
- return {
66
- 'user_id': value['userId'],
67
- 'start_date_time': value['startDateTime'] == null ? undefined : ((value['startDateTime']).toISOString()),
68
- 'finish_date_time': value['finishDateTime'] == null ? undefined : ((value['finishDateTime']).toISOString()),
69
- 'sign_off_status': value['signOffStatus'],
70
- 'sign_on_signature_id': value['signOnSignatureId'],
71
- 'sign_off_signature_id': value['signOffSignatureId'],
72
- 'badge_number': value['badgeNumber'],
73
- 'sign_on_lat': value['signOnLat'],
74
- 'sign_on_long': value['signOnLong'],
75
- 'sign_off_lat': value['signOffLat'],
76
- 'sign_off_long': value['signOffLong'],
77
- };
78
- }
@@ -1,77 +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 RostersUpdateRequest
16
- */
17
- export interface RostersUpdateRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof RostersUpdateRequest
22
- */
23
- venueId?: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof RostersUpdateRequest
28
- */
29
- securityCompanyId?: number;
30
- /**
31
- *
32
- * @type {Date}
33
- * @memberof RostersUpdateRequest
34
- */
35
- startDateTime?: Date;
36
- /**
37
- *
38
- * @type {Date}
39
- * @memberof RostersUpdateRequest
40
- */
41
- finishDateTime?: Date;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof RostersUpdateRequest
46
- */
47
- signOffStatus?: RostersUpdateRequestSignOffStatusEnum;
48
- /**
49
- *
50
- * @type {boolean}
51
- * @memberof RostersUpdateRequest
52
- */
53
- isComplete?: boolean;
54
- /**
55
- *
56
- * @type {boolean}
57
- * @memberof RostersUpdateRequest
58
- */
59
- isCompliant?: boolean;
60
- }
61
- /**
62
- * @export
63
- */
64
- export declare const RostersUpdateRequestSignOffStatusEnum: {
65
- readonly _0: "0";
66
- readonly _1: "1";
67
- readonly _2: "2";
68
- };
69
- export type RostersUpdateRequestSignOffStatusEnum = typeof RostersUpdateRequestSignOffStatusEnum[keyof typeof RostersUpdateRequestSignOffStatusEnum];
70
- /**
71
- * Check if a given object implements the RostersUpdateRequest interface.
72
- */
73
- export declare function instanceOfRostersUpdateRequest(value: object): value is RostersUpdateRequest;
74
- export declare function RostersUpdateRequestFromJSON(json: any): RostersUpdateRequest;
75
- export declare function RostersUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RostersUpdateRequest;
76
- export declare function RostersUpdateRequestToJSON(json: any): RostersUpdateRequest;
77
- export declare function RostersUpdateRequestToJSONTyped(value?: RostersUpdateRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,70 +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.RostersUpdateRequestSignOffStatusEnum = void 0;
17
- exports.instanceOfRostersUpdateRequest = instanceOfRostersUpdateRequest;
18
- exports.RostersUpdateRequestFromJSON = RostersUpdateRequestFromJSON;
19
- exports.RostersUpdateRequestFromJSONTyped = RostersUpdateRequestFromJSONTyped;
20
- exports.RostersUpdateRequestToJSON = RostersUpdateRequestToJSON;
21
- exports.RostersUpdateRequestToJSONTyped = RostersUpdateRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.RostersUpdateRequestSignOffStatusEnum = {
26
- _0: '0',
27
- _1: '1',
28
- _2: '2'
29
- };
30
- /**
31
- * Check if a given object implements the RostersUpdateRequest interface.
32
- */
33
- function instanceOfRostersUpdateRequest(value) {
34
- return true;
35
- }
36
- function RostersUpdateRequestFromJSON(json) {
37
- return RostersUpdateRequestFromJSONTyped(json, false);
38
- }
39
- function RostersUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
40
- if (json == null) {
41
- return json;
42
- }
43
- return {
44
- 'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
45
- 'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
46
- 'startDateTime': json['start_date_time'] == null ? undefined : (new Date(json['start_date_time'])),
47
- 'finishDateTime': json['finish_date_time'] == null ? undefined : (new Date(json['finish_date_time'])),
48
- 'signOffStatus': json['sign_off_status'] == null ? undefined : json['sign_off_status'],
49
- 'isComplete': json['is_complete'] == null ? undefined : json['is_complete'],
50
- 'isCompliant': json['is_compliant'] == null ? undefined : json['is_compliant'],
51
- };
52
- }
53
- function RostersUpdateRequestToJSON(json) {
54
- return RostersUpdateRequestToJSONTyped(json, false);
55
- }
56
- function RostersUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
57
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
58
- if (value == null) {
59
- return value;
60
- }
61
- return {
62
- 'venue_id': value['venueId'],
63
- 'security_company_id': value['securityCompanyId'],
64
- 'start_date_time': value['startDateTime'] == null ? undefined : ((value['startDateTime']).toISOString()),
65
- 'finish_date_time': value['finishDateTime'] == null ? undefined : ((value['finishDateTime']).toISOString()),
66
- 'sign_off_status': value['signOffStatus'],
67
- 'is_complete': value['isComplete'],
68
- 'is_compliant': value['isCompliant'],
69
- };
70
- }
@@ -1,99 +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 IncidentFieldSchemaResource
20
- */
21
- export interface IncidentFieldSchemaResource {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof IncidentFieldSchemaResource
26
- */
27
- id?: number | null;
28
- /**
29
- *
30
- * @type {object}
31
- * @memberof IncidentFieldSchemaResource
32
- */
33
- state: object;
34
- /**
35
- *
36
- * @type {Array<boolean>}
37
- * @memberof IncidentFieldSchemaResource
38
- */
39
- jsonSchema: Array<boolean>;
40
- /**
41
- *
42
- * @type {Date}
43
- * @memberof IncidentFieldSchemaResource
44
- */
45
- createdAt?: Date | null;
46
- /**
47
- *
48
- * @type {Date}
49
- * @memberof IncidentFieldSchemaResource
50
- */
51
- updatedAt?: Date | null;
52
- }
53
-
54
- /**
55
- * Check if a given object implements the IncidentFieldSchemaResource interface.
56
- */
57
- export function instanceOfIncidentFieldSchemaResource(value: object): value is IncidentFieldSchemaResource {
58
- if (!('state' in value) || value['state'] === undefined) return false;
59
- if (!('jsonSchema' in value) || value['jsonSchema'] === undefined) return false;
60
- return true;
61
- }
62
-
63
- export function IncidentFieldSchemaResourceFromJSON(json: any): IncidentFieldSchemaResource {
64
- return IncidentFieldSchemaResourceFromJSONTyped(json, false);
65
- }
66
-
67
- export function IncidentFieldSchemaResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldSchemaResource {
68
- if (json == null) {
69
- return json;
70
- }
71
- return {
72
-
73
- 'id': json['id'] == null ? undefined : json['id'],
74
- 'state': json['state'],
75
- 'jsonSchema': json['jsonSchema'],
76
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
77
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
78
- };
79
- }
80
-
81
- export function IncidentFieldSchemaResourceToJSON(json: any): IncidentFieldSchemaResource {
82
- return IncidentFieldSchemaResourceToJSONTyped(json, false);
83
- }
84
-
85
- export function IncidentFieldSchemaResourceToJSONTyped(value?: IncidentFieldSchemaResource | null, ignoreDiscriminator: boolean = false): any {
86
- if (value == null) {
87
- return value;
88
- }
89
-
90
- return {
91
-
92
- 'id': value['id'],
93
- 'state': value['state'],
94
- 'jsonSchema': value['jsonSchema'],
95
- 'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
96
- 'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
97
- };
98
- }
99
-