@digital8/security-registers-backend-ts-sdk 0.0.218 → 0.0.220

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 (102) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +131 -3
  4. package/dist/apis/GeneralApi.js +758 -93
  5. package/dist/models/AssetResource.d.ts +1 -1
  6. package/dist/models/AssetResource.js +3 -1
  7. package/dist/models/IncidentFieldSchemaResource.d.ts +56 -0
  8. package/dist/models/IncidentFieldSchemaResource.js +62 -0
  9. package/dist/models/IncidentFieldSchemaResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/IncidentFieldSchemaResourceArrayResponse.js +50 -0
  11. package/dist/models/IncidentFieldSchemasShowRequest.d.ts +46 -0
  12. package/dist/models/IncidentFieldSchemasShowRequest.js +65 -0
  13. package/dist/models/LicencesStoreRequest.d.ts +100 -4
  14. package/dist/models/LicencesStoreRequest.js +41 -9
  15. package/dist/models/LicencesUpdateRequest.d.ts +120 -4
  16. package/dist/models/LicencesUpdateRequest.js +56 -8
  17. package/dist/models/NotificationPreferenceResource.d.ts +63 -0
  18. package/dist/models/NotificationPreferenceResource.js +67 -0
  19. package/dist/models/NotificationPreferenceResourceArrayResponse.d.ts +33 -0
  20. package/dist/models/NotificationPreferenceResourceArrayResponse.js +50 -0
  21. package/dist/models/NotificationPreferencesStoreRequest.d.ts +55 -0
  22. package/dist/models/NotificationPreferencesStoreRequest.js +68 -0
  23. package/dist/models/NotificationTypeResource.d.ts +38 -0
  24. package/dist/models/NotificationTypeResource.js +55 -0
  25. package/dist/models/NotificationTypeResourceArrayResponse.d.ts +33 -0
  26. package/dist/models/NotificationTypeResourceArrayResponse.js +50 -0
  27. package/dist/models/PaginatedRegisterGroupedByRosterResourceResponse.d.ts +40 -0
  28. package/dist/models/PaginatedRegisterGroupedByRosterResourceResponse.js +57 -0
  29. package/dist/models/PdfExportResource.d.ts +50 -0
  30. package/dist/models/PdfExportResource.js +61 -0
  31. package/dist/models/PdfExportResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/PdfExportResourceArrayResponse.js +50 -0
  33. package/dist/models/RegisterGroupedByRosterResource.d.ts +70 -0
  34. package/dist/models/RegisterGroupedByRosterResource.js +75 -0
  35. package/dist/models/RegisterGroupedByRosterResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/RegisterGroupedByRosterResourceArrayResponse.js +50 -0
  37. package/dist/models/RegisterListResource.d.ts +4 -4
  38. package/dist/models/RegisterListResource.js +4 -7
  39. package/dist/models/RegistersCreateRequest.d.ts +98 -0
  40. package/dist/models/RegistersCreateRequest.js +83 -0
  41. package/dist/models/RegistersUpdateRequest.d.ts +113 -0
  42. package/dist/models/RegistersUpdateRequest.js +82 -0
  43. package/dist/models/RosterLiteResource.d.ts +1 -1
  44. package/dist/models/RosterLiteResource.js +4 -3
  45. package/dist/models/RosterResource.d.ts +1 -1
  46. package/dist/models/RosterResource.js +4 -3
  47. package/dist/models/RostersListAllRequest.d.ts +6 -0
  48. package/dist/models/RostersListAllRequest.js +2 -0
  49. package/dist/models/RostersListRequest.d.ts +6 -0
  50. package/dist/models/RostersListRequest.js +2 -0
  51. package/dist/models/RostersListWithRegistersRequest.d.ts +6 -0
  52. package/dist/models/RostersListWithRegistersRequest.js +2 -0
  53. package/dist/models/RostersUpdateRequest.d.ts +77 -0
  54. package/dist/models/RostersUpdateRequest.js +70 -0
  55. package/dist/models/UpdateUserRequest.d.ts +6 -0
  56. package/dist/models/UpdateUserRequest.js +2 -0
  57. package/dist/models/UserLiteResource.d.ts +7 -0
  58. package/dist/models/UserLiteResource.js +5 -0
  59. package/dist/models/UserResource.d.ts +6 -0
  60. package/dist/models/UserResource.js +4 -0
  61. package/dist/models/UsersCreateWithRoleRequest.d.ts +6 -0
  62. package/dist/models/UsersCreateWithRoleRequest.js +2 -0
  63. package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +8 -8
  64. package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +9 -9
  65. package/dist/models/VenueResource.d.ts +6 -0
  66. package/dist/models/VenueResource.js +4 -0
  67. package/dist/models/index.d.ts +16 -0
  68. package/dist/models/index.js +16 -0
  69. package/package.json +1 -1
  70. package/src/apis/GeneralApi.ts +593 -6
  71. package/src/models/AssetResource.ts +3 -2
  72. package/src/models/IncidentFieldSchemaResource.ts +99 -0
  73. package/src/models/IncidentFieldSchemaResourceArrayResponse.ts +73 -0
  74. package/src/models/IncidentFieldSchemasShowRequest.ts +83 -0
  75. package/src/models/LicencesStoreRequest.ts +141 -13
  76. package/src/models/LicencesUpdateRequest.ts +165 -12
  77. package/src/models/NotificationPreferenceResource.ts +116 -0
  78. package/src/models/NotificationPreferenceResourceArrayResponse.ts +73 -0
  79. package/src/models/NotificationPreferencesStoreRequest.ts +97 -0
  80. package/src/models/NotificationTypeResource.ts +75 -0
  81. package/src/models/NotificationTypeResourceArrayResponse.ts +73 -0
  82. package/src/models/PaginatedRegisterGroupedByRosterResourceResponse.ts +90 -0
  83. package/src/models/PdfExportResource.ts +92 -0
  84. package/src/models/PdfExportResourceArrayResponse.ts +73 -0
  85. package/src/models/RegisterGroupedByRosterResource.ts +134 -0
  86. package/src/models/RegisterGroupedByRosterResourceArrayResponse.ts +73 -0
  87. package/src/models/RegisterListResource.ts +7 -9
  88. package/src/models/RegistersCreateRequest.ts +159 -0
  89. package/src/models/RegistersUpdateRequest.ts +173 -0
  90. package/src/models/RosterLiteResource.ts +4 -3
  91. package/src/models/RosterResource.ts +4 -3
  92. package/src/models/RostersListAllRequest.ts +8 -0
  93. package/src/models/RostersListRequest.ts +8 -0
  94. package/src/models/RostersListWithRegistersRequest.ts +8 -0
  95. package/src/models/RostersUpdateRequest.ts +125 -0
  96. package/src/models/UpdateUserRequest.ts +8 -0
  97. package/src/models/UserLiteResource.ts +17 -0
  98. package/src/models/UserResource.ts +9 -0
  99. package/src/models/UsersCreateWithRoleRequest.ts +8 -0
  100. package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +17 -17
  101. package/src/models/VenueResource.ts +9 -0
  102. package/src/models/index.ts +16 -0
