@digital8/security-registers-backend-ts-sdk 0.0.313 → 0.0.314

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 (159) hide show
  1. package/.openapi-generator/FILES +0 -24
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +3 -129
  4. package/dist/apis/GeneralApi.js +37 -695
  5. package/dist/models/AssetFileForUploadResource.d.ts +2 -4
  6. package/dist/models/AssetLiteResource.d.ts +12 -0
  7. package/dist/models/AssetLiteResource.js +6 -0
  8. package/dist/models/AssetResource.d.ts +13 -1
  9. package/dist/models/AssetResource.js +9 -1
  10. package/dist/models/CurrentRegisterResource.d.ts +5 -22
  11. package/dist/models/CurrentRegisterResource.js +7 -14
  12. package/dist/models/IncidentFieldSchemaResource.d.ts +4 -20
  13. package/dist/models/IncidentFieldSchemaResource.js +0 -14
  14. package/dist/models/IncidentImageResource.d.ts +1 -1
  15. package/dist/models/IncidentImageResource.js +1 -3
  16. package/dist/models/IncidentVideoResource.d.ts +1 -10
  17. package/dist/models/IncidentVideoResource.js +0 -9
  18. package/dist/models/IncidentVideoUploadTokenResource.d.ts +2 -4
  19. package/dist/models/LicenceListResource.d.ts +2 -16
  20. package/dist/models/LicenceListResource.js +0 -14
  21. package/dist/models/LicenceLiteResource.d.ts +2 -16
  22. package/dist/models/LicenceLiteResource.js +0 -14
  23. package/dist/models/LicenceResource.d.ts +2 -16
  24. package/dist/models/LicenceResource.js +0 -14
  25. package/dist/models/LicencesStoreRequest.d.ts +106 -12
  26. package/dist/models/LicencesStoreRequest.js +42 -12
  27. package/dist/models/LicencesUpdateRequest.d.ts +106 -11
  28. package/dist/models/LicencesUpdateRequest.js +42 -11
  29. package/dist/models/LicencesVerifyRequest.d.ts +1 -1
  30. package/dist/models/NotificationPreferenceResource.d.ts +1 -12
  31. package/dist/models/NotificationPreferenceResource.js +0 -11
  32. package/dist/models/PdfExportResource.d.ts +1 -11
  33. package/dist/models/PdfExportResource.js +0 -10
  34. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  35. package/dist/models/RegisterGroupedByRosterResource.js +3 -4
  36. package/dist/models/RegisterListResource.d.ts +9 -17
  37. package/dist/models/RegisterListResource.js +13 -18
  38. package/dist/models/RegisterResource.d.ts +16 -13
  39. package/dist/models/RegisterResource.js +19 -18
  40. package/dist/models/RegistersSignOffRequest.d.ts +3 -3
  41. package/dist/models/RegistersSignOffRequest.js +2 -2
  42. package/dist/models/RegistersSignOnRequest.d.ts +3 -3
  43. package/dist/models/RegistersSignOnRequest.js +2 -2
  44. package/dist/models/RosterListResource.d.ts +3 -18
  45. package/dist/models/RosterListResource.js +0 -13
  46. package/dist/models/RosterResource.d.ts +1 -10
  47. package/dist/models/RosterResource.js +0 -9
  48. package/dist/models/RosterWithRegistersResource.d.ts +2 -11
  49. package/dist/models/RosterWithRegistersResource.js +4 -12
  50. package/dist/models/UserResource.d.ts +2 -9
  51. package/dist/models/UserResource.js +2 -7
  52. package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +11 -15
  53. package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +10 -14
  54. package/dist/models/VenueLiteResource.d.ts +0 -6
  55. package/dist/models/VenueLiteResource.js +0 -4
  56. package/dist/models/index.d.ts +0 -24
  57. package/dist/models/index.js +0 -24
  58. package/package.json +1 -1
  59. package/src/apis/GeneralApi.ts +3 -570
  60. package/src/models/AssetFileForUploadResource.ts +2 -2
  61. package/src/models/AssetLiteResource.ts +17 -0
  62. package/src/models/AssetResource.ts +20 -2
  63. package/src/models/CurrentRegisterResource.ts +18 -35
  64. package/src/models/IncidentFieldSchemaResource.ts +4 -21
  65. package/src/models/IncidentImageResource.ts +2 -3
  66. package/src/models/IncidentVideoResource.ts +1 -13
  67. package/src/models/IncidentVideoUploadTokenResource.ts +2 -2
  68. package/src/models/LicenceListResource.ts +2 -19
  69. package/src/models/LicenceLiteResource.ts +2 -19
  70. package/src/models/LicenceResource.ts +2 -19
  71. package/src/models/LicencesStoreRequest.ts +148 -35
  72. package/src/models/LicencesUpdateRequest.ts +148 -28
  73. package/src/models/LicencesVerifyRequest.ts +1 -1
  74. package/src/models/NotificationPreferenceResource.ts +1 -15
  75. package/src/models/PdfExportResource.ts +1 -14
  76. package/src/models/RegisterGroupedByRosterResource.ts +3 -4
  77. package/src/models/RegisterListResource.ts +24 -28
  78. package/src/models/RegisterResource.ts +28 -21
  79. package/src/models/RegistersSignOffRequest.ts +5 -5
  80. package/src/models/RegistersSignOnRequest.ts +5 -5
  81. package/src/models/RosterListResource.ts +3 -24
  82. package/src/models/RosterResource.ts +1 -13
  83. package/src/models/RosterWithRegistersResource.ts +5 -16
  84. package/src/models/UserResource.ts +4 -20
  85. package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +21 -50
  86. package/src/models/VenueLiteResource.ts +0 -9
  87. package/src/models/index.ts +0 -24
  88. package/dist/models/AuthChangePasswordRequest.d.ts +0 -38
  89. package/dist/models/AuthChangePasswordRequest.js +0 -55
  90. package/dist/models/AuthProfileUpdateRequest.d.ts +0 -62
  91. package/dist/models/AuthProfileUpdateRequest.js +0 -59
  92. package/dist/models/AuthRegisterGuardRequest.d.ts +0 -70
  93. package/dist/models/AuthRegisterGuardRequest.js +0 -77
  94. package/dist/models/AuthRegisterGuardRequestLicence.d.ts +0 -98
  95. package/dist/models/AuthRegisterGuardRequestLicence.js +0 -95
  96. package/dist/models/AuthRegisterGuardRequestProfileSignature.d.ts +0 -50
  97. package/dist/models/AuthRegisterGuardRequestProfileSignature.js +0 -55
  98. package/dist/models/BackAsset.d.ts +0 -50
  99. package/dist/models/BackAsset.js +0 -55
  100. package/dist/models/DevicesRegisterRequest.d.ts +0 -76
  101. package/dist/models/DevicesRegisterRequest.js +0 -73
  102. package/dist/models/FirstAidAsset.d.ts +0 -50
  103. package/dist/models/FirstAidAsset.js +0 -55
  104. package/dist/models/FrontAsset.d.ts +0 -50
  105. package/dist/models/FrontAsset.js +0 -55
  106. package/dist/models/IncidentListResource.d.ts +0 -107
  107. package/dist/models/IncidentListResource.js +0 -81
  108. package/dist/models/IncidentListResourceArrayResponse.d.ts +0 -33
  109. package/dist/models/IncidentListResourceArrayResponse.js +0 -50
  110. package/dist/models/IncidentsExportPdfBulkRequest.d.ts +0 -56
  111. package/dist/models/IncidentsExportPdfBulkRequest.js +0 -63
  112. package/dist/models/IncidentsListRequest.d.ts +0 -163
  113. package/dist/models/IncidentsListRequest.js +0 -103
  114. package/dist/models/LicencesStoreRequestBackAsset.d.ts +0 -50
  115. package/dist/models/LicencesStoreRequestBackAsset.js +0 -55
  116. package/dist/models/MobileDeviceResource.d.ts +0 -100
  117. package/dist/models/MobileDeviceResource.js +0 -94
  118. package/dist/models/MobileDeviceResourceArrayResponse.d.ts +0 -33
  119. package/dist/models/MobileDeviceResourceArrayResponse.js +0 -50
  120. package/dist/models/MobileInitResource.d.ts +0 -47
  121. package/dist/models/MobileInitResource.js +0 -62
  122. package/dist/models/MobileInitResourceArrayResponse.d.ts +0 -33
  123. package/dist/models/MobileInitResourceArrayResponse.js +0 -50
  124. package/dist/models/PaginatedIncidentListResourceResponse.d.ts +0 -40
  125. package/dist/models/PaginatedIncidentListResourceResponse.js +0 -57
  126. package/dist/models/PdfExportQueuedResource.d.ts +0 -54
  127. package/dist/models/PdfExportQueuedResource.js +0 -69
  128. package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +0 -33
  129. package/dist/models/PdfExportQueuedResourceArrayResponse.js +0 -50
  130. package/dist/models/RsaAsset.d.ts +0 -50
  131. package/dist/models/RsaAsset.js +0 -55
  132. package/dist/models/VenueMobileResource.d.ts +0 -93
  133. package/dist/models/VenueMobileResource.js +0 -88
  134. package/dist/models/VenueMobileResourceArrayResponse.d.ts +0 -33
  135. package/dist/models/VenueMobileResourceArrayResponse.js +0 -50
  136. package/src/models/AuthChangePasswordRequest.ts +0 -75
  137. package/src/models/AuthProfileUpdateRequest.ts +0 -105
  138. package/src/models/AuthRegisterGuardRequest.ts +0 -135
  139. package/src/models/AuthRegisterGuardRequestLicence.ts +0 -181
  140. package/src/models/AuthRegisterGuardRequestProfileSignature.ts +0 -89
  141. package/src/models/BackAsset.ts +0 -89
  142. package/src/models/DevicesRegisterRequest.ts +0 -126
  143. package/src/models/FirstAidAsset.ts +0 -89
  144. package/src/models/FrontAsset.ts +0 -89
  145. package/src/models/IncidentListResource.ts +0 -185
  146. package/src/models/IncidentListResourceArrayResponse.ts +0 -73
  147. package/src/models/IncidentsExportPdfBulkRequest.ts +0 -100
  148. package/src/models/IncidentsListRequest.ts +0 -238
  149. package/src/models/LicencesStoreRequestBackAsset.ts +0 -89
  150. package/src/models/MobileDeviceResource.ts +0 -164
  151. package/src/models/MobileDeviceResourceArrayResponse.ts +0 -73
  152. package/src/models/MobileInitResource.ts +0 -106
  153. package/src/models/MobileInitResourceArrayResponse.ts +0 -73
  154. package/src/models/PaginatedIncidentListResourceResponse.ts +0 -90
  155. package/src/models/PdfExportQueuedResource.ts +0 -97
  156. package/src/models/PdfExportQueuedResourceArrayResponse.ts +0 -73
  157. package/src/models/RsaAsset.ts +0 -89
  158. package/src/models/VenueMobileResource.ts +0 -162
  159. package/src/models/VenueMobileResourceArrayResponse.ts +0 -73
