@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,89 @@
|
|
|
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 UpdateFormBRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateFormBRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Date}
|
|
25
|
+
* @memberof UpdateFormBRequest
|
|
26
|
+
*/
|
|
27
|
+
repairDate?: Date | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateFormBRequest
|
|
32
|
+
*/
|
|
33
|
+
description?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof UpdateFormBRequest
|
|
38
|
+
*/
|
|
39
|
+
arrangementDate?: Date | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UpdateFormBRequest
|
|
44
|
+
*/
|
|
45
|
+
arrangementManagerName?: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the UpdateFormBRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfUpdateFormBRequest(value: object): value is UpdateFormBRequest {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function UpdateFormBRequestFromJSON(json: any): UpdateFormBRequest {
|
|
56
|
+
return UpdateFormBRequestFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UpdateFormBRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFormBRequest {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'repairDate': json['repair_date'] == null ? undefined : (new Date(json['repair_date'])),
|
|
66
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
67
|
+
'arrangementDate': json['arrangement_date'] == null ? undefined : (new Date(json['arrangement_date'])),
|
|
68
|
+
'arrangementManagerName': json['arrangement_manager_name'] == null ? undefined : json['arrangement_manager_name'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function UpdateFormBRequestToJSON(json: any): UpdateFormBRequest {
|
|
73
|
+
return UpdateFormBRequestToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function UpdateFormBRequestToJSONTyped(value?: UpdateFormBRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'repair_date': value['repairDate'] === null ? null : ((value['repairDate'] as any)?.toISOString()),
|
|
84
|
+
'description': value['description'],
|
|
85
|
+
'arrangement_date': value['arrangementDate'] === null ? null : ((value['arrangementDate'] as any)?.toISOString()),
|
|
86
|
+
'arrangement_manager_name': value['arrangementManagerName'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -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 UpdateNonTradingDaysRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateNonTradingDaysRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof UpdateNonTradingDaysRequest
|
|
26
|
+
*/
|
|
27
|
+
notTradingDays?: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdateNonTradingDaysRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdateNonTradingDaysRequest(value: object): value is UpdateNonTradingDaysRequest {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function UpdateNonTradingDaysRequestFromJSON(json: any): UpdateNonTradingDaysRequest {
|
|
38
|
+
return UpdateNonTradingDaysRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function UpdateNonTradingDaysRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNonTradingDaysRequest {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'notTradingDays': json['not_trading_days'] == null ? undefined : json['not_trading_days'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UpdateNonTradingDaysRequestToJSON(json: any): UpdateNonTradingDaysRequest {
|
|
52
|
+
return UpdateNonTradingDaysRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function UpdateNonTradingDaysRequestToJSONTyped(value?: UpdateNonTradingDaysRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'not_trading_days': value['notTradingDays'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,118 @@
|
|
|
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 UserResource
|
|
20
|
+
*/
|
|
21
|
+
export interface UserResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UserResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UserResource
|
|
38
|
+
*/
|
|
39
|
+
email: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UserResource
|
|
44
|
+
*/
|
|
45
|
+
role: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UserResource
|
|
50
|
+
*/
|
|
51
|
+
phone: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof UserResource
|
|
56
|
+
*/
|
|
57
|
+
manager?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof UserResource
|
|
62
|
+
*/
|
|
63
|
+
technician?: string | null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the UserResource interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfUserResource(value: object): value is UserResource {
|
|
70
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
72
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
73
|
+
if (!('role' in value) || value['role'] === undefined) return false;
|
|
74
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function UserResourceFromJSON(json: any): UserResource {
|
|
79
|
+
return UserResourceFromJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function UserResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserResource {
|
|
83
|
+
if (json == null) {
|
|
84
|
+
return json;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'id': json['id'],
|
|
89
|
+
'name': json['name'],
|
|
90
|
+
'email': json['email'],
|
|
91
|
+
'role': json['role'],
|
|
92
|
+
'phone': json['phone'],
|
|
93
|
+
'manager': json['manager'] == null ? undefined : json['manager'],
|
|
94
|
+
'technician': json['technician'] == null ? undefined : json['technician'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function UserResourceToJSON(json: any): UserResource {
|
|
99
|
+
return UserResourceToJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function UserResourceToJSONTyped(value?: UserResource | null, ignoreDiscriminator: boolean = false): any {
|
|
103
|
+
if (value == null) {
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'id': value['id'],
|
|
110
|
+
'name': value['name'],
|
|
111
|
+
'email': value['email'],
|
|
112
|
+
'role': value['role'],
|
|
113
|
+
'phone': value['phone'],
|
|
114
|
+
'manager': value['manager'],
|
|
115
|
+
'technician': value['technician'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -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 { UserResource } from './UserResource';
|
|
17
|
+
import {
|
|
18
|
+
UserResourceFromJSON,
|
|
19
|
+
UserResourceFromJSONTyped,
|
|
20
|
+
UserResourceToJSON,
|
|
21
|
+
UserResourceToJSONTyped,
|
|
22
|
+
} from './UserResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UserResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface UserResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<UserResource>}
|
|
33
|
+
* @memberof UserResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<UserResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the UserResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfUserResourceArrayResponse(value: object): value is UserResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function UserResourceArrayResponseFromJSON(json: any): UserResourceArrayResponse {
|
|
46
|
+
return UserResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UserResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(UserResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UserResourceArrayResponseToJSON(json: any): UserResourceArrayResponse {
|
|
60
|
+
return UserResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function UserResourceArrayResponseToJSONTyped(value?: UserResourceArrayResponse | 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(UserResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,254 @@
|
|
|
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 VenueResource
|
|
28
|
+
*/
|
|
29
|
+
export interface VenueResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VenueResource
|
|
34
|
+
*/
|
|
35
|
+
id: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VenueResource
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof VenueResource
|
|
46
|
+
*/
|
|
47
|
+
licenceNumber: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof VenueResource
|
|
52
|
+
*/
|
|
53
|
+
address: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof VenueResource
|
|
58
|
+
*/
|
|
59
|
+
code: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof VenueResource
|
|
64
|
+
*/
|
|
65
|
+
phone: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {object}
|
|
69
|
+
* @memberof VenueResource
|
|
70
|
+
*/
|
|
71
|
+
hours: object;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {object}
|
|
75
|
+
* @memberof VenueResource
|
|
76
|
+
*/
|
|
77
|
+
notTradingDays: object;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof VenueResource
|
|
82
|
+
*/
|
|
83
|
+
isActive: boolean;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof VenueResource
|
|
88
|
+
*/
|
|
89
|
+
latitude: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof VenueResource
|
|
94
|
+
*/
|
|
95
|
+
longitude: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof VenueResource
|
|
100
|
+
*/
|
|
101
|
+
fenceDistance: number;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof VenueResource
|
|
106
|
+
*/
|
|
107
|
+
companyId: number;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {CompanyResource}
|
|
111
|
+
* @memberof VenueResource
|
|
112
|
+
*/
|
|
113
|
+
company: CompanyResource | null;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {object}
|
|
117
|
+
* @memberof VenueResource
|
|
118
|
+
*/
|
|
119
|
+
managers: object;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {object}
|
|
123
|
+
* @memberof VenueResource
|
|
124
|
+
*/
|
|
125
|
+
status: object;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {object}
|
|
129
|
+
* @memberof VenueResource
|
|
130
|
+
*/
|
|
131
|
+
enteredVenueCode: object;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {object}
|
|
135
|
+
* @memberof VenueResource
|
|
136
|
+
*/
|
|
137
|
+
questions: object;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {boolean}
|
|
141
|
+
* @memberof VenueResource
|
|
142
|
+
*/
|
|
143
|
+
hasCompletedFormA: boolean;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {boolean}
|
|
147
|
+
* @memberof VenueResource
|
|
148
|
+
*/
|
|
149
|
+
hasCompletedFormC: boolean;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {boolean}
|
|
153
|
+
* @memberof VenueResource
|
|
154
|
+
*/
|
|
155
|
+
appManagerSelection: boolean;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Check if a given object implements the VenueResource interface.
|
|
160
|
+
*/
|
|
161
|
+
export function instanceOfVenueResource(value: object): value is VenueResource {
|
|
162
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
163
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
164
|
+
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
165
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
166
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
167
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
168
|
+
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
169
|
+
if (!('notTradingDays' in value) || value['notTradingDays'] === undefined) return false;
|
|
170
|
+
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
171
|
+
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
172
|
+
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
173
|
+
if (!('fenceDistance' in value) || value['fenceDistance'] === undefined) return false;
|
|
174
|
+
if (!('companyId' in value) || value['companyId'] === undefined) return false;
|
|
175
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
176
|
+
if (!('managers' in value) || value['managers'] === undefined) return false;
|
|
177
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
178
|
+
if (!('enteredVenueCode' in value) || value['enteredVenueCode'] === undefined) return false;
|
|
179
|
+
if (!('questions' in value) || value['questions'] === undefined) return false;
|
|
180
|
+
if (!('hasCompletedFormA' in value) || value['hasCompletedFormA'] === undefined) return false;
|
|
181
|
+
if (!('hasCompletedFormC' in value) || value['hasCompletedFormC'] === undefined) return false;
|
|
182
|
+
if (!('appManagerSelection' in value) || value['appManagerSelection'] === undefined) return false;
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export function VenueResourceFromJSON(json: any): VenueResource {
|
|
187
|
+
return VenueResourceFromJSONTyped(json, false);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export function VenueResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): VenueResource {
|
|
191
|
+
if (json == null) {
|
|
192
|
+
return json;
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
|
|
196
|
+
'id': json['id'],
|
|
197
|
+
'name': json['name'],
|
|
198
|
+
'licenceNumber': json['licence_number'],
|
|
199
|
+
'address': json['address'],
|
|
200
|
+
'code': json['code'],
|
|
201
|
+
'phone': json['phone'],
|
|
202
|
+
'hours': json['hours'],
|
|
203
|
+
'notTradingDays': json['not_trading_days'],
|
|
204
|
+
'isActive': json['is_active'],
|
|
205
|
+
'latitude': json['latitude'],
|
|
206
|
+
'longitude': json['longitude'],
|
|
207
|
+
'fenceDistance': json['fence_distance'],
|
|
208
|
+
'companyId': json['company_id'],
|
|
209
|
+
'company': CompanyResourceFromJSON(json['company']),
|
|
210
|
+
'managers': json['managers'],
|
|
211
|
+
'status': json['status'],
|
|
212
|
+
'enteredVenueCode': json['enteredVenueCode'],
|
|
213
|
+
'questions': json['questions'],
|
|
214
|
+
'hasCompletedFormA': json['hasCompletedFormA'],
|
|
215
|
+
'hasCompletedFormC': json['hasCompletedFormC'],
|
|
216
|
+
'appManagerSelection': json['appManagerSelection'],
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function VenueResourceToJSON(json: any): VenueResource {
|
|
221
|
+
return VenueResourceToJSONTyped(json, false);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export function VenueResourceToJSONTyped(value?: VenueResource | null, ignoreDiscriminator: boolean = false): any {
|
|
225
|
+
if (value == null) {
|
|
226
|
+
return value;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
return {
|
|
230
|
+
|
|
231
|
+
'id': value['id'],
|
|
232
|
+
'name': value['name'],
|
|
233
|
+
'licence_number': value['licenceNumber'],
|
|
234
|
+
'address': value['address'],
|
|
235
|
+
'code': value['code'],
|
|
236
|
+
'phone': value['phone'],
|
|
237
|
+
'hours': value['hours'],
|
|
238
|
+
'not_trading_days': value['notTradingDays'],
|
|
239
|
+
'is_active': value['isActive'],
|
|
240
|
+
'latitude': value['latitude'],
|
|
241
|
+
'longitude': value['longitude'],
|
|
242
|
+
'fence_distance': value['fenceDistance'],
|
|
243
|
+
'company_id': value['companyId'],
|
|
244
|
+
'company': CompanyResourceToJSON(value['company']),
|
|
245
|
+
'managers': value['managers'],
|
|
246
|
+
'status': value['status'],
|
|
247
|
+
'enteredVenueCode': value['enteredVenueCode'],
|
|
248
|
+
'questions': value['questions'],
|
|
249
|
+
'hasCompletedFormA': value['hasCompletedFormA'],
|
|
250
|
+
'hasCompletedFormC': value['hasCompletedFormC'],
|
|
251
|
+
'appManagerSelection': value['appManagerSelection'],
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
|
|
@@ -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 { VenueResource } from './VenueResource';
|
|
17
|
+
import {
|
|
18
|
+
VenueResourceFromJSON,
|
|
19
|
+
VenueResourceFromJSONTyped,
|
|
20
|
+
VenueResourceToJSON,
|
|
21
|
+
VenueResourceToJSONTyped,
|
|
22
|
+
} from './VenueResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface VenueResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface VenueResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<VenueResource>}
|
|
33
|
+
* @memberof VenueResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<VenueResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the VenueResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfVenueResourceArrayResponse(value: object): value is VenueResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VenueResourceArrayResponseFromJSON(json: any): VenueResourceArrayResponse {
|
|
46
|
+
return VenueResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function VenueResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VenueResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(VenueResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function VenueResourceArrayResponseToJSON(json: any): VenueResourceArrayResponse {
|
|
60
|
+
return VenueResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function VenueResourceArrayResponseToJSONTyped(value?: VenueResourceArrayResponse | 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(VenueResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|