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

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 (48) hide show
  1. package/.openapi-generator/FILES +1 -5
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +5 -43
  4. package/dist/apis/GeneralApi.js +7 -223
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +1 -3
  7. package/dist/models/IncidentFieldSchemasShowRequest.d.ts +46 -0
  8. package/dist/models/IncidentFieldSchemasShowRequest.js +65 -0
  9. package/dist/models/RegisterListResource.d.ts +5 -5
  10. package/dist/models/RegisterListResource.js +6 -7
  11. package/dist/models/RegisterResource.d.ts +3 -3
  12. package/dist/models/RegisterResource.js +9 -11
  13. package/dist/models/RosterListResource.d.ts +1 -1
  14. package/dist/models/RosterListResource.js +3 -4
  15. package/dist/models/RosterLiteResource.d.ts +1 -1
  16. package/dist/models/RosterLiteResource.js +3 -4
  17. package/dist/models/RosterWithRegistersResource.d.ts +1 -1
  18. package/dist/models/RosterWithRegistersResource.js +4 -3
  19. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  20. package/dist/models/SecurityCompanyResource.js +3 -1
  21. package/dist/models/index.d.ts +1 -5
  22. package/dist/models/index.js +1 -5
  23. package/package.json +1 -1
  24. package/src/apis/GeneralApi.ts +12 -193
  25. package/src/models/AddressResource.ts +2 -3
  26. package/src/models/IncidentFieldSchemasShowRequest.ts +83 -0
  27. package/src/models/RegisterListResource.ts +10 -11
  28. package/src/models/RegisterResource.ts +8 -9
  29. package/src/models/RosterListResource.ts +3 -4
  30. package/src/models/RosterLiteResource.ts +3 -4
  31. package/src/models/RosterWithRegistersResource.ts +4 -3
  32. package/src/models/SecurityCompanyResource.ts +3 -2
  33. package/src/models/index.ts +1 -5
  34. package/dist/models/NotificationPreferenceResource.d.ts +0 -63
  35. package/dist/models/NotificationPreferenceResource.js +0 -67
  36. package/dist/models/NotificationPreferenceResourceArrayResponse.d.ts +0 -33
  37. package/dist/models/NotificationPreferenceResourceArrayResponse.js +0 -50
  38. package/dist/models/NotificationPreferencesStoreRequest.d.ts +0 -55
  39. package/dist/models/NotificationPreferencesStoreRequest.js +0 -68
  40. package/dist/models/NotificationTypeResource.d.ts +0 -38
  41. package/dist/models/NotificationTypeResource.js +0 -55
  42. package/dist/models/NotificationTypeResourceArrayResponse.d.ts +0 -33
  43. package/dist/models/NotificationTypeResourceArrayResponse.js +0 -50
  44. package/src/models/NotificationPreferenceResource.ts +0 -116
  45. package/src/models/NotificationPreferenceResourceArrayResponse.ts +0 -73
  46. package/src/models/NotificationPreferencesStoreRequest.ts +0 -97
  47. package/src/models/NotificationTypeResource.ts +0 -75
  48. package/src/models/NotificationTypeResourceArrayResponse.ts +0 -73