@@ -15,6 +15,12 @@
15
15
  * @interface LicencesUpdateRequest
16
16
  */
17
17
  export interface LicencesUpdateRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LicencesUpdateRequest
22
+ */
23
+ state?: LicencesUpdateRequestStateEnum;
18
24
  /**
19
25
  *
20
26
  * @type {string}
@@ -39,31 +45,141 @@ export interface LicencesUpdateRequest {
39
45
  * @memberof LicencesUpdateRequest
40
46
  */
41
47
  expiryDate?: Date;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof LicencesUpdateRequest
52
+ */
53
+ frontAsset?: Array<string>;
42
54
  /**
43
55
  *
44
56
  * @type {number}
45
57
  * @memberof LicencesUpdateRequest
46
58
  */
47
- frontAssetId?: number;
59
+ frontAssetFileId?: number;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof LicencesUpdateRequest
64
+ */
65
+ frontAssetFileName?: string;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof LicencesUpdateRequest
70
+ */
71
+ frontAssetMimeType?: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof LicencesUpdateRequest
76
+ */
77
+ frontAssetAltText?: string;
78
+ /**
79
+ *
80
+ * @type {Array<string>}
81
+ * @memberof LicencesUpdateRequest
82
+ */
83
+ backAsset?: Array<string>;
48
84
  /**
49
85
  *
50
86
  * @type {number}
51
87
  * @memberof LicencesUpdateRequest
52
88
  */