@@ -1,181 +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 { FirstAidAsset } from './FirstAidAsset';
17
- import {
18
- FirstAidAssetFromJSON,
19
- FirstAidAssetFromJSONTyped,
20
- FirstAidAssetToJSON,
21
- FirstAidAssetToJSONTyped,
22
- } from './FirstAidAsset';
23
- import type { BackAsset } from './BackAsset';
24
- import {
25
- BackAssetFromJSON,
26
- BackAssetFromJSONTyped,
27
- BackAssetToJSON,
28
- BackAssetToJSONTyped,
29
- } from './BackAsset';
30
- import type { FrontAsset } from './FrontAsset';
31
- import {
32
- FrontAssetFromJSON,
33
- FrontAssetFromJSONTyped,
34
- FrontAssetToJSON,
35
- FrontAssetToJSONTyped,
36
- } from './FrontAsset';
37
- import type { RsaAsset } from './RsaAsset';
38
- import {
39
- RsaAssetFromJSON,
40
- RsaAssetFromJSONTyped,
41
- RsaAssetToJSON,
42
- RsaAssetToJSONTyped,
43
- } from './RsaAsset';
44
-
45
- /**
46
- *
47
- * @export
48
- * @interface AuthRegisterGuardRequestLicence
49
- */
50
- export interface AuthRegisterGuardRequestLicence {
51
- /**
52
- *
53
- * @type {string}
54
- * @memberof AuthRegisterGuardRequestLicence
55
- */
56
- state: AuthRegisterGuardRequestLicenceStateEnum;
57
- /**
58
- *
59
- * @type {string}
60
- * @memberof AuthRegisterGuardRequestLicence
61
- */
62
- licenceNumber: string;
63
- /**
64
- *
65
- * @type {string}
66
- * @memberof AuthRegisterGuardRequestLicence
67
- */
68
- firstName: string;
69
- /**
70
- *
71
- * @type {string}
72
- * @memberof AuthRegisterGuardRequestLicence
73
- */
74
- lastName: string;
75
- /**
76
- * ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
77
- * @type {string}
78
- * @memberof AuthRegisterGuardRequestLicence
79
- */
80
- expiryDate: string;
81
- /**
82
- *
83
- * @type {FrontAsset}
84
- * @memberof AuthRegisterGuardRequestLicence
85
- */
86
- frontAsset: FrontAsset;
87
- /**
88
- *
89
- * @type {BackAsset}
90
- * @memberof AuthRegisterGuardRequestLicence
91
- */
92
- backAsset?: BackAsset | null;
93
- /**
94
- *
95
- * @type {RsaAsset}
96
- * @memberof AuthRegisterGuardRequestLicence
97
- */
98
- rsaAsset?: RsaAsset | null;
99
- /**
100
- *
101
- * @type {FirstAidAsset}
102
- * @memberof AuthRegisterGuardRequestLicence
103
- */
104
- firstAidAsset?: FirstAidAsset | null;
105
- }
106
-
107
-
108
- /**
109
- * @export
110
- */
111
- export const AuthRegisterGuardRequestLicenceStateEnum = {
112
- Qld: 'QLD',
113
- Nsw: 'NSW',
114
- Act: 'ACT',
115
- Vic: 'VIC',
116
- Tas: 'TAS',
117
- Sa: 'SA',
118
- Wa: 'WA',
119
- Nt: 'NT'
120
- } as const;
121
- export type AuthRegisterGuardRequestLicenceStateEnum = typeof AuthRegisterGuardRequestLicenceStateEnum[keyof typeof AuthRegisterGuardRequestLicenceStateEnum];
122
-
123
-
124
- /**
125
- * Check if a given object implements the AuthRegisterGuardRequestLicence interface.
126
- */
127
- export function instanceOfAuthRegisterGuardRequestLicence(value: object): value is AuthRegisterGuardRequestLicence {
128
- if (!('state' in value) || value['state'] === undefined) return false;
129
- if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
130
- if (!('firstName' in value) || value['firstName'] === undefined) return false;
131
- if (!('lastName' in value) || value['lastName'] === undefined) return false;
132
- if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
133
- if (!('frontAsset' in value) || value['frontAsset'] === undefined) return false;
134
- return true;
135
- }
136
-
137
- export function AuthRegisterGuardRequestLicenceFromJSON(json: any): AuthRegisterGuardRequestLicence {
138
- return AuthRegisterGuardRequestLicenceFromJSONTyped(json, false);
139
- }
140
-
141
- export function AuthRegisterGuardRequestLicenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRegisterGuardRequestLicence {
142
- if (json == null) {
143
- return json;
144
- }
145
- return {
146
-
147
- 'state': json['state'],
148
- 'licenceNumber': json['licence_number'],
149
- 'firstName': json['first_name'],
150
- 'lastName': json['last_name'],
151
- 'expiryDate': json['expiry_date'],
152
- 'frontAsset': FrontAssetFromJSON(json['front_asset']),
153
- 'backAsset': json['back_asset'] == null ? undefined : BackAssetFromJSON(json['back_asset']),
154
- 'rsaAsset': json['rsa_asset'] == null ? undefined : RsaAssetFromJSON(json['rsa_asset']),
155
- 'firstAidAsset': json['first_aid_asset'] == null ? undefined : FirstAidAssetFromJSON(json['first_aid_asset']),
156
- };
157
- }
158
-
159
- export function AuthRegisterGuardRequestLicenceToJSON(json: any): AuthRegisterGuardRequestLicence {
160
- return AuthRegisterGuardRequestLicenceToJSONTyped(json, false);
161
- }
162
-
163
- export function AuthRegisterGuardRequestLicenceToJSONTyped(value?: AuthRegisterGuardRequestLicence | null, ignoreDiscriminator: boolean = false): any {
164
- if (value == null) {
165
- return value;
166
- }
167
-
168
- return {
169
-
170
- 'state': value['state'],
171
- 'licence_number': value['licenceNumber'],
172
- 'first_name': value['firstName'],
173
- 'last_name': value['lastName'],
174
- 'expiry_date': value['expiryDate'],
175
- 'front_asset': FrontAssetToJSON(value['frontAsset']),
176
- 'back_asset': BackAssetToJSON(value['backAsset']),
177
- 'rsa_asset': RsaAssetToJSON(value['rsaAsset']),
178
- 'first_aid_asset': FirstAidAssetToJSON(value['firstAidAsset']),
179
- };
180
- }
181
-
@@ -1,89 +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 AuthRegisterGuardRequestProfileSignature
20
- */
21
- export interface AuthRegisterGuardRequestProfileSignature {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof AuthRegisterGuardRequestProfileSignature
26
- */
27
- fileId?: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof AuthRegisterGuardRequestProfileSignature
32
- */
33
- fileName?: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof AuthRegisterGuardRequestProfileSignature
38
- */
39
- mimeType?: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof AuthRegisterGuardRequestProfileSignature
44
- */
45
- altText?: string;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the AuthRegisterGuardRequestProfileSignature interface.
50
- */
51
- export function instanceOfAuthRegisterGuardRequestProfileSignature(value: object): value is AuthRegisterGuardRequestProfileSignature {
52
- return true;
53
- }
54
-
55
- export function AuthRegisterGuardRequestProfileSignatureFromJSON(json: any): AuthRegisterGuardRequestProfileSignature {
56
- return AuthRegisterGuardRequestProfileSignatureFromJSONTyped(json, false);
57
- }
58
-
59
- export function AuthRegisterGuardRequestProfileSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRegisterGuardRequestProfileSignature {
60
- if (json == null) {
61
- return json;
62
- }
63
- return {
64
-
65
- 'fileId': json['file_id'] == null ? undefined : json['file_id'],
66
- 'fileName': json['file_name'] == null ? undefined : json['file_name'],
67
- 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
68
- 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
69
- };
70
- }
71
-
72
- export function AuthRegisterGuardRequestProfileSignatureToJSON(json: any): AuthRegisterGuardRequestProfileSignature {
73
- return AuthRegisterGuardRequestProfileSignatureToJSONTyped(json, false);
74
- }
75
-
76
- export function AuthRegisterGuardRequestProfileSignatureToJSONTyped(value?: AuthRegisterGuardRequestProfileSignature | null, ignoreDiscriminator: boolean = false): any {
77
- if (value == null) {
78
- return value;
79
- }
80
-
81
- return {
82
-
83
- 'file_id': value['fileId'],
84
- 'file_name': value['fileName'],
85
- 'mime_type': value['mimeType'],
86
- 'alt_text': value['altText'],
87
- };
88
- }
89
-
@@ -1,89 +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 BackAsset
20
- */
21
- export interface BackAsset {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof BackAsset
26
- */
27
- fileId?: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof BackAsset
32
- */
33
- fileName?: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof BackAsset
38
- */
39
- mimeType?: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof BackAsset
44
- */
45
- altText?: string;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the BackAsset interface.
50
- */
51
- export function instanceOfBackAsset(value: object): value is BackAsset {
52
- return true;
53
- }
54
-
55
- export function BackAssetFromJSON(json: any): BackAsset {
56
- return BackAssetFromJSONTyped(json, false);
57
- }
58
-
59
- export function BackAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackAsset {
60
- if (json == null) {
61
- return json;
62
- }
63
- return {
64
-
65
- 'fileId': json['file_id'] == null ? undefined : json['file_id'],
66
- 'fileName': json['file_name'] == null ? undefined : json['file_name'],
67
- 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
68
- 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
69
- };
70
- }
71
-
72
- export function BackAssetToJSON(json: any): BackAsset {
73
- return BackAssetToJSONTyped(json, false);
74
- }
75
-
76
- export function BackAssetToJSONTyped(value?: BackAsset | null, ignoreDiscriminator: boolean = false): any {
77
- if (value == null) {
78
- return value;
79
- }
80
-
81
- return {
82
-
83
- 'file_id': value['fileId'],
84
- 'file_name': value['fileName'],
85
- 'mime_type': value['mimeType'],
86
- 'alt_text': value['altText'],
87
- };
88
- }
89
-
@@ -1,126 +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 DevicesRegisterRequest
20
- */
21
- export interface DevicesRegisterRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof DevicesRegisterRequest
26
- */
27
- deviceId: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof DevicesRegisterRequest
32
- */
33
- platform: DevicesRegisterRequestPlatformEnum;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof DevicesRegisterRequest
38
- */
39
- osVersion?: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof DevicesRegisterRequest
44
- */
45
- appVersion?: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof DevicesRegisterRequest
50
- */
51
- model?: string;
52
- /**
53
- *
54
- * @type {string}
55
- * @memberof DevicesRegisterRequest
56
- */
57
- name?: string;
58
- /**
59
- *
60
- * @type {string}
61
- * @memberof DevicesRegisterRequest
62
- */
63
- pushToken?: string;
64
- }
65
-
66
-
67
- /**
68
- * @export
69
- */
70
- export const DevicesRegisterRequestPlatformEnum = {
71
- Ios: 'ios',
72
- Android: 'android'
73
- } as const;
74
- export type DevicesRegisterRequestPlatformEnum = typeof DevicesRegisterRequestPlatformEnum[keyof typeof DevicesRegisterRequestPlatformEnum];
75
-
76
-
77
- /**
78
- * Check if a given object implements the DevicesRegisterRequest interface.
79
- */
80
- export function instanceOfDevicesRegisterRequest(value: object): value is DevicesRegisterRequest {
81
- if (!('deviceId' in value) || value['deviceId'] === undefined) return false;
82
- if (!('platform' in value) || value['platform'] === undefined) return false;
83
- return true;
84
- }
85
-
86
- export function DevicesRegisterRequestFromJSON(json: any): DevicesRegisterRequest {
87
- return DevicesRegisterRequestFromJSONTyped(json, false);
88
- }
89
-
90
- export function DevicesRegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DevicesRegisterRequest {
91
- if (json == null) {
92
- return json;
93
- }
94
- return {
95
-
96
- 'deviceId': json['device_id'],
97
- 'platform': json['platform'],
98
- 'osVersion': json['os_version'] == null ? undefined : json['os_version'],
99
- 'appVersion': json['app_version'] == null ? undefined : json['app_version'],
100
- 'model': json['model'] == null ? undefined : json['model'],
101
- 'name': json['name'] == null ? undefined : json['name'],
102
- 'pushToken': json['push_token'] == null ? undefined : json['push_token'],
103
- };
104
- }
105
-
106
- export function DevicesRegisterRequestToJSON(json: any): DevicesRegisterRequest {
107
- return DevicesRegisterRequestToJSONTyped(json, false);
108
- }
109
-
110
- export function DevicesRegisterRequestToJSONTyped(value?: DevicesRegisterRequest | null, ignoreDiscriminator: boolean = false): any {
111
- if (value == null) {
112
- return value;
113
- }
114
-
115
- return {
116
-
117
- 'device_id': value['deviceId'],
118
- 'platform': value['platform'],
119
- 'os_version': value['osVersion'],
120
- 'app_version': value['appVersion'],
121
- 'model': value['model'],
122
- 'name': value['name'],
123
- 'push_token': value['pushToken'],
124
- };
125
- }
126
-
@@ -1,89 +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 FirstAidAsset
20
- */
21
- export interface FirstAidAsset {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof FirstAidAsset
26
- */
27
- fileId?: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof FirstAidAsset
32
- */
33
- fileName?: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof FirstAidAsset
38
- */
39
- mimeType?: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof FirstAidAsset
44
- */
45
- altText?: string;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the FirstAidAsset interface.
50
- */
51
- export function instanceOfFirstAidAsset(value: object): value is FirstAidAsset {
52
- return true;
53
- }
54
-
55
- export function FirstAidAssetFromJSON(json: any): FirstAidAsset {
56
- return FirstAidAssetFromJSONTyped(json, false);
57
- }
58
-
59
- export function FirstAidAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FirstAidAsset {
60
- if (json == null) {
61
- return json;
62
- }
63
- return {
64
-
65
- 'fileId': json['file_id'] == null ? undefined : json['file_id'],
66
- 'fileName': json['file_name'] == null ? undefined : json['file_name'],
67
- 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
68
- 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
69
- };
70
- }
71
-
72
- export function FirstAidAssetToJSON(json: any): FirstAidAsset {
73
- return FirstAidAssetToJSONTyped(json, false);
74
- }
75
-
76
- export function FirstAidAssetToJSONTyped(value?: FirstAidAsset | null, ignoreDiscriminator: boolean = false): any {
77
- if (value == null) {
78
- return value;
79
- }
80
-
81
- return {
82
-
83
- 'file_id': value['fileId'],
84
- 'file_name': value['fileName'],
85
- 'mime_type': value['mimeType'],
86
- 'alt_text': value['altText'],
87
- };
88
- }
89
-
@@ -1,89 +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 FrontAsset
20
- */
21
- export interface FrontAsset {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof FrontAsset
26
- */
27
- fileId?: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof FrontAsset
32
- */
33
- fileName?: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof FrontAsset
38
- */
39
- mimeType?: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof FrontAsset
44
- */
45
- altText?: string;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the FrontAsset interface.
50
- */
51
- export function instanceOfFrontAsset(value: object): value is FrontAsset {
52
- return true;
53
- }
54
-
55
- export function FrontAssetFromJSON(json: any): FrontAsset {
56
- return FrontAssetFromJSONTyped(json, false);
57
- }
58
-
59
- export function FrontAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontAsset {
60
- if (json == null) {
61
- return json;
62
- }
63
- return {
64
-
65
- 'fileId': json['file_id'] == null ? undefined : json['file_id'],
66
- 'fileName': json['file_name'] == null ? undefined : json['file_name'],
67
- 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
68
- 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
69
- };
70
- }
71
-
72
- export function FrontAssetToJSON(json: any): FrontAsset {
73
- return FrontAssetToJSONTyped(json, false);
74
- }
75
-
76
- export function FrontAssetToJSONTyped(value?: FrontAsset | null, ignoreDiscriminator: boolean = false): any {
77
- if (value == null) {
78
- return value;
79
- }
80
-
81
- return {
82
-
83
- 'file_id': value['fileId'],
84
- 'file_name': value['fileName'],
85
- 'mime_type': value['mimeType'],
86
- 'alt_text': value['altText'],
87
- };
88
- }
89
-