Migrate omsorgapp to browser SPA, add Docker/CI build setup
Docker-Images bauen und veröffentlichen / build (, omsorgCore/Dockerfile, omsorgcore) (push) Successful in 3s
Docker-Images bauen und veröffentlichen / build (, omsorgWeb/Dockerfile, omsorgweb) (push) Failing after 4s
Docker-Images bauen und veröffentlichen / build (VITE_OMSORG_CORE_URL=${{ vars.OMSORG_CORE_PUBLIC_URL }}, omsorgapp/Dockerfile, omsorgapp) (push) Successful in 3s
Docker-Images bauen und veröffentlichen / build (, omsorgCore/Dockerfile, omsorgcore) (push) Successful in 3s
Docker-Images bauen und veröffentlichen / build (, omsorgWeb/Dockerfile, omsorgweb) (push) Failing after 4s
Docker-Images bauen und veröffentlichen / build (VITE_OMSORG_CORE_URL=${{ vars.OMSORG_CORE_PUBLIC_URL }}, omsorgapp/Dockerfile, omsorgapp) (push) Successful in 3s
- omsorgapp: drop Electron, run as a plain Vite/React browser app; refresh token moves to an HttpOnly cookie (omsorgCore), CORS added for the new browser origin, document download/preview switched to Blob-based browser APIs. - Add Dockerfiles for omsorgCore, omsorgapp, and omsorgWeb, a docker-compose.yml wiring Postgres/MySQL/all three apps together, and a Gitea Actions workflow that builds and pushes images to the repo's container registry on push to main and on version tags. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
e9e96a57dc
commit
598dfcd38a
@@ -2,21 +2,29 @@
|
||||
.npmignore
|
||||
README.md
|
||||
package.json
|
||||
src/apis/AbsencesApi.ts
|
||||
src/apis/AdminEmailApi.ts
|
||||
src/apis/AdminSessionsApi.ts
|
||||
src/apis/AuditLogApi.ts
|
||||
src/apis/AuthApi.ts
|
||||
src/apis/ContractsApi.ts
|
||||
src/apis/DocumentsApi.ts
|
||||
src/apis/EmployeesApi.ts
|
||||
src/apis/FacilitiesApi.ts
|
||||
src/apis/FacilityContactsApi.ts
|
||||
src/apis/FacilityQualificationRatesApi.ts
|
||||
src/apis/HealthApi.ts
|
||||
src/apis/OrdersApi.ts
|
||||
src/apis/RolesApi.ts
|
||||
src/apis/TimeEntriesApi.ts
|
||||
src/apis/TrashApi.ts
|
||||
src/apis/UsersApi.ts
|
||||
src/apis/ValueListsApi.ts
|
||||
src/apis/index.ts
|
||||
src/index.ts
|
||||
src/models/AbsenceDecisionRequest.ts
|
||||
src/models/AbsenceResponse.ts
|
||||
src/models/AbsenceResponsePagedResponse.ts
|
||||
src/models/AddUserPermissionOverrideRequest.ts
|
||||
src/models/AuditEventCategory.ts
|
||||
src/models/AuditLogEntryResponse.ts
|
||||
@@ -24,17 +32,22 @@ src/models/AuditLogEntryResponsePagedResponse.ts
|
||||
src/models/ChangePasswordRequest.ts
|
||||
src/models/ContractResponse.ts
|
||||
src/models/ContractResponsePagedResponse.ts
|
||||
src/models/CreateAbsenceRequest.ts
|
||||
src/models/CreateContractRequest.ts
|
||||
src/models/CreateEmployeeRequest.ts
|
||||
src/models/CreateFacilityContactRequest.ts
|
||||
src/models/CreateFacilityQualificationRateRequest.ts
|
||||
src/models/CreateFacilityRequest.ts
|
||||
src/models/CreateOrderRequest.ts
|
||||
src/models/CreateRoleRequest.ts
|
||||
src/models/CreateTimeEntryRequest.ts
|
||||
src/models/CreateUserRequest.ts
|
||||
src/models/CreateValueListItemRequest.ts
|
||||
src/models/DocumentResponse.ts
|
||||
src/models/EmployeeResponse.ts
|
||||
src/models/EmployeeResponsePagedResponse.ts
|
||||
src/models/FacilityContactResponse.ts
|
||||
src/models/FacilityQualificationRateResponse.ts
|
||||
src/models/FacilityResponse.ts
|
||||
src/models/FacilityResponsePagedResponse.ts
|
||||
src/models/ForgotPasswordRequestRequest.ts
|
||||
@@ -44,7 +57,6 @@ src/models/ForgotPasswordVerifyRequest.ts
|
||||
src/models/ForgotPasswordVerifyResponse.ts
|
||||
src/models/LoginRequest.ts
|
||||
src/models/LoginResponse.ts
|
||||
src/models/LogoutRequest.ts
|
||||
src/models/MeResponse.ts
|
||||
src/models/ModuleType.ts
|
||||
src/models/OrderResponse.ts
|
||||
@@ -54,18 +66,33 @@ src/models/PasswordResetTemplateResponse.ts
|
||||
src/models/PermissionAction.ts
|
||||
src/models/PermissionDto.ts
|
||||
src/models/PermissionEffect.ts
|
||||
src/models/RefreshRequest.ts
|
||||
src/models/PermissionScope.ts
|
||||
src/models/ResetUserPasswordRequest.ts
|
||||
src/models/RolePermissionsResponse.ts
|
||||
src/models/RoleResponse.ts
|
||||
src/models/SendTestEmailRequest.ts
|
||||
src/models/SessionResponse.ts
|
||||
src/models/TimeEntryDecisionRequest.ts
|
||||
src/models/TimeEntryResponse.ts
|
||||
src/models/TimeEntryResponsePagedResponse.ts
|
||||
src/models/TrashAbsenceResponse.ts
|
||||
src/models/TrashContractResponse.ts
|
||||
src/models/TrashEmployeeResponse.ts
|
||||
src/models/TrashFacilityContactResponse.ts
|
||||
src/models/TrashFacilityQualificationRateResponse.ts
|
||||
src/models/TrashFacilityResponse.ts
|
||||
src/models/TrashOrderResponse.ts
|
||||
src/models/TrashTimeEntryResponse.ts
|
||||
src/models/UpdateAbsenceRequest.ts
|
||||
src/models/UpdateContractRequest.ts
|
||||
src/models/UpdateDocumentRequest.ts
|
||||
src/models/UpdateEmployeeRequest.ts
|
||||
src/models/UpdateFacilityContactRequest.ts
|
||||
src/models/UpdateFacilityQualificationRateRequest.ts
|
||||
src/models/UpdateFacilityRequest.ts
|
||||
src/models/UpdateOrderRequest.ts
|
||||
src/models/UpdateRolePermissionsRequest.ts
|
||||
src/models/UpdateTimeEntryRequest.ts
|
||||
src/models/UpdateUserRequest.ts
|
||||
src/models/UpdateValueListItemRequest.ts
|
||||
src/models/UserPermissionOverrideResponse.ts
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Anleitung — omsorgcore-client-ts
|
||||
|
||||
Generierter TypeScript-Client für die `omsorgCore`-API, erzeugt mit [openapi-generator-cli](https://github.com/OpenAPITools/openapi-generator) aus der Swagger/OpenAPI-JSON des Backends. **Kein eigenständiges Extra mehr:** Alle handgeschriebenen Wrapper unter `electron/backend/*Client.cjs` (`employeesClient.cjs`, `facilitiesClient.cjs`, `usersClient.cjs`, ...) importieren ihre `*Api`-Klasse aus diesem Paket (`require('omsorgcore-client-ts')`) und reichen dessen typisierte Requests/Responses direkt durch — dieser Client ist damit Teil des echten Datenpfads von `omsorgapp` gegen `omsorgCore`, nicht nur eine zusätzliche Bibliothek für Skripte/Typprüfung.
|
||||
Generierter TypeScript-Client für die `omsorgCore`-API, erzeugt mit [openapi-generator-cli](https://github.com/OpenAPITools/openapi-generator) aus der Swagger/OpenAPI-JSON des Backends. **Kein eigenständiges Extra mehr:** Alle handgeschriebenen Wrapper unter `src/api/*Api.js` (`employeesApi.js`, `facilitiesApi.js`, `usersApi.js`, ...) importieren ihre `*Api`-Klasse aus diesem Paket (`import ... from "omsorgcore-client-ts"`) und reichen dessen typisierte Requests/Responses direkt durch — dieser Client ist damit Teil des echten Datenpfads von `omsorgapp` gegen `omsorgCore`, nicht nur eine zusätzliche Bibliothek für Skripte/Typprüfung.
|
||||
|
||||
`README.md` in diesem Ordner wird bei jeder Generierung automatisch neu geschrieben (Standard-Output von openapi-generator, dokumentiert die generierten API-Methoden) — diese Datei hier nicht, sie bleibt stabil.
|
||||
|
||||
@@ -26,7 +26,7 @@ npm run generate
|
||||
# entspricht: ./generate.sh
|
||||
```
|
||||
|
||||
Nimmt die Backend-URL aus `OMSORG_CORE_URL` (Default `http://localhost:5245`, dieselbe Konvention wie `electron/backend/config.cjs`). Überschreibt `src/`, `README.md`, `package.json`, `.gitignore`, `tsconfig*.json` mit dem aktuellen generierten Stand — danach `git diff` prüfen, bevor committet wird (eigene Anpassungen an `package.json`, z. B. das `generate`-Script, ggf. erneut eintragen, siehe unten).
|
||||
Nimmt die Backend-URL aus `OMSORG_CORE_URL` (Default `http://localhost:5245`, dieselbe Konvention wie `src/api/config.js`). Überschreibt `src/`, `README.md`, `package.json`, `.gitignore`, `tsconfig*.json` mit dem aktuellen generierten Stand — danach `git diff` prüfen, bevor committet wird (eigene Anpassungen an `package.json`, z. B. das `generate`-Script, ggf. erneut eintragen, siehe unten).
|
||||
|
||||
## Bauen
|
||||
|
||||
|
||||
@@ -0,0 +1,342 @@
|
||||
/* 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 * as runtime from '../runtime';
|
||||
import type {
|
||||
AbsenceDecisionRequest,
|
||||
AbsenceResponse,
|
||||
AbsenceResponsePagedResponse,
|
||||
CreateAbsenceRequest,
|
||||
UpdateAbsenceRequest,
|
||||
} from '../models/index';
|
||||
import {
|
||||
AbsenceDecisionRequestFromJSON,
|
||||
AbsenceDecisionRequestToJSON,
|
||||
AbsenceResponseFromJSON,
|
||||
AbsenceResponseToJSON,
|
||||
AbsenceResponsePagedResponseFromJSON,
|
||||
AbsenceResponsePagedResponseToJSON,
|
||||
CreateAbsenceRequestFromJSON,
|
||||
CreateAbsenceRequestToJSON,
|
||||
UpdateAbsenceRequestFromJSON,
|
||||
UpdateAbsenceRequestToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiAbsencesGetRequest {
|
||||
status?: string;
|
||||
type?: string;
|
||||
employeeId?: string;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ApiAbsencesIdDecisionPostRequest {
|
||||
id: string;
|
||||
absenceDecisionRequest?: AbsenceDecisionRequest;
|
||||
}
|
||||
|
||||
export interface ApiAbsencesIdDeleteRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiAbsencesIdGetRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiAbsencesIdPutRequest {
|
||||
id: string;
|
||||
updateAbsenceRequest?: UpdateAbsenceRequest;
|
||||
}
|
||||
|
||||
export interface ApiAbsencesPostRequest {
|
||||
createAbsenceRequest?: CreateAbsenceRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class AbsencesApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAbsencesGetRaw(requestParameters: ApiAbsencesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AbsenceResponsePagedResponse>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['status'] != null) {
|
||||
queryParameters['status'] = requestParameters['status'];
|
||||
}
|
||||
|
||||
if (requestParameters['type'] != null) {
|
||||
queryParameters['type'] = requestParameters['type'];
|
||||
}
|
||||
|
||||
if (requestParameters['employeeId'] != null) {
|
||||
queryParameters['employeeId'] = requestParameters['employeeId'];
|
||||
}
|
||||
|
||||
if (requestParameters['page'] != null) {
|
||||
queryParameters['page'] = requestParameters['page'];
|
||||
}
|
||||
|
||||
if (requestParameters['pageSize'] != null) {
|
||||
queryParameters['pageSize'] = requestParameters['pageSize'];
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/absences`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => AbsenceResponsePagedResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAbsencesGet(requestParameters: ApiAbsencesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AbsenceResponsePagedResponse> {
|
||||
const response = await this.apiAbsencesGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAbsencesIdDecisionPostRaw(requestParameters: ApiAbsencesIdDecisionPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AbsenceResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiAbsencesIdDecisionPost().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/absences/{id}/decision`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: AbsenceDecisionRequestToJSON(requestParameters['absenceDecisionRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => AbsenceResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAbsencesIdDecisionPost(requestParameters: ApiAbsencesIdDecisionPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AbsenceResponse> {
|
||||
const response = await this.apiAbsencesIdDecisionPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAbsencesIdDeleteRaw(requestParameters: ApiAbsencesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiAbsencesIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/absences/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'DELETE',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAbsencesIdDelete(requestParameters: ApiAbsencesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiAbsencesIdDeleteRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAbsencesIdGetRaw(requestParameters: ApiAbsencesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AbsenceResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiAbsencesIdGet().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/absences/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => AbsenceResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAbsencesIdGet(requestParameters: ApiAbsencesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AbsenceResponse> {
|
||||
const response = await this.apiAbsencesIdGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAbsencesIdPutRaw(requestParameters: ApiAbsencesIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AbsenceResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiAbsencesIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/absences/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: UpdateAbsenceRequestToJSON(requestParameters['updateAbsenceRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => AbsenceResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAbsencesIdPut(requestParameters: ApiAbsencesIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AbsenceResponse> {
|
||||
const response = await this.apiAbsencesIdPutRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAbsencesPostRaw(requestParameters: ApiAbsencesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AbsenceResponse>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/absences`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: CreateAbsenceRequestToJSON(requestParameters['createAbsenceRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => AbsenceResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAbsencesPost(requestParameters: ApiAbsencesPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AbsenceResponse> {
|
||||
const response = await this.apiAbsencesPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -23,10 +23,8 @@ import type {
|
||||
ForgotPasswordVerifyResponse,
|
||||
LoginRequest,
|
||||
LoginResponse,
|
||||
LogoutRequest,
|
||||
MeResponse,
|
||||
PasswordPolicyResponse,
|
||||
RefreshRequest,
|
||||
} from '../models/index';
|
||||
import {
|
||||
ChangePasswordRequestFromJSON,
|
||||
@@ -45,14 +43,10 @@ import {
|
||||
LoginRequestToJSON,
|
||||
LoginResponseFromJSON,
|
||||
LoginResponseToJSON,
|
||||
LogoutRequestFromJSON,
|
||||
LogoutRequestToJSON,
|
||||
MeResponseFromJSON,
|
||||
MeResponseToJSON,
|
||||
PasswordPolicyResponseFromJSON,
|
||||
PasswordPolicyResponseToJSON,
|
||||
RefreshRequestFromJSON,
|
||||
RefreshRequestToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiAuthChangePasswordPostRequest {
|
||||
@@ -75,14 +69,6 @@ export interface ApiAuthLoginPostRequest {
|
||||
loginRequest?: LoginRequest;
|
||||
}
|
||||
|
||||
export interface ApiAuthLogoutPostRequest {
|
||||
logoutRequest?: LogoutRequest;
|
||||
}
|
||||
|
||||
export interface ApiAuthRefreshPostRequest {
|
||||
refreshRequest?: RefreshRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -278,13 +264,11 @@ export class AuthApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthLogoutPostRaw(requestParameters: ApiAuthLogoutPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
async apiAuthLogoutPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
@@ -301,7 +285,6 @@ export class AuthApi extends runtime.BaseAPI {
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: LogoutRequestToJSON(requestParameters['logoutRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
@@ -309,8 +292,8 @@ export class AuthApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthLogoutPost(requestParameters: ApiAuthLogoutPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiAuthLogoutPostRaw(requestParameters, initOverrides);
|
||||
async apiAuthLogoutPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiAuthLogoutPostRaw(initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -385,13 +368,11 @@ export class AuthApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthRefreshPostRaw(requestParameters: ApiAuthRefreshPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginResponse>> {
|
||||
async apiAuthRefreshPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginResponse>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
@@ -408,7 +389,6 @@ export class AuthApi extends runtime.BaseAPI {
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: RefreshRequestToJSON(requestParameters['refreshRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => LoginResponseFromJSON(jsonValue));
|
||||
@@ -416,8 +396,8 @@ export class AuthApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthRefreshPost(requestParameters: ApiAuthRefreshPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResponse> {
|
||||
const response = await this.apiAuthRefreshPostRaw(requestParameters, initOverrides);
|
||||
async apiAuthRefreshPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResponse> {
|
||||
const response = await this.apiAuthRefreshPostRaw(initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
|
||||
@@ -40,6 +40,10 @@ export interface ApiContractsGetRequest {
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ApiContractsIdDeleteRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiContractsIdGetRequest {
|
||||
id: string;
|
||||
}
|
||||
@@ -117,6 +121,48 @@ export class ContractsApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiContractsIdDeleteRaw(requestParameters: ApiContractsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiContractsIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/contracts/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'DELETE',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiContractsIdDelete(requestParameters: ApiContractsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiContractsIdDeleteRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiContractsIdGetRaw(requestParameters: ApiContractsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContractResponse>> {
|
||||
|
||||
@@ -0,0 +1,304 @@
|
||||
/* 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 * as runtime from '../runtime';
|
||||
import type {
|
||||
DocumentResponse,
|
||||
UpdateDocumentRequest,
|
||||
} from '../models/index';
|
||||
import {
|
||||
DocumentResponseFromJSON,
|
||||
DocumentResponseToJSON,
|
||||
UpdateDocumentRequestFromJSON,
|
||||
UpdateDocumentRequestToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiDocumentsGetRequest {
|
||||
entityType?: string;
|
||||
entityId?: string;
|
||||
}
|
||||
|
||||
export interface ApiDocumentsIdDeleteRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiDocumentsIdDownloadGetRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiDocumentsIdPutRequest {
|
||||
id: string;
|
||||
updateDocumentRequest?: UpdateDocumentRequest;
|
||||
}
|
||||
|
||||
export interface ApiDocumentsPostRequest {
|
||||
entityType?: string;
|
||||
entityId?: string;
|
||||
category?: string;
|
||||
description?: string;
|
||||
file?: Blob;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class DocumentsApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiDocumentsGetRaw(requestParameters: ApiDocumentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DocumentResponse>>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['entityType'] != null) {
|
||||
queryParameters['entityType'] = requestParameters['entityType'];
|
||||
}
|
||||
|
||||
if (requestParameters['entityId'] != null) {
|
||||
queryParameters['entityId'] = requestParameters['entityId'];
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/documents`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DocumentResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiDocumentsGet(requestParameters: ApiDocumentsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DocumentResponse>> {
|
||||
const response = await this.apiDocumentsGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiDocumentsIdDeleteRaw(requestParameters: ApiDocumentsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiDocumentsIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/documents/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'DELETE',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiDocumentsIdDelete(requestParameters: ApiDocumentsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiDocumentsIdDeleteRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiDocumentsIdDownloadGetRaw(requestParameters: ApiDocumentsIdDownloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiDocumentsIdDownloadGet().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/documents/{id}/download`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiDocumentsIdDownloadGet(requestParameters: ApiDocumentsIdDownloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiDocumentsIdDownloadGetRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiDocumentsIdPutRaw(requestParameters: ApiDocumentsIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiDocumentsIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/documents/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: UpdateDocumentRequestToJSON(requestParameters['updateDocumentRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => DocumentResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiDocumentsIdPut(requestParameters: ApiDocumentsIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentResponse> {
|
||||
const response = await this.apiDocumentsIdPutRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiDocumentsPostRaw(requestParameters: ApiDocumentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentResponse>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
const consumes: runtime.Consume[] = [
|
||||
{ contentType: 'multipart/form-data' },
|
||||
];
|
||||
// @ts-ignore: canConsumeForm may be unused
|
||||
const canConsumeForm = runtime.canConsumeForm(consumes);
|
||||
|
||||
let formParams: { append(param: string, value: any): any };
|
||||
let useForm = false;
|
||||
// use FormData to transmit files using content-type "multipart/form-data"
|
||||
useForm = canConsumeForm;
|
||||
if (useForm) {
|
||||
formParams = new FormData();
|
||||
} else {
|
||||
formParams = new URLSearchParams();
|
||||
}
|
||||
|
||||
if (requestParameters['entityType'] != null) {
|
||||
formParams.append('EntityType', requestParameters['entityType'] as any);
|
||||
}
|
||||
|
||||
if (requestParameters['entityId'] != null) {
|
||||
formParams.append('EntityId', requestParameters['entityId'] as any);
|
||||
}
|
||||
|
||||
if (requestParameters['category'] != null) {
|
||||
formParams.append('Category', requestParameters['category'] as any);
|
||||
}
|
||||
|
||||
if (requestParameters['description'] != null) {
|
||||
formParams.append('Description', requestParameters['description'] as any);
|
||||
}
|
||||
|
||||
if (requestParameters['file'] != null) {
|
||||
formParams.append('File', requestParameters['file'] as any);
|
||||
}
|
||||
|
||||
|
||||
let urlPath = `/api/documents`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: formParams,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => DocumentResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiDocumentsPost(requestParameters: ApiDocumentsPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentResponse> {
|
||||
const response = await this.apiDocumentsPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -39,6 +39,10 @@ export interface ApiEmployeesGetRequest {
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ApiEmployeesIdDeleteRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiEmployeesIdGetRequest {
|
||||
id: string;
|
||||
}
|
||||
@@ -112,6 +116,48 @@ export class EmployeesApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiEmployeesIdDeleteRaw(requestParameters: ApiEmployeesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiEmployeesIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/employees/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'DELETE',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiEmployeesIdDelete(requestParameters: ApiEmployeesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiEmployeesIdDeleteRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiEmployeesIdGetRaw(requestParameters: ApiEmployeesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmployeeResponse>> {
|
||||
|
||||
@@ -34,10 +34,15 @@ import {
|
||||
export interface ApiFacilitiesGetRequest {
|
||||
search?: string;
|
||||
crmStatus?: string;
|
||||
followUpDueOnly?: boolean;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ApiFacilitiesIdDeleteRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiFacilitiesIdGetRequest {
|
||||
id: string;
|
||||
}
|
||||
@@ -69,6 +74,10 @@ export class FacilitiesApi extends runtime.BaseAPI {
|
||||
queryParameters['crmStatus'] = requestParameters['crmStatus'];
|
||||
}
|
||||
|
||||
if (requestParameters['followUpDueOnly'] != null) {
|
||||
queryParameters['followUpDueOnly'] = requestParameters['followUpDueOnly'];
|
||||
}
|
||||
|
||||
if (requestParameters['page'] != null) {
|
||||
queryParameters['page'] = requestParameters['page'];
|
||||
}
|
||||
@@ -107,6 +116,48 @@ export class FacilitiesApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesIdDeleteRaw(requestParameters: ApiFacilitiesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiFacilitiesIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/facilities/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'DELETE',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesIdDelete(requestParameters: ApiFacilitiesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiFacilitiesIdDeleteRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesIdGetRaw(requestParameters: ApiFacilitiesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacilityResponse>> {
|
||||
|
||||
@@ -32,6 +32,11 @@ export interface ApiFacilitiesFacilityIdContactsGetRequest {
|
||||
facilityId: string;
|
||||
}
|
||||
|
||||
export interface ApiFacilitiesFacilityIdContactsIdDeleteRequest {
|
||||
facilityId: string;
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiFacilitiesFacilityIdContactsIdPutRequest {
|
||||
facilityId: string;
|
||||
id: string;
|
||||
@@ -91,6 +96,56 @@ export class FacilityContactsApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdContactsIdDeleteRaw(requestParameters: ApiFacilitiesFacilityIdContactsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['facilityId'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'facilityId',
|
||||
'Required parameter "facilityId" was null or undefined when calling apiFacilitiesFacilityIdContactsIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiFacilitiesFacilityIdContactsIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/facilities/{facilityId}/contacts/{id}`;
|
||||
urlPath = urlPath.replace(`{${"facilityId"}}`, encodeURIComponent(String(requestParameters['facilityId'])));
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'DELETE',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdContactsIdDelete(requestParameters: ApiFacilitiesFacilityIdContactsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiFacilitiesFacilityIdContactsIdDeleteRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdContactsIdPutRaw(requestParameters: ApiFacilitiesFacilityIdContactsIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacilityContactResponse>> {
|
||||
|
||||
@@ -0,0 +1,249 @@
|
||||
/* 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 * as runtime from '../runtime';
|
||||
import type {
|
||||
CreateFacilityQualificationRateRequest,
|
||||
FacilityQualificationRateResponse,
|
||||
UpdateFacilityQualificationRateRequest,
|
||||
} from '../models/index';
|
||||
import {
|
||||
CreateFacilityQualificationRateRequestFromJSON,
|
||||
CreateFacilityQualificationRateRequestToJSON,
|
||||
FacilityQualificationRateResponseFromJSON,
|
||||
FacilityQualificationRateResponseToJSON,
|
||||
UpdateFacilityQualificationRateRequestFromJSON,
|
||||
UpdateFacilityQualificationRateRequestToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiFacilitiesFacilityIdQualificationRatesGetRequest {
|
||||
facilityId: string;
|
||||
}
|
||||
|
||||
export interface ApiFacilitiesFacilityIdQualificationRatesIdDeleteRequest {
|
||||
facilityId: string;
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiFacilitiesFacilityIdQualificationRatesIdPutRequest {
|
||||
facilityId: string;
|
||||
id: string;
|
||||
updateFacilityQualificationRateRequest?: UpdateFacilityQualificationRateRequest;
|
||||
}
|
||||
|
||||
export interface ApiFacilitiesFacilityIdQualificationRatesPostRequest {
|
||||
facilityId: string;
|
||||
createFacilityQualificationRateRequest?: CreateFacilityQualificationRateRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class FacilityQualificationRatesApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdQualificationRatesGetRaw(requestParameters: ApiFacilitiesFacilityIdQualificationRatesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<FacilityQualificationRateResponse>>> {
|
||||
if (requestParameters['facilityId'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'facilityId',
|
||||
'Required parameter "facilityId" was null or undefined when calling apiFacilitiesFacilityIdQualificationRatesGet().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/facilities/{facilityId}/qualification-rates`;
|
||||
urlPath = urlPath.replace(`{${"facilityId"}}`, encodeURIComponent(String(requestParameters['facilityId'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(FacilityQualificationRateResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdQualificationRatesGet(requestParameters: ApiFacilitiesFacilityIdQualificationRatesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FacilityQualificationRateResponse>> {
|
||||
const response = await this.apiFacilitiesFacilityIdQualificationRatesGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdQualificationRatesIdDeleteRaw(requestParameters: ApiFacilitiesFacilityIdQualificationRatesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['facilityId'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'facilityId',
|
||||
'Required parameter "facilityId" was null or undefined when calling apiFacilitiesFacilityIdQualificationRatesIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiFacilitiesFacilityIdQualificationRatesIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/facilities/{facilityId}/qualification-rates/{id}`;
|
||||
urlPath = urlPath.replace(`{${"facilityId"}}`, encodeURIComponent(String(requestParameters['facilityId'])));
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'DELETE',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdQualificationRatesIdDelete(requestParameters: ApiFacilitiesFacilityIdQualificationRatesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiFacilitiesFacilityIdQualificationRatesIdDeleteRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdQualificationRatesIdPutRaw(requestParameters: ApiFacilitiesFacilityIdQualificationRatesIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacilityQualificationRateResponse>> {
|
||||
if (requestParameters['facilityId'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'facilityId',
|
||||
'Required parameter "facilityId" was null or undefined when calling apiFacilitiesFacilityIdQualificationRatesIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiFacilitiesFacilityIdQualificationRatesIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/facilities/{facilityId}/qualification-rates/{id}`;
|
||||
urlPath = urlPath.replace(`{${"facilityId"}}`, encodeURIComponent(String(requestParameters['facilityId'])));
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: UpdateFacilityQualificationRateRequestToJSON(requestParameters['updateFacilityQualificationRateRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => FacilityQualificationRateResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdQualificationRatesIdPut(requestParameters: ApiFacilitiesFacilityIdQualificationRatesIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacilityQualificationRateResponse> {
|
||||
const response = await this.apiFacilitiesFacilityIdQualificationRatesIdPutRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdQualificationRatesPostRaw(requestParameters: ApiFacilitiesFacilityIdQualificationRatesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacilityQualificationRateResponse>> {
|
||||
if (requestParameters['facilityId'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'facilityId',
|
||||
'Required parameter "facilityId" was null or undefined when calling apiFacilitiesFacilityIdQualificationRatesPost().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/facilities/{facilityId}/qualification-rates`;
|
||||
urlPath = urlPath.replace(`{${"facilityId"}}`, encodeURIComponent(String(requestParameters['facilityId'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: CreateFacilityQualificationRateRequestToJSON(requestParameters['createFacilityQualificationRateRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => FacilityQualificationRateResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdQualificationRatesPost(requestParameters: ApiFacilitiesFacilityIdQualificationRatesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacilityQualificationRateResponse> {
|
||||
const response = await this.apiFacilitiesFacilityIdQualificationRatesPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -35,10 +35,17 @@ export interface ApiOrdersGetRequest {
|
||||
search?: string;
|
||||
statusId?: string;
|
||||
facilityId?: string;
|
||||
priority?: string;
|
||||
requiredQualification?: string;
|
||||
shiftType?: string;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ApiOrdersIdDeleteRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiOrdersIdGetRequest {
|
||||
id: string;
|
||||
}
|
||||
@@ -74,6 +81,18 @@ export class OrdersApi extends runtime.BaseAPI {
|
||||
queryParameters['facilityId'] = requestParameters['facilityId'];
|
||||
}
|
||||
|
||||
if (requestParameters['priority'] != null) {
|
||||
queryParameters['priority'] = requestParameters['priority'];
|
||||
}
|
||||
|
||||
if (requestParameters['requiredQualification'] != null) {
|
||||
queryParameters['requiredQualification'] = requestParameters['requiredQualification'];
|
||||
}
|
||||
|
||||
if (requestParameters['shiftType'] != null) {
|
||||
queryParameters['shiftType'] = requestParameters['shiftType'];
|
||||
}
|
||||
|
||||
if (requestParameters['page'] != null) {
|
||||
queryParameters['page'] = requestParameters['page'];
|
||||
}
|
||||
@@ -112,6 +131,48 @@ export class OrdersApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiOrdersIdDeleteRaw(requestParameters: ApiOrdersIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiOrdersIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/orders/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'DELETE',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiOrdersIdDelete(requestParameters: ApiOrdersIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiOrdersIdDeleteRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiOrdersIdGetRaw(requestParameters: ApiOrdersIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderResponse>> {
|
||||
|
||||
@@ -0,0 +1,389 @@
|
||||
/* 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 * as runtime from '../runtime';
|
||||
import type {
|
||||
CreateTimeEntryRequest,
|
||||
TimeEntryDecisionRequest,
|
||||
TimeEntryResponse,
|
||||
TimeEntryResponsePagedResponse,
|
||||
UpdateTimeEntryRequest,
|
||||
} from '../models/index';
|
||||
import {
|
||||
CreateTimeEntryRequestFromJSON,
|
||||
CreateTimeEntryRequestToJSON,
|
||||
TimeEntryDecisionRequestFromJSON,
|
||||
TimeEntryDecisionRequestToJSON,
|
||||
TimeEntryResponseFromJSON,
|
||||
TimeEntryResponseToJSON,
|
||||
TimeEntryResponsePagedResponseFromJSON,
|
||||
TimeEntryResponsePagedResponseToJSON,
|
||||
UpdateTimeEntryRequestFromJSON,
|
||||
UpdateTimeEntryRequestToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiTimeEntriesGetRequest {
|
||||
statusId?: string;
|
||||
employeeId?: string;
|
||||
orderId?: string;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ApiTimeEntriesIdDecisionPostRequest {
|
||||
id: string;
|
||||
timeEntryDecisionRequest?: TimeEntryDecisionRequest;
|
||||
}
|
||||
|
||||
export interface ApiTimeEntriesIdDeleteRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiTimeEntriesIdGetRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiTimeEntriesIdPutRequest {
|
||||
id: string;
|
||||
updateTimeEntryRequest?: UpdateTimeEntryRequest;
|
||||
}
|
||||
|
||||
export interface ApiTimeEntriesIdSubmitPostRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiTimeEntriesPostRequest {
|
||||
createTimeEntryRequest?: CreateTimeEntryRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class TimeEntriesApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesGetRaw(requestParameters: ApiTimeEntriesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimeEntryResponsePagedResponse>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['statusId'] != null) {
|
||||
queryParameters['statusId'] = requestParameters['statusId'];
|
||||
}
|
||||
|
||||
if (requestParameters['employeeId'] != null) {
|
||||
queryParameters['employeeId'] = requestParameters['employeeId'];
|
||||
}
|
||||
|
||||
if (requestParameters['orderId'] != null) {
|
||||
queryParameters['orderId'] = requestParameters['orderId'];
|
||||
}
|
||||
|
||||
if (requestParameters['page'] != null) {
|
||||
queryParameters['page'] = requestParameters['page'];
|
||||
}
|
||||
|
||||
if (requestParameters['pageSize'] != null) {
|
||||
queryParameters['pageSize'] = requestParameters['pageSize'];
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/time-entries`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => TimeEntryResponsePagedResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesGet(requestParameters: ApiTimeEntriesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TimeEntryResponsePagedResponse> {
|
||||
const response = await this.apiTimeEntriesGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesIdDecisionPostRaw(requestParameters: ApiTimeEntriesIdDecisionPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimeEntryResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiTimeEntriesIdDecisionPost().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/time-entries/{id}/decision`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: TimeEntryDecisionRequestToJSON(requestParameters['timeEntryDecisionRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => TimeEntryResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesIdDecisionPost(requestParameters: ApiTimeEntriesIdDecisionPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TimeEntryResponse> {
|
||||
const response = await this.apiTimeEntriesIdDecisionPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesIdDeleteRaw(requestParameters: ApiTimeEntriesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiTimeEntriesIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/time-entries/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'DELETE',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesIdDelete(requestParameters: ApiTimeEntriesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiTimeEntriesIdDeleteRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesIdGetRaw(requestParameters: ApiTimeEntriesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimeEntryResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiTimeEntriesIdGet().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/time-entries/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => TimeEntryResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesIdGet(requestParameters: ApiTimeEntriesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TimeEntryResponse> {
|
||||
const response = await this.apiTimeEntriesIdGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesIdPutRaw(requestParameters: ApiTimeEntriesIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimeEntryResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiTimeEntriesIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/time-entries/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: UpdateTimeEntryRequestToJSON(requestParameters['updateTimeEntryRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => TimeEntryResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesIdPut(requestParameters: ApiTimeEntriesIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TimeEntryResponse> {
|
||||
const response = await this.apiTimeEntriesIdPutRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesIdSubmitPostRaw(requestParameters: ApiTimeEntriesIdSubmitPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimeEntryResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiTimeEntriesIdSubmitPost().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/time-entries/{id}/submit`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => TimeEntryResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesIdSubmitPost(requestParameters: ApiTimeEntriesIdSubmitPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TimeEntryResponse> {
|
||||
const response = await this.apiTimeEntriesIdSubmitPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesPostRaw(requestParameters: ApiTimeEntriesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimeEntryResponse>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/time-entries`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: CreateTimeEntryRequestToJSON(requestParameters['createTimeEntryRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => TimeEntryResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTimeEntriesPost(requestParameters: ApiTimeEntriesPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TimeEntryResponse> {
|
||||
const response = await this.apiTimeEntriesPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,763 @@
|
||||
/* 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 * as runtime from '../runtime';
|
||||
import type {
|
||||
TrashAbsenceResponse,
|
||||
TrashContractResponse,
|
||||
TrashEmployeeResponse,
|
||||
TrashFacilityContactResponse,
|
||||
TrashFacilityQualificationRateResponse,
|
||||
TrashFacilityResponse,
|
||||
TrashOrderResponse,
|
||||
TrashTimeEntryResponse,
|
||||
} from '../models/index';
|
||||
import {
|
||||
TrashAbsenceResponseFromJSON,
|
||||
TrashAbsenceResponseToJSON,
|
||||
TrashContractResponseFromJSON,
|
||||
TrashContractResponseToJSON,
|
||||
TrashEmployeeResponseFromJSON,
|
||||
TrashEmployeeResponseToJSON,
|
||||
TrashFacilityContactResponseFromJSON,
|
||||
TrashFacilityContactResponseToJSON,
|
||||
TrashFacilityQualificationRateResponseFromJSON,
|
||||
TrashFacilityQualificationRateResponseToJSON,
|
||||
TrashFacilityResponseFromJSON,
|
||||
TrashFacilityResponseToJSON,
|
||||
TrashOrderResponseFromJSON,
|
||||
TrashOrderResponseToJSON,
|
||||
TrashTimeEntryResponseFromJSON,
|
||||
TrashTimeEntryResponseToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiTrashAbsencesGetRequest {
|
||||
search?: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashAbsencesIdRestorePostRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashContractsGetRequest {
|
||||
search?: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashContractsIdRestorePostRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashEmployeesGetRequest {
|
||||
search?: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashEmployeesIdRestorePostRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashFacilitiesGetRequest {
|
||||
search?: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashFacilitiesIdRestorePostRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashFacilityContactsGetRequest {
|
||||
search?: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashFacilityContactsIdRestorePostRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashFacilityQualificationRatesGetRequest {
|
||||
search?: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashFacilityQualificationRatesIdRestorePostRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashOrdersGetRequest {
|
||||
search?: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashOrdersIdRestorePostRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashTimeEntriesGetRequest {
|
||||
search?: string;
|
||||
}
|
||||
|
||||
export interface ApiTrashTimeEntriesIdRestorePostRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class TrashApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashAbsencesGetRaw(requestParameters: ApiTrashAbsencesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TrashAbsenceResponse>>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['search'] != null) {
|
||||
queryParameters['search'] = requestParameters['search'];
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/absences`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TrashAbsenceResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashAbsencesGet(requestParameters: ApiTrashAbsencesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TrashAbsenceResponse>> {
|
||||
const response = await this.apiTrashAbsencesGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashAbsencesIdRestorePostRaw(requestParameters: ApiTrashAbsencesIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiTrashAbsencesIdRestorePost().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/absences/{id}/restore`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashAbsencesIdRestorePost(requestParameters: ApiTrashAbsencesIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiTrashAbsencesIdRestorePostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashContractsGetRaw(requestParameters: ApiTrashContractsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TrashContractResponse>>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['search'] != null) {
|
||||
queryParameters['search'] = requestParameters['search'];
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/contracts`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TrashContractResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashContractsGet(requestParameters: ApiTrashContractsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TrashContractResponse>> {
|
||||
const response = await this.apiTrashContractsGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashContractsIdRestorePostRaw(requestParameters: ApiTrashContractsIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiTrashContractsIdRestorePost().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/contracts/{id}/restore`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashContractsIdRestorePost(requestParameters: ApiTrashContractsIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiTrashContractsIdRestorePostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashEmployeesGetRaw(requestParameters: ApiTrashEmployeesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TrashEmployeeResponse>>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['search'] != null) {
|
||||
queryParameters['search'] = requestParameters['search'];
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/employees`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TrashEmployeeResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashEmployeesGet(requestParameters: ApiTrashEmployeesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TrashEmployeeResponse>> {
|
||||
const response = await this.apiTrashEmployeesGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashEmployeesIdRestorePostRaw(requestParameters: ApiTrashEmployeesIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiTrashEmployeesIdRestorePost().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/employees/{id}/restore`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashEmployeesIdRestorePost(requestParameters: ApiTrashEmployeesIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiTrashEmployeesIdRestorePostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashFacilitiesGetRaw(requestParameters: ApiTrashFacilitiesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TrashFacilityResponse>>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['search'] != null) {
|
||||
queryParameters['search'] = requestParameters['search'];
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/facilities`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TrashFacilityResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashFacilitiesGet(requestParameters: ApiTrashFacilitiesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TrashFacilityResponse>> {
|
||||
const response = await this.apiTrashFacilitiesGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashFacilitiesIdRestorePostRaw(requestParameters: ApiTrashFacilitiesIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiTrashFacilitiesIdRestorePost().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/facilities/{id}/restore`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashFacilitiesIdRestorePost(requestParameters: ApiTrashFacilitiesIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiTrashFacilitiesIdRestorePostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashFacilityContactsGetRaw(requestParameters: ApiTrashFacilityContactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TrashFacilityContactResponse>>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['search'] != null) {
|
||||
queryParameters['search'] = requestParameters['search'];
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/facility-contacts`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TrashFacilityContactResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashFacilityContactsGet(requestParameters: ApiTrashFacilityContactsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TrashFacilityContactResponse>> {
|
||||
const response = await this.apiTrashFacilityContactsGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashFacilityContactsIdRestorePostRaw(requestParameters: ApiTrashFacilityContactsIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiTrashFacilityContactsIdRestorePost().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/facility-contacts/{id}/restore`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashFacilityContactsIdRestorePost(requestParameters: ApiTrashFacilityContactsIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiTrashFacilityContactsIdRestorePostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashFacilityQualificationRatesGetRaw(requestParameters: ApiTrashFacilityQualificationRatesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TrashFacilityQualificationRateResponse>>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['search'] != null) {
|
||||
queryParameters['search'] = requestParameters['search'];
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/facility-qualification-rates`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TrashFacilityQualificationRateResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashFacilityQualificationRatesGet(requestParameters: ApiTrashFacilityQualificationRatesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TrashFacilityQualificationRateResponse>> {
|
||||
const response = await this.apiTrashFacilityQualificationRatesGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashFacilityQualificationRatesIdRestorePostRaw(requestParameters: ApiTrashFacilityQualificationRatesIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiTrashFacilityQualificationRatesIdRestorePost().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/facility-qualification-rates/{id}/restore`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashFacilityQualificationRatesIdRestorePost(requestParameters: ApiTrashFacilityQualificationRatesIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiTrashFacilityQualificationRatesIdRestorePostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashOrdersGetRaw(requestParameters: ApiTrashOrdersGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TrashOrderResponse>>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['search'] != null) {
|
||||
queryParameters['search'] = requestParameters['search'];
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/orders`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TrashOrderResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashOrdersGet(requestParameters: ApiTrashOrdersGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TrashOrderResponse>> {
|
||||
const response = await this.apiTrashOrdersGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashOrdersIdRestorePostRaw(requestParameters: ApiTrashOrdersIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiTrashOrdersIdRestorePost().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/orders/{id}/restore`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashOrdersIdRestorePost(requestParameters: ApiTrashOrdersIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiTrashOrdersIdRestorePostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashTimeEntriesGetRaw(requestParameters: ApiTrashTimeEntriesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TrashTimeEntryResponse>>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['search'] != null) {
|
||||
queryParameters['search'] = requestParameters['search'];
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/time-entries`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TrashTimeEntryResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashTimeEntriesGet(requestParameters: ApiTrashTimeEntriesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TrashTimeEntryResponse>> {
|
||||
const response = await this.apiTrashTimeEntriesGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashTimeEntriesIdRestorePostRaw(requestParameters: ApiTrashTimeEntriesIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiTrashTimeEntriesIdRestorePost().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
if (this.configuration && this.configuration.accessToken) {
|
||||
const token = this.configuration.accessToken;
|
||||
const tokenString = await token("Bearer", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/trash/time-entries/{id}/restore`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiTrashTimeEntriesIdRestorePost(requestParameters: ApiTrashTimeEntriesIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiTrashTimeEntriesIdRestorePostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,15 +1,20 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export * from './AbsencesApi';
|
||||
export * from './AdminEmailApi';
|
||||
export * from './AdminSessionsApi';
|
||||
export * from './AuditLogApi';
|
||||
export * from './AuthApi';
|
||||
export * from './ContractsApi';
|
||||
export * from './DocumentsApi';
|
||||
export * from './EmployeesApi';
|
||||
export * from './FacilitiesApi';
|
||||
export * from './FacilityContactsApi';
|
||||
export * from './FacilityQualificationRatesApi';
|
||||
export * from './HealthApi';
|
||||
export * from './OrdersApi';
|
||||
export * from './RolesApi';
|
||||
export * from './TimeEntriesApi';
|
||||
export * from './TrashApi';
|
||||
export * from './UsersApi';
|
||||
export * from './ValueListsApi';
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AbsenceDecisionRequest
|
||||
*/
|
||||
export interface AbsenceDecisionRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AbsenceDecisionRequest
|
||||
*/
|
||||
status?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AbsenceDecisionRequest
|
||||
*/
|
||||
adminNote?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AbsenceDecisionRequest interface.
|
||||
*/
|
||||
export function instanceOfAbsenceDecisionRequest(value: object): value is AbsenceDecisionRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function AbsenceDecisionRequestFromJSON(json: any): AbsenceDecisionRequest {
|
||||
return AbsenceDecisionRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AbsenceDecisionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AbsenceDecisionRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'status': json['status'] == null ? undefined : json['status'],
|
||||
'adminNote': json['adminNote'] == null ? undefined : json['adminNote'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AbsenceDecisionRequestToJSON(json: any): AbsenceDecisionRequest {
|
||||
return AbsenceDecisionRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AbsenceDecisionRequestToJSONTyped(value?: AbsenceDecisionRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'status': value['status'],
|
||||
'adminNote': value['adminNote'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AbsenceResponse
|
||||
*/
|
||||
export interface AbsenceResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AbsenceResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AbsenceResponse
|
||||
*/
|
||||
employeeId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AbsenceResponse
|
||||
*/
|
||||
employeeName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AbsenceResponse
|
||||
*/
|
||||
type?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AbsenceResponse
|
||||
*/
|
||||
startDate?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AbsenceResponse
|
||||
*/
|
||||
endDate?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AbsenceResponse
|
||||
*/
|
||||
reason?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AbsenceResponse
|
||||
*/
|
||||
substitute?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AbsenceResponse
|
||||
*/
|
||||
note?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AbsenceResponse
|
||||
*/
|
||||
status?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AbsenceResponse
|
||||
*/
|
||||
adminNote?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AbsenceResponse
|
||||
*/
|
||||
createdAt?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AbsenceResponse interface.
|
||||
*/
|
||||
export function instanceOfAbsenceResponse(value: object): value is AbsenceResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function AbsenceResponseFromJSON(json: any): AbsenceResponse {
|
||||
return AbsenceResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AbsenceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AbsenceResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
|
||||
'employeeName': json['employeeName'] == null ? undefined : json['employeeName'],
|
||||
'type': json['type'] == null ? undefined : json['type'],
|
||||
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
||||
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
||||
'reason': json['reason'] == null ? undefined : json['reason'],
|
||||
'substitute': json['substitute'] == null ? undefined : json['substitute'],
|
||||
'note': json['note'] == null ? undefined : json['note'],
|
||||
'status': json['status'] == null ? undefined : json['status'],
|
||||
'adminNote': json['adminNote'] == null ? undefined : json['adminNote'],
|
||||
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function AbsenceResponseToJSON(json: any): AbsenceResponse {
|
||||
return AbsenceResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AbsenceResponseToJSONTyped(value?: AbsenceResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'employeeId': value['employeeId'],
|
||||
'employeeName': value['employeeName'],
|
||||
'type': value['type'],
|
||||
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString().substring(0,10)),
|
||||
'endDate': value['endDate'] == null ? undefined : ((value['endDate']).toISOString().substring(0,10)),
|
||||
'reason': value['reason'],
|
||||
'substitute': value['substitute'],
|
||||
'note': value['note'],
|
||||
'status': value['status'],
|
||||
'adminNote': value['adminNote'],
|
||||
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/* 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 { AbsenceResponse } from './AbsenceResponse';
|
||||
import {
|
||||
AbsenceResponseFromJSON,
|
||||
AbsenceResponseFromJSONTyped,
|
||||
AbsenceResponseToJSON,
|
||||
AbsenceResponseToJSONTyped,
|
||||
} from './AbsenceResponse';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AbsenceResponsePagedResponse
|
||||
*/
|
||||
export interface AbsenceResponsePagedResponse {
|
||||
/**
|
||||
*
|
||||
* @type {Array<AbsenceResponse>}
|
||||
* @memberof AbsenceResponsePagedResponse
|
||||
*/
|
||||
items?: Array<AbsenceResponse> | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AbsenceResponsePagedResponse
|
||||
*/
|
||||
totalCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AbsenceResponsePagedResponse
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AbsenceResponsePagedResponse
|
||||
*/
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AbsenceResponsePagedResponse interface.
|
||||
*/
|
||||
export function instanceOfAbsenceResponsePagedResponse(value: object): value is AbsenceResponsePagedResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function AbsenceResponsePagedResponseFromJSON(json: any): AbsenceResponsePagedResponse {
|
||||
return AbsenceResponsePagedResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AbsenceResponsePagedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AbsenceResponsePagedResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'items': json['items'] == null ? undefined : ((json['items'] as Array<any>).map(AbsenceResponseFromJSON)),
|
||||
'totalCount': json['totalCount'] == null ? undefined : json['totalCount'],
|
||||
'page': json['page'] == null ? undefined : json['page'],
|
||||
'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AbsenceResponsePagedResponseToJSON(json: any): AbsenceResponsePagedResponse {
|
||||
return AbsenceResponsePagedResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AbsenceResponsePagedResponseToJSONTyped(value?: AbsenceResponsePagedResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'items': value['items'] == null ? undefined : ((value['items'] as Array<any>).map(AbsenceResponseToJSON)),
|
||||
'totalCount': value['totalCount'],
|
||||
'page': value['page'],
|
||||
'pageSize': value['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,6 +34,13 @@ import {
|
||||
PermissionEffectToJSON,
|
||||
PermissionEffectToJSONTyped,
|
||||
} from './PermissionEffect';
|
||||
import type { PermissionScope } from './PermissionScope';
|
||||
import {
|
||||
PermissionScopeFromJSON,
|
||||
PermissionScopeFromJSONTyped,
|
||||
PermissionScopeToJSON,
|
||||
PermissionScopeToJSONTyped,
|
||||
} from './PermissionScope';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -59,6 +66,12 @@ export interface AddUserPermissionOverrideRequest {
|
||||
* @memberof AddUserPermissionOverrideRequest
|
||||
*/
|
||||
effect?: PermissionEffect;
|
||||
/**
|
||||
*
|
||||
* @type {PermissionScope}
|
||||
* @memberof AddUserPermissionOverrideRequest
|
||||
*/
|
||||
scope?: PermissionScope;
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +96,7 @@ export function AddUserPermissionOverrideRequestFromJSONTyped(json: any, ignoreD
|
||||
'module': json['module'] == null ? undefined : ModuleTypeFromJSON(json['module']),
|
||||
'action': json['action'] == null ? undefined : PermissionActionFromJSON(json['action']),
|
||||
'effect': json['effect'] == null ? undefined : PermissionEffectFromJSON(json['effect']),
|
||||
'scope': json['scope'] == null ? undefined : PermissionScopeFromJSON(json['scope']),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -100,6 +114,7 @@ export function AddUserPermissionOverrideRequestToJSONTyped(value?: AddUserPermi
|
||||
'module': ModuleTypeToJSON(value['module']),
|
||||
'action': PermissionActionToJSON(value['action']),
|
||||
'effect': PermissionEffectToJSON(value['effect']),
|
||||
'scope': PermissionScopeToJSON(value['scope']),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface CreateAbsenceRequest
|
||||
*/
|
||||
export interface CreateAbsenceRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateAbsenceRequest
|
||||
*/
|
||||
type?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof CreateAbsenceRequest
|
||||
*/
|
||||
startDate?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof CreateAbsenceRequest
|
||||
*/
|
||||
endDate?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateAbsenceRequest
|
||||
*/
|
||||
reason?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateAbsenceRequest
|
||||
*/
|
||||
substitute?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateAbsenceRequest
|
||||
*/
|
||||
note?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateAbsenceRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateAbsenceRequest(value: object): value is CreateAbsenceRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function CreateAbsenceRequestFromJSON(json: any): CreateAbsenceRequest {
|
||||
return CreateAbsenceRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateAbsenceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAbsenceRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'type': json['type'] == null ? undefined : json['type'],
|
||||
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
||||
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
||||
'reason': json['reason'] == null ? undefined : json['reason'],
|
||||
'substitute': json['substitute'] == null ? undefined : json['substitute'],
|
||||
'note': json['note'] == null ? undefined : json['note'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateAbsenceRequestToJSON(json: any): CreateAbsenceRequest {
|
||||
return CreateAbsenceRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateAbsenceRequestToJSONTyped(value?: CreateAbsenceRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'type': value['type'],
|
||||
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString().substring(0,10)),
|
||||
'endDate': value['endDate'] == null ? undefined : ((value['endDate']).toISOString().substring(0,10)),
|
||||
'reason': value['reason'],
|
||||
'substitute': value['substitute'],
|
||||
'note': value['note'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface CreateFacilityQualificationRateRequest
|
||||
*/
|
||||
export interface CreateFacilityQualificationRateRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityQualificationRateRequest
|
||||
*/
|
||||
qualification?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CreateFacilityQualificationRateRequest
|
||||
*/
|
||||
rate?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateFacilityQualificationRateRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateFacilityQualificationRateRequest(value: object): value is CreateFacilityQualificationRateRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function CreateFacilityQualificationRateRequestFromJSON(json: any): CreateFacilityQualificationRateRequest {
|
||||
return CreateFacilityQualificationRateRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateFacilityQualificationRateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFacilityQualificationRateRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'qualification': json['qualification'] == null ? undefined : json['qualification'],
|
||||
'rate': json['rate'] == null ? undefined : json['rate'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateFacilityQualificationRateRequestToJSON(json: any): CreateFacilityQualificationRateRequest {
|
||||
return CreateFacilityQualificationRateRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateFacilityQualificationRateRequestToJSONTyped(value?: CreateFacilityQualificationRateRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'qualification': value['qualification'],
|
||||
'rate': value['rate'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface CreateTimeEntryRequest
|
||||
*/
|
||||
export interface CreateTimeEntryRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateTimeEntryRequest
|
||||
*/
|
||||
orderId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof CreateTimeEntryRequest
|
||||
*/
|
||||
date?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateTimeEntryRequest
|
||||
*/
|
||||
start?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateTimeEntryRequest
|
||||
*/
|
||||
end?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateTimeEntryRequest
|
||||
*/
|
||||
breakDuration?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CreateTimeEntryRequest
|
||||
*/
|
||||
nightHours?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CreateTimeEntryRequest
|
||||
*/
|
||||
saturdayHours?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CreateTimeEntryRequest
|
||||
*/
|
||||
sundayHours?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CreateTimeEntryRequest
|
||||
*/
|
||||
holidayHours?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateTimeEntryRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateTimeEntryRequest(value: object): value is CreateTimeEntryRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function CreateTimeEntryRequestFromJSON(json: any): CreateTimeEntryRequest {
|
||||
return CreateTimeEntryRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateTimeEntryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTimeEntryRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'orderId': json['orderId'] == null ? undefined : json['orderId'],
|
||||
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
||||
'start': json['start'] == null ? undefined : json['start'],
|
||||
'end': json['end'] == null ? undefined : json['end'],
|
||||
'breakDuration': json['breakDuration'] == null ? undefined : json['breakDuration'],
|
||||
'nightHours': json['nightHours'] == null ? undefined : json['nightHours'],
|
||||
'saturdayHours': json['saturdayHours'] == null ? undefined : json['saturdayHours'],
|
||||
'sundayHours': json['sundayHours'] == null ? undefined : json['sundayHours'],
|
||||
'holidayHours': json['holidayHours'] == null ? undefined : json['holidayHours'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateTimeEntryRequestToJSON(json: any): CreateTimeEntryRequest {
|
||||
return CreateTimeEntryRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateTimeEntryRequestToJSONTyped(value?: CreateTimeEntryRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'orderId': value['orderId'],
|
||||
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0,10)),
|
||||
'start': value['start'],
|
||||
'end': value['end'],
|
||||
'breakDuration': value['breakDuration'],
|
||||
'nightHours': value['nightHours'],
|
||||
'saturdayHours': value['saturdayHours'],
|
||||
'sundayHours': value['sundayHours'],
|
||||
'holidayHours': value['holidayHours'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -49,6 +49,12 @@ export interface CreateValueListItemRequest {
|
||||
* @memberof CreateValueListItemRequest
|
||||
*/
|
||||
isTerminal?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CreateValueListItemRequest
|
||||
*/
|
||||
triggersFollowUp?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -73,6 +79,7 @@ export function CreateValueListItemRequestFromJSONTyped(json: any, ignoreDiscrim
|
||||
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
||||
'isInitial': json['isInitial'] == null ? undefined : json['isInitial'],
|
||||
'isTerminal': json['isTerminal'] == null ? undefined : json['isTerminal'],
|
||||
'triggersFollowUp': json['triggersFollowUp'] == null ? undefined : json['triggersFollowUp'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -92,6 +99,7 @@ export function CreateValueListItemRequestToJSONTyped(value?: CreateValueListIte
|
||||
'isDefault': value['isDefault'],
|
||||
'isInitial': value['isInitial'],
|
||||
'isTerminal': value['isTerminal'],
|
||||
'triggersFollowUp': value['triggersFollowUp'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DocumentResponse
|
||||
*/
|
||||
export interface DocumentResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DocumentResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DocumentResponse
|
||||
*/
|
||||
entityType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DocumentResponse
|
||||
*/
|
||||
entityId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DocumentResponse
|
||||
*/
|
||||
category?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DocumentResponse
|
||||
*/
|
||||
fileName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DocumentResponse
|
||||
*/
|
||||
contentType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof DocumentResponse
|
||||
*/
|
||||
sizeBytes?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DocumentResponse
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DocumentResponse
|
||||
*/
|
||||
uploadedByUserId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DocumentResponse
|
||||
*/
|
||||
uploadedByUsername?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof DocumentResponse
|
||||
*/
|
||||
createdAt?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DocumentResponse interface.
|
||||
*/
|
||||
export function instanceOfDocumentResponse(value: object): value is DocumentResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function DocumentResponseFromJSON(json: any): DocumentResponse {
|
||||
return DocumentResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'entityType': json['entityType'] == null ? undefined : json['entityType'],
|
||||
'entityId': json['entityId'] == null ? undefined : json['entityId'],
|
||||
'category': json['category'] == null ? undefined : json['category'],
|
||||
'fileName': json['fileName'] == null ? undefined : json['fileName'],
|
||||
'contentType': json['contentType'] == null ? undefined : json['contentType'],
|
||||
'sizeBytes': json['sizeBytes'] == null ? undefined : json['sizeBytes'],
|
||||
'description': json['description'] == null ? undefined : json['description'],
|
||||
'uploadedByUserId': json['uploadedByUserId'] == null ? undefined : json['uploadedByUserId'],
|
||||
'uploadedByUsername': json['uploadedByUsername'] == null ? undefined : json['uploadedByUsername'],
|
||||
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function DocumentResponseToJSON(json: any): DocumentResponse {
|
||||
return DocumentResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DocumentResponseToJSONTyped(value?: DocumentResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'entityType': value['entityType'],
|
||||
'entityId': value['entityId'],
|
||||
'category': value['category'],
|
||||
'fileName': value['fileName'],
|
||||
'contentType': value['contentType'],
|
||||
'sizeBytes': value['sizeBytes'],
|
||||
'description': value['description'],
|
||||
'uploadedByUserId': value['uploadedByUserId'],
|
||||
'uploadedByUsername': value['uploadedByUsername'],
|
||||
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface FacilityQualificationRateResponse
|
||||
*/
|
||||
export interface FacilityQualificationRateResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityQualificationRateResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityQualificationRateResponse
|
||||
*/
|
||||
facilityId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityQualificationRateResponse
|
||||
*/
|
||||
qualification?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof FacilityQualificationRateResponse
|
||||
*/
|
||||
rate?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the FacilityQualificationRateResponse interface.
|
||||
*/
|
||||
export function instanceOfFacilityQualificationRateResponse(value: object): value is FacilityQualificationRateResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function FacilityQualificationRateResponseFromJSON(json: any): FacilityQualificationRateResponse {
|
||||
return FacilityQualificationRateResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function FacilityQualificationRateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityQualificationRateResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
|
||||
'qualification': json['qualification'] == null ? undefined : json['qualification'],
|
||||
'rate': json['rate'] == null ? undefined : json['rate'],
|
||||
};
|
||||
}
|
||||
|
||||
export function FacilityQualificationRateResponseToJSON(json: any): FacilityQualificationRateResponse {
|
||||
return FacilityQualificationRateResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function FacilityQualificationRateResponseToJSONTyped(value?: FacilityQualificationRateResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'facilityId': value['facilityId'],
|
||||
'qualification': value['qualification'],
|
||||
'rate': value['rate'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -97,6 +97,78 @@ export interface FacilityResponse {
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
billingCountry?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
followUpDueDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
billingRate?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
nightSurchargePercent?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
saturdaySurchargePercent?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
sundaySurchargePercent?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
holidaySurchargePercent?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
travelCostRate?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
minimumHours?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
breakPolicy?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
billingInterval?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
paymentTermDays?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
individualAgreements?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -129,6 +201,18 @@ export function FacilityResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
||||
'billingPostalCode': json['billingPostalCode'] == null ? undefined : json['billingPostalCode'],
|
||||
'billingCity': json['billingCity'] == null ? undefined : json['billingCity'],
|
||||
'billingCountry': json['billingCountry'] == null ? undefined : json['billingCountry'],
|
||||
'followUpDueDate': json['followUpDueDate'] == null ? undefined : (new Date(json['followUpDueDate'])),
|
||||
'billingRate': json['billingRate'] == null ? undefined : json['billingRate'],
|
||||
'nightSurchargePercent': json['nightSurchargePercent'] == null ? undefined : json['nightSurchargePercent'],
|
||||
'saturdaySurchargePercent': json['saturdaySurchargePercent'] == null ? undefined : json['saturdaySurchargePercent'],
|
||||
'sundaySurchargePercent': json['sundaySurchargePercent'] == null ? undefined : json['sundaySurchargePercent'],
|
||||
'holidaySurchargePercent': json['holidaySurchargePercent'] == null ? undefined : json['holidaySurchargePercent'],
|
||||
'travelCostRate': json['travelCostRate'] == null ? undefined : json['travelCostRate'],
|
||||
'minimumHours': json['minimumHours'] == null ? undefined : json['minimumHours'],
|
||||
'breakPolicy': json['breakPolicy'] == null ? undefined : json['breakPolicy'],
|
||||
'billingInterval': json['billingInterval'] == null ? undefined : json['billingInterval'],
|
||||
'paymentTermDays': json['paymentTermDays'] == null ? undefined : json['paymentTermDays'],
|
||||
'individualAgreements': json['individualAgreements'] == null ? undefined : json['individualAgreements'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -156,6 +240,18 @@ export function FacilityResponseToJSONTyped(value?: FacilityResponse | null, ign
|
||||
'billingPostalCode': value['billingPostalCode'],
|
||||
'billingCity': value['billingCity'],
|
||||
'billingCountry': value['billingCountry'],
|
||||
'followUpDueDate': value['followUpDueDate'] === null ? null : ((value['followUpDueDate'] as any)?.toISOString()),
|
||||
'billingRate': value['billingRate'],
|
||||
'nightSurchargePercent': value['nightSurchargePercent'],
|
||||
'saturdaySurchargePercent': value['saturdaySurchargePercent'],
|
||||
'sundaySurchargePercent': value['sundaySurchargePercent'],
|
||||
'holidaySurchargePercent': value['holidaySurchargePercent'],
|
||||
'travelCostRate': value['travelCostRate'],
|
||||
'minimumHours': value['minimumHours'],
|
||||
'breakPolicy': value['breakPolicy'],
|
||||
'billingInterval': value['billingInterval'],
|
||||
'paymentTermDays': value['paymentTermDays'],
|
||||
'individualAgreements': value['individualAgreements'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -25,12 +25,6 @@ export interface LoginResponse {
|
||||
* @memberof LoginResponse
|
||||
*/
|
||||
accessToken?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof LoginResponse
|
||||
*/
|
||||
refreshToken?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
@@ -63,7 +57,6 @@ export function LoginResponseFromJSONTyped(json: any, ignoreDiscriminator: boole
|
||||
return {
|
||||
|
||||
'accessToken': json['accessToken'] == null ? undefined : json['accessToken'],
|
||||
'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'],
|
||||
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
||||
'mustChangePassword': json['mustChangePassword'] == null ? undefined : json['mustChangePassword'],
|
||||
};
|
||||
@@ -81,7 +74,6 @@ export function LoginResponseToJSONTyped(value?: LoginResponse | null, ignoreDis
|
||||
return {
|
||||
|
||||
'accessToken': value['accessToken'],
|
||||
'refreshToken': value['refreshToken'],
|
||||
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
||||
'mustChangePassword': value['mustChangePassword'],
|
||||
};
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface LogoutRequest
|
||||
*/
|
||||
export interface LogoutRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof LogoutRequest
|
||||
*/
|
||||
refreshToken?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the LogoutRequest interface.
|
||||
*/
|
||||
export function instanceOfLogoutRequest(value: object): value is LogoutRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function LogoutRequestFromJSON(json: any): LogoutRequest {
|
||||
return LogoutRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function LogoutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogoutRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'],
|
||||
};
|
||||
}
|
||||
|
||||
export function LogoutRequestToJSON(json: any): LogoutRequest {
|
||||
return LogoutRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function LogoutRequestToJSONTyped(value?: LogoutRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'refreshToken': value['refreshToken'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -27,7 +27,11 @@ export const ModuleType = {
|
||||
Recruiting: 'Recruiting',
|
||||
Controlling: 'Controlling',
|
||||
UserManagement: 'UserManagement',
|
||||
AuditLog: 'AuditLog'
|
||||
AuditLog: 'AuditLog',
|
||||
Documents: 'Documents',
|
||||
Users: 'Users',
|
||||
Configuration: 'Configuration',
|
||||
Absences: 'Absences'
|
||||
} as const;
|
||||
export type ModuleType = typeof ModuleType[keyof typeof ModuleType];
|
||||
|
||||
|
||||
@@ -23,7 +23,8 @@ export const PermissionAction = {
|
||||
Edit: 'Edit',
|
||||
Delete: 'Delete',
|
||||
Export: 'Export',
|
||||
Approve: 'Approve'
|
||||
Approve: 'Approve',
|
||||
Recover: 'Recover'
|
||||
} as const;
|
||||
export type PermissionAction = typeof PermissionAction[keyof typeof PermissionAction];
|
||||
|
||||
|
||||
@@ -27,6 +27,13 @@ import {
|
||||
PermissionActionToJSON,
|
||||
PermissionActionToJSONTyped,
|
||||
} from './PermissionAction';
|
||||
import type { PermissionScope } from './PermissionScope';
|
||||
import {
|
||||
PermissionScopeFromJSON,
|
||||
PermissionScopeFromJSONTyped,
|
||||
PermissionScopeToJSON,
|
||||
PermissionScopeToJSONTyped,
|
||||
} from './PermissionScope';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -46,6 +53,12 @@ export interface PermissionDto {
|
||||
* @memberof PermissionDto
|
||||
*/
|
||||
action?: PermissionAction;
|
||||
/**
|
||||
*
|
||||
* @type {PermissionScope}
|
||||
* @memberof PermissionDto
|
||||
*/
|
||||
scope?: PermissionScope;
|
||||
}
|
||||
|
||||
|
||||
@@ -69,6 +82,7 @@ export function PermissionDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
|
||||
|
||||
'module': json['module'] == null ? undefined : ModuleTypeFromJSON(json['module']),
|
||||
'action': json['action'] == null ? undefined : PermissionActionFromJSON(json['action']),
|
||||
'scope': json['scope'] == null ? undefined : PermissionScopeFromJSON(json['scope']),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -85,6 +99,7 @@ export function PermissionDtoToJSONTyped(value?: PermissionDto | null, ignoreDis
|
||||
|
||||
'module': ModuleTypeToJSON(value['module']),
|
||||
'action': PermissionActionToJSON(value['action']),
|
||||
'scope': PermissionScopeToJSON(value['scope']),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const PermissionScope = {
|
||||
All: 'All',
|
||||
Own: 'Own'
|
||||
} as const;
|
||||
export type PermissionScope = typeof PermissionScope[keyof typeof PermissionScope];
|
||||
|
||||
|
||||
export function instanceOfPermissionScope(value: any): boolean {
|
||||
for (const key in PermissionScope) {
|
||||
if (Object.prototype.hasOwnProperty.call(PermissionScope, key)) {
|
||||
if (PermissionScope[key as keyof typeof PermissionScope] === value) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function PermissionScopeFromJSON(json: any): PermissionScope {
|
||||
return PermissionScopeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PermissionScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionScope {
|
||||
return json as PermissionScope;
|
||||
}
|
||||
|
||||
export function PermissionScopeToJSON(value?: PermissionScope | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function PermissionScopeToJSONTyped(value: any, ignoreDiscriminator: boolean): PermissionScope {
|
||||
return value as PermissionScope;
|
||||
}
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RefreshRequest
|
||||
*/
|
||||
export interface RefreshRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RefreshRequest
|
||||
*/
|
||||
refreshToken?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the RefreshRequest interface.
|
||||
*/
|
||||
export function instanceOfRefreshRequest(value: object): value is RefreshRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function RefreshRequestFromJSON(json: any): RefreshRequest {
|
||||
return RefreshRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RefreshRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefreshRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'],
|
||||
};
|
||||
}
|
||||
|
||||
export function RefreshRequestToJSON(json: any): RefreshRequest {
|
||||
return RefreshRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RefreshRequestToJSONTyped(value?: RefreshRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'refreshToken': value['refreshToken'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface TimeEntryDecisionRequest
|
||||
*/
|
||||
export interface TimeEntryDecisionRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryDecisionRequest
|
||||
*/
|
||||
statusId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryDecisionRequest
|
||||
*/
|
||||
adminNote?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the TimeEntryDecisionRequest interface.
|
||||
*/
|
||||
export function instanceOfTimeEntryDecisionRequest(value: object): value is TimeEntryDecisionRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function TimeEntryDecisionRequestFromJSON(json: any): TimeEntryDecisionRequest {
|
||||
return TimeEntryDecisionRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TimeEntryDecisionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeEntryDecisionRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'statusId': json['statusId'] == null ? undefined : json['statusId'],
|
||||
'adminNote': json['adminNote'] == null ? undefined : json['adminNote'],
|
||||
};
|
||||
}
|
||||
|
||||
export function TimeEntryDecisionRequestToJSON(json: any): TimeEntryDecisionRequest {
|
||||
return TimeEntryDecisionRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TimeEntryDecisionRequestToJSONTyped(value?: TimeEntryDecisionRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'statusId': value['statusId'],
|
||||
'adminNote': value['adminNote'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,209 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface TimeEntryResponse
|
||||
*/
|
||||
export interface TimeEntryResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
employeeId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
employeeName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
orderId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
facilityId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
facilityName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
date?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
start?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
end?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
breakDuration?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
nightHours?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
saturdayHours?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
sundayHours?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
holidayHours?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
statusId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
statusName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
isEditableByOwner?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
adminNote?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof TimeEntryResponse
|
||||
*/
|
||||
createdAt?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the TimeEntryResponse interface.
|
||||
*/
|
||||
export function instanceOfTimeEntryResponse(value: object): value is TimeEntryResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function TimeEntryResponseFromJSON(json: any): TimeEntryResponse {
|
||||
return TimeEntryResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TimeEntryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeEntryResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
|
||||
'employeeName': json['employeeName'] == null ? undefined : json['employeeName'],
|
||||
'orderId': json['orderId'] == null ? undefined : json['orderId'],
|
||||
'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
|
||||
'facilityName': json['facilityName'] == null ? undefined : json['facilityName'],
|
||||
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
||||
'start': json['start'] == null ? undefined : json['start'],
|
||||
'end': json['end'] == null ? undefined : json['end'],
|
||||
'breakDuration': json['breakDuration'] == null ? undefined : json['breakDuration'],
|
||||
'nightHours': json['nightHours'] == null ? undefined : json['nightHours'],
|
||||
'saturdayHours': json['saturdayHours'] == null ? undefined : json['saturdayHours'],
|
||||
'sundayHours': json['sundayHours'] == null ? undefined : json['sundayHours'],
|
||||
'holidayHours': json['holidayHours'] == null ? undefined : json['holidayHours'],
|
||||
'statusId': json['statusId'] == null ? undefined : json['statusId'],
|
||||
'statusName': json['statusName'] == null ? undefined : json['statusName'],
|
||||
'isEditableByOwner': json['isEditableByOwner'] == null ? undefined : json['isEditableByOwner'],
|
||||
'adminNote': json['adminNote'] == null ? undefined : json['adminNote'],
|
||||
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function TimeEntryResponseToJSON(json: any): TimeEntryResponse {
|
||||
return TimeEntryResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TimeEntryResponseToJSONTyped(value?: TimeEntryResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'employeeId': value['employeeId'],
|
||||
'employeeName': value['employeeName'],
|
||||
'orderId': value['orderId'],
|
||||
'facilityId': value['facilityId'],
|
||||
'facilityName': value['facilityName'],
|
||||
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0,10)),
|
||||
'start': value['start'],
|
||||
'end': value['end'],
|
||||
'breakDuration': value['breakDuration'],
|
||||
'nightHours': value['nightHours'],
|
||||
'saturdayHours': value['saturdayHours'],
|
||||
'sundayHours': value['sundayHours'],
|
||||
'holidayHours': value['holidayHours'],
|
||||
'statusId': value['statusId'],
|
||||
'statusName': value['statusName'],
|
||||
'isEditableByOwner': value['isEditableByOwner'],
|
||||
'adminNote': value['adminNote'],
|
||||
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/* 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 { TimeEntryResponse } from './TimeEntryResponse';
|
||||
import {
|
||||
TimeEntryResponseFromJSON,
|
||||
TimeEntryResponseFromJSONTyped,
|
||||
TimeEntryResponseToJSON,
|
||||
TimeEntryResponseToJSONTyped,
|
||||
} from './TimeEntryResponse';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface TimeEntryResponsePagedResponse
|
||||
*/
|
||||
export interface TimeEntryResponsePagedResponse {
|
||||
/**
|
||||
*
|
||||
* @type {Array<TimeEntryResponse>}
|
||||
* @memberof TimeEntryResponsePagedResponse
|
||||
*/
|
||||
items?: Array<TimeEntryResponse> | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof TimeEntryResponsePagedResponse
|
||||
*/
|
||||
totalCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof TimeEntryResponsePagedResponse
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof TimeEntryResponsePagedResponse
|
||||
*/
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the TimeEntryResponsePagedResponse interface.
|
||||
*/
|
||||
export function instanceOfTimeEntryResponsePagedResponse(value: object): value is TimeEntryResponsePagedResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function TimeEntryResponsePagedResponseFromJSON(json: any): TimeEntryResponsePagedResponse {
|
||||
return TimeEntryResponsePagedResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TimeEntryResponsePagedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeEntryResponsePagedResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'items': json['items'] == null ? undefined : ((json['items'] as Array<any>).map(TimeEntryResponseFromJSON)),
|
||||
'totalCount': json['totalCount'] == null ? undefined : json['totalCount'],
|
||||
'page': json['page'] == null ? undefined : json['page'],
|
||||
'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
export function TimeEntryResponsePagedResponseToJSON(json: any): TimeEntryResponsePagedResponse {
|
||||
return TimeEntryResponsePagedResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TimeEntryResponsePagedResponseToJSONTyped(value?: TimeEntryResponsePagedResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'items': value['items'] == null ? undefined : ((value['items'] as Array<any>).map(TimeEntryResponseToJSON)),
|
||||
'totalCount': value['totalCount'],
|
||||
'page': value['page'],
|
||||
'pageSize': value['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface TrashAbsenceResponse
|
||||
*/
|
||||
export interface TrashAbsenceResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashAbsenceResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashAbsenceResponse
|
||||
*/
|
||||
type?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof TrashAbsenceResponse
|
||||
*/
|
||||
deletedAt?: Date | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the TrashAbsenceResponse interface.
|
||||
*/
|
||||
export function instanceOfTrashAbsenceResponse(value: object): value is TrashAbsenceResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function TrashAbsenceResponseFromJSON(json: any): TrashAbsenceResponse {
|
||||
return TrashAbsenceResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashAbsenceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashAbsenceResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'type': json['type'] == null ? undefined : json['type'],
|
||||
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function TrashAbsenceResponseToJSON(json: any): TrashAbsenceResponse {
|
||||
return TrashAbsenceResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashAbsenceResponseToJSONTyped(value?: TrashAbsenceResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'type': value['type'],
|
||||
'deletedAt': value['deletedAt'] === null ? null : ((value['deletedAt'] as any)?.toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface TrashContractResponse
|
||||
*/
|
||||
export interface TrashContractResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashContractResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashContractResponse
|
||||
*/
|
||||
contractType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof TrashContractResponse
|
||||
*/
|
||||
deletedAt?: Date | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the TrashContractResponse interface.
|
||||
*/
|
||||
export function instanceOfTrashContractResponse(value: object): value is TrashContractResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function TrashContractResponseFromJSON(json: any): TrashContractResponse {
|
||||
return TrashContractResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashContractResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashContractResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'contractType': json['contractType'] == null ? undefined : json['contractType'],
|
||||
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function TrashContractResponseToJSON(json: any): TrashContractResponse {
|
||||
return TrashContractResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashContractResponseToJSONTyped(value?: TrashContractResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'contractType': value['contractType'],
|
||||
'deletedAt': value['deletedAt'] === null ? null : ((value['deletedAt'] as any)?.toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface TrashEmployeeResponse
|
||||
*/
|
||||
export interface TrashEmployeeResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashEmployeeResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashEmployeeResponse
|
||||
*/
|
||||
firstName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashEmployeeResponse
|
||||
*/
|
||||
lastName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof TrashEmployeeResponse
|
||||
*/
|
||||
deletedAt?: Date | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the TrashEmployeeResponse interface.
|
||||
*/
|
||||
export function instanceOfTrashEmployeeResponse(value: object): value is TrashEmployeeResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function TrashEmployeeResponseFromJSON(json: any): TrashEmployeeResponse {
|
||||
return TrashEmployeeResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashEmployeeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashEmployeeResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
||||
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
||||
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function TrashEmployeeResponseToJSON(json: any): TrashEmployeeResponse {
|
||||
return TrashEmployeeResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashEmployeeResponseToJSONTyped(value?: TrashEmployeeResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'firstName': value['firstName'],
|
||||
'lastName': value['lastName'],
|
||||
'deletedAt': value['deletedAt'] === null ? null : ((value['deletedAt'] as any)?.toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface TrashFacilityContactResponse
|
||||
*/
|
||||
export interface TrashFacilityContactResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashFacilityContactResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashFacilityContactResponse
|
||||
*/
|
||||
facilityId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashFacilityContactResponse
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof TrashFacilityContactResponse
|
||||
*/
|
||||
deletedAt?: Date | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the TrashFacilityContactResponse interface.
|
||||
*/
|
||||
export function instanceOfTrashFacilityContactResponse(value: object): value is TrashFacilityContactResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function TrashFacilityContactResponseFromJSON(json: any): TrashFacilityContactResponse {
|
||||
return TrashFacilityContactResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashFacilityContactResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashFacilityContactResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function TrashFacilityContactResponseToJSON(json: any): TrashFacilityContactResponse {
|
||||
return TrashFacilityContactResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashFacilityContactResponseToJSONTyped(value?: TrashFacilityContactResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'facilityId': value['facilityId'],
|
||||
'name': value['name'],
|
||||
'deletedAt': value['deletedAt'] === null ? null : ((value['deletedAt'] as any)?.toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface TrashFacilityQualificationRateResponse
|
||||
*/
|
||||
export interface TrashFacilityQualificationRateResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashFacilityQualificationRateResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashFacilityQualificationRateResponse
|
||||
*/
|
||||
facilityId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashFacilityQualificationRateResponse
|
||||
*/
|
||||
qualification?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof TrashFacilityQualificationRateResponse
|
||||
*/
|
||||
deletedAt?: Date | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the TrashFacilityQualificationRateResponse interface.
|
||||
*/
|
||||
export function instanceOfTrashFacilityQualificationRateResponse(value: object): value is TrashFacilityQualificationRateResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function TrashFacilityQualificationRateResponseFromJSON(json: any): TrashFacilityQualificationRateResponse {
|
||||
return TrashFacilityQualificationRateResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashFacilityQualificationRateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashFacilityQualificationRateResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
|
||||
'qualification': json['qualification'] == null ? undefined : json['qualification'],
|
||||
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function TrashFacilityQualificationRateResponseToJSON(json: any): TrashFacilityQualificationRateResponse {
|
||||
return TrashFacilityQualificationRateResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashFacilityQualificationRateResponseToJSONTyped(value?: TrashFacilityQualificationRateResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'facilityId': value['facilityId'],
|
||||
'qualification': value['qualification'],
|
||||
'deletedAt': value['deletedAt'] === null ? null : ((value['deletedAt'] as any)?.toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface TrashFacilityResponse
|
||||
*/
|
||||
export interface TrashFacilityResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashFacilityResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashFacilityResponse
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof TrashFacilityResponse
|
||||
*/
|
||||
deletedAt?: Date | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the TrashFacilityResponse interface.
|
||||
*/
|
||||
export function instanceOfTrashFacilityResponse(value: object): value is TrashFacilityResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function TrashFacilityResponseFromJSON(json: any): TrashFacilityResponse {
|
||||
return TrashFacilityResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashFacilityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashFacilityResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function TrashFacilityResponseToJSON(json: any): TrashFacilityResponse {
|
||||
return TrashFacilityResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashFacilityResponseToJSONTyped(value?: TrashFacilityResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
'deletedAt': value['deletedAt'] === null ? null : ((value['deletedAt'] as any)?.toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface TrashOrderResponse
|
||||
*/
|
||||
export interface TrashOrderResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashOrderResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashOrderResponse
|
||||
*/
|
||||
requiredQualification?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof TrashOrderResponse
|
||||
*/
|
||||
deletedAt?: Date | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the TrashOrderResponse interface.
|
||||
*/
|
||||
export function instanceOfTrashOrderResponse(value: object): value is TrashOrderResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function TrashOrderResponseFromJSON(json: any): TrashOrderResponse {
|
||||
return TrashOrderResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashOrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashOrderResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'requiredQualification': json['requiredQualification'] == null ? undefined : json['requiredQualification'],
|
||||
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function TrashOrderResponseToJSON(json: any): TrashOrderResponse {
|
||||
return TrashOrderResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashOrderResponseToJSONTyped(value?: TrashOrderResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'requiredQualification': value['requiredQualification'],
|
||||
'deletedAt': value['deletedAt'] === null ? null : ((value['deletedAt'] as any)?.toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface TrashTimeEntryResponse
|
||||
*/
|
||||
export interface TrashTimeEntryResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrashTimeEntryResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof TrashTimeEntryResponse
|
||||
*/
|
||||
date?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof TrashTimeEntryResponse
|
||||
*/
|
||||
deletedAt?: Date | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the TrashTimeEntryResponse interface.
|
||||
*/
|
||||
export function instanceOfTrashTimeEntryResponse(value: object): value is TrashTimeEntryResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function TrashTimeEntryResponseFromJSON(json: any): TrashTimeEntryResponse {
|
||||
return TrashTimeEntryResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashTimeEntryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrashTimeEntryResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
||||
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function TrashTimeEntryResponseToJSON(json: any): TrashTimeEntryResponse {
|
||||
return TrashTimeEntryResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TrashTimeEntryResponseToJSONTyped(value?: TrashTimeEntryResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0,10)),
|
||||
'deletedAt': value['deletedAt'] === null ? null : ((value['deletedAt'] as any)?.toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UpdateAbsenceRequest
|
||||
*/
|
||||
export interface UpdateAbsenceRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateAbsenceRequest
|
||||
*/
|
||||
type?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UpdateAbsenceRequest
|
||||
*/
|
||||
startDate?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UpdateAbsenceRequest
|
||||
*/
|
||||
endDate?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateAbsenceRequest
|
||||
*/
|
||||
reason?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateAbsenceRequest
|
||||
*/
|
||||
substitute?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateAbsenceRequest
|
||||
*/
|
||||
note?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UpdateAbsenceRequest interface.
|
||||
*/
|
||||
export function instanceOfUpdateAbsenceRequest(value: object): value is UpdateAbsenceRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UpdateAbsenceRequestFromJSON(json: any): UpdateAbsenceRequest {
|
||||
return UpdateAbsenceRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateAbsenceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAbsenceRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'type': json['type'] == null ? undefined : json['type'],
|
||||
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
||||
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
||||
'reason': json['reason'] == null ? undefined : json['reason'],
|
||||
'substitute': json['substitute'] == null ? undefined : json['substitute'],
|
||||
'note': json['note'] == null ? undefined : json['note'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UpdateAbsenceRequestToJSON(json: any): UpdateAbsenceRequest {
|
||||
return UpdateAbsenceRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateAbsenceRequestToJSONTyped(value?: UpdateAbsenceRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'type': value['type'],
|
||||
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString().substring(0,10)),
|
||||
'endDate': value['endDate'] == null ? undefined : ((value['endDate']).toISOString().substring(0,10)),
|
||||
'reason': value['reason'],
|
||||
'substitute': value['substitute'],
|
||||
'note': value['note'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UpdateDocumentRequest
|
||||
*/
|
||||
export interface UpdateDocumentRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateDocumentRequest
|
||||
*/
|
||||
category?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateDocumentRequest
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateDocumentRequest
|
||||
*/
|
||||
fileName?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UpdateDocumentRequest interface.
|
||||
*/
|
||||
export function instanceOfUpdateDocumentRequest(value: object): value is UpdateDocumentRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UpdateDocumentRequestFromJSON(json: any): UpdateDocumentRequest {
|
||||
return UpdateDocumentRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateDocumentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDocumentRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'category': json['category'] == null ? undefined : json['category'],
|
||||
'description': json['description'] == null ? undefined : json['description'],
|
||||
'fileName': json['fileName'] == null ? undefined : json['fileName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UpdateDocumentRequestToJSON(json: any): UpdateDocumentRequest {
|
||||
return UpdateDocumentRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateDocumentRequestToJSONTyped(value?: UpdateDocumentRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'category': value['category'],
|
||||
'description': value['description'],
|
||||
'fileName': value['fileName'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UpdateFacilityQualificationRateRequest
|
||||
*/
|
||||
export interface UpdateFacilityQualificationRateRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityQualificationRateRequest
|
||||
*/
|
||||
qualification?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateFacilityQualificationRateRequest
|
||||
*/
|
||||
rate?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UpdateFacilityQualificationRateRequest interface.
|
||||
*/
|
||||
export function instanceOfUpdateFacilityQualificationRateRequest(value: object): value is UpdateFacilityQualificationRateRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UpdateFacilityQualificationRateRequestFromJSON(json: any): UpdateFacilityQualificationRateRequest {
|
||||
return UpdateFacilityQualificationRateRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateFacilityQualificationRateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFacilityQualificationRateRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'qualification': json['qualification'] == null ? undefined : json['qualification'],
|
||||
'rate': json['rate'] == null ? undefined : json['rate'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UpdateFacilityQualificationRateRequestToJSON(json: any): UpdateFacilityQualificationRateRequest {
|
||||
return UpdateFacilityQualificationRateRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateFacilityQualificationRateRequestToJSONTyped(value?: UpdateFacilityQualificationRateRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'qualification': value['qualification'],
|
||||
'rate': value['rate'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -91,6 +91,78 @@ export interface UpdateFacilityRequest {
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
billingCountry?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
followUpDays?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
billingRate?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
nightSurchargePercent?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
saturdaySurchargePercent?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
sundaySurchargePercent?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
holidaySurchargePercent?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
travelCostRate?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
minimumHours?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
breakPolicy?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
billingInterval?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
paymentTermDays?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
individualAgreements?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -122,6 +194,18 @@ export function UpdateFacilityRequestFromJSONTyped(json: any, ignoreDiscriminato
|
||||
'billingPostalCode': json['billingPostalCode'] == null ? undefined : json['billingPostalCode'],
|
||||
'billingCity': json['billingCity'] == null ? undefined : json['billingCity'],
|
||||
'billingCountry': json['billingCountry'] == null ? undefined : json['billingCountry'],
|
||||
'followUpDays': json['followUpDays'] == null ? undefined : json['followUpDays'],
|
||||
'billingRate': json['billingRate'] == null ? undefined : json['billingRate'],
|
||||
'nightSurchargePercent': json['nightSurchargePercent'] == null ? undefined : json['nightSurchargePercent'],
|
||||
'saturdaySurchargePercent': json['saturdaySurchargePercent'] == null ? undefined : json['saturdaySurchargePercent'],
|
||||
'sundaySurchargePercent': json['sundaySurchargePercent'] == null ? undefined : json['sundaySurchargePercent'],
|
||||
'holidaySurchargePercent': json['holidaySurchargePercent'] == null ? undefined : json['holidaySurchargePercent'],
|
||||
'travelCostRate': json['travelCostRate'] == null ? undefined : json['travelCostRate'],
|
||||
'minimumHours': json['minimumHours'] == null ? undefined : json['minimumHours'],
|
||||
'breakPolicy': json['breakPolicy'] == null ? undefined : json['breakPolicy'],
|
||||
'billingInterval': json['billingInterval'] == null ? undefined : json['billingInterval'],
|
||||
'paymentTermDays': json['paymentTermDays'] == null ? undefined : json['paymentTermDays'],
|
||||
'individualAgreements': json['individualAgreements'] == null ? undefined : json['individualAgreements'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -148,6 +232,18 @@ export function UpdateFacilityRequestToJSONTyped(value?: UpdateFacilityRequest |
|
||||
'billingPostalCode': value['billingPostalCode'],
|
||||
'billingCity': value['billingCity'],
|
||||
'billingCountry': value['billingCountry'],
|
||||
'followUpDays': value['followUpDays'],
|
||||
'billingRate': value['billingRate'],
|
||||
'nightSurchargePercent': value['nightSurchargePercent'],
|
||||
'saturdaySurchargePercent': value['saturdaySurchargePercent'],
|
||||
'sundaySurchargePercent': value['sundaySurchargePercent'],
|
||||
'holidaySurchargePercent': value['holidaySurchargePercent'],
|
||||
'travelCostRate': value['travelCostRate'],
|
||||
'minimumHours': value['minimumHours'],
|
||||
'breakPolicy': value['breakPolicy'],
|
||||
'billingInterval': value['billingInterval'],
|
||||
'paymentTermDays': value['paymentTermDays'],
|
||||
'individualAgreements': value['individualAgreements'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UpdateTimeEntryRequest
|
||||
*/
|
||||
export interface UpdateTimeEntryRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateTimeEntryRequest
|
||||
*/
|
||||
orderId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UpdateTimeEntryRequest
|
||||
*/
|
||||
date?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateTimeEntryRequest
|
||||
*/
|
||||
start?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateTimeEntryRequest
|
||||
*/
|
||||
end?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateTimeEntryRequest
|
||||
*/
|
||||
breakDuration?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateTimeEntryRequest
|
||||
*/
|
||||
nightHours?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateTimeEntryRequest
|
||||
*/
|
||||
saturdayHours?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateTimeEntryRequest
|
||||
*/
|
||||
sundayHours?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateTimeEntryRequest
|
||||
*/
|
||||
holidayHours?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UpdateTimeEntryRequest interface.
|
||||
*/
|
||||
export function instanceOfUpdateTimeEntryRequest(value: object): value is UpdateTimeEntryRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UpdateTimeEntryRequestFromJSON(json: any): UpdateTimeEntryRequest {
|
||||
return UpdateTimeEntryRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateTimeEntryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTimeEntryRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'orderId': json['orderId'] == null ? undefined : json['orderId'],
|
||||
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
||||
'start': json['start'] == null ? undefined : json['start'],
|
||||
'end': json['end'] == null ? undefined : json['end'],
|
||||
'breakDuration': json['breakDuration'] == null ? undefined : json['breakDuration'],
|
||||
'nightHours': json['nightHours'] == null ? undefined : json['nightHours'],
|
||||
'saturdayHours': json['saturdayHours'] == null ? undefined : json['saturdayHours'],
|
||||
'sundayHours': json['sundayHours'] == null ? undefined : json['sundayHours'],
|
||||
'holidayHours': json['holidayHours'] == null ? undefined : json['holidayHours'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UpdateTimeEntryRequestToJSON(json: any): UpdateTimeEntryRequest {
|
||||
return UpdateTimeEntryRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateTimeEntryRequestToJSONTyped(value?: UpdateTimeEntryRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'orderId': value['orderId'],
|
||||
'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0,10)),
|
||||
'start': value['start'],
|
||||
'end': value['end'],
|
||||
'breakDuration': value['breakDuration'],
|
||||
'nightHours': value['nightHours'],
|
||||
'saturdayHours': value['saturdayHours'],
|
||||
'sundayHours': value['sundayHours'],
|
||||
'holidayHours': value['holidayHours'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -49,6 +49,12 @@ export interface UpdateValueListItemRequest {
|
||||
* @memberof UpdateValueListItemRequest
|
||||
*/
|
||||
isTerminal?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof UpdateValueListItemRequest
|
||||
*/
|
||||
triggersFollowUp?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -73,6 +79,7 @@ export function UpdateValueListItemRequestFromJSONTyped(json: any, ignoreDiscrim
|
||||
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
||||
'isInitial': json['isInitial'] == null ? undefined : json['isInitial'],
|
||||
'isTerminal': json['isTerminal'] == null ? undefined : json['isTerminal'],
|
||||
'triggersFollowUp': json['triggersFollowUp'] == null ? undefined : json['triggersFollowUp'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -92,6 +99,7 @@ export function UpdateValueListItemRequestToJSONTyped(value?: UpdateValueListIte
|
||||
'isDefault': value['isDefault'],
|
||||
'isInitial': value['isInitial'],
|
||||
'isTerminal': value['isTerminal'],
|
||||
'triggersFollowUp': value['triggersFollowUp'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,13 @@ import {
|
||||
PermissionEffectToJSON,
|
||||
PermissionEffectToJSONTyped,
|
||||
} from './PermissionEffect';
|
||||
import type { PermissionScope } from './PermissionScope';
|
||||
import {
|
||||
PermissionScopeFromJSON,
|
||||
PermissionScopeFromJSONTyped,
|
||||
PermissionScopeToJSON,
|
||||
PermissionScopeToJSONTyped,
|
||||
} from './PermissionScope';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -65,6 +72,12 @@ export interface UserPermissionOverrideResponse {
|
||||
* @memberof UserPermissionOverrideResponse
|
||||
*/
|
||||
effect?: PermissionEffect;
|
||||
/**
|
||||
*
|
||||
* @type {PermissionScope}
|
||||
* @memberof UserPermissionOverrideResponse
|
||||
*/
|
||||
scope?: PermissionScope;
|
||||
}
|
||||
|
||||
|
||||
@@ -90,6 +103,7 @@ export function UserPermissionOverrideResponseFromJSONTyped(json: any, ignoreDis
|
||||
'module': json['module'] == null ? undefined : ModuleTypeFromJSON(json['module']),
|
||||
'action': json['action'] == null ? undefined : PermissionActionFromJSON(json['action']),
|
||||
'effect': json['effect'] == null ? undefined : PermissionEffectFromJSON(json['effect']),
|
||||
'scope': json['scope'] == null ? undefined : PermissionScopeFromJSON(json['scope']),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -108,6 +122,7 @@ export function UserPermissionOverrideResponseToJSONTyped(value?: UserPermission
|
||||
'module': ModuleTypeToJSON(value['module']),
|
||||
'action': PermissionActionToJSON(value['action']),
|
||||
'effect': PermissionEffectToJSON(value['effect']),
|
||||
'scope': PermissionScopeToJSON(value['scope']),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,12 @@ export interface ValueListItemResponse {
|
||||
* @memberof ValueListItemResponse
|
||||
*/
|
||||
isTerminal?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ValueListItemResponse
|
||||
*/
|
||||
triggersFollowUp?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -80,6 +86,7 @@ export function ValueListItemResponseFromJSONTyped(json: any, ignoreDiscriminato
|
||||
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
||||
'isInitial': json['isInitial'] == null ? undefined : json['isInitial'],
|
||||
'isTerminal': json['isTerminal'] == null ? undefined : json['isTerminal'],
|
||||
'triggersFollowUp': json['triggersFollowUp'] == null ? undefined : json['triggersFollowUp'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -100,6 +107,7 @@ export function ValueListItemResponseToJSONTyped(value?: ValueListItemResponse |
|
||||
'isDefault': value['isDefault'],
|
||||
'isInitial': value['isInitial'],
|
||||
'isTerminal': value['isTerminal'],
|
||||
'triggersFollowUp': value['triggersFollowUp'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +37,12 @@ export interface ValueListTransitionResponse {
|
||||
* @memberof ValueListTransitionResponse
|
||||
*/
|
||||
toItemId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ValueListTransitionResponse
|
||||
*/
|
||||
requiresApproval?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,6 +65,7 @@ export function ValueListTransitionResponseFromJSONTyped(json: any, ignoreDiscri
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'fromItemId': json['fromItemId'] == null ? undefined : json['fromItemId'],
|
||||
'toItemId': json['toItemId'] == null ? undefined : json['toItemId'],
|
||||
'requiresApproval': json['requiresApproval'] == null ? undefined : json['requiresApproval'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -76,6 +83,7 @@ export function ValueListTransitionResponseToJSONTyped(value?: ValueListTransiti
|
||||
'id': value['id'],
|
||||
'fromItemId': value['fromItemId'],
|
||||
'toItemId': value['toItemId'],
|
||||
'requiresApproval': value['requiresApproval'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export * from './AbsenceDecisionRequest';
|
||||
export * from './AbsenceResponse';
|
||||
export * from './AbsenceResponsePagedResponse';
|
||||
export * from './AddUserPermissionOverrideRequest';
|
||||
export * from './AuditEventCategory';
|
||||
export * from './AuditLogEntryResponse';
|
||||
@@ -7,17 +10,22 @@ export * from './AuditLogEntryResponsePagedResponse';
|
||||
export * from './ChangePasswordRequest';
|
||||
export * from './ContractResponse';
|
||||
export * from './ContractResponsePagedResponse';
|
||||
export * from './CreateAbsenceRequest';
|
||||
export * from './CreateContractRequest';
|
||||
export * from './CreateEmployeeRequest';
|
||||
export * from './CreateFacilityContactRequest';
|
||||
export * from './CreateFacilityQualificationRateRequest';
|
||||
export * from './CreateFacilityRequest';
|
||||
export * from './CreateOrderRequest';
|
||||
export * from './CreateRoleRequest';
|
||||
export * from './CreateTimeEntryRequest';
|
||||
export * from './CreateUserRequest';
|
||||
export * from './CreateValueListItemRequest';
|
||||
export * from './DocumentResponse';
|
||||
export * from './EmployeeResponse';
|
||||
export * from './EmployeeResponsePagedResponse';
|
||||
export * from './FacilityContactResponse';
|
||||
export * from './FacilityQualificationRateResponse';
|
||||
export * from './FacilityResponse';
|
||||
export * from './FacilityResponsePagedResponse';
|
||||
export * from './ForgotPasswordRequestRequest';
|
||||
@@ -27,7 +35,6 @@ export * from './ForgotPasswordVerifyRequest';
|
||||
export * from './ForgotPasswordVerifyResponse';
|
||||
export * from './LoginRequest';
|
||||
export * from './LoginResponse';
|
||||
export * from './LogoutRequest';
|
||||
export * from './MeResponse';
|
||||
export * from './ModuleType';
|
||||
export * from './OrderResponse';
|
||||
@@ -37,18 +44,33 @@ export * from './PasswordResetTemplateResponse';
|
||||
export * from './PermissionAction';
|
||||
export * from './PermissionDto';
|
||||
export * from './PermissionEffect';
|
||||
export * from './RefreshRequest';
|
||||
export * from './PermissionScope';
|
||||
export * from './ResetUserPasswordRequest';
|
||||
export * from './RolePermissionsResponse';
|
||||
export * from './RoleResponse';
|
||||
export * from './SendTestEmailRequest';
|
||||
export * from './SessionResponse';
|
||||
export * from './TimeEntryDecisionRequest';
|
||||
export * from './TimeEntryResponse';
|
||||
export * from './TimeEntryResponsePagedResponse';
|
||||
export * from './TrashAbsenceResponse';
|
||||
export * from './TrashContractResponse';
|
||||
export * from './TrashEmployeeResponse';
|
||||
export * from './TrashFacilityContactResponse';
|
||||
export * from './TrashFacilityQualificationRateResponse';
|
||||
export * from './TrashFacilityResponse';
|
||||
export * from './TrashOrderResponse';
|
||||
export * from './TrashTimeEntryResponse';
|
||||
export * from './UpdateAbsenceRequest';
|
||||
export * from './UpdateContractRequest';
|
||||
export * from './UpdateDocumentRequest';
|
||||
export * from './UpdateEmployeeRequest';
|
||||
export * from './UpdateFacilityContactRequest';
|
||||
export * from './UpdateFacilityQualificationRateRequest';
|
||||
export * from './UpdateFacilityRequest';
|
||||
export * from './UpdateOrderRequest';
|
||||
export * from './UpdateRolePermissionsRequest';
|
||||
export * from './UpdateTimeEntryRequest';
|
||||
export * from './UpdateUserRequest';
|
||||
export * from './UpdateValueListItemRequest';
|
||||
export * from './UserPermissionOverrideResponse';
|
||||
|
||||
Reference in New Issue
Block a user