@digital8/security-registers-backend-ts-sdk 0.0.496 → 0.0.498
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/README.md +2 -2
- package/dist/models/IncidentFieldSchemaResource.d.ts +0 -14
- package/dist/models/IncidentFieldSchemaResource.js +1 -12
- package/dist/models/IncidentFieldSchemasShowRequest.d.ts +0 -14
- package/dist/models/IncidentFieldSchemasShowRequest.js +1 -12
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- package/dist/models/IncidentsExportCsvBulkRequest.d.ts +0 -6
- package/dist/models/IncidentsExportCsvBulkRequest.js +0 -2
- package/dist/models/IncidentsExportPdfBulkRequest.d.ts +0 -6
- package/dist/models/IncidentsExportPdfBulkRequest.js +0 -2
- package/dist/models/IncidentsListRequest.d.ts +0 -6
- package/dist/models/IncidentsListRequest.js +0 -2
- package/dist/models/IncidentsStoreRequest.d.ts +0 -14
- package/dist/models/IncidentsStoreRequest.js +0 -12
- package/dist/models/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +3 -1
- package/dist/models/UserResource.d.ts +0 -6
- package/dist/models/UserResource.js +0 -4
- package/package.json +1 -1
- package/src/models/IncidentFieldSchemaResource.ts +0 -18
- package/src/models/IncidentFieldSchemasShowRequest.ts +0 -18
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/IncidentsExportCsvBulkRequest.ts +0 -8
- package/src/models/IncidentsExportPdfBulkRequest.ts +0 -8
- package/src/models/IncidentsListRequest.ts +0 -8
- package/src/models/IncidentsStoreRequest.ts +0 -20
- package/src/models/RegisterListResource.ts +3 -2
- package/src/models/UserResource.ts +0 -9
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.498
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/security-registers-backend-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/security-registers-backend-ts-sdk@0.0.498 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -27,12 +27,6 @@ export interface IncidentFieldSchemaResource {
|
|
|
27
27
|
* @memberof IncidentFieldSchemaResource
|
|
28
28
|
*/
|
|
29
29
|
state: IncidentFieldSchemaResourceStateEnum;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof IncidentFieldSchemaResource
|
|
34
|
-
*/
|
|
35
|
-
type: IncidentFieldSchemaResourceTypeEnum;
|
|
36
30
|
/**
|
|
37
31
|
*
|
|
38
32
|
* @type {object}
|
|
@@ -61,14 +55,6 @@ export declare const IncidentFieldSchemaResourceStateEnum: {
|
|
|
61
55
|
readonly Vic: "VIC";
|
|
62
56
|
};
|
|
63
57
|
export type IncidentFieldSchemaResourceStateEnum = typeof IncidentFieldSchemaResourceStateEnum[keyof typeof IncidentFieldSchemaResourceStateEnum];
|
|
64
|
-
/**
|
|
65
|
-
* @export
|
|
66
|
-
*/
|
|
67
|
-
export declare const IncidentFieldSchemaResourceTypeEnum: {
|
|
68
|
-
readonly Liquor: "Liquor";
|
|
69
|
-
readonly Gaming: "Gaming";
|
|
70
|
-
};
|
|
71
|
-
export type IncidentFieldSchemaResourceTypeEnum = typeof IncidentFieldSchemaResourceTypeEnum[keyof typeof IncidentFieldSchemaResourceTypeEnum];
|
|
72
58
|
/**
|
|
73
59
|
* Check if a given object implements the IncidentFieldSchemaResource interface.
|
|
74
60
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.IncidentFieldSchemaResourceStateEnum = void 0;
|
|
17
17
|
exports.instanceOfIncidentFieldSchemaResource = instanceOfIncidentFieldSchemaResource;
|
|
18
18
|
exports.IncidentFieldSchemaResourceFromJSON = IncidentFieldSchemaResourceFromJSON;
|
|
19
19
|
exports.IncidentFieldSchemaResourceFromJSONTyped = IncidentFieldSchemaResourceFromJSONTyped;
|
|
@@ -27,21 +27,12 @@ exports.IncidentFieldSchemaResourceStateEnum = {
|
|
|
27
27
|
Nsw: 'NSW',
|
|
28
28
|
Vic: 'VIC'
|
|
29
29
|
};
|
|
30
|
-
/**
|
|
31
|
-
* @export
|
|
32
|
-
*/
|
|
33
|
-
exports.IncidentFieldSchemaResourceTypeEnum = {
|
|
34
|
-
Liquor: 'Liquor',
|
|
35
|
-
Gaming: 'Gaming'
|
|
36
|
-
};
|
|
37
30
|
/**
|
|
38
31
|
* Check if a given object implements the IncidentFieldSchemaResource interface.
|
|
39
32
|
*/
|
|
40
33
|
function instanceOfIncidentFieldSchemaResource(value) {
|
|
41
34
|
if (!('state' in value) || value['state'] === undefined)
|
|
42
35
|
return false;
|
|
43
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
44
|
-
return false;
|
|
45
36
|
if (!('jsonSchema' in value) || value['jsonSchema'] === undefined)
|
|
46
37
|
return false;
|
|
47
38
|
return true;
|
|
@@ -56,7 +47,6 @@ function IncidentFieldSchemaResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
47
|
return {
|
|
57
48
|
'id': json['id'] == null ? undefined : json['id'],
|
|
58
49
|
'state': json['state'],
|
|
59
|
-
'type': json['type'],
|
|
60
50
|
'jsonSchema': json['jsonSchema'],
|
|
61
51
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
62
52
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -74,7 +64,6 @@ function IncidentFieldSchemaResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
64
|
return {
|
|
75
65
|
'id': value['id'],
|
|
76
66
|
'state': value['state'],
|
|
77
|
-
'type': value['type'],
|
|
78
67
|
'jsonSchema': value['jsonSchema'],
|
|
79
68
|
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
80
69
|
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
@@ -21,12 +21,6 @@ export interface IncidentFieldSchemasShowRequest {
|
|
|
21
21
|
* @memberof IncidentFieldSchemasShowRequest
|
|
22
22
|
*/
|
|
23
23
|
state: IncidentFieldSchemasShowRequestStateEnum;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof IncidentFieldSchemasShowRequest
|
|
28
|
-
*/
|
|
29
|
-
type: IncidentFieldSchemasShowRequestTypeEnum;
|
|
30
24
|
}
|
|
31
25
|
/**
|
|
32
26
|
* @export
|
|
@@ -37,14 +31,6 @@ export declare const IncidentFieldSchemasShowRequestStateEnum: {
|
|
|
37
31
|
readonly Vic: "VIC";
|
|
38
32
|
};
|
|
39
33
|
export type IncidentFieldSchemasShowRequestStateEnum = typeof IncidentFieldSchemasShowRequestStateEnum[keyof typeof IncidentFieldSchemasShowRequestStateEnum];
|
|
40
|
-
/**
|
|
41
|
-
* @export
|
|
42
|
-
*/
|
|
43
|
-
export declare const IncidentFieldSchemasShowRequestTypeEnum: {
|
|
44
|
-
readonly Liquor: "Liquor";
|
|
45
|
-
readonly Gaming: "Gaming";
|
|
46
|
-
};
|
|
47
|
-
export type IncidentFieldSchemasShowRequestTypeEnum = typeof IncidentFieldSchemasShowRequestTypeEnum[keyof typeof IncidentFieldSchemasShowRequestTypeEnum];
|
|
48
34
|
/**
|
|
49
35
|
* Check if a given object implements the IncidentFieldSchemasShowRequest interface.
|
|
50
36
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.IncidentFieldSchemasShowRequestStateEnum = void 0;
|
|
17
17
|
exports.instanceOfIncidentFieldSchemasShowRequest = instanceOfIncidentFieldSchemasShowRequest;
|
|
18
18
|
exports.IncidentFieldSchemasShowRequestFromJSON = IncidentFieldSchemasShowRequestFromJSON;
|
|
19
19
|
exports.IncidentFieldSchemasShowRequestFromJSONTyped = IncidentFieldSchemasShowRequestFromJSONTyped;
|
|
@@ -27,21 +27,12 @@ exports.IncidentFieldSchemasShowRequestStateEnum = {
|
|
|
27
27
|
Nsw: 'NSW',
|
|
28
28
|
Vic: 'VIC'
|
|
29
29
|
};
|
|
30
|
-
/**
|
|
31
|
-
* @export
|
|
32
|
-
*/
|
|
33
|
-
exports.IncidentFieldSchemasShowRequestTypeEnum = {
|
|
34
|
-
Liquor: 'Liquor',
|
|
35
|
-
Gaming: 'Gaming'
|
|
36
|
-
};
|
|
37
30
|
/**
|
|
38
31
|
* Check if a given object implements the IncidentFieldSchemasShowRequest interface.
|
|
39
32
|
*/
|
|
40
33
|
function instanceOfIncidentFieldSchemasShowRequest(value) {
|
|
41
34
|
if (!('state' in value) || value['state'] === undefined)
|
|
42
35
|
return false;
|
|
43
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
44
|
-
return false;
|
|
45
36
|
return true;
|
|
46
37
|
}
|
|
47
38
|
function IncidentFieldSchemasShowRequestFromJSON(json) {
|
|
@@ -53,7 +44,6 @@ function IncidentFieldSchemasShowRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
53
44
|
}
|
|
54
45
|
return {
|
|
55
46
|
'state': json['state'],
|
|
56
|
-
'type': json['type'],
|
|
57
47
|
};
|
|
58
48
|
}
|
|
59
49
|
function IncidentFieldSchemasShowRequestToJSON(json) {
|
|
@@ -66,6 +56,5 @@ function IncidentFieldSchemasShowRequestToJSONTyped(value, ignoreDiscriminator)
|
|
|
66
56
|
}
|
|
67
57
|
return {
|
|
68
58
|
'state': value['state'],
|
|
69
|
-
'type': value['type'],
|
|
70
59
|
};
|
|
71
60
|
}
|
|
@@ -26,6 +26,8 @@ function instanceOfIncidentImageResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('altText' in value) || value['altText'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('url' in value) || value['url'] === undefined)
|
|
@@ -42,7 +44,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
return {
|
|
43
45
|
'fileId': json['file_id'],
|
|
44
46
|
'mimeType': json['mime_type'],
|
|
45
|
-
'altText': json['alt_text']
|
|
47
|
+
'altText': json['alt_text'],
|
|
46
48
|
'assetId': json['asset_id'],
|
|
47
49
|
'url': json['url'],
|
|
48
50
|
};
|
|
@@ -51,12 +51,6 @@ export interface IncidentsExportCsvBulkRequest {
|
|
|
51
51
|
* @memberof IncidentsExportCsvBulkRequest
|
|
52
52
|
*/
|
|
53
53
|
submittedByGuard?: Array<string>;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Array<string>}
|
|
57
|
-
* @memberof IncidentsExportCsvBulkRequest
|
|
58
|
-
*/
|
|
59
|
-
schemaType?: Array<string>;
|
|
60
54
|
/**
|
|
61
55
|
*
|
|
62
56
|
* @type {Array<string>}
|
|
@@ -44,7 +44,6 @@ function IncidentsExportCsvBulkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
45
45
|
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
46
46
|
'submittedByGuard': json['submitted_by_guard'] == null ? undefined : json['submitted_by_guard'],
|
|
47
|
-
'schemaType': json['schema_type'] == null ? undefined : json['schema_type'],
|
|
48
47
|
'additionalEmails': json['additional_emails'] == null ? undefined : json['additional_emails'],
|
|
49
48
|
'venueId': json['venue_id'],
|
|
50
49
|
'search': json['search'] == null ? undefined : json['search'],
|
|
@@ -67,7 +66,6 @@ function IncidentsExportCsvBulkRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
66
|
'user_id': value['userId'],
|
|
68
67
|
'has_approved_at': value['hasApprovedAt'],
|
|
69
68
|
'submitted_by_guard': value['submittedByGuard'],
|
|
70
|
-
'schema_type': value['schemaType'],
|
|
71
69
|
'additional_emails': value['additionalEmails'],
|
|
72
70
|
'venue_id': value['venueId'],
|
|
73
71
|
'search': value['search'],
|
|
@@ -51,12 +51,6 @@ export interface IncidentsExportPdfBulkRequest {
|
|
|
51
51
|
* @memberof IncidentsExportPdfBulkRequest
|
|
52
52
|
*/
|
|
53
53
|
submittedByGuard?: Array<string>;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Array<string>}
|
|
57
|
-
* @memberof IncidentsExportPdfBulkRequest
|
|
58
|
-
*/
|
|
59
|
-
schemaType?: Array<string>;
|
|
60
54
|
/**
|
|
61
55
|
*
|
|
62
56
|
* @type {Array<string>}
|
|
@@ -44,7 +44,6 @@ function IncidentsExportPdfBulkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
45
45
|
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
46
46
|
'submittedByGuard': json['submitted_by_guard'] == null ? undefined : json['submitted_by_guard'],
|
|
47
|
-
'schemaType': json['schema_type'] == null ? undefined : json['schema_type'],
|
|
48
47
|
'additionalEmails': json['additional_emails'] == null ? undefined : json['additional_emails'],
|
|
49
48
|
'venueId': json['venue_id'],
|
|
50
49
|
'search': json['search'] == null ? undefined : json['search'],
|
|
@@ -67,7 +66,6 @@ function IncidentsExportPdfBulkRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
66
|
'user_id': value['userId'],
|
|
68
67
|
'has_approved_at': value['hasApprovedAt'],
|
|
69
68
|
'submitted_by_guard': value['submittedByGuard'],
|
|
70
|
-
'schema_type': value['schemaType'],
|
|
71
69
|
'additional_emails': value['additionalEmails'],
|
|
72
70
|
'venue_id': value['venueId'],
|
|
73
71
|
'search': value['search'],
|
|
@@ -87,12 +87,6 @@ export interface IncidentsListRequest {
|
|
|
87
87
|
* @memberof IncidentsListRequest
|
|
88
88
|
*/
|
|
89
89
|
submittedByGuard?: Array<string>;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {Array<string>}
|
|
93
|
-
* @memberof IncidentsListRequest
|
|
94
|
-
*/
|
|
95
|
-
schemaType?: Array<string>;
|
|
96
90
|
/**
|
|
97
91
|
*
|
|
98
92
|
* @type {Date}
|
|
@@ -60,7 +60,6 @@ function IncidentsListRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
60
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
61
61
|
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
62
62
|
'submittedByGuard': json['submitted_by_guard'] == null ? undefined : json['submitted_by_guard'],
|
|
63
|
-
'schemaType': json['schema_type'] == null ? undefined : json['schema_type'],
|
|
64
63
|
'beforeApprovedAt': json['before_approved_at'] == null ? undefined : (new Date(json['before_approved_at'])),
|
|
65
64
|
'afterApprovedAt': json['after_approved_at'] == null ? undefined : (new Date(json['after_approved_at'])),
|
|
66
65
|
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
@@ -91,7 +90,6 @@ function IncidentsListRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
91
90
|
'user_id': value['userId'],
|
|
92
91
|
'has_approved_at': value['hasApprovedAt'],
|
|
93
92
|
'submitted_by_guard': value['submittedByGuard'],
|
|
94
|
-
'schema_type': value['schemaType'],
|
|
95
93
|
'before_approved_at': value['beforeApprovedAt'] == null ? undefined : ((value['beforeApprovedAt']).toISOString()),
|
|
96
94
|
'after_approved_at': value['afterApprovedAt'] == null ? undefined : ((value['afterApprovedAt']).toISOString()),
|
|
97
95
|
'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()),
|
|
@@ -21,12 +21,6 @@ export interface IncidentsStoreRequest {
|
|
|
21
21
|
* @memberof IncidentsStoreRequest
|
|
22
22
|
*/
|
|
23
23
|
venueId: number;
|
|
24
|
-
/**
|
|
25
|
-
* The schema type the incident is being recorded against. Must match an existing schema for the venue's state.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof IncidentsStoreRequest
|
|
28
|
-
*/
|
|
29
|
-
type: IncidentsStoreRequestTypeEnum;
|
|
30
24
|
/**
|
|
31
25
|
* Dynamic fields keyed by section key. Each section is an object of field_key => value. Object fields with repeatable=true are submitted as `{ items: [ { ...subfields } ] }` (no id on create — server assigns one). Shape is driven by the venue state's IncidentFieldSchema.
|
|
32
26
|
* @type {object}
|
|
@@ -34,14 +28,6 @@ export interface IncidentsStoreRequest {
|
|
|
34
28
|
*/
|
|
35
29
|
fields: object;
|
|
36
30
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export declare const IncidentsStoreRequestTypeEnum: {
|
|
41
|
-
readonly Liquor: "Liquor";
|
|
42
|
-
readonly Gaming: "Gaming";
|
|
43
|
-
};
|
|
44
|
-
export type IncidentsStoreRequestTypeEnum = typeof IncidentsStoreRequestTypeEnum[keyof typeof IncidentsStoreRequestTypeEnum];
|
|
45
31
|
/**
|
|
46
32
|
* Check if a given object implements the IncidentsStoreRequest interface.
|
|
47
33
|
*/
|
|
@@ -13,27 +13,17 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.IncidentsStoreRequestTypeEnum = void 0;
|
|
17
16
|
exports.instanceOfIncidentsStoreRequest = instanceOfIncidentsStoreRequest;
|
|
18
17
|
exports.IncidentsStoreRequestFromJSON = IncidentsStoreRequestFromJSON;
|
|
19
18
|
exports.IncidentsStoreRequestFromJSONTyped = IncidentsStoreRequestFromJSONTyped;
|
|
20
19
|
exports.IncidentsStoreRequestToJSON = IncidentsStoreRequestToJSON;
|
|
21
20
|
exports.IncidentsStoreRequestToJSONTyped = IncidentsStoreRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.IncidentsStoreRequestTypeEnum = {
|
|
26
|
-
Liquor: 'Liquor',
|
|
27
|
-
Gaming: 'Gaming'
|
|
28
|
-
};
|
|
29
21
|
/**
|
|
30
22
|
* Check if a given object implements the IncidentsStoreRequest interface.
|
|
31
23
|
*/
|
|
32
24
|
function instanceOfIncidentsStoreRequest(value) {
|
|
33
25
|
if (!('venueId' in value) || value['venueId'] === undefined)
|
|
34
26
|
return false;
|
|
35
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
36
|
-
return false;
|
|
37
27
|
if (!('fields' in value) || value['fields'] === undefined)
|
|
38
28
|
return false;
|
|
39
29
|
return true;
|
|
@@ -47,7 +37,6 @@ function IncidentsStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
37
|
}
|
|
48
38
|
return {
|
|
49
39
|
'venueId': json['venue_id'],
|
|
50
|
-
'type': json['type'],
|
|
51
40
|
'fields': json['fields'],
|
|
52
41
|
};
|
|
53
42
|
}
|
|
@@ -61,7 +50,6 @@ function IncidentsStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
61
50
|
}
|
|
62
51
|
return {
|
|
63
52
|
'venue_id': value['venueId'],
|
|
64
|
-
'type': value['type'],
|
|
65
53
|
'fields': value['fields'],
|
|
66
54
|
};
|
|
67
55
|
}
|
|
@@ -67,6 +67,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
67
67
|
return false;
|
|
68
68
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
69
69
|
return false;
|
|
70
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
71
|
+
return false;
|
|
70
72
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
71
73
|
return false;
|
|
72
74
|
return true;
|
|
@@ -101,7 +103,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
101
103
|
'signOnLat': json['signOnLat'],
|
|
102
104
|
'signOnLong': json['signOnLong'],
|
|
103
105
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
104
|
-
'signOffLong': json['signOffLong']
|
|
106
|
+
'signOffLong': json['signOffLong'],
|
|
105
107
|
'hasIncidents': json['hasIncidents'],
|
|
106
108
|
};
|
|
107
109
|
}
|
|
@@ -67,12 +67,6 @@ export interface UserResource {
|
|
|
67
67
|
* @memberof UserResource
|
|
68
68
|
*/
|
|
69
69
|
hasVenues: boolean;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {Array<string>}
|
|
73
|
-
* @memberof UserResource
|
|
74
|
-
*/
|
|
75
|
-
availableSchemaTypes: Array<string>;
|
|
76
70
|
/**
|
|
77
71
|
*
|
|
78
72
|
* @type {Array<AssetLiteResource>}
|
|
@@ -42,8 +42,6 @@ function instanceOfUserResource(value) {
|
|
|
42
42
|
return false;
|
|
43
43
|
if (!('hasVenues' in value) || value['hasVenues'] === undefined)
|
|
44
44
|
return false;
|
|
45
|
-
if (!('availableSchemaTypes' in value) || value['availableSchemaTypes'] === undefined)
|
|
46
|
-
return false;
|
|
47
45
|
if (!('assets' in value) || value['assets'] === undefined)
|
|
48
46
|
return false;
|
|
49
47
|
if (!('signatureAsset' in value) || value['signatureAsset'] === undefined)
|
|
@@ -72,7 +70,6 @@ function UserResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
70
|
'mobile': json['mobile'],
|
|
73
71
|
'roles': json['roles'],
|
|
74
72
|
'hasVenues': json['hasVenues'],
|
|
75
|
-
'availableSchemaTypes': json['availableSchemaTypes'],
|
|
76
73
|
'assets': (json['assets'] == null ? null : json['assets'].map(AssetLiteResource_1.AssetLiteResourceFromJSON)),
|
|
77
74
|
'signatureAsset': (0, AssetResource_1.AssetResourceFromJSON)(json['signatureAsset']),
|
|
78
75
|
'profileImage': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['profileImage']),
|
|
@@ -100,7 +97,6 @@ function UserResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
100
97
|
'mobile': value['mobile'],
|
|
101
98
|
'roles': value['roles'],
|
|
102
99
|
'hasVenues': value['hasVenues'],
|
|
103
|
-
'availableSchemaTypes': value['availableSchemaTypes'],
|
|
104
100
|
'assets': (value['assets'] == null ? null : value['assets'].map(AssetLiteResource_1.AssetLiteResourceToJSON)),
|
|
105
101
|
'signatureAsset': (0, AssetResource_1.AssetResourceToJSON)(value['signatureAsset']),
|
|
106
102
|
'profileImage': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['profileImage']),
|
package/package.json
CHANGED
|
@@ -31,12 +31,6 @@ export interface IncidentFieldSchemaResource {
|
|
|
31
31
|
* @memberof IncidentFieldSchemaResource
|
|
32
32
|
*/
|
|
33
33
|
state: IncidentFieldSchemaResourceStateEnum;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof IncidentFieldSchemaResource
|
|
38
|
-
*/
|
|
39
|
-
type: IncidentFieldSchemaResourceTypeEnum;
|
|
40
34
|
/**
|
|
41
35
|
*
|
|
42
36
|
* @type {object}
|
|
@@ -68,22 +62,12 @@ export const IncidentFieldSchemaResourceStateEnum = {
|
|
|
68
62
|
} as const;
|
|
69
63
|
export type IncidentFieldSchemaResourceStateEnum = typeof IncidentFieldSchemaResourceStateEnum[keyof typeof IncidentFieldSchemaResourceStateEnum];
|
|
70
64
|
|
|
71
|
-
/**
|
|
72
|
-
* @export
|
|
73
|
-
*/
|
|
74
|
-
export const IncidentFieldSchemaResourceTypeEnum = {
|
|
75
|
-
Liquor: 'Liquor',
|
|
76
|
-
Gaming: 'Gaming'
|
|
77
|
-
} as const;
|
|
78
|
-
export type IncidentFieldSchemaResourceTypeEnum = typeof IncidentFieldSchemaResourceTypeEnum[keyof typeof IncidentFieldSchemaResourceTypeEnum];
|
|
79
|
-
|
|
80
65
|
|
|
81
66
|
/**
|
|
82
67
|
* Check if a given object implements the IncidentFieldSchemaResource interface.
|
|
83
68
|
*/
|
|
84
69
|
export function instanceOfIncidentFieldSchemaResource(value: object): value is IncidentFieldSchemaResource {
|
|
85
70
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
86
|
-
if (!('type' in value) || value['type'] === undefined) return false;
|
|
87
71
|
if (!('jsonSchema' in value) || value['jsonSchema'] === undefined) return false;
|
|
88
72
|
return true;
|
|
89
73
|
}
|
|
@@ -100,7 +84,6 @@ export function IncidentFieldSchemaResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
100
84
|
|
|
101
85
|
'id': json['id'] == null ? undefined : json['id'],
|
|
102
86
|
'state': json['state'],
|
|
103
|
-
'type': json['type'],
|
|
104
87
|
'jsonSchema': json['jsonSchema'],
|
|
105
88
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
106
89
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -120,7 +103,6 @@ export function IncidentFieldSchemaResourceToJSONTyped(value?: IncidentFieldSche
|
|
|
120
103
|
|
|
121
104
|
'id': value['id'],
|
|
122
105
|
'state': value['state'],
|
|
123
|
-
'type': value['type'],
|
|
124
106
|
'jsonSchema': value['jsonSchema'],
|
|
125
107
|
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
126
108
|
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
@@ -25,12 +25,6 @@ export interface IncidentFieldSchemasShowRequest {
|
|
|
25
25
|
* @memberof IncidentFieldSchemasShowRequest
|
|
26
26
|
*/
|
|
27
27
|
state: IncidentFieldSchemasShowRequestStateEnum;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof IncidentFieldSchemasShowRequest
|
|
32
|
-
*/
|
|
33
|
-
type: IncidentFieldSchemasShowRequestTypeEnum;
|
|
34
28
|
}
|
|
35
29
|
|
|
36
30
|
|
|
@@ -44,22 +38,12 @@ export const IncidentFieldSchemasShowRequestStateEnum = {
|
|
|
44
38
|
} as const;
|
|
45
39
|
export type IncidentFieldSchemasShowRequestStateEnum = typeof IncidentFieldSchemasShowRequestStateEnum[keyof typeof IncidentFieldSchemasShowRequestStateEnum];
|
|
46
40
|
|
|
47
|
-
/**
|
|
48
|
-
* @export
|
|
49
|
-
*/
|
|
50
|
-
export const IncidentFieldSchemasShowRequestTypeEnum = {
|
|
51
|
-
Liquor: 'Liquor',
|
|
52
|
-
Gaming: 'Gaming'
|
|
53
|
-
} as const;
|
|
54
|
-
export type IncidentFieldSchemasShowRequestTypeEnum = typeof IncidentFieldSchemasShowRequestTypeEnum[keyof typeof IncidentFieldSchemasShowRequestTypeEnum];
|
|
55
|
-
|
|
56
41
|
|
|
57
42
|
/**
|
|
58
43
|
* Check if a given object implements the IncidentFieldSchemasShowRequest interface.
|
|
59
44
|
*/
|
|
60
45
|
export function instanceOfIncidentFieldSchemasShowRequest(value: object): value is IncidentFieldSchemasShowRequest {
|
|
61
46
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
62
|
-
if (!('type' in value) || value['type'] === undefined) return false;
|
|
63
47
|
return true;
|
|
64
48
|
}
|
|
65
49
|
|
|
@@ -74,7 +58,6 @@ export function IncidentFieldSchemasShowRequestFromJSONTyped(json: any, ignoreDi
|
|
|
74
58
|
return {
|
|
75
59
|
|
|
76
60
|
'state': json['state'],
|
|
77
|
-
'type': json['type'],
|
|
78
61
|
};
|
|
79
62
|
}
|
|
80
63
|
|
|
@@ -90,7 +73,6 @@ export function IncidentFieldSchemasShowRequestToJSONTyped(value?: IncidentField
|
|
|
90
73
|
return {
|
|
91
74
|
|
|
92
75
|
'state': value['state'],
|
|
93
|
-
'type': value['type'],
|
|
94
76
|
};
|
|
95
77
|
}
|
|
96
78
|
|
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,6 +57,7 @@ export interface IncidentImageResource {
|
|
|
57
57
|
export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
|
|
58
58
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
59
59
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
60
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
60
61
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
61
62
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
62
63
|
return true;
|
|
@@ -74,7 +75,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
74
75
|
|
|
75
76
|
'fileId': json['file_id'],
|
|
76
77
|
'mimeType': json['mime_type'],
|
|
77
|
-
'altText': json['alt_text']
|
|
78
|
+
'altText': json['alt_text'],
|
|
78
79
|
'assetId': json['asset_id'],
|
|
79
80
|
'url': json['url'],
|
|
80
81
|
};
|
|
@@ -55,12 +55,6 @@ export interface IncidentsExportCsvBulkRequest {
|
|
|
55
55
|
* @memberof IncidentsExportCsvBulkRequest
|
|
56
56
|
*/
|
|
57
57
|
submittedByGuard?: Array<string>;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Array<string>}
|
|
61
|
-
* @memberof IncidentsExportCsvBulkRequest
|
|
62
|
-
*/
|
|
63
|
-
schemaType?: Array<string>;
|
|
64
58
|
/**
|
|
65
59
|
*
|
|
66
60
|
* @type {Array<string>}
|
|
@@ -119,7 +113,6 @@ export function IncidentsExportCsvBulkRequestFromJSONTyped(json: any, ignoreDisc
|
|
|
119
113
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
120
114
|
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
121
115
|
'submittedByGuard': json['submitted_by_guard'] == null ? undefined : json['submitted_by_guard'],
|
|
122
|
-
'schemaType': json['schema_type'] == null ? undefined : json['schema_type'],
|
|
123
116
|
'additionalEmails': json['additional_emails'] == null ? undefined : json['additional_emails'],
|
|
124
117
|
'venueId': json['venue_id'],
|
|
125
118
|
'search': json['search'] == null ? undefined : json['search'],
|
|
@@ -145,7 +138,6 @@ export function IncidentsExportCsvBulkRequestToJSONTyped(value?: IncidentsExport
|
|
|
145
138
|
'user_id': value['userId'],
|
|
146
139
|
'has_approved_at': value['hasApprovedAt'],
|
|
147
140
|
'submitted_by_guard': value['submittedByGuard'],
|
|
148
|
-
'schema_type': value['schemaType'],
|
|
149
141
|
'additional_emails': value['additionalEmails'],
|
|
150
142
|
'venue_id': value['venueId'],
|
|
151
143
|
'search': value['search'],
|
|
@@ -55,12 +55,6 @@ export interface IncidentsExportPdfBulkRequest {
|
|
|
55
55
|
* @memberof IncidentsExportPdfBulkRequest
|
|
56
56
|
*/
|
|
57
57
|
submittedByGuard?: Array<string>;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Array<string>}
|
|
61
|
-
* @memberof IncidentsExportPdfBulkRequest
|
|
62
|
-
*/
|
|
63
|
-
schemaType?: Array<string>;
|
|
64
58
|
/**
|
|
65
59
|
*
|
|
66
60
|
* @type {Array<string>}
|
|
@@ -119,7 +113,6 @@ export function IncidentsExportPdfBulkRequestFromJSONTyped(json: any, ignoreDisc
|
|
|
119
113
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
120
114
|
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
121
115
|
'submittedByGuard': json['submitted_by_guard'] == null ? undefined : json['submitted_by_guard'],
|
|
122
|
-
'schemaType': json['schema_type'] == null ? undefined : json['schema_type'],
|
|
123
116
|
'additionalEmails': json['additional_emails'] == null ? undefined : json['additional_emails'],
|
|
124
117
|
'venueId': json['venue_id'],
|
|
125
118
|
'search': json['search'] == null ? undefined : json['search'],
|
|
@@ -145,7 +138,6 @@ export function IncidentsExportPdfBulkRequestToJSONTyped(value?: IncidentsExport
|
|
|
145
138
|
'user_id': value['userId'],
|
|
146
139
|
'has_approved_at': value['hasApprovedAt'],
|
|
147
140
|
'submitted_by_guard': value['submittedByGuard'],
|
|
148
|
-
'schema_type': value['schemaType'],
|
|
149
141
|
'additional_emails': value['additionalEmails'],
|
|
150
142
|
'venue_id': value['venueId'],
|
|
151
143
|
'search': value['search'],
|
|
@@ -91,12 +91,6 @@ export interface IncidentsListRequest {
|
|
|
91
91
|
* @memberof IncidentsListRequest
|
|
92
92
|
*/
|
|
93
93
|
submittedByGuard?: Array<string>;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {Array<string>}
|
|
97
|
-
* @memberof IncidentsListRequest
|
|
98
|
-
*/
|
|
99
|
-
schemaType?: Array<string>;
|
|
100
94
|
/**
|
|
101
95
|
*
|
|
102
96
|
* @type {Date}
|
|
@@ -191,7 +185,6 @@ export function IncidentsListRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
191
185
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
192
186
|
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
193
187
|
'submittedByGuard': json['submitted_by_guard'] == null ? undefined : json['submitted_by_guard'],
|
|
194
|
-
'schemaType': json['schema_type'] == null ? undefined : json['schema_type'],
|
|
195
188
|
'beforeApprovedAt': json['before_approved_at'] == null ? undefined : (new Date(json['before_approved_at'])),
|
|
196
189
|
'afterApprovedAt': json['after_approved_at'] == null ? undefined : (new Date(json['after_approved_at'])),
|
|
197
190
|
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
@@ -225,7 +218,6 @@ export function IncidentsListRequestToJSONTyped(value?: IncidentsListRequest | n
|
|
|
225
218
|
'user_id': value['userId'],
|
|
226
219
|
'has_approved_at': value['hasApprovedAt'],
|
|
227
220
|
'submitted_by_guard': value['submittedByGuard'],
|
|
228
|
-
'schema_type': value['schemaType'],
|
|
229
221
|
'before_approved_at': value['beforeApprovedAt'] == null ? undefined : ((value['beforeApprovedAt']).toISOString()),
|
|
230
222
|
'after_approved_at': value['afterApprovedAt'] == null ? undefined : ((value['afterApprovedAt']).toISOString()),
|
|
231
223
|
'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()),
|
|
@@ -25,12 +25,6 @@ export interface IncidentsStoreRequest {
|
|
|
25
25
|
* @memberof IncidentsStoreRequest
|
|
26
26
|
*/
|
|
27
27
|
venueId: number;
|
|
28
|
-
/**
|
|
29
|
-
* The schema type the incident is being recorded against. Must match an existing schema for the venue's state.
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof IncidentsStoreRequest
|
|
32
|
-
*/
|
|
33
|
-
type: IncidentsStoreRequestTypeEnum;
|
|
34
28
|
/**
|
|
35
29
|
* Dynamic fields keyed by section key. Each section is an object of field_key => value. Object fields with repeatable=true are submitted as `{ items: [ { ...subfields } ] }` (no id on create — server assigns one). Shape is driven by the venue state's IncidentFieldSchema.
|
|
36
30
|
* @type {object}
|
|
@@ -39,23 +33,11 @@ export interface IncidentsStoreRequest {
|
|
|
39
33
|
fields: object;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @export
|
|
45
|
-
*/
|
|
46
|
-
export const IncidentsStoreRequestTypeEnum = {
|
|
47
|
-
Liquor: 'Liquor',
|
|
48
|
-
Gaming: 'Gaming'
|
|
49
|
-
} as const;
|
|
50
|
-
export type IncidentsStoreRequestTypeEnum = typeof IncidentsStoreRequestTypeEnum[keyof typeof IncidentsStoreRequestTypeEnum];
|
|
51
|
-
|
|
52
|
-
|
|
53
36
|
/**
|
|
54
37
|
* Check if a given object implements the IncidentsStoreRequest interface.
|
|
55
38
|
*/
|
|
56
39
|
export function instanceOfIncidentsStoreRequest(value: object): value is IncidentsStoreRequest {
|
|
57
40
|
if (!('venueId' in value) || value['venueId'] === undefined) return false;
|
|
58
|
-
if (!('type' in value) || value['type'] === undefined) return false;
|
|
59
41
|
if (!('fields' in value) || value['fields'] === undefined) return false;
|
|
60
42
|
return true;
|
|
61
43
|
}
|
|
@@ -71,7 +53,6 @@ export function IncidentsStoreRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
71
53
|
return {
|
|
72
54
|
|
|
73
55
|
'venueId': json['venue_id'],
|
|
74
|
-
'type': json['type'],
|
|
75
56
|
'fields': json['fields'],
|
|
76
57
|
};
|
|
77
58
|
}
|
|
@@ -88,7 +69,6 @@ export function IncidentsStoreRequestToJSONTyped(value?: IncidentsStoreRequest |
|
|
|
88
69
|
return {
|
|
89
70
|
|
|
90
71
|
'venue_id': value['venueId'],
|
|
91
|
-
'type': value['type'],
|
|
92
72
|
'fields': value['fields'],
|
|
93
73
|
};
|
|
94
74
|
}
|
|
@@ -171,7 +171,7 @@ export interface RegisterListResource {
|
|
|
171
171
|
* @type {number}
|
|
172
172
|
* @memberof RegisterListResource
|
|
173
173
|
*/
|
|
174
|
-
signOffLong
|
|
174
|
+
signOffLong: number;
|
|
175
175
|
/**
|
|
176
176
|
*
|
|
177
177
|
* @type {boolean}
|
|
@@ -213,6 +213,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
213
213
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
214
214
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
215
215
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
216
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
216
217
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
217
218
|
return true;
|
|
218
219
|
}
|
|
@@ -249,7 +250,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
249
250
|
'signOnLat': json['signOnLat'],
|
|
250
251
|
'signOnLong': json['signOnLong'],
|
|
251
252
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
252
|
-
'signOffLong': json['signOffLong']
|
|
253
|
+
'signOffLong': json['signOffLong'],
|
|
253
254
|
'hasIncidents': json['hasIncidents'],
|
|
254
255
|
};
|
|
255
256
|
}
|
|
@@ -96,12 +96,6 @@ export interface UserResource {
|
|
|
96
96
|
* @memberof UserResource
|
|
97
97
|
*/
|
|
98
98
|
hasVenues: boolean;
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @type {Array<string>}
|
|
102
|
-
* @memberof UserResource
|
|
103
|
-
*/
|
|
104
|
-
availableSchemaTypes: Array<string>;
|
|
105
99
|
/**
|
|
106
100
|
*
|
|
107
101
|
* @type {Array<AssetLiteResource>}
|
|
@@ -158,7 +152,6 @@ export function instanceOfUserResource(value: object): value is UserResource {
|
|
|
158
152
|
if (!('mobile' in value) || value['mobile'] === undefined) return false;
|
|
159
153
|
if (!('roles' in value) || value['roles'] === undefined) return false;
|
|
160
154
|
if (!('hasVenues' in value) || value['hasVenues'] === undefined) return false;
|
|
161
|
-
if (!('availableSchemaTypes' in value) || value['availableSchemaTypes'] === undefined) return false;
|
|
162
155
|
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
163
156
|
if (!('signatureAsset' in value) || value['signatureAsset'] === undefined) return false;
|
|
164
157
|
if (!('profileImage' in value) || value['profileImage'] === undefined) return false;
|
|
@@ -185,7 +178,6 @@ export function UserResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
185
178
|
'mobile': json['mobile'],
|
|
186
179
|
'roles': json['roles'],
|
|
187
180
|
'hasVenues': json['hasVenues'],
|
|
188
|
-
'availableSchemaTypes': json['availableSchemaTypes'],
|
|
189
181
|
'assets': (json['assets'] == null ? null : (json['assets'] as Array<any>).map(AssetLiteResourceFromJSON)),
|
|
190
182
|
'signatureAsset': AssetResourceFromJSON(json['signatureAsset']),
|
|
191
183
|
'profileImage': AssetLiteResourceFromJSON(json['profileImage']),
|
|
@@ -215,7 +207,6 @@ export function UserResourceToJSONTyped(value?: UserResource | null, ignoreDiscr
|
|
|
215
207
|
'mobile': value['mobile'],
|
|
216
208
|
'roles': value['roles'],
|
|
217
209
|
'hasVenues': value['hasVenues'],
|
|
218
|
-
'availableSchemaTypes': value['availableSchemaTypes'],
|
|
219
210
|
'assets': (value['assets'] == null ? null : (value['assets'] as Array<any>).map(AssetLiteResourceToJSON)),
|
|
220
211
|
'signatureAsset': AssetResourceToJSON(value['signatureAsset']),
|
|
221
212
|
'profileImage': AssetLiteResourceToJSON(value['profileImage']),
|