53
- backAssetId?: number;
89
+ backAssetFileId?: number;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof LicencesUpdateRequest
94
+ */
95
+ backAssetFileName?: string;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof LicencesUpdateRequest
100
+ */
101
+ backAssetMimeType?: string;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof LicencesUpdateRequest
106
+ */
107
+ backAssetAltText?: string;
108
+ /**
109
+ *
110
+ * @type {Array<string>}
111
+ * @memberof LicencesUpdateRequest
112
+ */
113
+ rsaAsset?: Array<string>;
54
114
  /**
55
115
  *
56
116
  * @type {number}
57
117
  * @memberof LicencesUpdateRequest
58
118
  */
59
- rsaAssetId?: number;
119
+ rsaAssetFileId?: number;
120
+ /**
121
+ *
122
+ * @type {string}
123
+ * @memberof LicencesUpdateRequest
124
+ */
125
+ rsaAssetFileName?: string;
126
+ /**
127
+ *
128
+ * @type {string}
129
+ * @memberof LicencesUpdateRequest
130
+ */
131
+ rsaAssetMimeType?: string;
132
+ /**
133
+ *
134
+ * @type {string}
135
+ * @memberof LicencesUpdateRequest
136
+ */
137
+ rsaAssetAltText?: string;
138
+ /**
139
+ *
140
+ * @type {Array<string>}
141
+ * @memberof LicencesUpdateRequest
142
+ */
143
+ firstAidAsset?: Array<string>;
60
144
  /**
61
145
  *
62
146
  * @type {number}
63
147
  * @memberof LicencesUpdateRequest
64
148
  */
65
- firstAidAssetId?: number;
149
+ firstAidAssetFileId?: number;
150
+ /**
151
+ *
152
+ * @type {string}
153
+ * @memberof LicencesUpdateRequest
154
+ */
155
+ firstAidAssetFileName?: string;
156
+ /**
157
+ *
158
+ * @type {string}
159
+ * @memberof LicencesUpdateRequest
160
+ */
161
+ firstAidAssetMimeType?: string;
162
+ /**
163
+ *
164
+ * @type {string}
165
+ * @memberof LicencesUpdateRequest
166
+ */
167
+ firstAidAssetAltText?: string;
66
168
  }
169
+ /**
170
+ * @export
171
+ */
172
+ export declare const LicencesUpdateRequestStateEnum: {
173
+ readonly Qld: "QLD";
174
+ readonly Nsw: "NSW";
175
+ readonly Act: "ACT";
176
+ readonly Vic: "VIC";
177
+ readonly Tas: "TAS";
178
+ readonly Sa: "SA";
179
+ readonly Wa: "WA";
180
+ readonly Nt: "NT";
181
+ };
182
+ export type LicencesUpdateRequestStateEnum = typeof LicencesUpdateRequestStateEnum[keyof typeof LicencesUpdateRequestStateEnum];
67
183
  /**
68
184
  * Check if a given object implements the LicencesUpdateRequest interface.
69
185
  */
@@ -13,11 +13,25 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.LicencesUpdateRequestStateEnum = void 0;
16
17
  exports.instanceOfLicencesUpdateRequest = instanceOfLicencesUpdateRequest;
17
18
  exports.LicencesUpdateRequestFromJSON = LicencesUpdateRequestFromJSON;
18
19
  exports.LicencesUpdateRequestFromJSONTyped = LicencesUpdateRequestFromJSONTyped;
19
20
  exports.LicencesUpdateRequestToJSON = LicencesUpdateRequestToJSON;
