@digital8/cctv-web-app-ts-sdk 0.0.1

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 (219) hide show
  1. package/.openapi-generator/FILES +77 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +46 -0
  5. package/dist/apis/AccountApi.d.ts +45 -0
  6. package/dist/apis/AccountApi.js +210 -0
  7. package/dist/apis/AuthApi.d.ts +90 -0
  8. package/dist/apis/AuthApi.js +458 -0
  9. package/dist/apis/CompaniesApi.d.ts +102 -0
  10. package/dist/apis/CompaniesApi.js +442 -0
  11. package/dist/apis/DashboardApi.d.ts +26 -0
  12. package/dist/apis/DashboardApi.js +122 -0
  13. package/dist/apis/FormAApi.d.ts +90 -0
  14. package/dist/apis/FormAApi.js +395 -0
  15. package/dist/apis/FormBApi.d.ts +79 -0
  16. package/dist/apis/FormBApi.js +350 -0
  17. package/dist/apis/FormCApi.d.ts +90 -0
  18. package/dist/apis/FormCApi.js +395 -0
  19. package/dist/apis/ManagerApi.d.ts +42 -0
  20. package/dist/apis/ManagerApi.js +180 -0
  21. package/dist/apis/ManagersApi.d.ts +71 -0
  22. package/dist/apis/ManagersApi.js +307 -0
  23. package/dist/apis/NotificationsApi.d.ts +40 -0
  24. package/dist/apis/NotificationsApi.js +171 -0
  25. package/dist/apis/QuestionsApi.d.ts +71 -0
  26. package/dist/apis/QuestionsApi.js +307 -0
  27. package/dist/apis/TechniciansApi.d.ts +73 -0
  28. package/dist/apis/TechniciansApi.js +308 -0
  29. package/dist/apis/UploadApi.d.ts +29 -0
  30. package/dist/apis/UploadApi.js +125 -0
  31. package/dist/apis/VenueApi.d.ts +41 -0
  32. package/dist/apis/VenueApi.js +176 -0
  33. package/dist/apis/VenuesApi.d.ts +144 -0
  34. package/dist/apis/VenuesApi.js +623 -0
  35. package/dist/apis/index.d.ts +15 -0
  36. package/dist/apis/index.js +33 -0
  37. package/dist/index.d.ts +3 -0
  38. package/dist/index.js +21 -0
  39. package/dist/models/AssetFileForUploadResource.d.ts +52 -0
  40. package/dist/models/AssetFileForUploadResource.js +63 -0
  41. package/dist/models/AssetFileForUploadResourceArrayResponse.d.ts +33 -0
  42. package/dist/models/AssetFileForUploadResourceArrayResponse.js +50 -0
  43. package/dist/models/AssetLiteResource.d.ts +38 -0
  44. package/dist/models/AssetLiteResource.js +53 -0
  45. package/dist/models/AssetLiteResourceArrayResponse.d.ts +33 -0
  46. package/dist/models/AssetLiteResourceArrayResponse.js +50 -0
  47. package/dist/models/AssetResource.d.ts +62 -0
  48. package/dist/models/AssetResource.js +67 -0
  49. package/dist/models/AssetResourceArrayResponse.d.ts +33 -0
  50. package/dist/models/AssetResourceArrayResponse.js +50 -0
  51. package/dist/models/CompanyResource.d.ts +56 -0
  52. package/dist/models/CompanyResource.js +67 -0
  53. package/dist/models/CompanyResourceArrayResponse.d.ts +33 -0
  54. package/dist/models/CompanyResourceArrayResponse.js +50 -0
  55. package/dist/models/CreateFormARequest.d.ts +81 -0
  56. package/dist/models/CreateFormARequest.js +73 -0
  57. package/dist/models/CreateFormARequestAnswersInner.d.ts +38 -0
  58. package/dist/models/CreateFormARequestAnswersInner.js +55 -0
  59. package/dist/models/CreateNotificationSilenceRequest.d.ts +46 -0
  60. package/dist/models/CreateNotificationSilenceRequest.js +63 -0
  61. package/dist/models/CreateOrUpdateCompanyRequest.d.ts +50 -0
  62. package/dist/models/CreateOrUpdateCompanyRequest.js +61 -0
  63. package/dist/models/CreateOrUpdateFormCRequest.d.ts +98 -0
  64. package/dist/models/CreateOrUpdateFormCRequest.js +80 -0
  65. package/dist/models/CreateOrUpdateManagerRequest.d.ts +92 -0
  66. package/dist/models/CreateOrUpdateManagerRequest.js +81 -0
  67. package/dist/models/CreateOrUpdateQuestionRequest.d.ts +38 -0
  68. package/dist/models/CreateOrUpdateQuestionRequest.js +53 -0
  69. package/dist/models/CreateOrUpdateTechnicianRequest.d.ts +56 -0
  70. package/dist/models/CreateOrUpdateTechnicianRequest.js +65 -0
  71. package/dist/models/CreateOrUpdateVenueRequest.d.ts +93 -0
  72. package/dist/models/CreateOrUpdateVenueRequest.js +86 -0
  73. package/dist/models/CreateOrUpdateVenueRequestHoursInner.d.ts +38 -0
  74. package/dist/models/CreateOrUpdateVenueRequestHoursInner.js +55 -0
  75. package/dist/models/FindNearbyVenuesRequest.d.ts +38 -0
  76. package/dist/models/FindNearbyVenuesRequest.js +55 -0
  77. package/dist/models/FormAResource.d.ts +122 -0
  78. package/dist/models/FormAResource.js +101 -0
  79. package/dist/models/FormAResourceArrayResponse.d.ts +33 -0
  80. package/dist/models/FormAResourceArrayResponse.js +50 -0
  81. package/dist/models/FormBResource.d.ts +86 -0
  82. package/dist/models/FormBResource.js +75 -0
  83. package/dist/models/FormBResourceArrayResponse.d.ts +33 -0
  84. package/dist/models/FormBResourceArrayResponse.js +50 -0
  85. package/dist/models/FormCResource.d.ts +112 -0
  86. package/dist/models/FormCResource.js +101 -0
  87. package/dist/models/FormCResourceArrayResponse.d.ts +33 -0
  88. package/dist/models/FormCResourceArrayResponse.js +50 -0
  89. package/dist/models/GenericResponse.d.ts +32 -0
  90. package/dist/models/GenericResponse.js +49 -0
  91. package/dist/models/GetUploadUrlRequest.d.ts +56 -0
  92. package/dist/models/GetUploadUrlRequest.js +71 -0
  93. package/dist/models/ManagerResource.d.ts +128 -0
  94. package/dist/models/ManagerResource.js +107 -0
  95. package/dist/models/ManagerResourceArrayResponse.d.ts +33 -0
  96. package/dist/models/ManagerResourceArrayResponse.js +50 -0
  97. package/dist/models/PaginatedCompanyResourceResponse.d.ts +40 -0
  98. package/dist/models/PaginatedCompanyResourceResponse.js +57 -0
  99. package/dist/models/PaginatedFormAResourceResponse.d.ts +40 -0
  100. package/dist/models/PaginatedFormAResourceResponse.js +57 -0
  101. package/dist/models/PaginatedFormBResourceResponse.d.ts +40 -0
  102. package/dist/models/PaginatedFormBResourceResponse.js +57 -0
  103. package/dist/models/PaginatedFormCResourceResponse.d.ts +40 -0
  104. package/dist/models/PaginatedFormCResourceResponse.js +57 -0
  105. package/dist/models/PaginatedManagerResourceResponse.d.ts +40 -0
  106. package/dist/models/PaginatedManagerResourceResponse.js +57 -0
  107. package/dist/models/PaginatedQuestionResourceResponse.d.ts +40 -0
  108. package/dist/models/PaginatedQuestionResourceResponse.js +57 -0
  109. package/dist/models/PaginatedTechnicianResourceResponse.d.ts +40 -0
  110. package/dist/models/PaginatedTechnicianResourceResponse.js +57 -0
  111. package/dist/models/PaginatedVenueResourceResponse.d.ts +40 -0
  112. package/dist/models/PaginatedVenueResourceResponse.js +57 -0
  113. package/dist/models/PagingMetadata.d.ts +68 -0
  114. package/dist/models/PagingMetadata.js +75 -0
  115. package/dist/models/QuestionResource.d.ts +50 -0
  116. package/dist/models/QuestionResource.js +61 -0
  117. package/dist/models/QuestionResourceArrayResponse.d.ts +33 -0
  118. package/dist/models/QuestionResourceArrayResponse.js +50 -0
  119. package/dist/models/SearchCompaniesRequest.d.ts +90 -0
  120. package/dist/models/SearchCompaniesRequest.js +78 -0
  121. package/dist/models/SearchTechniciansRequest.d.ts +92 -0
  122. package/dist/models/SearchTechniciansRequest.js +80 -0
  123. package/dist/models/TechnicianResource.d.ts +80 -0
  124. package/dist/models/TechnicianResource.js +81 -0
  125. package/dist/models/TechnicianResourceArrayResponse.d.ts +33 -0
  126. package/dist/models/TechnicianResourceArrayResponse.js +50 -0
  127. package/dist/models/UpdateFormARequest.d.ts +57 -0
  128. package/dist/models/UpdateFormARequest.js +60 -0
  129. package/dist/models/UpdateFormARequestAnswersInner.d.ts +38 -0
  130. package/dist/models/UpdateFormARequestAnswersInner.js +55 -0
  131. package/dist/models/UpdateFormBRequest.d.ts +50 -0
  132. package/dist/models/UpdateFormBRequest.js +56 -0
  133. package/dist/models/UpdateNonTradingDaysRequest.d.ts +32 -0
  134. package/dist/models/UpdateNonTradingDaysRequest.js +49 -0
  135. package/dist/models/UserResource.d.ts +68 -0
  136. package/dist/models/UserResource.js +71 -0
  137. package/dist/models/UserResourceArrayResponse.d.ts +33 -0
  138. package/dist/models/UserResourceArrayResponse.js +50 -0
  139. package/dist/models/VenueResource.d.ts +153 -0
  140. package/dist/models/VenueResource.js +132 -0
  141. package/dist/models/VenueResourceArrayResponse.d.ts +33 -0
  142. package/dist/models/VenueResourceArrayResponse.js +50 -0
  143. package/dist/models/index.d.ts +52 -0
  144. package/dist/models/index.js +70 -0
  145. package/dist/runtime.d.ts +184 -0
  146. package/dist/runtime.js +564 -0
  147. package/package.json +19 -0
  148. package/src/apis/AccountApi.ts +132 -0
  149. package/src/apis/AuthApi.ts +291 -0
  150. package/src/apis/CompaniesApi.ts +341 -0
  151. package/src/apis/DashboardApi.ts +59 -0
  152. package/src/apis/FormAApi.ts +301 -0
  153. package/src/apis/FormBApi.ts +262 -0
  154. package/src/apis/FormCApi.ts +298 -0
  155. package/src/apis/ManagerApi.ts +133 -0
  156. package/src/apis/ManagersApi.ts +228 -0
  157. package/src/apis/NotificationsApi.ts +110 -0
  158. package/src/apis/QuestionsApi.ts +225 -0
  159. package/src/apis/TechniciansApi.ts +234 -0
  160. package/src/apis/UploadApi.ts +69 -0
  161. package/src/apis/VenueApi.ts +121 -0
  162. package/src/apis/VenuesApi.ts +492 -0
  163. package/src/apis/index.ts +17 -0
  164. package/src/index.ts +5 -0
  165. package/src/models/AssetFileForUploadResource.ts +93 -0
  166. package/src/models/AssetFileForUploadResourceArrayResponse.ts +73 -0
  167. package/src/models/AssetLiteResource.ts +74 -0
  168. package/src/models/AssetLiteResourceArrayResponse.ts +73 -0
  169. package/src/models/AssetResource.ts +109 -0
  170. package/src/models/AssetResourceArrayResponse.ts +73 -0
  171. package/src/models/CompanyResource.ts +102 -0
  172. package/src/models/CompanyResourceArrayResponse.ts +73 -0
  173. package/src/models/CreateFormARequest.ts +140 -0
  174. package/src/models/CreateFormARequestAnswersInner.ts +75 -0
  175. package/src/models/CreateNotificationSilenceRequest.ts +86 -0
  176. package/src/models/CreateOrUpdateCompanyRequest.ts +92 -0
  177. package/src/models/CreateOrUpdateFormCRequest.ts +157 -0
  178. package/src/models/CreateOrUpdateManagerRequest.ts +151 -0
  179. package/src/models/CreateOrUpdateQuestionRequest.ts +74 -0
  180. package/src/models/CreateOrUpdateTechnicianRequest.ts +101 -0
  181. package/src/models/CreateOrUpdateVenueRequest.ts +161 -0
  182. package/src/models/CreateOrUpdateVenueRequestHoursInner.ts +75 -0
  183. package/src/models/FindNearbyVenuesRequest.ts +75 -0
  184. package/src/models/FormAResource.ts +196 -0
  185. package/src/models/FormAResourceArrayResponse.ts +73 -0
  186. package/src/models/FormBResource.ts +141 -0
  187. package/src/models/FormBResourceArrayResponse.ts +73 -0
  188. package/src/models/FormCResource.ts +196 -0
  189. package/src/models/FormCResourceArrayResponse.ts +73 -0
  190. package/src/models/GenericResponse.ts +65 -0
  191. package/src/models/GetUploadUrlRequest.ts +99 -0
  192. package/src/models/ManagerResource.ts +206 -0
  193. package/src/models/ManagerResourceArrayResponse.ts +73 -0
  194. package/src/models/PaginatedCompanyResourceResponse.ts +90 -0
  195. package/src/models/PaginatedFormAResourceResponse.ts +90 -0
  196. package/src/models/PaginatedFormBResourceResponse.ts +90 -0
  197. package/src/models/PaginatedFormCResourceResponse.ts +90 -0
  198. package/src/models/PaginatedManagerResourceResponse.ts +90 -0
  199. package/src/models/PaginatedQuestionResourceResponse.ts +90 -0
  200. package/src/models/PaginatedTechnicianResourceResponse.ts +90 -0
  201. package/src/models/PaginatedVenueResourceResponse.ts +90 -0
  202. package/src/models/PagingMetadata.ts +120 -0
  203. package/src/models/QuestionResource.ts +92 -0
  204. package/src/models/QuestionResourceArrayResponse.ts +73 -0
  205. package/src/models/SearchCompaniesRequest.ts +141 -0
  206. package/src/models/SearchTechniciansRequest.ts +143 -0
  207. package/src/models/TechnicianResource.ts +137 -0
  208. package/src/models/TechnicianResourceArrayResponse.ts +73 -0
  209. package/src/models/UpdateFormARequest.ts +106 -0
  210. package/src/models/UpdateFormARequestAnswersInner.ts +75 -0
  211. package/src/models/UpdateFormBRequest.ts +89 -0
  212. package/src/models/UpdateNonTradingDaysRequest.ts +65 -0
  213. package/src/models/UserResource.ts +118 -0
  214. package/src/models/UserResourceArrayResponse.ts +73 -0
  215. package/src/models/VenueResource.ts +254 -0
  216. package/src/models/VenueResourceArrayResponse.ts +73 -0
  217. package/src/models/index.ts +54 -0
  218. package/src/runtime.ts +432 -0
  219. package/tsconfig.json +20 -0
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CCTV Registers API
5
+ * API documentation for the CCTV Registers application
6
+ *
7
+ * The version of the OpenAPI document: 0.1.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 AssetLiteResource
20
+ */
21
+ export interface AssetLiteResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof AssetLiteResource
26
+ */
27
+ id?: number | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AssetLiteResource
32
+ */
33
+ filePath: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the AssetLiteResource interface.
38
+ */
39
+ export function instanceOfAssetLiteResource(value: object): value is AssetLiteResource {
40
+ if (!('filePath' in value) || value['filePath'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function AssetLiteResourceFromJSON(json: any): AssetLiteResource {
45
+ return AssetLiteResourceFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function AssetLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetLiteResource {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'id': json['id'] == null ? undefined : json['id'],
55
+ 'filePath': json['filePath'],
56
+ };
57
+ }
58
+
59
+ export function AssetLiteResourceToJSON(json: any): AssetLiteResource {
60
+ return AssetLiteResourceToJSONTyped(json, false);
61
+ }
62
+
63
+ export function AssetLiteResourceToJSONTyped(value?: AssetLiteResource | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'id': value['id'],
71
+ 'filePath': value['filePath'],
72
+ };
73
+ }
74
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CCTV Registers API
5
+ * API documentation for the CCTV Registers application
6
+ *
7
+ * The version of the OpenAPI document: 0.1.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 { AssetLiteResource } from './AssetLiteResource';
17
+ import {
18
+ AssetLiteResourceFromJSON,
19
+ AssetLiteResourceFromJSONTyped,
20
+ AssetLiteResourceToJSON,
21
+ AssetLiteResourceToJSONTyped,
22
+ } from './AssetLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AssetLiteResourceArrayResponse
28
+ */
29
+ export interface AssetLiteResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<AssetLiteResource>}
33
+ * @memberof AssetLiteResourceArrayResponse
34
+ */
35
+ data?: Array<AssetLiteResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the AssetLiteResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfAssetLiteResourceArrayResponse(value: object): value is AssetLiteResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function AssetLiteResourceArrayResponseFromJSON(json: any): AssetLiteResourceArrayResponse {
46
+ return AssetLiteResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AssetLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetLiteResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AssetLiteResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function AssetLiteResourceArrayResponseToJSON(json: any): AssetLiteResourceArrayResponse {
60
+ return AssetLiteResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function AssetLiteResourceArrayResponseToJSONTyped(value?: AssetLiteResourceArrayResponse | 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(AssetLiteResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,109 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CCTV Registers API
5
+ * API documentation for the CCTV Registers application
6
+ *
7
+ * The version of the OpenAPI document: 0.1.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 AssetResource
20
+ */
21
+ export interface AssetResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof AssetResource
26
+ */
27
+ id?: number | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AssetResource
32
+ */
33
+ filePath: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AssetResource
38
+ */
39
+ fileName: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AssetResource
44
+ */
45
+ mimeType: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AssetResource
50
+ */
51
+ altText?: string | null;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof AssetResource
56
+ */
57
+ index: number;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the AssetResource interface.
62
+ */
63
+ export function instanceOfAssetResource(value: object): value is AssetResource {
64
+ if (!('filePath' in value) || value['filePath'] === undefined) return false;
65
+ if (!('fileName' in value) || value['fileName'] === undefined) return false;
66
+ if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
67
+ if (!('index' in value) || value['index'] === undefined) return false;
68
+ return true;
69
+ }
70
+
71
+ export function AssetResourceFromJSON(json: any): AssetResource {
72
+ return AssetResourceFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetResource {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'id': json['id'] == null ? undefined : json['id'],
82
+ 'filePath': json['filePath'],
83
+ 'fileName': json['fileName'],
84
+ 'mimeType': json['mimeType'],
85
+ 'altText': json['altText'] == null ? undefined : json['altText'],
86
+ 'index': json['index'],
87
+ };
88
+ }
89
+
90
+ export function AssetResourceToJSON(json: any): AssetResource {
91
+ return AssetResourceToJSONTyped(json, false);
92
+ }
93
+
94
+ export function AssetResourceToJSONTyped(value?: AssetResource | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'id': value['id'],
102
+ 'filePath': value['filePath'],
103
+ 'fileName': value['fileName'],
104
+ 'mimeType': value['mimeType'],
105
+ 'altText': value['altText'],
106
+ 'index': value['index'],
107
+ };
108
+ }
109
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CCTV Registers API
5
+ * API documentation for the CCTV Registers application
6
+ *
7
+ * The version of the OpenAPI document: 0.1.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 { AssetResource } from './AssetResource';
17
+ import {
18
+ AssetResourceFromJSON,
19
+ AssetResourceFromJSONTyped,
20
+ AssetResourceToJSON,
21
+ AssetResourceToJSONTyped,
22
+ } from './AssetResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AssetResourceArrayResponse
28
+ */
29
+ export interface AssetResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<AssetResource>}
33
+ * @memberof AssetResourceArrayResponse
34
+ */
35
+ data?: Array<AssetResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the AssetResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfAssetResourceArrayResponse(value: object): value is AssetResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function AssetResourceArrayResponseFromJSON(json: any): AssetResourceArrayResponse {
46
+ return AssetResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AssetResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AssetResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function AssetResourceArrayResponseToJSON(json: any): AssetResourceArrayResponse {
60
+ return AssetResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function AssetResourceArrayResponseToJSONTyped(value?: AssetResourceArrayResponse | 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(AssetResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,102 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CCTV Registers API
5
+ * API documentation for the CCTV Registers application
6
+ *
7
+ * The version of the OpenAPI document: 0.1.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 CompanyResource
20
+ */
21
+ export interface CompanyResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof CompanyResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CompanyResource
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CompanyResource
38
+ */
39
+ address: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof CompanyResource
44
+ */
45
+ licenceNumber: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CompanyResource
50
+ */
51
+ email: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the CompanyResource interface.
56
+ */
57
+ export function instanceOfCompanyResource(value: object): value is CompanyResource {
58
+ if (!('id' in value) || value['id'] === undefined) return false;
59
+ if (!('name' in value) || value['name'] === undefined) return false;
60
+ if (!('address' in value) || value['address'] === undefined) return false;
61
+ if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
62
+ if (!('email' in value) || value['email'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function CompanyResourceFromJSON(json: any): CompanyResource {
67
+ return CompanyResourceFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function CompanyResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompanyResource {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'id': json['id'],
77
+ 'name': json['name'],
78
+ 'address': json['address'],
79
+ 'licenceNumber': json['licenceNumber'],
80
+ 'email': json['email'],
81
+ };
82
+ }
83
+
84
+ export function CompanyResourceToJSON(json: any): CompanyResource {
85
+ return CompanyResourceToJSONTyped(json, false);
86
+ }
87
+
88
+ export function CompanyResourceToJSONTyped(value?: CompanyResource | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'id': value['id'],
96
+ 'name': value['name'],
97
+ 'address': value['address'],
98
+ 'licenceNumber': value['licenceNumber'],
99
+ 'email': value['email'],
100
+ };
101
+ }
102
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CCTV Registers API
5
+ * API documentation for the CCTV Registers application
6
+ *
7
+ * The version of the OpenAPI document: 0.1.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 { CompanyResource } from './CompanyResource';
17
+ import {
18
+ CompanyResourceFromJSON,
19
+ CompanyResourceFromJSONTyped,
20
+ CompanyResourceToJSON,
21
+ CompanyResourceToJSONTyped,
22
+ } from './CompanyResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CompanyResourceArrayResponse
28
+ */
29
+ export interface CompanyResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<CompanyResource>}
33
+ * @memberof CompanyResourceArrayResponse
34
+ */
35
+ data?: Array<CompanyResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the CompanyResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfCompanyResourceArrayResponse(value: object): value is CompanyResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function CompanyResourceArrayResponseFromJSON(json: any): CompanyResourceArrayResponse {
46
+ return CompanyResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function CompanyResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompanyResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CompanyResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function CompanyResourceArrayResponseToJSON(json: any): CompanyResourceArrayResponse {
60
+ return CompanyResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function CompanyResourceArrayResponseToJSONTyped(value?: CompanyResourceArrayResponse | 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(CompanyResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,140 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CCTV Registers API
5
+ * API documentation for the CCTV Registers application
6
+ *
7
+ * The version of the OpenAPI document: 0.1.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 { CreateFormARequestAnswersInner } from './CreateFormARequestAnswersInner';
17
+ import {
18
+ CreateFormARequestAnswersInnerFromJSON,
19
+ CreateFormARequestAnswersInnerFromJSONTyped,
20
+ CreateFormARequestAnswersInnerToJSON,
21
+ CreateFormARequestAnswersInnerToJSONTyped,
22
+ } from './CreateFormARequestAnswersInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CreateFormARequest
28
+ */
29
+ export interface CreateFormARequest {
30
+ /**
31
+ *
32
+ * @type {Array<CreateFormARequestAnswersInner>}
33
+ * @memberof CreateFormARequest
34
+ */
35
+ answers: Array<CreateFormARequestAnswersInner>;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CreateFormARequest
40
+ */
41
+ jobNumber?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof CreateFormARequest
46
+ */
47
+ venueId: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof CreateFormARequest
52
+ */
53
+ signature: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof CreateFormARequest
58
+ */
59
+ emailNote?: string | null;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof CreateFormARequest
64
+ */
65
+ longitude?: string | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof CreateFormARequest
70
+ */
71
+ latitude?: string | null;
72
+ /**
73
+ *
74
+ * @type {Date}
75
+ * @memberof CreateFormARequest
76
+ */
77
+ date?: Date | null;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof CreateFormARequest
82
+ */
83
+ managerId?: string;
84
+ }
85
+
86
+ /**
87
+ * Check if a given object implements the CreateFormARequest interface.
88
+ */
89
+ export function instanceOfCreateFormARequest(value: object): value is CreateFormARequest {
90
+ if (!('answers' in value) || value['answers'] === undefined) return false;
91
+ if (!('venueId' in value) || value['venueId'] === undefined) return false;
92
+ if (!('signature' in value) || value['signature'] === undefined) return false;
93
+ return true;
94
+ }
95
+
96
+ export function CreateFormARequestFromJSON(json: any): CreateFormARequest {
97
+ return CreateFormARequestFromJSONTyped(json, false);
98
+ }
99
+
100
+ export function CreateFormARequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFormARequest {
101
+ if (json == null) {
102
+ return json;
103
+ }
104
+ return {
105
+
106
+ 'answers': ((json['answers'] as Array<any>).map(CreateFormARequestAnswersInnerFromJSON)),
107
+ 'jobNumber': json['job_number'] == null ? undefined : json['job_number'],
108
+ 'venueId': json['venue_id'],
109
+ 'signature': json['signature'],
110
+ 'emailNote': json['email_note'] == null ? undefined : json['email_note'],
111
+ 'longitude': json['longitude'] == null ? undefined : json['longitude'],
112
+ 'latitude': json['latitude'] == null ? undefined : json['latitude'],
113
+ 'date': json['date'] == null ? undefined : (new Date(json['date'])),
114
+ 'managerId': json['manager_id'] == null ? undefined : json['manager_id'],
115
+ };
116
+ }
117
+
118
+ export function CreateFormARequestToJSON(json: any): CreateFormARequest {
119
+ return CreateFormARequestToJSONTyped(json, false);
120
+ }
121
+
122
+ export function CreateFormARequestToJSONTyped(value?: CreateFormARequest | null, ignoreDiscriminator: boolean = false): any {
123
+ if (value == null) {
124
+ return value;
125
+ }
126
+
127
+ return {
128
+
129
+ 'answers': ((value['answers'] as Array<any>).map(CreateFormARequestAnswersInnerToJSON)),
130
+ 'job_number': value['jobNumber'],
131
+ 'venue_id': value['venueId'],
132
+ 'signature': value['signature'],
133
+ 'email_note': value['emailNote'],
134
+ 'longitude': value['longitude'],
135
+ 'latitude': value['latitude'],
136
+ 'date': value['date'] === null ? null : ((value['date'] as any)?.toISOString()),
137
+ 'manager_id': value['managerId'],
138
+ };
139
+ }
140
+