@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.
- package/.openapi-generator/FILES +77 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/dist/apis/AccountApi.d.ts +45 -0
- package/dist/apis/AccountApi.js +210 -0
- package/dist/apis/AuthApi.d.ts +90 -0
- package/dist/apis/AuthApi.js +458 -0
- package/dist/apis/CompaniesApi.d.ts +102 -0
- package/dist/apis/CompaniesApi.js +442 -0
- package/dist/apis/DashboardApi.d.ts +26 -0
- package/dist/apis/DashboardApi.js +122 -0
- package/dist/apis/FormAApi.d.ts +90 -0
- package/dist/apis/FormAApi.js +395 -0
- package/dist/apis/FormBApi.d.ts +79 -0
- package/dist/apis/FormBApi.js +350 -0
- package/dist/apis/FormCApi.d.ts +90 -0
- package/dist/apis/FormCApi.js +395 -0
- package/dist/apis/ManagerApi.d.ts +42 -0
- package/dist/apis/ManagerApi.js +180 -0
- package/dist/apis/ManagersApi.d.ts +71 -0
- package/dist/apis/ManagersApi.js +307 -0
- package/dist/apis/NotificationsApi.d.ts +40 -0
- package/dist/apis/NotificationsApi.js +171 -0
- package/dist/apis/QuestionsApi.d.ts +71 -0
- package/dist/apis/QuestionsApi.js +307 -0
- package/dist/apis/TechniciansApi.d.ts +73 -0
- package/dist/apis/TechniciansApi.js +308 -0
- package/dist/apis/UploadApi.d.ts +29 -0
- package/dist/apis/UploadApi.js +125 -0
- package/dist/apis/VenueApi.d.ts +41 -0
- package/dist/apis/VenueApi.js +176 -0
- package/dist/apis/VenuesApi.d.ts +144 -0
- package/dist/apis/VenuesApi.js +623 -0
- package/dist/apis/index.d.ts +15 -0
- package/dist/apis/index.js +33 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AssetFileForUploadResource.d.ts +52 -0
- package/dist/models/AssetFileForUploadResource.js +63 -0
- package/dist/models/AssetFileForUploadResourceArrayResponse.d.ts +33 -0
- package/dist/models/AssetFileForUploadResourceArrayResponse.js +50 -0
- package/dist/models/AssetLiteResource.d.ts +38 -0
- package/dist/models/AssetLiteResource.js +53 -0
- package/dist/models/AssetLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/AssetLiteResourceArrayResponse.js +50 -0
- package/dist/models/AssetResource.d.ts +62 -0
- package/dist/models/AssetResource.js +67 -0
- package/dist/models/AssetResourceArrayResponse.d.ts +33 -0
- package/dist/models/AssetResourceArrayResponse.js +50 -0
- package/dist/models/CompanyResource.d.ts +56 -0
- package/dist/models/CompanyResource.js +67 -0
- package/dist/models/CompanyResourceArrayResponse.d.ts +33 -0
- package/dist/models/CompanyResourceArrayResponse.js +50 -0
- package/dist/models/CreateFormARequest.d.ts +81 -0
- package/dist/models/CreateFormARequest.js +73 -0
- package/dist/models/CreateFormARequestAnswersInner.d.ts +38 -0
- package/dist/models/CreateFormARequestAnswersInner.js +55 -0
- package/dist/models/CreateNotificationSilenceRequest.d.ts +46 -0
- package/dist/models/CreateNotificationSilenceRequest.js +63 -0
- package/dist/models/CreateOrUpdateCompanyRequest.d.ts +50 -0
- package/dist/models/CreateOrUpdateCompanyRequest.js +61 -0
- package/dist/models/CreateOrUpdateFormCRequest.d.ts +98 -0
- package/dist/models/CreateOrUpdateFormCRequest.js +80 -0
- package/dist/models/CreateOrUpdateManagerRequest.d.ts +92 -0
- package/dist/models/CreateOrUpdateManagerRequest.js +81 -0
- package/dist/models/CreateOrUpdateQuestionRequest.d.ts +38 -0
- package/dist/models/CreateOrUpdateQuestionRequest.js +53 -0
- package/dist/models/CreateOrUpdateTechnicianRequest.d.ts +56 -0
- package/dist/models/CreateOrUpdateTechnicianRequest.js +65 -0
- package/dist/models/CreateOrUpdateVenueRequest.d.ts +93 -0
- package/dist/models/CreateOrUpdateVenueRequest.js +86 -0
- package/dist/models/CreateOrUpdateVenueRequestHoursInner.d.ts +38 -0
- package/dist/models/CreateOrUpdateVenueRequestHoursInner.js +55 -0
- package/dist/models/FindNearbyVenuesRequest.d.ts +38 -0
- package/dist/models/FindNearbyVenuesRequest.js +55 -0
- package/dist/models/FormAResource.d.ts +122 -0
- package/dist/models/FormAResource.js +101 -0
- package/dist/models/FormAResourceArrayResponse.d.ts +33 -0
- package/dist/models/FormAResourceArrayResponse.js +50 -0
- package/dist/models/FormBResource.d.ts +86 -0
- package/dist/models/FormBResource.js +75 -0
- package/dist/models/FormBResourceArrayResponse.d.ts +33 -0
- package/dist/models/FormBResourceArrayResponse.js +50 -0
- package/dist/models/FormCResource.d.ts +112 -0
- package/dist/models/FormCResource.js +101 -0
- package/dist/models/FormCResourceArrayResponse.d.ts +33 -0
- package/dist/models/FormCResourceArrayResponse.js +50 -0
- package/dist/models/GenericResponse.d.ts +32 -0
- package/dist/models/GenericResponse.js +49 -0
- package/dist/models/GetUploadUrlRequest.d.ts +56 -0
- package/dist/models/GetUploadUrlRequest.js +71 -0
- package/dist/models/ManagerResource.d.ts +128 -0
- package/dist/models/ManagerResource.js +107 -0
- package/dist/models/ManagerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ManagerResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedCompanyResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCompanyResourceResponse.js +57 -0
- package/dist/models/PaginatedFormAResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedFormAResourceResponse.js +57 -0
- package/dist/models/PaginatedFormBResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedFormBResourceResponse.js +57 -0
- package/dist/models/PaginatedFormCResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedFormCResourceResponse.js +57 -0
- package/dist/models/PaginatedManagerResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedManagerResourceResponse.js +57 -0
- package/dist/models/PaginatedQuestionResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedQuestionResourceResponse.js +57 -0
- package/dist/models/PaginatedTechnicianResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTechnicianResourceResponse.js +57 -0
- package/dist/models/PaginatedVenueResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedVenueResourceResponse.js +57 -0
- package/dist/models/PagingMetadata.d.ts +68 -0
- package/dist/models/PagingMetadata.js +75 -0
- package/dist/models/QuestionResource.d.ts +50 -0
- package/dist/models/QuestionResource.js +61 -0
- package/dist/models/QuestionResourceArrayResponse.d.ts +33 -0
- package/dist/models/QuestionResourceArrayResponse.js +50 -0
- package/dist/models/SearchCompaniesRequest.d.ts +90 -0
- package/dist/models/SearchCompaniesRequest.js +78 -0
- package/dist/models/SearchTechniciansRequest.d.ts +92 -0
- package/dist/models/SearchTechniciansRequest.js +80 -0
- package/dist/models/TechnicianResource.d.ts +80 -0
- package/dist/models/TechnicianResource.js +81 -0
- package/dist/models/TechnicianResourceArrayResponse.d.ts +33 -0
- package/dist/models/TechnicianResourceArrayResponse.js +50 -0
- package/dist/models/UpdateFormARequest.d.ts +57 -0
- package/dist/models/UpdateFormARequest.js +60 -0
- package/dist/models/UpdateFormARequestAnswersInner.d.ts +38 -0
- package/dist/models/UpdateFormARequestAnswersInner.js +55 -0
- package/dist/models/UpdateFormBRequest.d.ts +50 -0
- package/dist/models/UpdateFormBRequest.js +56 -0
- package/dist/models/UpdateNonTradingDaysRequest.d.ts +32 -0
- package/dist/models/UpdateNonTradingDaysRequest.js +49 -0
- package/dist/models/UserResource.d.ts +68 -0
- package/dist/models/UserResource.js +71 -0
- package/dist/models/UserResourceArrayResponse.d.ts +33 -0
- package/dist/models/UserResourceArrayResponse.js +50 -0
- package/dist/models/VenueResource.d.ts +153 -0
- package/dist/models/VenueResource.js +132 -0
- package/dist/models/VenueResourceArrayResponse.d.ts +33 -0
- package/dist/models/VenueResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +52 -0
- package/dist/models/index.js +70 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +564 -0
- package/package.json +19 -0
- package/src/apis/AccountApi.ts +132 -0
- package/src/apis/AuthApi.ts +291 -0
- package/src/apis/CompaniesApi.ts +341 -0
- package/src/apis/DashboardApi.ts +59 -0
- package/src/apis/FormAApi.ts +301 -0
- package/src/apis/FormBApi.ts +262 -0
- package/src/apis/FormCApi.ts +298 -0
- package/src/apis/ManagerApi.ts +133 -0
- package/src/apis/ManagersApi.ts +228 -0
- package/src/apis/NotificationsApi.ts +110 -0
- package/src/apis/QuestionsApi.ts +225 -0
- package/src/apis/TechniciansApi.ts +234 -0
- package/src/apis/UploadApi.ts +69 -0
- package/src/apis/VenueApi.ts +121 -0
- package/src/apis/VenuesApi.ts +492 -0
- package/src/apis/index.ts +17 -0
- package/src/index.ts +5 -0
- package/src/models/AssetFileForUploadResource.ts +93 -0
- package/src/models/AssetFileForUploadResourceArrayResponse.ts +73 -0
- package/src/models/AssetLiteResource.ts +74 -0
- package/src/models/AssetLiteResourceArrayResponse.ts +73 -0
- package/src/models/AssetResource.ts +109 -0
- package/src/models/AssetResourceArrayResponse.ts +73 -0
- package/src/models/CompanyResource.ts +102 -0
- package/src/models/CompanyResourceArrayResponse.ts +73 -0
- package/src/models/CreateFormARequest.ts +140 -0
- package/src/models/CreateFormARequestAnswersInner.ts +75 -0
- package/src/models/CreateNotificationSilenceRequest.ts +86 -0
- package/src/models/CreateOrUpdateCompanyRequest.ts +92 -0
- package/src/models/CreateOrUpdateFormCRequest.ts +157 -0
- package/src/models/CreateOrUpdateManagerRequest.ts +151 -0
- package/src/models/CreateOrUpdateQuestionRequest.ts +74 -0
- package/src/models/CreateOrUpdateTechnicianRequest.ts +101 -0
- package/src/models/CreateOrUpdateVenueRequest.ts +161 -0
- package/src/models/CreateOrUpdateVenueRequestHoursInner.ts +75 -0
- package/src/models/FindNearbyVenuesRequest.ts +75 -0
- package/src/models/FormAResource.ts +196 -0
- package/src/models/FormAResourceArrayResponse.ts +73 -0
- package/src/models/FormBResource.ts +141 -0
- package/src/models/FormBResourceArrayResponse.ts +73 -0
- package/src/models/FormCResource.ts +196 -0
- package/src/models/FormCResourceArrayResponse.ts +73 -0
- package/src/models/GenericResponse.ts +65 -0
- package/src/models/GetUploadUrlRequest.ts +99 -0
- package/src/models/ManagerResource.ts +206 -0
- package/src/models/ManagerResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedCompanyResourceResponse.ts +90 -0
- package/src/models/PaginatedFormAResourceResponse.ts +90 -0
- package/src/models/PaginatedFormBResourceResponse.ts +90 -0
- package/src/models/PaginatedFormCResourceResponse.ts +90 -0
- package/src/models/PaginatedManagerResourceResponse.ts +90 -0
- package/src/models/PaginatedQuestionResourceResponse.ts +90 -0
- package/src/models/PaginatedTechnicianResourceResponse.ts +90 -0
- package/src/models/PaginatedVenueResourceResponse.ts +90 -0
- package/src/models/PagingMetadata.ts +120 -0
- package/src/models/QuestionResource.ts +92 -0
- package/src/models/QuestionResourceArrayResponse.ts +73 -0
- package/src/models/SearchCompaniesRequest.ts +141 -0
- package/src/models/SearchTechniciansRequest.ts +143 -0
- package/src/models/TechnicianResource.ts +137 -0
- package/src/models/TechnicianResourceArrayResponse.ts +73 -0
- package/src/models/UpdateFormARequest.ts +106 -0
- package/src/models/UpdateFormARequestAnswersInner.ts +75 -0
- package/src/models/UpdateFormBRequest.ts +89 -0
- package/src/models/UpdateNonTradingDaysRequest.ts +65 -0
- package/src/models/UserResource.ts +118 -0
- package/src/models/UserResourceArrayResponse.ts +73 -0
- package/src/models/VenueResource.ts +254 -0
- package/src/models/VenueResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +54 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,141 @@
|
|
|
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 FormBResource
|
|
20
|
+
*/
|
|
21
|
+
export interface FormBResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof FormBResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof FormBResource
|
|
32
|
+
*/
|
|
33
|
+
venueId: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof FormBResource
|
|
38
|
+
*/
|
|
39
|
+
description: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof FormBResource
|
|
44
|
+
*/
|
|
45
|
+
emailNote?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof FormBResource
|
|
50
|
+
*/
|
|
51
|
+
arrangementDate?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof FormBResource
|
|
56
|
+
*/
|
|
57
|
+
repairDate?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof FormBResource
|
|
62
|
+
*/
|
|
63
|
+
formAId?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof FormBResource
|
|
68
|
+
*/
|
|
69
|
+
arrangementManagerName?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {object}
|
|
73
|
+
* @memberof FormBResource
|
|
74
|
+
*/
|
|
75
|
+
reportedDate: object;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof FormBResource
|
|
80
|
+
*/
|
|
81
|
+
reporterName: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the FormBResource interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfFormBResource(value: object): value is FormBResource {
|
|
88
|
+
if (!('venueId' in value) || value['venueId'] === undefined) return false;
|
|
89
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
90
|
+
if (!('reportedDate' in value) || value['reportedDate'] === undefined) return false;
|
|
91
|
+
if (!('reporterName' in value) || value['reporterName'] === undefined) return false;
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function FormBResourceFromJSON(json: any): FormBResource {
|
|
96
|
+
return FormBResourceFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function FormBResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormBResource {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
106
|
+
'venueId': json['venue_id'],
|
|
107
|
+
'description': json['description'],
|
|
108
|
+
'emailNote': json['email_note'] == null ? undefined : json['email_note'],
|
|
109
|
+
'arrangementDate': json['arrangement_date'] == null ? undefined : json['arrangement_date'],
|
|
110
|
+
'repairDate': json['repair_date'] == null ? undefined : json['repair_date'],
|
|
111
|
+
'formAId': json['form_a_id'] == null ? undefined : json['form_a_id'],
|
|
112
|
+
'arrangementManagerName': json['arrangement_manager_name'] == null ? undefined : json['arrangement_manager_name'],
|
|
113
|
+
'reportedDate': json['reported_date'],
|
|
114
|
+
'reporterName': json['reporter_name'],
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function FormBResourceToJSON(json: any): FormBResource {
|
|
119
|
+
return FormBResourceToJSONTyped(json, false);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function FormBResourceToJSONTyped(value?: FormBResource | null, ignoreDiscriminator: boolean = false): any {
|
|
123
|
+
if (value == null) {
|
|
124
|
+
return value;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'id': value['id'],
|
|
130
|
+
'venue_id': value['venueId'],
|
|
131
|
+
'description': value['description'],
|
|
132
|
+
'email_note': value['emailNote'],
|
|
133
|
+
'arrangement_date': value['arrangementDate'],
|
|
134
|
+
'repair_date': value['repairDate'],
|
|
135
|
+
'form_a_id': value['formAId'],
|
|
136
|
+
'arrangement_manager_name': value['arrangementManagerName'],
|
|
137
|
+
'reported_date': value['reportedDate'],
|
|
138
|
+
'reporter_name': value['reporterName'],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
@@ -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 { FormBResource } from './FormBResource';
|
|
17
|
+
import {
|
|
18
|
+
FormBResourceFromJSON,
|
|
19
|
+
FormBResourceFromJSONTyped,
|
|
20
|
+
FormBResourceToJSON,
|
|
21
|
+
FormBResourceToJSONTyped,
|
|
22
|
+
} from './FormBResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface FormBResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface FormBResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<FormBResource>}
|
|
33
|
+
* @memberof FormBResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<FormBResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the FormBResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfFormBResourceArrayResponse(value: object): value is FormBResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function FormBResourceArrayResponseFromJSON(json: any): FormBResourceArrayResponse {
|
|
46
|
+
return FormBResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function FormBResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormBResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(FormBResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function FormBResourceArrayResponseToJSON(json: any): FormBResourceArrayResponse {
|
|
60
|
+
return FormBResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function FormBResourceArrayResponseToJSONTyped(value?: FormBResourceArrayResponse | 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(FormBResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,196 @@
|
|
|
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 { VenueResource } from './VenueResource';
|
|
17
|
+
import {
|
|
18
|
+
VenueResourceFromJSON,
|
|
19
|
+
VenueResourceFromJSONTyped,
|
|
20
|
+
VenueResourceToJSON,
|
|
21
|
+
VenueResourceToJSONTyped,
|
|
22
|
+
} from './VenueResource';
|
|
23
|
+
import type { TechnicianResource } from './TechnicianResource';
|
|
24
|
+
import {
|
|
25
|
+
TechnicianResourceFromJSON,
|
|
26
|
+
TechnicianResourceFromJSONTyped,
|
|
27
|
+
TechnicianResourceToJSON,
|
|
28
|
+
TechnicianResourceToJSONTyped,
|
|
29
|
+
} from './TechnicianResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface FormCResource
|
|
35
|
+
*/
|
|
36
|
+
export interface FormCResource {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof FormCResource
|
|
41
|
+
*/
|
|
42
|
+
id?: number | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof FormCResource
|
|
47
|
+
*/
|
|
48
|
+
formImage?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {TechnicianResource}
|
|
52
|
+
* @memberof FormCResource
|
|
53
|
+
*/
|
|
54
|
+
technician: TechnicianResource | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {VenueResource}
|
|
58
|
+
* @memberof FormCResource
|
|
59
|
+
*/
|
|
60
|
+
venue: VenueResource | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof FormCResource
|
|
65
|
+
*/
|
|
66
|
+
note: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {object}
|
|
70
|
+
* @memberof FormCResource
|
|
71
|
+
*/
|
|
72
|
+
submittedAt: object;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof FormCResource
|
|
77
|
+
*/
|
|
78
|
+
technicianName: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof FormCResource
|
|
83
|
+
*/
|
|
84
|
+
technicianLicenceNumber: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof FormCResource
|
|
89
|
+
*/
|
|
90
|
+
technicianCompanyName: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof FormCResource
|
|
95
|
+
*/
|
|
96
|
+
systemWorking: boolean;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {boolean}
|
|
100
|
+
* @memberof FormCResource
|
|
101
|
+
*/
|
|
102
|
+
systemRecording: boolean;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof FormCResource
|
|
107
|
+
*/
|
|
108
|
+
cameras: boolean;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {boolean}
|
|
112
|
+
* @memberof FormCResource
|
|
113
|
+
*/
|
|
114
|
+
recording: boolean;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {boolean}
|
|
118
|
+
* @memberof FormCResource
|
|
119
|
+
*/
|
|
120
|
+
matchTime: boolean;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Check if a given object implements the FormCResource interface.
|
|
125
|
+
*/
|
|
126
|
+
export function instanceOfFormCResource(value: object): value is FormCResource {
|
|
127
|
+
if (!('technician' in value) || value['technician'] === undefined) return false;
|
|
128
|
+
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
129
|
+
if (!('note' in value) || value['note'] === undefined) return false;
|
|
130
|
+
if (!('submittedAt' in value) || value['submittedAt'] === undefined) return false;
|
|
131
|
+
if (!('technicianName' in value) || value['technicianName'] === undefined) return false;
|
|
132
|
+
if (!('technicianLicenceNumber' in value) || value['technicianLicenceNumber'] === undefined) return false;
|
|
133
|
+
if (!('technicianCompanyName' in value) || value['technicianCompanyName'] === undefined) return false;
|
|
134
|
+
if (!('systemWorking' in value) || value['systemWorking'] === undefined) return false;
|
|
135
|
+
if (!('systemRecording' in value) || value['systemRecording'] === undefined) return false;
|
|
136
|
+
if (!('cameras' in value) || value['cameras'] === undefined) return false;
|
|
137
|
+
if (!('recording' in value) || value['recording'] === undefined) return false;
|
|
138
|
+
if (!('matchTime' in value) || value['matchTime'] === undefined) return false;
|
|
139
|
+
return true;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function FormCResourceFromJSON(json: any): FormCResource {
|
|
143
|
+
return FormCResourceFromJSONTyped(json, false);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function FormCResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormCResource {
|
|
147
|
+
if (json == null) {
|
|
148
|
+
return json;
|
|
149
|
+
}
|
|
150
|
+
return {
|
|
151
|
+
|
|
152
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
153
|
+
'formImage': json['form_image'] == null ? undefined : json['form_image'],
|
|
154
|
+
'technician': TechnicianResourceFromJSON(json['technician']),
|
|
155
|
+
'venue': VenueResourceFromJSON(json['venue']),
|
|
156
|
+
'note': json['note'],
|
|
157
|
+
'submittedAt': json['submitted_at'],
|
|
158
|
+
'technicianName': json['technician_name'],
|
|
159
|
+
'technicianLicenceNumber': json['technician_licence_number'],
|
|
160
|
+
'technicianCompanyName': json['technician_company_name'],
|
|
161
|
+
'systemWorking': json['system_working'],
|
|
162
|
+
'systemRecording': json['system_recording'],
|
|
163
|
+
'cameras': json['cameras'],
|
|
164
|
+
'recording': json['recording'],
|
|
165
|
+
'matchTime': json['match_time'],
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function FormCResourceToJSON(json: any): FormCResource {
|
|
170
|
+
return FormCResourceToJSONTyped(json, false);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function FormCResourceToJSONTyped(value?: FormCResource | null, ignoreDiscriminator: boolean = false): any {
|
|
174
|
+
if (value == null) {
|
|
175
|
+
return value;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return {
|
|
179
|
+
|
|
180
|
+
'id': value['id'],
|
|
181
|
+
'form_image': value['formImage'],
|
|
182
|
+
'technician': TechnicianResourceToJSON(value['technician']),
|
|
183
|
+
'venue': VenueResourceToJSON(value['venue']),
|
|
184
|
+
'note': value['note'],
|
|
185
|
+
'submitted_at': value['submittedAt'],
|
|
186
|
+
'technician_name': value['technicianName'],
|
|
187
|
+
'technician_licence_number': value['technicianLicenceNumber'],
|
|
188
|
+
'technician_company_name': value['technicianCompanyName'],
|
|
189
|
+
'system_working': value['systemWorking'],
|
|
190
|
+
'system_recording': value['systemRecording'],
|
|
191
|
+
'cameras': value['cameras'],
|
|
192
|
+
'recording': value['recording'],
|
|
193
|
+
'match_time': value['matchTime'],
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
|
|
@@ -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 { FormCResource } from './FormCResource';
|
|
17
|
+
import {
|
|
18
|
+
FormCResourceFromJSON,
|
|
19
|
+
FormCResourceFromJSONTyped,
|
|
20
|
+
FormCResourceToJSON,
|
|
21
|
+
FormCResourceToJSONTyped,
|
|
22
|
+
} from './FormCResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface FormCResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface FormCResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<FormCResource>}
|
|
33
|
+
* @memberof FormCResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<FormCResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the FormCResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfFormCResourceArrayResponse(value: object): value is FormCResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function FormCResourceArrayResponseFromJSON(json: any): FormCResourceArrayResponse {
|
|
46
|
+
return FormCResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function FormCResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormCResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(FormCResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function FormCResourceArrayResponseToJSON(json: any): FormCResourceArrayResponse {
|
|
60
|
+
return FormCResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function FormCResourceArrayResponseToJSONTyped(value?: FormCResourceArrayResponse | 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(FormCResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 GenericResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface GenericResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GenericResponse
|
|
26
|
+
*/
|
|
27
|
+
message?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GenericResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfGenericResponse(value: object): value is GenericResponse {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function GenericResponseFromJSON(json: any): GenericResponse {
|
|
38
|
+
return GenericResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function GenericResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenericResponse {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function GenericResponseToJSON(json: any): GenericResponse {
|
|
52
|
+
return GenericResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function GenericResponseToJSONTyped(value?: GenericResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'message': value['message'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
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 GetUploadUrlRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface GetUploadUrlRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetUploadUrlRequest
|
|
26
|
+
*/
|
|
27
|
+
fileName: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetUploadUrlRequest
|
|
32
|
+
*/
|
|
33
|
+
fileType: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetUploadUrlRequest
|
|
38
|
+
*/
|
|
39
|
+
destination: GetUploadUrlRequestDestinationEnum;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const GetUploadUrlRequestDestinationEnum = {
|
|
47
|
+
FormA: 'form-a',
|
|
48
|
+
FormB: 'form-b',
|
|
49
|
+
FormC: 'form-c',
|
|
50
|
+
Managers: 'managers',
|
|
51
|
+
Technicians: 'technicians',
|
|
52
|
+
Venues: 'venues'
|
|
53
|
+
} as const;
|
|
54
|
+
export type GetUploadUrlRequestDestinationEnum = typeof GetUploadUrlRequestDestinationEnum[keyof typeof GetUploadUrlRequestDestinationEnum];
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the GetUploadUrlRequest interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfGetUploadUrlRequest(value: object): value is GetUploadUrlRequest {
|
|
61
|
+
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
62
|
+
if (!('fileType' in value) || value['fileType'] === undefined) return false;
|
|
63
|
+
if (!('destination' in value) || value['destination'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function GetUploadUrlRequestFromJSON(json: any): GetUploadUrlRequest {
|
|
68
|
+
return GetUploadUrlRequestFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function GetUploadUrlRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUploadUrlRequest {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'fileName': json['fileName'],
|
|
78
|
+
'fileType': json['fileType'],
|
|
79
|
+
'destination': json['destination'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function GetUploadUrlRequestToJSON(json: any): GetUploadUrlRequest {
|
|
84
|
+
return GetUploadUrlRequestToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function GetUploadUrlRequestToJSONTyped(value?: GetUploadUrlRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'fileName': value['fileName'],
|
|
95
|
+
'fileType': value['fileType'],
|
|
96
|
+
'destination': value['destination'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|