20
21
  exports.LicencesUpdateRequestToJSONTyped = LicencesUpdateRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.LicencesUpdateRequestStateEnum = {
26
+ Qld: 'QLD',
27
+ Nsw: 'NSW',
28
+ Act: 'ACT',
29
+ Vic: 'VIC',
30
+ Tas: 'TAS',
31
+ Sa: 'SA',
32
+ Wa: 'WA',
33
+ Nt: 'NT'
34
+ };
21
35
  /**
22
36
  * Check if a given object implements the LicencesUpdateRequest interface.
23
37
  */
@@ -32,14 +46,31 @@ function LicencesUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
32
46
  return json;
33
47
  }
34
48
  return {
49
+ 'state': json['state'] == null ? undefined : json['state'],
35
50
  'licenceNumber': json['licence_number'] == null ? undefined : json['licence_number'],
36
51
  'firstName': json['first_name'] == null ? undefined : json['first_name'],
37
52
  'lastName': json['last_name'] == null ? undefined : json['last_name'],
38
53
  'expiryDate': json['expiry_date'] == null ? undefined : (new Date(json['expiry_date'])),
39
- 'frontAssetId': json['front_asset_id'] == null ? undefined : json['front_asset_id'],
40
- 'backAssetId': json['back_asset_id'] == null ? undefined : json['back_asset_id'],
41
- 'rsaAssetId': json['rsa_asset_id'] == null ? undefined : json['rsa_asset_id'],
42
- 'firstAidAssetId': json['first_aid_asset_id'] == null ? undefined : json['first_aid_asset_id'],
54
+ 'frontAsset': json['front_asset'] == null ? undefined : json['front_asset'],
55
+ 'frontAssetFileId': json['front_asset.file_id'] == null ? undefined : json['front_asset.file_id'],
56
+ 'frontAssetFileName': json['front_asset.file_name'] == null ? undefined : json['front_asset.file_name'],
57
+ 'frontAssetMimeType': json['front_asset.mime_type'] == null ? undefined : json['front_asset.mime_type'],
58
+ 'frontAssetAltText': json['front_asset.alt_text'] == null ? undefined : json['front_asset.alt_text'],
59
+ 'backAsset': json['back_asset'] == null ? undefined : json['back_asset'],
60
+ 'backAssetFileId': json['back_asset.file_id'] == null ? undefined : json['back_asset.file_id'],
61
+ 'backAssetFileName': json['back_asset.file_name'] == null ? undefined : json['back_asset.file_name'],
62
+ 'backAssetMimeType': json['back_asset.mime_type'] == null ? undefined : json['back_asset.mime_type'],
63
+ 'backAssetAltText': json['back_asset.alt_text'] == null ? undefined : json['back_asset.alt_text'],
64
+ 'rsaAsset': json['rsa_asset'] == null ? undefined : json['rsa_asset'],
65
+ 'rsaAssetFileId': json['rsa_asset.file_id'] == null ? undefined : json['rsa_asset.file_id'],
66
+ 'rsaAssetFileName': json['rsa_asset.file_name'] == null ? undefined : json['rsa_asset.file_name'],
67
+ 'rsaAssetMimeType': json['rsa_asset.mime_type'] == null ? undefined : json['rsa_asset.mime_type'],
68
+ 'rsaAssetAltText': json['rsa_asset.alt_text'] == null ? undefined : json['rsa_asset.alt_text'],
69
+ 'firstAidAsset': json['first_aid_asset'] == null ? undefined : json['first_aid_asset'],
70
+ 'firstAidAssetFileId': json['first_aid_asset.file_id'] == null ? undefined : json['first_aid_asset.file_id'],
71
+ 'firstAidAssetFileName': json['first_aid_asset.file_name'] == null ? undefined : json['first_aid_asset.file_name'],
72
+ 'firstAidAssetMimeType': json['first_aid_asset.mime_type'] == null ? undefined : json['first_aid_asset.mime_type'],
73
+ 'firstAidAssetAltText': json['first_aid_asset.alt_text'] == null ? undefined : json['first_aid_asset.alt_text'],
43
74
  };
44
75
  }
45
76
  function LicencesUpdateRequestToJSON(json) {
@@ -51,13 +82,30 @@ function LicencesUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
51
82
  return value;
52
83
  }
