@digital8/security-registers-backend-ts-sdk 0.0.217 → 0.0.218
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 +0 -33
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +3 -259
- package/dist/apis/GeneralApi.js +161 -1463
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/LicencesStoreRequest.d.ts +4 -100
- package/dist/models/LicencesStoreRequest.js +9 -41
- package/dist/models/LicencesUpdateRequest.d.ts +4 -120
- package/dist/models/LicencesUpdateRequest.js +8 -56
- package/dist/models/RegisterListResource.d.ts +3 -3
- package/dist/models/RegisterListResource.js +4 -3
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +8 -8
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +3 -4
- package/dist/models/RostersListAllRequest.d.ts +0 -6
- package/dist/models/RostersListAllRequest.js +0 -2
- package/dist/models/RostersListRequest.d.ts +0 -6
- package/dist/models/RostersListRequest.js +0 -2
- package/dist/models/RostersListWithRegistersRequest.d.ts +0 -6
- package/dist/models/RostersListWithRegistersRequest.js +0 -2
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/dist/models/UpdateUserRequest.d.ts +0 -6
- package/dist/models/UpdateUserRequest.js +0 -2
- package/dist/models/UserLiteResource.d.ts +0 -7
- package/dist/models/UserLiteResource.js +0 -5
- package/dist/models/UserResource.d.ts +0 -6
- package/dist/models/UserResource.js +0 -4
- package/dist/models/UsersCreateWithRoleRequest.d.ts +0 -6
- package/dist/models/UsersCreateWithRoleRequest.js +0 -2
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +8 -8
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +9 -9
- package/dist/models/index.d.ts +0 -33
- package/dist/models/index.js +0 -33
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +152 -1351
- package/src/models/AddressResource.ts +3 -2
- package/src/models/LicencesStoreRequest.ts +13 -141
- package/src/models/LicencesUpdateRequest.ts +12 -165
- package/src/models/RegisterListResource.ts +6 -5
- package/src/models/RegisterResource.ts +6 -6
- package/src/models/RosterResource.ts +3 -4
- package/src/models/RostersListAllRequest.ts +0 -8
- package/src/models/RostersListRequest.ts +0 -8
- package/src/models/RostersListWithRegistersRequest.ts +0 -8
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/UpdateUserRequest.ts +0 -8
- package/src/models/UserLiteResource.ts +0 -17
- package/src/models/UserResource.ts +0 -9
- package/src/models/UsersCreateWithRoleRequest.ts +0 -8
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +17 -17
- package/src/models/index.ts +0 -33
- package/dist/models/IncidentFieldAuditResource.d.ts +0 -56
- package/dist/models/IncidentFieldAuditResource.js +0 -67
- package/dist/models/IncidentFieldAuditResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentFieldAuditResourceArrayResponse.js +0 -50
- package/dist/models/IncidentFieldSchemaResource.d.ts +0 -56
- package/dist/models/IncidentFieldSchemaResource.js +0 -62
- package/dist/models/IncidentFieldSchemaResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentFieldSchemaResourceArrayResponse.js +0 -50
- package/dist/models/IncidentFieldSchemasShowRequest.d.ts +0 -46
- package/dist/models/IncidentFieldSchemasShowRequest.js +0 -65
- package/dist/models/IncidentFieldsResourceArrayResponse.d.ts +0 -32
- package/dist/models/IncidentFieldsResourceArrayResponse.js +0 -49
- package/dist/models/IncidentResource.d.ts +0 -118
- package/dist/models/IncidentResource.js +0 -106
- package/dist/models/IncidentResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentResourceArrayResponse.js +0 -50
- package/dist/models/IncidentVersionResource.d.ts +0 -57
- package/dist/models/IncidentVersionResource.js +0 -68
- package/dist/models/IncidentVersionResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVersionResourceArrayResponse.js +0 -50
- package/dist/models/IncidentVideoResource.d.ts +0 -74
- package/dist/models/IncidentVideoResource.js +0 -72
- package/dist/models/IncidentVideoResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVideoResourceArrayResponse.js +0 -50
- package/dist/models/IncidentVideoSignedUrlResource.d.ts +0 -32
- package/dist/models/IncidentVideoSignedUrlResource.js +0 -51
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +0 -50
- package/dist/models/IncidentVideoUploadTokenResource.d.ts +0 -50
- package/dist/models/IncidentVideoUploadTokenResource.js +0 -63
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +0 -50
- package/dist/models/IncidentsStoreRequest.d.ts +0 -38
- package/dist/models/IncidentsStoreRequest.js +0 -55
- package/dist/models/IncidentsUpdateRequest.d.ts +0 -32
- package/dist/models/IncidentsUpdateRequest.js +0 -51
- package/dist/models/IncidentsVideosStoreRequest.d.ts +0 -44
- package/dist/models/IncidentsVideosStoreRequest.js +0 -59
- package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +0 -44
- package/dist/models/IncidentsVideosUploadTokenRequest.js +0 -59
- package/dist/models/NotificationPreferenceResource.d.ts +0 -63
- package/dist/models/NotificationPreferenceResource.js +0 -67
- package/dist/models/NotificationPreferenceResourceArrayResponse.d.ts +0 -33
- package/dist/models/NotificationPreferenceResourceArrayResponse.js +0 -50
- package/dist/models/NotificationPreferencesStoreRequest.d.ts +0 -55
- package/dist/models/NotificationPreferencesStoreRequest.js +0 -68
- package/dist/models/NotificationTypeResource.d.ts +0 -38
- package/dist/models/NotificationTypeResource.js +0 -55
- package/dist/models/NotificationTypeResourceArrayResponse.d.ts +0 -33
- package/dist/models/NotificationTypeResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedRegisterGroupedByRosterResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedRegisterGroupedByRosterResourceResponse.js +0 -57
- package/dist/models/PdfExportResource.d.ts +0 -50
- package/dist/models/PdfExportResource.js +0 -61
- package/dist/models/PdfExportResourceArrayResponse.d.ts +0 -33
- package/dist/models/PdfExportResourceArrayResponse.js +0 -50
- package/dist/models/RegisterGroupedByRosterResource.d.ts +0 -70
- package/dist/models/RegisterGroupedByRosterResource.js +0 -75
- package/dist/models/RegisterGroupedByRosterResourceArrayResponse.d.ts +0 -33
- package/dist/models/RegisterGroupedByRosterResourceArrayResponse.js +0 -50
- package/dist/models/RegistersCreateRequest.d.ts +0 -98
- package/dist/models/RegistersCreateRequest.js +0 -83
- package/dist/models/RegistersUpdateRequest.d.ts +0 -113
- package/dist/models/RegistersUpdateRequest.js +0 -82
- package/dist/models/RostersUpdateRequest.d.ts +0 -77
- package/dist/models/RostersUpdateRequest.js +0 -70
- package/src/models/IncidentFieldAuditResource.ts +0 -102
- package/src/models/IncidentFieldAuditResourceArrayResponse.ts +0 -73
- package/src/models/IncidentFieldSchemaResource.ts +0 -99
- package/src/models/IncidentFieldSchemaResourceArrayResponse.ts +0 -73
- package/src/models/IncidentFieldSchemasShowRequest.ts +0 -83
- package/src/models/IncidentFieldsResourceArrayResponse.ts +0 -65
- package/src/models/IncidentResource.ts +0 -237
- package/src/models/IncidentResourceArrayResponse.ts +0 -73
- package/src/models/IncidentVersionResource.ts +0 -110
- package/src/models/IncidentVersionResourceArrayResponse.ts +0 -73
- package/src/models/IncidentVideoResource.ts +0 -125
- package/src/models/IncidentVideoResourceArrayResponse.ts +0 -73
- package/src/models/IncidentVideoSignedUrlResource.ts +0 -66
- package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +0 -73
- package/src/models/IncidentVideoUploadTokenResource.ts +0 -93
- package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +0 -73
- package/src/models/IncidentsStoreRequest.ts +0 -75
- package/src/models/IncidentsUpdateRequest.ts +0 -66
- package/src/models/IncidentsVideosStoreRequest.ts +0 -84
- package/src/models/IncidentsVideosUploadTokenRequest.ts +0 -84
- package/src/models/NotificationPreferenceResource.ts +0 -116
- package/src/models/NotificationPreferenceResourceArrayResponse.ts +0 -73
- package/src/models/NotificationPreferencesStoreRequest.ts +0 -97
- package/src/models/NotificationTypeResource.ts +0 -75
- package/src/models/NotificationTypeResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedRegisterGroupedByRosterResourceResponse.ts +0 -90
- package/src/models/PdfExportResource.ts +0 -92
- package/src/models/PdfExportResourceArrayResponse.ts +0 -73
- package/src/models/RegisterGroupedByRosterResource.ts +0 -134
- package/src/models/RegisterGroupedByRosterResourceArrayResponse.ts +0 -73
- package/src/models/RegistersCreateRequest.ts +0 -159
- package/src/models/RegistersUpdateRequest.ts +0 -173
- package/src/models/RostersUpdateRequest.ts +0 -125
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.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.instanceOfIncidentVideoUploadTokenResource = instanceOfIncidentVideoUploadTokenResource;
|
|
17
|
-
exports.IncidentVideoUploadTokenResourceFromJSON = IncidentVideoUploadTokenResourceFromJSON;
|
|
18
|
-
exports.IncidentVideoUploadTokenResourceFromJSONTyped = IncidentVideoUploadTokenResourceFromJSONTyped;
|
|
19
|
-
exports.IncidentVideoUploadTokenResourceToJSON = IncidentVideoUploadTokenResourceToJSON;
|
|
20
|
-
exports.IncidentVideoUploadTokenResourceToJSONTyped = IncidentVideoUploadTokenResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentVideoUploadTokenResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentVideoUploadTokenResource(value) {
|
|
25
|
-
if (!('url' in value) || value['url'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('rawBlobPath' in value) || value['rawBlobPath'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('containerName' in value) || value['containerName'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('headers' in value) || value['headers'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
function IncidentVideoUploadTokenResourceFromJSON(json) {
|
|
36
|
-
return IncidentVideoUploadTokenResourceFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
function IncidentVideoUploadTokenResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if (json == null) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'url': json['url'],
|
|
44
|
-
'rawBlobPath': json['rawBlobPath'],
|
|
45
|
-
'containerName': json['containerName'],
|
|
46
|
-
'headers': json['headers'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function IncidentVideoUploadTokenResourceToJSON(json) {
|
|
50
|
-
return IncidentVideoUploadTokenResourceToJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
function IncidentVideoUploadTokenResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
-
if (value == null) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
'url': value['url'],
|
|
59
|
-
'rawBlobPath': value['rawBlobPath'],
|
|
60
|
-
'containerName': value['containerName'],
|
|
61
|
-
'headers': value['headers'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.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 { IncidentVideoUploadTokenResource } from './IncidentVideoUploadTokenResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface IncidentVideoUploadTokenResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface IncidentVideoUploadTokenResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<IncidentVideoUploadTokenResource>}
|
|
22
|
-
* @memberof IncidentVideoUploadTokenResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<IncidentVideoUploadTokenResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the IncidentVideoUploadTokenResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfIncidentVideoUploadTokenResourceArrayResponse(value: object): value is IncidentVideoUploadTokenResourceArrayResponse;
|
|
30
|
-
export declare function IncidentVideoUploadTokenResourceArrayResponseFromJSON(json: any): IncidentVideoUploadTokenResourceArrayResponse;
|
|
31
|
-
export declare function IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoUploadTokenResourceArrayResponse;
|
|
32
|
-
export declare function IncidentVideoUploadTokenResourceArrayResponseToJSON(json: any): IncidentVideoUploadTokenResourceArrayResponse;
|
|
33
|
-
export declare function IncidentVideoUploadTokenResourceArrayResponseToJSONTyped(value?: IncidentVideoUploadTokenResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.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.instanceOfIncidentVideoUploadTokenResourceArrayResponse = instanceOfIncidentVideoUploadTokenResourceArrayResponse;
|
|
17
|
-
exports.IncidentVideoUploadTokenResourceArrayResponseFromJSON = IncidentVideoUploadTokenResourceArrayResponseFromJSON;
|
|
18
|
-
exports.IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped = IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.IncidentVideoUploadTokenResourceArrayResponseToJSON = IncidentVideoUploadTokenResourceArrayResponseToJSON;
|
|
20
|
-
exports.IncidentVideoUploadTokenResourceArrayResponseToJSONTyped = IncidentVideoUploadTokenResourceArrayResponseToJSONTyped;
|
|
21
|
-
var IncidentVideoUploadTokenResource_1 = require("./IncidentVideoUploadTokenResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the IncidentVideoUploadTokenResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfIncidentVideoUploadTokenResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function IncidentVideoUploadTokenResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(IncidentVideoUploadTokenResource_1.IncidentVideoUploadTokenResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function IncidentVideoUploadTokenResourceArrayResponseToJSON(json) {
|
|
40
|
-
return IncidentVideoUploadTokenResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function IncidentVideoUploadTokenResourceArrayResponseToJSONTyped(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(IncidentVideoUploadTokenResource_1.IncidentVideoUploadTokenResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.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 IncidentsStoreRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentsStoreRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof IncidentsStoreRequest
|
|
22
|
-
*/
|
|
23
|
-
venueId: number;
|
|
24
|
-
/**
|
|
25
|
-
* Dynamic fields keyed by section key. Non-repeatable sections are objects of field_key => value; repeatable sections are arrays of such objects. Shape is driven by the venue state's IncidentFieldSchema.
|
|
26
|
-
* @type {object}
|
|
27
|
-
* @memberof IncidentsStoreRequest
|
|
28
|
-
*/
|
|
29
|
-
fields: object;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the IncidentsStoreRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfIncidentsStoreRequest(value: object): value is IncidentsStoreRequest;
|
|
35
|
-
export declare function IncidentsStoreRequestFromJSON(json: any): IncidentsStoreRequest;
|
|
36
|
-
export declare function IncidentsStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsStoreRequest;
|
|
37
|
-
export declare function IncidentsStoreRequestToJSON(json: any): IncidentsStoreRequest;
|
|
38
|
-
export declare function IncidentsStoreRequestToJSONTyped(value?: IncidentsStoreRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.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.instanceOfIncidentsStoreRequest = instanceOfIncidentsStoreRequest;
|
|
17
|
-
exports.IncidentsStoreRequestFromJSON = IncidentsStoreRequestFromJSON;
|
|
18
|
-
exports.IncidentsStoreRequestFromJSONTyped = IncidentsStoreRequestFromJSONTyped;
|
|
19
|
-
exports.IncidentsStoreRequestToJSON = IncidentsStoreRequestToJSON;
|
|
20
|
-
exports.IncidentsStoreRequestToJSONTyped = IncidentsStoreRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentsStoreRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentsStoreRequest(value) {
|
|
25
|
-
if (!('venueId' in value) || value['venueId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('fields' in value) || value['fields'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function IncidentsStoreRequestFromJSON(json) {
|
|
32
|
-
return IncidentsStoreRequestFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function IncidentsStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'venueId': json['venue_id'],
|
|
40
|
-
'fields': json['fields'],
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function IncidentsStoreRequestToJSON(json) {
|
|
44
|
-
return IncidentsStoreRequestToJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function IncidentsStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
-
if (value == null) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'venue_id': value['venueId'],
|
|
53
|
-
'fields': value['fields'],
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.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 IncidentsUpdateRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentsUpdateRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {Array<string>}
|
|
21
|
-
* @memberof IncidentsUpdateRequest
|
|
22
|
-
*/
|
|
23
|
-
fields: Array<string>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the IncidentsUpdateRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfIncidentsUpdateRequest(value: object): value is IncidentsUpdateRequest;
|
|
29
|
-
export declare function IncidentsUpdateRequestFromJSON(json: any): IncidentsUpdateRequest;
|
|
30
|
-
export declare function IncidentsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsUpdateRequest;
|
|
31
|
-
export declare function IncidentsUpdateRequestToJSON(json: any): IncidentsUpdateRequest;
|
|
32
|
-
export declare function IncidentsUpdateRequestToJSONTyped(value?: IncidentsUpdateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.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.instanceOfIncidentsUpdateRequest = instanceOfIncidentsUpdateRequest;
|
|
17
|
-
exports.IncidentsUpdateRequestFromJSON = IncidentsUpdateRequestFromJSON;
|
|
18
|
-
exports.IncidentsUpdateRequestFromJSONTyped = IncidentsUpdateRequestFromJSONTyped;
|
|
19
|
-
exports.IncidentsUpdateRequestToJSON = IncidentsUpdateRequestToJSON;
|
|
20
|
-
exports.IncidentsUpdateRequestToJSONTyped = IncidentsUpdateRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentsUpdateRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentsUpdateRequest(value) {
|
|
25
|
-
if (!('fields' in value) || value['fields'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function IncidentsUpdateRequestFromJSON(json) {
|
|
30
|
-
return IncidentsUpdateRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function IncidentsUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'fields': json['fields'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function IncidentsUpdateRequestToJSON(json) {
|
|
41
|
-
return IncidentsUpdateRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function IncidentsUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'fields': value['fields'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.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 IncidentsVideosStoreRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentsVideosStoreRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof IncidentsVideosStoreRequest
|
|
22
|
-
*/
|
|
23
|
-
rawBlobPath: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof IncidentsVideosStoreRequest
|
|
28
|
-
*/
|
|
29
|
-
originalFilename: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof IncidentsVideosStoreRequest
|
|
34
|
-
*/
|
|
35
|
-
mimeType: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the IncidentsVideosStoreRequest interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfIncidentsVideosStoreRequest(value: object): value is IncidentsVideosStoreRequest;
|
|
41
|
-
export declare function IncidentsVideosStoreRequestFromJSON(json: any): IncidentsVideosStoreRequest;
|
|
42
|
-
export declare function IncidentsVideosStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsVideosStoreRequest;
|
|
43
|
-
export declare function IncidentsVideosStoreRequestToJSON(json: any): IncidentsVideosStoreRequest;
|
|
44
|
-
export declare function IncidentsVideosStoreRequestToJSONTyped(value?: IncidentsVideosStoreRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.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.instanceOfIncidentsVideosStoreRequest = instanceOfIncidentsVideosStoreRequest;
|
|
17
|
-
exports.IncidentsVideosStoreRequestFromJSON = IncidentsVideosStoreRequestFromJSON;
|
|
18
|
-
exports.IncidentsVideosStoreRequestFromJSONTyped = IncidentsVideosStoreRequestFromJSONTyped;
|
|
19
|
-
exports.IncidentsVideosStoreRequestToJSON = IncidentsVideosStoreRequestToJSON;
|
|
20
|
-
exports.IncidentsVideosStoreRequestToJSONTyped = IncidentsVideosStoreRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentsVideosStoreRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentsVideosStoreRequest(value) {
|
|
25
|
-
if (!('rawBlobPath' in value) || value['rawBlobPath'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('originalFilename' in value) || value['originalFilename'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function IncidentsVideosStoreRequestFromJSON(json) {
|
|
34
|
-
return IncidentsVideosStoreRequestFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function IncidentsVideosStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'rawBlobPath': json['raw_blob_path'],
|
|
42
|
-
'originalFilename': json['original_filename'],
|
|
43
|
-
'mimeType': json['mime_type'],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function IncidentsVideosStoreRequestToJSON(json) {
|
|
47
|
-
return IncidentsVideosStoreRequestToJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
function IncidentsVideosStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'raw_blob_path': value['rawBlobPath'],
|
|
56
|
-
'original_filename': value['originalFilename'],
|
|
57
|
-
'mime_type': value['mimeType'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.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 IncidentsVideosUploadTokenRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentsVideosUploadTokenRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof IncidentsVideosUploadTokenRequest
|
|
22
|
-
*/
|
|
23
|
-
filename: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof IncidentsVideosUploadTokenRequest
|
|
28
|
-
*/
|
|
29
|
-
mimeType: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof IncidentsVideosUploadTokenRequest
|
|
34
|
-
*/
|
|
35
|
-
sizeBytes: number;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the IncidentsVideosUploadTokenRequest interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfIncidentsVideosUploadTokenRequest(value: object): value is IncidentsVideosUploadTokenRequest;
|
|
41
|
-
export declare function IncidentsVideosUploadTokenRequestFromJSON(json: any): IncidentsVideosUploadTokenRequest;
|
|
42
|
-
export declare function IncidentsVideosUploadTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsVideosUploadTokenRequest;
|
|
43
|
-
export declare function IncidentsVideosUploadTokenRequestToJSON(json: any): IncidentsVideosUploadTokenRequest;
|
|
44
|
-
export declare function IncidentsVideosUploadTokenRequestToJSONTyped(value?: IncidentsVideosUploadTokenRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.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.instanceOfIncidentsVideosUploadTokenRequest = instanceOfIncidentsVideosUploadTokenRequest;
|
|
17
|
-
exports.IncidentsVideosUploadTokenRequestFromJSON = IncidentsVideosUploadTokenRequestFromJSON;
|
|
18
|
-
exports.IncidentsVideosUploadTokenRequestFromJSONTyped = IncidentsVideosUploadTokenRequestFromJSONTyped;
|
|
19
|
-
exports.IncidentsVideosUploadTokenRequestToJSON = IncidentsVideosUploadTokenRequestToJSON;
|
|
20
|
-
exports.IncidentsVideosUploadTokenRequestToJSONTyped = IncidentsVideosUploadTokenRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentsVideosUploadTokenRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentsVideosUploadTokenRequest(value) {
|
|
25
|
-
if (!('filename' in value) || value['filename'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function IncidentsVideosUploadTokenRequestFromJSON(json) {
|
|
34
|
-
return IncidentsVideosUploadTokenRequestFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function IncidentsVideosUploadTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'filename': json['filename'],
|
|
42
|
-
'mimeType': json['mime_type'],
|
|
43
|
-
'sizeBytes': json['size_bytes'],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function IncidentsVideosUploadTokenRequestToJSON(json) {
|
|
47
|
-
return IncidentsVideosUploadTokenRequestToJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
function IncidentsVideosUploadTokenRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'filename': value['filename'],
|
|
56
|
-
'mime_type': value['mimeType'],
|
|
57
|
-
'size_bytes': value['sizeBytes'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.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 { VenueLiteResource } from './VenueLiteResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface NotificationPreferenceResource
|
|
17
|
-
*/
|
|
18
|
-
export interface NotificationPreferenceResource {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof NotificationPreferenceResource
|
|
23
|
-
*/
|
|
24
|
-
id?: number | null;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof NotificationPreferenceResource
|
|
29
|
-
*/
|
|
30
|
-
notificationType: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {VenueLiteResource}
|
|
34
|
-
* @memberof NotificationPreferenceResource
|
|
35
|
-
*/
|
|
36
|
-
venue: VenueLiteResource | null;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {boolean}
|
|
40
|
-
* @memberof NotificationPreferenceResource
|
|
41
|
-
*/
|
|
42
|
-
enabled: boolean;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {Date}
|
|
46
|
-
* @memberof NotificationPreferenceResource
|
|
47
|
-
*/
|
|
48
|
-
createdAt?: Date | null;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {Date}
|
|
52
|
-
* @memberof NotificationPreferenceResource
|
|
53
|
-
*/
|
|
54
|
-
updatedAt?: Date | null;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Check if a given object implements the NotificationPreferenceResource interface.
|
|
58
|
-
*/
|
|
59
|
-
export declare function instanceOfNotificationPreferenceResource(value: object): value is NotificationPreferenceResource;
|
|
60
|
-
export declare function NotificationPreferenceResourceFromJSON(json: any): NotificationPreferenceResource;
|
|
61
|
-
export declare function NotificationPreferenceResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferenceResource;
|
|
62
|
-
export declare function NotificationPreferenceResourceToJSON(json: any): NotificationPreferenceResource;
|
|
63
|
-
export declare function NotificationPreferenceResourceToJSONTyped(value?: NotificationPreferenceResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.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.instanceOfNotificationPreferenceResource = instanceOfNotificationPreferenceResource;
|
|
17
|
-
exports.NotificationPreferenceResourceFromJSON = NotificationPreferenceResourceFromJSON;
|
|
18
|
-
exports.NotificationPreferenceResourceFromJSONTyped = NotificationPreferenceResourceFromJSONTyped;
|
|
19
|
-
exports.NotificationPreferenceResourceToJSON = NotificationPreferenceResourceToJSON;
|
|
20
|
-
exports.NotificationPreferenceResourceToJSONTyped = NotificationPreferenceResourceToJSONTyped;
|
|
21
|
-
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the NotificationPreferenceResource interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfNotificationPreferenceResource(value) {
|
|
26
|
-
if (!('notificationType' in value) || value['notificationType'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('venue' in value) || value['venue'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
function NotificationPreferenceResourceFromJSON(json) {
|
|
35
|
-
return NotificationPreferenceResourceFromJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
function NotificationPreferenceResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
-
if (json == null) {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
43
|
-
'notificationType': json['notificationType'],
|
|
44
|
-
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
45
|
-
'enabled': json['enabled'],
|
|
46
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
47
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function NotificationPreferenceResourceToJSON(json) {
|
|
51
|
-
return NotificationPreferenceResourceToJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
function NotificationPreferenceResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
-
var _a, _b;
|
|
55
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
-
if (value == null) {
|
|
57
|
-
return value;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
'id': value['id'],
|
|
61
|
-
'notificationType': value['notificationType'],
|
|
62
|
-
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
63
|
-
'enabled': value['enabled'],
|
|
64
|
-
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
65
|
-
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
66
|
-
};
|
|
67
|
-
}
|