Add facilities, contracts, orders, value lists, audit log, and desktop app modules
Extends omsorgCore with full CRUD for Facility/Contract/Order plus configurable value lists and an audit trail, and wires the omsorgapp frontend up to the new facilities, settings, and audit-log modules; includes a sidebar active-nav-item highlight. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
ee74ed65f5
commit
e9e96a57dc
@@ -0,0 +1,113 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OmsorgCore.Api
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { ModuleType } from './ModuleType';
|
||||
import {
|
||||
ModuleTypeFromJSON,
|
||||
ModuleTypeFromJSONTyped,
|
||||
ModuleTypeToJSON,
|
||||
ModuleTypeToJSONTyped,
|
||||
} from './ModuleType';
|
||||
import type { PermissionAction } from './PermissionAction';
|
||||
import {
|
||||
PermissionActionFromJSON,
|
||||
PermissionActionFromJSONTyped,
|
||||
PermissionActionToJSON,
|
||||
PermissionActionToJSONTyped,
|
||||
} from './PermissionAction';
|
||||
import type { PermissionEffect } from './PermissionEffect';
|
||||
import {
|
||||
PermissionEffectFromJSON,
|
||||
PermissionEffectFromJSONTyped,
|
||||
PermissionEffectToJSON,
|
||||
PermissionEffectToJSONTyped,
|
||||
} from './PermissionEffect';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UserPermissionOverrideResponse
|
||||
*/
|
||||
export interface UserPermissionOverrideResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserPermissionOverrideResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {ModuleType}
|
||||
* @memberof UserPermissionOverrideResponse
|
||||
*/
|
||||
module?: ModuleType;
|
||||
/**
|
||||
*
|
||||
* @type {PermissionAction}
|
||||
* @memberof UserPermissionOverrideResponse
|
||||
*/
|
||||
action?: PermissionAction;
|
||||
/**
|
||||
*
|
||||
* @type {PermissionEffect}
|
||||
* @memberof UserPermissionOverrideResponse
|
||||
*/
|
||||
effect?: PermissionEffect;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UserPermissionOverrideResponse interface.
|
||||
*/
|
||||
export function instanceOfUserPermissionOverrideResponse(value: object): value is UserPermissionOverrideResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UserPermissionOverrideResponseFromJSON(json: any): UserPermissionOverrideResponse {
|
||||
return UserPermissionOverrideResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UserPermissionOverrideResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPermissionOverrideResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'module': json['module'] == null ? undefined : ModuleTypeFromJSON(json['module']),
|
||||
'action': json['action'] == null ? undefined : PermissionActionFromJSON(json['action']),
|
||||
'effect': json['effect'] == null ? undefined : PermissionEffectFromJSON(json['effect']),
|
||||
};
|
||||
}
|
||||
|
||||
export function UserPermissionOverrideResponseToJSON(json: any): UserPermissionOverrideResponse {
|
||||
return UserPermissionOverrideResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UserPermissionOverrideResponseToJSONTyped(value?: UserPermissionOverrideResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'module': ModuleTypeToJSON(value['module']),
|
||||
'action': PermissionActionToJSON(value['action']),
|
||||
'effect': PermissionEffectToJSON(value['effect']),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user