53
84
  return {
85
+ 'state': value['state'],
54
86
  'licence_number': value['licenceNumber'],
55
87
  'first_name': value['firstName'],
56
88
  'last_name': value['lastName'],
57
89
  'expiry_date': value['expiryDate'] == null ? undefined : ((value['expiryDate']).toISOString()),
58
- 'front_asset_id': value['frontAssetId'],
59
- 'back_asset_id': value['backAssetId'],
60
- 'rsa_asset_id': value['rsaAssetId'],
61
- 'first_aid_asset_id': value['firstAidAssetId'],
90
+ 'front_asset': value['frontAsset'],
91
+ 'front_asset.file_id': value['frontAssetFileId'],
92
+ 'front_asset.file_name': value['frontAssetFileName'],
93
+ 'front_asset.mime_type': value['frontAssetMimeType'],
94
+ 'front_asset.alt_text': value['frontAssetAltText'],
95
+ 'back_asset': value['backAsset'],
96
+ 'back_asset.file_id': value['backAssetFileId'],
97
+ 'back_asset.file_name': value['backAssetFileName'],
98
+ 'back_asset.mime_type': value['backAssetMimeType'],
99
+ 'back_asset.alt_text': value['backAssetAltText'],
100
+ 'rsa_asset': value['rsaAsset'],
101
+ 'rsa_asset.file_id': value['rsaAssetFileId'],
102
+ 'rsa_asset.file_name': value['rsaAssetFileName'],
103
+ 'rsa_asset.mime_type': value['rsaAssetMimeType'],
104
+ 'rsa_asset.alt_text': value['rsaAssetAltText'],
105
+ 'first_aid_asset': value['firstAidAsset'],
106
+ 'first_aid_asset.file_id': value['firstAidAssetFileId'],
107
+ 'first_aid_asset.file_name': value['firstAidAssetFileName'],
108
+ 'first_aid_asset.mime_type': value['firstAidAssetMimeType'],
109
+ 'first_aid_asset.alt_text': value['firstAidAssetAltText'],
62
110
  };
63
111
  }
