Add facilities, contracts, orders, value lists, audit log, and desktop app modules
Extends omsorgCore with full CRUD for Facility/Contract/Order plus configurable value lists and an audit trail, and wires the omsorgapp frontend up to the new facilities, settings, and audit-log modules; includes a sidebar active-nav-item highlight. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
ee74ed65f5
commit
e9e96a57dc
@@ -0,0 +1,4 @@
|
||||
wwwroot/*.js
|
||||
node_modules
|
||||
typings
|
||||
dist
|
||||
@@ -0,0 +1 @@
|
||||
README.md
|
||||
@@ -0,0 +1,23 @@
|
||||
# OpenAPI Generator Ignore
|
||||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
||||
|
||||
# Use this file to prevent files from being overwritten by the generator.
|
||||
# The patterns follow closely to .gitignore or .dockerignore.
|
||||
|
||||
# As an example, the C# client generator defines ApiClient.cs.
|
||||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
||||
#ApiClient.cs
|
||||
|
||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
||||
#foo/*/qux
|
||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
||||
|
||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
||||
#foo/**/qux
|
||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
||||
|
||||
# You can also negate patterns with an exclamation (!).
|
||||
# For example, you can ignore all files in a docs folder with the file extension .md:
|
||||
#docs/*.md
|
||||
# Then explicitly reverse the ignore rule for a single file:
|
||||
#!docs/README.md
|
||||
@@ -0,0 +1,81 @@
|
||||
.gitignore
|
||||
.npmignore
|
||||
README.md
|
||||
package.json
|
||||
src/apis/AdminEmailApi.ts
|
||||
src/apis/AdminSessionsApi.ts
|
||||
src/apis/AuditLogApi.ts
|
||||
src/apis/AuthApi.ts
|
||||
src/apis/ContractsApi.ts
|
||||
src/apis/EmployeesApi.ts
|
||||
src/apis/FacilitiesApi.ts
|
||||
src/apis/FacilityContactsApi.ts
|
||||
src/apis/HealthApi.ts
|
||||
src/apis/OrdersApi.ts
|
||||
src/apis/RolesApi.ts
|
||||
src/apis/UsersApi.ts
|
||||
src/apis/ValueListsApi.ts
|
||||
src/apis/index.ts
|
||||
src/index.ts
|
||||
src/models/AddUserPermissionOverrideRequest.ts
|
||||
src/models/AuditEventCategory.ts
|
||||
src/models/AuditLogEntryResponse.ts
|
||||
src/models/AuditLogEntryResponsePagedResponse.ts
|
||||
src/models/ChangePasswordRequest.ts
|
||||
src/models/ContractResponse.ts
|
||||
src/models/ContractResponsePagedResponse.ts
|
||||
src/models/CreateContractRequest.ts
|
||||
src/models/CreateEmployeeRequest.ts
|
||||
src/models/CreateFacilityContactRequest.ts
|
||||
src/models/CreateFacilityRequest.ts
|
||||
src/models/CreateOrderRequest.ts
|
||||
src/models/CreateRoleRequest.ts
|
||||
src/models/CreateUserRequest.ts
|
||||
src/models/CreateValueListItemRequest.ts
|
||||
src/models/EmployeeResponse.ts
|
||||
src/models/EmployeeResponsePagedResponse.ts
|
||||
src/models/FacilityContactResponse.ts
|
||||
src/models/FacilityResponse.ts
|
||||
src/models/FacilityResponsePagedResponse.ts
|
||||
src/models/ForgotPasswordRequestRequest.ts
|
||||
src/models/ForgotPasswordRequestResponse.ts
|
||||
src/models/ForgotPasswordResetRequest.ts
|
||||
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
|
||||
src/models/OrderResponsePagedResponse.ts
|
||||
src/models/PasswordPolicyResponse.ts
|
||||
src/models/PasswordResetTemplateResponse.ts
|
||||
src/models/PermissionAction.ts
|
||||
src/models/PermissionDto.ts
|
||||
src/models/PermissionEffect.ts
|
||||
src/models/RefreshRequest.ts
|
||||
src/models/ResetUserPasswordRequest.ts
|
||||
src/models/RolePermissionsResponse.ts
|
||||
src/models/RoleResponse.ts
|
||||
src/models/SendTestEmailRequest.ts
|
||||
src/models/SessionResponse.ts
|
||||
src/models/UpdateContractRequest.ts
|
||||
src/models/UpdateEmployeeRequest.ts
|
||||
src/models/UpdateFacilityContactRequest.ts
|
||||
src/models/UpdateFacilityRequest.ts
|
||||
src/models/UpdateOrderRequest.ts
|
||||
src/models/UpdateRolePermissionsRequest.ts
|
||||
src/models/UpdateUserRequest.ts
|
||||
src/models/UpdateValueListItemRequest.ts
|
||||
src/models/UserPermissionOverrideResponse.ts
|
||||
src/models/UserResponse.ts
|
||||
src/models/ValueListItemResponse.ts
|
||||
src/models/ValueListResponse.ts
|
||||
src/models/ValueListTransitionRequest.ts
|
||||
src/models/ValueListTransitionResponse.ts
|
||||
src/models/ValueListUsageResponse.ts
|
||||
src/models/index.ts
|
||||
src/runtime.ts
|
||||
tsconfig.esm.json
|
||||
tsconfig.json
|
||||
@@ -0,0 +1 @@
|
||||
7.14.0
|
||||
@@ -0,0 +1,62 @@
|
||||
# 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.
|
||||
|
||||
`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.
|
||||
|
||||
## Voraussetzungen
|
||||
|
||||
- Node.js + npx (bereits für den Rest von `omsorgapp` vorhanden)
|
||||
- Java (wird von `openapi-generator-cli` intern benötigt, kein separates Setup nötig, sofern `java` im `PATH` ist)
|
||||
- `omsorgCore` muss lokal im **Development-Modus** laufen, da Swagger nur dort aktiv ist (siehe `omsorgCore/CLAUDE.md`, Abschnitt "Session-Killswitch" o.ä. — Swagger ist an `app.Environment.IsDevelopment()` gebunden)
|
||||
|
||||
## API lokal starten (für die Generierung)
|
||||
|
||||
```bash
|
||||
cd omsorgCore
|
||||
ASPNETCORE_ENVIRONMENT=Development dotnet run --project src/OmsorgCore.Api
|
||||
# → Swagger-JSON unter http://localhost:5245/swagger/v1/swagger.json
|
||||
```
|
||||
|
||||
## Client neu generieren
|
||||
|
||||
```bash
|
||||
cd omsorgapp/api-client-ts
|
||||
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).
|
||||
|
||||
## Bauen
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run build
|
||||
```
|
||||
|
||||
Erzeugt `dist/` (CommonJS + ESM, siehe `tsconfig.json`/`tsconfig.esm.json`). `dist/` und `node_modules/` sind `.gitignore`'t — nur der generierte Quellcode unter `src/` wird eingecheckt.
|
||||
|
||||
## Verwendung (Beispiel)
|
||||
|
||||
```ts
|
||||
import { Configuration, AuthApi } from "./dist"; // oder "omsorgcore-client-ts" nach npm-Link/Publish
|
||||
|
||||
const config = new Configuration({ basePath: process.env.OMSORG_CORE_URL || "http://localhost:5245" });
|
||||
const authApi = new AuthApi(config);
|
||||
|
||||
const loginResponse = await authApi.apiAuthLoginPost({
|
||||
loginRequest: { username: "admin", password: "abersicher" },
|
||||
});
|
||||
console.log(loginResponse.accessToken);
|
||||
```
|
||||
|
||||
Jeder Controller aus `omsorgCore` hat eine eigene `*Api`-Klasse (`AuthApi`, `EmployeesApi`, `FacilitiesApi`, `ContractsApi`, `OrdersApi`, `RolesApi`, `UsersApi`, `ValueListsApi`, `AuditLogApi`, `AdminSessionsApi`, `AdminEmailApi`, `HealthApi`), Methodennamen sind aus den Routen abgeleitet (z. B. `apiEmployeesGet`, `apiEmployeesIdPut`) — siehe `src/apis/index.ts` bzw. das generierte `README.md` für die vollständige Liste.
|
||||
|
||||
## Verbindlich: nach jeder Backend-Änderung neu generieren
|
||||
|
||||
Sobald sich Controller/DTOs in `omsorgCore.Api/Contracts` ändern (neue Endpunkte, neue/umbenannte/entfernte Felder in Requests/Responses), **muss** dieser Client noch im selben Change neu generiert (`npm run generate`), neu gebaut (`npm run build`) und der Diff mitcommittet werden.
|
||||
|
||||
**Das ist kein Nice-to-have, sondern verhindert einen stillen, fehlerfreien Datenverlust:** Ein veralteter generierter Client wirft **keinen Fehler**, wenn er ein Feld nicht kennt — er lässt es beim (De-)Serialisieren einfach weg. Ein Request/eine Response, die dieses Feld enthält, sieht aus der UI heraus wie ein Erfolg aus, das Feld kommt aber nie beim Backend an bzw. nie in der Antwort zurück. Konkret passiert (2026-08-08, Facility-Website): `Website` wurde im Backend ergänzt, Speichern in `omsorgapp` meldete Erfolg, aber der Wert wurde nie persistiert, weil `omsorgcore-client-ts` zum Zeitpunkt der Änderung noch aus der alten Swagger-JSON generiert war.
|
||||
|
||||
Nach `npm run generate` immer `git diff package.json` prüfen — der Generator überschreibt die Datei komplett, das eigene `generate`-Script (`"generate": "./generate.sh"`) muss danach erneut eingetragen werden, sonst fehlt es beim nächsten Lauf.
|
||||
@@ -0,0 +1,46 @@
|
||||
## omsorgcore-client-ts@1.0
|
||||
|
||||
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
||||
|
||||
Environment
|
||||
* Node.js
|
||||
* Webpack
|
||||
* Browserify
|
||||
|
||||
Language level
|
||||
* ES5 - you must have a Promises/A+ library installed
|
||||
* ES6
|
||||
|
||||
Module system
|
||||
* CommonJS
|
||||
* ES6 module system
|
||||
|
||||
It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
|
||||
|
||||
### Building
|
||||
|
||||
To build and compile the typescript sources to javascript use:
|
||||
```
|
||||
npm install
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Publishing
|
||||
|
||||
First build the package then run `npm publish`
|
||||
|
||||
### Consuming
|
||||
|
||||
navigate to the folder of your consuming project and run one of the following commands.
|
||||
|
||||
_published:_
|
||||
|
||||
```
|
||||
npm install omsorgcore-client-ts@1.0 --save
|
||||
```
|
||||
|
||||
_unPublished (not recommended):_
|
||||
|
||||
```
|
||||
npm install PATH_TO_GENERATED_PACKAGE --save
|
||||
```
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Generiert den TypeScript-Client aus der Swagger/OpenAPI-JSON von omsorgCore.
|
||||
# Voraussetzung: omsorgCore läuft lokal im Development-Modus (siehe README.md).
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||
|
||||
BASE_URL="${OMSORG_CORE_URL:-http://localhost:5245}"
|
||||
|
||||
npx --yes @openapitools/openapi-generator-cli@2.13.4 generate \
|
||||
-g typescript-fetch \
|
||||
-i "${BASE_URL}/swagger/v1/swagger.json" \
|
||||
-o . \
|
||||
--additional-properties=npmName=omsorgcore-client-ts,supportsES6=true,typescriptThreePlus=true
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
|
||||
"spaces": 2,
|
||||
"generator-cli": {
|
||||
"version": "7.14.0"
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "omsorgcore-client-ts",
|
||||
"version": "1.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "omsorgcore-client-ts",
|
||||
"version": "1.0",
|
||||
"devDependencies": {
|
||||
"typescript": "^4.0 || ^5.0"
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.9.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.17"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "omsorgcore-client-ts",
|
||||
"version": "1.0",
|
||||
"description": "OpenAPI client for omsorgcore-client-ts",
|
||||
"author": "OpenAPI-Generator",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"typings": "./dist/index.d.ts",
|
||||
"module": "./dist/esm/index.js",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc && tsc -p tsconfig.esm.json",
|
||||
"prepare": "npm run build",
|
||||
"generate": "./generate.sh"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^4.0 || ^5.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
/* 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 {
|
||||
PasswordResetTemplateResponse,
|
||||
SendTestEmailRequest,
|
||||
} from '../models/index';
|
||||
import {
|
||||
PasswordResetTemplateResponseFromJSON,
|
||||
PasswordResetTemplateResponseToJSON,
|
||||
SendTestEmailRequestFromJSON,
|
||||
SendTestEmailRequestToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiAdminEmailTestSendPostRequest {
|
||||
sendTestEmailRequest?: SendTestEmailRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class AdminEmailApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAdminEmailPasswordResetTemplateGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasswordResetTemplateResponse>> {
|
||||
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/admin/email/password-reset-template`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => PasswordResetTemplateResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAdminEmailPasswordResetTemplateGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasswordResetTemplateResponse> {
|
||||
const response = await this.apiAdminEmailPasswordResetTemplateGetRaw(initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAdminEmailTestSendPostRaw(requestParameters: ApiAdminEmailTestSendPostRequest, 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", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/admin/email/test-send`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: SendTestEmailRequestToJSON(requestParameters['sendTestEmailRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAdminEmailTestSendPost(requestParameters: ApiAdminEmailTestSendPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiAdminEmailTestSendPostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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 * as runtime from '../runtime';
|
||||
import type {
|
||||
SessionResponse,
|
||||
} from '../models/index';
|
||||
import {
|
||||
SessionResponseFromJSON,
|
||||
SessionResponseToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiAdminSessionsIdRevokePostRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class AdminSessionsApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAdminSessionsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SessionResponse>>> {
|
||||
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/admin/sessions`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SessionResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAdminSessionsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SessionResponse>> {
|
||||
const response = await this.apiAdminSessionsGetRaw(initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAdminSessionsIdRevokePostRaw(requestParameters: ApiAdminSessionsIdRevokePostRequest, 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 apiAdminSessionsIdRevokePost().'
|
||||
);
|
||||
}
|
||||
|
||||
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/admin/sessions/{id}/revoke`;
|
||||
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 apiAdminSessionsIdRevokePost(requestParameters: ApiAdminSessionsIdRevokePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiAdminSessionsIdRevokePostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAdminSessionsRevokeAllPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
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/admin/sessions/revoke-all`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAdminSessionsRevokeAllPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiAdminSessionsRevokeAllPostRaw(initOverrides);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
/* 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 {
|
||||
AuditEventCategory,
|
||||
AuditLogEntryResponsePagedResponse,
|
||||
} from '../models/index';
|
||||
import {
|
||||
AuditEventCategoryFromJSON,
|
||||
AuditEventCategoryToJSON,
|
||||
AuditLogEntryResponsePagedResponseFromJSON,
|
||||
AuditLogEntryResponsePagedResponseToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiAuditLogGetRequest {
|
||||
entityType?: string;
|
||||
entityId?: string;
|
||||
actorUserId?: string;
|
||||
category?: AuditEventCategory;
|
||||
fromUtc?: Date;
|
||||
toUtc?: Date;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class AuditLogApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuditLogGetRaw(requestParameters: ApiAuditLogGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuditLogEntryResponsePagedResponse>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['entityType'] != null) {
|
||||
queryParameters['entityType'] = requestParameters['entityType'];
|
||||
}
|
||||
|
||||
if (requestParameters['entityId'] != null) {
|
||||
queryParameters['entityId'] = requestParameters['entityId'];
|
||||
}
|
||||
|
||||
if (requestParameters['actorUserId'] != null) {
|
||||
queryParameters['actorUserId'] = requestParameters['actorUserId'];
|
||||
}
|
||||
|
||||
if (requestParameters['category'] != null) {
|
||||
queryParameters['category'] = requestParameters['category'];
|
||||
}
|
||||
|
||||
if (requestParameters['fromUtc'] != null) {
|
||||
queryParameters['fromUtc'] = (requestParameters['fromUtc'] as any).toISOString();
|
||||
}
|
||||
|
||||
if (requestParameters['toUtc'] != null) {
|
||||
queryParameters['toUtc'] = (requestParameters['toUtc'] as any).toISOString();
|
||||
}
|
||||
|
||||
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/audit-log`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => AuditLogEntryResponsePagedResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuditLogGet(requestParameters: ApiAuditLogGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuditLogEntryResponsePagedResponse> {
|
||||
const response = await this.apiAuditLogGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,424 @@
|
||||
/* 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 {
|
||||
ChangePasswordRequest,
|
||||
ForgotPasswordRequestRequest,
|
||||
ForgotPasswordRequestResponse,
|
||||
ForgotPasswordResetRequest,
|
||||
ForgotPasswordVerifyRequest,
|
||||
ForgotPasswordVerifyResponse,
|
||||
LoginRequest,
|
||||
LoginResponse,
|
||||
LogoutRequest,
|
||||
MeResponse,
|
||||
PasswordPolicyResponse,
|
||||
RefreshRequest,
|
||||
} from '../models/index';
|
||||
import {
|
||||
ChangePasswordRequestFromJSON,
|
||||
ChangePasswordRequestToJSON,
|
||||
ForgotPasswordRequestRequestFromJSON,
|
||||
ForgotPasswordRequestRequestToJSON,
|
||||
ForgotPasswordRequestResponseFromJSON,
|
||||
ForgotPasswordRequestResponseToJSON,
|
||||
ForgotPasswordResetRequestFromJSON,
|
||||
ForgotPasswordResetRequestToJSON,
|
||||
ForgotPasswordVerifyRequestFromJSON,
|
||||
ForgotPasswordVerifyRequestToJSON,
|
||||
ForgotPasswordVerifyResponseFromJSON,
|
||||
ForgotPasswordVerifyResponseToJSON,
|
||||
LoginRequestFromJSON,
|
||||
LoginRequestToJSON,
|
||||
LoginResponseFromJSON,
|
||||
LoginResponseToJSON,
|
||||
LogoutRequestFromJSON,
|
||||
LogoutRequestToJSON,
|
||||
MeResponseFromJSON,
|
||||
MeResponseToJSON,
|
||||
PasswordPolicyResponseFromJSON,
|
||||
PasswordPolicyResponseToJSON,
|
||||
RefreshRequestFromJSON,
|
||||
RefreshRequestToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiAuthChangePasswordPostRequest {
|
||||
changePasswordRequest?: ChangePasswordRequest;
|
||||
}
|
||||
|
||||
export interface ApiAuthForgotPasswordRequestPostRequest {
|
||||
forgotPasswordRequestRequest?: ForgotPasswordRequestRequest;
|
||||
}
|
||||
|
||||
export interface ApiAuthForgotPasswordResetPostRequest {
|
||||
forgotPasswordResetRequest?: ForgotPasswordResetRequest;
|
||||
}
|
||||
|
||||
export interface ApiAuthForgotPasswordVerifyPostRequest {
|
||||
forgotPasswordVerifyRequest?: ForgotPasswordVerifyRequest;
|
||||
}
|
||||
|
||||
export interface ApiAuthLoginPostRequest {
|
||||
loginRequest?: LoginRequest;
|
||||
}
|
||||
|
||||
export interface ApiAuthLogoutPostRequest {
|
||||
logoutRequest?: LogoutRequest;
|
||||
}
|
||||
|
||||
export interface ApiAuthRefreshPostRequest {
|
||||
refreshRequest?: RefreshRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class AuthApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthChangePasswordPostRaw(requestParameters: ApiAuthChangePasswordPostRequest, 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", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/auth/change-password`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: ChangePasswordRequestToJSON(requestParameters['changePasswordRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthChangePasswordPost(requestParameters: ApiAuthChangePasswordPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiAuthChangePasswordPostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthForgotPasswordRequestPostRaw(requestParameters: ApiAuthForgotPasswordRequestPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForgotPasswordRequestResponse>> {
|
||||
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/auth/forgot-password/request`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: ForgotPasswordRequestRequestToJSON(requestParameters['forgotPasswordRequestRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ForgotPasswordRequestResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthForgotPasswordRequestPost(requestParameters: ApiAuthForgotPasswordRequestPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForgotPasswordRequestResponse> {
|
||||
const response = await this.apiAuthForgotPasswordRequestPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthForgotPasswordResetPostRaw(requestParameters: ApiAuthForgotPasswordResetPostRequest, 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", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/auth/forgot-password/reset`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: ForgotPasswordResetRequestToJSON(requestParameters['forgotPasswordResetRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthForgotPasswordResetPost(requestParameters: ApiAuthForgotPasswordResetPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiAuthForgotPasswordResetPostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthForgotPasswordVerifyPostRaw(requestParameters: ApiAuthForgotPasswordVerifyPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ForgotPasswordVerifyResponse>> {
|
||||
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/auth/forgot-password/verify`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: ForgotPasswordVerifyRequestToJSON(requestParameters['forgotPasswordVerifyRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ForgotPasswordVerifyResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthForgotPasswordVerifyPost(requestParameters: ApiAuthForgotPasswordVerifyPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ForgotPasswordVerifyResponse> {
|
||||
const response = await this.apiAuthForgotPasswordVerifyPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthLoginPostRaw(requestParameters: ApiAuthLoginPostRequest, 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", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/auth/login`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: LoginRequestToJSON(requestParameters['loginRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => LoginResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthLoginPost(requestParameters: ApiAuthLoginPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResponse> {
|
||||
const response = await this.apiAuthLoginPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthLogoutPostRaw(requestParameters: ApiAuthLogoutPostRequest, 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", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/auth/logout`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: LogoutRequestToJSON(requestParameters['logoutRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthLogoutPost(requestParameters: ApiAuthLogoutPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiAuthLogoutPostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthMeGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MeResponse>> {
|
||||
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/auth/me`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => MeResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthMeGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MeResponse> {
|
||||
const response = await this.apiAuthMeGetRaw(initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthPasswordPolicyGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasswordPolicyResponse>> {
|
||||
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/auth/password-policy`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => PasswordPolicyResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthPasswordPolicyGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasswordPolicyResponse> {
|
||||
const response = await this.apiAuthPasswordPolicyGetRaw(initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthRefreshPostRaw(requestParameters: ApiAuthRefreshPostRequest, 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", []);
|
||||
|
||||
if (tokenString) {
|
||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||
}
|
||||
}
|
||||
|
||||
let urlPath = `/api/auth/refresh`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: RefreshRequestToJSON(requestParameters['refreshRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => LoginResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiAuthRefreshPost(requestParameters: ApiAuthRefreshPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResponse> {
|
||||
const response = await this.apiAuthRefreshPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
/* 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 {
|
||||
ContractResponse,
|
||||
ContractResponsePagedResponse,
|
||||
CreateContractRequest,
|
||||
UpdateContractRequest,
|
||||
} from '../models/index';
|
||||
import {
|
||||
ContractResponseFromJSON,
|
||||
ContractResponseToJSON,
|
||||
ContractResponsePagedResponseFromJSON,
|
||||
ContractResponsePagedResponseToJSON,
|
||||
CreateContractRequestFromJSON,
|
||||
CreateContractRequestToJSON,
|
||||
UpdateContractRequestFromJSON,
|
||||
UpdateContractRequestToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiContractsGetRequest {
|
||||
search?: string;
|
||||
status?: string;
|
||||
employeeId?: string;
|
||||
facilityId?: string;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ApiContractsIdGetRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiContractsIdPutRequest {
|
||||
id: string;
|
||||
updateContractRequest?: UpdateContractRequest;
|
||||
}
|
||||
|
||||
export interface ApiContractsPostRequest {
|
||||
createContractRequest?: CreateContractRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class ContractsApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiContractsGetRaw(requestParameters: ApiContractsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContractResponsePagedResponse>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['search'] != null) {
|
||||
queryParameters['search'] = requestParameters['search'];
|
||||
}
|
||||
|
||||
if (requestParameters['status'] != null) {
|
||||
queryParameters['status'] = requestParameters['status'];
|
||||
}
|
||||
|
||||
if (requestParameters['employeeId'] != null) {
|
||||
queryParameters['employeeId'] = requestParameters['employeeId'];
|
||||
}
|
||||
|
||||
if (requestParameters['facilityId'] != null) {
|
||||
queryParameters['facilityId'] = requestParameters['facilityId'];
|
||||
}
|
||||
|
||||
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/contracts`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ContractResponsePagedResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiContractsGet(requestParameters: ApiContractsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContractResponsePagedResponse> {
|
||||
const response = await this.apiContractsGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiContractsIdGetRaw(requestParameters: ApiContractsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContractResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiContractsIdGet().'
|
||||
);
|
||||
}
|
||||
|
||||
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: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ContractResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiContractsIdGet(requestParameters: ApiContractsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContractResponse> {
|
||||
const response = await this.apiContractsIdGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiContractsIdPutRaw(requestParameters: ApiContractsIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContractResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiContractsIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
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/contracts/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: UpdateContractRequestToJSON(requestParameters['updateContractRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ContractResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiContractsIdPut(requestParameters: ApiContractsIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContractResponse> {
|
||||
const response = await this.apiContractsIdPutRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiContractsPostRaw(requestParameters: ApiContractsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContractResponse>> {
|
||||
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/contracts`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: CreateContractRequestToJSON(requestParameters['createContractRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ContractResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiContractsPost(requestParameters: ApiContractsPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContractResponse> {
|
||||
const response = await this.apiContractsPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,242 @@
|
||||
/* 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 {
|
||||
CreateEmployeeRequest,
|
||||
EmployeeResponse,
|
||||
EmployeeResponsePagedResponse,
|
||||
UpdateEmployeeRequest,
|
||||
} from '../models/index';
|
||||
import {
|
||||
CreateEmployeeRequestFromJSON,
|
||||
CreateEmployeeRequestToJSON,
|
||||
EmployeeResponseFromJSON,
|
||||
EmployeeResponseToJSON,
|
||||
EmployeeResponsePagedResponseFromJSON,
|
||||
EmployeeResponsePagedResponseToJSON,
|
||||
UpdateEmployeeRequestFromJSON,
|
||||
UpdateEmployeeRequestToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiEmployeesGetRequest {
|
||||
search?: string;
|
||||
status?: string;
|
||||
employmentType?: string;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ApiEmployeesIdGetRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiEmployeesIdPutRequest {
|
||||
id: string;
|
||||
updateEmployeeRequest?: UpdateEmployeeRequest;
|
||||
}
|
||||
|
||||
export interface ApiEmployeesPostRequest {
|
||||
createEmployeeRequest?: CreateEmployeeRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class EmployeesApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiEmployeesGetRaw(requestParameters: ApiEmployeesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmployeeResponsePagedResponse>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['search'] != null) {
|
||||
queryParameters['search'] = requestParameters['search'];
|
||||
}
|
||||
|
||||
if (requestParameters['status'] != null) {
|
||||
queryParameters['status'] = requestParameters['status'];
|
||||
}
|
||||
|
||||
if (requestParameters['employmentType'] != null) {
|
||||
queryParameters['employmentType'] = requestParameters['employmentType'];
|
||||
}
|
||||
|
||||
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/employees`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => EmployeeResponsePagedResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiEmployeesGet(requestParameters: ApiEmployeesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmployeeResponsePagedResponse> {
|
||||
const response = await this.apiEmployeesGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiEmployeesIdGetRaw(requestParameters: ApiEmployeesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmployeeResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiEmployeesIdGet().'
|
||||
);
|
||||
}
|
||||
|
||||
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: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => EmployeeResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiEmployeesIdGet(requestParameters: ApiEmployeesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmployeeResponse> {
|
||||
const response = await this.apiEmployeesIdGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiEmployeesIdPutRaw(requestParameters: ApiEmployeesIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmployeeResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiEmployeesIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
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/employees/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: UpdateEmployeeRequestToJSON(requestParameters['updateEmployeeRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => EmployeeResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiEmployeesIdPut(requestParameters: ApiEmployeesIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmployeeResponse> {
|
||||
const response = await this.apiEmployeesIdPutRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiEmployeesPostRaw(requestParameters: ApiEmployeesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmployeeResponse>> {
|
||||
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/employees`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: CreateEmployeeRequestToJSON(requestParameters['createEmployeeRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => EmployeeResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiEmployeesPost(requestParameters: ApiEmployeesPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmployeeResponse> {
|
||||
const response = await this.apiEmployeesPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,237 @@
|
||||
/* 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 {
|
||||
CreateFacilityRequest,
|
||||
FacilityResponse,
|
||||
FacilityResponsePagedResponse,
|
||||
UpdateFacilityRequest,
|
||||
} from '../models/index';
|
||||
import {
|
||||
CreateFacilityRequestFromJSON,
|
||||
CreateFacilityRequestToJSON,
|
||||
FacilityResponseFromJSON,
|
||||
FacilityResponseToJSON,
|
||||
FacilityResponsePagedResponseFromJSON,
|
||||
FacilityResponsePagedResponseToJSON,
|
||||
UpdateFacilityRequestFromJSON,
|
||||
UpdateFacilityRequestToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiFacilitiesGetRequest {
|
||||
search?: string;
|
||||
crmStatus?: string;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ApiFacilitiesIdGetRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiFacilitiesIdPutRequest {
|
||||
id: string;
|
||||
updateFacilityRequest?: UpdateFacilityRequest;
|
||||
}
|
||||
|
||||
export interface ApiFacilitiesPostRequest {
|
||||
createFacilityRequest?: CreateFacilityRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class FacilitiesApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesGetRaw(requestParameters: ApiFacilitiesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacilityResponsePagedResponse>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['search'] != null) {
|
||||
queryParameters['search'] = requestParameters['search'];
|
||||
}
|
||||
|
||||
if (requestParameters['crmStatus'] != null) {
|
||||
queryParameters['crmStatus'] = requestParameters['crmStatus'];
|
||||
}
|
||||
|
||||
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/facilities`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => FacilityResponsePagedResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesGet(requestParameters: ApiFacilitiesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacilityResponsePagedResponse> {
|
||||
const response = await this.apiFacilitiesGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesIdGetRaw(requestParameters: ApiFacilitiesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacilityResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiFacilitiesIdGet().'
|
||||
);
|
||||
}
|
||||
|
||||
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: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => FacilityResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesIdGet(requestParameters: ApiFacilitiesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacilityResponse> {
|
||||
const response = await this.apiFacilitiesIdGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesIdPutRaw(requestParameters: ApiFacilitiesIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacilityResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiFacilitiesIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
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/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: UpdateFacilityRequestToJSON(requestParameters['updateFacilityRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => FacilityResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesIdPut(requestParameters: ApiFacilitiesIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacilityResponse> {
|
||||
const response = await this.apiFacilitiesIdPutRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesPostRaw(requestParameters: ApiFacilitiesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacilityResponse>> {
|
||||
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`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: CreateFacilityRequestToJSON(requestParameters['createFacilityRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => FacilityResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesPost(requestParameters: ApiFacilitiesPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacilityResponse> {
|
||||
const response = await this.apiFacilitiesPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
/* 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 {
|
||||
CreateFacilityContactRequest,
|
||||
FacilityContactResponse,
|
||||
UpdateFacilityContactRequest,
|
||||
} from '../models/index';
|
||||
import {
|
||||
CreateFacilityContactRequestFromJSON,
|
||||
CreateFacilityContactRequestToJSON,
|
||||
FacilityContactResponseFromJSON,
|
||||
FacilityContactResponseToJSON,
|
||||
UpdateFacilityContactRequestFromJSON,
|
||||
UpdateFacilityContactRequestToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiFacilitiesFacilityIdContactsGetRequest {
|
||||
facilityId: string;
|
||||
}
|
||||
|
||||
export interface ApiFacilitiesFacilityIdContactsIdPutRequest {
|
||||
facilityId: string;
|
||||
id: string;
|
||||
updateFacilityContactRequest?: UpdateFacilityContactRequest;
|
||||
}
|
||||
|
||||
export interface ApiFacilitiesFacilityIdContactsPostRequest {
|
||||
facilityId: string;
|
||||
createFacilityContactRequest?: CreateFacilityContactRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class FacilityContactsApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdContactsGetRaw(requestParameters: ApiFacilitiesFacilityIdContactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<FacilityContactResponse>>> {
|
||||
if (requestParameters['facilityId'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'facilityId',
|
||||
'Required parameter "facilityId" was null or undefined when calling apiFacilitiesFacilityIdContactsGet().'
|
||||
);
|
||||
}
|
||||
|
||||
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`;
|
||||
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(FacilityContactResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdContactsGet(requestParameters: ApiFacilitiesFacilityIdContactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FacilityContactResponse>> {
|
||||
const response = await this.apiFacilitiesFacilityIdContactsGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdContactsIdPutRaw(requestParameters: ApiFacilitiesFacilityIdContactsIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacilityContactResponse>> {
|
||||
if (requestParameters['facilityId'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'facilityId',
|
||||
'Required parameter "facilityId" was null or undefined when calling apiFacilitiesFacilityIdContactsIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiFacilitiesFacilityIdContactsIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
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}/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: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: UpdateFacilityContactRequestToJSON(requestParameters['updateFacilityContactRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => FacilityContactResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdContactsIdPut(requestParameters: ApiFacilitiesFacilityIdContactsIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacilityContactResponse> {
|
||||
const response = await this.apiFacilitiesFacilityIdContactsIdPutRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdContactsPostRaw(requestParameters: ApiFacilitiesFacilityIdContactsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacilityContactResponse>> {
|
||||
if (requestParameters['facilityId'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'facilityId',
|
||||
'Required parameter "facilityId" was null or undefined when calling apiFacilitiesFacilityIdContactsPost().'
|
||||
);
|
||||
}
|
||||
|
||||
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}/contacts`;
|
||||
urlPath = urlPath.replace(`{${"facilityId"}}`, encodeURIComponent(String(requestParameters['facilityId'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: CreateFacilityContactRequestToJSON(requestParameters['createFacilityContactRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => FacilityContactResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiFacilitiesFacilityIdContactsPost(requestParameters: ApiFacilitiesFacilityIdContactsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacilityContactResponse> {
|
||||
const response = await this.apiFacilitiesFacilityIdContactsPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
/* 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';
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class HealthApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiHealthGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
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/health`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiHealthGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiHealthGetRaw(initOverrides);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,242 @@
|
||||
/* 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 {
|
||||
CreateOrderRequest,
|
||||
OrderResponse,
|
||||
OrderResponsePagedResponse,
|
||||
UpdateOrderRequest,
|
||||
} from '../models/index';
|
||||
import {
|
||||
CreateOrderRequestFromJSON,
|
||||
CreateOrderRequestToJSON,
|
||||
OrderResponseFromJSON,
|
||||
OrderResponseToJSON,
|
||||
OrderResponsePagedResponseFromJSON,
|
||||
OrderResponsePagedResponseToJSON,
|
||||
UpdateOrderRequestFromJSON,
|
||||
UpdateOrderRequestToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiOrdersGetRequest {
|
||||
search?: string;
|
||||
statusId?: string;
|
||||
facilityId?: string;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ApiOrdersIdGetRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiOrdersIdPutRequest {
|
||||
id: string;
|
||||
updateOrderRequest?: UpdateOrderRequest;
|
||||
}
|
||||
|
||||
export interface ApiOrdersPostRequest {
|
||||
createOrderRequest?: CreateOrderRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class OrdersApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiOrdersGetRaw(requestParameters: ApiOrdersGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderResponsePagedResponse>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters['search'] != null) {
|
||||
queryParameters['search'] = requestParameters['search'];
|
||||
}
|
||||
|
||||
if (requestParameters['statusId'] != null) {
|
||||
queryParameters['statusId'] = requestParameters['statusId'];
|
||||
}
|
||||
|
||||
if (requestParameters['facilityId'] != null) {
|
||||
queryParameters['facilityId'] = requestParameters['facilityId'];
|
||||
}
|
||||
|
||||
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/orders`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => OrderResponsePagedResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiOrdersGet(requestParameters: ApiOrdersGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderResponsePagedResponse> {
|
||||
const response = await this.apiOrdersGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiOrdersIdGetRaw(requestParameters: ApiOrdersIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiOrdersIdGet().'
|
||||
);
|
||||
}
|
||||
|
||||
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: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => OrderResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiOrdersIdGet(requestParameters: ApiOrdersIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderResponse> {
|
||||
const response = await this.apiOrdersIdGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiOrdersIdPutRaw(requestParameters: ApiOrdersIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiOrdersIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
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/orders/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: UpdateOrderRequestToJSON(requestParameters['updateOrderRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => OrderResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiOrdersIdPut(requestParameters: ApiOrdersIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderResponse> {
|
||||
const response = await this.apiOrdersIdPutRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiOrdersPostRaw(requestParameters: ApiOrdersPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderResponse>> {
|
||||
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/orders`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: CreateOrderRequestToJSON(requestParameters['createOrderRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => OrderResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiOrdersPost(requestParameters: ApiOrdersPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderResponse> {
|
||||
const response = await this.apiOrdersPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
/* 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 {
|
||||
CreateRoleRequest,
|
||||
RolePermissionsResponse,
|
||||
RoleResponse,
|
||||
UpdateRolePermissionsRequest,
|
||||
} from '../models/index';
|
||||
import {
|
||||
CreateRoleRequestFromJSON,
|
||||
CreateRoleRequestToJSON,
|
||||
RolePermissionsResponseFromJSON,
|
||||
RolePermissionsResponseToJSON,
|
||||
RoleResponseFromJSON,
|
||||
RoleResponseToJSON,
|
||||
UpdateRolePermissionsRequestFromJSON,
|
||||
UpdateRolePermissionsRequestToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiRolesIdGetRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiRolesIdPermissionsPutRequest {
|
||||
id: string;
|
||||
updateRolePermissionsRequest?: UpdateRolePermissionsRequest;
|
||||
}
|
||||
|
||||
export interface ApiRolesPostRequest {
|
||||
createRoleRequest?: CreateRoleRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class RolesApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiRolesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<RoleResponse>>> {
|
||||
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/roles`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RoleResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiRolesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<RoleResponse>> {
|
||||
const response = await this.apiRolesGetRaw(initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiRolesIdGetRaw(requestParameters: ApiRolesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RolePermissionsResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiRolesIdGet().'
|
||||
);
|
||||
}
|
||||
|
||||
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/roles/{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) => RolePermissionsResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiRolesIdGet(requestParameters: ApiRolesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RolePermissionsResponse> {
|
||||
const response = await this.apiRolesIdGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiRolesIdPermissionsPutRaw(requestParameters: ApiRolesIdPermissionsPutRequest, 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 apiRolesIdPermissionsPut().'
|
||||
);
|
||||
}
|
||||
|
||||
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/roles/{id}/permissions`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: UpdateRolePermissionsRequestToJSON(requestParameters['updateRolePermissionsRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiRolesIdPermissionsPut(requestParameters: ApiRolesIdPermissionsPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiRolesIdPermissionsPutRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiRolesPostRaw(requestParameters: ApiRolesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RoleResponse>> {
|
||||
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/roles`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: CreateRoleRequestToJSON(requestParameters['createRoleRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => RoleResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiRolesPost(requestParameters: ApiRolesPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RoleResponse> {
|
||||
const response = await this.apiRolesPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,375 @@
|
||||
/* 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 {
|
||||
AddUserPermissionOverrideRequest,
|
||||
CreateUserRequest,
|
||||
ResetUserPasswordRequest,
|
||||
UpdateUserRequest,
|
||||
UserPermissionOverrideResponse,
|
||||
UserResponse,
|
||||
} from '../models/index';
|
||||
import {
|
||||
AddUserPermissionOverrideRequestFromJSON,
|
||||
AddUserPermissionOverrideRequestToJSON,
|
||||
CreateUserRequestFromJSON,
|
||||
CreateUserRequestToJSON,
|
||||
ResetUserPasswordRequestFromJSON,
|
||||
ResetUserPasswordRequestToJSON,
|
||||
UpdateUserRequestFromJSON,
|
||||
UpdateUserRequestToJSON,
|
||||
UserPermissionOverrideResponseFromJSON,
|
||||
UserPermissionOverrideResponseToJSON,
|
||||
UserResponseFromJSON,
|
||||
UserResponseToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiUsersIdPermissionOverridesGetRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiUsersIdPermissionOverridesOverrideIdDeleteRequest {
|
||||
id: string;
|
||||
overrideId: string;
|
||||
}
|
||||
|
||||
export interface ApiUsersIdPermissionOverridesPostRequest {
|
||||
id: string;
|
||||
addUserPermissionOverrideRequest?: AddUserPermissionOverrideRequest;
|
||||
}
|
||||
|
||||
export interface ApiUsersIdPutRequest {
|
||||
id: string;
|
||||
updateUserRequest?: UpdateUserRequest;
|
||||
}
|
||||
|
||||
export interface ApiUsersIdResetPasswordPostRequest {
|
||||
id: string;
|
||||
resetUserPasswordRequest?: ResetUserPasswordRequest;
|
||||
}
|
||||
|
||||
export interface ApiUsersPostRequest {
|
||||
createUserRequest?: CreateUserRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class UsersApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UserResponse>>> {
|
||||
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/users`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UserResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UserResponse>> {
|
||||
const response = await this.apiUsersGetRaw(initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersIdPermissionOverridesGetRaw(requestParameters: ApiUsersIdPermissionOverridesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UserPermissionOverrideResponse>>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiUsersIdPermissionOverridesGet().'
|
||||
);
|
||||
}
|
||||
|
||||
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/users/{id}/permission-overrides`;
|
||||
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) => jsonValue.map(UserPermissionOverrideResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersIdPermissionOverridesGet(requestParameters: ApiUsersIdPermissionOverridesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UserPermissionOverrideResponse>> {
|
||||
const response = await this.apiUsersIdPermissionOverridesGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersIdPermissionOverridesOverrideIdDeleteRaw(requestParameters: ApiUsersIdPermissionOverridesOverrideIdDeleteRequest, 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 apiUsersIdPermissionOverridesOverrideIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
if (requestParameters['overrideId'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'overrideId',
|
||||
'Required parameter "overrideId" was null or undefined when calling apiUsersIdPermissionOverridesOverrideIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
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/users/{id}/permission-overrides/{overrideId}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
urlPath = urlPath.replace(`{${"overrideId"}}`, encodeURIComponent(String(requestParameters['overrideId'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'DELETE',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersIdPermissionOverridesOverrideIdDelete(requestParameters: ApiUsersIdPermissionOverridesOverrideIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiUsersIdPermissionOverridesOverrideIdDeleteRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersIdPermissionOverridesPostRaw(requestParameters: ApiUsersIdPermissionOverridesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserPermissionOverrideResponse>> {
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiUsersIdPermissionOverridesPost().'
|
||||
);
|
||||
}
|
||||
|
||||
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/users/{id}/permission-overrides`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: AddUserPermissionOverrideRequestToJSON(requestParameters['addUserPermissionOverrideRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => UserPermissionOverrideResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersIdPermissionOverridesPost(requestParameters: ApiUsersIdPermissionOverridesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserPermissionOverrideResponse> {
|
||||
const response = await this.apiUsersIdPermissionOverridesPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersIdPutRaw(requestParameters: ApiUsersIdPutRequest, 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 apiUsersIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
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/users/{id}`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: UpdateUserRequestToJSON(requestParameters['updateUserRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersIdPut(requestParameters: ApiUsersIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiUsersIdPutRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersIdResetPasswordPostRaw(requestParameters: ApiUsersIdResetPasswordPostRequest, 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 apiUsersIdResetPasswordPost().'
|
||||
);
|
||||
}
|
||||
|
||||
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/users/{id}/reset-password`;
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: ResetUserPasswordRequestToJSON(requestParameters['resetUserPasswordRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersIdResetPasswordPost(requestParameters: ApiUsersIdResetPasswordPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiUsersIdResetPasswordPostRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersPostRaw(requestParameters: ApiUsersPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
|
||||
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/users`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: CreateUserRequestToJSON(requestParameters['createUserRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiUsersPost(requestParameters: ApiUsersPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse> {
|
||||
const response = await this.apiUsersPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,449 @@
|
||||
/* 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 {
|
||||
CreateValueListItemRequest,
|
||||
UpdateValueListItemRequest,
|
||||
ValueListItemResponse,
|
||||
ValueListResponse,
|
||||
ValueListTransitionRequest,
|
||||
ValueListTransitionResponse,
|
||||
ValueListUsageResponse,
|
||||
} from '../models/index';
|
||||
import {
|
||||
CreateValueListItemRequestFromJSON,
|
||||
CreateValueListItemRequestToJSON,
|
||||
UpdateValueListItemRequestFromJSON,
|
||||
UpdateValueListItemRequestToJSON,
|
||||
ValueListItemResponseFromJSON,
|
||||
ValueListItemResponseToJSON,
|
||||
ValueListResponseFromJSON,
|
||||
ValueListResponseToJSON,
|
||||
ValueListTransitionRequestFromJSON,
|
||||
ValueListTransitionRequestToJSON,
|
||||
ValueListTransitionResponseFromJSON,
|
||||
ValueListTransitionResponseToJSON,
|
||||
ValueListUsageResponseFromJSON,
|
||||
ValueListUsageResponseToJSON,
|
||||
} from '../models/index';
|
||||
|
||||
export interface ApiValueListsKeyItemsGetRequest {
|
||||
key: string;
|
||||
}
|
||||
|
||||
export interface ApiValueListsKeyItemsIdDeleteRequest {
|
||||
key: string;
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiValueListsKeyItemsIdPutRequest {
|
||||
key: string;
|
||||
id: string;
|
||||
updateValueListItemRequest?: UpdateValueListItemRequest;
|
||||
}
|
||||
|
||||
export interface ApiValueListsKeyItemsIdUsagesGetRequest {
|
||||
key: string;
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ApiValueListsKeyItemsPostRequest {
|
||||
key: string;
|
||||
createValueListItemRequest?: CreateValueListItemRequest;
|
||||
}
|
||||
|
||||
export interface ApiValueListsKeyTransitionsGetRequest {
|
||||
key: string;
|
||||
}
|
||||
|
||||
export interface ApiValueListsKeyTransitionsPutRequest {
|
||||
key: string;
|
||||
valueListTransitionRequest?: Array<ValueListTransitionRequest>;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export class ValueListsApi extends runtime.BaseAPI {
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ValueListResponse>>> {
|
||||
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/value-lists`;
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ValueListResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ValueListResponse>> {
|
||||
const response = await this.apiValueListsGetRaw(initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsKeyItemsGetRaw(requestParameters: ApiValueListsKeyItemsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ValueListItemResponse>>> {
|
||||
if (requestParameters['key'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'key',
|
||||
'Required parameter "key" was null or undefined when calling apiValueListsKeyItemsGet().'
|
||||
);
|
||||
}
|
||||
|
||||
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/value-lists/{key}/items`;
|
||||
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters['key'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ValueListItemResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsKeyItemsGet(requestParameters: ApiValueListsKeyItemsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ValueListItemResponse>> {
|
||||
const response = await this.apiValueListsKeyItemsGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsKeyItemsIdDeleteRaw(requestParameters: ApiValueListsKeyItemsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['key'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'key',
|
||||
'Required parameter "key" was null or undefined when calling apiValueListsKeyItemsIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiValueListsKeyItemsIdDelete().'
|
||||
);
|
||||
}
|
||||
|
||||
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/value-lists/{key}/items/{id}`;
|
||||
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters['key'])));
|
||||
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 apiValueListsKeyItemsIdDelete(requestParameters: ApiValueListsKeyItemsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiValueListsKeyItemsIdDeleteRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsKeyItemsIdPutRaw(requestParameters: ApiValueListsKeyItemsIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValueListItemResponse>> {
|
||||
if (requestParameters['key'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'key',
|
||||
'Required parameter "key" was null or undefined when calling apiValueListsKeyItemsIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiValueListsKeyItemsIdPut().'
|
||||
);
|
||||
}
|
||||
|
||||
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/value-lists/{key}/items/{id}`;
|
||||
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters['key'])));
|
||||
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: UpdateValueListItemRequestToJSON(requestParameters['updateValueListItemRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ValueListItemResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsKeyItemsIdPut(requestParameters: ApiValueListsKeyItemsIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValueListItemResponse> {
|
||||
const response = await this.apiValueListsKeyItemsIdPutRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsKeyItemsIdUsagesGetRaw(requestParameters: ApiValueListsKeyItemsIdUsagesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ValueListUsageResponse>>> {
|
||||
if (requestParameters['key'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'key',
|
||||
'Required parameter "key" was null or undefined when calling apiValueListsKeyItemsIdUsagesGet().'
|
||||
);
|
||||
}
|
||||
|
||||
if (requestParameters['id'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'id',
|
||||
'Required parameter "id" was null or undefined when calling apiValueListsKeyItemsIdUsagesGet().'
|
||||
);
|
||||
}
|
||||
|
||||
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/value-lists/{key}/items/{id}/usages`;
|
||||
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters['key'])));
|
||||
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) => jsonValue.map(ValueListUsageResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsKeyItemsIdUsagesGet(requestParameters: ApiValueListsKeyItemsIdUsagesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ValueListUsageResponse>> {
|
||||
const response = await this.apiValueListsKeyItemsIdUsagesGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsKeyItemsPostRaw(requestParameters: ApiValueListsKeyItemsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValueListItemResponse>> {
|
||||
if (requestParameters['key'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'key',
|
||||
'Required parameter "key" was null or undefined when calling apiValueListsKeyItemsPost().'
|
||||
);
|
||||
}
|
||||
|
||||
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/value-lists/{key}/items`;
|
||||
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters['key'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: CreateValueListItemRequestToJSON(requestParameters['createValueListItemRequest']),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ValueListItemResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsKeyItemsPost(requestParameters: ApiValueListsKeyItemsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValueListItemResponse> {
|
||||
const response = await this.apiValueListsKeyItemsPostRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsKeyTransitionsGetRaw(requestParameters: ApiValueListsKeyTransitionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ValueListTransitionResponse>>> {
|
||||
if (requestParameters['key'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'key',
|
||||
'Required parameter "key" was null or undefined when calling apiValueListsKeyTransitionsGet().'
|
||||
);
|
||||
}
|
||||
|
||||
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/value-lists/{key}/transitions`;
|
||||
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters['key'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ValueListTransitionResponseFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsKeyTransitionsGet(requestParameters: ApiValueListsKeyTransitionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ValueListTransitionResponse>> {
|
||||
const response = await this.apiValueListsKeyTransitionsGetRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsKeyTransitionsPutRaw(requestParameters: ApiValueListsKeyTransitionsPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters['key'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'key',
|
||||
'Required parameter "key" was null or undefined when calling apiValueListsKeyTransitionsPut().'
|
||||
);
|
||||
}
|
||||
|
||||
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/value-lists/{key}/transitions`;
|
||||
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters['key'])));
|
||||
|
||||
const response = await this.request({
|
||||
path: urlPath,
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: requestParameters['valueListTransitionRequest']!.map(ValueListTransitionRequestToJSON),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
async apiValueListsKeyTransitionsPut(requestParameters: ApiValueListsKeyTransitionsPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.apiValueListsKeyTransitionsPutRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export * from './AdminEmailApi';
|
||||
export * from './AdminSessionsApi';
|
||||
export * from './AuditLogApi';
|
||||
export * from './AuthApi';
|
||||
export * from './ContractsApi';
|
||||
export * from './EmployeesApi';
|
||||
export * from './FacilitiesApi';
|
||||
export * from './FacilityContactsApi';
|
||||
export * from './HealthApi';
|
||||
export * from './OrdersApi';
|
||||
export * from './RolesApi';
|
||||
export * from './UsersApi';
|
||||
export * from './ValueListsApi';
|
||||
@@ -0,0 +1,5 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export * from './runtime';
|
||||
export * from './apis/index';
|
||||
export * from './models/index';
|
||||
@@ -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';
|
||||
import type { ModuleType } from './ModuleType';
|
||||
import {
|
||||
ModuleTypeFromJSON,
|
||||
ModuleTypeFromJSONTyped,
|
||||
ModuleTypeToJSON,
|
||||
ModuleTypeToJSONTyped,
|
||||
} from './ModuleType';
|
||||
import type { PermissionAction } from './PermissionAction';
|
||||
import {
|
||||
PermissionActionFromJSON,
|
||||
PermissionActionFromJSONTyped,
|
||||
PermissionActionToJSON,
|
||||
PermissionActionToJSONTyped,
|
||||
} from './PermissionAction';
|
||||
import type { PermissionEffect } from './PermissionEffect';
|
||||
import {
|
||||
PermissionEffectFromJSON,
|
||||
PermissionEffectFromJSONTyped,
|
||||
PermissionEffectToJSON,
|
||||
PermissionEffectToJSONTyped,
|
||||
} from './PermissionEffect';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AddUserPermissionOverrideRequest
|
||||
*/
|
||||
export interface AddUserPermissionOverrideRequest {
|
||||
/**
|
||||
*
|
||||
* @type {ModuleType}
|
||||
* @memberof AddUserPermissionOverrideRequest
|
||||
*/
|
||||
module?: ModuleType;
|
||||
/**
|
||||
*
|
||||
* @type {PermissionAction}
|
||||
* @memberof AddUserPermissionOverrideRequest
|
||||
*/
|
||||
action?: PermissionAction;
|
||||
/**
|
||||
*
|
||||
* @type {PermissionEffect}
|
||||
* @memberof AddUserPermissionOverrideRequest
|
||||
*/
|
||||
effect?: PermissionEffect;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AddUserPermissionOverrideRequest interface.
|
||||
*/
|
||||
export function instanceOfAddUserPermissionOverrideRequest(value: object): value is AddUserPermissionOverrideRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function AddUserPermissionOverrideRequestFromJSON(json: any): AddUserPermissionOverrideRequest {
|
||||
return AddUserPermissionOverrideRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AddUserPermissionOverrideRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddUserPermissionOverrideRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'module': json['module'] == null ? undefined : ModuleTypeFromJSON(json['module']),
|
||||
'action': json['action'] == null ? undefined : PermissionActionFromJSON(json['action']),
|
||||
'effect': json['effect'] == null ? undefined : PermissionEffectFromJSON(json['effect']),
|
||||
};
|
||||
}
|
||||
|
||||
export function AddUserPermissionOverrideRequestToJSON(json: any): AddUserPermissionOverrideRequest {
|
||||
return AddUserPermissionOverrideRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AddUserPermissionOverrideRequestToJSONTyped(value?: AddUserPermissionOverrideRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'module': ModuleTypeToJSON(value['module']),
|
||||
'action': PermissionActionToJSON(value['action']),
|
||||
'effect': PermissionEffectToJSON(value['effect']),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 AuditEventCategory = {
|
||||
EntityChange: 'EntityChange',
|
||||
BehavioralEvent: 'BehavioralEvent'
|
||||
} as const;
|
||||
export type AuditEventCategory = typeof AuditEventCategory[keyof typeof AuditEventCategory];
|
||||
|
||||
|
||||
export function instanceOfAuditEventCategory(value: any): boolean {
|
||||
for (const key in AuditEventCategory) {
|
||||
if (Object.prototype.hasOwnProperty.call(AuditEventCategory, key)) {
|
||||
if (AuditEventCategory[key as keyof typeof AuditEventCategory] === value) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function AuditEventCategoryFromJSON(json: any): AuditEventCategory {
|
||||
return AuditEventCategoryFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuditEventCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditEventCategory {
|
||||
return json as AuditEventCategory;
|
||||
}
|
||||
|
||||
export function AuditEventCategoryToJSON(value?: AuditEventCategory | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function AuditEventCategoryToJSONTyped(value: any, ignoreDiscriminator: boolean): AuditEventCategory {
|
||||
return value as AuditEventCategory;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,137 @@
|
||||
/* 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 AuditLogEntryResponse
|
||||
*/
|
||||
export interface AuditLogEntryResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuditLogEntryResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AuditLogEntryResponse
|
||||
*/
|
||||
occurredAtUtc?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuditLogEntryResponse
|
||||
*/
|
||||
actorUserId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuditLogEntryResponse
|
||||
*/
|
||||
actorUsername?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuditLogEntryResponse
|
||||
*/
|
||||
ipAddress?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuditLogEntryResponse
|
||||
*/
|
||||
category?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuditLogEntryResponse
|
||||
*/
|
||||
action?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuditLogEntryResponse
|
||||
*/
|
||||
entityType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuditLogEntryResponse
|
||||
*/
|
||||
entityId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuditLogEntryResponse
|
||||
*/
|
||||
details?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AuditLogEntryResponse interface.
|
||||
*/
|
||||
export function instanceOfAuditLogEntryResponse(value: object): value is AuditLogEntryResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function AuditLogEntryResponseFromJSON(json: any): AuditLogEntryResponse {
|
||||
return AuditLogEntryResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuditLogEntryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogEntryResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'occurredAtUtc': json['occurredAtUtc'] == null ? undefined : (new Date(json['occurredAtUtc'])),
|
||||
'actorUserId': json['actorUserId'] == null ? undefined : json['actorUserId'],
|
||||
'actorUsername': json['actorUsername'] == null ? undefined : json['actorUsername'],
|
||||
'ipAddress': json['ipAddress'] == null ? undefined : json['ipAddress'],
|
||||
'category': json['category'] == null ? undefined : json['category'],
|
||||
'action': json['action'] == null ? undefined : json['action'],
|
||||
'entityType': json['entityType'] == null ? undefined : json['entityType'],
|
||||
'entityId': json['entityId'] == null ? undefined : json['entityId'],
|
||||
'details': json['details'] == null ? undefined : json['details'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuditLogEntryResponseToJSON(json: any): AuditLogEntryResponse {
|
||||
return AuditLogEntryResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuditLogEntryResponseToJSONTyped(value?: AuditLogEntryResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'occurredAtUtc': value['occurredAtUtc'] == null ? undefined : ((value['occurredAtUtc']).toISOString()),
|
||||
'actorUserId': value['actorUserId'],
|
||||
'actorUsername': value['actorUsername'],
|
||||
'ipAddress': value['ipAddress'],
|
||||
'category': value['category'],
|
||||
'action': value['action'],
|
||||
'entityType': value['entityType'],
|
||||
'entityId': value['entityId'],
|
||||
'details': value['details'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 { AuditLogEntryResponse } from './AuditLogEntryResponse';
|
||||
import {
|
||||
AuditLogEntryResponseFromJSON,
|
||||
AuditLogEntryResponseFromJSONTyped,
|
||||
AuditLogEntryResponseToJSON,
|
||||
AuditLogEntryResponseToJSONTyped,
|
||||
} from './AuditLogEntryResponse';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AuditLogEntryResponsePagedResponse
|
||||
*/
|
||||
export interface AuditLogEntryResponsePagedResponse {
|
||||
/**
|
||||
*
|
||||
* @type {Array<AuditLogEntryResponse>}
|
||||
* @memberof AuditLogEntryResponsePagedResponse
|
||||
*/
|
||||
items?: Array<AuditLogEntryResponse> | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AuditLogEntryResponsePagedResponse
|
||||
*/
|
||||
totalCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AuditLogEntryResponsePagedResponse
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AuditLogEntryResponsePagedResponse
|
||||
*/
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AuditLogEntryResponsePagedResponse interface.
|
||||
*/
|
||||
export function instanceOfAuditLogEntryResponsePagedResponse(value: object): value is AuditLogEntryResponsePagedResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function AuditLogEntryResponsePagedResponseFromJSON(json: any): AuditLogEntryResponsePagedResponse {
|
||||
return AuditLogEntryResponsePagedResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuditLogEntryResponsePagedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogEntryResponsePagedResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'items': json['items'] == null ? undefined : ((json['items'] as Array<any>).map(AuditLogEntryResponseFromJSON)),
|
||||
'totalCount': json['totalCount'] == null ? undefined : json['totalCount'],
|
||||
'page': json['page'] == null ? undefined : json['page'],
|
||||
'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuditLogEntryResponsePagedResponseToJSON(json: any): AuditLogEntryResponsePagedResponse {
|
||||
return AuditLogEntryResponsePagedResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuditLogEntryResponsePagedResponseToJSONTyped(value?: AuditLogEntryResponsePagedResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'items': value['items'] == null ? undefined : ((value['items'] as Array<any>).map(AuditLogEntryResponseToJSON)),
|
||||
'totalCount': value['totalCount'],
|
||||
'page': value['page'],
|
||||
'pageSize': value['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 ChangePasswordRequest
|
||||
*/
|
||||
export interface ChangePasswordRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ChangePasswordRequest
|
||||
*/
|
||||
currentPassword?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ChangePasswordRequest
|
||||
*/
|
||||
newPassword?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ChangePasswordRequest interface.
|
||||
*/
|
||||
export function instanceOfChangePasswordRequest(value: object): value is ChangePasswordRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ChangePasswordRequestFromJSON(json: any): ChangePasswordRequest {
|
||||
return ChangePasswordRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ChangePasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePasswordRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'currentPassword': json['currentPassword'] == null ? undefined : json['currentPassword'],
|
||||
'newPassword': json['newPassword'] == null ? undefined : json['newPassword'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ChangePasswordRequestToJSON(json: any): ChangePasswordRequest {
|
||||
return ChangePasswordRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ChangePasswordRequestToJSONTyped(value?: ChangePasswordRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'currentPassword': value['currentPassword'],
|
||||
'newPassword': value['newPassword'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
/* 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 ContractResponse
|
||||
*/
|
||||
export interface ContractResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ContractResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ContractResponse
|
||||
*/
|
||||
contractType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ContractResponse
|
||||
*/
|
||||
employeeId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ContractResponse
|
||||
*/
|
||||
facilityId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof ContractResponse
|
||||
*/
|
||||
startDate?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof ContractResponse
|
||||
*/
|
||||
endDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ContractResponse
|
||||
*/
|
||||
status?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ContractResponse
|
||||
*/
|
||||
weeklyHours?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ContractResponse
|
||||
*/
|
||||
hourlyWage?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ContractResponse
|
||||
*/
|
||||
allowancesDescription?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ContractResponse
|
||||
*/
|
||||
overtimeRules?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ContractResponse
|
||||
*/
|
||||
vacationDaysPerYear?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ContractResponse
|
||||
*/
|
||||
probationPeriodMonths?: number | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ContractResponse interface.
|
||||
*/
|
||||
export function instanceOfContractResponse(value: object): value is ContractResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ContractResponseFromJSON(json: any): ContractResponse {
|
||||
return ContractResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ContractResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'contractType': json['contractType'] == null ? undefined : json['contractType'],
|
||||
'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
|
||||
'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
|
||||
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
||||
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
||||
'status': json['status'] == null ? undefined : json['status'],
|
||||
'weeklyHours': json['weeklyHours'] == null ? undefined : json['weeklyHours'],
|
||||
'hourlyWage': json['hourlyWage'] == null ? undefined : json['hourlyWage'],
|
||||
'allowancesDescription': json['allowancesDescription'] == null ? undefined : json['allowancesDescription'],
|
||||
'overtimeRules': json['overtimeRules'] == null ? undefined : json['overtimeRules'],
|
||||
'vacationDaysPerYear': json['vacationDaysPerYear'] == null ? undefined : json['vacationDaysPerYear'],
|
||||
'probationPeriodMonths': json['probationPeriodMonths'] == null ? undefined : json['probationPeriodMonths'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ContractResponseToJSON(json: any): ContractResponse {
|
||||
return ContractResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ContractResponseToJSONTyped(value?: ContractResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'contractType': value['contractType'],
|
||||
'employeeId': value['employeeId'],
|
||||
'facilityId': value['facilityId'],
|
||||
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString().substring(0,10)),
|
||||
'endDate': value['endDate'] === null ? null : ((value['endDate'] as any)?.toISOString().substring(0,10)),
|
||||
'status': value['status'],
|
||||
'weeklyHours': value['weeklyHours'],
|
||||
'hourlyWage': value['hourlyWage'],
|
||||
'allowancesDescription': value['allowancesDescription'],
|
||||
'overtimeRules': value['overtimeRules'],
|
||||
'vacationDaysPerYear': value['vacationDaysPerYear'],
|
||||
'probationPeriodMonths': value['probationPeriodMonths'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 { ContractResponse } from './ContractResponse';
|
||||
import {
|
||||
ContractResponseFromJSON,
|
||||
ContractResponseFromJSONTyped,
|
||||
ContractResponseToJSON,
|
||||
ContractResponseToJSONTyped,
|
||||
} from './ContractResponse';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ContractResponsePagedResponse
|
||||
*/
|
||||
export interface ContractResponsePagedResponse {
|
||||
/**
|
||||
*
|
||||
* @type {Array<ContractResponse>}
|
||||
* @memberof ContractResponsePagedResponse
|
||||
*/
|
||||
items?: Array<ContractResponse> | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ContractResponsePagedResponse
|
||||
*/
|
||||
totalCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ContractResponsePagedResponse
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ContractResponsePagedResponse
|
||||
*/
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ContractResponsePagedResponse interface.
|
||||
*/
|
||||
export function instanceOfContractResponsePagedResponse(value: object): value is ContractResponsePagedResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ContractResponsePagedResponseFromJSON(json: any): ContractResponsePagedResponse {
|
||||
return ContractResponsePagedResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ContractResponsePagedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractResponsePagedResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'items': json['items'] == null ? undefined : ((json['items'] as Array<any>).map(ContractResponseFromJSON)),
|
||||
'totalCount': json['totalCount'] == null ? undefined : json['totalCount'],
|
||||
'page': json['page'] == null ? undefined : json['page'],
|
||||
'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ContractResponsePagedResponseToJSON(json: any): ContractResponsePagedResponse {
|
||||
return ContractResponsePagedResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ContractResponsePagedResponseToJSONTyped(value?: ContractResponsePagedResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'items': value['items'] == null ? undefined : ((value['items'] as Array<any>).map(ContractResponseToJSON)),
|
||||
'totalCount': value['totalCount'],
|
||||
'page': value['page'],
|
||||
'pageSize': value['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 CreateContractRequest
|
||||
*/
|
||||
export interface CreateContractRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateContractRequest
|
||||
*/
|
||||
contractType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateContractRequest
|
||||
*/
|
||||
employeeId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateContractRequest
|
||||
*/
|
||||
facilityId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof CreateContractRequest
|
||||
*/
|
||||
startDate?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof CreateContractRequest
|
||||
*/
|
||||
endDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CreateContractRequest
|
||||
*/
|
||||
weeklyHours?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CreateContractRequest
|
||||
*/
|
||||
hourlyWage?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateContractRequest
|
||||
*/
|
||||
allowancesDescription?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateContractRequest
|
||||
*/
|
||||
overtimeRules?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CreateContractRequest
|
||||
*/
|
||||
vacationDaysPerYear?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CreateContractRequest
|
||||
*/
|
||||
probationPeriodMonths?: number | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateContractRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateContractRequest(value: object): value is CreateContractRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function CreateContractRequestFromJSON(json: any): CreateContractRequest {
|
||||
return CreateContractRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateContractRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateContractRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'contractType': json['contractType'] == null ? undefined : json['contractType'],
|
||||
'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
|
||||
'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
|
||||
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
||||
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
||||
'weeklyHours': json['weeklyHours'] == null ? undefined : json['weeklyHours'],
|
||||
'hourlyWage': json['hourlyWage'] == null ? undefined : json['hourlyWage'],
|
||||
'allowancesDescription': json['allowancesDescription'] == null ? undefined : json['allowancesDescription'],
|
||||
'overtimeRules': json['overtimeRules'] == null ? undefined : json['overtimeRules'],
|
||||
'vacationDaysPerYear': json['vacationDaysPerYear'] == null ? undefined : json['vacationDaysPerYear'],
|
||||
'probationPeriodMonths': json['probationPeriodMonths'] == null ? undefined : json['probationPeriodMonths'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateContractRequestToJSON(json: any): CreateContractRequest {
|
||||
return CreateContractRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateContractRequestToJSONTyped(value?: CreateContractRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'contractType': value['contractType'],
|
||||
'employeeId': value['employeeId'],
|
||||
'facilityId': value['facilityId'],
|
||||
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString().substring(0,10)),
|
||||
'endDate': value['endDate'] === null ? null : ((value['endDate'] as any)?.toISOString().substring(0,10)),
|
||||
'weeklyHours': value['weeklyHours'],
|
||||
'hourlyWage': value['hourlyWage'],
|
||||
'allowancesDescription': value['allowancesDescription'],
|
||||
'overtimeRules': value['overtimeRules'],
|
||||
'vacationDaysPerYear': value['vacationDaysPerYear'],
|
||||
'probationPeriodMonths': value['probationPeriodMonths'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,185 @@
|
||||
/* 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 CreateEmployeeRequest
|
||||
*/
|
||||
export interface CreateEmployeeRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
firstName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
lastName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
dateOfBirth?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
street?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
postalCode?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
city?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
country?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
phoneNumber?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
email?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
entryDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
exitDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
emergencyContactName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
emergencyContactPhone?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
emergencyContactRelation?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
employmentType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateEmployeeRequest
|
||||
*/
|
||||
qualification?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateEmployeeRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateEmployeeRequest(value: object): value is CreateEmployeeRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function CreateEmployeeRequestFromJSON(json: any): CreateEmployeeRequest {
|
||||
return CreateEmployeeRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateEmployeeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateEmployeeRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
||||
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
||||
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
||||
'street': json['street'] == null ? undefined : json['street'],
|
||||
'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
|
||||
'city': json['city'] == null ? undefined : json['city'],
|
||||
'country': json['country'] == null ? undefined : json['country'],
|
||||
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
||||
'email': json['email'] == null ? undefined : json['email'],
|
||||
'entryDate': json['entryDate'] == null ? undefined : (new Date(json['entryDate'])),
|
||||
'exitDate': json['exitDate'] == null ? undefined : (new Date(json['exitDate'])),
|
||||
'emergencyContactName': json['emergencyContactName'] == null ? undefined : json['emergencyContactName'],
|
||||
'emergencyContactPhone': json['emergencyContactPhone'] == null ? undefined : json['emergencyContactPhone'],
|
||||
'emergencyContactRelation': json['emergencyContactRelation'] == null ? undefined : json['emergencyContactRelation'],
|
||||
'employmentType': json['employmentType'] == null ? undefined : json['employmentType'],
|
||||
'qualification': json['qualification'] == null ? undefined : json['qualification'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateEmployeeRequestToJSON(json: any): CreateEmployeeRequest {
|
||||
return CreateEmployeeRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateEmployeeRequestToJSONTyped(value?: CreateEmployeeRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'firstName': value['firstName'],
|
||||
'lastName': value['lastName'],
|
||||
'dateOfBirth': value['dateOfBirth'] === null ? null : ((value['dateOfBirth'] as any)?.toISOString().substring(0,10)),
|
||||
'street': value['street'],
|
||||
'postalCode': value['postalCode'],
|
||||
'city': value['city'],
|
||||
'country': value['country'],
|
||||
'phoneNumber': value['phoneNumber'],
|
||||
'email': value['email'],
|
||||
'entryDate': value['entryDate'] === null ? null : ((value['entryDate'] as any)?.toISOString().substring(0,10)),
|
||||
'exitDate': value['exitDate'] === null ? null : ((value['exitDate'] as any)?.toISOString().substring(0,10)),
|
||||
'emergencyContactName': value['emergencyContactName'],
|
||||
'emergencyContactPhone': value['emergencyContactPhone'],
|
||||
'emergencyContactRelation': value['emergencyContactRelation'],
|
||||
'employmentType': value['employmentType'],
|
||||
'qualification': value['qualification'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 CreateFacilityContactRequest
|
||||
*/
|
||||
export interface CreateFacilityContactRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityContactRequest
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityContactRequest
|
||||
*/
|
||||
role?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityContactRequest
|
||||
*/
|
||||
department?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityContactRequest
|
||||
*/
|
||||
phoneNumber?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityContactRequest
|
||||
*/
|
||||
email?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityContactRequest
|
||||
*/
|
||||
notes?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateFacilityContactRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateFacilityContactRequest(value: object): value is CreateFacilityContactRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function CreateFacilityContactRequestFromJSON(json: any): CreateFacilityContactRequest {
|
||||
return CreateFacilityContactRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateFacilityContactRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFacilityContactRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'role': json['role'] == null ? undefined : json['role'],
|
||||
'department': json['department'] == null ? undefined : json['department'],
|
||||
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
||||
'email': json['email'] == null ? undefined : json['email'],
|
||||
'notes': json['notes'] == null ? undefined : json['notes'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateFacilityContactRequestToJSON(json: any): CreateFacilityContactRequest {
|
||||
return CreateFacilityContactRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateFacilityContactRequestToJSONTyped(value?: CreateFacilityContactRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'name': value['name'],
|
||||
'role': value['role'],
|
||||
'department': value['department'],
|
||||
'phoneNumber': value['phoneNumber'],
|
||||
'email': value['email'],
|
||||
'notes': value['notes'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 CreateFacilityRequest
|
||||
*/
|
||||
export interface CreateFacilityRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityRequest
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityRequest
|
||||
*/
|
||||
facilityType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityRequest
|
||||
*/
|
||||
website?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityRequest
|
||||
*/
|
||||
street?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityRequest
|
||||
*/
|
||||
postalCode?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityRequest
|
||||
*/
|
||||
city?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityRequest
|
||||
*/
|
||||
country?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityRequest
|
||||
*/
|
||||
billingStreet?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityRequest
|
||||
*/
|
||||
billingPostalCode?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityRequest
|
||||
*/
|
||||
billingCity?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateFacilityRequest
|
||||
*/
|
||||
billingCountry?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateFacilityRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateFacilityRequest(value: object): value is CreateFacilityRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function CreateFacilityRequestFromJSON(json: any): CreateFacilityRequest {
|
||||
return CreateFacilityRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateFacilityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFacilityRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'facilityType': json['facilityType'] == null ? undefined : json['facilityType'],
|
||||
'website': json['website'] == null ? undefined : json['website'],
|
||||
'street': json['street'] == null ? undefined : json['street'],
|
||||
'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
|
||||
'city': json['city'] == null ? undefined : json['city'],
|
||||
'country': json['country'] == null ? undefined : json['country'],
|
||||
'billingStreet': json['billingStreet'] == null ? undefined : json['billingStreet'],
|
||||
'billingPostalCode': json['billingPostalCode'] == null ? undefined : json['billingPostalCode'],
|
||||
'billingCity': json['billingCity'] == null ? undefined : json['billingCity'],
|
||||
'billingCountry': json['billingCountry'] == null ? undefined : json['billingCountry'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateFacilityRequestToJSON(json: any): CreateFacilityRequest {
|
||||
return CreateFacilityRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateFacilityRequestToJSONTyped(value?: CreateFacilityRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'name': value['name'],
|
||||
'facilityType': value['facilityType'],
|
||||
'website': value['website'],
|
||||
'street': value['street'],
|
||||
'postalCode': value['postalCode'],
|
||||
'city': value['city'],
|
||||
'country': value['country'],
|
||||
'billingStreet': value['billingStreet'],
|
||||
'billingPostalCode': value['billingPostalCode'],
|
||||
'billingCity': value['billingCity'],
|
||||
'billingCountry': value['billingCountry'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 CreateOrderRequest
|
||||
*/
|
||||
export interface CreateOrderRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateOrderRequest
|
||||
*/
|
||||
facilityId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateOrderRequest
|
||||
*/
|
||||
facilityContactId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof CreateOrderRequest
|
||||
*/
|
||||
startDate?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof CreateOrderRequest
|
||||
*/
|
||||
endDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateOrderRequest
|
||||
*/
|
||||
requiredQualification?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateOrderRequest
|
||||
*/
|
||||
shiftType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CreateOrderRequest
|
||||
*/
|
||||
requiredHeadcount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateOrderRequest
|
||||
*/
|
||||
conditions?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateOrderRequest
|
||||
*/
|
||||
priority?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateOrderRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateOrderRequest(value: object): value is CreateOrderRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function CreateOrderRequestFromJSON(json: any): CreateOrderRequest {
|
||||
return CreateOrderRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrderRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
|
||||
'facilityContactId': json['facilityContactId'] == null ? undefined : json['facilityContactId'],
|
||||
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
||||
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
||||
'requiredQualification': json['requiredQualification'] == null ? undefined : json['requiredQualification'],
|
||||
'shiftType': json['shiftType'] == null ? undefined : json['shiftType'],
|
||||
'requiredHeadcount': json['requiredHeadcount'] == null ? undefined : json['requiredHeadcount'],
|
||||
'conditions': json['conditions'] == null ? undefined : json['conditions'],
|
||||
'priority': json['priority'] == null ? undefined : json['priority'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateOrderRequestToJSON(json: any): CreateOrderRequest {
|
||||
return CreateOrderRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateOrderRequestToJSONTyped(value?: CreateOrderRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'facilityId': value['facilityId'],
|
||||
'facilityContactId': value['facilityContactId'],
|
||||
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString().substring(0,10)),
|
||||
'endDate': value['endDate'] === null ? null : ((value['endDate'] as any)?.toISOString().substring(0,10)),
|
||||
'requiredQualification': value['requiredQualification'],
|
||||
'shiftType': value['shiftType'],
|
||||
'requiredHeadcount': value['requiredHeadcount'],
|
||||
'conditions': value['conditions'],
|
||||
'priority': value['priority'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* 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 CreateRoleRequest
|
||||
*/
|
||||
export interface CreateRoleRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateRoleRequest
|
||||
*/
|
||||
name?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateRoleRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateRoleRequest(value: object): value is CreateRoleRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function CreateRoleRequestFromJSON(json: any): CreateRoleRequest {
|
||||
return CreateRoleRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRoleRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateRoleRequestToJSON(json: any): CreateRoleRequest {
|
||||
return CreateRoleRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateRoleRequestToJSONTyped(value?: CreateRoleRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'name': value['name'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 CreateUserRequest
|
||||
*/
|
||||
export interface CreateUserRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateUserRequest
|
||||
*/
|
||||
employeeId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateUserRequest
|
||||
*/
|
||||
username?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateUserRequest
|
||||
*/
|
||||
roleId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateUserRequest
|
||||
*/
|
||||
mode?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateUserRequest
|
||||
*/
|
||||
initialPassword?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CreateUserRequest
|
||||
*/
|
||||
pinValidityDays?: number | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateUserRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateUserRequest(value: object): value is CreateUserRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function CreateUserRequestFromJSON(json: any): CreateUserRequest {
|
||||
return CreateUserRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
|
||||
'username': json['username'] == null ? undefined : json['username'],
|
||||
'roleId': json['roleId'] == null ? undefined : json['roleId'],
|
||||
'mode': json['mode'] == null ? undefined : json['mode'],
|
||||
'initialPassword': json['initialPassword'] == null ? undefined : json['initialPassword'],
|
||||
'pinValidityDays': json['pinValidityDays'] == null ? undefined : json['pinValidityDays'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateUserRequestToJSON(json: any): CreateUserRequest {
|
||||
return CreateUserRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateUserRequestToJSONTyped(value?: CreateUserRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'employeeId': value['employeeId'],
|
||||
'username': value['username'],
|
||||
'roleId': value['roleId'],
|
||||
'mode': value['mode'],
|
||||
'initialPassword': value['initialPassword'],
|
||||
'pinValidityDays': value['pinValidityDays'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface CreateValueListItemRequest
|
||||
*/
|
||||
export interface CreateValueListItemRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CreateValueListItemRequest
|
||||
*/
|
||||
value?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CreateValueListItemRequest
|
||||
*/
|
||||
sortOrder?: number;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CreateValueListItemRequest
|
||||
*/
|
||||
isDefault?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CreateValueListItemRequest
|
||||
*/
|
||||
isInitial?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CreateValueListItemRequest
|
||||
*/
|
||||
isTerminal?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the CreateValueListItemRequest interface.
|
||||
*/
|
||||
export function instanceOfCreateValueListItemRequest(value: object): value is CreateValueListItemRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function CreateValueListItemRequestFromJSON(json: any): CreateValueListItemRequest {
|
||||
return CreateValueListItemRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateValueListItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateValueListItemRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'value': json['value'] == null ? undefined : json['value'],
|
||||
'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
|
||||
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
||||
'isInitial': json['isInitial'] == null ? undefined : json['isInitial'],
|
||||
'isTerminal': json['isTerminal'] == null ? undefined : json['isTerminal'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CreateValueListItemRequestToJSON(json: any): CreateValueListItemRequest {
|
||||
return CreateValueListItemRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CreateValueListItemRequestToJSONTyped(value?: CreateValueListItemRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'value': value['value'],
|
||||
'sortOrder': value['sortOrder'],
|
||||
'isDefault': value['isDefault'],
|
||||
'isInitial': value['isInitial'],
|
||||
'isTerminal': value['isTerminal'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 EmployeeResponse
|
||||
*/
|
||||
export interface EmployeeResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
firstName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
lastName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
status?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
dateOfBirth?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
street?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
postalCode?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
city?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
country?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
phoneNumber?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
email?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
entryDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
exitDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
emergencyContactName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
emergencyContactPhone?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
emergencyContactRelation?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
employmentType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
qualification?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof EmployeeResponse
|
||||
*/
|
||||
avatarFileName?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the EmployeeResponse interface.
|
||||
*/
|
||||
export function instanceOfEmployeeResponse(value: object): value is EmployeeResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function EmployeeResponseFromJSON(json: any): EmployeeResponse {
|
||||
return EmployeeResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function EmployeeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmployeeResponse {
|
||||
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'],
|
||||
'status': json['status'] == null ? undefined : json['status'],
|
||||
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
||||
'street': json['street'] == null ? undefined : json['street'],
|
||||
'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
|
||||
'city': json['city'] == null ? undefined : json['city'],
|
||||
'country': json['country'] == null ? undefined : json['country'],
|
||||
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
||||
'email': json['email'] == null ? undefined : json['email'],
|
||||
'entryDate': json['entryDate'] == null ? undefined : (new Date(json['entryDate'])),
|
||||
'exitDate': json['exitDate'] == null ? undefined : (new Date(json['exitDate'])),
|
||||
'emergencyContactName': json['emergencyContactName'] == null ? undefined : json['emergencyContactName'],
|
||||
'emergencyContactPhone': json['emergencyContactPhone'] == null ? undefined : json['emergencyContactPhone'],
|
||||
'emergencyContactRelation': json['emergencyContactRelation'] == null ? undefined : json['emergencyContactRelation'],
|
||||
'employmentType': json['employmentType'] == null ? undefined : json['employmentType'],
|
||||
'qualification': json['qualification'] == null ? undefined : json['qualification'],
|
||||
'avatarFileName': json['avatarFileName'] == null ? undefined : json['avatarFileName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function EmployeeResponseToJSON(json: any): EmployeeResponse {
|
||||
return EmployeeResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function EmployeeResponseToJSONTyped(value?: EmployeeResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'firstName': value['firstName'],
|
||||
'lastName': value['lastName'],
|
||||
'status': value['status'],
|
||||
'dateOfBirth': value['dateOfBirth'] === null ? null : ((value['dateOfBirth'] as any)?.toISOString().substring(0,10)),
|
||||
'street': value['street'],
|
||||
'postalCode': value['postalCode'],
|
||||
'city': value['city'],
|
||||
'country': value['country'],
|
||||
'phoneNumber': value['phoneNumber'],
|
||||
'email': value['email'],
|
||||
'entryDate': value['entryDate'] === null ? null : ((value['entryDate'] as any)?.toISOString().substring(0,10)),
|
||||
'exitDate': value['exitDate'] === null ? null : ((value['exitDate'] as any)?.toISOString().substring(0,10)),
|
||||
'emergencyContactName': value['emergencyContactName'],
|
||||
'emergencyContactPhone': value['emergencyContactPhone'],
|
||||
'emergencyContactRelation': value['emergencyContactRelation'],
|
||||
'employmentType': value['employmentType'],
|
||||
'qualification': value['qualification'],
|
||||
'avatarFileName': value['avatarFileName'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 { EmployeeResponse } from './EmployeeResponse';
|
||||
import {
|
||||
EmployeeResponseFromJSON,
|
||||
EmployeeResponseFromJSONTyped,
|
||||
EmployeeResponseToJSON,
|
||||
EmployeeResponseToJSONTyped,
|
||||
} from './EmployeeResponse';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface EmployeeResponsePagedResponse
|
||||
*/
|
||||
export interface EmployeeResponsePagedResponse {
|
||||
/**
|
||||
*
|
||||
* @type {Array<EmployeeResponse>}
|
||||
* @memberof EmployeeResponsePagedResponse
|
||||
*/
|
||||
items?: Array<EmployeeResponse> | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EmployeeResponsePagedResponse
|
||||
*/
|
||||
totalCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EmployeeResponsePagedResponse
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof EmployeeResponsePagedResponse
|
||||
*/
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the EmployeeResponsePagedResponse interface.
|
||||
*/
|
||||
export function instanceOfEmployeeResponsePagedResponse(value: object): value is EmployeeResponsePagedResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function EmployeeResponsePagedResponseFromJSON(json: any): EmployeeResponsePagedResponse {
|
||||
return EmployeeResponsePagedResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function EmployeeResponsePagedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmployeeResponsePagedResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'items': json['items'] == null ? undefined : ((json['items'] as Array<any>).map(EmployeeResponseFromJSON)),
|
||||
'totalCount': json['totalCount'] == null ? undefined : json['totalCount'],
|
||||
'page': json['page'] == null ? undefined : json['page'],
|
||||
'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
export function EmployeeResponsePagedResponseToJSON(json: any): EmployeeResponsePagedResponse {
|
||||
return EmployeeResponsePagedResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function EmployeeResponsePagedResponseToJSONTyped(value?: EmployeeResponsePagedResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'items': value['items'] == null ? undefined : ((value['items'] as Array<any>).map(EmployeeResponseToJSON)),
|
||||
'totalCount': value['totalCount'],
|
||||
'page': value['page'],
|
||||
'pageSize': value['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
/* 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 FacilityContactResponse
|
||||
*/
|
||||
export interface FacilityContactResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityContactResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityContactResponse
|
||||
*/
|
||||
facilityId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityContactResponse
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityContactResponse
|
||||
*/
|
||||
role?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityContactResponse
|
||||
*/
|
||||
department?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityContactResponse
|
||||
*/
|
||||
phoneNumber?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityContactResponse
|
||||
*/
|
||||
email?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityContactResponse
|
||||
*/
|
||||
notes?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the FacilityContactResponse interface.
|
||||
*/
|
||||
export function instanceOfFacilityContactResponse(value: object): value is FacilityContactResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function FacilityContactResponseFromJSON(json: any): FacilityContactResponse {
|
||||
return FacilityContactResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function FacilityContactResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityContactResponse {
|
||||
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'],
|
||||
'role': json['role'] == null ? undefined : json['role'],
|
||||
'department': json['department'] == null ? undefined : json['department'],
|
||||
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
||||
'email': json['email'] == null ? undefined : json['email'],
|
||||
'notes': json['notes'] == null ? undefined : json['notes'],
|
||||
};
|
||||
}
|
||||
|
||||
export function FacilityContactResponseToJSON(json: any): FacilityContactResponse {
|
||||
return FacilityContactResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function FacilityContactResponseToJSONTyped(value?: FacilityContactResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'facilityId': value['facilityId'],
|
||||
'name': value['name'],
|
||||
'role': value['role'],
|
||||
'department': value['department'],
|
||||
'phoneNumber': value['phoneNumber'],
|
||||
'email': value['email'],
|
||||
'notes': value['notes'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
/* 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 FacilityResponse
|
||||
*/
|
||||
export interface FacilityResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
crmStatus?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
facilityType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
website?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
street?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
postalCode?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
city?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
country?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
billingStreet?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
billingPostalCode?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
billingCity?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FacilityResponse
|
||||
*/
|
||||
billingCountry?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the FacilityResponse interface.
|
||||
*/
|
||||
export function instanceOfFacilityResponse(value: object): value is FacilityResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function FacilityResponseFromJSON(json: any): FacilityResponse {
|
||||
return FacilityResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function FacilityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'crmStatus': json['crmStatus'] == null ? undefined : json['crmStatus'],
|
||||
'facilityType': json['facilityType'] == null ? undefined : json['facilityType'],
|
||||
'website': json['website'] == null ? undefined : json['website'],
|
||||
'street': json['street'] == null ? undefined : json['street'],
|
||||
'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
|
||||
'city': json['city'] == null ? undefined : json['city'],
|
||||
'country': json['country'] == null ? undefined : json['country'],
|
||||
'billingStreet': json['billingStreet'] == null ? undefined : json['billingStreet'],
|
||||
'billingPostalCode': json['billingPostalCode'] == null ? undefined : json['billingPostalCode'],
|
||||
'billingCity': json['billingCity'] == null ? undefined : json['billingCity'],
|
||||
'billingCountry': json['billingCountry'] == null ? undefined : json['billingCountry'],
|
||||
};
|
||||
}
|
||||
|
||||
export function FacilityResponseToJSON(json: any): FacilityResponse {
|
||||
return FacilityResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function FacilityResponseToJSONTyped(value?: FacilityResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
'crmStatus': value['crmStatus'],
|
||||
'facilityType': value['facilityType'],
|
||||
'website': value['website'],
|
||||
'street': value['street'],
|
||||
'postalCode': value['postalCode'],
|
||||
'city': value['city'],
|
||||
'country': value['country'],
|
||||
'billingStreet': value['billingStreet'],
|
||||
'billingPostalCode': value['billingPostalCode'],
|
||||
'billingCity': value['billingCity'],
|
||||
'billingCountry': value['billingCountry'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 { FacilityResponse } from './FacilityResponse';
|
||||
import {
|
||||
FacilityResponseFromJSON,
|
||||
FacilityResponseFromJSONTyped,
|
||||
FacilityResponseToJSON,
|
||||
FacilityResponseToJSONTyped,
|
||||
} from './FacilityResponse';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface FacilityResponsePagedResponse
|
||||
*/
|
||||
export interface FacilityResponsePagedResponse {
|
||||
/**
|
||||
*
|
||||
* @type {Array<FacilityResponse>}
|
||||
* @memberof FacilityResponsePagedResponse
|
||||
*/
|
||||
items?: Array<FacilityResponse> | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof FacilityResponsePagedResponse
|
||||
*/
|
||||
totalCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof FacilityResponsePagedResponse
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof FacilityResponsePagedResponse
|
||||
*/
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the FacilityResponsePagedResponse interface.
|
||||
*/
|
||||
export function instanceOfFacilityResponsePagedResponse(value: object): value is FacilityResponsePagedResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function FacilityResponsePagedResponseFromJSON(json: any): FacilityResponsePagedResponse {
|
||||
return FacilityResponsePagedResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function FacilityResponsePagedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityResponsePagedResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'items': json['items'] == null ? undefined : ((json['items'] as Array<any>).map(FacilityResponseFromJSON)),
|
||||
'totalCount': json['totalCount'] == null ? undefined : json['totalCount'],
|
||||
'page': json['page'] == null ? undefined : json['page'],
|
||||
'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
export function FacilityResponsePagedResponseToJSON(json: any): FacilityResponsePagedResponse {
|
||||
return FacilityResponsePagedResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function FacilityResponsePagedResponseToJSONTyped(value?: FacilityResponsePagedResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'items': value['items'] == null ? undefined : ((value['items'] as Array<any>).map(FacilityResponseToJSON)),
|
||||
'totalCount': value['totalCount'],
|
||||
'page': value['page'],
|
||||
'pageSize': value['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* 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 ForgotPasswordRequestRequest
|
||||
*/
|
||||
export interface ForgotPasswordRequestRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ForgotPasswordRequestRequest
|
||||
*/
|
||||
username?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ForgotPasswordRequestRequest interface.
|
||||
*/
|
||||
export function instanceOfForgotPasswordRequestRequest(value: object): value is ForgotPasswordRequestRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ForgotPasswordRequestRequestFromJSON(json: any): ForgotPasswordRequestRequest {
|
||||
return ForgotPasswordRequestRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ForgotPasswordRequestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordRequestRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'username': json['username'] == null ? undefined : json['username'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ForgotPasswordRequestRequestToJSON(json: any): ForgotPasswordRequestRequest {
|
||||
return ForgotPasswordRequestRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ForgotPasswordRequestRequestToJSONTyped(value?: ForgotPasswordRequestRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'username': value['username'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* 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 ForgotPasswordRequestResponse
|
||||
*/
|
||||
export interface ForgotPasswordRequestResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ForgotPasswordRequestResponse
|
||||
*/
|
||||
status?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ForgotPasswordRequestResponse interface.
|
||||
*/
|
||||
export function instanceOfForgotPasswordRequestResponse(value: object): value is ForgotPasswordRequestResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ForgotPasswordRequestResponseFromJSON(json: any): ForgotPasswordRequestResponse {
|
||||
return ForgotPasswordRequestResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ForgotPasswordRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordRequestResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'status': json['status'] == null ? undefined : json['status'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ForgotPasswordRequestResponseToJSON(json: any): ForgotPasswordRequestResponse {
|
||||
return ForgotPasswordRequestResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ForgotPasswordRequestResponseToJSONTyped(value?: ForgotPasswordRequestResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'status': value['status'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 ForgotPasswordResetRequest
|
||||
*/
|
||||
export interface ForgotPasswordResetRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ForgotPasswordResetRequest
|
||||
*/
|
||||
resetToken?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ForgotPasswordResetRequest
|
||||
*/
|
||||
newPassword?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ForgotPasswordResetRequest interface.
|
||||
*/
|
||||
export function instanceOfForgotPasswordResetRequest(value: object): value is ForgotPasswordResetRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ForgotPasswordResetRequestFromJSON(json: any): ForgotPasswordResetRequest {
|
||||
return ForgotPasswordResetRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ForgotPasswordResetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordResetRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'resetToken': json['resetToken'] == null ? undefined : json['resetToken'],
|
||||
'newPassword': json['newPassword'] == null ? undefined : json['newPassword'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ForgotPasswordResetRequestToJSON(json: any): ForgotPasswordResetRequest {
|
||||
return ForgotPasswordResetRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ForgotPasswordResetRequestToJSONTyped(value?: ForgotPasswordResetRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'resetToken': value['resetToken'],
|
||||
'newPassword': value['newPassword'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 ForgotPasswordVerifyRequest
|
||||
*/
|
||||
export interface ForgotPasswordVerifyRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ForgotPasswordVerifyRequest
|
||||
*/
|
||||
username?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ForgotPasswordVerifyRequest
|
||||
*/
|
||||
pin?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ForgotPasswordVerifyRequest interface.
|
||||
*/
|
||||
export function instanceOfForgotPasswordVerifyRequest(value: object): value is ForgotPasswordVerifyRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ForgotPasswordVerifyRequestFromJSON(json: any): ForgotPasswordVerifyRequest {
|
||||
return ForgotPasswordVerifyRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ForgotPasswordVerifyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordVerifyRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'username': json['username'] == null ? undefined : json['username'],
|
||||
'pin': json['pin'] == null ? undefined : json['pin'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ForgotPasswordVerifyRequestToJSON(json: any): ForgotPasswordVerifyRequest {
|
||||
return ForgotPasswordVerifyRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ForgotPasswordVerifyRequestToJSONTyped(value?: ForgotPasswordVerifyRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'username': value['username'],
|
||||
'pin': value['pin'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* 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 ForgotPasswordVerifyResponse
|
||||
*/
|
||||
export interface ForgotPasswordVerifyResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ForgotPasswordVerifyResponse
|
||||
*/
|
||||
resetToken?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ForgotPasswordVerifyResponse interface.
|
||||
*/
|
||||
export function instanceOfForgotPasswordVerifyResponse(value: object): value is ForgotPasswordVerifyResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ForgotPasswordVerifyResponseFromJSON(json: any): ForgotPasswordVerifyResponse {
|
||||
return ForgotPasswordVerifyResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ForgotPasswordVerifyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordVerifyResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'resetToken': json['resetToken'] == null ? undefined : json['resetToken'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ForgotPasswordVerifyResponseToJSON(json: any): ForgotPasswordVerifyResponse {
|
||||
return ForgotPasswordVerifyResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ForgotPasswordVerifyResponseToJSONTyped(value?: ForgotPasswordVerifyResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'resetToken': value['resetToken'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 LoginRequest
|
||||
*/
|
||||
export interface LoginRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof LoginRequest
|
||||
*/
|
||||
username?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof LoginRequest
|
||||
*/
|
||||
password?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the LoginRequest interface.
|
||||
*/
|
||||
export function instanceOfLoginRequest(value: object): value is LoginRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function LoginRequestFromJSON(json: any): LoginRequest {
|
||||
return LoginRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'username': json['username'] == null ? undefined : json['username'],
|
||||
'password': json['password'] == null ? undefined : json['password'],
|
||||
};
|
||||
}
|
||||
|
||||
export function LoginRequestToJSON(json: any): LoginRequest {
|
||||
return LoginRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'username': value['username'],
|
||||
'password': value['password'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 LoginResponse
|
||||
*/
|
||||
export interface LoginResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof LoginResponse
|
||||
*/
|
||||
accessToken?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof LoginResponse
|
||||
*/
|
||||
refreshToken?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof LoginResponse
|
||||
*/
|
||||
expiresAt?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof LoginResponse
|
||||
*/
|
||||
mustChangePassword?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the LoginResponse interface.
|
||||
*/
|
||||
export function instanceOfLoginResponse(value: object): value is LoginResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function LoginResponseFromJSON(json: any): LoginResponse {
|
||||
return LoginResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function LoginResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
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'],
|
||||
};
|
||||
}
|
||||
|
||||
export function LoginResponseToJSON(json: any): LoginResponse {
|
||||
return LoginResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function LoginResponseToJSONTyped(value?: LoginResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'accessToken': value['accessToken'],
|
||||
'refreshToken': value['refreshToken'],
|
||||
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
||||
'mustChangePassword': value['mustChangePassword'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* 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'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
import type { PermissionDto } from './PermissionDto';
|
||||
import {
|
||||
PermissionDtoFromJSON,
|
||||
PermissionDtoFromJSONTyped,
|
||||
PermissionDtoToJSON,
|
||||
PermissionDtoToJSONTyped,
|
||||
} from './PermissionDto';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface MeResponse
|
||||
*/
|
||||
export interface MeResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof MeResponse
|
||||
*/
|
||||
userId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof MeResponse
|
||||
*/
|
||||
username?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof MeResponse
|
||||
*/
|
||||
role?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<PermissionDto>}
|
||||
* @memberof MeResponse
|
||||
*/
|
||||
permissions?: Array<PermissionDto> | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof MeResponse
|
||||
*/
|
||||
employeeId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof MeResponse
|
||||
*/
|
||||
firstName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof MeResponse
|
||||
*/
|
||||
lastName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof MeResponse
|
||||
*/
|
||||
email?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof MeResponse
|
||||
*/
|
||||
phoneNumber?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof MeResponse
|
||||
*/
|
||||
avatarFileName?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the MeResponse interface.
|
||||
*/
|
||||
export function instanceOfMeResponse(value: object): value is MeResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function MeResponseFromJSON(json: any): MeResponse {
|
||||
return MeResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function MeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MeResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'userId': json['userId'] == null ? undefined : json['userId'],
|
||||
'username': json['username'] == null ? undefined : json['username'],
|
||||
'role': json['role'] == null ? undefined : json['role'],
|
||||
'permissions': json['permissions'] == null ? undefined : ((json['permissions'] as Array<any>).map(PermissionDtoFromJSON)),
|
||||
'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
|
||||
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
||||
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
||||
'email': json['email'] == null ? undefined : json['email'],
|
||||
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
||||
'avatarFileName': json['avatarFileName'] == null ? undefined : json['avatarFileName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function MeResponseToJSON(json: any): MeResponse {
|
||||
return MeResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function MeResponseToJSONTyped(value?: MeResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'userId': value['userId'],
|
||||
'username': value['username'],
|
||||
'role': value['role'],
|
||||
'permissions': value['permissions'] == null ? undefined : ((value['permissions'] as Array<any>).map(PermissionDtoToJSON)),
|
||||
'employeeId': value['employeeId'],
|
||||
'firstName': value['firstName'],
|
||||
'lastName': value['lastName'],
|
||||
'email': value['email'],
|
||||
'phoneNumber': value['phoneNumber'],
|
||||
'avatarFileName': value['avatarFileName'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/* 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 ModuleType = {
|
||||
Employees: 'Employees',
|
||||
Facilities: 'Facilities',
|
||||
Contracts: 'Contracts',
|
||||
Orders: 'Orders',
|
||||
TimeEntries: 'TimeEntries',
|
||||
Invoices: 'Invoices',
|
||||
Recruiting: 'Recruiting',
|
||||
Controlling: 'Controlling',
|
||||
UserManagement: 'UserManagement',
|
||||
AuditLog: 'AuditLog'
|
||||
} as const;
|
||||
export type ModuleType = typeof ModuleType[keyof typeof ModuleType];
|
||||
|
||||
|
||||
export function instanceOfModuleType(value: any): boolean {
|
||||
for (const key in ModuleType) {
|
||||
if (Object.prototype.hasOwnProperty.call(ModuleType, key)) {
|
||||
if (ModuleType[key as keyof typeof ModuleType] === value) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function ModuleTypeFromJSON(json: any): ModuleType {
|
||||
return ModuleTypeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ModuleTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModuleType {
|
||||
return json as ModuleType;
|
||||
}
|
||||
|
||||
export function ModuleTypeToJSON(value?: ModuleType | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function ModuleTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ModuleType {
|
||||
return value as ModuleType;
|
||||
}
|
||||
|
||||
@@ -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 OrderResponse
|
||||
*/
|
||||
export interface OrderResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof OrderResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof OrderResponse
|
||||
*/
|
||||
facilityId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof OrderResponse
|
||||
*/
|
||||
facilityContactId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof OrderResponse
|
||||
*/
|
||||
startDate?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof OrderResponse
|
||||
*/
|
||||
endDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof OrderResponse
|
||||
*/
|
||||
requiredQualification?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof OrderResponse
|
||||
*/
|
||||
shiftType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof OrderResponse
|
||||
*/
|
||||
requiredHeadcount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof OrderResponse
|
||||
*/
|
||||
conditions?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof OrderResponse
|
||||
*/
|
||||
priority?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof OrderResponse
|
||||
*/
|
||||
statusId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof OrderResponse
|
||||
*/
|
||||
statusName?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the OrderResponse interface.
|
||||
*/
|
||||
export function instanceOfOrderResponse(value: object): value is OrderResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function OrderResponseFromJSON(json: any): OrderResponse {
|
||||
return OrderResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function OrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
|
||||
'facilityContactId': json['facilityContactId'] == null ? undefined : json['facilityContactId'],
|
||||
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
||||
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
||||
'requiredQualification': json['requiredQualification'] == null ? undefined : json['requiredQualification'],
|
||||
'shiftType': json['shiftType'] == null ? undefined : json['shiftType'],
|
||||
'requiredHeadcount': json['requiredHeadcount'] == null ? undefined : json['requiredHeadcount'],
|
||||
'conditions': json['conditions'] == null ? undefined : json['conditions'],
|
||||
'priority': json['priority'] == null ? undefined : json['priority'],
|
||||
'statusId': json['statusId'] == null ? undefined : json['statusId'],
|
||||
'statusName': json['statusName'] == null ? undefined : json['statusName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function OrderResponseToJSON(json: any): OrderResponse {
|
||||
return OrderResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function OrderResponseToJSONTyped(value?: OrderResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'facilityId': value['facilityId'],
|
||||
'facilityContactId': value['facilityContactId'],
|
||||
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString().substring(0,10)),
|
||||
'endDate': value['endDate'] === null ? null : ((value['endDate'] as any)?.toISOString().substring(0,10)),
|
||||
'requiredQualification': value['requiredQualification'],
|
||||
'shiftType': value['shiftType'],
|
||||
'requiredHeadcount': value['requiredHeadcount'],
|
||||
'conditions': value['conditions'],
|
||||
'priority': value['priority'],
|
||||
'statusId': value['statusId'],
|
||||
'statusName': value['statusName'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 { OrderResponse } from './OrderResponse';
|
||||
import {
|
||||
OrderResponseFromJSON,
|
||||
OrderResponseFromJSONTyped,
|
||||
OrderResponseToJSON,
|
||||
OrderResponseToJSONTyped,
|
||||
} from './OrderResponse';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface OrderResponsePagedResponse
|
||||
*/
|
||||
export interface OrderResponsePagedResponse {
|
||||
/**
|
||||
*
|
||||
* @type {Array<OrderResponse>}
|
||||
* @memberof OrderResponsePagedResponse
|
||||
*/
|
||||
items?: Array<OrderResponse> | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof OrderResponsePagedResponse
|
||||
*/
|
||||
totalCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof OrderResponsePagedResponse
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof OrderResponsePagedResponse
|
||||
*/
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the OrderResponsePagedResponse interface.
|
||||
*/
|
||||
export function instanceOfOrderResponsePagedResponse(value: object): value is OrderResponsePagedResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function OrderResponsePagedResponseFromJSON(json: any): OrderResponsePagedResponse {
|
||||
return OrderResponsePagedResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function OrderResponsePagedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderResponsePagedResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'items': json['items'] == null ? undefined : ((json['items'] as Array<any>).map(OrderResponseFromJSON)),
|
||||
'totalCount': json['totalCount'] == null ? undefined : json['totalCount'],
|
||||
'page': json['page'] == null ? undefined : json['page'],
|
||||
'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
export function OrderResponsePagedResponseToJSON(json: any): OrderResponsePagedResponse {
|
||||
return OrderResponsePagedResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function OrderResponsePagedResponseToJSONTyped(value?: OrderResponsePagedResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'items': value['items'] == null ? undefined : ((value['items'] as Array<any>).map(OrderResponseToJSON)),
|
||||
'totalCount': value['totalCount'],
|
||||
'page': value['page'],
|
||||
'pageSize': value['pageSize'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* 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 PasswordPolicyResponse
|
||||
*/
|
||||
export interface PasswordPolicyResponse {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PasswordPolicyResponse
|
||||
*/
|
||||
minLength?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PasswordPolicyResponse interface.
|
||||
*/
|
||||
export function instanceOfPasswordPolicyResponse(value: object): value is PasswordPolicyResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PasswordPolicyResponseFromJSON(json: any): PasswordPolicyResponse {
|
||||
return PasswordPolicyResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PasswordPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordPolicyResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'minLength': json['minLength'] == null ? undefined : json['minLength'],
|
||||
};
|
||||
}
|
||||
|
||||
export function PasswordPolicyResponseToJSON(json: any): PasswordPolicyResponse {
|
||||
return PasswordPolicyResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PasswordPolicyResponseToJSONTyped(value?: PasswordPolicyResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'minLength': value['minLength'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 PasswordResetTemplateResponse
|
||||
*/
|
||||
export interface PasswordResetTemplateResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PasswordResetTemplateResponse
|
||||
*/
|
||||
subject?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PasswordResetTemplateResponse
|
||||
*/
|
||||
bodyTemplate?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PasswordResetTemplateResponse interface.
|
||||
*/
|
||||
export function instanceOfPasswordResetTemplateResponse(value: object): value is PasswordResetTemplateResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PasswordResetTemplateResponseFromJSON(json: any): PasswordResetTemplateResponse {
|
||||
return PasswordResetTemplateResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PasswordResetTemplateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordResetTemplateResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'subject': json['subject'] == null ? undefined : json['subject'],
|
||||
'bodyTemplate': json['bodyTemplate'] == null ? undefined : json['bodyTemplate'],
|
||||
};
|
||||
}
|
||||
|
||||
export function PasswordResetTemplateResponseToJSON(json: any): PasswordResetTemplateResponse {
|
||||
return PasswordResetTemplateResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PasswordResetTemplateResponseToJSONTyped(value?: PasswordResetTemplateResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'subject': value['subject'],
|
||||
'bodyTemplate': value['bodyTemplate'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/* 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 PermissionAction = {
|
||||
View: 'View',
|
||||
Create: 'Create',
|
||||
Edit: 'Edit',
|
||||
Delete: 'Delete',
|
||||
Export: 'Export',
|
||||
Approve: 'Approve'
|
||||
} as const;
|
||||
export type PermissionAction = typeof PermissionAction[keyof typeof PermissionAction];
|
||||
|
||||
|
||||
export function instanceOfPermissionAction(value: any): boolean {
|
||||
for (const key in PermissionAction) {
|
||||
if (Object.prototype.hasOwnProperty.call(PermissionAction, key)) {
|
||||
if (PermissionAction[key as keyof typeof PermissionAction] === value) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function PermissionActionFromJSON(json: any): PermissionAction {
|
||||
return PermissionActionFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PermissionActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionAction {
|
||||
return json as PermissionAction;
|
||||
}
|
||||
|
||||
export function PermissionActionToJSON(value?: PermissionAction | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function PermissionActionToJSONTyped(value: any, ignoreDiscriminator: boolean): PermissionAction {
|
||||
return value as PermissionAction;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OmsorgCore.Api
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { ModuleType } from './ModuleType';
|
||||
import {
|
||||
ModuleTypeFromJSON,
|
||||
ModuleTypeFromJSONTyped,
|
||||
ModuleTypeToJSON,
|
||||
ModuleTypeToJSONTyped,
|
||||
} from './ModuleType';
|
||||
import type { PermissionAction } from './PermissionAction';
|
||||
import {
|
||||
PermissionActionFromJSON,
|
||||
PermissionActionFromJSONTyped,
|
||||
PermissionActionToJSON,
|
||||
PermissionActionToJSONTyped,
|
||||
} from './PermissionAction';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PermissionDto
|
||||
*/
|
||||
export interface PermissionDto {
|
||||
/**
|
||||
*
|
||||
* @type {ModuleType}
|
||||
* @memberof PermissionDto
|
||||
*/
|
||||
module?: ModuleType;
|
||||
/**
|
||||
*
|
||||
* @type {PermissionAction}
|
||||
* @memberof PermissionDto
|
||||
*/
|
||||
action?: PermissionAction;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PermissionDto interface.
|
||||
*/
|
||||
export function instanceOfPermissionDto(value: object): value is PermissionDto {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PermissionDtoFromJSON(json: any): PermissionDto {
|
||||
return PermissionDtoFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PermissionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionDto {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'module': json['module'] == null ? undefined : ModuleTypeFromJSON(json['module']),
|
||||
'action': json['action'] == null ? undefined : PermissionActionFromJSON(json['action']),
|
||||
};
|
||||
}
|
||||
|
||||
export function PermissionDtoToJSON(json: any): PermissionDto {
|
||||
return PermissionDtoToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PermissionDtoToJSONTyped(value?: PermissionDto | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'module': ModuleTypeToJSON(value['module']),
|
||||
'action': PermissionActionToJSON(value['action']),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 PermissionEffect = {
|
||||
Grant: 'Grant',
|
||||
Revoke: 'Revoke'
|
||||
} as const;
|
||||
export type PermissionEffect = typeof PermissionEffect[keyof typeof PermissionEffect];
|
||||
|
||||
|
||||
export function instanceOfPermissionEffect(value: any): boolean {
|
||||
for (const key in PermissionEffect) {
|
||||
if (Object.prototype.hasOwnProperty.call(PermissionEffect, key)) {
|
||||
if (PermissionEffect[key as keyof typeof PermissionEffect] === value) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function PermissionEffectFromJSON(json: any): PermissionEffect {
|
||||
return PermissionEffectFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PermissionEffectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionEffect {
|
||||
return json as PermissionEffect;
|
||||
}
|
||||
|
||||
export function PermissionEffectToJSON(value?: PermissionEffect | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function PermissionEffectToJSONTyped(value: any, ignoreDiscriminator: boolean): PermissionEffect {
|
||||
return value as PermissionEffect;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* 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,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 ResetUserPasswordRequest
|
||||
*/
|
||||
export interface ResetUserPasswordRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResetUserPasswordRequest
|
||||
*/
|
||||
mode?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResetUserPasswordRequest
|
||||
*/
|
||||
initialPassword?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ResetUserPasswordRequest
|
||||
*/
|
||||
pinValidityDays?: number | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ResetUserPasswordRequest interface.
|
||||
*/
|
||||
export function instanceOfResetUserPasswordRequest(value: object): value is ResetUserPasswordRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ResetUserPasswordRequestFromJSON(json: any): ResetUserPasswordRequest {
|
||||
return ResetUserPasswordRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ResetUserPasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetUserPasswordRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'mode': json['mode'] == null ? undefined : json['mode'],
|
||||
'initialPassword': json['initialPassword'] == null ? undefined : json['initialPassword'],
|
||||
'pinValidityDays': json['pinValidityDays'] == null ? undefined : json['pinValidityDays'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ResetUserPasswordRequestToJSON(json: any): ResetUserPasswordRequest {
|
||||
return ResetUserPasswordRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ResetUserPasswordRequestToJSONTyped(value?: ResetUserPasswordRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'mode': value['mode'],
|
||||
'initialPassword': value['initialPassword'],
|
||||
'pinValidityDays': value['pinValidityDays'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
import type { PermissionDto } from './PermissionDto';
|
||||
import {
|
||||
PermissionDtoFromJSON,
|
||||
PermissionDtoFromJSONTyped,
|
||||
PermissionDtoToJSON,
|
||||
PermissionDtoToJSONTyped,
|
||||
} from './PermissionDto';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RolePermissionsResponse
|
||||
*/
|
||||
export interface RolePermissionsResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RolePermissionsResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RolePermissionsResponse
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<PermissionDto>}
|
||||
* @memberof RolePermissionsResponse
|
||||
*/
|
||||
permissions?: Array<PermissionDto> | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the RolePermissionsResponse interface.
|
||||
*/
|
||||
export function instanceOfRolePermissionsResponse(value: object): value is RolePermissionsResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function RolePermissionsResponseFromJSON(json: any): RolePermissionsResponse {
|
||||
return RolePermissionsResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RolePermissionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RolePermissionsResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'permissions': json['permissions'] == null ? undefined : ((json['permissions'] as Array<any>).map(PermissionDtoFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function RolePermissionsResponseToJSON(json: any): RolePermissionsResponse {
|
||||
return RolePermissionsResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RolePermissionsResponseToJSONTyped(value?: RolePermissionsResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
'permissions': value['permissions'] == null ? undefined : ((value['permissions'] as Array<any>).map(PermissionDtoToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 RoleResponse
|
||||
*/
|
||||
export interface RoleResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RoleResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RoleResponse
|
||||
*/
|
||||
name?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the RoleResponse interface.
|
||||
*/
|
||||
export function instanceOfRoleResponse(value: object): value is RoleResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function RoleResponseFromJSON(json: any): RoleResponse {
|
||||
return RoleResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RoleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
};
|
||||
}
|
||||
|
||||
export function RoleResponseToJSON(json: any): RoleResponse {
|
||||
return RoleResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RoleResponseToJSONTyped(value?: RoleResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 SendTestEmailRequest
|
||||
*/
|
||||
export interface SendTestEmailRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SendTestEmailRequest
|
||||
*/
|
||||
toAddress?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SendTestEmailRequest
|
||||
*/
|
||||
subject?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SendTestEmailRequest
|
||||
*/
|
||||
body?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the SendTestEmailRequest interface.
|
||||
*/
|
||||
export function instanceOfSendTestEmailRequest(value: object): value is SendTestEmailRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function SendTestEmailRequestFromJSON(json: any): SendTestEmailRequest {
|
||||
return SendTestEmailRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SendTestEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendTestEmailRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'toAddress': json['toAddress'] == null ? undefined : json['toAddress'],
|
||||
'subject': json['subject'] == null ? undefined : json['subject'],
|
||||
'body': json['body'] == null ? undefined : json['body'],
|
||||
};
|
||||
}
|
||||
|
||||
export function SendTestEmailRequestToJSON(json: any): SendTestEmailRequest {
|
||||
return SendTestEmailRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SendTestEmailRequestToJSONTyped(value?: SendTestEmailRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'toAddress': value['toAddress'],
|
||||
'subject': value['subject'],
|
||||
'body': value['body'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 SessionResponse
|
||||
*/
|
||||
export interface SessionResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SessionResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SessionResponse
|
||||
*/
|
||||
username?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof SessionResponse
|
||||
*/
|
||||
createdAt?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof SessionResponse
|
||||
*/
|
||||
expiresAt?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the SessionResponse interface.
|
||||
*/
|
||||
export function instanceOfSessionResponse(value: object): value is SessionResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function SessionResponseFromJSON(json: any): SessionResponse {
|
||||
return SessionResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'username': json['username'] == null ? undefined : json['username'],
|
||||
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
||||
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function SessionResponseToJSON(json: any): SessionResponse {
|
||||
return SessionResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SessionResponseToJSONTyped(value?: SessionResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'username': value['username'],
|
||||
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
||||
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 UpdateContractRequest
|
||||
*/
|
||||
export interface UpdateContractRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateContractRequest
|
||||
*/
|
||||
contractType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateContractRequest
|
||||
*/
|
||||
employeeId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateContractRequest
|
||||
*/
|
||||
facilityId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UpdateContractRequest
|
||||
*/
|
||||
startDate?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UpdateContractRequest
|
||||
*/
|
||||
endDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateContractRequest
|
||||
*/
|
||||
status?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateContractRequest
|
||||
*/
|
||||
weeklyHours?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateContractRequest
|
||||
*/
|
||||
hourlyWage?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateContractRequest
|
||||
*/
|
||||
allowancesDescription?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateContractRequest
|
||||
*/
|
||||
overtimeRules?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateContractRequest
|
||||
*/
|
||||
vacationDaysPerYear?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateContractRequest
|
||||
*/
|
||||
probationPeriodMonths?: number | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UpdateContractRequest interface.
|
||||
*/
|
||||
export function instanceOfUpdateContractRequest(value: object): value is UpdateContractRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UpdateContractRequestFromJSON(json: any): UpdateContractRequest {
|
||||
return UpdateContractRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateContractRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateContractRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'contractType': json['contractType'] == null ? undefined : json['contractType'],
|
||||
'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
|
||||
'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
|
||||
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
||||
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
||||
'status': json['status'] == null ? undefined : json['status'],
|
||||
'weeklyHours': json['weeklyHours'] == null ? undefined : json['weeklyHours'],
|
||||
'hourlyWage': json['hourlyWage'] == null ? undefined : json['hourlyWage'],
|
||||
'allowancesDescription': json['allowancesDescription'] == null ? undefined : json['allowancesDescription'],
|
||||
'overtimeRules': json['overtimeRules'] == null ? undefined : json['overtimeRules'],
|
||||
'vacationDaysPerYear': json['vacationDaysPerYear'] == null ? undefined : json['vacationDaysPerYear'],
|
||||
'probationPeriodMonths': json['probationPeriodMonths'] == null ? undefined : json['probationPeriodMonths'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UpdateContractRequestToJSON(json: any): UpdateContractRequest {
|
||||
return UpdateContractRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateContractRequestToJSONTyped(value?: UpdateContractRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'contractType': value['contractType'],
|
||||
'employeeId': value['employeeId'],
|
||||
'facilityId': value['facilityId'],
|
||||
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString().substring(0,10)),
|
||||
'endDate': value['endDate'] === null ? null : ((value['endDate'] as any)?.toISOString().substring(0,10)),
|
||||
'status': value['status'],
|
||||
'weeklyHours': value['weeklyHours'],
|
||||
'hourlyWage': value['hourlyWage'],
|
||||
'allowancesDescription': value['allowancesDescription'],
|
||||
'overtimeRules': value['overtimeRules'],
|
||||
'vacationDaysPerYear': value['vacationDaysPerYear'],
|
||||
'probationPeriodMonths': value['probationPeriodMonths'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,201 @@
|
||||
/* 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 UpdateEmployeeRequest
|
||||
*/
|
||||
export interface UpdateEmployeeRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
firstName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
lastName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
status?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
dateOfBirth?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
street?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
postalCode?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
city?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
country?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
phoneNumber?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
email?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
entryDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
exitDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
emergencyContactName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
emergencyContactPhone?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
emergencyContactRelation?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
employmentType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
qualification?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateEmployeeRequest
|
||||
*/
|
||||
avatarFileName?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UpdateEmployeeRequest interface.
|
||||
*/
|
||||
export function instanceOfUpdateEmployeeRequest(value: object): value is UpdateEmployeeRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UpdateEmployeeRequestFromJSON(json: any): UpdateEmployeeRequest {
|
||||
return UpdateEmployeeRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateEmployeeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateEmployeeRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
||||
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
||||
'status': json['status'] == null ? undefined : json['status'],
|
||||
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
||||
'street': json['street'] == null ? undefined : json['street'],
|
||||
'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
|
||||
'city': json['city'] == null ? undefined : json['city'],
|
||||
'country': json['country'] == null ? undefined : json['country'],
|
||||
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
||||
'email': json['email'] == null ? undefined : json['email'],
|
||||
'entryDate': json['entryDate'] == null ? undefined : (new Date(json['entryDate'])),
|
||||
'exitDate': json['exitDate'] == null ? undefined : (new Date(json['exitDate'])),
|
||||
'emergencyContactName': json['emergencyContactName'] == null ? undefined : json['emergencyContactName'],
|
||||
'emergencyContactPhone': json['emergencyContactPhone'] == null ? undefined : json['emergencyContactPhone'],
|
||||
'emergencyContactRelation': json['emergencyContactRelation'] == null ? undefined : json['emergencyContactRelation'],
|
||||
'employmentType': json['employmentType'] == null ? undefined : json['employmentType'],
|
||||
'qualification': json['qualification'] == null ? undefined : json['qualification'],
|
||||
'avatarFileName': json['avatarFileName'] == null ? undefined : json['avatarFileName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UpdateEmployeeRequestToJSON(json: any): UpdateEmployeeRequest {
|
||||
return UpdateEmployeeRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateEmployeeRequestToJSONTyped(value?: UpdateEmployeeRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'firstName': value['firstName'],
|
||||
'lastName': value['lastName'],
|
||||
'status': value['status'],
|
||||
'dateOfBirth': value['dateOfBirth'] === null ? null : ((value['dateOfBirth'] as any)?.toISOString().substring(0,10)),
|
||||
'street': value['street'],
|
||||
'postalCode': value['postalCode'],
|
||||
'city': value['city'],
|
||||
'country': value['country'],
|
||||
'phoneNumber': value['phoneNumber'],
|
||||
'email': value['email'],
|
||||
'entryDate': value['entryDate'] === null ? null : ((value['entryDate'] as any)?.toISOString().substring(0,10)),
|
||||
'exitDate': value['exitDate'] === null ? null : ((value['exitDate'] as any)?.toISOString().substring(0,10)),
|
||||
'emergencyContactName': value['emergencyContactName'],
|
||||
'emergencyContactPhone': value['emergencyContactPhone'],
|
||||
'emergencyContactRelation': value['emergencyContactRelation'],
|
||||
'employmentType': value['employmentType'],
|
||||
'qualification': value['qualification'],
|
||||
'avatarFileName': value['avatarFileName'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 UpdateFacilityContactRequest
|
||||
*/
|
||||
export interface UpdateFacilityContactRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityContactRequest
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityContactRequest
|
||||
*/
|
||||
role?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityContactRequest
|
||||
*/
|
||||
department?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityContactRequest
|
||||
*/
|
||||
phoneNumber?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityContactRequest
|
||||
*/
|
||||
email?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityContactRequest
|
||||
*/
|
||||
notes?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UpdateFacilityContactRequest interface.
|
||||
*/
|
||||
export function instanceOfUpdateFacilityContactRequest(value: object): value is UpdateFacilityContactRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UpdateFacilityContactRequestFromJSON(json: any): UpdateFacilityContactRequest {
|
||||
return UpdateFacilityContactRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateFacilityContactRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFacilityContactRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'role': json['role'] == null ? undefined : json['role'],
|
||||
'department': json['department'] == null ? undefined : json['department'],
|
||||
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
||||
'email': json['email'] == null ? undefined : json['email'],
|
||||
'notes': json['notes'] == null ? undefined : json['notes'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UpdateFacilityContactRequestToJSON(json: any): UpdateFacilityContactRequest {
|
||||
return UpdateFacilityContactRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateFacilityContactRequestToJSONTyped(value?: UpdateFacilityContactRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'name': value['name'],
|
||||
'role': value['role'],
|
||||
'department': value['department'],
|
||||
'phoneNumber': value['phoneNumber'],
|
||||
'email': value['email'],
|
||||
'notes': value['notes'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 UpdateFacilityRequest
|
||||
*/
|
||||
export interface UpdateFacilityRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
crmStatus?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
facilityType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
website?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
street?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
postalCode?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
city?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
country?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
billingStreet?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
billingPostalCode?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
billingCity?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateFacilityRequest
|
||||
*/
|
||||
billingCountry?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UpdateFacilityRequest interface.
|
||||
*/
|
||||
export function instanceOfUpdateFacilityRequest(value: object): value is UpdateFacilityRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UpdateFacilityRequestFromJSON(json: any): UpdateFacilityRequest {
|
||||
return UpdateFacilityRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateFacilityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFacilityRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'crmStatus': json['crmStatus'] == null ? undefined : json['crmStatus'],
|
||||
'facilityType': json['facilityType'] == null ? undefined : json['facilityType'],
|
||||
'website': json['website'] == null ? undefined : json['website'],
|
||||
'street': json['street'] == null ? undefined : json['street'],
|
||||
'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
|
||||
'city': json['city'] == null ? undefined : json['city'],
|
||||
'country': json['country'] == null ? undefined : json['country'],
|
||||
'billingStreet': json['billingStreet'] == null ? undefined : json['billingStreet'],
|
||||
'billingPostalCode': json['billingPostalCode'] == null ? undefined : json['billingPostalCode'],
|
||||
'billingCity': json['billingCity'] == null ? undefined : json['billingCity'],
|
||||
'billingCountry': json['billingCountry'] == null ? undefined : json['billingCountry'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UpdateFacilityRequestToJSON(json: any): UpdateFacilityRequest {
|
||||
return UpdateFacilityRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateFacilityRequestToJSONTyped(value?: UpdateFacilityRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'name': value['name'],
|
||||
'crmStatus': value['crmStatus'],
|
||||
'facilityType': value['facilityType'],
|
||||
'website': value['website'],
|
||||
'street': value['street'],
|
||||
'postalCode': value['postalCode'],
|
||||
'city': value['city'],
|
||||
'country': value['country'],
|
||||
'billingStreet': value['billingStreet'],
|
||||
'billingPostalCode': value['billingPostalCode'],
|
||||
'billingCity': value['billingCity'],
|
||||
'billingCountry': value['billingCountry'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,137 @@
|
||||
/* 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 UpdateOrderRequest
|
||||
*/
|
||||
export interface UpdateOrderRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateOrderRequest
|
||||
*/
|
||||
facilityId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateOrderRequest
|
||||
*/
|
||||
facilityContactId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UpdateOrderRequest
|
||||
*/
|
||||
startDate?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof UpdateOrderRequest
|
||||
*/
|
||||
endDate?: Date | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateOrderRequest
|
||||
*/
|
||||
requiredQualification?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateOrderRequest
|
||||
*/
|
||||
shiftType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateOrderRequest
|
||||
*/
|
||||
requiredHeadcount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateOrderRequest
|
||||
*/
|
||||
conditions?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateOrderRequest
|
||||
*/
|
||||
priority?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateOrderRequest
|
||||
*/
|
||||
statusId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UpdateOrderRequest interface.
|
||||
*/
|
||||
export function instanceOfUpdateOrderRequest(value: object): value is UpdateOrderRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UpdateOrderRequestFromJSON(json: any): UpdateOrderRequest {
|
||||
return UpdateOrderRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'facilityId': json['facilityId'] == null ? undefined : json['facilityId'],
|
||||
'facilityContactId': json['facilityContactId'] == null ? undefined : json['facilityContactId'],
|
||||
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
||||
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
||||
'requiredQualification': json['requiredQualification'] == null ? undefined : json['requiredQualification'],
|
||||
'shiftType': json['shiftType'] == null ? undefined : json['shiftType'],
|
||||
'requiredHeadcount': json['requiredHeadcount'] == null ? undefined : json['requiredHeadcount'],
|
||||
'conditions': json['conditions'] == null ? undefined : json['conditions'],
|
||||
'priority': json['priority'] == null ? undefined : json['priority'],
|
||||
'statusId': json['statusId'] == null ? undefined : json['statusId'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UpdateOrderRequestToJSON(json: any): UpdateOrderRequest {
|
||||
return UpdateOrderRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateOrderRequestToJSONTyped(value?: UpdateOrderRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'facilityId': value['facilityId'],
|
||||
'facilityContactId': value['facilityContactId'],
|
||||
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString().substring(0,10)),
|
||||
'endDate': value['endDate'] === null ? null : ((value['endDate'] as any)?.toISOString().substring(0,10)),
|
||||
'requiredQualification': value['requiredQualification'],
|
||||
'shiftType': value['shiftType'],
|
||||
'requiredHeadcount': value['requiredHeadcount'],
|
||||
'conditions': value['conditions'],
|
||||
'priority': value['priority'],
|
||||
'statusId': value['statusId'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
import type { PermissionDto } from './PermissionDto';
|
||||
import {
|
||||
PermissionDtoFromJSON,
|
||||
PermissionDtoFromJSONTyped,
|
||||
PermissionDtoToJSON,
|
||||
PermissionDtoToJSONTyped,
|
||||
} from './PermissionDto';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UpdateRolePermissionsRequest
|
||||
*/
|
||||
export interface UpdateRolePermissionsRequest {
|
||||
/**
|
||||
*
|
||||
* @type {Array<PermissionDto>}
|
||||
* @memberof UpdateRolePermissionsRequest
|
||||
*/
|
||||
permissions?: Array<PermissionDto> | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UpdateRolePermissionsRequest interface.
|
||||
*/
|
||||
export function instanceOfUpdateRolePermissionsRequest(value: object): value is UpdateRolePermissionsRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UpdateRolePermissionsRequestFromJSON(json: any): UpdateRolePermissionsRequest {
|
||||
return UpdateRolePermissionsRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateRolePermissionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRolePermissionsRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'permissions': json['permissions'] == null ? undefined : ((json['permissions'] as Array<any>).map(PermissionDtoFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function UpdateRolePermissionsRequestToJSON(json: any): UpdateRolePermissionsRequest {
|
||||
return UpdateRolePermissionsRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateRolePermissionsRequestToJSONTyped(value?: UpdateRolePermissionsRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'permissions': value['permissions'] == null ? undefined : ((value['permissions'] as Array<any>).map(PermissionDtoToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 UpdateUserRequest
|
||||
*/
|
||||
export interface UpdateUserRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateUserRequest
|
||||
*/
|
||||
roleId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof UpdateUserRequest
|
||||
*/
|
||||
isActive?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UpdateUserRequest interface.
|
||||
*/
|
||||
export function instanceOfUpdateUserRequest(value: object): value is UpdateUserRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UpdateUserRequestFromJSON(json: any): UpdateUserRequest {
|
||||
return UpdateUserRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'roleId': json['roleId'] == null ? undefined : json['roleId'],
|
||||
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UpdateUserRequestToJSON(json: any): UpdateUserRequest {
|
||||
return UpdateUserRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateUserRequestToJSONTyped(value?: UpdateUserRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'roleId': value['roleId'],
|
||||
'isActive': value['isActive'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UpdateValueListItemRequest
|
||||
*/
|
||||
export interface UpdateValueListItemRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UpdateValueListItemRequest
|
||||
*/
|
||||
value?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UpdateValueListItemRequest
|
||||
*/
|
||||
sortOrder?: number;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof UpdateValueListItemRequest
|
||||
*/
|
||||
isDefault?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof UpdateValueListItemRequest
|
||||
*/
|
||||
isInitial?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof UpdateValueListItemRequest
|
||||
*/
|
||||
isTerminal?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UpdateValueListItemRequest interface.
|
||||
*/
|
||||
export function instanceOfUpdateValueListItemRequest(value: object): value is UpdateValueListItemRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UpdateValueListItemRequestFromJSON(json: any): UpdateValueListItemRequest {
|
||||
return UpdateValueListItemRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateValueListItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateValueListItemRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'value': json['value'] == null ? undefined : json['value'],
|
||||
'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
|
||||
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
||||
'isInitial': json['isInitial'] == null ? undefined : json['isInitial'],
|
||||
'isTerminal': json['isTerminal'] == null ? undefined : json['isTerminal'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UpdateValueListItemRequestToJSON(json: any): UpdateValueListItemRequest {
|
||||
return UpdateValueListItemRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UpdateValueListItemRequestToJSONTyped(value?: UpdateValueListItemRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'value': value['value'],
|
||||
'sortOrder': value['sortOrder'],
|
||||
'isDefault': value['isDefault'],
|
||||
'isInitial': value['isInitial'],
|
||||
'isTerminal': value['isTerminal'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* OmsorgCore.Api
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { ModuleType } from './ModuleType';
|
||||
import {
|
||||
ModuleTypeFromJSON,
|
||||
ModuleTypeFromJSONTyped,
|
||||
ModuleTypeToJSON,
|
||||
ModuleTypeToJSONTyped,
|
||||
} from './ModuleType';
|
||||
import type { PermissionAction } from './PermissionAction';
|
||||
import {
|
||||
PermissionActionFromJSON,
|
||||
PermissionActionFromJSONTyped,
|
||||
PermissionActionToJSON,
|
||||
PermissionActionToJSONTyped,
|
||||
} from './PermissionAction';
|
||||
import type { PermissionEffect } from './PermissionEffect';
|
||||
import {
|
||||
PermissionEffectFromJSON,
|
||||
PermissionEffectFromJSONTyped,
|
||||
PermissionEffectToJSON,
|
||||
PermissionEffectToJSONTyped,
|
||||
} from './PermissionEffect';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UserPermissionOverrideResponse
|
||||
*/
|
||||
export interface UserPermissionOverrideResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserPermissionOverrideResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {ModuleType}
|
||||
* @memberof UserPermissionOverrideResponse
|
||||
*/
|
||||
module?: ModuleType;
|
||||
/**
|
||||
*
|
||||
* @type {PermissionAction}
|
||||
* @memberof UserPermissionOverrideResponse
|
||||
*/
|
||||
action?: PermissionAction;
|
||||
/**
|
||||
*
|
||||
* @type {PermissionEffect}
|
||||
* @memberof UserPermissionOverrideResponse
|
||||
*/
|
||||
effect?: PermissionEffect;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UserPermissionOverrideResponse interface.
|
||||
*/
|
||||
export function instanceOfUserPermissionOverrideResponse(value: object): value is UserPermissionOverrideResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UserPermissionOverrideResponseFromJSON(json: any): UserPermissionOverrideResponse {
|
||||
return UserPermissionOverrideResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UserPermissionOverrideResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPermissionOverrideResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'module': json['module'] == null ? undefined : ModuleTypeFromJSON(json['module']),
|
||||
'action': json['action'] == null ? undefined : PermissionActionFromJSON(json['action']),
|
||||
'effect': json['effect'] == null ? undefined : PermissionEffectFromJSON(json['effect']),
|
||||
};
|
||||
}
|
||||
|
||||
export function UserPermissionOverrideResponseToJSON(json: any): UserPermissionOverrideResponse {
|
||||
return UserPermissionOverrideResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UserPermissionOverrideResponseToJSONTyped(value?: UserPermissionOverrideResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'module': ModuleTypeToJSON(value['module']),
|
||||
'action': PermissionActionToJSON(value['action']),
|
||||
'effect': PermissionEffectToJSON(value['effect']),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 UserResponse
|
||||
*/
|
||||
export interface UserResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserResponse
|
||||
*/
|
||||
username?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserResponse
|
||||
*/
|
||||
employeeId?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserResponse
|
||||
*/
|
||||
roleName?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof UserResponse
|
||||
*/
|
||||
isActive?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof UserResponse
|
||||
*/
|
||||
mustChangePassword?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UserResponse interface.
|
||||
*/
|
||||
export function instanceOfUserResponse(value: object): value is UserResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function UserResponseFromJSON(json: any): UserResponse {
|
||||
return UserResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'username': json['username'] == null ? undefined : json['username'],
|
||||
'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
|
||||
'roleName': json['roleName'] == null ? undefined : json['roleName'],
|
||||
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
||||
'mustChangePassword': json['mustChangePassword'] == null ? undefined : json['mustChangePassword'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UserResponseToJSON(json: any): UserResponse {
|
||||
return UserResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UserResponseToJSONTyped(value?: UserResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'username': value['username'],
|
||||
'employeeId': value['employeeId'],
|
||||
'roleName': value['roleName'],
|
||||
'isActive': value['isActive'],
|
||||
'mustChangePassword': value['mustChangePassword'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 ValueListItemResponse
|
||||
*/
|
||||
export interface ValueListItemResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ValueListItemResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ValueListItemResponse
|
||||
*/
|
||||
value?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ValueListItemResponse
|
||||
*/
|
||||
sortOrder?: number;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ValueListItemResponse
|
||||
*/
|
||||
isDefault?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ValueListItemResponse
|
||||
*/
|
||||
isInitial?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ValueListItemResponse
|
||||
*/
|
||||
isTerminal?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ValueListItemResponse interface.
|
||||
*/
|
||||
export function instanceOfValueListItemResponse(value: object): value is ValueListItemResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ValueListItemResponseFromJSON(json: any): ValueListItemResponse {
|
||||
return ValueListItemResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ValueListItemResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueListItemResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'value': json['value'] == null ? undefined : json['value'],
|
||||
'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
|
||||
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
||||
'isInitial': json['isInitial'] == null ? undefined : json['isInitial'],
|
||||
'isTerminal': json['isTerminal'] == null ? undefined : json['isTerminal'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ValueListItemResponseToJSON(json: any): ValueListItemResponse {
|
||||
return ValueListItemResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ValueListItemResponseToJSONTyped(value?: ValueListItemResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'value': value['value'],
|
||||
'sortOrder': value['sortOrder'],
|
||||
'isDefault': value['isDefault'],
|
||||
'isInitial': value['isInitial'],
|
||||
'isTerminal': value['isTerminal'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 ValueListResponse
|
||||
*/
|
||||
export interface ValueListResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ValueListResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ValueListResponse
|
||||
*/
|
||||
key?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ValueListResponse
|
||||
*/
|
||||
displayName?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ValueListResponse interface.
|
||||
*/
|
||||
export function instanceOfValueListResponse(value: object): value is ValueListResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ValueListResponseFromJSON(json: any): ValueListResponse {
|
||||
return ValueListResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ValueListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueListResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'key': json['key'] == null ? undefined : json['key'],
|
||||
'displayName': json['displayName'] == null ? undefined : json['displayName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ValueListResponseToJSON(json: any): ValueListResponse {
|
||||
return ValueListResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ValueListResponseToJSONTyped(value?: ValueListResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'key': value['key'],
|
||||
'displayName': value['displayName'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 ValueListTransitionRequest
|
||||
*/
|
||||
export interface ValueListTransitionRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ValueListTransitionRequest
|
||||
*/
|
||||
fromItemId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ValueListTransitionRequest
|
||||
*/
|
||||
toItemId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ValueListTransitionRequest interface.
|
||||
*/
|
||||
export function instanceOfValueListTransitionRequest(value: object): value is ValueListTransitionRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ValueListTransitionRequestFromJSON(json: any): ValueListTransitionRequest {
|
||||
return ValueListTransitionRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ValueListTransitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueListTransitionRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'fromItemId': json['fromItemId'] == null ? undefined : json['fromItemId'],
|
||||
'toItemId': json['toItemId'] == null ? undefined : json['toItemId'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ValueListTransitionRequestToJSON(json: any): ValueListTransitionRequest {
|
||||
return ValueListTransitionRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ValueListTransitionRequestToJSONTyped(value?: ValueListTransitionRequest | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'fromItemId': value['fromItemId'],
|
||||
'toItemId': value['toItemId'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 ValueListTransitionResponse
|
||||
*/
|
||||
export interface ValueListTransitionResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ValueListTransitionResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ValueListTransitionResponse
|
||||
*/
|
||||
fromItemId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ValueListTransitionResponse
|
||||
*/
|
||||
toItemId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ValueListTransitionResponse interface.
|
||||
*/
|
||||
export function instanceOfValueListTransitionResponse(value: object): value is ValueListTransitionResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ValueListTransitionResponseFromJSON(json: any): ValueListTransitionResponse {
|
||||
return ValueListTransitionResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ValueListTransitionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueListTransitionResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'fromItemId': json['fromItemId'] == null ? undefined : json['fromItemId'],
|
||||
'toItemId': json['toItemId'] == null ? undefined : json['toItemId'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ValueListTransitionResponseToJSON(json: any): ValueListTransitionResponse {
|
||||
return ValueListTransitionResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ValueListTransitionResponseToJSONTyped(value?: ValueListTransitionResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'fromItemId': value['fromItemId'],
|
||||
'toItemId': value['toItemId'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 ValueListUsageResponse
|
||||
*/
|
||||
export interface ValueListUsageResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ValueListUsageResponse
|
||||
*/
|
||||
entityType?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ValueListUsageResponse
|
||||
*/
|
||||
entityId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ValueListUsageResponse
|
||||
*/
|
||||
displayLabel?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ValueListUsageResponse interface.
|
||||
*/
|
||||
export function instanceOfValueListUsageResponse(value: object): value is ValueListUsageResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ValueListUsageResponseFromJSON(json: any): ValueListUsageResponse {
|
||||
return ValueListUsageResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ValueListUsageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValueListUsageResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'entityType': json['entityType'] == null ? undefined : json['entityType'],
|
||||
'entityId': json['entityId'] == null ? undefined : json['entityId'],
|
||||
'displayLabel': json['displayLabel'] == null ? undefined : json['displayLabel'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ValueListUsageResponseToJSON(json: any): ValueListUsageResponse {
|
||||
return ValueListUsageResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ValueListUsageResponseToJSONTyped(value?: ValueListUsageResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'entityType': value['entityType'],
|
||||
'entityId': value['entityId'],
|
||||
'displayLabel': value['displayLabel'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export * from './AddUserPermissionOverrideRequest';
|
||||
export * from './AuditEventCategory';
|
||||
export * from './AuditLogEntryResponse';
|
||||
export * from './AuditLogEntryResponsePagedResponse';
|
||||
export * from './ChangePasswordRequest';
|
||||
export * from './ContractResponse';
|
||||
export * from './ContractResponsePagedResponse';
|
||||
export * from './CreateContractRequest';
|
||||
export * from './CreateEmployeeRequest';
|
||||
export * from './CreateFacilityContactRequest';
|
||||
export * from './CreateFacilityRequest';
|
||||
export * from './CreateOrderRequest';
|
||||
export * from './CreateRoleRequest';
|
||||
export * from './CreateUserRequest';
|
||||
export * from './CreateValueListItemRequest';
|
||||
export * from './EmployeeResponse';
|
||||
export * from './EmployeeResponsePagedResponse';
|
||||
export * from './FacilityContactResponse';
|
||||
export * from './FacilityResponse';
|
||||
export * from './FacilityResponsePagedResponse';
|
||||
export * from './ForgotPasswordRequestRequest';
|
||||
export * from './ForgotPasswordRequestResponse';
|
||||
export * from './ForgotPasswordResetRequest';
|
||||
export * from './ForgotPasswordVerifyRequest';
|
||||
export * from './ForgotPasswordVerifyResponse';
|
||||
export * from './LoginRequest';
|
||||
export * from './LoginResponse';
|
||||
export * from './LogoutRequest';
|
||||
export * from './MeResponse';
|
||||
export * from './ModuleType';
|
||||
export * from './OrderResponse';
|
||||
export * from './OrderResponsePagedResponse';
|
||||
export * from './PasswordPolicyResponse';
|
||||
export * from './PasswordResetTemplateResponse';
|
||||
export * from './PermissionAction';
|
||||
export * from './PermissionDto';
|
||||
export * from './PermissionEffect';
|
||||
export * from './RefreshRequest';
|
||||
export * from './ResetUserPasswordRequest';
|
||||
export * from './RolePermissionsResponse';
|
||||
export * from './RoleResponse';
|
||||
export * from './SendTestEmailRequest';
|
||||
export * from './SessionResponse';
|
||||
export * from './UpdateContractRequest';
|
||||
export * from './UpdateEmployeeRequest';
|
||||
export * from './UpdateFacilityContactRequest';
|
||||
export * from './UpdateFacilityRequest';
|
||||
export * from './UpdateOrderRequest';
|
||||
export * from './UpdateRolePermissionsRequest';
|
||||
export * from './UpdateUserRequest';
|
||||
export * from './UpdateValueListItemRequest';
|
||||
export * from './UserPermissionOverrideResponse';
|
||||
export * from './UserResponse';
|
||||
export * from './ValueListItemResponse';
|
||||
export * from './ValueListResponse';
|
||||
export * from './ValueListTransitionRequest';
|
||||
export * from './ValueListTransitionResponse';
|
||||
export * from './ValueListUsageResponse';
|
||||
@@ -0,0 +1,432 @@
|
||||
/* 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 const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
||||
|
||||
export interface ConfigurationParameters {
|
||||
basePath?: string; // override base path
|
||||
fetchApi?: FetchAPI; // override for fetch implementation
|
||||
middleware?: Middleware[]; // middleware to apply before/after fetch requests
|
||||
queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings
|
||||
username?: string; // parameter for basic security
|
||||
password?: string; // parameter for basic security
|
||||
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>); // parameter for apiKey security
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security
|
||||
headers?: HTTPHeaders; //header params we want to use on every request
|
||||
credentials?: RequestCredentials; //value for the credentials param we want to use on each request
|
||||
}
|
||||
|
||||
export class Configuration {
|
||||
constructor(private configuration: ConfigurationParameters = {}) {}
|
||||
|
||||
set config(configuration: Configuration) {
|
||||
this.configuration = configuration;
|
||||
}
|
||||
|
||||
get basePath(): string {
|
||||
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
||||
}
|
||||
|
||||
get fetchApi(): FetchAPI | undefined {
|
||||
return this.configuration.fetchApi;
|
||||
}
|
||||
|
||||
get middleware(): Middleware[] {
|
||||
return this.configuration.middleware || [];
|
||||
}
|
||||
|
||||
get queryParamsStringify(): (params: HTTPQuery) => string {
|
||||
return this.configuration.queryParamsStringify || querystring;
|
||||
}
|
||||
|
||||
get username(): string | undefined {
|
||||
return this.configuration.username;
|
||||
}
|
||||
|
||||
get password(): string | undefined {
|
||||
return this.configuration.password;
|
||||
}
|
||||
|
||||
get apiKey(): ((name: string) => string | Promise<string>) | undefined {
|
||||
const apiKey = this.configuration.apiKey;
|
||||
if (apiKey) {
|
||||
return typeof apiKey === 'function' ? apiKey : () => apiKey;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined {
|
||||
const accessToken = this.configuration.accessToken;
|
||||
if (accessToken) {
|
||||
return typeof accessToken === 'function' ? accessToken : async () => accessToken;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
get headers(): HTTPHeaders | undefined {
|
||||
return this.configuration.headers;
|
||||
}
|
||||
|
||||
get credentials(): RequestCredentials | undefined {
|
||||
return this.configuration.credentials;
|
||||
}
|
||||
}
|
||||
|
||||
export const DefaultConfig = new Configuration();
|
||||
|
||||
/**
|
||||
* This is the base class for all generated API classes.
|
||||
*/
|
||||
export class BaseAPI {
|
||||
|
||||
private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
||||
private middleware: Middleware[];
|
||||
|
||||
constructor(protected configuration = DefaultConfig) {
|
||||
this.middleware = configuration.middleware;
|
||||
}
|
||||
|
||||
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {
|
||||
const next = this.clone<T>();
|
||||
next.middleware = next.middleware.concat(...middlewares);
|
||||
return next;
|
||||
}
|
||||
|
||||
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>) {
|
||||
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
||||
return this.withMiddleware<T>(...middlewares);
|
||||
}
|
||||
|
||||
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>) {
|
||||
const middlewares = postMiddlewares.map((post) => ({ post }));
|
||||
return this.withMiddleware<T>(...middlewares);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the given MIME is a JSON MIME.
|
||||
* JSON MIME examples:
|
||||
* application/json
|
||||
* application/json; charset=UTF8
|
||||
* APPLICATION/JSON
|
||||
* application/vnd.company+json
|
||||
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
||||
* @return True if the given MIME is JSON, false otherwise.
|
||||
*/
|
||||
protected isJsonMime(mime: string | null | undefined): boolean {
|
||||
if (!mime) {
|
||||
return false;
|
||||
}
|
||||
return BaseAPI.jsonRegex.test(mime);
|
||||
}
|
||||
|
||||
protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response> {
|
||||
const { url, init } = await this.createFetchParams(context, initOverrides);
|
||||
const response = await this.fetchApi(url, init);
|
||||
if (response && (response.status >= 200 && response.status < 300)) {
|
||||
return response;
|
||||
}
|
||||
throw new ResponseError(response, 'Response returned an error code');
|
||||
}
|
||||
|
||||
private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) {
|
||||
let url = this.configuration.basePath + context.path;
|
||||
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
||||
// only add the querystring to the URL if there are query parameters.
|
||||
// this is done to avoid urls ending with a "?" character which buggy webservers
|
||||
// do not handle correctly sometimes.
|
||||
url += '?' + this.configuration.queryParamsStringify(context.query);
|
||||
}
|
||||
|
||||
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
||||
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
|
||||
|
||||
const initOverrideFn =
|
||||
typeof initOverrides === "function"
|
||||
? initOverrides
|
||||
: async () => initOverrides;
|
||||
|
||||
const initParams = {
|
||||
method: context.method,
|
||||
headers,
|
||||
body: context.body,
|
||||
credentials: this.configuration.credentials,
|
||||
};
|
||||
|
||||
const overriddenInit: RequestInit = {
|
||||
...initParams,
|
||||
...(await initOverrideFn({
|
||||
init: initParams,
|
||||
context,
|
||||
}))
|
||||
};
|
||||
|
||||
let body: any;
|
||||
if (isFormData(overriddenInit.body)
|
||||
|| (overriddenInit.body instanceof URLSearchParams)
|
||||
|| isBlob(overriddenInit.body)) {
|
||||
body = overriddenInit.body;
|
||||
} else if (this.isJsonMime(headers['Content-Type'])) {
|
||||
body = JSON.stringify(overriddenInit.body);
|
||||
} else {
|
||||
body = overriddenInit.body;
|
||||
}
|
||||
|
||||
const init: RequestInit = {
|
||||
...overriddenInit,
|
||||
body
|
||||
};
|
||||
|
||||
return { url, init };
|
||||
}
|
||||
|
||||
private fetchApi = async (url: string, init: RequestInit) => {
|
||||
let fetchParams = { url, init };
|
||||
for (const middleware of this.middleware) {
|
||||
if (middleware.pre) {
|
||||
fetchParams = await middleware.pre({
|
||||
fetch: this.fetchApi,
|
||||
...fetchParams,
|
||||
}) || fetchParams;
|
||||
}
|
||||
}
|
||||
let response: Response | undefined = undefined;
|
||||
try {
|
||||
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
||||
} catch (e) {
|
||||
for (const middleware of this.middleware) {
|
||||
if (middleware.onError) {
|
||||
response = await middleware.onError({
|
||||
fetch: this.fetchApi,
|
||||
url: fetchParams.url,
|
||||
init: fetchParams.init,
|
||||
error: e,
|
||||
response: response ? response.clone() : undefined,
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
if (response === undefined) {
|
||||
if (e instanceof Error) {
|
||||
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const middleware of this.middleware) {
|
||||
if (middleware.post) {
|
||||
response = await middleware.post({
|
||||
fetch: this.fetchApi,
|
||||
url: fetchParams.url,
|
||||
init: fetchParams.init,
|
||||
response: response.clone(),
|
||||
}) || response;
|
||||
}
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a shallow clone of `this` by constructing a new instance
|
||||
* and then shallow cloning data members.
|
||||
*/
|
||||
private clone<T extends BaseAPI>(this: T): T {
|
||||
const constructor = this.constructor as any;
|
||||
const next = new constructor(this.configuration);
|
||||
next.middleware = this.middleware.slice();
|
||||
return next;
|
||||
}
|
||||
};
|
||||
|
||||
function isBlob(value: any): value is Blob {
|
||||
return typeof Blob !== 'undefined' && value instanceof Blob;
|
||||
}
|
||||
|
||||
function isFormData(value: any): value is FormData {
|
||||
return typeof FormData !== "undefined" && value instanceof FormData;
|
||||
}
|
||||
|
||||
export class ResponseError extends Error {
|
||||
override name: "ResponseError" = "ResponseError";
|
||||
constructor(public response: Response, msg?: string) {
|
||||
super(msg);
|
||||
}
|
||||
}
|
||||
|
||||
export class FetchError extends Error {
|
||||
override name: "FetchError" = "FetchError";
|
||||
constructor(public cause: Error, msg?: string) {
|
||||
super(msg);
|
||||
}
|
||||
}
|
||||
|
||||
export class RequiredError extends Error {
|
||||
override name: "RequiredError" = "RequiredError";
|
||||
constructor(public field: string, msg?: string) {
|
||||
super(msg);
|
||||
}
|
||||
}
|
||||
|
||||
export const COLLECTION_FORMATS = {
|
||||
csv: ",",
|
||||
ssv: " ",
|
||||
tsv: "\t",
|
||||
pipes: "|",
|
||||
};
|
||||
|
||||
export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
||||
|
||||
export type Json = any;
|
||||
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
||||
export type HTTPHeaders = { [key: string]: string };
|
||||
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
|
||||
export type HTTPBody = Json | FormData | URLSearchParams;
|
||||
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
|
||||
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
||||
|
||||
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
|
||||
|
||||
export interface FetchParams {
|
||||
url: string;
|
||||
init: RequestInit;
|
||||
}
|
||||
|
||||
export interface RequestOpts {
|
||||
path: string;
|
||||
method: HTTPMethod;
|
||||
headers: HTTPHeaders;
|
||||
query?: HTTPQuery;
|
||||
body?: HTTPBody;
|
||||
}
|
||||
|
||||
export function querystring(params: HTTPQuery, prefix: string = ''): string {
|
||||
return Object.keys(params)
|
||||
.map(key => querystringSingleKey(key, params[key], prefix))
|
||||
.filter(part => part.length > 0)
|
||||
.join('&');
|
||||
}
|
||||
|
||||
function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery, keyPrefix: string = ''): string {
|
||||
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
||||
if (value instanceof Array) {
|
||||
const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
|
||||
.join(`&${encodeURIComponent(fullKey)}=`);
|
||||
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
||||
}
|
||||
if (value instanceof Set) {
|
||||
const valueAsArray = Array.from(value);
|
||||
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
||||
}
|
||||
if (value instanceof Date) {
|
||||
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
||||
}
|
||||
if (value instanceof Object) {
|
||||
return querystring(value as HTTPQuery, fullKey);
|
||||
}
|
||||
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
||||
}
|
||||
|
||||
export function exists(json: any, key: string) {
|
||||
const value = json[key];
|
||||
return value !== null && value !== undefined;
|
||||
}
|
||||
|
||||
export function mapValues(data: any, fn: (item: any) => any) {
|
||||
const result: { [key: string]: any } = {};
|
||||
for (const key of Object.keys(data)) {
|
||||
result[key] = fn(data[key]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
export function canConsumeForm(consumes: Consume[]): boolean {
|
||||
for (const consume of consumes) {
|
||||
if ('multipart/form-data' === consume.contentType) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export interface Consume {
|
||||
contentType: string;
|
||||
}
|
||||
|
||||
export interface RequestContext {
|
||||
fetch: FetchAPI;
|
||||
url: string;
|
||||
init: RequestInit;
|
||||
}
|
||||
|
||||
export interface ResponseContext {
|
||||
fetch: FetchAPI;
|
||||
url: string;
|
||||
init: RequestInit;
|
||||
response: Response;
|
||||
}
|
||||
|
||||
export interface ErrorContext {
|
||||
fetch: FetchAPI;
|
||||
url: string;
|
||||
init: RequestInit;
|
||||
error: unknown;
|
||||
response?: Response;
|
||||
}
|
||||
|
||||
export interface Middleware {
|
||||
pre?(context: RequestContext): Promise<FetchParams | void>;
|
||||
post?(context: ResponseContext): Promise<Response | void>;
|
||||
onError?(context: ErrorContext): Promise<Response | void>;
|
||||
}
|
||||
|
||||
export interface ApiResponse<T> {
|
||||
raw: Response;
|
||||
value(): Promise<T>;
|
||||
}
|
||||
|
||||
export interface ResponseTransformer<T> {
|
||||
(json: any): T;
|
||||
}
|
||||
|
||||
export class JSONApiResponse<T> {
|
||||
constructor(public raw: Response, private transformer: ResponseTransformer<T> = (jsonValue: any) => jsonValue) {}
|
||||
|
||||
async value(): Promise<T> {
|
||||
return this.transformer(await this.raw.json());
|
||||
}
|
||||
}
|
||||
|
||||
export class VoidApiResponse {
|
||||
constructor(public raw: Response) {}
|
||||
|
||||
async value(): Promise<void> {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
export class BlobApiResponse {
|
||||
constructor(public raw: Response) {}
|
||||
|
||||
async value(): Promise<Blob> {
|
||||
return await this.raw.blob();
|
||||
};
|
||||
}
|
||||
|
||||
export class TextApiResponse {
|
||||
constructor(public raw: Response) {}
|
||||
|
||||
async value(): Promise<string> {
|
||||
return await this.raw.text();
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "esnext",
|
||||
"outDir": "dist/esm"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"outDir": "dist",
|
||||
"typeRoots": [
|
||||
"node_modules/@types"
|
||||
]
|
||||
},
|
||||
"exclude": [
|
||||
"dist",
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user