@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,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CCTV Registers API
|
|
6
|
+
* API documentation for the CCTV Registers application
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCompanyResource = instanceOfCompanyResource;
|
|
17
|
+
exports.CompanyResourceFromJSON = CompanyResourceFromJSON;
|
|
18
|
+
exports.CompanyResourceFromJSONTyped = CompanyResourceFromJSONTyped;
|
|
19
|
+
exports.CompanyResourceToJSON = CompanyResourceToJSON;
|
|
20
|
+
exports.CompanyResourceToJSONTyped = CompanyResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CompanyResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCompanyResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function CompanyResourceFromJSON(json) {
|
|
38
|
+
return CompanyResourceFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function CompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'address': json['address'],
|
|
48
|
+
'licenceNumber': json['licenceNumber'],
|
|
49
|
+
'email': json['email'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function CompanyResourceToJSON(json) {
|
|
53
|
+
return CompanyResourceToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function CompanyResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'name': value['name'],
|
|
63
|
+
'address': value['address'],
|
|
64
|
+
'licenceNumber': value['licenceNumber'],
|
|
65
|
+
'email': value['email'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CCTV Registers API
|
|
3
|
+
* API documentation for the CCTV Registers application
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CompanyResource } from './CompanyResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CompanyResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CompanyResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CompanyResource>}
|
|
22
|
+
* @memberof CompanyResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<CompanyResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CompanyResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCompanyResourceArrayResponse(value: object): value is CompanyResourceArrayResponse;
|
|
30
|
+
export declare function CompanyResourceArrayResponseFromJSON(json: any): CompanyResourceArrayResponse;
|
|
31
|
+
export declare function CompanyResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompanyResourceArrayResponse;
|
|
32
|
+
export declare function CompanyResourceArrayResponseToJSON(json: any): CompanyResourceArrayResponse;
|
|
33
|
+
export declare function CompanyResourceArrayResponseToJSONTyped(value?: CompanyResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CCTV Registers API
|
|
6
|
+
* API documentation for the CCTV Registers application
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCompanyResourceArrayResponse = instanceOfCompanyResourceArrayResponse;
|
|
17
|
+
exports.CompanyResourceArrayResponseFromJSON = CompanyResourceArrayResponseFromJSON;
|
|
18
|
+
exports.CompanyResourceArrayResponseFromJSONTyped = CompanyResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.CompanyResourceArrayResponseToJSON = CompanyResourceArrayResponseToJSON;
|
|
20
|
+
exports.CompanyResourceArrayResponseToJSONTyped = CompanyResourceArrayResponseToJSONTyped;
|
|
21
|
+
var CompanyResource_1 = require("./CompanyResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CompanyResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCompanyResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CompanyResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return CompanyResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CompanyResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(CompanyResource_1.CompanyResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function CompanyResourceArrayResponseToJSON(json) {
|
|
40
|
+
return CompanyResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CompanyResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(CompanyResource_1.CompanyResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CCTV Registers API
|
|
3
|
+
* API documentation for the CCTV Registers application
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CreateFormARequestAnswersInner } from './CreateFormARequestAnswersInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateFormARequest
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateFormARequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CreateFormARequestAnswersInner>}
|
|
22
|
+
* @memberof CreateFormARequest
|
|
23
|
+
*/
|
|
24
|
+
answers: Array<CreateFormARequestAnswersInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateFormARequest
|
|
29
|
+
*/
|
|
30
|
+
jobNumber?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateFormARequest
|
|
35
|
+
*/
|
|
36
|
+
venueId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreateFormARequest
|
|
41
|
+
*/
|
|
42
|
+
signature: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateFormARequest
|
|
47
|
+
*/
|
|
48
|
+
emailNote?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CreateFormARequest
|
|
53
|
+
*/
|
|
54
|
+
longitude?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CreateFormARequest
|
|
59
|
+
*/
|
|
60
|
+
latitude?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof CreateFormARequest
|
|
65
|
+
*/
|
|
66
|
+
date?: Date | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CreateFormARequest
|
|
71
|
+
*/
|
|
72
|
+
managerId?: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the CreateFormARequest interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfCreateFormARequest(value: object): value is CreateFormARequest;
|
|
78
|
+
export declare function CreateFormARequestFromJSON(json: any): CreateFormARequest;
|
|
79
|
+
export declare function CreateFormARequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFormARequest;
|
|
80
|
+
export declare function CreateFormARequestToJSON(json: any): CreateFormARequest;
|
|
81
|
+
export declare function CreateFormARequestToJSONTyped(value?: CreateFormARequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CCTV Registers API
|
|
6
|
+
* API documentation for the CCTV Registers application
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateFormARequest = instanceOfCreateFormARequest;
|
|
17
|
+
exports.CreateFormARequestFromJSON = CreateFormARequestFromJSON;
|
|
18
|
+
exports.CreateFormARequestFromJSONTyped = CreateFormARequestFromJSONTyped;
|
|
19
|
+
exports.CreateFormARequestToJSON = CreateFormARequestToJSON;
|
|
20
|
+
exports.CreateFormARequestToJSONTyped = CreateFormARequestToJSONTyped;
|
|
21
|
+
var CreateFormARequestAnswersInner_1 = require("./CreateFormARequestAnswersInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CreateFormARequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCreateFormARequest(value) {
|
|
26
|
+
if (!('answers' in value) || value['answers'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('venueId' in value) || value['venueId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('signature' in value) || value['signature'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function CreateFormARequestFromJSON(json) {
|
|
35
|
+
return CreateFormARequestFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function CreateFormARequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'answers': (json['answers'].map(CreateFormARequestAnswersInner_1.CreateFormARequestAnswersInnerFromJSON)),
|
|
43
|
+
'jobNumber': json['job_number'] == null ? undefined : json['job_number'],
|
|
44
|
+
'venueId': json['venue_id'],
|
|
45
|
+
'signature': json['signature'],
|
|
46
|
+
'emailNote': json['email_note'] == null ? undefined : json['email_note'],
|
|
47
|
+
'longitude': json['longitude'] == null ? undefined : json['longitude'],
|
|
48
|
+
'latitude': json['latitude'] == null ? undefined : json['latitude'],
|
|
49
|
+
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
|
50
|
+
'managerId': json['manager_id'] == null ? undefined : json['manager_id'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function CreateFormARequestToJSON(json) {
|
|
54
|
+
return CreateFormARequestToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function CreateFormARequestToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
var _a;
|
|
58
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'answers': (value['answers'].map(CreateFormARequestAnswersInner_1.CreateFormARequestAnswersInnerToJSON)),
|
|
64
|
+
'job_number': value['jobNumber'],
|
|
65
|
+
'venue_id': value['venueId'],
|
|
66
|
+
'signature': value['signature'],
|
|
67
|
+
'email_note': value['emailNote'],
|
|
68
|
+
'longitude': value['longitude'],
|
|
69
|
+
'latitude': value['latitude'],
|
|
70
|
+
'date': value['date'] === null ? null : ((_a = value['date']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
71
|
+
'manager_id': value['managerId'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CCTV Registers API
|
|
3
|
+
* API documentation for the CCTV Registers application
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateFormARequestAnswersInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateFormARequestAnswersInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateFormARequestAnswersInner
|
|
22
|
+
*/
|
|
23
|
+
questionId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof CreateFormARequestAnswersInner
|
|
28
|
+
*/
|
|
29
|
+
answer: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateFormARequestAnswersInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateFormARequestAnswersInner(value: object): value is CreateFormARequestAnswersInner;
|
|
35
|
+
export declare function CreateFormARequestAnswersInnerFromJSON(json: any): CreateFormARequestAnswersInner;
|
|
36
|
+
export declare function CreateFormARequestAnswersInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFormARequestAnswersInner;
|
|
37
|
+
export declare function CreateFormARequestAnswersInnerToJSON(json: any): CreateFormARequestAnswersInner;
|
|
38
|
+
export declare function CreateFormARequestAnswersInnerToJSONTyped(value?: CreateFormARequestAnswersInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CCTV Registers API
|
|
6
|
+
* API documentation for the CCTV Registers application
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateFormARequestAnswersInner = instanceOfCreateFormARequestAnswersInner;
|
|
17
|
+
exports.CreateFormARequestAnswersInnerFromJSON = CreateFormARequestAnswersInnerFromJSON;
|
|
18
|
+
exports.CreateFormARequestAnswersInnerFromJSONTyped = CreateFormARequestAnswersInnerFromJSONTyped;
|
|
19
|
+
exports.CreateFormARequestAnswersInnerToJSON = CreateFormARequestAnswersInnerToJSON;
|
|
20
|
+
exports.CreateFormARequestAnswersInnerToJSONTyped = CreateFormARequestAnswersInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateFormARequestAnswersInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateFormARequestAnswersInner(value) {
|
|
25
|
+
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('answer' in value) || value['answer'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function CreateFormARequestAnswersInnerFromJSON(json) {
|
|
32
|
+
return CreateFormARequestAnswersInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function CreateFormARequestAnswersInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'questionId': json['question_id'],
|
|
40
|
+
'answer': json['answer'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function CreateFormARequestAnswersInnerToJSON(json) {
|
|
44
|
+
return CreateFormARequestAnswersInnerToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function CreateFormARequestAnswersInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'question_id': value['questionId'],
|
|
53
|
+
'answer': value['answer'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CCTV Registers API
|
|
3
|
+
* API documentation for the CCTV Registers application
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateNotificationSilenceRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateNotificationSilenceRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateNotificationSilenceRequest
|
|
22
|
+
*/
|
|
23
|
+
installationId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateNotificationSilenceRequest
|
|
28
|
+
*/
|
|
29
|
+
reason: CreateNotificationSilenceRequestReasonEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const CreateNotificationSilenceRequestReasonEnum: {
|
|
35
|
+
readonly NotTrading: "not_trading";
|
|
36
|
+
readonly NotRostered: "not_rostered";
|
|
37
|
+
};
|
|
38
|
+
export type CreateNotificationSilenceRequestReasonEnum = typeof CreateNotificationSilenceRequestReasonEnum[keyof typeof CreateNotificationSilenceRequestReasonEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the CreateNotificationSilenceRequest interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfCreateNotificationSilenceRequest(value: object): value is CreateNotificationSilenceRequest;
|
|
43
|
+
export declare function CreateNotificationSilenceRequestFromJSON(json: any): CreateNotificationSilenceRequest;
|
|
44
|
+
export declare function CreateNotificationSilenceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNotificationSilenceRequest;
|
|
45
|
+
export declare function CreateNotificationSilenceRequestToJSON(json: any): CreateNotificationSilenceRequest;
|
|
46
|
+
export declare function CreateNotificationSilenceRequestToJSONTyped(value?: CreateNotificationSilenceRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CCTV Registers API
|
|
6
|
+
* API documentation for the CCTV Registers application
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateNotificationSilenceRequestReasonEnum = void 0;
|
|
17
|
+
exports.instanceOfCreateNotificationSilenceRequest = instanceOfCreateNotificationSilenceRequest;
|
|
18
|
+
exports.CreateNotificationSilenceRequestFromJSON = CreateNotificationSilenceRequestFromJSON;
|
|
19
|
+
exports.CreateNotificationSilenceRequestFromJSONTyped = CreateNotificationSilenceRequestFromJSONTyped;
|
|
20
|
+
exports.CreateNotificationSilenceRequestToJSON = CreateNotificationSilenceRequestToJSON;
|
|
21
|
+
exports.CreateNotificationSilenceRequestToJSONTyped = CreateNotificationSilenceRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CreateNotificationSilenceRequestReasonEnum = {
|
|
26
|
+
NotTrading: 'not_trading',
|
|
27
|
+
NotRostered: 'not_rostered'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the CreateNotificationSilenceRequest interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfCreateNotificationSilenceRequest(value) {
|
|
33
|
+
if (!('installationId' in value) || value['installationId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function CreateNotificationSilenceRequestFromJSON(json) {
|
|
40
|
+
return CreateNotificationSilenceRequestFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CreateNotificationSilenceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'installationId': json['installation_id'],
|
|
48
|
+
'reason': json['reason'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function CreateNotificationSilenceRequestToJSON(json) {
|
|
52
|
+
return CreateNotificationSilenceRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function CreateNotificationSilenceRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'installation_id': value['installationId'],
|
|
61
|
+
'reason': value['reason'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CCTV Registers API
|
|
3
|
+
* API documentation for the CCTV Registers application
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateOrUpdateCompanyRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateOrUpdateCompanyRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateOrUpdateCompanyRequest
|
|
22
|
+
*/
|
|
23
|
+
address: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateOrUpdateCompanyRequest
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateOrUpdateCompanyRequest
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateOrUpdateCompanyRequest
|
|
40
|
+
*/
|
|
41
|
+
licenceNumber?: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the CreateOrUpdateCompanyRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfCreateOrUpdateCompanyRequest(value: object): value is CreateOrUpdateCompanyRequest;
|
|
47
|
+
export declare function CreateOrUpdateCompanyRequestFromJSON(json: any): CreateOrUpdateCompanyRequest;
|
|
48
|
+
export declare function CreateOrUpdateCompanyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrUpdateCompanyRequest;
|
|
49
|
+
export declare function CreateOrUpdateCompanyRequestToJSON(json: any): CreateOrUpdateCompanyRequest;
|
|
50
|
+
export declare function CreateOrUpdateCompanyRequestToJSONTyped(value?: CreateOrUpdateCompanyRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CCTV Registers API
|
|
6
|
+
* API documentation for the CCTV Registers application
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateOrUpdateCompanyRequest = instanceOfCreateOrUpdateCompanyRequest;
|
|
17
|
+
exports.CreateOrUpdateCompanyRequestFromJSON = CreateOrUpdateCompanyRequestFromJSON;
|
|
18
|
+
exports.CreateOrUpdateCompanyRequestFromJSONTyped = CreateOrUpdateCompanyRequestFromJSONTyped;
|
|
19
|
+
exports.CreateOrUpdateCompanyRequestToJSON = CreateOrUpdateCompanyRequestToJSON;
|
|
20
|
+
exports.CreateOrUpdateCompanyRequestToJSONTyped = CreateOrUpdateCompanyRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateOrUpdateCompanyRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateOrUpdateCompanyRequest(value) {
|
|
25
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function CreateOrUpdateCompanyRequestFromJSON(json) {
|
|
34
|
+
return CreateOrUpdateCompanyRequestFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function CreateOrUpdateCompanyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'address': json['address'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'email': json['email'],
|
|
44
|
+
'licenceNumber': json['licence_number'] == null ? undefined : json['licence_number'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function CreateOrUpdateCompanyRequestToJSON(json) {
|
|
48
|
+
return CreateOrUpdateCompanyRequestToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function CreateOrUpdateCompanyRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'address': value['address'],
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'email': value['email'],
|
|
59
|
+
'licence_number': value['licenceNumber'],
|
|
60
|
+
};
|
|
61
|
+
}
|