@@ -0,0 +1,63 @@
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 { VenueLiteResource } from './VenueLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface NotificationPreferenceResource
17
+ */
18
+ export interface NotificationPreferenceResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof NotificationPreferenceResource
23
+ */
24
+ id?: number | null;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof NotificationPreferenceResource
29
+ */
30
+ notificationType: string;
31
+ /**
32
+ *
33
+ * @type {VenueLiteResource}
34
+ * @memberof NotificationPreferenceResource
35
+ */
36
+ venue: VenueLiteResource | null;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof NotificationPreferenceResource
41
+ */
42
+ enabled: boolean;
43
+ /**
44
+ *
45
+ * @type {Date}
46
+ * @memberof NotificationPreferenceResource
47
+ */
48
+ createdAt?: Date | null;
49
+ /**
50
+ *
51
+ * @type {Date}
52
+ * @memberof NotificationPreferenceResource
53
+ */
54
+ updatedAt?: Date | null;
55
+ }
56
+ /**
57
+ * Check if a given object implements the NotificationPreferenceResource interface.
58
+ */
59
+ export declare function instanceOfNotificationPreferenceResource(value: object): value is NotificationPreferenceResource;
60
+ export declare function NotificationPreferenceResourceFromJSON(json: any): NotificationPreferenceResource;
61
+ export declare function NotificationPreferenceResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferenceResource;
62
+ export declare function NotificationPreferenceResourceToJSON(json: any): NotificationPreferenceResource;
63
+ export declare function NotificationPreferenceResourceToJSONTyped(value?: NotificationPreferenceResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfNotificationPreferenceResource = instanceOfNotificationPreferenceResource;
17
+ exports.NotificationPreferenceResourceFromJSON = NotificationPreferenceResourceFromJSON;
18
+ exports.NotificationPreferenceResourceFromJSONTyped = NotificationPreferenceResourceFromJSONTyped;
19
+ exports.NotificationPreferenceResourceToJSON = NotificationPreferenceResourceToJSON;
20
+ exports.NotificationPreferenceResourceToJSONTyped = NotificationPreferenceResourceToJSONTyped;
21
+ var VenueLiteResource_1 = require("./VenueLiteResource");
22
+ /**
23
+ * Check if a given object implements the NotificationPreferenceResource interface.
24
+ */
25
+ function instanceOfNotificationPreferenceResource(value) {
26
+ if (!('notificationType' in value) || value['notificationType'] === undefined)
27
+ return false;
28
+ if (!('venue' in value) || value['venue'] === undefined)
29
+ return false;
30
+ if (!('enabled' in value) || value['enabled'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function NotificationPreferenceResourceFromJSON(json) {
35
+ return NotificationPreferenceResourceFromJSONTyped(json, false);
36
+ }
37
+ function NotificationPreferenceResourceFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'] == null ? undefined : json['id'],
43
+ 'notificationType': json['notificationType'],
44
+ 'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
45
+ 'enabled': json['enabled'],
46
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
47
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
48
+ };
49
+ }
50
+ function NotificationPreferenceResourceToJSON(json) {
51
+ return NotificationPreferenceResourceToJSONTyped(json, false);
52
+ }
53
+ function NotificationPreferenceResourceToJSONTyped(value, ignoreDiscriminator) {
54
+ var _a, _b;
55
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'id': value['id'],
61
+ 'notificationType': value['notificationType'],
62
+ 'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
63
+ 'enabled': value['enabled'],
64
+ 'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
65
+ 'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
66
+ };
67
+ }
@@ -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 { NotificationPreferenceResource } from './NotificationPreferenceResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface NotificationPreferenceResourceArrayResponse
17
+ */
18
+ export interface NotificationPreferenceResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<NotificationPreferenceResource>}
22
+ * @memberof NotificationPreferenceResourceArrayResponse
23
+ */
24
+ data?: Array<NotificationPreferenceResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the NotificationPreferenceResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfNotificationPreferenceResourceArrayResponse(value: object): value is NotificationPreferenceResourceArrayResponse;
30
+ export declare function NotificationPreferenceResourceArrayResponseFromJSON(json: any): NotificationPreferenceResourceArrayResponse;
31
+ export declare function NotificationPreferenceResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferenceResourceArrayResponse;
32
+ export declare function NotificationPreferenceResourceArrayResponseToJSON(json: any): NotificationPreferenceResourceArrayResponse;
33
+ export declare function NotificationPreferenceResourceArrayResponseToJSONTyped(value?: NotificationPreferenceResourceArrayResponse | 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.instanceOfNotificationPreferenceResourceArrayResponse = instanceOfNotificationPreferenceResourceArrayResponse;
17
+ exports.NotificationPreferenceResourceArrayResponseFromJSON = NotificationPreferenceResourceArrayResponseFromJSON;
18
+ exports.NotificationPreferenceResourceArrayResponseFromJSONTyped = NotificationPreferenceResourceArrayResponseFromJSONTyped;
19
+ exports.NotificationPreferenceResourceArrayResponseToJSON = NotificationPreferenceResourceArrayResponseToJSON;
20
+ exports.NotificationPreferenceResourceArrayResponseToJSONTyped = NotificationPreferenceResourceArrayResponseToJSONTyped;
21
+ var NotificationPreferenceResource_1 = require("./NotificationPreferenceResource");
22
+ /**
23
+ * Check if a given object implements the NotificationPreferenceResourceArrayResponse interface.
24
+ */
25
+ function instanceOfNotificationPreferenceResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function NotificationPreferenceResourceArrayResponseFromJSON(json) {
29
+ return NotificationPreferenceResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function NotificationPreferenceResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(NotificationPreferenceResource_1.NotificationPreferenceResourceFromJSON)),
37
+ };
38
+ }
39
+ function NotificationPreferenceResourceArrayResponseToJSON(json) {
40
+ return NotificationPreferenceResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function NotificationPreferenceResourceArrayResponseToJSONTyped(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(NotificationPreferenceResource_1.NotificationPreferenceResourceToJSON)),
49
+ };
50
+ }
@@ -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;