@@ -1,55 +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 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;
@@ -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,116 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { VenueLiteResource } from './VenueLiteResource';
17
- import {
18
- VenueLiteResourceFromJSON,
19
- VenueLiteResourceFromJSONTyped,
20
- VenueLiteResourceToJSON,
21
- VenueLiteResourceToJSONTyped,
22
- } from './VenueLiteResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface NotificationPreferenceResource
28
- */
29
- export interface NotificationPreferenceResource {
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof NotificationPreferenceResource
34
- */
35
- id?: number | null;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof NotificationPreferenceResource
40
- */
41
- notificationType: string;
42
- /**
43
- *
44
- * @type {VenueLiteResource}
45
- * @memberof NotificationPreferenceResource
46
- */
47
- venue: VenueLiteResource | null;
48
- /**
49
- *
50
- * @type {boolean}
51
- * @memberof NotificationPreferenceResource
52
- */
53
- enabled: boolean;
54
- /**
55
- *
56
- * @type {Date}
57
- * @memberof NotificationPreferenceResource
58
- */
59
- createdAt?: Date | null;
60
- /**
61
- *
62
- * @type {Date}
63
- * @memberof NotificationPreferenceResource
64
- */
65
- updatedAt?: Date | null;
66
- }
67
-
68
- /**
69
- * Check if a given object implements the NotificationPreferenceResource interface.
70
- */
71
- export function instanceOfNotificationPreferenceResource(value: object): value is NotificationPreferenceResource {
72
- if (!('notificationType' in value) || value['notificationType'] === undefined) return false;
73
- if (!('venue' in value) || value['venue'] === undefined) return false;
74
- if (!('enabled' in value) || value['enabled'] === undefined) return false;
75
- return true;
76
- }
77
-
78
- export function NotificationPreferenceResourceFromJSON(json: any): NotificationPreferenceResource {
79
- return NotificationPreferenceResourceFromJSONTyped(json, false);
80
- }
81
-
82
- export function NotificationPreferenceResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferenceResource {
83
- if (json == null) {
84
- return json;
85
- }
86
- return {
87
-
88
- 'id': json['id'] == null ? undefined : json['id'],
89
- 'notificationType': json['notificationType'],
90
- 'venue': VenueLiteResourceFromJSON(json['venue']),
91
- 'enabled': json['enabled'],
92
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
93
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
94
- };
95
- }
96
-
97
- export function NotificationPreferenceResourceToJSON(json: any): NotificationPreferenceResource {
98
- return NotificationPreferenceResourceToJSONTyped(json, false);
99
- }
100
-
101
- export function NotificationPreferenceResourceToJSONTyped(value?: NotificationPreferenceResource | null, ignoreDiscriminator: boolean = false): any {
102
- if (value == null) {
103
- return value;
104
- }
105
-
106
- return {
107
-
108
- 'id': value['id'],
109
- 'notificationType': value['notificationType'],
110
- 'venue': VenueLiteResourceToJSON(value['venue']),
111
- 'enabled': value['enabled'],
112
- 'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
113
- 'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
114
- };
115
- }
116
-
@@ -1,73 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { NotificationPreferenceResource } from './NotificationPreferenceResource';
17
- import {
18
- NotificationPreferenceResourceFromJSON,
19
- NotificationPreferenceResourceFromJSONTyped,
20
- NotificationPreferenceResourceToJSON,
21
- NotificationPreferenceResourceToJSONTyped,
22
- } from './NotificationPreferenceResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface NotificationPreferenceResourceArrayResponse
28
- */
29
- export interface NotificationPreferenceResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<NotificationPreferenceResource>}
33
- * @memberof NotificationPreferenceResourceArrayResponse
34
- */
35
- data?: Array<NotificationPreferenceResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the NotificationPreferenceResourceArrayResponse interface.
40
- */
41
- export function instanceOfNotificationPreferenceResourceArrayResponse(value: object): value is NotificationPreferenceResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function NotificationPreferenceResourceArrayResponseFromJSON(json: any): NotificationPreferenceResourceArrayResponse {
46
- return NotificationPreferenceResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function NotificationPreferenceResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferenceResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(NotificationPreferenceResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function NotificationPreferenceResourceArrayResponseToJSON(json: any): NotificationPreferenceResourceArrayResponse {
60
- return NotificationPreferenceResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function NotificationPreferenceResourceArrayResponseToJSONTyped(value?: NotificationPreferenceResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(NotificationPreferenceResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,97 +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 NotificationPreferencesStoreRequest
20
- */
21
- export interface NotificationPreferencesStoreRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof NotificationPreferencesStoreRequest
26
- */
27
- notificationType: NotificationPreferencesStoreRequestNotificationTypeEnum;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof NotificationPreferencesStoreRequest
32
- */
33
- venueId?: number;
34
- /**
35
- *
36
- * @type {boolean}
37
- * @memberof NotificationPreferencesStoreRequest
38
- */
39
- enabled: boolean;
40
- }
41
-
42
-
43
- /**
44
- * @export
45
- */
46
- export const NotificationPreferencesStoreRequestNotificationTypeEnum = {
47
- IncidentAdded: 'incident_added',
48
- NonSignOff: 'non_sign_off',
49
- NonSignOn: 'non_sign_on',
50
- SignOnRejected: 'sign_on_rejected',
51
- LicenceUpdated: 'licence_updated'
52
- } as const;
53
- export type NotificationPreferencesStoreRequestNotificationTypeEnum = typeof NotificationPreferencesStoreRequestNotificationTypeEnum[keyof typeof NotificationPreferencesStoreRequestNotificationTypeEnum];
54
-
55
-
56
- /**
57
- * Check if a given object implements the NotificationPreferencesStoreRequest interface.
58
- */
59
- export function instanceOfNotificationPreferencesStoreRequest(value: object): value is NotificationPreferencesStoreRequest {
60
- if (!('notificationType' in value) || value['notificationType'] === undefined) return false;
61
- if (!('enabled' in value) || value['enabled'] === undefined) return false;
62
- return true;
63
- }
64
-
65
- export function NotificationPreferencesStoreRequestFromJSON(json: any): NotificationPreferencesStoreRequest {
66
- return NotificationPreferencesStoreRequestFromJSONTyped(json, false);
67
- }
68
-
69
- export function NotificationPreferencesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferencesStoreRequest {
70
- if (json == null) {
71
- return json;
72
- }
73
- return {
74
-
75
- 'notificationType': json['notification_type'],
76
- 'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
77
- 'enabled': json['enabled'],
78
- };
79
- }
80
-
81
- export function NotificationPreferencesStoreRequestToJSON(json: any): NotificationPreferencesStoreRequest {
82
- return NotificationPreferencesStoreRequestToJSONTyped(json, false);
83
- }
84
-
85
- export function NotificationPreferencesStoreRequestToJSONTyped(value?: NotificationPreferencesStoreRequest | null, ignoreDiscriminator: boolean = false): any {
86
- if (value == null) {
87
- return value;
88
- }
89
-
90
- return {
91
-
92
- 'notification_type': value['notificationType'],
93
- 'venue_id': value['venueId'],
94
- 'enabled': value['enabled'],
95
- };
96
- }
97
-
@@ -1,75 +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 NotificationTypeResource
20
- */
21
- export interface NotificationTypeResource {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof NotificationTypeResource
26
- */
27
- value: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof NotificationTypeResource
32
- */
33
- label: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the NotificationTypeResource interface.
38
- */
39
- export function instanceOfNotificationTypeResource(value: object): value is NotificationTypeResource {
40
- if (!('value' in value) || value['value'] === undefined) return false;
41
- if (!('label' in value) || value['label'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function NotificationTypeResourceFromJSON(json: any): NotificationTypeResource {
46
- return NotificationTypeResourceFromJSONTyped(json, false);
47
- }
48
-
49
- export function NotificationTypeResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTypeResource {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'value': json['value'],
56
- 'label': json['label'],
57
- };
58
- }
59
-
60
- export function NotificationTypeResourceToJSON(json: any): NotificationTypeResource {
61
- return NotificationTypeResourceToJSONTyped(json, false);
62
- }
63
-
64
- export function NotificationTypeResourceToJSONTyped(value?: NotificationTypeResource | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'value': value['value'],
72
- 'label': value['label'],
73
- };
74
- }
75
-