@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,75 @@
|
|
|
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 CreateFormARequestAnswersInner
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateFormARequestAnswersInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateFormARequestAnswersInner
|
|
26
|
+
*/
|
|
27
|
+
questionId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof CreateFormARequestAnswersInner
|
|
32
|
+
*/
|
|
33
|
+
answer: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CreateFormARequestAnswersInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCreateFormARequestAnswersInner(value: object): value is CreateFormARequestAnswersInner {
|
|
40
|
+
if (!('questionId' in value) || value['questionId'] === undefined) return false;
|
|
41
|
+
if (!('answer' in value) || value['answer'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CreateFormARequestAnswersInnerFromJSON(json: any): CreateFormARequestAnswersInner {
|
|
46
|
+
return CreateFormARequestAnswersInnerFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CreateFormARequestAnswersInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFormARequestAnswersInner {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'questionId': json['question_id'],
|
|
56
|
+
'answer': json['answer'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CreateFormARequestAnswersInnerToJSON(json: any): CreateFormARequestAnswersInner {
|
|
61
|
+
return CreateFormARequestAnswersInnerToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CreateFormARequestAnswersInnerToJSONTyped(value?: CreateFormARequestAnswersInner | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'question_id': value['questionId'],
|
|
72
|
+
'answer': value['answer'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
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 CreateNotificationSilenceRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateNotificationSilenceRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateNotificationSilenceRequest
|
|
26
|
+
*/
|
|
27
|
+
installationId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateNotificationSilenceRequest
|
|
32
|
+
*/
|
|
33
|
+
reason: CreateNotificationSilenceRequestReasonEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const CreateNotificationSilenceRequestReasonEnum = {
|
|
41
|
+
NotTrading: 'not_trading',
|
|
42
|
+
NotRostered: 'not_rostered'
|
|
43
|
+
} as const;
|
|
44
|
+
export type CreateNotificationSilenceRequestReasonEnum = typeof CreateNotificationSilenceRequestReasonEnum[keyof typeof CreateNotificationSilenceRequestReasonEnum];
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the CreateNotificationSilenceRequest interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfCreateNotificationSilenceRequest(value: object): value is CreateNotificationSilenceRequest {
|
|
51
|
+
if (!('installationId' in value) || value['installationId'] === undefined) return false;
|
|
52
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CreateNotificationSilenceRequestFromJSON(json: any): CreateNotificationSilenceRequest {
|
|
57
|
+
return CreateNotificationSilenceRequestFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CreateNotificationSilenceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNotificationSilenceRequest {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'installationId': json['installation_id'],
|
|
67
|
+
'reason': json['reason'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function CreateNotificationSilenceRequestToJSON(json: any): CreateNotificationSilenceRequest {
|
|
72
|
+
return CreateNotificationSilenceRequestToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function CreateNotificationSilenceRequestToJSONTyped(value?: CreateNotificationSilenceRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'installation_id': value['installationId'],
|
|
83
|
+
'reason': value['reason'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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 CreateOrUpdateCompanyRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateOrUpdateCompanyRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateOrUpdateCompanyRequest
|
|
26
|
+
*/
|
|
27
|
+
address: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateOrUpdateCompanyRequest
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateOrUpdateCompanyRequest
|
|
38
|
+
*/
|
|
39
|
+
email: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateOrUpdateCompanyRequest
|
|
44
|
+
*/
|
|
45
|
+
licenceNumber?: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the CreateOrUpdateCompanyRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfCreateOrUpdateCompanyRequest(value: object): value is CreateOrUpdateCompanyRequest {
|
|
52
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
53
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
54
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CreateOrUpdateCompanyRequestFromJSON(json: any): CreateOrUpdateCompanyRequest {
|
|
59
|
+
return CreateOrUpdateCompanyRequestFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CreateOrUpdateCompanyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrUpdateCompanyRequest {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'address': json['address'],
|
|
69
|
+
'name': json['name'],
|
|
70
|
+
'email': json['email'],
|
|
71
|
+
'licenceNumber': json['licence_number'] == null ? undefined : json['licence_number'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function CreateOrUpdateCompanyRequestToJSON(json: any): CreateOrUpdateCompanyRequest {
|
|
76
|
+
return CreateOrUpdateCompanyRequestToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function CreateOrUpdateCompanyRequestToJSONTyped(value?: CreateOrUpdateCompanyRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'address': value['address'],
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'email': value['email'],
|
|
89
|
+
'licence_number': value['licenceNumber'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,157 @@
|
|
|
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 CreateOrUpdateFormCRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateOrUpdateFormCRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateOrUpdateFormCRequest
|
|
26
|
+
*/
|
|
27
|
+
venueId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateOrUpdateFormCRequest
|
|
32
|
+
*/
|
|
33
|
+
note?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateOrUpdateFormCRequest
|
|
38
|
+
*/
|
|
39
|
+
formImage?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateOrUpdateFormCRequest
|
|
44
|
+
*/
|
|
45
|
+
technicianName: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateOrUpdateFormCRequest
|
|
50
|
+
*/
|
|
51
|
+
technicianLicenceNumber: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CreateOrUpdateFormCRequest
|
|
56
|
+
*/
|
|
57
|
+
technicianCompanyName: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof CreateOrUpdateFormCRequest
|
|
62
|
+
*/
|
|
63
|
+
date?: Date | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof CreateOrUpdateFormCRequest
|
|
68
|
+
*/
|
|
69
|
+
systemWorking?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof CreateOrUpdateFormCRequest
|
|
74
|
+
*/
|
|
75
|
+
systemRecording?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof CreateOrUpdateFormCRequest
|
|
80
|
+
*/
|
|
81
|
+
cameras?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof CreateOrUpdateFormCRequest
|
|
86
|
+
*/
|
|
87
|
+
recording?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof CreateOrUpdateFormCRequest
|
|
92
|
+
*/
|
|
93
|
+
matchTime?: boolean;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Check if a given object implements the CreateOrUpdateFormCRequest interface.
|
|
98
|
+
*/
|
|
99
|
+
export function instanceOfCreateOrUpdateFormCRequest(value: object): value is CreateOrUpdateFormCRequest {
|
|
100
|
+
if (!('venueId' in value) || value['venueId'] === undefined) return false;
|
|
101
|
+
if (!('technicianName' in value) || value['technicianName'] === undefined) return false;
|
|
102
|
+
if (!('technicianLicenceNumber' in value) || value['technicianLicenceNumber'] === undefined) return false;
|
|
103
|
+
if (!('technicianCompanyName' in value) || value['technicianCompanyName'] === undefined) return false;
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function CreateOrUpdateFormCRequestFromJSON(json: any): CreateOrUpdateFormCRequest {
|
|
108
|
+
return CreateOrUpdateFormCRequestFromJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function CreateOrUpdateFormCRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrUpdateFormCRequest {
|
|
112
|
+
if (json == null) {
|
|
113
|
+
return json;
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'venueId': json['venue_id'],
|
|
118
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
119
|
+
'formImage': json['form_image'] == null ? undefined : json['form_image'],
|
|
120
|
+
'technicianName': json['technician_name'],
|
|
121
|
+
'technicianLicenceNumber': json['technician_licence_number'],
|
|
122
|
+
'technicianCompanyName': json['technician_company_name'],
|
|
123
|
+
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
|
124
|
+
'systemWorking': json['system_working'] == null ? undefined : json['system_working'],
|
|
125
|
+
'systemRecording': json['system_recording'] == null ? undefined : json['system_recording'],
|
|
126
|
+
'cameras': json['cameras'] == null ? undefined : json['cameras'],
|
|
127
|
+
'recording': json['recording'] == null ? undefined : json['recording'],
|
|
128
|
+
'matchTime': json['match_time'] == null ? undefined : json['match_time'],
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function CreateOrUpdateFormCRequestToJSON(json: any): CreateOrUpdateFormCRequest {
|
|
133
|
+
return CreateOrUpdateFormCRequestToJSONTyped(json, false);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function CreateOrUpdateFormCRequestToJSONTyped(value?: CreateOrUpdateFormCRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
137
|
+
if (value == null) {
|
|
138
|
+
return value;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
|
|
143
|
+
'venue_id': value['venueId'],
|
|
144
|
+
'note': value['note'],
|
|
145
|
+
'form_image': value['formImage'],
|
|
146
|
+
'technician_name': value['technicianName'],
|
|
147
|
+
'technician_licence_number': value['technicianLicenceNumber'],
|
|
148
|
+
'technician_company_name': value['technicianCompanyName'],
|
|
149
|
+
'date': value['date'] === null ? null : ((value['date'] as any)?.toISOString()),
|
|
150
|
+
'system_working': value['systemWorking'],
|
|
151
|
+
'system_recording': value['systemRecording'],
|
|
152
|
+
'cameras': value['cameras'],
|
|
153
|
+
'recording': value['recording'],
|
|
154
|
+
'match_time': value['matchTime'],
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
@@ -0,0 +1,151 @@
|
|
|
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 CreateOrUpdateManagerRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateOrUpdateManagerRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateOrUpdateManagerRequest
|
|
26
|
+
*/
|
|
27
|
+
phone: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateOrUpdateManagerRequest
|
|
32
|
+
*/
|
|
33
|
+
venueCode?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof CreateOrUpdateManagerRequest
|
|
38
|
+
*/
|
|
39
|
+
rmlvLicenceIssueDate: Date;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof CreateOrUpdateManagerRequest
|
|
44
|
+
*/
|
|
45
|
+
rmlvLicenceExpiryDate: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateOrUpdateManagerRequest
|
|
50
|
+
*/
|
|
51
|
+
rmlvLicenceNumber: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CreateOrUpdateManagerRequest
|
|
56
|
+
*/
|
|
57
|
+
rmlvLicenceImage?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof CreateOrUpdateManagerRequest
|
|
62
|
+
*/
|
|
63
|
+
licenceExpiryDate: Date;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CreateOrUpdateManagerRequest
|
|
68
|
+
*/
|
|
69
|
+
licenceNumber: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof CreateOrUpdateManagerRequest
|
|
74
|
+
*/
|
|
75
|
+
licenceImage?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof CreateOrUpdateManagerRequest
|
|
80
|
+
*/
|
|
81
|
+
signature?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof CreateOrUpdateManagerRequest
|
|
86
|
+
*/
|
|
87
|
+
profilePicture?: string | null;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the CreateOrUpdateManagerRequest interface.
|
|
92
|
+
*/
|
|
93
|
+
export function instanceOfCreateOrUpdateManagerRequest(value: object): value is CreateOrUpdateManagerRequest {
|
|
94
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
95
|
+
if (!('rmlvLicenceIssueDate' in value) || value['rmlvLicenceIssueDate'] === undefined) return false;
|
|
96
|
+
if (!('rmlvLicenceExpiryDate' in value) || value['rmlvLicenceExpiryDate'] === undefined) return false;
|
|
97
|
+
if (!('rmlvLicenceNumber' in value) || value['rmlvLicenceNumber'] === undefined) return false;
|
|
98
|
+
if (!('licenceExpiryDate' in value) || value['licenceExpiryDate'] === undefined) return false;
|
|
99
|
+
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function CreateOrUpdateManagerRequestFromJSON(json: any): CreateOrUpdateManagerRequest {
|
|
104
|
+
return CreateOrUpdateManagerRequestFromJSONTyped(json, false);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function CreateOrUpdateManagerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrUpdateManagerRequest {
|
|
108
|
+
if (json == null) {
|
|
109
|
+
return json;
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
|
|
113
|
+
'phone': json['phone'],
|
|
114
|
+
'venueCode': json['venue_code'] == null ? undefined : json['venue_code'],
|
|
115
|
+
'rmlvLicenceIssueDate': (new Date(json['rmlv_licence_issue_date'])),
|
|
116
|
+
'rmlvLicenceExpiryDate': (new Date(json['rmlv_licence_expiry_date'])),
|
|
117
|
+
'rmlvLicenceNumber': json['rmlv_licence_number'],
|
|
118
|
+
'rmlvLicenceImage': json['rmlv_licence_image'] == null ? undefined : json['rmlv_licence_image'],
|
|
119
|
+
'licenceExpiryDate': (new Date(json['licence_expiry_date'])),
|
|
120
|
+
'licenceNumber': json['licence_number'],
|
|
121
|
+
'licenceImage': json['licence_image'] == null ? undefined : json['licence_image'],
|
|
122
|
+
'signature': json['signature'] == null ? undefined : json['signature'],
|
|
123
|
+
'profilePicture': json['profile_picture'] == null ? undefined : json['profile_picture'],
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function CreateOrUpdateManagerRequestToJSON(json: any): CreateOrUpdateManagerRequest {
|
|
128
|
+
return CreateOrUpdateManagerRequestToJSONTyped(json, false);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function CreateOrUpdateManagerRequestToJSONTyped(value?: CreateOrUpdateManagerRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
132
|
+
if (value == null) {
|
|
133
|
+
return value;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
return {
|
|
137
|
+
|
|
138
|
+
'phone': value['phone'],
|
|
139
|
+
'venue_code': value['venueCode'],
|
|
140
|
+
'rmlv_licence_issue_date': ((value['rmlvLicenceIssueDate']).toISOString()),
|
|
141
|
+
'rmlv_licence_expiry_date': ((value['rmlvLicenceExpiryDate']).toISOString()),
|
|
142
|
+
'rmlv_licence_number': value['rmlvLicenceNumber'],
|
|
143
|
+
'rmlv_licence_image': value['rmlvLicenceImage'],
|
|
144
|
+
'licence_expiry_date': ((value['licenceExpiryDate']).toISOString()),
|
|
145
|
+
'licence_number': value['licenceNumber'],
|
|
146
|
+
'licence_image': value['licenceImage'],
|
|
147
|
+
'signature': value['signature'],
|
|
148
|
+
'profile_picture': value['profilePicture'],
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
@@ -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 CreateOrUpdateQuestionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateOrUpdateQuestionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateOrUpdateQuestionRequest
|
|
26
|
+
*/
|
|
27
|
+
title: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CreateOrUpdateQuestionRequest
|
|
32
|
+
*/
|
|
33
|
+
venueId?: number | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CreateOrUpdateQuestionRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCreateOrUpdateQuestionRequest(value: object): value is CreateOrUpdateQuestionRequest {
|
|
40
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function CreateOrUpdateQuestionRequestFromJSON(json: any): CreateOrUpdateQuestionRequest {
|
|
45
|
+
return CreateOrUpdateQuestionRequestFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function CreateOrUpdateQuestionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrUpdateQuestionRequest {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'title': json['title'],
|
|
55
|
+
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CreateOrUpdateQuestionRequestToJSON(json: any): CreateOrUpdateQuestionRequest {
|
|
60
|
+
return CreateOrUpdateQuestionRequestToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CreateOrUpdateQuestionRequestToJSONTyped(value?: CreateOrUpdateQuestionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'title': value['title'],
|
|
71
|
+
'venue_id': value['venueId'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|