diff --git a/apps/roi-cacl-2-admin/.dockerignore b/apps/roi-cacl-2-admin/.dockerignore
new file mode 100644
index 0000000..1194b4f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/.dockerignore
@@ -0,0 +1,7 @@
+.dockerignore
+docker-compose.yml
+Dockerfile
+build/
+node_modules
+.env
+.gitignore
diff --git a/apps/roi-cacl-2-admin/.env b/apps/roi-cacl-2-admin/.env
new file mode 100644
index 0000000..4eef91c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/.env
@@ -0,0 +1,2 @@
+PORT=3001
+REACT_APP_SERVER_URL=http://localhost:3000
\ No newline at end of file
diff --git a/apps/roi-cacl-2-admin/.gitignore b/apps/roi-cacl-2-admin/.gitignore
new file mode 100644
index 0000000..590b2e0
--- /dev/null
+++ b/apps/roi-cacl-2-admin/.gitignore
@@ -0,0 +1,23 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+
+# testing
+/coverage
+
+# production
+/build
+
+# misc
+.DS_Store
+.env.local
+.env.development.local
+.env.test.local
+.env.production.local
+
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
diff --git a/apps/roi-cacl-2-admin/Dockerfile b/apps/roi-cacl-2-admin/Dockerfile
new file mode 100644
index 0000000..0911e21
--- /dev/null
+++ b/apps/roi-cacl-2-admin/Dockerfile
@@ -0,0 +1,51 @@
+# multi-stage: base (build)
+FROM node:18.13.0-slim AS base
+
+# instantiate environment variable
+ARG REACT_APP_SERVER_URL=http://localhost:3000
+
+# set the environment variable that points to the server
+ENV REACT_APP_SERVER_URL=$REACT_APP_SERVER_URL
+
+# create directory where the application will be built
+WORKDIR /app
+
+# copy over the dependency manifests, both the package.json
+# and the package-lock.json are copied over
+COPY package*.json ./
+
+# installs packages and their dependencies
+RUN npm install
+
+# copy over the code base
+COPY . .
+
+# create the bundle of the application
+RUN npm run build
+
+# multi-stage: production (runtime)
+FROM nginx:1.22-alpine AS production
+
+# copy over the bundled code from the build stage
+COPY --from=base /app/build /usr/share/nginx/html
+COPY --from=base /app/configuration/nginx.conf /etc/nginx/conf.d/default.conf
+
+# create a new process indication file
+RUN touch /var/run/nginx.pid
+
+# change ownership of nginx related directories and files
+RUN chown -R nginx:nginx /var/run/nginx.pid \
+ /usr/share/nginx/html \
+ /var/cache/nginx \
+ /var/log/nginx \
+ /etc/nginx/conf.d
+
+# set user to the created non-privileged user
+USER nginx
+
+# expose a specific port on the docker container
+ENV PORT=3001
+EXPOSE ${PORT}
+
+# start the server using the previously build application
+ENTRYPOINT [ "nginx", "-g", "daemon off;" ]
diff --git a/apps/roi-cacl-2-admin/README.md b/apps/roi-cacl-2-admin/README.md
new file mode 100644
index 0000000..cc7c387
--- /dev/null
+++ b/apps/roi-cacl-2-admin/README.md
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+# Introduction
+
+This service was generated with Amplication. It serves as the client-side for the generated server component. The client-side consist of a React application with ready-made forms for creating and editing the different data models of the application. It is pre-conffigured to work with the server and comes with the boilerplate and foundation for the client - i.e., routing, navigation, authentication, permissions, menu, breadcrumbs, error handling and much more. Additional information about the admin component and the architecture around it, can be found on the [documentation](https://docs.amplication.com/guides/getting-started) site. This side of the generated project was bootstrapped with [create-react-app](https://github.com/facebook/create-react-app) and built with [react-admin](https://marmelab.com/react-admin/).
+
+
+
+
+
+
+# Getting started
+
+## Step 1: Configuration
+
+Configuration for the client component can be provided through the use of environment variables. These can be passed to the application via the use of the `.env` file in the base directory of the generated service. Below a table can be found which show the different variables that can be passed. These values are provided default values after generation, change them to the desired values.
+
+| Variable | Description | Value |
+| -------------------- | ------------------------------------------------ | ------------------------------ |
+| PORT | the port on which to run the client | 3001 |
+| REACT_APP_SERVER_URL | the url on which the server component is running | http://localhost:[server-port] |
+
+> **Note**
+> Amplication generates default values and stores them under the .env file. It is advised to use some form of secrets manager/vault solution when using in production.
+
+
+## Step 2: Scripts
+
+After configuration of the client the next step would be to run the application. Before running the client side of the component, make sure that the different pre-requisites are met - i.e., npm, docker. Make sure that the server-side of the application is running.
+
+```sh
+# installation of the dependencies
+$ npm install
+
+# starts the application in development mode - available by default under http://localhost:3001 with a pre-configured user with the username "admin" and password "admin"
+$ npm run start
+
+# builds the application in production mode - available under 'build'
+$ npm run build
+
+# removes the single build dependency from the project
+$ npm run eject
+```
diff --git a/apps/roi-cacl-2-admin/configuration/nginx.conf b/apps/roi-cacl-2-admin/configuration/nginx.conf
new file mode 100644
index 0000000..c907b5c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/configuration/nginx.conf
@@ -0,0 +1,11 @@
+server_tokens off;
+
+server {
+ listen 3001;
+ server_name localhost;
+ location / {
+ root /usr/share/nginx/html;
+ index index.html index.htm;
+ try_files $uri /index.html;
+ }
+}
\ No newline at end of file
diff --git a/apps/roi-cacl-2-admin/package.json b/apps/roi-cacl-2-admin/package.json
new file mode 100644
index 0000000..8babaa6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/package.json
@@ -0,0 +1,60 @@
+{
+ "name": "@roi-cacl-2/admin",
+ "private": true,
+ "dependencies": {
+ "@apollo/client": "3.6.9",
+ "@material-ui/core": "4.12.4",
+ "graphql": "15.6.1",
+ "lodash": "4.17.21",
+ "pluralize": "8.0.0",
+ "ra-data-graphql-amplication": "0.0.14",
+ "react": "16.14.0",
+ "react-admin": "3.19.12",
+ "react-dom": "16.14.0",
+ "react-scripts": "5.0.0",
+ "sass": "^1.39.0",
+ "web-vitals": "1.1.2"
+ },
+ "overrides": {
+ "react-scripts": {
+ "@svgr/webpack": "6.5.1"
+ }
+ },
+ "scripts": {
+ "start": "react-scripts start",
+ "build": "react-scripts build",
+ "test": "react-scripts test",
+ "eject": "react-scripts eject",
+ "package:container": "docker build ."
+ },
+ "eslintConfig": {
+ "extends": [
+ "react-app",
+ "react-app/jest"
+ ]
+ },
+ "browserslist": {
+ "production": [
+ ">0.2%",
+ "not dead",
+ "not op_mini all"
+ ],
+ "development": [
+ "last 1 chrome version",
+ "last 1 firefox version",
+ "last 1 safari version"
+ ]
+ },
+ "devDependencies": {
+ "@testing-library/jest-dom": "5.14.1",
+ "@testing-library/react": "11.2.7",
+ "@testing-library/user-event": "13.2.0",
+ "@types/jest": "26.0.16",
+ "@types/lodash": "4.14.178",
+ "@types/node": "12.20.16",
+ "@types/react": "16.14.11",
+ "@types/react-dom": "17.0.0",
+ "type-fest": "0.13.1",
+ "typescript": "4.3.5"
+ }
+}
\ No newline at end of file
diff --git a/apps/roi-cacl-2-admin/public/favicon.ico b/apps/roi-cacl-2-admin/public/favicon.ico
new file mode 100644
index 0000000..fcbdcf2
Binary files /dev/null and b/apps/roi-cacl-2-admin/public/favicon.ico differ
diff --git a/apps/roi-cacl-2-admin/public/index.html b/apps/roi-cacl-2-admin/public/index.html
new file mode 100644
index 0000000..9ea981c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/public/index.html
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ROICacl-2
+
+
+ You need to enable JavaScript to run this app.
+
+
+
+
diff --git a/apps/roi-cacl-2-admin/public/logo192.png b/apps/roi-cacl-2-admin/public/logo192.png
new file mode 100644
index 0000000..1918ff2
Binary files /dev/null and b/apps/roi-cacl-2-admin/public/logo192.png differ
diff --git a/apps/roi-cacl-2-admin/public/logo512.png b/apps/roi-cacl-2-admin/public/logo512.png
new file mode 100644
index 0000000..7e7dc74
Binary files /dev/null and b/apps/roi-cacl-2-admin/public/logo512.png differ
diff --git a/apps/roi-cacl-2-admin/public/manifest.json b/apps/roi-cacl-2-admin/public/manifest.json
new file mode 100644
index 0000000..5778bc8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/public/manifest.json
@@ -0,0 +1,25 @@
+{
+ "short_name": "ROICacl-2",
+ "name": "ROICacl-2",
+ "icons": [
+ {
+ "src": "favicon.ico",
+ "sizes": "64x64 32x32 24x24 16x16",
+ "type": "image/x-icon"
+ },
+ {
+ "src": "logo192.png",
+ "type": "image/png",
+ "sizes": "192x192"
+ },
+ {
+ "src": "logo512.png",
+ "type": "image/png",
+ "sizes": "512x512"
+ }
+ ],
+ "start_url": ".",
+ "display": "standalone",
+ "theme_color": "#000000",
+ "background_color": "#ffffff"
+}
\ No newline at end of file
diff --git a/apps/roi-cacl-2-admin/public/robots.txt b/apps/roi-cacl-2-admin/public/robots.txt
new file mode 100644
index 0000000..e9e57dc
--- /dev/null
+++ b/apps/roi-cacl-2-admin/public/robots.txt
@@ -0,0 +1,3 @@
+# https://www.robotstxt.org/robotstxt.html
+User-agent: *
+Disallow:
diff --git a/apps/roi-cacl-2-admin/src/App.scss b/apps/roi-cacl-2-admin/src/App.scss
new file mode 100644
index 0000000..4c1cbb0
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/App.scss
@@ -0,0 +1,59 @@
+// .App {
+// .MuiAppBar-colorSecondary {
+// background-color: black;
+
+// .RaAppBar-menuButton-13 {
+// background-color: yellow;
+// }
+// }
+
+// .MuiDrawer-paper {
+// background-color: red;
+
+// .MuiListItemIcon-root {
+// color: white;
+// }
+// }
+
+// .MuiButton-textPrimary {
+// background-color: purple;
+// margin: 0 0.5rem;
+// color: white;
+// padding: 0.5rem 1rem;
+
+// &:hover {
+// background-color: blue;
+// }
+// }
+
+// .MuiTableRow-head {
+// .MuiTableCell-head {
+// background-color: black;
+// color: white;
+// }
+
+// .MuiTableSortLabel-root {
+// &:hover {
+// color: red;
+
+// .MuiTableSortLabel-icon {
+// color: red !important;
+// }
+// }
+// .MuiTableSortLabel-icon {
+// color: white !important;
+// }
+// }
+// .MuiTableSortLabel-active {
+// color: green;
+
+// .MuiTableSortLabel-icon {
+// color: green !important;
+// }
+// }
+// }
+
+// .MuiFormLabel-root {
+// color: magenta;
+// }
+// }
diff --git a/apps/roi-cacl-2-admin/src/App.tsx b/apps/roi-cacl-2-admin/src/App.tsx
new file mode 100644
index 0000000..0be6642
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/App.tsx
@@ -0,0 +1,369 @@
+import React, { useEffect, useState } from "react";
+import { Admin, DataProvider, Resource } from "react-admin";
+import buildGraphQLProvider from "./data-provider/graphqlDataProvider";
+import { theme } from "./theme/theme";
+import Login from "./Login";
+import "./App.scss";
+import Dashboard from "./pages/Dashboard";
+import { EventTypeList } from "./eventType/EventTypeList";
+import { EventTypeCreate } from "./eventType/EventTypeCreate";
+import { EventTypeEdit } from "./eventType/EventTypeEdit";
+import { EventTypeShow } from "./eventType/EventTypeShow";
+import { CredentialList } from "./credential/CredentialList";
+import { CredentialCreate } from "./credential/CredentialCreate";
+import { CredentialEdit } from "./credential/CredentialEdit";
+import { CredentialShow } from "./credential/CredentialShow";
+import { DestinationCalendarList } from "./destinationCalendar/DestinationCalendarList";
+import { DestinationCalendarCreate } from "./destinationCalendar/DestinationCalendarCreate";
+import { DestinationCalendarEdit } from "./destinationCalendar/DestinationCalendarEdit";
+import { DestinationCalendarShow } from "./destinationCalendar/DestinationCalendarShow";
+import { UserList } from "./user/UserList";
+import { UserCreate } from "./user/UserCreate";
+import { UserEdit } from "./user/UserEdit";
+import { UserShow } from "./user/UserShow";
+import { TeamList } from "./team/TeamList";
+import { TeamCreate } from "./team/TeamCreate";
+import { TeamEdit } from "./team/TeamEdit";
+import { TeamShow } from "./team/TeamShow";
+import { MembershipList } from "./membership/MembershipList";
+import { MembershipCreate } from "./membership/MembershipCreate";
+import { MembershipEdit } from "./membership/MembershipEdit";
+import { MembershipShow } from "./membership/MembershipShow";
+import { VerificationTokenList } from "./verificationToken/VerificationTokenList";
+import { VerificationTokenCreate } from "./verificationToken/VerificationTokenCreate";
+import { VerificationTokenEdit } from "./verificationToken/VerificationTokenEdit";
+import { VerificationTokenShow } from "./verificationToken/VerificationTokenShow";
+import { BookingReferenceList } from "./bookingReference/BookingReferenceList";
+import { BookingReferenceCreate } from "./bookingReference/BookingReferenceCreate";
+import { BookingReferenceEdit } from "./bookingReference/BookingReferenceEdit";
+import { BookingReferenceShow } from "./bookingReference/BookingReferenceShow";
+import { AttendeeList } from "./attendee/AttendeeList";
+import { AttendeeCreate } from "./attendee/AttendeeCreate";
+import { AttendeeEdit } from "./attendee/AttendeeEdit";
+import { AttendeeShow } from "./attendee/AttendeeShow";
+import { DailyEventReferenceList } from "./dailyEventReference/DailyEventReferenceList";
+import { DailyEventReferenceCreate } from "./dailyEventReference/DailyEventReferenceCreate";
+import { DailyEventReferenceEdit } from "./dailyEventReference/DailyEventReferenceEdit";
+import { DailyEventReferenceShow } from "./dailyEventReference/DailyEventReferenceShow";
+import { BookingList } from "./booking/BookingList";
+import { BookingCreate } from "./booking/BookingCreate";
+import { BookingEdit } from "./booking/BookingEdit";
+import { BookingShow } from "./booking/BookingShow";
+import { ScheduleList } from "./schedule/ScheduleList";
+import { ScheduleCreate } from "./schedule/ScheduleCreate";
+import { ScheduleEdit } from "./schedule/ScheduleEdit";
+import { ScheduleShow } from "./schedule/ScheduleShow";
+import { AvailabilityList } from "./availability/AvailabilityList";
+import { AvailabilityCreate } from "./availability/AvailabilityCreate";
+import { AvailabilityEdit } from "./availability/AvailabilityEdit";
+import { AvailabilityShow } from "./availability/AvailabilityShow";
+import { SelectedCalendarList } from "./selectedCalendar/SelectedCalendarList";
+import { SelectedCalendarCreate } from "./selectedCalendar/SelectedCalendarCreate";
+import { SelectedCalendarEdit } from "./selectedCalendar/SelectedCalendarEdit";
+import { SelectedCalendarShow } from "./selectedCalendar/SelectedCalendarShow";
+import { EventTypeCustomInputList } from "./eventTypeCustomInput/EventTypeCustomInputList";
+import { EventTypeCustomInputCreate } from "./eventTypeCustomInput/EventTypeCustomInputCreate";
+import { EventTypeCustomInputEdit } from "./eventTypeCustomInput/EventTypeCustomInputEdit";
+import { EventTypeCustomInputShow } from "./eventTypeCustomInput/EventTypeCustomInputShow";
+import { ResetPasswordRequestList } from "./resetPasswordRequest/ResetPasswordRequestList";
+import { ResetPasswordRequestCreate } from "./resetPasswordRequest/ResetPasswordRequestCreate";
+import { ResetPasswordRequestEdit } from "./resetPasswordRequest/ResetPasswordRequestEdit";
+import { ResetPasswordRequestShow } from "./resetPasswordRequest/ResetPasswordRequestShow";
+import { ReminderMailList } from "./reminderMail/ReminderMailList";
+import { ReminderMailCreate } from "./reminderMail/ReminderMailCreate";
+import { ReminderMailEdit } from "./reminderMail/ReminderMailEdit";
+import { ReminderMailShow } from "./reminderMail/ReminderMailShow";
+import { PaymentList } from "./payment/PaymentList";
+import { PaymentCreate } from "./payment/PaymentCreate";
+import { PaymentEdit } from "./payment/PaymentEdit";
+import { PaymentShow } from "./payment/PaymentShow";
+import { WebhookList } from "./webhook/WebhookList";
+import { WebhookCreate } from "./webhook/WebhookCreate";
+import { WebhookEdit } from "./webhook/WebhookEdit";
+import { WebhookShow } from "./webhook/WebhookShow";
+import { ImpersonationList } from "./impersonation/ImpersonationList";
+import { ImpersonationCreate } from "./impersonation/ImpersonationCreate";
+import { ImpersonationEdit } from "./impersonation/ImpersonationEdit";
+import { ImpersonationShow } from "./impersonation/ImpersonationShow";
+import { ApiKeyList } from "./apiKey/ApiKeyList";
+import { ApiKeyCreate } from "./apiKey/ApiKeyCreate";
+import { ApiKeyEdit } from "./apiKey/ApiKeyEdit";
+import { ApiKeyShow } from "./apiKey/ApiKeyShow";
+import { HashedLinkList } from "./hashedLink/HashedLinkList";
+import { HashedLinkCreate } from "./hashedLink/HashedLinkCreate";
+import { HashedLinkEdit } from "./hashedLink/HashedLinkEdit";
+import { HashedLinkShow } from "./hashedLink/HashedLinkShow";
+import { AccountList } from "./account/AccountList";
+import { AccountCreate } from "./account/AccountCreate";
+import { AccountEdit } from "./account/AccountEdit";
+import { AccountShow } from "./account/AccountShow";
+import { SessionList } from "./session/SessionList";
+import { SessionCreate } from "./session/SessionCreate";
+import { SessionEdit } from "./session/SessionEdit";
+import { SessionShow } from "./session/SessionShow";
+import { AppModelList } from "./appModel/AppModelList";
+import { AppModelCreate } from "./appModel/AppModelCreate";
+import { AppModelEdit } from "./appModel/AppModelEdit";
+import { AppModelShow } from "./appModel/AppModelShow";
+import { FeedbackList } from "./feedback/FeedbackList";
+import { FeedbackCreate } from "./feedback/FeedbackCreate";
+import { FeedbackEdit } from "./feedback/FeedbackEdit";
+import { FeedbackShow } from "./feedback/FeedbackShow";
+import { WorkflowStepList } from "./workflowStep/WorkflowStepList";
+import { WorkflowStepCreate } from "./workflowStep/WorkflowStepCreate";
+import { WorkflowStepEdit } from "./workflowStep/WorkflowStepEdit";
+import { WorkflowStepShow } from "./workflowStep/WorkflowStepShow";
+import { WorkflowList } from "./workflow/WorkflowList";
+import { WorkflowCreate } from "./workflow/WorkflowCreate";
+import { WorkflowEdit } from "./workflow/WorkflowEdit";
+import { WorkflowShow } from "./workflow/WorkflowShow";
+import { WorkflowsOnEventTypeList } from "./workflowsOnEventType/WorkflowsOnEventTypeList";
+import { WorkflowsOnEventTypeCreate } from "./workflowsOnEventType/WorkflowsOnEventTypeCreate";
+import { WorkflowsOnEventTypeEdit } from "./workflowsOnEventType/WorkflowsOnEventTypeEdit";
+import { WorkflowsOnEventTypeShow } from "./workflowsOnEventType/WorkflowsOnEventTypeShow";
+import { WorkflowReminderList } from "./workflowReminder/WorkflowReminderList";
+import { WorkflowReminderCreate } from "./workflowReminder/WorkflowReminderCreate";
+import { WorkflowReminderEdit } from "./workflowReminder/WorkflowReminderEdit";
+import { WorkflowReminderShow } from "./workflowReminder/WorkflowReminderShow";
+import { jwtAuthProvider } from "./auth-provider/ra-auth-jwt";
+
+const App = (): React.ReactElement => {
+ const [dataProvider, setDataProvider] = useState(null);
+ useEffect(() => {
+ buildGraphQLProvider
+ .then((provider: any) => {
+ setDataProvider(() => provider);
+ })
+ .catch((error: any) => {
+ console.log(error);
+ });
+ }, []);
+ if (!dataProvider) {
+ return Loading
;
+ }
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
+
+export default App;
diff --git a/apps/roi-cacl-2-admin/src/Components/Pagination.tsx b/apps/roi-cacl-2-admin/src/Components/Pagination.tsx
new file mode 100644
index 0000000..2de2ebf
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/Components/Pagination.tsx
@@ -0,0 +1,10 @@
+import React from "react";
+import { Pagination as RAPagination, PaginationProps } from "react-admin";
+
+const PAGINATION_OPTIONS = [10, 25, 50, 100, 200];
+
+const Pagination = (props: PaginationProps) => (
+
+);
+
+export default Pagination;
diff --git a/apps/roi-cacl-2-admin/src/Login.tsx b/apps/roi-cacl-2-admin/src/Login.tsx
new file mode 100644
index 0000000..f7ec8ed
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/Login.tsx
@@ -0,0 +1,117 @@
+import * as React from "react";
+import { useState } from "react";
+import { useLogin, useNotify, Notification, defaultTheme } from "react-admin";
+import { ThemeProvider } from "@material-ui/styles";
+import { createTheme } from "@material-ui/core/styles";
+import { Button } from "@material-ui/core";
+import "./login.scss";
+
+const CLASS_NAME = "login-page";
+
+const Login = ({ theme }: any) => {
+ const [username, setUsername] = useState("");
+ const [password, setPassword] = useState("");
+ const login = useLogin();
+ const notify = useNotify();
+ const BASE_URI = process.env.REACT_APP_SERVER_URL;
+ const submit = (e: any) => {
+ e.preventDefault();
+ login({ username, password }).catch(() =>
+ notify("Invalid username or password")
+ );
+ };
+
+ return (
+
+
+
+
+
+
Connect via GraphQL
+
+ Connect to the server using GraphQL API with a complete and
+ understandable description of the data in your API
+
+
+ Continue
+
+
+
+
+
Admin UI
+
+ Sign in to a React-Admin client with ready-made forms for creating
+ and editing all the data models of your application
+
+
+
+
+
+
Connect via REST API
+
+ Connect to the server using REST API with a built-in Swagger
+ documentation
+
+
+ Continue
+
+
+
+
+
+
+
+
+ );
+};
+
+export default Login;
diff --git a/apps/roi-cacl-2-admin/src/account/AccountCreate.tsx b/apps/roi-cacl-2-admin/src/account/AccountCreate.tsx
new file mode 100644
index 0000000..9818a9d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/account/AccountCreate.tsx
@@ -0,0 +1,35 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ NumberInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+
+export const AccountCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/account/AccountEdit.tsx b/apps/roi-cacl-2-admin/src/account/AccountEdit.tsx
new file mode 100644
index 0000000..e2eb8a6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/account/AccountEdit.tsx
@@ -0,0 +1,35 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ NumberInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+
+export const AccountEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/account/AccountList.tsx b/apps/roi-cacl-2-admin/src/account/AccountList.tsx
new file mode 100644
index 0000000..778cf5e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/account/AccountList.tsx
@@ -0,0 +1,39 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const AccountList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/account/AccountShow.tsx b/apps/roi-cacl-2-admin/src/account/AccountShow.tsx
new file mode 100644
index 0000000..bb70897
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/account/AccountShow.tsx
@@ -0,0 +1,32 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const AccountShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/account/AccountTitle.ts b/apps/roi-cacl-2-admin/src/account/AccountTitle.ts
new file mode 100644
index 0000000..c6fefdd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/account/AccountTitle.ts
@@ -0,0 +1,7 @@
+import { Account as TAccount } from "../api/account/Account";
+
+export const ACCOUNT_TITLE_FIELD = "typeField";
+
+export const AccountTitle = (record: TAccount): string => {
+ return record.typeField?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/api/account/Account.ts b/apps/roi-cacl-2-admin/src/api/account/Account.ts
new file mode 100644
index 0000000..427a4bd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/account/Account.ts
@@ -0,0 +1,16 @@
+import { User } from "../user/User";
+
+export type Account = {
+ id: string;
+ typeField: string;
+ provider: string;
+ providerAccountId: string;
+ refreshToken: string | null;
+ accessToken: string | null;
+ expiresAt: number | null;
+ tokenType: string | null;
+ scope: string | null;
+ idToken: string | null;
+ sessionState: string | null;
+ user?: User | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/account/AccountCountArgs.ts b/apps/roi-cacl-2-admin/src/api/account/AccountCountArgs.ts
new file mode 100644
index 0000000..0120da7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/account/AccountCountArgs.ts
@@ -0,0 +1,5 @@
+import { AccountWhereInput } from "./AccountWhereInput";
+
+export type AccountCountArgs = {
+ where?: AccountWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/account/AccountCreateInput.ts b/apps/roi-cacl-2-admin/src/api/account/AccountCreateInput.ts
new file mode 100644
index 0000000..6248d28
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/account/AccountCreateInput.ts
@@ -0,0 +1,15 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type AccountCreateInput = {
+ typeField: string;
+ provider: string;
+ providerAccountId: string;
+ refreshToken?: string | null;
+ accessToken?: string | null;
+ expiresAt?: number | null;
+ tokenType?: string | null;
+ scope?: string | null;
+ idToken?: string | null;
+ sessionState?: string | null;
+ user?: UserWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/account/AccountFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/account/AccountFindManyArgs.ts
new file mode 100644
index 0000000..5f09b6d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/account/AccountFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { AccountWhereInput } from "./AccountWhereInput";
+import { AccountOrderByInput } from "./AccountOrderByInput";
+
+export type AccountFindManyArgs = {
+ where?: AccountWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/account/AccountFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/account/AccountFindUniqueArgs.ts
new file mode 100644
index 0000000..5c0366e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/account/AccountFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { AccountWhereUniqueInput } from "./AccountWhereUniqueInput";
+
+export type AccountFindUniqueArgs = {
+ where: AccountWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/account/AccountListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/account/AccountListRelationFilter.ts
new file mode 100644
index 0000000..af6de77
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/account/AccountListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { AccountWhereInput } from "./AccountWhereInput";
+
+export type AccountListRelationFilter = {
+ every?: AccountWhereInput;
+ some?: AccountWhereInput;
+ none?: AccountWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/account/AccountOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/account/AccountOrderByInput.ts
new file mode 100644
index 0000000..c6b2fcf
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/account/AccountOrderByInput.ts
@@ -0,0 +1,16 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type AccountOrderByInput = {
+ id?: SortOrder;
+ typeField?: SortOrder;
+ provider?: SortOrder;
+ providerAccountId?: SortOrder;
+ refreshToken?: SortOrder;
+ accessToken?: SortOrder;
+ expiresAt?: SortOrder;
+ tokenType?: SortOrder;
+ scope?: SortOrder;
+ idToken?: SortOrder;
+ sessionState?: SortOrder;
+ userId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/account/AccountUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/account/AccountUpdateInput.ts
new file mode 100644
index 0000000..1cb0263
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/account/AccountUpdateInput.ts
@@ -0,0 +1,15 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type AccountUpdateInput = {
+ typeField?: string;
+ provider?: string;
+ providerAccountId?: string;
+ refreshToken?: string | null;
+ accessToken?: string | null;
+ expiresAt?: number | null;
+ tokenType?: string | null;
+ scope?: string | null;
+ idToken?: string | null;
+ sessionState?: string | null;
+ user?: UserWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/account/AccountWhereInput.ts b/apps/roi-cacl-2-admin/src/api/account/AccountWhereInput.ts
new file mode 100644
index 0000000..47c717e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/account/AccountWhereInput.ts
@@ -0,0 +1,19 @@
+import { StringFilter } from "../../util/StringFilter";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { IntNullableFilter } from "../../util/IntNullableFilter";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type AccountWhereInput = {
+ id?: StringFilter;
+ typeField?: StringFilter;
+ provider?: StringFilter;
+ providerAccountId?: StringFilter;
+ refreshToken?: StringNullableFilter;
+ accessToken?: StringNullableFilter;
+ expiresAt?: IntNullableFilter;
+ tokenType?: StringNullableFilter;
+ scope?: StringNullableFilter;
+ idToken?: StringNullableFilter;
+ sessionState?: StringNullableFilter;
+ user?: UserWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/account/AccountWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/account/AccountWhereUniqueInput.ts
new file mode 100644
index 0000000..db983cb
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/account/AccountWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type AccountWhereUniqueInput = {
+ id: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/account/CreateAccountArgs.ts b/apps/roi-cacl-2-admin/src/api/account/CreateAccountArgs.ts
new file mode 100644
index 0000000..fc80c84
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/account/CreateAccountArgs.ts
@@ -0,0 +1,5 @@
+import { AccountCreateInput } from "./AccountCreateInput";
+
+export type CreateAccountArgs = {
+ data: AccountCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/account/DeleteAccountArgs.ts b/apps/roi-cacl-2-admin/src/api/account/DeleteAccountArgs.ts
new file mode 100644
index 0000000..8b17e0c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/account/DeleteAccountArgs.ts
@@ -0,0 +1,5 @@
+import { AccountWhereUniqueInput } from "./AccountWhereUniqueInput";
+
+export type DeleteAccountArgs = {
+ where: AccountWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/account/UpdateAccountArgs.ts b/apps/roi-cacl-2-admin/src/api/account/UpdateAccountArgs.ts
new file mode 100644
index 0000000..fcf2420
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/account/UpdateAccountArgs.ts
@@ -0,0 +1,7 @@
+import { AccountWhereUniqueInput } from "./AccountWhereUniqueInput";
+import { AccountUpdateInput } from "./AccountUpdateInput";
+
+export type UpdateAccountArgs = {
+ where: AccountWhereUniqueInput;
+ data: AccountUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/apiKey/ApiKey.ts b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKey.ts
new file mode 100644
index 0000000..1bcf8a5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKey.ts
@@ -0,0 +1,13 @@
+import { User } from "../user/User";
+import { AppModel } from "../appModel/AppModel";
+
+export type ApiKey = {
+ id: string;
+ note: string | null;
+ createdAt: Date;
+ expiresAt: Date | null;
+ lastUsedAt: Date | null;
+ hashedKey: string;
+ user?: User | null;
+ appField?: AppModel | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyCountArgs.ts b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyCountArgs.ts
new file mode 100644
index 0000000..1735180
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyCountArgs.ts
@@ -0,0 +1,5 @@
+import { ApiKeyWhereInput } from "./ApiKeyWhereInput";
+
+export type ApiKeyCountArgs = {
+ where?: ApiKeyWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyCreateInput.ts b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyCreateInput.ts
new file mode 100644
index 0000000..7f31f38
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyCreateInput.ts
@@ -0,0 +1,11 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { AppModelWhereUniqueInput } from "../appModel/AppModelWhereUniqueInput";
+
+export type ApiKeyCreateInput = {
+ note?: string | null;
+ expiresAt?: Date | null;
+ lastUsedAt?: Date | null;
+ hashedKey: string;
+ user?: UserWhereUniqueInput | null;
+ appField?: AppModelWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyFindManyArgs.ts
new file mode 100644
index 0000000..2f192f6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { ApiKeyWhereInput } from "./ApiKeyWhereInput";
+import { ApiKeyOrderByInput } from "./ApiKeyOrderByInput";
+
+export type ApiKeyFindManyArgs = {
+ where?: ApiKeyWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyFindUniqueArgs.ts
new file mode 100644
index 0000000..92f3e46
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { ApiKeyWhereUniqueInput } from "./ApiKeyWhereUniqueInput";
+
+export type ApiKeyFindUniqueArgs = {
+ where: ApiKeyWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyListRelationFilter.ts
new file mode 100644
index 0000000..7985497
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { ApiKeyWhereInput } from "./ApiKeyWhereInput";
+
+export type ApiKeyListRelationFilter = {
+ every?: ApiKeyWhereInput;
+ some?: ApiKeyWhereInput;
+ none?: ApiKeyWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyOrderByInput.ts
new file mode 100644
index 0000000..ca1f2d0
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyOrderByInput.ts
@@ -0,0 +1,12 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type ApiKeyOrderByInput = {
+ id?: SortOrder;
+ note?: SortOrder;
+ createdAt?: SortOrder;
+ expiresAt?: SortOrder;
+ lastUsedAt?: SortOrder;
+ hashedKey?: SortOrder;
+ userId?: SortOrder;
+ appId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyUpdateInput.ts
new file mode 100644
index 0000000..34204e2
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyUpdateInput.ts
@@ -0,0 +1,11 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { AppModelWhereUniqueInput } from "../appModel/AppModelWhereUniqueInput";
+
+export type ApiKeyUpdateInput = {
+ note?: string | null;
+ expiresAt?: Date | null;
+ lastUsedAt?: Date | null;
+ hashedKey?: string;
+ user?: UserWhereUniqueInput | null;
+ appField?: AppModelWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyWhereInput.ts b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyWhereInput.ts
new file mode 100644
index 0000000..b3ced3f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyWhereInput.ts
@@ -0,0 +1,17 @@
+import { StringFilter } from "../../util/StringFilter";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+import { DateTimeNullableFilter } from "../../util/DateTimeNullableFilter";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { AppModelWhereUniqueInput } from "../appModel/AppModelWhereUniqueInput";
+
+export type ApiKeyWhereInput = {
+ id?: StringFilter;
+ note?: StringNullableFilter;
+ createdAt?: DateTimeFilter;
+ expiresAt?: DateTimeNullableFilter;
+ lastUsedAt?: DateTimeNullableFilter;
+ hashedKey?: StringFilter;
+ user?: UserWhereUniqueInput;
+ appField?: AppModelWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyWhereUniqueInput.ts
new file mode 100644
index 0000000..154fd1d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/apiKey/ApiKeyWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type ApiKeyWhereUniqueInput = {
+ id: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/apiKey/CreateApiKeyArgs.ts b/apps/roi-cacl-2-admin/src/api/apiKey/CreateApiKeyArgs.ts
new file mode 100644
index 0000000..6ef6562
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/apiKey/CreateApiKeyArgs.ts
@@ -0,0 +1,5 @@
+import { ApiKeyCreateInput } from "./ApiKeyCreateInput";
+
+export type CreateApiKeyArgs = {
+ data: ApiKeyCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/apiKey/DeleteApiKeyArgs.ts b/apps/roi-cacl-2-admin/src/api/apiKey/DeleteApiKeyArgs.ts
new file mode 100644
index 0000000..ff7ec80
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/apiKey/DeleteApiKeyArgs.ts
@@ -0,0 +1,5 @@
+import { ApiKeyWhereUniqueInput } from "./ApiKeyWhereUniqueInput";
+
+export type DeleteApiKeyArgs = {
+ where: ApiKeyWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/apiKey/UpdateApiKeyArgs.ts b/apps/roi-cacl-2-admin/src/api/apiKey/UpdateApiKeyArgs.ts
new file mode 100644
index 0000000..e86b47c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/apiKey/UpdateApiKeyArgs.ts
@@ -0,0 +1,7 @@
+import { ApiKeyWhereUniqueInput } from "./ApiKeyWhereUniqueInput";
+import { ApiKeyUpdateInput } from "./ApiKeyUpdateInput";
+
+export type UpdateApiKeyArgs = {
+ where: ApiKeyWhereUniqueInput;
+ data: ApiKeyUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/ApiKeyCreateNestedManyWithoutAppModelsInput.ts b/apps/roi-cacl-2-admin/src/api/appModel/ApiKeyCreateNestedManyWithoutAppModelsInput.ts
new file mode 100644
index 0000000..6873cd7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/ApiKeyCreateNestedManyWithoutAppModelsInput.ts
@@ -0,0 +1,5 @@
+import { ApiKeyWhereUniqueInput } from "../apiKey/ApiKeyWhereUniqueInput";
+
+export type ApiKeyCreateNestedManyWithoutAppModelsInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/ApiKeyUpdateManyWithoutAppModelsInput.ts b/apps/roi-cacl-2-admin/src/api/appModel/ApiKeyUpdateManyWithoutAppModelsInput.ts
new file mode 100644
index 0000000..f28c67f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/ApiKeyUpdateManyWithoutAppModelsInput.ts
@@ -0,0 +1,7 @@
+import { ApiKeyWhereUniqueInput } from "../apiKey/ApiKeyWhereUniqueInput";
+
+export type ApiKeyUpdateManyWithoutAppModelsInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/AppModel.ts b/apps/roi-cacl-2-admin/src/api/appModel/AppModel.ts
new file mode 100644
index 0000000..4825153
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/AppModel.ts
@@ -0,0 +1,18 @@
+import { JsonValue } from "type-fest";
+import { Credential } from "../credential/Credential";
+import { Webhook } from "../webhook/Webhook";
+import { ApiKey } from "../apiKey/ApiKey";
+
+export type AppModel = {
+ id: string;
+ dirName: string;
+ keys: JsonValue;
+ categories?: Array<
+ "calendar" | "messaging" | "other" | "payment" | "video" | "web3"
+ >;
+ createdAt: Date;
+ updatedAt: Date;
+ credentials?: Array;
+ webhook?: Array;
+ apiKey?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/AppModelCountArgs.ts b/apps/roi-cacl-2-admin/src/api/appModel/AppModelCountArgs.ts
new file mode 100644
index 0000000..0758c1e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/AppModelCountArgs.ts
@@ -0,0 +1,5 @@
+import { AppModelWhereInput } from "./AppModelWhereInput";
+
+export type AppModelCountArgs = {
+ where?: AppModelWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/AppModelCreateInput.ts b/apps/roi-cacl-2-admin/src/api/appModel/AppModelCreateInput.ts
new file mode 100644
index 0000000..2fadef1
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/AppModelCreateInput.ts
@@ -0,0 +1,15 @@
+import { InputJsonValue } from "../../types";
+import { CredentialCreateNestedManyWithoutAppModelsInput } from "./CredentialCreateNestedManyWithoutAppModelsInput";
+import { WebhookCreateNestedManyWithoutAppModelsInput } from "./WebhookCreateNestedManyWithoutAppModelsInput";
+import { ApiKeyCreateNestedManyWithoutAppModelsInput } from "./ApiKeyCreateNestedManyWithoutAppModelsInput";
+
+export type AppModelCreateInput = {
+ dirName: string;
+ keys?: InputJsonValue;
+ categories?: Array<
+ "calendar" | "messaging" | "other" | "payment" | "video" | "web3"
+ >;
+ credentials?: CredentialCreateNestedManyWithoutAppModelsInput;
+ webhook?: WebhookCreateNestedManyWithoutAppModelsInput;
+ apiKey?: ApiKeyCreateNestedManyWithoutAppModelsInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/AppModelFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/appModel/AppModelFindManyArgs.ts
new file mode 100644
index 0000000..afe3c47
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/AppModelFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { AppModelWhereInput } from "./AppModelWhereInput";
+import { AppModelOrderByInput } from "./AppModelOrderByInput";
+
+export type AppModelFindManyArgs = {
+ where?: AppModelWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/AppModelFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/appModel/AppModelFindUniqueArgs.ts
new file mode 100644
index 0000000..6df2222
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/AppModelFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { AppModelWhereUniqueInput } from "./AppModelWhereUniqueInput";
+
+export type AppModelFindUniqueArgs = {
+ where: AppModelWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/AppModelListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/appModel/AppModelListRelationFilter.ts
new file mode 100644
index 0000000..fa395f5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/AppModelListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { AppModelWhereInput } from "./AppModelWhereInput";
+
+export type AppModelListRelationFilter = {
+ every?: AppModelWhereInput;
+ some?: AppModelWhereInput;
+ none?: AppModelWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/AppModelOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/appModel/AppModelOrderByInput.ts
new file mode 100644
index 0000000..c5002c4
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/AppModelOrderByInput.ts
@@ -0,0 +1,10 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type AppModelOrderByInput = {
+ id?: SortOrder;
+ dirName?: SortOrder;
+ keys?: SortOrder;
+ categories?: SortOrder;
+ createdAt?: SortOrder;
+ updatedAt?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/AppModelUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/appModel/AppModelUpdateInput.ts
new file mode 100644
index 0000000..7217c55
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/AppModelUpdateInput.ts
@@ -0,0 +1,15 @@
+import { InputJsonValue } from "../../types";
+import { CredentialUpdateManyWithoutAppModelsInput } from "./CredentialUpdateManyWithoutAppModelsInput";
+import { WebhookUpdateManyWithoutAppModelsInput } from "./WebhookUpdateManyWithoutAppModelsInput";
+import { ApiKeyUpdateManyWithoutAppModelsInput } from "./ApiKeyUpdateManyWithoutAppModelsInput";
+
+export type AppModelUpdateInput = {
+ dirName?: string;
+ keys?: InputJsonValue;
+ categories?: Array<
+ "calendar" | "messaging" | "other" | "payment" | "video" | "web3"
+ >;
+ credentials?: CredentialUpdateManyWithoutAppModelsInput;
+ webhook?: WebhookUpdateManyWithoutAppModelsInput;
+ apiKey?: ApiKeyUpdateManyWithoutAppModelsInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/AppModelWhereInput.ts b/apps/roi-cacl-2-admin/src/api/appModel/AppModelWhereInput.ts
new file mode 100644
index 0000000..37013c1
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/AppModelWhereInput.ts
@@ -0,0 +1,17 @@
+import { StringFilter } from "../../util/StringFilter";
+import { JsonFilter } from "../../util/JsonFilter";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+import { CredentialListRelationFilter } from "../credential/CredentialListRelationFilter";
+import { WebhookListRelationFilter } from "../webhook/WebhookListRelationFilter";
+import { ApiKeyListRelationFilter } from "../apiKey/ApiKeyListRelationFilter";
+
+export type AppModelWhereInput = {
+ id?: StringFilter;
+ dirName?: StringFilter;
+ keys?: JsonFilter;
+ createdAt?: DateTimeFilter;
+ updatedAt?: DateTimeFilter;
+ credentials?: CredentialListRelationFilter;
+ webhook?: WebhookListRelationFilter;
+ apiKey?: ApiKeyListRelationFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/AppModelWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/appModel/AppModelWhereUniqueInput.ts
new file mode 100644
index 0000000..ee9ea81
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/AppModelWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type AppModelWhereUniqueInput = {
+ id: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/CreateAppModelArgs.ts b/apps/roi-cacl-2-admin/src/api/appModel/CreateAppModelArgs.ts
new file mode 100644
index 0000000..92aa9e9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/CreateAppModelArgs.ts
@@ -0,0 +1,5 @@
+import { AppModelCreateInput } from "./AppModelCreateInput";
+
+export type CreateAppModelArgs = {
+ data: AppModelCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/CredentialCreateNestedManyWithoutAppModelsInput.ts b/apps/roi-cacl-2-admin/src/api/appModel/CredentialCreateNestedManyWithoutAppModelsInput.ts
new file mode 100644
index 0000000..2fd6763
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/CredentialCreateNestedManyWithoutAppModelsInput.ts
@@ -0,0 +1,5 @@
+import { CredentialWhereUniqueInput } from "../credential/CredentialWhereUniqueInput";
+
+export type CredentialCreateNestedManyWithoutAppModelsInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/CredentialUpdateManyWithoutAppModelsInput.ts b/apps/roi-cacl-2-admin/src/api/appModel/CredentialUpdateManyWithoutAppModelsInput.ts
new file mode 100644
index 0000000..5afc23a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/CredentialUpdateManyWithoutAppModelsInput.ts
@@ -0,0 +1,7 @@
+import { CredentialWhereUniqueInput } from "../credential/CredentialWhereUniqueInput";
+
+export type CredentialUpdateManyWithoutAppModelsInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/DeleteAppModelArgs.ts b/apps/roi-cacl-2-admin/src/api/appModel/DeleteAppModelArgs.ts
new file mode 100644
index 0000000..46ab2f4
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/DeleteAppModelArgs.ts
@@ -0,0 +1,5 @@
+import { AppModelWhereUniqueInput } from "./AppModelWhereUniqueInput";
+
+export type DeleteAppModelArgs = {
+ where: AppModelWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/EnumAppModelCategories.ts b/apps/roi-cacl-2-admin/src/api/appModel/EnumAppModelCategories.ts
new file mode 100644
index 0000000..b4eebee
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/EnumAppModelCategories.ts
@@ -0,0 +1,10 @@
+import { Payment } from "../payment/Payment";
+
+export enum EnumAppModelCategories {
+ Calendar = "calendar",
+ Messaging = "messaging",
+ Other = "other",
+ Payment = "payment",
+ Video = "video",
+ Web3 = "web3",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/UpdateAppModelArgs.ts b/apps/roi-cacl-2-admin/src/api/appModel/UpdateAppModelArgs.ts
new file mode 100644
index 0000000..6b24c23
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/UpdateAppModelArgs.ts
@@ -0,0 +1,7 @@
+import { AppModelWhereUniqueInput } from "./AppModelWhereUniqueInput";
+import { AppModelUpdateInput } from "./AppModelUpdateInput";
+
+export type UpdateAppModelArgs = {
+ where: AppModelWhereUniqueInput;
+ data: AppModelUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/WebhookCreateNestedManyWithoutAppModelsInput.ts b/apps/roi-cacl-2-admin/src/api/appModel/WebhookCreateNestedManyWithoutAppModelsInput.ts
new file mode 100644
index 0000000..62b6da3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/WebhookCreateNestedManyWithoutAppModelsInput.ts
@@ -0,0 +1,5 @@
+import { WebhookWhereUniqueInput } from "../webhook/WebhookWhereUniqueInput";
+
+export type WebhookCreateNestedManyWithoutAppModelsInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/appModel/WebhookUpdateManyWithoutAppModelsInput.ts b/apps/roi-cacl-2-admin/src/api/appModel/WebhookUpdateManyWithoutAppModelsInput.ts
new file mode 100644
index 0000000..2405a93
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/appModel/WebhookUpdateManyWithoutAppModelsInput.ts
@@ -0,0 +1,7 @@
+import { WebhookWhereUniqueInput } from "../webhook/WebhookWhereUniqueInput";
+
+export type WebhookUpdateManyWithoutAppModelsInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/attendee/Attendee.ts b/apps/roi-cacl-2-admin/src/api/attendee/Attendee.ts
new file mode 100644
index 0000000..367baca
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/attendee/Attendee.ts
@@ -0,0 +1,10 @@
+import { Booking } from "../booking/Booking";
+
+export type Attendee = {
+ id: number;
+ email: string;
+ name: string;
+ timeZone: string;
+ locale: string | null;
+ booking?: Booking | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/attendee/AttendeeCountArgs.ts b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeCountArgs.ts
new file mode 100644
index 0000000..681bbe3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeCountArgs.ts
@@ -0,0 +1,5 @@
+import { AttendeeWhereInput } from "./AttendeeWhereInput";
+
+export type AttendeeCountArgs = {
+ where?: AttendeeWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/attendee/AttendeeCreateInput.ts b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeCreateInput.ts
new file mode 100644
index 0000000..9eb09ce
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeCreateInput.ts
@@ -0,0 +1,9 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+
+export type AttendeeCreateInput = {
+ email: string;
+ name: string;
+ timeZone: string;
+ locale?: string | null;
+ booking?: BookingWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/attendee/AttendeeFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeFindManyArgs.ts
new file mode 100644
index 0000000..c49291b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { AttendeeWhereInput } from "./AttendeeWhereInput";
+import { AttendeeOrderByInput } from "./AttendeeOrderByInput";
+
+export type AttendeeFindManyArgs = {
+ where?: AttendeeWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/attendee/AttendeeFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeFindUniqueArgs.ts
new file mode 100644
index 0000000..1a7bc2f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { AttendeeWhereUniqueInput } from "./AttendeeWhereUniqueInput";
+
+export type AttendeeFindUniqueArgs = {
+ where: AttendeeWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/attendee/AttendeeListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeListRelationFilter.ts
new file mode 100644
index 0000000..87f61d8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { AttendeeWhereInput } from "./AttendeeWhereInput";
+
+export type AttendeeListRelationFilter = {
+ every?: AttendeeWhereInput;
+ some?: AttendeeWhereInput;
+ none?: AttendeeWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/attendee/AttendeeOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeOrderByInput.ts
new file mode 100644
index 0000000..86443a4
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeOrderByInput.ts
@@ -0,0 +1,10 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type AttendeeOrderByInput = {
+ id?: SortOrder;
+ email?: SortOrder;
+ name?: SortOrder;
+ timeZone?: SortOrder;
+ locale?: SortOrder;
+ bookingId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/attendee/AttendeeUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeUpdateInput.ts
new file mode 100644
index 0000000..8d9cfbf
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeUpdateInput.ts
@@ -0,0 +1,9 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+
+export type AttendeeUpdateInput = {
+ email?: string;
+ name?: string;
+ timeZone?: string;
+ locale?: string | null;
+ booking?: BookingWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/attendee/AttendeeWhereInput.ts b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeWhereInput.ts
new file mode 100644
index 0000000..284e1c7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeWhereInput.ts
@@ -0,0 +1,13 @@
+import { IntFilter } from "../../util/IntFilter";
+import { StringFilter } from "../../util/StringFilter";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+
+export type AttendeeWhereInput = {
+ id?: IntFilter;
+ email?: StringFilter;
+ name?: StringFilter;
+ timeZone?: StringFilter;
+ locale?: StringNullableFilter;
+ booking?: BookingWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/attendee/AttendeeWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeWhereUniqueInput.ts
new file mode 100644
index 0000000..1957955
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/attendee/AttendeeWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type AttendeeWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/attendee/CreateAttendeeArgs.ts b/apps/roi-cacl-2-admin/src/api/attendee/CreateAttendeeArgs.ts
new file mode 100644
index 0000000..be01bd1
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/attendee/CreateAttendeeArgs.ts
@@ -0,0 +1,5 @@
+import { AttendeeCreateInput } from "./AttendeeCreateInput";
+
+export type CreateAttendeeArgs = {
+ data: AttendeeCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/attendee/DeleteAttendeeArgs.ts b/apps/roi-cacl-2-admin/src/api/attendee/DeleteAttendeeArgs.ts
new file mode 100644
index 0000000..02960b3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/attendee/DeleteAttendeeArgs.ts
@@ -0,0 +1,5 @@
+import { AttendeeWhereUniqueInput } from "./AttendeeWhereUniqueInput";
+
+export type DeleteAttendeeArgs = {
+ where: AttendeeWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/attendee/UpdateAttendeeArgs.ts b/apps/roi-cacl-2-admin/src/api/attendee/UpdateAttendeeArgs.ts
new file mode 100644
index 0000000..0b1e699
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/attendee/UpdateAttendeeArgs.ts
@@ -0,0 +1,7 @@
+import { AttendeeWhereUniqueInput } from "./AttendeeWhereUniqueInput";
+import { AttendeeUpdateInput } from "./AttendeeUpdateInput";
+
+export type UpdateAttendeeArgs = {
+ where: AttendeeWhereUniqueInput;
+ data: AttendeeUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/availability/Availability.ts b/apps/roi-cacl-2-admin/src/api/availability/Availability.ts
new file mode 100644
index 0000000..ff9c334
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/availability/Availability.ts
@@ -0,0 +1,14 @@
+import { User } from "../user/User";
+import { EventType } from "../eventType/EventType";
+import { Schedule } from "../schedule/Schedule";
+
+export type Availability = {
+ id: number;
+ user?: User | null;
+ eventType?: EventType | null;
+ days: number;
+ startTime: Date;
+ endTime: Date;
+ date: Date | null;
+ schedule?: Schedule | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/availability/AvailabilityCountArgs.ts b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityCountArgs.ts
new file mode 100644
index 0000000..a1245f7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityCountArgs.ts
@@ -0,0 +1,5 @@
+import { AvailabilityWhereInput } from "./AvailabilityWhereInput";
+
+export type AvailabilityCountArgs = {
+ where?: AvailabilityWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/availability/AvailabilityCreateInput.ts b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityCreateInput.ts
new file mode 100644
index 0000000..3e5998e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityCreateInput.ts
@@ -0,0 +1,13 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+import { ScheduleWhereUniqueInput } from "../schedule/ScheduleWhereUniqueInput";
+
+export type AvailabilityCreateInput = {
+ user?: UserWhereUniqueInput | null;
+ eventType?: EventTypeWhereUniqueInput | null;
+ days: number;
+ startTime: Date;
+ endTime: Date;
+ date?: Date | null;
+ schedule?: ScheduleWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/availability/AvailabilityFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityFindManyArgs.ts
new file mode 100644
index 0000000..eafb9bd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { AvailabilityWhereInput } from "./AvailabilityWhereInput";
+import { AvailabilityOrderByInput } from "./AvailabilityOrderByInput";
+
+export type AvailabilityFindManyArgs = {
+ where?: AvailabilityWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/availability/AvailabilityFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityFindUniqueArgs.ts
new file mode 100644
index 0000000..e9647b0
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { AvailabilityWhereUniqueInput } from "./AvailabilityWhereUniqueInput";
+
+export type AvailabilityFindUniqueArgs = {
+ where: AvailabilityWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/availability/AvailabilityListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityListRelationFilter.ts
new file mode 100644
index 0000000..09c7b81
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { AvailabilityWhereInput } from "./AvailabilityWhereInput";
+
+export type AvailabilityListRelationFilter = {
+ every?: AvailabilityWhereInput;
+ some?: AvailabilityWhereInput;
+ none?: AvailabilityWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/availability/AvailabilityOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityOrderByInput.ts
new file mode 100644
index 0000000..1d612ab
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityOrderByInput.ts
@@ -0,0 +1,12 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type AvailabilityOrderByInput = {
+ id?: SortOrder;
+ userId?: SortOrder;
+ eventTypeId?: SortOrder;
+ days?: SortOrder;
+ startTime?: SortOrder;
+ endTime?: SortOrder;
+ date?: SortOrder;
+ scheduleId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/availability/AvailabilityUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityUpdateInput.ts
new file mode 100644
index 0000000..3b50bfd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityUpdateInput.ts
@@ -0,0 +1,13 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+import { ScheduleWhereUniqueInput } from "../schedule/ScheduleWhereUniqueInput";
+
+export type AvailabilityUpdateInput = {
+ user?: UserWhereUniqueInput | null;
+ eventType?: EventTypeWhereUniqueInput | null;
+ days?: number;
+ startTime?: Date;
+ endTime?: Date;
+ date?: Date | null;
+ schedule?: ScheduleWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/availability/AvailabilityWhereInput.ts b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityWhereInput.ts
new file mode 100644
index 0000000..30509bd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityWhereInput.ts
@@ -0,0 +1,17 @@
+import { IntFilter } from "../../util/IntFilter";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+import { DateTimeNullableFilter } from "../../util/DateTimeNullableFilter";
+import { ScheduleWhereUniqueInput } from "../schedule/ScheduleWhereUniqueInput";
+
+export type AvailabilityWhereInput = {
+ id?: IntFilter;
+ user?: UserWhereUniqueInput;
+ eventType?: EventTypeWhereUniqueInput;
+ days?: IntFilter;
+ startTime?: DateTimeFilter;
+ endTime?: DateTimeFilter;
+ date?: DateTimeNullableFilter;
+ schedule?: ScheduleWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/availability/AvailabilityWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityWhereUniqueInput.ts
new file mode 100644
index 0000000..e4c390d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/availability/AvailabilityWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type AvailabilityWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/availability/CreateAvailabilityArgs.ts b/apps/roi-cacl-2-admin/src/api/availability/CreateAvailabilityArgs.ts
new file mode 100644
index 0000000..8ae75ff
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/availability/CreateAvailabilityArgs.ts
@@ -0,0 +1,5 @@
+import { AvailabilityCreateInput } from "./AvailabilityCreateInput";
+
+export type CreateAvailabilityArgs = {
+ data: AvailabilityCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/availability/DeleteAvailabilityArgs.ts b/apps/roi-cacl-2-admin/src/api/availability/DeleteAvailabilityArgs.ts
new file mode 100644
index 0000000..70422b9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/availability/DeleteAvailabilityArgs.ts
@@ -0,0 +1,5 @@
+import { AvailabilityWhereUniqueInput } from "./AvailabilityWhereUniqueInput";
+
+export type DeleteAvailabilityArgs = {
+ where: AvailabilityWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/availability/UpdateAvailabilityArgs.ts b/apps/roi-cacl-2-admin/src/api/availability/UpdateAvailabilityArgs.ts
new file mode 100644
index 0000000..3274cce
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/availability/UpdateAvailabilityArgs.ts
@@ -0,0 +1,7 @@
+import { AvailabilityWhereUniqueInput } from "./AvailabilityWhereUniqueInput";
+import { AvailabilityUpdateInput } from "./AvailabilityUpdateInput";
+
+export type UpdateAvailabilityArgs = {
+ where: AvailabilityWhereUniqueInput;
+ data: AvailabilityUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/AttendeeCreateNestedManyWithoutBookingsInput.ts b/apps/roi-cacl-2-admin/src/api/booking/AttendeeCreateNestedManyWithoutBookingsInput.ts
new file mode 100644
index 0000000..f1b4e16
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/AttendeeCreateNestedManyWithoutBookingsInput.ts
@@ -0,0 +1,5 @@
+import { AttendeeWhereUniqueInput } from "../attendee/AttendeeWhereUniqueInput";
+
+export type AttendeeCreateNestedManyWithoutBookingsInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/AttendeeUpdateManyWithoutBookingsInput.ts b/apps/roi-cacl-2-admin/src/api/booking/AttendeeUpdateManyWithoutBookingsInput.ts
new file mode 100644
index 0000000..9d0a56a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/AttendeeUpdateManyWithoutBookingsInput.ts
@@ -0,0 +1,7 @@
+import { AttendeeWhereUniqueInput } from "../attendee/AttendeeWhereUniqueInput";
+
+export type AttendeeUpdateManyWithoutBookingsInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/Booking.ts b/apps/roi-cacl-2-admin/src/api/booking/Booking.ts
new file mode 100644
index 0000000..9b3112b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/Booking.ts
@@ -0,0 +1,40 @@
+import { User } from "../user/User";
+import { EventType } from "../eventType/EventType";
+import { JsonValue } from "type-fest";
+import { DestinationCalendar } from "../destinationCalendar/DestinationCalendar";
+import { BookingReference } from "../bookingReference/BookingReference";
+import { Attendee } from "../attendee/Attendee";
+import { DailyEventReference } from "../dailyEventReference/DailyEventReference";
+import { Payment } from "../payment/Payment";
+import { WorkflowReminder } from "../workflowReminder/WorkflowReminder";
+
+export type Booking = {
+ id: number;
+ uid: string;
+ user?: User | null;
+ eventType?: EventType | null;
+ title: string;
+ description: string | null;
+ customInputs: JsonValue;
+ startTime: Date;
+ endTime: Date;
+ location: string | null;
+ createdAt: Date;
+ updatedAt: Date | null;
+ status?: "CANCELLED" | "ACCEPTED" | "REJECTED" | "PENDING";
+ paid: boolean;
+ cancellationReason: string | null;
+ rejectionReason: string | null;
+ dynamicEventSlugRef: string | null;
+ dynamicGroupSlugRef: string | null;
+ rescheduled: boolean | null;
+ fromReschedule: string | null;
+ recurringEventId: string | null;
+ smsReminderNumber: string | null;
+ destinationCalendar?: DestinationCalendar | null;
+ references?: Array;
+ attendees?: Array;
+ dailyRef?: DailyEventReference | null;
+ payment?: Array;
+ workflowReminders?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/BookingCountArgs.ts b/apps/roi-cacl-2-admin/src/api/booking/BookingCountArgs.ts
new file mode 100644
index 0000000..ecbd21d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/BookingCountArgs.ts
@@ -0,0 +1,5 @@
+import { BookingWhereInput } from "./BookingWhereInput";
+
+export type BookingCountArgs = {
+ where?: BookingWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/BookingCreateInput.ts b/apps/roi-cacl-2-admin/src/api/booking/BookingCreateInput.ts
new file mode 100644
index 0000000..f89cd3b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/BookingCreateInput.ts
@@ -0,0 +1,38 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+import { InputJsonValue } from "../../types";
+import { DestinationCalendarWhereUniqueInput } from "../destinationCalendar/DestinationCalendarWhereUniqueInput";
+import { BookingReferenceCreateNestedManyWithoutBookingsInput } from "./BookingReferenceCreateNestedManyWithoutBookingsInput";
+import { AttendeeCreateNestedManyWithoutBookingsInput } from "./AttendeeCreateNestedManyWithoutBookingsInput";
+import { DailyEventReferenceWhereUniqueInput } from "../dailyEventReference/DailyEventReferenceWhereUniqueInput";
+import { PaymentCreateNestedManyWithoutBookingsInput } from "./PaymentCreateNestedManyWithoutBookingsInput";
+import { WorkflowReminderCreateNestedManyWithoutBookingsInput } from "./WorkflowReminderCreateNestedManyWithoutBookingsInput";
+
+export type BookingCreateInput = {
+ uid: string;
+ user?: UserWhereUniqueInput | null;
+ eventType?: EventTypeWhereUniqueInput | null;
+ title: string;
+ description?: string | null;
+ customInputs?: InputJsonValue;
+ startTime: Date;
+ endTime: Date;
+ location?: string | null;
+ updatedAt?: Date | null;
+ status: "CANCELLED" | "ACCEPTED" | "REJECTED" | "PENDING";
+ paid: boolean;
+ cancellationReason?: string | null;
+ rejectionReason?: string | null;
+ dynamicEventSlugRef?: string | null;
+ dynamicGroupSlugRef?: string | null;
+ rescheduled?: boolean | null;
+ fromReschedule?: string | null;
+ recurringEventId?: string | null;
+ smsReminderNumber?: string | null;
+ destinationCalendar?: DestinationCalendarWhereUniqueInput | null;
+ references?: BookingReferenceCreateNestedManyWithoutBookingsInput;
+ attendees?: AttendeeCreateNestedManyWithoutBookingsInput;
+ dailyRef?: DailyEventReferenceWhereUniqueInput | null;
+ payment?: PaymentCreateNestedManyWithoutBookingsInput;
+ workflowReminders?: WorkflowReminderCreateNestedManyWithoutBookingsInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/BookingFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/booking/BookingFindManyArgs.ts
new file mode 100644
index 0000000..7de1ead
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/BookingFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { BookingWhereInput } from "./BookingWhereInput";
+import { BookingOrderByInput } from "./BookingOrderByInput";
+
+export type BookingFindManyArgs = {
+ where?: BookingWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/BookingFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/booking/BookingFindUniqueArgs.ts
new file mode 100644
index 0000000..a643956
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/BookingFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { BookingWhereUniqueInput } from "./BookingWhereUniqueInput";
+
+export type BookingFindUniqueArgs = {
+ where: BookingWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/BookingListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/booking/BookingListRelationFilter.ts
new file mode 100644
index 0000000..19ec90f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/BookingListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { BookingWhereInput } from "./BookingWhereInput";
+
+export type BookingListRelationFilter = {
+ every?: BookingWhereInput;
+ some?: BookingWhereInput;
+ none?: BookingWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/BookingOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/booking/BookingOrderByInput.ts
new file mode 100644
index 0000000..7223050
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/BookingOrderByInput.ts
@@ -0,0 +1,28 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type BookingOrderByInput = {
+ id?: SortOrder;
+ uid?: SortOrder;
+ userId?: SortOrder;
+ eventTypeId?: SortOrder;
+ title?: SortOrder;
+ description?: SortOrder;
+ customInputs?: SortOrder;
+ startTime?: SortOrder;
+ endTime?: SortOrder;
+ location?: SortOrder;
+ createdAt?: SortOrder;
+ updatedAt?: SortOrder;
+ status?: SortOrder;
+ paid?: SortOrder;
+ cancellationReason?: SortOrder;
+ rejectionReason?: SortOrder;
+ dynamicEventSlugRef?: SortOrder;
+ dynamicGroupSlugRef?: SortOrder;
+ rescheduled?: SortOrder;
+ fromReschedule?: SortOrder;
+ recurringEventId?: SortOrder;
+ smsReminderNumber?: SortOrder;
+ destinationCalendarId?: SortOrder;
+ dailyRefId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/BookingReferenceCreateNestedManyWithoutBookingsInput.ts b/apps/roi-cacl-2-admin/src/api/booking/BookingReferenceCreateNestedManyWithoutBookingsInput.ts
new file mode 100644
index 0000000..a04fe26
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/BookingReferenceCreateNestedManyWithoutBookingsInput.ts
@@ -0,0 +1,5 @@
+import { BookingReferenceWhereUniqueInput } from "../bookingReference/BookingReferenceWhereUniqueInput";
+
+export type BookingReferenceCreateNestedManyWithoutBookingsInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/BookingReferenceUpdateManyWithoutBookingsInput.ts b/apps/roi-cacl-2-admin/src/api/booking/BookingReferenceUpdateManyWithoutBookingsInput.ts
new file mode 100644
index 0000000..7f422e2
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/BookingReferenceUpdateManyWithoutBookingsInput.ts
@@ -0,0 +1,7 @@
+import { BookingReferenceWhereUniqueInput } from "../bookingReference/BookingReferenceWhereUniqueInput";
+
+export type BookingReferenceUpdateManyWithoutBookingsInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/BookingUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/booking/BookingUpdateInput.ts
new file mode 100644
index 0000000..d9142a6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/BookingUpdateInput.ts
@@ -0,0 +1,38 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+import { InputJsonValue } from "../../types";
+import { DestinationCalendarWhereUniqueInput } from "../destinationCalendar/DestinationCalendarWhereUniqueInput";
+import { BookingReferenceUpdateManyWithoutBookingsInput } from "./BookingReferenceUpdateManyWithoutBookingsInput";
+import { AttendeeUpdateManyWithoutBookingsInput } from "./AttendeeUpdateManyWithoutBookingsInput";
+import { DailyEventReferenceWhereUniqueInput } from "../dailyEventReference/DailyEventReferenceWhereUniqueInput";
+import { PaymentUpdateManyWithoutBookingsInput } from "./PaymentUpdateManyWithoutBookingsInput";
+import { WorkflowReminderUpdateManyWithoutBookingsInput } from "./WorkflowReminderUpdateManyWithoutBookingsInput";
+
+export type BookingUpdateInput = {
+ uid?: string;
+ user?: UserWhereUniqueInput | null;
+ eventType?: EventTypeWhereUniqueInput | null;
+ title?: string;
+ description?: string | null;
+ customInputs?: InputJsonValue;
+ startTime?: Date;
+ endTime?: Date;
+ location?: string | null;
+ updatedAt?: Date | null;
+ status?: "CANCELLED" | "ACCEPTED" | "REJECTED" | "PENDING";
+ paid?: boolean;
+ cancellationReason?: string | null;
+ rejectionReason?: string | null;
+ dynamicEventSlugRef?: string | null;
+ dynamicGroupSlugRef?: string | null;
+ rescheduled?: boolean | null;
+ fromReschedule?: string | null;
+ recurringEventId?: string | null;
+ smsReminderNumber?: string | null;
+ destinationCalendar?: DestinationCalendarWhereUniqueInput | null;
+ references?: BookingReferenceUpdateManyWithoutBookingsInput;
+ attendees?: AttendeeUpdateManyWithoutBookingsInput;
+ dailyRef?: DailyEventReferenceWhereUniqueInput | null;
+ payment?: PaymentUpdateManyWithoutBookingsInput;
+ workflowReminders?: WorkflowReminderUpdateManyWithoutBookingsInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/BookingWhereInput.ts b/apps/roi-cacl-2-admin/src/api/booking/BookingWhereInput.ts
new file mode 100644
index 0000000..73a8bc4
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/BookingWhereInput.ts
@@ -0,0 +1,47 @@
+import { IntFilter } from "../../util/IntFilter";
+import { StringFilter } from "../../util/StringFilter";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { JsonFilter } from "../../util/JsonFilter";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+import { DateTimeNullableFilter } from "../../util/DateTimeNullableFilter";
+import { BooleanFilter } from "../../util/BooleanFilter";
+import { BooleanNullableFilter } from "../../util/BooleanNullableFilter";
+import { DestinationCalendarWhereUniqueInput } from "../destinationCalendar/DestinationCalendarWhereUniqueInput";
+import { BookingReferenceListRelationFilter } from "../bookingReference/BookingReferenceListRelationFilter";
+import { AttendeeListRelationFilter } from "../attendee/AttendeeListRelationFilter";
+import { DailyEventReferenceWhereUniqueInput } from "../dailyEventReference/DailyEventReferenceWhereUniqueInput";
+import { PaymentListRelationFilter } from "../payment/PaymentListRelationFilter";
+import { WorkflowReminderListRelationFilter } from "../workflowReminder/WorkflowReminderListRelationFilter";
+
+export type BookingWhereInput = {
+ id?: IntFilter;
+ uid?: StringFilter;
+ user?: UserWhereUniqueInput;
+ eventType?: EventTypeWhereUniqueInput;
+ title?: StringFilter;
+ description?: StringNullableFilter;
+ customInputs?: JsonFilter;
+ startTime?: DateTimeFilter;
+ endTime?: DateTimeFilter;
+ location?: StringNullableFilter;
+ createdAt?: DateTimeFilter;
+ updatedAt?: DateTimeNullableFilter;
+ status?: "CANCELLED" | "ACCEPTED" | "REJECTED" | "PENDING";
+ paid?: BooleanFilter;
+ cancellationReason?: StringNullableFilter;
+ rejectionReason?: StringNullableFilter;
+ dynamicEventSlugRef?: StringNullableFilter;
+ dynamicGroupSlugRef?: StringNullableFilter;
+ rescheduled?: BooleanNullableFilter;
+ fromReschedule?: StringNullableFilter;
+ recurringEventId?: StringNullableFilter;
+ smsReminderNumber?: StringNullableFilter;
+ destinationCalendar?: DestinationCalendarWhereUniqueInput;
+ references?: BookingReferenceListRelationFilter;
+ attendees?: AttendeeListRelationFilter;
+ dailyRef?: DailyEventReferenceWhereUniqueInput;
+ payment?: PaymentListRelationFilter;
+ workflowReminders?: WorkflowReminderListRelationFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/BookingWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/booking/BookingWhereUniqueInput.ts
new file mode 100644
index 0000000..f839472
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/BookingWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type BookingWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/CreateBookingArgs.ts b/apps/roi-cacl-2-admin/src/api/booking/CreateBookingArgs.ts
new file mode 100644
index 0000000..cbe8e39
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/CreateBookingArgs.ts
@@ -0,0 +1,5 @@
+import { BookingCreateInput } from "./BookingCreateInput";
+
+export type CreateBookingArgs = {
+ data: BookingCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/DeleteBookingArgs.ts b/apps/roi-cacl-2-admin/src/api/booking/DeleteBookingArgs.ts
new file mode 100644
index 0000000..e300090
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/DeleteBookingArgs.ts
@@ -0,0 +1,5 @@
+import { BookingWhereUniqueInput } from "./BookingWhereUniqueInput";
+
+export type DeleteBookingArgs = {
+ where: BookingWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/EnumBookingStatus.ts b/apps/roi-cacl-2-admin/src/api/booking/EnumBookingStatus.ts
new file mode 100644
index 0000000..890dd29
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/EnumBookingStatus.ts
@@ -0,0 +1,6 @@
+export enum EnumBookingStatus {
+ Cancelled = "CANCELLED",
+ Accepted = "ACCEPTED",
+ Rejected = "REJECTED",
+ Pending = "PENDING",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/booking/PaymentCreateNestedManyWithoutBookingsInput.ts b/apps/roi-cacl-2-admin/src/api/booking/PaymentCreateNestedManyWithoutBookingsInput.ts
new file mode 100644
index 0000000..479528d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/PaymentCreateNestedManyWithoutBookingsInput.ts
@@ -0,0 +1,5 @@
+import { PaymentWhereUniqueInput } from "../payment/PaymentWhereUniqueInput";
+
+export type PaymentCreateNestedManyWithoutBookingsInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/PaymentUpdateManyWithoutBookingsInput.ts b/apps/roi-cacl-2-admin/src/api/booking/PaymentUpdateManyWithoutBookingsInput.ts
new file mode 100644
index 0000000..eb27b72
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/PaymentUpdateManyWithoutBookingsInput.ts
@@ -0,0 +1,7 @@
+import { PaymentWhereUniqueInput } from "../payment/PaymentWhereUniqueInput";
+
+export type PaymentUpdateManyWithoutBookingsInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/UpdateBookingArgs.ts b/apps/roi-cacl-2-admin/src/api/booking/UpdateBookingArgs.ts
new file mode 100644
index 0000000..dec11dc
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/UpdateBookingArgs.ts
@@ -0,0 +1,7 @@
+import { BookingWhereUniqueInput } from "./BookingWhereUniqueInput";
+import { BookingUpdateInput } from "./BookingUpdateInput";
+
+export type UpdateBookingArgs = {
+ where: BookingWhereUniqueInput;
+ data: BookingUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/WorkflowReminderCreateNestedManyWithoutBookingsInput.ts b/apps/roi-cacl-2-admin/src/api/booking/WorkflowReminderCreateNestedManyWithoutBookingsInput.ts
new file mode 100644
index 0000000..574c230
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/WorkflowReminderCreateNestedManyWithoutBookingsInput.ts
@@ -0,0 +1,5 @@
+import { WorkflowReminderWhereUniqueInput } from "../workflowReminder/WorkflowReminderWhereUniqueInput";
+
+export type WorkflowReminderCreateNestedManyWithoutBookingsInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/booking/WorkflowReminderUpdateManyWithoutBookingsInput.ts b/apps/roi-cacl-2-admin/src/api/booking/WorkflowReminderUpdateManyWithoutBookingsInput.ts
new file mode 100644
index 0000000..b681094
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/booking/WorkflowReminderUpdateManyWithoutBookingsInput.ts
@@ -0,0 +1,7 @@
+import { WorkflowReminderWhereUniqueInput } from "../workflowReminder/WorkflowReminderWhereUniqueInput";
+
+export type WorkflowReminderUpdateManyWithoutBookingsInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReference.ts b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReference.ts
new file mode 100644
index 0000000..ade9b3b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReference.ts
@@ -0,0 +1,13 @@
+import { Booking } from "../booking/Booking";
+
+export type BookingReference = {
+ id: number;
+ typeField: string;
+ uid: string;
+ meetingId: string | null;
+ meetingPassword: string | null;
+ meetingUrl: string | null;
+ booking?: Booking | null;
+ externalCalendarId: string | null;
+ deleted: boolean | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceCountArgs.ts b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceCountArgs.ts
new file mode 100644
index 0000000..bbc6203
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceCountArgs.ts
@@ -0,0 +1,5 @@
+import { BookingReferenceWhereInput } from "./BookingReferenceWhereInput";
+
+export type BookingReferenceCountArgs = {
+ where?: BookingReferenceWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceCreateInput.ts b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceCreateInput.ts
new file mode 100644
index 0000000..e703c70
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceCreateInput.ts
@@ -0,0 +1,12 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+
+export type BookingReferenceCreateInput = {
+ typeField: string;
+ uid: string;
+ meetingId?: string | null;
+ meetingPassword?: string | null;
+ meetingUrl?: string | null;
+ booking?: BookingWhereUniqueInput | null;
+ externalCalendarId?: string | null;
+ deleted?: boolean | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceFindManyArgs.ts
new file mode 100644
index 0000000..22c05d7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { BookingReferenceWhereInput } from "./BookingReferenceWhereInput";
+import { BookingReferenceOrderByInput } from "./BookingReferenceOrderByInput";
+
+export type BookingReferenceFindManyArgs = {
+ where?: BookingReferenceWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceFindUniqueArgs.ts
new file mode 100644
index 0000000..631da1f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { BookingReferenceWhereUniqueInput } from "./BookingReferenceWhereUniqueInput";
+
+export type BookingReferenceFindUniqueArgs = {
+ where: BookingReferenceWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceListRelationFilter.ts
new file mode 100644
index 0000000..1529999
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { BookingReferenceWhereInput } from "./BookingReferenceWhereInput";
+
+export type BookingReferenceListRelationFilter = {
+ every?: BookingReferenceWhereInput;
+ some?: BookingReferenceWhereInput;
+ none?: BookingReferenceWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceOrderByInput.ts
new file mode 100644
index 0000000..8fa3cd1
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceOrderByInput.ts
@@ -0,0 +1,13 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type BookingReferenceOrderByInput = {
+ id?: SortOrder;
+ typeField?: SortOrder;
+ uid?: SortOrder;
+ meetingId?: SortOrder;
+ meetingPassword?: SortOrder;
+ meetingUrl?: SortOrder;
+ bookingId?: SortOrder;
+ externalCalendarId?: SortOrder;
+ deleted?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceUpdateInput.ts
new file mode 100644
index 0000000..fe4015a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceUpdateInput.ts
@@ -0,0 +1,12 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+
+export type BookingReferenceUpdateInput = {
+ typeField?: string;
+ uid?: string;
+ meetingId?: string | null;
+ meetingPassword?: string | null;
+ meetingUrl?: string | null;
+ booking?: BookingWhereUniqueInput | null;
+ externalCalendarId?: string | null;
+ deleted?: boolean | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceWhereInput.ts b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceWhereInput.ts
new file mode 100644
index 0000000..c5c4dc4
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceWhereInput.ts
@@ -0,0 +1,17 @@
+import { IntFilter } from "../../util/IntFilter";
+import { StringFilter } from "../../util/StringFilter";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+import { BooleanNullableFilter } from "../../util/BooleanNullableFilter";
+
+export type BookingReferenceWhereInput = {
+ id?: IntFilter;
+ typeField?: StringFilter;
+ uid?: StringFilter;
+ meetingId?: StringNullableFilter;
+ meetingPassword?: StringNullableFilter;
+ meetingUrl?: StringNullableFilter;
+ booking?: BookingWhereUniqueInput;
+ externalCalendarId?: StringNullableFilter;
+ deleted?: BooleanNullableFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceWhereUniqueInput.ts
new file mode 100644
index 0000000..4e93b4d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/bookingReference/BookingReferenceWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type BookingReferenceWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/bookingReference/CreateBookingReferenceArgs.ts b/apps/roi-cacl-2-admin/src/api/bookingReference/CreateBookingReferenceArgs.ts
new file mode 100644
index 0000000..272a9e1
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/bookingReference/CreateBookingReferenceArgs.ts
@@ -0,0 +1,5 @@
+import { BookingReferenceCreateInput } from "./BookingReferenceCreateInput";
+
+export type CreateBookingReferenceArgs = {
+ data: BookingReferenceCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/bookingReference/DeleteBookingReferenceArgs.ts b/apps/roi-cacl-2-admin/src/api/bookingReference/DeleteBookingReferenceArgs.ts
new file mode 100644
index 0000000..34ea8f8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/bookingReference/DeleteBookingReferenceArgs.ts
@@ -0,0 +1,5 @@
+import { BookingReferenceWhereUniqueInput } from "./BookingReferenceWhereUniqueInput";
+
+export type DeleteBookingReferenceArgs = {
+ where: BookingReferenceWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/bookingReference/UpdateBookingReferenceArgs.ts b/apps/roi-cacl-2-admin/src/api/bookingReference/UpdateBookingReferenceArgs.ts
new file mode 100644
index 0000000..7aef572
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/bookingReference/UpdateBookingReferenceArgs.ts
@@ -0,0 +1,7 @@
+import { BookingReferenceWhereUniqueInput } from "./BookingReferenceWhereUniqueInput";
+import { BookingReferenceUpdateInput } from "./BookingReferenceUpdateInput";
+
+export type UpdateBookingReferenceArgs = {
+ where: BookingReferenceWhereUniqueInput;
+ data: BookingReferenceUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/CreateCredentialArgs.ts b/apps/roi-cacl-2-admin/src/api/credential/CreateCredentialArgs.ts
new file mode 100644
index 0000000..7928c43
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/CreateCredentialArgs.ts
@@ -0,0 +1,5 @@
+import { CredentialCreateInput } from "./CredentialCreateInput";
+
+export type CreateCredentialArgs = {
+ data: CredentialCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/Credential.ts b/apps/roi-cacl-2-admin/src/api/credential/Credential.ts
new file mode 100644
index 0000000..038fe38
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/Credential.ts
@@ -0,0 +1,13 @@
+import { JsonValue } from "type-fest";
+import { User } from "../user/User";
+import { AppModel } from "../appModel/AppModel";
+import { DestinationCalendar } from "../destinationCalendar/DestinationCalendar";
+
+export type Credential = {
+ id: number;
+ typeField: string;
+ key: JsonValue;
+ user?: User | null;
+ appField?: AppModel | null;
+ destinationCalendars?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/CredentialCountArgs.ts b/apps/roi-cacl-2-admin/src/api/credential/CredentialCountArgs.ts
new file mode 100644
index 0000000..44c2059
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/CredentialCountArgs.ts
@@ -0,0 +1,5 @@
+import { CredentialWhereInput } from "./CredentialWhereInput";
+
+export type CredentialCountArgs = {
+ where?: CredentialWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/CredentialCreateInput.ts b/apps/roi-cacl-2-admin/src/api/credential/CredentialCreateInput.ts
new file mode 100644
index 0000000..cfd2dac
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/CredentialCreateInput.ts
@@ -0,0 +1,12 @@
+import { InputJsonValue } from "../../types";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { AppModelWhereUniqueInput } from "../appModel/AppModelWhereUniqueInput";
+import { DestinationCalendarCreateNestedManyWithoutCredentialsInput } from "./DestinationCalendarCreateNestedManyWithoutCredentialsInput";
+
+export type CredentialCreateInput = {
+ typeField: string;
+ key: InputJsonValue;
+ user?: UserWhereUniqueInput | null;
+ appField?: AppModelWhereUniqueInput | null;
+ destinationCalendars?: DestinationCalendarCreateNestedManyWithoutCredentialsInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/CredentialFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/credential/CredentialFindManyArgs.ts
new file mode 100644
index 0000000..70c087d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/CredentialFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { CredentialWhereInput } from "./CredentialWhereInput";
+import { CredentialOrderByInput } from "./CredentialOrderByInput";
+
+export type CredentialFindManyArgs = {
+ where?: CredentialWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/CredentialFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/credential/CredentialFindUniqueArgs.ts
new file mode 100644
index 0000000..b8c2c69
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/CredentialFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { CredentialWhereUniqueInput } from "./CredentialWhereUniqueInput";
+
+export type CredentialFindUniqueArgs = {
+ where: CredentialWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/CredentialListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/credential/CredentialListRelationFilter.ts
new file mode 100644
index 0000000..47fe6be
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/CredentialListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { CredentialWhereInput } from "./CredentialWhereInput";
+
+export type CredentialListRelationFilter = {
+ every?: CredentialWhereInput;
+ some?: CredentialWhereInput;
+ none?: CredentialWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/CredentialOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/credential/CredentialOrderByInput.ts
new file mode 100644
index 0000000..a7a33e7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/CredentialOrderByInput.ts
@@ -0,0 +1,9 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type CredentialOrderByInput = {
+ id?: SortOrder;
+ typeField?: SortOrder;
+ key?: SortOrder;
+ userId?: SortOrder;
+ appId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/CredentialUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/credential/CredentialUpdateInput.ts
new file mode 100644
index 0000000..aaee496
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/CredentialUpdateInput.ts
@@ -0,0 +1,12 @@
+import { InputJsonValue } from "../../types";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { AppModelWhereUniqueInput } from "../appModel/AppModelWhereUniqueInput";
+import { DestinationCalendarUpdateManyWithoutCredentialsInput } from "./DestinationCalendarUpdateManyWithoutCredentialsInput";
+
+export type CredentialUpdateInput = {
+ typeField?: string;
+ key?: InputJsonValue;
+ user?: UserWhereUniqueInput | null;
+ appField?: AppModelWhereUniqueInput | null;
+ destinationCalendars?: DestinationCalendarUpdateManyWithoutCredentialsInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/CredentialWhereInput.ts b/apps/roi-cacl-2-admin/src/api/credential/CredentialWhereInput.ts
new file mode 100644
index 0000000..088d334
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/CredentialWhereInput.ts
@@ -0,0 +1,15 @@
+import { IntFilter } from "../../util/IntFilter";
+import { StringFilter } from "../../util/StringFilter";
+import { JsonFilter } from "../../util/JsonFilter";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { AppModelWhereUniqueInput } from "../appModel/AppModelWhereUniqueInput";
+import { DestinationCalendarListRelationFilter } from "../destinationCalendar/DestinationCalendarListRelationFilter";
+
+export type CredentialWhereInput = {
+ id?: IntFilter;
+ typeField?: StringFilter;
+ key?: JsonFilter;
+ user?: UserWhereUniqueInput;
+ appField?: AppModelWhereUniqueInput;
+ destinationCalendars?: DestinationCalendarListRelationFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/CredentialWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/credential/CredentialWhereUniqueInput.ts
new file mode 100644
index 0000000..91d746d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/CredentialWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type CredentialWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/DeleteCredentialArgs.ts b/apps/roi-cacl-2-admin/src/api/credential/DeleteCredentialArgs.ts
new file mode 100644
index 0000000..e7bc1b7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/DeleteCredentialArgs.ts
@@ -0,0 +1,5 @@
+import { CredentialWhereUniqueInput } from "./CredentialWhereUniqueInput";
+
+export type DeleteCredentialArgs = {
+ where: CredentialWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/DestinationCalendarCreateNestedManyWithoutCredentialsInput.ts b/apps/roi-cacl-2-admin/src/api/credential/DestinationCalendarCreateNestedManyWithoutCredentialsInput.ts
new file mode 100644
index 0000000..770a340
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/DestinationCalendarCreateNestedManyWithoutCredentialsInput.ts
@@ -0,0 +1,5 @@
+import { DestinationCalendarWhereUniqueInput } from "../destinationCalendar/DestinationCalendarWhereUniqueInput";
+
+export type DestinationCalendarCreateNestedManyWithoutCredentialsInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/DestinationCalendarUpdateManyWithoutCredentialsInput.ts b/apps/roi-cacl-2-admin/src/api/credential/DestinationCalendarUpdateManyWithoutCredentialsInput.ts
new file mode 100644
index 0000000..f96c5f3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/DestinationCalendarUpdateManyWithoutCredentialsInput.ts
@@ -0,0 +1,7 @@
+import { DestinationCalendarWhereUniqueInput } from "../destinationCalendar/DestinationCalendarWhereUniqueInput";
+
+export type DestinationCalendarUpdateManyWithoutCredentialsInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/credential/UpdateCredentialArgs.ts b/apps/roi-cacl-2-admin/src/api/credential/UpdateCredentialArgs.ts
new file mode 100644
index 0000000..8925e08
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/credential/UpdateCredentialArgs.ts
@@ -0,0 +1,7 @@
+import { CredentialWhereUniqueInput } from "./CredentialWhereUniqueInput";
+import { CredentialUpdateInput } from "./CredentialUpdateInput";
+
+export type UpdateCredentialArgs = {
+ where: CredentialWhereUniqueInput;
+ data: CredentialUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/dailyEventReference/CreateDailyEventReferenceArgs.ts b/apps/roi-cacl-2-admin/src/api/dailyEventReference/CreateDailyEventReferenceArgs.ts
new file mode 100644
index 0000000..bcf439f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/dailyEventReference/CreateDailyEventReferenceArgs.ts
@@ -0,0 +1,5 @@
+import { DailyEventReferenceCreateInput } from "./DailyEventReferenceCreateInput";
+
+export type CreateDailyEventReferenceArgs = {
+ data: DailyEventReferenceCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReference.ts b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReference.ts
new file mode 100644
index 0000000..4ae53b3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReference.ts
@@ -0,0 +1,8 @@
+import { Booking } from "../booking/Booking";
+
+export type DailyEventReference = {
+ id: number;
+ dailyurl: string;
+ dailytoken: string;
+ booking?: Booking | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceCountArgs.ts b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceCountArgs.ts
new file mode 100644
index 0000000..0b05279
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceCountArgs.ts
@@ -0,0 +1,5 @@
+import { DailyEventReferenceWhereInput } from "./DailyEventReferenceWhereInput";
+
+export type DailyEventReferenceCountArgs = {
+ where?: DailyEventReferenceWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceCreateInput.ts b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceCreateInput.ts
new file mode 100644
index 0000000..61d93a4
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceCreateInput.ts
@@ -0,0 +1,7 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+
+export type DailyEventReferenceCreateInput = {
+ dailyurl: string;
+ dailytoken: string;
+ booking?: BookingWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceFindManyArgs.ts
new file mode 100644
index 0000000..fce5096
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { DailyEventReferenceWhereInput } from "./DailyEventReferenceWhereInput";
+import { DailyEventReferenceOrderByInput } from "./DailyEventReferenceOrderByInput";
+
+export type DailyEventReferenceFindManyArgs = {
+ where?: DailyEventReferenceWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceFindUniqueArgs.ts
new file mode 100644
index 0000000..7ab496b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { DailyEventReferenceWhereUniqueInput } from "./DailyEventReferenceWhereUniqueInput";
+
+export type DailyEventReferenceFindUniqueArgs = {
+ where: DailyEventReferenceWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceListRelationFilter.ts
new file mode 100644
index 0000000..e46024b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { DailyEventReferenceWhereInput } from "./DailyEventReferenceWhereInput";
+
+export type DailyEventReferenceListRelationFilter = {
+ every?: DailyEventReferenceWhereInput;
+ some?: DailyEventReferenceWhereInput;
+ none?: DailyEventReferenceWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceOrderByInput.ts
new file mode 100644
index 0000000..6c80d39
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceOrderByInput.ts
@@ -0,0 +1,8 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type DailyEventReferenceOrderByInput = {
+ id?: SortOrder;
+ dailyurl?: SortOrder;
+ dailytoken?: SortOrder;
+ bookingId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceUpdateInput.ts
new file mode 100644
index 0000000..7f7d81f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceUpdateInput.ts
@@ -0,0 +1,7 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+
+export type DailyEventReferenceUpdateInput = {
+ dailyurl?: string;
+ dailytoken?: string;
+ booking?: BookingWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceWhereInput.ts b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceWhereInput.ts
new file mode 100644
index 0000000..ee09245
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceWhereInput.ts
@@ -0,0 +1,10 @@
+import { IntFilter } from "../../util/IntFilter";
+import { StringFilter } from "../../util/StringFilter";
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+
+export type DailyEventReferenceWhereInput = {
+ id?: IntFilter;
+ dailyurl?: StringFilter;
+ dailytoken?: StringFilter;
+ booking?: BookingWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceWhereUniqueInput.ts
new file mode 100644
index 0000000..414f96f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DailyEventReferenceWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type DailyEventReferenceWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/dailyEventReference/DeleteDailyEventReferenceArgs.ts b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DeleteDailyEventReferenceArgs.ts
new file mode 100644
index 0000000..7685ae8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/dailyEventReference/DeleteDailyEventReferenceArgs.ts
@@ -0,0 +1,5 @@
+import { DailyEventReferenceWhereUniqueInput } from "./DailyEventReferenceWhereUniqueInput";
+
+export type DeleteDailyEventReferenceArgs = {
+ where: DailyEventReferenceWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/dailyEventReference/UpdateDailyEventReferenceArgs.ts b/apps/roi-cacl-2-admin/src/api/dailyEventReference/UpdateDailyEventReferenceArgs.ts
new file mode 100644
index 0000000..7339400
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/dailyEventReference/UpdateDailyEventReferenceArgs.ts
@@ -0,0 +1,7 @@
+import { DailyEventReferenceWhereUniqueInput } from "./DailyEventReferenceWhereUniqueInput";
+import { DailyEventReferenceUpdateInput } from "./DailyEventReferenceUpdateInput";
+
+export type UpdateDailyEventReferenceArgs = {
+ where: DailyEventReferenceWhereUniqueInput;
+ data: DailyEventReferenceUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/destinationCalendar/CreateDestinationCalendarArgs.ts b/apps/roi-cacl-2-admin/src/api/destinationCalendar/CreateDestinationCalendarArgs.ts
new file mode 100644
index 0000000..84b233b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/destinationCalendar/CreateDestinationCalendarArgs.ts
@@ -0,0 +1,5 @@
+import { DestinationCalendarCreateInput } from "./DestinationCalendarCreateInput";
+
+export type CreateDestinationCalendarArgs = {
+ data: DestinationCalendarCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/destinationCalendar/DeleteDestinationCalendarArgs.ts b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DeleteDestinationCalendarArgs.ts
new file mode 100644
index 0000000..856d51a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DeleteDestinationCalendarArgs.ts
@@ -0,0 +1,5 @@
+import { DestinationCalendarWhereUniqueInput } from "./DestinationCalendarWhereUniqueInput";
+
+export type DeleteDestinationCalendarArgs = {
+ where: DestinationCalendarWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendar.ts b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendar.ts
new file mode 100644
index 0000000..0c2de1c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendar.ts
@@ -0,0 +1,14 @@
+import { User } from "../user/User";
+import { Booking } from "../booking/Booking";
+import { EventType } from "../eventType/EventType";
+import { Credential } from "../credential/Credential";
+
+export type DestinationCalendar = {
+ id: number;
+ integration: string;
+ externalId: string;
+ user?: User | null;
+ booking?: Booking | null;
+ eventType?: EventType | null;
+ credential?: Credential | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarCountArgs.ts b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarCountArgs.ts
new file mode 100644
index 0000000..a2af77c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarCountArgs.ts
@@ -0,0 +1,5 @@
+import { DestinationCalendarWhereInput } from "./DestinationCalendarWhereInput";
+
+export type DestinationCalendarCountArgs = {
+ where?: DestinationCalendarWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarCreateInput.ts b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarCreateInput.ts
new file mode 100644
index 0000000..fb5bc97
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarCreateInput.ts
@@ -0,0 +1,13 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+import { CredentialWhereUniqueInput } from "../credential/CredentialWhereUniqueInput";
+
+export type DestinationCalendarCreateInput = {
+ integration: string;
+ externalId: string;
+ user?: UserWhereUniqueInput | null;
+ booking?: BookingWhereUniqueInput | null;
+ eventType?: EventTypeWhereUniqueInput | null;
+ credential?: CredentialWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarFindManyArgs.ts
new file mode 100644
index 0000000..4fd3d6b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { DestinationCalendarWhereInput } from "./DestinationCalendarWhereInput";
+import { DestinationCalendarOrderByInput } from "./DestinationCalendarOrderByInput";
+
+export type DestinationCalendarFindManyArgs = {
+ where?: DestinationCalendarWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarFindUniqueArgs.ts
new file mode 100644
index 0000000..b30c5a3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { DestinationCalendarWhereUniqueInput } from "./DestinationCalendarWhereUniqueInput";
+
+export type DestinationCalendarFindUniqueArgs = {
+ where: DestinationCalendarWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarListRelationFilter.ts
new file mode 100644
index 0000000..1db1850
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { DestinationCalendarWhereInput } from "./DestinationCalendarWhereInput";
+
+export type DestinationCalendarListRelationFilter = {
+ every?: DestinationCalendarWhereInput;
+ some?: DestinationCalendarWhereInput;
+ none?: DestinationCalendarWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarOrderByInput.ts
new file mode 100644
index 0000000..a9a006a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarOrderByInput.ts
@@ -0,0 +1,11 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type DestinationCalendarOrderByInput = {
+ id?: SortOrder;
+ integration?: SortOrder;
+ externalId?: SortOrder;
+ userId?: SortOrder;
+ bookingId?: SortOrder;
+ eventTypeId?: SortOrder;
+ credentialId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarUpdateInput.ts
new file mode 100644
index 0000000..26d4a54
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarUpdateInput.ts
@@ -0,0 +1,13 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+import { CredentialWhereUniqueInput } from "../credential/CredentialWhereUniqueInput";
+
+export type DestinationCalendarUpdateInput = {
+ integration?: string;
+ externalId?: string;
+ user?: UserWhereUniqueInput | null;
+ booking?: BookingWhereUniqueInput | null;
+ eventType?: EventTypeWhereUniqueInput | null;
+ credential?: CredentialWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarWhereInput.ts b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarWhereInput.ts
new file mode 100644
index 0000000..40a6cd3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarWhereInput.ts
@@ -0,0 +1,16 @@
+import { IntFilter } from "../../util/IntFilter";
+import { StringFilter } from "../../util/StringFilter";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+import { CredentialWhereUniqueInput } from "../credential/CredentialWhereUniqueInput";
+
+export type DestinationCalendarWhereInput = {
+ id?: IntFilter;
+ integration?: StringFilter;
+ externalId?: StringFilter;
+ user?: UserWhereUniqueInput;
+ booking?: BookingWhereUniqueInput;
+ eventType?: EventTypeWhereUniqueInput;
+ credential?: CredentialWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarWhereUniqueInput.ts
new file mode 100644
index 0000000..bc14df4
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/destinationCalendar/DestinationCalendarWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type DestinationCalendarWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/destinationCalendar/UpdateDestinationCalendarArgs.ts b/apps/roi-cacl-2-admin/src/api/destinationCalendar/UpdateDestinationCalendarArgs.ts
new file mode 100644
index 0000000..f0060f6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/destinationCalendar/UpdateDestinationCalendarArgs.ts
@@ -0,0 +1,7 @@
+import { DestinationCalendarWhereUniqueInput } from "./DestinationCalendarWhereUniqueInput";
+import { DestinationCalendarUpdateInput } from "./DestinationCalendarUpdateInput";
+
+export type UpdateDestinationCalendarArgs = {
+ where: DestinationCalendarWhereUniqueInput;
+ data: DestinationCalendarUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/AvailabilityCreateNestedManyWithoutEventTypesInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/AvailabilityCreateNestedManyWithoutEventTypesInput.ts
new file mode 100644
index 0000000..3419047
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/AvailabilityCreateNestedManyWithoutEventTypesInput.ts
@@ -0,0 +1,5 @@
+import { AvailabilityWhereUniqueInput } from "../availability/AvailabilityWhereUniqueInput";
+
+export type AvailabilityCreateNestedManyWithoutEventTypesInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/AvailabilityUpdateManyWithoutEventTypesInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/AvailabilityUpdateManyWithoutEventTypesInput.ts
new file mode 100644
index 0000000..8a70e39
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/AvailabilityUpdateManyWithoutEventTypesInput.ts
@@ -0,0 +1,7 @@
+import { AvailabilityWhereUniqueInput } from "../availability/AvailabilityWhereUniqueInput";
+
+export type AvailabilityUpdateManyWithoutEventTypesInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/BookingCreateNestedManyWithoutEventTypesInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/BookingCreateNestedManyWithoutEventTypesInput.ts
new file mode 100644
index 0000000..a699f3e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/BookingCreateNestedManyWithoutEventTypesInput.ts
@@ -0,0 +1,5 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+
+export type BookingCreateNestedManyWithoutEventTypesInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/BookingUpdateManyWithoutEventTypesInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/BookingUpdateManyWithoutEventTypesInput.ts
new file mode 100644
index 0000000..ff319b0
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/BookingUpdateManyWithoutEventTypesInput.ts
@@ -0,0 +1,7 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+
+export type BookingUpdateManyWithoutEventTypesInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/CreateEventTypeArgs.ts b/apps/roi-cacl-2-admin/src/api/eventType/CreateEventTypeArgs.ts
new file mode 100644
index 0000000..0b7d670
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/CreateEventTypeArgs.ts
@@ -0,0 +1,5 @@
+import { EventTypeCreateInput } from "./EventTypeCreateInput";
+
+export type CreateEventTypeArgs = {
+ data: EventTypeCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/DeleteEventTypeArgs.ts b/apps/roi-cacl-2-admin/src/api/eventType/DeleteEventTypeArgs.ts
new file mode 100644
index 0000000..c5c5250
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/DeleteEventTypeArgs.ts
@@ -0,0 +1,5 @@
+import { EventTypeWhereUniqueInput } from "./EventTypeWhereUniqueInput";
+
+export type DeleteEventTypeArgs = {
+ where: EventTypeWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EnumEventTypePeriodType.ts b/apps/roi-cacl-2-admin/src/api/eventType/EnumEventTypePeriodType.ts
new file mode 100644
index 0000000..36b2a69
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EnumEventTypePeriodType.ts
@@ -0,0 +1,5 @@
+export enum EnumEventTypePeriodType {
+ Unlimited = "UNLIMITED",
+ Rolling = "ROLLING",
+ Range = "RANGE",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EnumEventTypeSchedulingType.ts b/apps/roi-cacl-2-admin/src/api/eventType/EnumEventTypeSchedulingType.ts
new file mode 100644
index 0000000..b312294
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EnumEventTypeSchedulingType.ts
@@ -0,0 +1,4 @@
+export enum EnumEventTypeSchedulingType {
+ RoundRobin = "ROUND_ROBIN",
+ Collective = "COLLECTIVE",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EventType.ts b/apps/roi-cacl-2-admin/src/api/eventType/EventType.ts
new file mode 100644
index 0000000..59a8b82
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EventType.ts
@@ -0,0 +1,54 @@
+import { JsonValue } from "type-fest";
+import { User } from "../user/User";
+import { Team } from "../team/Team";
+import { Schedule } from "../schedule/Schedule";
+import { DestinationCalendar } from "../destinationCalendar/DestinationCalendar";
+import { Booking } from "../booking/Booking";
+import { Availability } from "../availability/Availability";
+import { EventTypeCustomInput } from "../eventTypeCustomInput/EventTypeCustomInput";
+import { Webhook } from "../webhook/Webhook";
+import { HashedLink } from "../hashedLink/HashedLink";
+import { WorkflowsOnEventType } from "../workflowsOnEventType/WorkflowsOnEventType";
+
+export type EventType = {
+ id: number;
+ title: string;
+ slug: string;
+ description: string | null;
+ position: number;
+ locations: JsonValue;
+ length: number;
+ hidden: boolean;
+ users?: Array;
+ userId: number | null;
+ team?: Team | null;
+ eventName: string | null;
+ timeZone: string | null;
+ periodType?: "UNLIMITED" | "ROLLING" | "RANGE";
+ periodStartDate: Date | null;
+ periodEndDate: Date | null;
+ periodDays: number | null;
+ periodCountCalendarDays: boolean | null;
+ requiresConfirmation: boolean;
+ recurringEvent: JsonValue;
+ disableGuests: boolean;
+ hideCalendarNotes: boolean;
+ minimumBookingNotice: number;
+ beforeEventBuffer: number;
+ afterEventBuffer: number;
+ seatsPerTimeSlot: number | null;
+ schedulingType?: "ROUND_ROBIN" | "COLLECTIVE" | null;
+ schedule?: Schedule | null;
+ price: number;
+ currency: string;
+ slotInterval: number | null;
+ metadata: JsonValue;
+ successRedirectUrl: string | null;
+ destinationCalendar?: DestinationCalendar | null;
+ bookings?: Array;
+ availability?: Array;
+ customInputs?: Array;
+ webhooks?: Array;
+ hashedLink?: HashedLink | null;
+ workflows?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EventTypeCountArgs.ts b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeCountArgs.ts
new file mode 100644
index 0000000..3962cf4
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeCountArgs.ts
@@ -0,0 +1,5 @@
+import { EventTypeWhereInput } from "./EventTypeWhereInput";
+
+export type EventTypeCountArgs = {
+ where?: EventTypeWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EventTypeCreateInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeCreateInput.ts
new file mode 100644
index 0000000..e1faafb
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeCreateInput.ts
@@ -0,0 +1,53 @@
+import { InputJsonValue } from "../../types";
+import { UserCreateNestedManyWithoutEventTypesInput } from "./UserCreateNestedManyWithoutEventTypesInput";
+import { TeamWhereUniqueInput } from "../team/TeamWhereUniqueInput";
+import { ScheduleWhereUniqueInput } from "../schedule/ScheduleWhereUniqueInput";
+import { DestinationCalendarWhereUniqueInput } from "../destinationCalendar/DestinationCalendarWhereUniqueInput";
+import { BookingCreateNestedManyWithoutEventTypesInput } from "./BookingCreateNestedManyWithoutEventTypesInput";
+import { AvailabilityCreateNestedManyWithoutEventTypesInput } from "./AvailabilityCreateNestedManyWithoutEventTypesInput";
+import { EventTypeCustomInputCreateNestedManyWithoutEventTypesInput } from "./EventTypeCustomInputCreateNestedManyWithoutEventTypesInput";
+import { WebhookCreateNestedManyWithoutEventTypesInput } from "./WebhookCreateNestedManyWithoutEventTypesInput";
+import { HashedLinkWhereUniqueInput } from "../hashedLink/HashedLinkWhereUniqueInput";
+import { WorkflowsOnEventTypeCreateNestedManyWithoutEventTypesInput } from "./WorkflowsOnEventTypeCreateNestedManyWithoutEventTypesInput";
+
+export type EventTypeCreateInput = {
+ title: string;
+ slug: string;
+ description?: string | null;
+ position: number;
+ locations?: InputJsonValue;
+ length: number;
+ hidden: boolean;
+ users?: UserCreateNestedManyWithoutEventTypesInput;
+ userId?: number | null;
+ team?: TeamWhereUniqueInput | null;
+ eventName?: string | null;
+ timeZone?: string | null;
+ periodType: "UNLIMITED" | "ROLLING" | "RANGE";
+ periodStartDate?: Date | null;
+ periodEndDate?: Date | null;
+ periodDays?: number | null;
+ periodCountCalendarDays?: boolean | null;
+ requiresConfirmation: boolean;
+ recurringEvent?: InputJsonValue;
+ disableGuests: boolean;
+ hideCalendarNotes: boolean;
+ minimumBookingNotice: number;
+ beforeEventBuffer: number;
+ afterEventBuffer: number;
+ seatsPerTimeSlot?: number | null;
+ schedulingType?: "ROUND_ROBIN" | "COLLECTIVE" | null;
+ schedule?: ScheduleWhereUniqueInput | null;
+ price: number;
+ currency: string;
+ slotInterval?: number | null;
+ metadata?: InputJsonValue;
+ successRedirectUrl?: string | null;
+ destinationCalendar?: DestinationCalendarWhereUniqueInput | null;
+ bookings?: BookingCreateNestedManyWithoutEventTypesInput;
+ availability?: AvailabilityCreateNestedManyWithoutEventTypesInput;
+ customInputs?: EventTypeCustomInputCreateNestedManyWithoutEventTypesInput;
+ webhooks?: WebhookCreateNestedManyWithoutEventTypesInput;
+ hashedLink?: HashedLinkWhereUniqueInput | null;
+ workflows?: WorkflowsOnEventTypeCreateNestedManyWithoutEventTypesInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EventTypeCustomInputCreateNestedManyWithoutEventTypesInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeCustomInputCreateNestedManyWithoutEventTypesInput.ts
new file mode 100644
index 0000000..35e9f6b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeCustomInputCreateNestedManyWithoutEventTypesInput.ts
@@ -0,0 +1,5 @@
+import { EventTypeCustomInputWhereUniqueInput } from "../eventTypeCustomInput/EventTypeCustomInputWhereUniqueInput";
+
+export type EventTypeCustomInputCreateNestedManyWithoutEventTypesInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EventTypeCustomInputUpdateManyWithoutEventTypesInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeCustomInputUpdateManyWithoutEventTypesInput.ts
new file mode 100644
index 0000000..26a90bc
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeCustomInputUpdateManyWithoutEventTypesInput.ts
@@ -0,0 +1,7 @@
+import { EventTypeCustomInputWhereUniqueInput } from "../eventTypeCustomInput/EventTypeCustomInputWhereUniqueInput";
+
+export type EventTypeCustomInputUpdateManyWithoutEventTypesInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EventTypeFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeFindManyArgs.ts
new file mode 100644
index 0000000..58cb470
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { EventTypeWhereInput } from "./EventTypeWhereInput";
+import { EventTypeOrderByInput } from "./EventTypeOrderByInput";
+
+export type EventTypeFindManyArgs = {
+ where?: EventTypeWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EventTypeFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeFindUniqueArgs.ts
new file mode 100644
index 0000000..f323c7b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { EventTypeWhereUniqueInput } from "./EventTypeWhereUniqueInput";
+
+export type EventTypeFindUniqueArgs = {
+ where: EventTypeWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EventTypeListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeListRelationFilter.ts
new file mode 100644
index 0000000..e16933b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { EventTypeWhereInput } from "./EventTypeWhereInput";
+
+export type EventTypeListRelationFilter = {
+ every?: EventTypeWhereInput;
+ some?: EventTypeWhereInput;
+ none?: EventTypeWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EventTypeOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeOrderByInput.ts
new file mode 100644
index 0000000..b7bb507
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeOrderByInput.ts
@@ -0,0 +1,38 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type EventTypeOrderByInput = {
+ id?: SortOrder;
+ title?: SortOrder;
+ slug?: SortOrder;
+ description?: SortOrder;
+ position?: SortOrder;
+ locations?: SortOrder;
+ length?: SortOrder;
+ hidden?: SortOrder;
+ userId?: SortOrder;
+ teamId?: SortOrder;
+ eventName?: SortOrder;
+ timeZone?: SortOrder;
+ periodType?: SortOrder;
+ periodStartDate?: SortOrder;
+ periodEndDate?: SortOrder;
+ periodDays?: SortOrder;
+ periodCountCalendarDays?: SortOrder;
+ requiresConfirmation?: SortOrder;
+ recurringEvent?: SortOrder;
+ disableGuests?: SortOrder;
+ hideCalendarNotes?: SortOrder;
+ minimumBookingNotice?: SortOrder;
+ beforeEventBuffer?: SortOrder;
+ afterEventBuffer?: SortOrder;
+ seatsPerTimeSlot?: SortOrder;
+ schedulingType?: SortOrder;
+ scheduleId?: SortOrder;
+ price?: SortOrder;
+ currency?: SortOrder;
+ slotInterval?: SortOrder;
+ metadata?: SortOrder;
+ successRedirectUrl?: SortOrder;
+ destinationCalendarId?: SortOrder;
+ hashedLinkId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EventTypeUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeUpdateInput.ts
new file mode 100644
index 0000000..ac6c891
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeUpdateInput.ts
@@ -0,0 +1,53 @@
+import { InputJsonValue } from "../../types";
+import { UserUpdateManyWithoutEventTypesInput } from "./UserUpdateManyWithoutEventTypesInput";
+import { TeamWhereUniqueInput } from "../team/TeamWhereUniqueInput";
+import { ScheduleWhereUniqueInput } from "../schedule/ScheduleWhereUniqueInput";
+import { DestinationCalendarWhereUniqueInput } from "../destinationCalendar/DestinationCalendarWhereUniqueInput";
+import { BookingUpdateManyWithoutEventTypesInput } from "./BookingUpdateManyWithoutEventTypesInput";
+import { AvailabilityUpdateManyWithoutEventTypesInput } from "./AvailabilityUpdateManyWithoutEventTypesInput";
+import { EventTypeCustomInputUpdateManyWithoutEventTypesInput } from "./EventTypeCustomInputUpdateManyWithoutEventTypesInput";
+import { WebhookUpdateManyWithoutEventTypesInput } from "./WebhookUpdateManyWithoutEventTypesInput";
+import { HashedLinkWhereUniqueInput } from "../hashedLink/HashedLinkWhereUniqueInput";
+import { WorkflowsOnEventTypeUpdateManyWithoutEventTypesInput } from "./WorkflowsOnEventTypeUpdateManyWithoutEventTypesInput";
+
+export type EventTypeUpdateInput = {
+ title?: string;
+ slug?: string;
+ description?: string | null;
+ position?: number;
+ locations?: InputJsonValue;
+ length?: number;
+ hidden?: boolean;
+ users?: UserUpdateManyWithoutEventTypesInput;
+ userId?: number | null;
+ team?: TeamWhereUniqueInput | null;
+ eventName?: string | null;
+ timeZone?: string | null;
+ periodType?: "UNLIMITED" | "ROLLING" | "RANGE";
+ periodStartDate?: Date | null;
+ periodEndDate?: Date | null;
+ periodDays?: number | null;
+ periodCountCalendarDays?: boolean | null;
+ requiresConfirmation?: boolean;
+ recurringEvent?: InputJsonValue;
+ disableGuests?: boolean;
+ hideCalendarNotes?: boolean;
+ minimumBookingNotice?: number;
+ beforeEventBuffer?: number;
+ afterEventBuffer?: number;
+ seatsPerTimeSlot?: number | null;
+ schedulingType?: "ROUND_ROBIN" | "COLLECTIVE" | null;
+ schedule?: ScheduleWhereUniqueInput | null;
+ price?: number;
+ currency?: string;
+ slotInterval?: number | null;
+ metadata?: InputJsonValue;
+ successRedirectUrl?: string | null;
+ destinationCalendar?: DestinationCalendarWhereUniqueInput | null;
+ bookings?: BookingUpdateManyWithoutEventTypesInput;
+ availability?: AvailabilityUpdateManyWithoutEventTypesInput;
+ customInputs?: EventTypeCustomInputUpdateManyWithoutEventTypesInput;
+ webhooks?: WebhookUpdateManyWithoutEventTypesInput;
+ hashedLink?: HashedLinkWhereUniqueInput | null;
+ workflows?: WorkflowsOnEventTypeUpdateManyWithoutEventTypesInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EventTypeWhereInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeWhereInput.ts
new file mode 100644
index 0000000..39381cd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeWhereInput.ts
@@ -0,0 +1,61 @@
+import { IntFilter } from "../../util/IntFilter";
+import { StringFilter } from "../../util/StringFilter";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { JsonFilter } from "../../util/JsonFilter";
+import { BooleanFilter } from "../../util/BooleanFilter";
+import { UserListRelationFilter } from "../user/UserListRelationFilter";
+import { IntNullableFilter } from "../../util/IntNullableFilter";
+import { TeamWhereUniqueInput } from "../team/TeamWhereUniqueInput";
+import { DateTimeNullableFilter } from "../../util/DateTimeNullableFilter";
+import { BooleanNullableFilter } from "../../util/BooleanNullableFilter";
+import { ScheduleWhereUniqueInput } from "../schedule/ScheduleWhereUniqueInput";
+import { DestinationCalendarWhereUniqueInput } from "../destinationCalendar/DestinationCalendarWhereUniqueInput";
+import { BookingListRelationFilter } from "../booking/BookingListRelationFilter";
+import { AvailabilityListRelationFilter } from "../availability/AvailabilityListRelationFilter";
+import { EventTypeCustomInputListRelationFilter } from "../eventTypeCustomInput/EventTypeCustomInputListRelationFilter";
+import { WebhookListRelationFilter } from "../webhook/WebhookListRelationFilter";
+import { HashedLinkWhereUniqueInput } from "../hashedLink/HashedLinkWhereUniqueInput";
+import { WorkflowsOnEventTypeListRelationFilter } from "../workflowsOnEventType/WorkflowsOnEventTypeListRelationFilter";
+
+export type EventTypeWhereInput = {
+ id?: IntFilter;
+ title?: StringFilter;
+ slug?: StringFilter;
+ description?: StringNullableFilter;
+ position?: IntFilter;
+ locations?: JsonFilter;
+ length?: IntFilter;
+ hidden?: BooleanFilter;
+ users?: UserListRelationFilter;
+ userId?: IntNullableFilter;
+ team?: TeamWhereUniqueInput;
+ eventName?: StringNullableFilter;
+ timeZone?: StringNullableFilter;
+ periodType?: "UNLIMITED" | "ROLLING" | "RANGE";
+ periodStartDate?: DateTimeNullableFilter;
+ periodEndDate?: DateTimeNullableFilter;
+ periodDays?: IntNullableFilter;
+ periodCountCalendarDays?: BooleanNullableFilter;
+ requiresConfirmation?: BooleanFilter;
+ recurringEvent?: JsonFilter;
+ disableGuests?: BooleanFilter;
+ hideCalendarNotes?: BooleanFilter;
+ minimumBookingNotice?: IntFilter;
+ beforeEventBuffer?: IntFilter;
+ afterEventBuffer?: IntFilter;
+ seatsPerTimeSlot?: IntNullableFilter;
+ schedulingType?: "ROUND_ROBIN" | "COLLECTIVE";
+ schedule?: ScheduleWhereUniqueInput;
+ price?: IntFilter;
+ currency?: StringFilter;
+ slotInterval?: IntNullableFilter;
+ metadata?: JsonFilter;
+ successRedirectUrl?: StringNullableFilter;
+ destinationCalendar?: DestinationCalendarWhereUniqueInput;
+ bookings?: BookingListRelationFilter;
+ availability?: AvailabilityListRelationFilter;
+ customInputs?: EventTypeCustomInputListRelationFilter;
+ webhooks?: WebhookListRelationFilter;
+ hashedLink?: HashedLinkWhereUniqueInput;
+ workflows?: WorkflowsOnEventTypeListRelationFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/EventTypeWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeWhereUniqueInput.ts
new file mode 100644
index 0000000..b3a6c51
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/EventTypeWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type EventTypeWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/UpdateEventTypeArgs.ts b/apps/roi-cacl-2-admin/src/api/eventType/UpdateEventTypeArgs.ts
new file mode 100644
index 0000000..8d64c25
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/UpdateEventTypeArgs.ts
@@ -0,0 +1,7 @@
+import { EventTypeWhereUniqueInput } from "./EventTypeWhereUniqueInput";
+import { EventTypeUpdateInput } from "./EventTypeUpdateInput";
+
+export type UpdateEventTypeArgs = {
+ where: EventTypeWhereUniqueInput;
+ data: EventTypeUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/UserCreateNestedManyWithoutEventTypesInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/UserCreateNestedManyWithoutEventTypesInput.ts
new file mode 100644
index 0000000..7f5b2e8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/UserCreateNestedManyWithoutEventTypesInput.ts
@@ -0,0 +1,5 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type UserCreateNestedManyWithoutEventTypesInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/UserUpdateManyWithoutEventTypesInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/UserUpdateManyWithoutEventTypesInput.ts
new file mode 100644
index 0000000..e43cf10
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/UserUpdateManyWithoutEventTypesInput.ts
@@ -0,0 +1,7 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type UserUpdateManyWithoutEventTypesInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/WebhookCreateNestedManyWithoutEventTypesInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/WebhookCreateNestedManyWithoutEventTypesInput.ts
new file mode 100644
index 0000000..b138b4d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/WebhookCreateNestedManyWithoutEventTypesInput.ts
@@ -0,0 +1,5 @@
+import { WebhookWhereUniqueInput } from "../webhook/WebhookWhereUniqueInput";
+
+export type WebhookCreateNestedManyWithoutEventTypesInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/WebhookUpdateManyWithoutEventTypesInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/WebhookUpdateManyWithoutEventTypesInput.ts
new file mode 100644
index 0000000..6c72caa
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/WebhookUpdateManyWithoutEventTypesInput.ts
@@ -0,0 +1,7 @@
+import { WebhookWhereUniqueInput } from "../webhook/WebhookWhereUniqueInput";
+
+export type WebhookUpdateManyWithoutEventTypesInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/WorkflowsOnEventTypeCreateNestedManyWithoutEventTypesInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/WorkflowsOnEventTypeCreateNestedManyWithoutEventTypesInput.ts
new file mode 100644
index 0000000..0e57b22
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/WorkflowsOnEventTypeCreateNestedManyWithoutEventTypesInput.ts
@@ -0,0 +1,5 @@
+import { WorkflowsOnEventTypeWhereUniqueInput } from "../workflowsOnEventType/WorkflowsOnEventTypeWhereUniqueInput";
+
+export type WorkflowsOnEventTypeCreateNestedManyWithoutEventTypesInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventType/WorkflowsOnEventTypeUpdateManyWithoutEventTypesInput.ts b/apps/roi-cacl-2-admin/src/api/eventType/WorkflowsOnEventTypeUpdateManyWithoutEventTypesInput.ts
new file mode 100644
index 0000000..b753a53
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventType/WorkflowsOnEventTypeUpdateManyWithoutEventTypesInput.ts
@@ -0,0 +1,7 @@
+import { WorkflowsOnEventTypeWhereUniqueInput } from "../workflowsOnEventType/WorkflowsOnEventTypeWhereUniqueInput";
+
+export type WorkflowsOnEventTypeUpdateManyWithoutEventTypesInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/CreateEventTypeCustomInputArgs.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/CreateEventTypeCustomInputArgs.ts
new file mode 100644
index 0000000..2c106e0
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/CreateEventTypeCustomInputArgs.ts
@@ -0,0 +1,5 @@
+import { EventTypeCustomInputCreateInput } from "./EventTypeCustomInputCreateInput";
+
+export type CreateEventTypeCustomInputArgs = {
+ data: EventTypeCustomInputCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/DeleteEventTypeCustomInputArgs.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/DeleteEventTypeCustomInputArgs.ts
new file mode 100644
index 0000000..78715f5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/DeleteEventTypeCustomInputArgs.ts
@@ -0,0 +1,5 @@
+import { EventTypeCustomInputWhereUniqueInput } from "./EventTypeCustomInputWhereUniqueInput";
+
+export type DeleteEventTypeCustomInputArgs = {
+ where: EventTypeCustomInputWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EnumEventTypeCustomInputType.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EnumEventTypeCustomInputType.ts
new file mode 100644
index 0000000..71067f0
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EnumEventTypeCustomInputType.ts
@@ -0,0 +1,6 @@
+export enum EnumEventTypeCustomInputType {
+ Text = "TEXT",
+ Textlong = "TEXTLONG",
+ Number = "NUMBER",
+ Bool = "BOOL",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInput.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInput.ts
new file mode 100644
index 0000000..ee3426b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInput.ts
@@ -0,0 +1,10 @@
+import { EventType } from "../eventType/EventType";
+
+export type EventTypeCustomInput = {
+ id: number;
+ eventType?: EventType;
+ label: string;
+ type?: "TEXT" | "TEXTLONG" | "NUMBER" | "BOOL";
+ required: boolean;
+ placeholder: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputCountArgs.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputCountArgs.ts
new file mode 100644
index 0000000..7dd55f3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputCountArgs.ts
@@ -0,0 +1,5 @@
+import { EventTypeCustomInputWhereInput } from "./EventTypeCustomInputWhereInput";
+
+export type EventTypeCustomInputCountArgs = {
+ where?: EventTypeCustomInputWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputCreateInput.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputCreateInput.ts
new file mode 100644
index 0000000..b5c33ef
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputCreateInput.ts
@@ -0,0 +1,9 @@
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type EventTypeCustomInputCreateInput = {
+ eventType: EventTypeWhereUniqueInput;
+ label: string;
+ type: "TEXT" | "TEXTLONG" | "NUMBER" | "BOOL";
+ required: boolean;
+ placeholder: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputFindManyArgs.ts
new file mode 100644
index 0000000..e91ff32
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { EventTypeCustomInputWhereInput } from "./EventTypeCustomInputWhereInput";
+import { EventTypeCustomInputOrderByInput } from "./EventTypeCustomInputOrderByInput";
+
+export type EventTypeCustomInputFindManyArgs = {
+ where?: EventTypeCustomInputWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputFindUniqueArgs.ts
new file mode 100644
index 0000000..56ad350
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { EventTypeCustomInputWhereUniqueInput } from "./EventTypeCustomInputWhereUniqueInput";
+
+export type EventTypeCustomInputFindUniqueArgs = {
+ where: EventTypeCustomInputWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputListRelationFilter.ts
new file mode 100644
index 0000000..3dd1dfb
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { EventTypeCustomInputWhereInput } from "./EventTypeCustomInputWhereInput";
+
+export type EventTypeCustomInputListRelationFilter = {
+ every?: EventTypeCustomInputWhereInput;
+ some?: EventTypeCustomInputWhereInput;
+ none?: EventTypeCustomInputWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputOrderByInput.ts
new file mode 100644
index 0000000..92e1620
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputOrderByInput.ts
@@ -0,0 +1,10 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type EventTypeCustomInputOrderByInput = {
+ id?: SortOrder;
+ eventTypeId?: SortOrder;
+ label?: SortOrder;
+ type?: SortOrder;
+ required?: SortOrder;
+ placeholder?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputUpdateInput.ts
new file mode 100644
index 0000000..764f066
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputUpdateInput.ts
@@ -0,0 +1,9 @@
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type EventTypeCustomInputUpdateInput = {
+ eventType?: EventTypeWhereUniqueInput;
+ label?: string;
+ type?: "TEXT" | "TEXTLONG" | "NUMBER" | "BOOL";
+ required?: boolean;
+ placeholder?: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputWhereInput.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputWhereInput.ts
new file mode 100644
index 0000000..8c850f4
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputWhereInput.ts
@@ -0,0 +1,13 @@
+import { IntFilter } from "../../util/IntFilter";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+import { StringFilter } from "../../util/StringFilter";
+import { BooleanFilter } from "../../util/BooleanFilter";
+
+export type EventTypeCustomInputWhereInput = {
+ id?: IntFilter;
+ eventType?: EventTypeWhereUniqueInput;
+ label?: StringFilter;
+ type?: "TEXT" | "TEXTLONG" | "NUMBER" | "BOOL";
+ required?: BooleanFilter;
+ placeholder?: StringFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputWhereUniqueInput.ts
new file mode 100644
index 0000000..c123ddc
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/EventTypeCustomInputWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type EventTypeCustomInputWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/UpdateEventTypeCustomInputArgs.ts b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/UpdateEventTypeCustomInputArgs.ts
new file mode 100644
index 0000000..2a8b4e7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/eventTypeCustomInput/UpdateEventTypeCustomInputArgs.ts
@@ -0,0 +1,7 @@
+import { EventTypeCustomInputWhereUniqueInput } from "./EventTypeCustomInputWhereUniqueInput";
+import { EventTypeCustomInputUpdateInput } from "./EventTypeCustomInputUpdateInput";
+
+export type UpdateEventTypeCustomInputArgs = {
+ where: EventTypeCustomInputWhereUniqueInput;
+ data: EventTypeCustomInputUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/feedback/CreateFeedbackArgs.ts b/apps/roi-cacl-2-admin/src/api/feedback/CreateFeedbackArgs.ts
new file mode 100644
index 0000000..d240a06
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/feedback/CreateFeedbackArgs.ts
@@ -0,0 +1,5 @@
+import { FeedbackCreateInput } from "./FeedbackCreateInput";
+
+export type CreateFeedbackArgs = {
+ data: FeedbackCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/feedback/DeleteFeedbackArgs.ts b/apps/roi-cacl-2-admin/src/api/feedback/DeleteFeedbackArgs.ts
new file mode 100644
index 0000000..6f5ae8a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/feedback/DeleteFeedbackArgs.ts
@@ -0,0 +1,5 @@
+import { FeedbackWhereUniqueInput } from "./FeedbackWhereUniqueInput";
+
+export type DeleteFeedbackArgs = {
+ where: FeedbackWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/feedback/Feedback.ts b/apps/roi-cacl-2-admin/src/api/feedback/Feedback.ts
new file mode 100644
index 0000000..8ef203a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/feedback/Feedback.ts
@@ -0,0 +1,9 @@
+import { User } from "../user/User";
+
+export type Feedback = {
+ id: number;
+ date: Date;
+ user?: User;
+ rating: string;
+ comment: string | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/feedback/FeedbackCountArgs.ts b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackCountArgs.ts
new file mode 100644
index 0000000..8617b35
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackCountArgs.ts
@@ -0,0 +1,5 @@
+import { FeedbackWhereInput } from "./FeedbackWhereInput";
+
+export type FeedbackCountArgs = {
+ where?: FeedbackWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/feedback/FeedbackCreateInput.ts b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackCreateInput.ts
new file mode 100644
index 0000000..73b3012
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackCreateInput.ts
@@ -0,0 +1,8 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type FeedbackCreateInput = {
+ date: Date;
+ user: UserWhereUniqueInput;
+ rating: string;
+ comment?: string | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/feedback/FeedbackFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackFindManyArgs.ts
new file mode 100644
index 0000000..a49bda3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { FeedbackWhereInput } from "./FeedbackWhereInput";
+import { FeedbackOrderByInput } from "./FeedbackOrderByInput";
+
+export type FeedbackFindManyArgs = {
+ where?: FeedbackWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/feedback/FeedbackFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackFindUniqueArgs.ts
new file mode 100644
index 0000000..481268a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { FeedbackWhereUniqueInput } from "./FeedbackWhereUniqueInput";
+
+export type FeedbackFindUniqueArgs = {
+ where: FeedbackWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/feedback/FeedbackListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackListRelationFilter.ts
new file mode 100644
index 0000000..0a59af8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { FeedbackWhereInput } from "./FeedbackWhereInput";
+
+export type FeedbackListRelationFilter = {
+ every?: FeedbackWhereInput;
+ some?: FeedbackWhereInput;
+ none?: FeedbackWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/feedback/FeedbackOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackOrderByInput.ts
new file mode 100644
index 0000000..c1d87cb
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackOrderByInput.ts
@@ -0,0 +1,9 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type FeedbackOrderByInput = {
+ id?: SortOrder;
+ date?: SortOrder;
+ userId?: SortOrder;
+ rating?: SortOrder;
+ comment?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/feedback/FeedbackUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackUpdateInput.ts
new file mode 100644
index 0000000..5da5404
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackUpdateInput.ts
@@ -0,0 +1,8 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type FeedbackUpdateInput = {
+ date?: Date;
+ user?: UserWhereUniqueInput;
+ rating?: string;
+ comment?: string | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/feedback/FeedbackWhereInput.ts b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackWhereInput.ts
new file mode 100644
index 0000000..973c389
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackWhereInput.ts
@@ -0,0 +1,13 @@
+import { IntFilter } from "../../util/IntFilter";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { StringFilter } from "../../util/StringFilter";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+
+export type FeedbackWhereInput = {
+ id?: IntFilter;
+ date?: DateTimeFilter;
+ user?: UserWhereUniqueInput;
+ rating?: StringFilter;
+ comment?: StringNullableFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/feedback/FeedbackWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackWhereUniqueInput.ts
new file mode 100644
index 0000000..0566d6d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/feedback/FeedbackWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type FeedbackWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/feedback/UpdateFeedbackArgs.ts b/apps/roi-cacl-2-admin/src/api/feedback/UpdateFeedbackArgs.ts
new file mode 100644
index 0000000..f0d376c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/feedback/UpdateFeedbackArgs.ts
@@ -0,0 +1,7 @@
+import { FeedbackWhereUniqueInput } from "./FeedbackWhereUniqueInput";
+import { FeedbackUpdateInput } from "./FeedbackUpdateInput";
+
+export type UpdateFeedbackArgs = {
+ where: FeedbackWhereUniqueInput;
+ data: FeedbackUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/hashedLink/CreateHashedLinkArgs.ts b/apps/roi-cacl-2-admin/src/api/hashedLink/CreateHashedLinkArgs.ts
new file mode 100644
index 0000000..8ca3780
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/hashedLink/CreateHashedLinkArgs.ts
@@ -0,0 +1,5 @@
+import { HashedLinkCreateInput } from "./HashedLinkCreateInput";
+
+export type CreateHashedLinkArgs = {
+ data: HashedLinkCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/hashedLink/DeleteHashedLinkArgs.ts b/apps/roi-cacl-2-admin/src/api/hashedLink/DeleteHashedLinkArgs.ts
new file mode 100644
index 0000000..f9f0239
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/hashedLink/DeleteHashedLinkArgs.ts
@@ -0,0 +1,5 @@
+import { HashedLinkWhereUniqueInput } from "./HashedLinkWhereUniqueInput";
+
+export type DeleteHashedLinkArgs = {
+ where: HashedLinkWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLink.ts b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLink.ts
new file mode 100644
index 0000000..2b86985
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLink.ts
@@ -0,0 +1,7 @@
+import { EventType } from "../eventType/EventType";
+
+export type HashedLink = {
+ id: number;
+ link: string;
+ eventType?: EventType;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkCountArgs.ts b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkCountArgs.ts
new file mode 100644
index 0000000..d9dec91
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkCountArgs.ts
@@ -0,0 +1,5 @@
+import { HashedLinkWhereInput } from "./HashedLinkWhereInput";
+
+export type HashedLinkCountArgs = {
+ where?: HashedLinkWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkCreateInput.ts b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkCreateInput.ts
new file mode 100644
index 0000000..dcd3fac
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkCreateInput.ts
@@ -0,0 +1,6 @@
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type HashedLinkCreateInput = {
+ link: string;
+ eventType: EventTypeWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkFindManyArgs.ts
new file mode 100644
index 0000000..057e744
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { HashedLinkWhereInput } from "./HashedLinkWhereInput";
+import { HashedLinkOrderByInput } from "./HashedLinkOrderByInput";
+
+export type HashedLinkFindManyArgs = {
+ where?: HashedLinkWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkFindUniqueArgs.ts
new file mode 100644
index 0000000..1a27674
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { HashedLinkWhereUniqueInput } from "./HashedLinkWhereUniqueInput";
+
+export type HashedLinkFindUniqueArgs = {
+ where: HashedLinkWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkListRelationFilter.ts
new file mode 100644
index 0000000..8f1f4e3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { HashedLinkWhereInput } from "./HashedLinkWhereInput";
+
+export type HashedLinkListRelationFilter = {
+ every?: HashedLinkWhereInput;
+ some?: HashedLinkWhereInput;
+ none?: HashedLinkWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkOrderByInput.ts
new file mode 100644
index 0000000..fb1ae91
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkOrderByInput.ts
@@ -0,0 +1,7 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type HashedLinkOrderByInput = {
+ id?: SortOrder;
+ link?: SortOrder;
+ eventTypeId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkUpdateInput.ts
new file mode 100644
index 0000000..c2972be
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkUpdateInput.ts
@@ -0,0 +1,6 @@
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type HashedLinkUpdateInput = {
+ link?: string;
+ eventType?: EventTypeWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkWhereInput.ts b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkWhereInput.ts
new file mode 100644
index 0000000..a08945f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkWhereInput.ts
@@ -0,0 +1,9 @@
+import { IntFilter } from "../../util/IntFilter";
+import { StringFilter } from "../../util/StringFilter";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type HashedLinkWhereInput = {
+ id?: IntFilter;
+ link?: StringFilter;
+ eventType?: EventTypeWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkWhereUniqueInput.ts
new file mode 100644
index 0000000..11dd6fe
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/hashedLink/HashedLinkWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type HashedLinkWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/hashedLink/UpdateHashedLinkArgs.ts b/apps/roi-cacl-2-admin/src/api/hashedLink/UpdateHashedLinkArgs.ts
new file mode 100644
index 0000000..53d7e33
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/hashedLink/UpdateHashedLinkArgs.ts
@@ -0,0 +1,7 @@
+import { HashedLinkWhereUniqueInput } from "./HashedLinkWhereUniqueInput";
+import { HashedLinkUpdateInput } from "./HashedLinkUpdateInput";
+
+export type UpdateHashedLinkArgs = {
+ where: HashedLinkWhereUniqueInput;
+ data: HashedLinkUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/impersonation/CreateImpersonationArgs.ts b/apps/roi-cacl-2-admin/src/api/impersonation/CreateImpersonationArgs.ts
new file mode 100644
index 0000000..7f793be
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/impersonation/CreateImpersonationArgs.ts
@@ -0,0 +1,5 @@
+import { ImpersonationCreateInput } from "./ImpersonationCreateInput";
+
+export type CreateImpersonationArgs = {
+ data: ImpersonationCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/impersonation/DeleteImpersonationArgs.ts b/apps/roi-cacl-2-admin/src/api/impersonation/DeleteImpersonationArgs.ts
new file mode 100644
index 0000000..aa23f7d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/impersonation/DeleteImpersonationArgs.ts
@@ -0,0 +1,5 @@
+import { ImpersonationWhereUniqueInput } from "./ImpersonationWhereUniqueInput";
+
+export type DeleteImpersonationArgs = {
+ where: ImpersonationWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/impersonation/Impersonation.ts b/apps/roi-cacl-2-admin/src/api/impersonation/Impersonation.ts
new file mode 100644
index 0000000..d887684
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/impersonation/Impersonation.ts
@@ -0,0 +1,8 @@
+import { User } from "../user/User";
+
+export type Impersonation = {
+ id: number;
+ createdAt: Date;
+ impersonatedUser?: User;
+ impersonatedBy?: User;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationCountArgs.ts b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationCountArgs.ts
new file mode 100644
index 0000000..a296e4c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationCountArgs.ts
@@ -0,0 +1,5 @@
+import { ImpersonationWhereInput } from "./ImpersonationWhereInput";
+
+export type ImpersonationCountArgs = {
+ where?: ImpersonationWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationCreateInput.ts b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationCreateInput.ts
new file mode 100644
index 0000000..dddce8e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationCreateInput.ts
@@ -0,0 +1,6 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type ImpersonationCreateInput = {
+ impersonatedUser: UserWhereUniqueInput;
+ impersonatedBy: UserWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationFindManyArgs.ts
new file mode 100644
index 0000000..019cdf4
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { ImpersonationWhereInput } from "./ImpersonationWhereInput";
+import { ImpersonationOrderByInput } from "./ImpersonationOrderByInput";
+
+export type ImpersonationFindManyArgs = {
+ where?: ImpersonationWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationFindUniqueArgs.ts
new file mode 100644
index 0000000..60514a3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { ImpersonationWhereUniqueInput } from "./ImpersonationWhereUniqueInput";
+
+export type ImpersonationFindUniqueArgs = {
+ where: ImpersonationWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationListRelationFilter.ts
new file mode 100644
index 0000000..ce5f2b7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { ImpersonationWhereInput } from "./ImpersonationWhereInput";
+
+export type ImpersonationListRelationFilter = {
+ every?: ImpersonationWhereInput;
+ some?: ImpersonationWhereInput;
+ none?: ImpersonationWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationOrderByInput.ts
new file mode 100644
index 0000000..155cbfd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationOrderByInput.ts
@@ -0,0 +1,8 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type ImpersonationOrderByInput = {
+ id?: SortOrder;
+ createdAt?: SortOrder;
+ impersonatedUserId?: SortOrder;
+ impersonatedById?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationUpdateInput.ts
new file mode 100644
index 0000000..d56ee64
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationUpdateInput.ts
@@ -0,0 +1,6 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type ImpersonationUpdateInput = {
+ impersonatedUser?: UserWhereUniqueInput;
+ impersonatedBy?: UserWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationWhereInput.ts b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationWhereInput.ts
new file mode 100644
index 0000000..839e871
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationWhereInput.ts
@@ -0,0 +1,10 @@
+import { IntFilter } from "../../util/IntFilter";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type ImpersonationWhereInput = {
+ id?: IntFilter;
+ createdAt?: DateTimeFilter;
+ impersonatedUser?: UserWhereUniqueInput;
+ impersonatedBy?: UserWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationWhereUniqueInput.ts
new file mode 100644
index 0000000..c89a285
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/impersonation/ImpersonationWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type ImpersonationWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/impersonation/UpdateImpersonationArgs.ts b/apps/roi-cacl-2-admin/src/api/impersonation/UpdateImpersonationArgs.ts
new file mode 100644
index 0000000..5dd4593
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/impersonation/UpdateImpersonationArgs.ts
@@ -0,0 +1,7 @@
+import { ImpersonationWhereUniqueInput } from "./ImpersonationWhereUniqueInput";
+import { ImpersonationUpdateInput } from "./ImpersonationUpdateInput";
+
+export type UpdateImpersonationArgs = {
+ where: ImpersonationWhereUniqueInput;
+ data: ImpersonationUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/membership/CreateMembershipArgs.ts b/apps/roi-cacl-2-admin/src/api/membership/CreateMembershipArgs.ts
new file mode 100644
index 0000000..a699a94
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/CreateMembershipArgs.ts
@@ -0,0 +1,5 @@
+import { MembershipCreateInput } from "./MembershipCreateInput";
+
+export type CreateMembershipArgs = {
+ data: MembershipCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/membership/DeleteMembershipArgs.ts b/apps/roi-cacl-2-admin/src/api/membership/DeleteMembershipArgs.ts
new file mode 100644
index 0000000..b14cc95
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/DeleteMembershipArgs.ts
@@ -0,0 +1,5 @@
+import { MembershipWhereUniqueInput } from "./MembershipWhereUniqueInput";
+
+export type DeleteMembershipArgs = {
+ where: MembershipWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/membership/EnumMembershipRole.ts b/apps/roi-cacl-2-admin/src/api/membership/EnumMembershipRole.ts
new file mode 100644
index 0000000..b136675
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/EnumMembershipRole.ts
@@ -0,0 +1,5 @@
+export enum EnumMembershipRole {
+ Member = "MEMBER",
+ Admin = "ADMIN",
+ Owner = "OWNER",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/membership/Membership.ts b/apps/roi-cacl-2-admin/src/api/membership/Membership.ts
new file mode 100644
index 0000000..4fbe28e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/Membership.ts
@@ -0,0 +1,10 @@
+import { Team } from "../team/Team";
+import { User } from "../user/User";
+
+export type Membership = {
+ id: number;
+ accepted: boolean;
+ role?: "MEMBER" | "ADMIN" | "OWNER";
+ team?: Team;
+ user?: User;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/membership/MembershipCountArgs.ts b/apps/roi-cacl-2-admin/src/api/membership/MembershipCountArgs.ts
new file mode 100644
index 0000000..d77d7e6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/MembershipCountArgs.ts
@@ -0,0 +1,5 @@
+import { MembershipWhereInput } from "./MembershipWhereInput";
+
+export type MembershipCountArgs = {
+ where?: MembershipWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/membership/MembershipCreateInput.ts b/apps/roi-cacl-2-admin/src/api/membership/MembershipCreateInput.ts
new file mode 100644
index 0000000..0f4925a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/MembershipCreateInput.ts
@@ -0,0 +1,9 @@
+import { TeamWhereUniqueInput } from "../team/TeamWhereUniqueInput";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type MembershipCreateInput = {
+ accepted: boolean;
+ role: "MEMBER" | "ADMIN" | "OWNER";
+ team: TeamWhereUniqueInput;
+ user: UserWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/membership/MembershipFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/membership/MembershipFindManyArgs.ts
new file mode 100644
index 0000000..95be8fa
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/MembershipFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { MembershipWhereInput } from "./MembershipWhereInput";
+import { MembershipOrderByInput } from "./MembershipOrderByInput";
+
+export type MembershipFindManyArgs = {
+ where?: MembershipWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/membership/MembershipFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/membership/MembershipFindUniqueArgs.ts
new file mode 100644
index 0000000..d05edc4
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/MembershipFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { MembershipWhereUniqueInput } from "./MembershipWhereUniqueInput";
+
+export type MembershipFindUniqueArgs = {
+ where: MembershipWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/membership/MembershipListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/membership/MembershipListRelationFilter.ts
new file mode 100644
index 0000000..330dfdf
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/MembershipListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { MembershipWhereInput } from "./MembershipWhereInput";
+
+export type MembershipListRelationFilter = {
+ every?: MembershipWhereInput;
+ some?: MembershipWhereInput;
+ none?: MembershipWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/membership/MembershipOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/membership/MembershipOrderByInput.ts
new file mode 100644
index 0000000..23ca313
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/MembershipOrderByInput.ts
@@ -0,0 +1,9 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type MembershipOrderByInput = {
+ id?: SortOrder;
+ accepted?: SortOrder;
+ role?: SortOrder;
+ teamId?: SortOrder;
+ userId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/membership/MembershipUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/membership/MembershipUpdateInput.ts
new file mode 100644
index 0000000..6a0ba3a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/MembershipUpdateInput.ts
@@ -0,0 +1,9 @@
+import { TeamWhereUniqueInput } from "../team/TeamWhereUniqueInput";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type MembershipUpdateInput = {
+ accepted?: boolean;
+ role?: "MEMBER" | "ADMIN" | "OWNER";
+ team?: TeamWhereUniqueInput;
+ user?: UserWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/membership/MembershipWhereInput.ts b/apps/roi-cacl-2-admin/src/api/membership/MembershipWhereInput.ts
new file mode 100644
index 0000000..98d4761
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/MembershipWhereInput.ts
@@ -0,0 +1,12 @@
+import { IntFilter } from "../../util/IntFilter";
+import { BooleanFilter } from "../../util/BooleanFilter";
+import { TeamWhereUniqueInput } from "../team/TeamWhereUniqueInput";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type MembershipWhereInput = {
+ id?: IntFilter;
+ accepted?: BooleanFilter;
+ role?: "MEMBER" | "ADMIN" | "OWNER";
+ team?: TeamWhereUniqueInput;
+ user?: UserWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/membership/MembershipWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/membership/MembershipWhereUniqueInput.ts
new file mode 100644
index 0000000..b14b5c5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/MembershipWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type MembershipWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/membership/UpdateMembershipArgs.ts b/apps/roi-cacl-2-admin/src/api/membership/UpdateMembershipArgs.ts
new file mode 100644
index 0000000..b3d4a41
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/membership/UpdateMembershipArgs.ts
@@ -0,0 +1,7 @@
+import { MembershipWhereUniqueInput } from "./MembershipWhereUniqueInput";
+import { MembershipUpdateInput } from "./MembershipUpdateInput";
+
+export type UpdateMembershipArgs = {
+ where: MembershipWhereUniqueInput;
+ data: MembershipUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/payment/CreatePaymentArgs.ts b/apps/roi-cacl-2-admin/src/api/payment/CreatePaymentArgs.ts
new file mode 100644
index 0000000..386441a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/CreatePaymentArgs.ts
@@ -0,0 +1,5 @@
+import { PaymentCreateInput } from "./PaymentCreateInput";
+
+export type CreatePaymentArgs = {
+ data: PaymentCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/payment/DeletePaymentArgs.ts b/apps/roi-cacl-2-admin/src/api/payment/DeletePaymentArgs.ts
new file mode 100644
index 0000000..f8fa18d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/DeletePaymentArgs.ts
@@ -0,0 +1,5 @@
+import { PaymentWhereUniqueInput } from "./PaymentWhereUniqueInput";
+
+export type DeletePaymentArgs = {
+ where: PaymentWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/payment/EnumPaymentType.ts b/apps/roi-cacl-2-admin/src/api/payment/EnumPaymentType.ts
new file mode 100644
index 0000000..46e3466
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/EnumPaymentType.ts
@@ -0,0 +1,3 @@
+export enum EnumPaymentType {
+ Stripe = "STRIPE",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/payment/Payment.ts b/apps/roi-cacl-2-admin/src/api/payment/Payment.ts
new file mode 100644
index 0000000..f80b4f1
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/Payment.ts
@@ -0,0 +1,16 @@
+import { Booking } from "../booking/Booking";
+import { JsonValue } from "type-fest";
+
+export type Payment = {
+ id: number;
+ uid: string;
+ type?: "STRIPE";
+ booking?: Booking | null;
+ amount: number;
+ fee: number;
+ currency: string;
+ success: boolean;
+ refunded: boolean;
+ data: JsonValue;
+ externalId: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/payment/PaymentCountArgs.ts b/apps/roi-cacl-2-admin/src/api/payment/PaymentCountArgs.ts
new file mode 100644
index 0000000..051e311
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/PaymentCountArgs.ts
@@ -0,0 +1,5 @@
+import { PaymentWhereInput } from "./PaymentWhereInput";
+
+export type PaymentCountArgs = {
+ where?: PaymentWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/payment/PaymentCreateInput.ts b/apps/roi-cacl-2-admin/src/api/payment/PaymentCreateInput.ts
new file mode 100644
index 0000000..c92a1db
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/PaymentCreateInput.ts
@@ -0,0 +1,15 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+import { InputJsonValue } from "../../types";
+
+export type PaymentCreateInput = {
+ uid: string;
+ type: "STRIPE";
+ booking?: BookingWhereUniqueInput | null;
+ amount: number;
+ fee: number;
+ currency: string;
+ success: boolean;
+ refunded: boolean;
+ data: InputJsonValue;
+ externalId: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/payment/PaymentFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/payment/PaymentFindManyArgs.ts
new file mode 100644
index 0000000..0fe78ba
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/PaymentFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { PaymentWhereInput } from "./PaymentWhereInput";
+import { PaymentOrderByInput } from "./PaymentOrderByInput";
+
+export type PaymentFindManyArgs = {
+ where?: PaymentWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/payment/PaymentFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/payment/PaymentFindUniqueArgs.ts
new file mode 100644
index 0000000..565bf68
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/PaymentFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { PaymentWhereUniqueInput } from "./PaymentWhereUniqueInput";
+
+export type PaymentFindUniqueArgs = {
+ where: PaymentWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/payment/PaymentListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/payment/PaymentListRelationFilter.ts
new file mode 100644
index 0000000..b1ee5a9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/PaymentListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { PaymentWhereInput } from "./PaymentWhereInput";
+
+export type PaymentListRelationFilter = {
+ every?: PaymentWhereInput;
+ some?: PaymentWhereInput;
+ none?: PaymentWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/payment/PaymentOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/payment/PaymentOrderByInput.ts
new file mode 100644
index 0000000..c4567b7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/PaymentOrderByInput.ts
@@ -0,0 +1,15 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type PaymentOrderByInput = {
+ id?: SortOrder;
+ uid?: SortOrder;
+ type?: SortOrder;
+ bookingId?: SortOrder;
+ amount?: SortOrder;
+ fee?: SortOrder;
+ currency?: SortOrder;
+ success?: SortOrder;
+ refunded?: SortOrder;
+ data?: SortOrder;
+ externalId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/payment/PaymentUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/payment/PaymentUpdateInput.ts
new file mode 100644
index 0000000..40124e2
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/PaymentUpdateInput.ts
@@ -0,0 +1,15 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+import { InputJsonValue } from "../../types";
+
+export type PaymentUpdateInput = {
+ uid?: string;
+ type?: "STRIPE";
+ booking?: BookingWhereUniqueInput | null;
+ amount?: number;
+ fee?: number;
+ currency?: string;
+ success?: boolean;
+ refunded?: boolean;
+ data?: InputJsonValue;
+ externalId?: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/payment/PaymentWhereInput.ts b/apps/roi-cacl-2-admin/src/api/payment/PaymentWhereInput.ts
new file mode 100644
index 0000000..6401e2d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/PaymentWhereInput.ts
@@ -0,0 +1,19 @@
+import { IntFilter } from "../../util/IntFilter";
+import { StringFilter } from "../../util/StringFilter";
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+import { BooleanFilter } from "../../util/BooleanFilter";
+import { JsonFilter } from "../../util/JsonFilter";
+
+export type PaymentWhereInput = {
+ id?: IntFilter;
+ uid?: StringFilter;
+ type?: "STRIPE";
+ booking?: BookingWhereUniqueInput;
+ amount?: IntFilter;
+ fee?: IntFilter;
+ currency?: StringFilter;
+ success?: BooleanFilter;
+ refunded?: BooleanFilter;
+ data?: JsonFilter;
+ externalId?: StringFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/payment/PaymentWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/payment/PaymentWhereUniqueInput.ts
new file mode 100644
index 0000000..2505747
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/PaymentWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type PaymentWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/payment/UpdatePaymentArgs.ts b/apps/roi-cacl-2-admin/src/api/payment/UpdatePaymentArgs.ts
new file mode 100644
index 0000000..c2cf44e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/payment/UpdatePaymentArgs.ts
@@ -0,0 +1,7 @@
+import { PaymentWhereUniqueInput } from "./PaymentWhereUniqueInput";
+import { PaymentUpdateInput } from "./PaymentUpdateInput";
+
+export type UpdatePaymentArgs = {
+ where: PaymentWhereUniqueInput;
+ data: PaymentUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/CreateReminderMailArgs.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/CreateReminderMailArgs.ts
new file mode 100644
index 0000000..57d320e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/CreateReminderMailArgs.ts
@@ -0,0 +1,5 @@
+import { ReminderMailCreateInput } from "./ReminderMailCreateInput";
+
+export type CreateReminderMailArgs = {
+ data: ReminderMailCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/DeleteReminderMailArgs.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/DeleteReminderMailArgs.ts
new file mode 100644
index 0000000..6c0a592
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/DeleteReminderMailArgs.ts
@@ -0,0 +1,5 @@
+import { ReminderMailWhereUniqueInput } from "./ReminderMailWhereUniqueInput";
+
+export type DeleteReminderMailArgs = {
+ where: ReminderMailWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/EnumReminderMailReminderType.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/EnumReminderMailReminderType.ts
new file mode 100644
index 0000000..fb8bb41
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/EnumReminderMailReminderType.ts
@@ -0,0 +1,3 @@
+export enum EnumReminderMailReminderType {
+ PendingBookingConfirmation = "PENDING_BOOKING_CONFIRMATION",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMail.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMail.ts
new file mode 100644
index 0000000..c4e8b0c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMail.ts
@@ -0,0 +1,7 @@
+export type ReminderMail = {
+ id: number;
+ referenceId: number;
+ reminderType?: "PENDING_BOOKING_CONFIRMATION";
+ elapsedMinutes: number;
+ createdAt: Date;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailCountArgs.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailCountArgs.ts
new file mode 100644
index 0000000..f3bf645
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailCountArgs.ts
@@ -0,0 +1,5 @@
+import { ReminderMailWhereInput } from "./ReminderMailWhereInput";
+
+export type ReminderMailCountArgs = {
+ where?: ReminderMailWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailCreateInput.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailCreateInput.ts
new file mode 100644
index 0000000..f3a9b7a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailCreateInput.ts
@@ -0,0 +1,5 @@
+export type ReminderMailCreateInput = {
+ referenceId: number;
+ reminderType: "PENDING_BOOKING_CONFIRMATION";
+ elapsedMinutes: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailFindManyArgs.ts
new file mode 100644
index 0000000..564cdd5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { ReminderMailWhereInput } from "./ReminderMailWhereInput";
+import { ReminderMailOrderByInput } from "./ReminderMailOrderByInput";
+
+export type ReminderMailFindManyArgs = {
+ where?: ReminderMailWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailFindUniqueArgs.ts
new file mode 100644
index 0000000..4bf805d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { ReminderMailWhereUniqueInput } from "./ReminderMailWhereUniqueInput";
+
+export type ReminderMailFindUniqueArgs = {
+ where: ReminderMailWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailListRelationFilter.ts
new file mode 100644
index 0000000..489a4b2
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { ReminderMailWhereInput } from "./ReminderMailWhereInput";
+
+export type ReminderMailListRelationFilter = {
+ every?: ReminderMailWhereInput;
+ some?: ReminderMailWhereInput;
+ none?: ReminderMailWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailOrderByInput.ts
new file mode 100644
index 0000000..53abe32
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailOrderByInput.ts
@@ -0,0 +1,9 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type ReminderMailOrderByInput = {
+ id?: SortOrder;
+ referenceId?: SortOrder;
+ reminderType?: SortOrder;
+ elapsedMinutes?: SortOrder;
+ createdAt?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailUpdateInput.ts
new file mode 100644
index 0000000..5ea9b68
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailUpdateInput.ts
@@ -0,0 +1,5 @@
+export type ReminderMailUpdateInput = {
+ referenceId?: number;
+ reminderType?: "PENDING_BOOKING_CONFIRMATION";
+ elapsedMinutes?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailWhereInput.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailWhereInput.ts
new file mode 100644
index 0000000..334e0d6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailWhereInput.ts
@@ -0,0 +1,10 @@
+import { IntFilter } from "../../util/IntFilter";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+
+export type ReminderMailWhereInput = {
+ id?: IntFilter;
+ referenceId?: IntFilter;
+ reminderType?: "PENDING_BOOKING_CONFIRMATION";
+ elapsedMinutes?: IntFilter;
+ createdAt?: DateTimeFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailWhereUniqueInput.ts
new file mode 100644
index 0000000..e5488cf
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/ReminderMailWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type ReminderMailWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/reminderMail/UpdateReminderMailArgs.ts b/apps/roi-cacl-2-admin/src/api/reminderMail/UpdateReminderMailArgs.ts
new file mode 100644
index 0000000..3e071d9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/reminderMail/UpdateReminderMailArgs.ts
@@ -0,0 +1,7 @@
+import { ReminderMailWhereUniqueInput } from "./ReminderMailWhereUniqueInput";
+import { ReminderMailUpdateInput } from "./ReminderMailUpdateInput";
+
+export type UpdateReminderMailArgs = {
+ where: ReminderMailWhereUniqueInput;
+ data: ReminderMailUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/CreateResetPasswordRequestArgs.ts b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/CreateResetPasswordRequestArgs.ts
new file mode 100644
index 0000000..200551b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/CreateResetPasswordRequestArgs.ts
@@ -0,0 +1,5 @@
+import { ResetPasswordRequestCreateInput } from "./ResetPasswordRequestCreateInput";
+
+export type CreateResetPasswordRequestArgs = {
+ data: ResetPasswordRequestCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/DeleteResetPasswordRequestArgs.ts b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/DeleteResetPasswordRequestArgs.ts
new file mode 100644
index 0000000..de014a9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/DeleteResetPasswordRequestArgs.ts
@@ -0,0 +1,5 @@
+import { ResetPasswordRequestWhereUniqueInput } from "./ResetPasswordRequestWhereUniqueInput";
+
+export type DeleteResetPasswordRequestArgs = {
+ where: ResetPasswordRequestWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequest.ts b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequest.ts
new file mode 100644
index 0000000..a313c2f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequest.ts
@@ -0,0 +1,7 @@
+export type ResetPasswordRequest = {
+ id: string;
+ createdAt: Date;
+ updatedAt: Date;
+ email: string;
+ expires: Date;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestCountArgs.ts b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestCountArgs.ts
new file mode 100644
index 0000000..7e791de
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestCountArgs.ts
@@ -0,0 +1,5 @@
+import { ResetPasswordRequestWhereInput } from "./ResetPasswordRequestWhereInput";
+
+export type ResetPasswordRequestCountArgs = {
+ where?: ResetPasswordRequestWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestCreateInput.ts b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestCreateInput.ts
new file mode 100644
index 0000000..4a14552
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestCreateInput.ts
@@ -0,0 +1,4 @@
+export type ResetPasswordRequestCreateInput = {
+ email: string;
+ expires: Date;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestFindManyArgs.ts
new file mode 100644
index 0000000..9699a37
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { ResetPasswordRequestWhereInput } from "./ResetPasswordRequestWhereInput";
+import { ResetPasswordRequestOrderByInput } from "./ResetPasswordRequestOrderByInput";
+
+export type ResetPasswordRequestFindManyArgs = {
+ where?: ResetPasswordRequestWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestFindUniqueArgs.ts
new file mode 100644
index 0000000..ecaf912
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { ResetPasswordRequestWhereUniqueInput } from "./ResetPasswordRequestWhereUniqueInput";
+
+export type ResetPasswordRequestFindUniqueArgs = {
+ where: ResetPasswordRequestWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestListRelationFilter.ts
new file mode 100644
index 0000000..6385fca
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { ResetPasswordRequestWhereInput } from "./ResetPasswordRequestWhereInput";
+
+export type ResetPasswordRequestListRelationFilter = {
+ every?: ResetPasswordRequestWhereInput;
+ some?: ResetPasswordRequestWhereInput;
+ none?: ResetPasswordRequestWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestOrderByInput.ts
new file mode 100644
index 0000000..9d27e13
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestOrderByInput.ts
@@ -0,0 +1,9 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type ResetPasswordRequestOrderByInput = {
+ id?: SortOrder;
+ createdAt?: SortOrder;
+ updatedAt?: SortOrder;
+ email?: SortOrder;
+ expires?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestUpdateInput.ts
new file mode 100644
index 0000000..f2d4b74
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestUpdateInput.ts
@@ -0,0 +1,4 @@
+export type ResetPasswordRequestUpdateInput = {
+ email?: string;
+ expires?: Date;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestWhereInput.ts b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestWhereInput.ts
new file mode 100644
index 0000000..5a3a15d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestWhereInput.ts
@@ -0,0 +1,10 @@
+import { StringFilter } from "../../util/StringFilter";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+
+export type ResetPasswordRequestWhereInput = {
+ id?: StringFilter;
+ createdAt?: DateTimeFilter;
+ updatedAt?: DateTimeFilter;
+ email?: StringFilter;
+ expires?: DateTimeFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestWhereUniqueInput.ts
new file mode 100644
index 0000000..ad6a5c7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/ResetPasswordRequestWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type ResetPasswordRequestWhereUniqueInput = {
+ id: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/UpdateResetPasswordRequestArgs.ts b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/UpdateResetPasswordRequestArgs.ts
new file mode 100644
index 0000000..6f916e3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/resetPasswordRequest/UpdateResetPasswordRequestArgs.ts
@@ -0,0 +1,7 @@
+import { ResetPasswordRequestWhereUniqueInput } from "./ResetPasswordRequestWhereUniqueInput";
+import { ResetPasswordRequestUpdateInput } from "./ResetPasswordRequestUpdateInput";
+
+export type UpdateResetPasswordRequestArgs = {
+ where: ResetPasswordRequestWhereUniqueInput;
+ data: ResetPasswordRequestUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/AvailabilityCreateNestedManyWithoutSchedulesInput.ts b/apps/roi-cacl-2-admin/src/api/schedule/AvailabilityCreateNestedManyWithoutSchedulesInput.ts
new file mode 100644
index 0000000..cd81580
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/AvailabilityCreateNestedManyWithoutSchedulesInput.ts
@@ -0,0 +1,5 @@
+import { AvailabilityWhereUniqueInput } from "../availability/AvailabilityWhereUniqueInput";
+
+export type AvailabilityCreateNestedManyWithoutSchedulesInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/AvailabilityUpdateManyWithoutSchedulesInput.ts b/apps/roi-cacl-2-admin/src/api/schedule/AvailabilityUpdateManyWithoutSchedulesInput.ts
new file mode 100644
index 0000000..3d6ee09
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/AvailabilityUpdateManyWithoutSchedulesInput.ts
@@ -0,0 +1,7 @@
+import { AvailabilityWhereUniqueInput } from "../availability/AvailabilityWhereUniqueInput";
+
+export type AvailabilityUpdateManyWithoutSchedulesInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/CreateScheduleArgs.ts b/apps/roi-cacl-2-admin/src/api/schedule/CreateScheduleArgs.ts
new file mode 100644
index 0000000..8677414
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/CreateScheduleArgs.ts
@@ -0,0 +1,5 @@
+import { ScheduleCreateInput } from "./ScheduleCreateInput";
+
+export type CreateScheduleArgs = {
+ data: ScheduleCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/DeleteScheduleArgs.ts b/apps/roi-cacl-2-admin/src/api/schedule/DeleteScheduleArgs.ts
new file mode 100644
index 0000000..87e9f38
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/DeleteScheduleArgs.ts
@@ -0,0 +1,5 @@
+import { ScheduleWhereUniqueInput } from "./ScheduleWhereUniqueInput";
+
+export type DeleteScheduleArgs = {
+ where: ScheduleWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/EventTypeCreateNestedManyWithoutSchedulesInput.ts b/apps/roi-cacl-2-admin/src/api/schedule/EventTypeCreateNestedManyWithoutSchedulesInput.ts
new file mode 100644
index 0000000..87ccb5a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/EventTypeCreateNestedManyWithoutSchedulesInput.ts
@@ -0,0 +1,5 @@
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type EventTypeCreateNestedManyWithoutSchedulesInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/EventTypeUpdateManyWithoutSchedulesInput.ts b/apps/roi-cacl-2-admin/src/api/schedule/EventTypeUpdateManyWithoutSchedulesInput.ts
new file mode 100644
index 0000000..6a90c54
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/EventTypeUpdateManyWithoutSchedulesInput.ts
@@ -0,0 +1,7 @@
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type EventTypeUpdateManyWithoutSchedulesInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/Schedule.ts b/apps/roi-cacl-2-admin/src/api/schedule/Schedule.ts
new file mode 100644
index 0000000..ad10237
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/Schedule.ts
@@ -0,0 +1,12 @@
+import { User } from "../user/User";
+import { EventType } from "../eventType/EventType";
+import { Availability } from "../availability/Availability";
+
+export type Schedule = {
+ id: number;
+ user?: User;
+ name: string;
+ timeZone: string | null;
+ eventType?: Array;
+ availability?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/ScheduleCountArgs.ts b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleCountArgs.ts
new file mode 100644
index 0000000..b3f9753
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleCountArgs.ts
@@ -0,0 +1,5 @@
+import { ScheduleWhereInput } from "./ScheduleWhereInput";
+
+export type ScheduleCountArgs = {
+ where?: ScheduleWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/ScheduleCreateInput.ts b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleCreateInput.ts
new file mode 100644
index 0000000..77872f5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleCreateInput.ts
@@ -0,0 +1,11 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { EventTypeCreateNestedManyWithoutSchedulesInput } from "./EventTypeCreateNestedManyWithoutSchedulesInput";
+import { AvailabilityCreateNestedManyWithoutSchedulesInput } from "./AvailabilityCreateNestedManyWithoutSchedulesInput";
+
+export type ScheduleCreateInput = {
+ user: UserWhereUniqueInput;
+ name: string;
+ timeZone?: string | null;
+ eventType?: EventTypeCreateNestedManyWithoutSchedulesInput;
+ availability?: AvailabilityCreateNestedManyWithoutSchedulesInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/ScheduleFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleFindManyArgs.ts
new file mode 100644
index 0000000..fa3e125
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { ScheduleWhereInput } from "./ScheduleWhereInput";
+import { ScheduleOrderByInput } from "./ScheduleOrderByInput";
+
+export type ScheduleFindManyArgs = {
+ where?: ScheduleWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/ScheduleFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleFindUniqueArgs.ts
new file mode 100644
index 0000000..c11256d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { ScheduleWhereUniqueInput } from "./ScheduleWhereUniqueInput";
+
+export type ScheduleFindUniqueArgs = {
+ where: ScheduleWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/ScheduleListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleListRelationFilter.ts
new file mode 100644
index 0000000..795a36e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { ScheduleWhereInput } from "./ScheduleWhereInput";
+
+export type ScheduleListRelationFilter = {
+ every?: ScheduleWhereInput;
+ some?: ScheduleWhereInput;
+ none?: ScheduleWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/ScheduleOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleOrderByInput.ts
new file mode 100644
index 0000000..b621096
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleOrderByInput.ts
@@ -0,0 +1,8 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type ScheduleOrderByInput = {
+ id?: SortOrder;
+ userId?: SortOrder;
+ name?: SortOrder;
+ timeZone?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/ScheduleUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleUpdateInput.ts
new file mode 100644
index 0000000..d7e3061
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleUpdateInput.ts
@@ -0,0 +1,11 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { EventTypeUpdateManyWithoutSchedulesInput } from "./EventTypeUpdateManyWithoutSchedulesInput";
+import { AvailabilityUpdateManyWithoutSchedulesInput } from "./AvailabilityUpdateManyWithoutSchedulesInput";
+
+export type ScheduleUpdateInput = {
+ user?: UserWhereUniqueInput;
+ name?: string;
+ timeZone?: string | null;
+ eventType?: EventTypeUpdateManyWithoutSchedulesInput;
+ availability?: AvailabilityUpdateManyWithoutSchedulesInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/ScheduleWhereInput.ts b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleWhereInput.ts
new file mode 100644
index 0000000..e73ab87
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleWhereInput.ts
@@ -0,0 +1,15 @@
+import { IntFilter } from "../../util/IntFilter";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { StringFilter } from "../../util/StringFilter";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { EventTypeListRelationFilter } from "../eventType/EventTypeListRelationFilter";
+import { AvailabilityListRelationFilter } from "../availability/AvailabilityListRelationFilter";
+
+export type ScheduleWhereInput = {
+ id?: IntFilter;
+ user?: UserWhereUniqueInput;
+ name?: StringFilter;
+ timeZone?: StringNullableFilter;
+ eventType?: EventTypeListRelationFilter;
+ availability?: AvailabilityListRelationFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/ScheduleWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleWhereUniqueInput.ts
new file mode 100644
index 0000000..c716edf
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/ScheduleWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type ScheduleWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/schedule/UpdateScheduleArgs.ts b/apps/roi-cacl-2-admin/src/api/schedule/UpdateScheduleArgs.ts
new file mode 100644
index 0000000..092f441
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/schedule/UpdateScheduleArgs.ts
@@ -0,0 +1,7 @@
+import { ScheduleWhereUniqueInput } from "./ScheduleWhereUniqueInput";
+import { ScheduleUpdateInput } from "./ScheduleUpdateInput";
+
+export type UpdateScheduleArgs = {
+ where: ScheduleWhereUniqueInput;
+ data: ScheduleUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/selectedCalendar/CreateSelectedCalendarArgs.ts b/apps/roi-cacl-2-admin/src/api/selectedCalendar/CreateSelectedCalendarArgs.ts
new file mode 100644
index 0000000..7702971
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/selectedCalendar/CreateSelectedCalendarArgs.ts
@@ -0,0 +1,5 @@
+import { SelectedCalendarCreateInput } from "./SelectedCalendarCreateInput";
+
+export type CreateSelectedCalendarArgs = {
+ data: SelectedCalendarCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/selectedCalendar/DeleteSelectedCalendarArgs.ts b/apps/roi-cacl-2-admin/src/api/selectedCalendar/DeleteSelectedCalendarArgs.ts
new file mode 100644
index 0000000..631f01f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/selectedCalendar/DeleteSelectedCalendarArgs.ts
@@ -0,0 +1,5 @@
+import { SelectedCalendarWhereUniqueInput } from "./SelectedCalendarWhereUniqueInput";
+
+export type DeleteSelectedCalendarArgs = {
+ where: SelectedCalendarWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendar.ts b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendar.ts
new file mode 100644
index 0000000..fd5437c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendar.ts
@@ -0,0 +1,8 @@
+import { User } from "../user/User";
+
+export type SelectedCalendar = {
+ id: number;
+ user?: User;
+ integration: string;
+ externalId: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarCountArgs.ts b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarCountArgs.ts
new file mode 100644
index 0000000..9eb8f95
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarCountArgs.ts
@@ -0,0 +1,5 @@
+import { SelectedCalendarWhereInput } from "./SelectedCalendarWhereInput";
+
+export type SelectedCalendarCountArgs = {
+ where?: SelectedCalendarWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarCreateInput.ts b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarCreateInput.ts
new file mode 100644
index 0000000..10fe1f3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarCreateInput.ts
@@ -0,0 +1,7 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type SelectedCalendarCreateInput = {
+ user: UserWhereUniqueInput;
+ integration: string;
+ externalId: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarFindManyArgs.ts
new file mode 100644
index 0000000..cd3e4de
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { SelectedCalendarWhereInput } from "./SelectedCalendarWhereInput";
+import { SelectedCalendarOrderByInput } from "./SelectedCalendarOrderByInput";
+
+export type SelectedCalendarFindManyArgs = {
+ where?: SelectedCalendarWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarFindUniqueArgs.ts
new file mode 100644
index 0000000..8053a2e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { SelectedCalendarWhereUniqueInput } from "./SelectedCalendarWhereUniqueInput";
+
+export type SelectedCalendarFindUniqueArgs = {
+ where: SelectedCalendarWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarListRelationFilter.ts
new file mode 100644
index 0000000..d3e468c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { SelectedCalendarWhereInput } from "./SelectedCalendarWhereInput";
+
+export type SelectedCalendarListRelationFilter = {
+ every?: SelectedCalendarWhereInput;
+ some?: SelectedCalendarWhereInput;
+ none?: SelectedCalendarWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarOrderByInput.ts
new file mode 100644
index 0000000..a2a5965
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarOrderByInput.ts
@@ -0,0 +1,8 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type SelectedCalendarOrderByInput = {
+ id?: SortOrder;
+ userId?: SortOrder;
+ integration?: SortOrder;
+ externalId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarUpdateInput.ts
new file mode 100644
index 0000000..86e08c1
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarUpdateInput.ts
@@ -0,0 +1,7 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type SelectedCalendarUpdateInput = {
+ user?: UserWhereUniqueInput;
+ integration?: string;
+ externalId?: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarWhereInput.ts b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarWhereInput.ts
new file mode 100644
index 0000000..9f8bf40
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarWhereInput.ts
@@ -0,0 +1,10 @@
+import { IntFilter } from "../../util/IntFilter";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { StringFilter } from "../../util/StringFilter";
+
+export type SelectedCalendarWhereInput = {
+ id?: IntFilter;
+ user?: UserWhereUniqueInput;
+ integration?: StringFilter;
+ externalId?: StringFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarWhereUniqueInput.ts
new file mode 100644
index 0000000..ad9157e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/selectedCalendar/SelectedCalendarWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type SelectedCalendarWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/selectedCalendar/UpdateSelectedCalendarArgs.ts b/apps/roi-cacl-2-admin/src/api/selectedCalendar/UpdateSelectedCalendarArgs.ts
new file mode 100644
index 0000000..7fd8b2f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/selectedCalendar/UpdateSelectedCalendarArgs.ts
@@ -0,0 +1,7 @@
+import { SelectedCalendarWhereUniqueInput } from "./SelectedCalendarWhereUniqueInput";
+import { SelectedCalendarUpdateInput } from "./SelectedCalendarUpdateInput";
+
+export type UpdateSelectedCalendarArgs = {
+ where: SelectedCalendarWhereUniqueInput;
+ data: SelectedCalendarUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/session/CreateSessionArgs.ts b/apps/roi-cacl-2-admin/src/api/session/CreateSessionArgs.ts
new file mode 100644
index 0000000..7a51e01
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/session/CreateSessionArgs.ts
@@ -0,0 +1,5 @@
+import { SessionCreateInput } from "./SessionCreateInput";
+
+export type CreateSessionArgs = {
+ data: SessionCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/session/DeleteSessionArgs.ts b/apps/roi-cacl-2-admin/src/api/session/DeleteSessionArgs.ts
new file mode 100644
index 0000000..3a5cb5e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/session/DeleteSessionArgs.ts
@@ -0,0 +1,5 @@
+import { SessionWhereUniqueInput } from "./SessionWhereUniqueInput";
+
+export type DeleteSessionArgs = {
+ where: SessionWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/session/Session.ts b/apps/roi-cacl-2-admin/src/api/session/Session.ts
new file mode 100644
index 0000000..8ec51f7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/session/Session.ts
@@ -0,0 +1,8 @@
+import { User } from "../user/User";
+
+export type Session = {
+ id: string;
+ sessionToken: string;
+ expires: Date;
+ user?: User | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/session/SessionCountArgs.ts b/apps/roi-cacl-2-admin/src/api/session/SessionCountArgs.ts
new file mode 100644
index 0000000..ca5d0b4
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/session/SessionCountArgs.ts
@@ -0,0 +1,5 @@
+import { SessionWhereInput } from "./SessionWhereInput";
+
+export type SessionCountArgs = {
+ where?: SessionWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/session/SessionCreateInput.ts b/apps/roi-cacl-2-admin/src/api/session/SessionCreateInput.ts
new file mode 100644
index 0000000..8574801
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/session/SessionCreateInput.ts
@@ -0,0 +1,7 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type SessionCreateInput = {
+ sessionToken: string;
+ expires: Date;
+ user?: UserWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/session/SessionFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/session/SessionFindManyArgs.ts
new file mode 100644
index 0000000..ad0fa97
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/session/SessionFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { SessionWhereInput } from "./SessionWhereInput";
+import { SessionOrderByInput } from "./SessionOrderByInput";
+
+export type SessionFindManyArgs = {
+ where?: SessionWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/session/SessionFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/session/SessionFindUniqueArgs.ts
new file mode 100644
index 0000000..cb88ff6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/session/SessionFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { SessionWhereUniqueInput } from "./SessionWhereUniqueInput";
+
+export type SessionFindUniqueArgs = {
+ where: SessionWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/session/SessionListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/session/SessionListRelationFilter.ts
new file mode 100644
index 0000000..6c1bac9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/session/SessionListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { SessionWhereInput } from "./SessionWhereInput";
+
+export type SessionListRelationFilter = {
+ every?: SessionWhereInput;
+ some?: SessionWhereInput;
+ none?: SessionWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/session/SessionOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/session/SessionOrderByInput.ts
new file mode 100644
index 0000000..d9186f7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/session/SessionOrderByInput.ts
@@ -0,0 +1,8 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type SessionOrderByInput = {
+ id?: SortOrder;
+ sessionToken?: SortOrder;
+ expires?: SortOrder;
+ userId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/session/SessionUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/session/SessionUpdateInput.ts
new file mode 100644
index 0000000..47c9e72
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/session/SessionUpdateInput.ts
@@ -0,0 +1,7 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type SessionUpdateInput = {
+ sessionToken?: string;
+ expires?: Date;
+ user?: UserWhereUniqueInput | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/session/SessionWhereInput.ts b/apps/roi-cacl-2-admin/src/api/session/SessionWhereInput.ts
new file mode 100644
index 0000000..fd17a8a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/session/SessionWhereInput.ts
@@ -0,0 +1,10 @@
+import { StringFilter } from "../../util/StringFilter";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+
+export type SessionWhereInput = {
+ id?: StringFilter;
+ sessionToken?: StringFilter;
+ expires?: DateTimeFilter;
+ user?: UserWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/session/SessionWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/session/SessionWhereUniqueInput.ts
new file mode 100644
index 0000000..c0f95f6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/session/SessionWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type SessionWhereUniqueInput = {
+ id: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/session/UpdateSessionArgs.ts b/apps/roi-cacl-2-admin/src/api/session/UpdateSessionArgs.ts
new file mode 100644
index 0000000..135ce69
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/session/UpdateSessionArgs.ts
@@ -0,0 +1,7 @@
+import { SessionWhereUniqueInput } from "./SessionWhereUniqueInput";
+import { SessionUpdateInput } from "./SessionUpdateInput";
+
+export type UpdateSessionArgs = {
+ where: SessionWhereUniqueInput;
+ data: SessionUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/CreateTeamArgs.ts b/apps/roi-cacl-2-admin/src/api/team/CreateTeamArgs.ts
new file mode 100644
index 0000000..c566546
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/CreateTeamArgs.ts
@@ -0,0 +1,5 @@
+import { TeamCreateInput } from "./TeamCreateInput";
+
+export type CreateTeamArgs = {
+ data: TeamCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/DeleteTeamArgs.ts b/apps/roi-cacl-2-admin/src/api/team/DeleteTeamArgs.ts
new file mode 100644
index 0000000..172109e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/DeleteTeamArgs.ts
@@ -0,0 +1,5 @@
+import { TeamWhereUniqueInput } from "./TeamWhereUniqueInput";
+
+export type DeleteTeamArgs = {
+ where: TeamWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/EventTypeCreateNestedManyWithoutTeamsInput.ts b/apps/roi-cacl-2-admin/src/api/team/EventTypeCreateNestedManyWithoutTeamsInput.ts
new file mode 100644
index 0000000..78f6c81
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/EventTypeCreateNestedManyWithoutTeamsInput.ts
@@ -0,0 +1,5 @@
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type EventTypeCreateNestedManyWithoutTeamsInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/EventTypeUpdateManyWithoutTeamsInput.ts b/apps/roi-cacl-2-admin/src/api/team/EventTypeUpdateManyWithoutTeamsInput.ts
new file mode 100644
index 0000000..ebd4d2c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/EventTypeUpdateManyWithoutTeamsInput.ts
@@ -0,0 +1,7 @@
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type EventTypeUpdateManyWithoutTeamsInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/MembershipCreateNestedManyWithoutTeamsInput.ts b/apps/roi-cacl-2-admin/src/api/team/MembershipCreateNestedManyWithoutTeamsInput.ts
new file mode 100644
index 0000000..f9f4c1f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/MembershipCreateNestedManyWithoutTeamsInput.ts
@@ -0,0 +1,5 @@
+import { MembershipWhereUniqueInput } from "../membership/MembershipWhereUniqueInput";
+
+export type MembershipCreateNestedManyWithoutTeamsInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/MembershipUpdateManyWithoutTeamsInput.ts b/apps/roi-cacl-2-admin/src/api/team/MembershipUpdateManyWithoutTeamsInput.ts
new file mode 100644
index 0000000..d592e5d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/MembershipUpdateManyWithoutTeamsInput.ts
@@ -0,0 +1,7 @@
+import { MembershipWhereUniqueInput } from "../membership/MembershipWhereUniqueInput";
+
+export type MembershipUpdateManyWithoutTeamsInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/Team.ts b/apps/roi-cacl-2-admin/src/api/team/Team.ts
new file mode 100644
index 0000000..9b966cc
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/Team.ts
@@ -0,0 +1,13 @@
+import { EventType } from "../eventType/EventType";
+import { Membership } from "../membership/Membership";
+
+export type Team = {
+ id: number;
+ name: string | null;
+ slug: string | null;
+ logo: string | null;
+ bio: string | null;
+ hideBranding: boolean;
+ eventTypes?: Array;
+ members?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/TeamCountArgs.ts b/apps/roi-cacl-2-admin/src/api/team/TeamCountArgs.ts
new file mode 100644
index 0000000..9cdfb81
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/TeamCountArgs.ts
@@ -0,0 +1,5 @@
+import { TeamWhereInput } from "./TeamWhereInput";
+
+export type TeamCountArgs = {
+ where?: TeamWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/TeamCreateInput.ts b/apps/roi-cacl-2-admin/src/api/team/TeamCreateInput.ts
new file mode 100644
index 0000000..9c6f2e6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/TeamCreateInput.ts
@@ -0,0 +1,12 @@
+import { EventTypeCreateNestedManyWithoutTeamsInput } from "./EventTypeCreateNestedManyWithoutTeamsInput";
+import { MembershipCreateNestedManyWithoutTeamsInput } from "./MembershipCreateNestedManyWithoutTeamsInput";
+
+export type TeamCreateInput = {
+ name?: string | null;
+ slug?: string | null;
+ logo?: string | null;
+ bio?: string | null;
+ hideBranding: boolean;
+ eventTypes?: EventTypeCreateNestedManyWithoutTeamsInput;
+ members?: MembershipCreateNestedManyWithoutTeamsInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/TeamFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/team/TeamFindManyArgs.ts
new file mode 100644
index 0000000..5eeca43
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/TeamFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { TeamWhereInput } from "./TeamWhereInput";
+import { TeamOrderByInput } from "./TeamOrderByInput";
+
+export type TeamFindManyArgs = {
+ where?: TeamWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/TeamFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/team/TeamFindUniqueArgs.ts
new file mode 100644
index 0000000..15d7783
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/TeamFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { TeamWhereUniqueInput } from "./TeamWhereUniqueInput";
+
+export type TeamFindUniqueArgs = {
+ where: TeamWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/TeamListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/team/TeamListRelationFilter.ts
new file mode 100644
index 0000000..a002102
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/TeamListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { TeamWhereInput } from "./TeamWhereInput";
+
+export type TeamListRelationFilter = {
+ every?: TeamWhereInput;
+ some?: TeamWhereInput;
+ none?: TeamWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/TeamOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/team/TeamOrderByInput.ts
new file mode 100644
index 0000000..01d0c6f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/TeamOrderByInput.ts
@@ -0,0 +1,10 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type TeamOrderByInput = {
+ id?: SortOrder;
+ name?: SortOrder;
+ slug?: SortOrder;
+ logo?: SortOrder;
+ bio?: SortOrder;
+ hideBranding?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/TeamUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/team/TeamUpdateInput.ts
new file mode 100644
index 0000000..0097511
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/TeamUpdateInput.ts
@@ -0,0 +1,12 @@
+import { EventTypeUpdateManyWithoutTeamsInput } from "./EventTypeUpdateManyWithoutTeamsInput";
+import { MembershipUpdateManyWithoutTeamsInput } from "./MembershipUpdateManyWithoutTeamsInput";
+
+export type TeamUpdateInput = {
+ name?: string | null;
+ slug?: string | null;
+ logo?: string | null;
+ bio?: string | null;
+ hideBranding?: boolean;
+ eventTypes?: EventTypeUpdateManyWithoutTeamsInput;
+ members?: MembershipUpdateManyWithoutTeamsInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/TeamWhereInput.ts b/apps/roi-cacl-2-admin/src/api/team/TeamWhereInput.ts
new file mode 100644
index 0000000..a2feb0d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/TeamWhereInput.ts
@@ -0,0 +1,16 @@
+import { IntFilter } from "../../util/IntFilter";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { BooleanFilter } from "../../util/BooleanFilter";
+import { EventTypeListRelationFilter } from "../eventType/EventTypeListRelationFilter";
+import { MembershipListRelationFilter } from "../membership/MembershipListRelationFilter";
+
+export type TeamWhereInput = {
+ id?: IntFilter;
+ name?: StringNullableFilter;
+ slug?: StringNullableFilter;
+ logo?: StringNullableFilter;
+ bio?: StringNullableFilter;
+ hideBranding?: BooleanFilter;
+ eventTypes?: EventTypeListRelationFilter;
+ members?: MembershipListRelationFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/TeamWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/team/TeamWhereUniqueInput.ts
new file mode 100644
index 0000000..2e7b8de
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/TeamWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type TeamWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/team/UpdateTeamArgs.ts b/apps/roi-cacl-2-admin/src/api/team/UpdateTeamArgs.ts
new file mode 100644
index 0000000..1249932
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/team/UpdateTeamArgs.ts
@@ -0,0 +1,7 @@
+import { TeamWhereUniqueInput } from "./TeamWhereUniqueInput";
+import { TeamUpdateInput } from "./TeamUpdateInput";
+
+export type UpdateTeamArgs = {
+ where: TeamWhereUniqueInput;
+ data: TeamUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/AccountCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/AccountCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..4232ab9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/AccountCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { AccountWhereUniqueInput } from "../account/AccountWhereUniqueInput";
+
+export type AccountCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/AccountUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/AccountUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..4c1b189
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/AccountUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { AccountWhereUniqueInput } from "../account/AccountWhereUniqueInput";
+
+export type AccountUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/ApiKeyCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/ApiKeyCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..496f664
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/ApiKeyCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { ApiKeyWhereUniqueInput } from "../apiKey/ApiKeyWhereUniqueInput";
+
+export type ApiKeyCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/ApiKeyUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/ApiKeyUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..15c2106
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/ApiKeyUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { ApiKeyWhereUniqueInput } from "../apiKey/ApiKeyWhereUniqueInput";
+
+export type ApiKeyUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/AvailabilityCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/AvailabilityCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..d91cc19
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/AvailabilityCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { AvailabilityWhereUniqueInput } from "../availability/AvailabilityWhereUniqueInput";
+
+export type AvailabilityCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/AvailabilityUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/AvailabilityUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..a502742
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/AvailabilityUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { AvailabilityWhereUniqueInput } from "../availability/AvailabilityWhereUniqueInput";
+
+export type AvailabilityUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/BookingCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/BookingCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..ca3a4b7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/BookingCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+
+export type BookingCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/BookingUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/BookingUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..373b4e6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/BookingUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+
+export type BookingUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/CreateUserArgs.ts b/apps/roi-cacl-2-admin/src/api/user/CreateUserArgs.ts
new file mode 100644
index 0000000..2a56f0c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/CreateUserArgs.ts
@@ -0,0 +1,5 @@
+import { UserCreateInput } from "./UserCreateInput";
+
+export type CreateUserArgs = {
+ data: UserCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/CredentialCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/CredentialCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..955b5bf
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/CredentialCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { CredentialWhereUniqueInput } from "../credential/CredentialWhereUniqueInput";
+
+export type CredentialCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/CredentialUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/CredentialUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..9f57324
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/CredentialUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { CredentialWhereUniqueInput } from "../credential/CredentialWhereUniqueInput";
+
+export type CredentialUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/DeleteUserArgs.ts b/apps/roi-cacl-2-admin/src/api/user/DeleteUserArgs.ts
new file mode 100644
index 0000000..5f655b8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/DeleteUserArgs.ts
@@ -0,0 +1,5 @@
+import { UserWhereUniqueInput } from "./UserWhereUniqueInput";
+
+export type DeleteUserArgs = {
+ where: UserWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/EnumUserIdentityProvider.ts b/apps/roi-cacl-2-admin/src/api/user/EnumUserIdentityProvider.ts
new file mode 100644
index 0000000..1a3c5c5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/EnumUserIdentityProvider.ts
@@ -0,0 +1,5 @@
+export enum EnumUserIdentityProvider {
+ Cal = "CAL",
+ Google = "GOOGLE",
+ Saml = "SAML",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/user/EnumUserPlan.ts b/apps/roi-cacl-2-admin/src/api/user/EnumUserPlan.ts
new file mode 100644
index 0000000..c281145
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/EnumUserPlan.ts
@@ -0,0 +1,5 @@
+export enum EnumUserPlan {
+ Free = "FREE",
+ Trial = "TRIAL",
+ Pro = "PRO",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/user/EnumUserRole.ts b/apps/roi-cacl-2-admin/src/api/user/EnumUserRole.ts
new file mode 100644
index 0000000..cda5791
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/EnumUserRole.ts
@@ -0,0 +1,6 @@
+import { User } from "./User";
+
+export enum EnumUserRole {
+ User = "USER",
+ Admin = "ADMIN",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/user/EventTypeCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/EventTypeCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..7be098e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/EventTypeCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type EventTypeCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/EventTypeUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/EventTypeUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..bfca395
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/EventTypeUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type EventTypeUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/FeedbackCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/FeedbackCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..efafa99
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/FeedbackCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { FeedbackWhereUniqueInput } from "../feedback/FeedbackWhereUniqueInput";
+
+export type FeedbackCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/FeedbackUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/FeedbackUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..47ef864
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/FeedbackUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { FeedbackWhereUniqueInput } from "../feedback/FeedbackWhereUniqueInput";
+
+export type FeedbackUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/ImpersonationCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/ImpersonationCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..4d3ae12
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/ImpersonationCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { ImpersonationWhereUniqueInput } from "../impersonation/ImpersonationWhereUniqueInput";
+
+export type ImpersonationCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/ImpersonationUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/ImpersonationUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..bb201bf
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/ImpersonationUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { ImpersonationWhereUniqueInput } from "../impersonation/ImpersonationWhereUniqueInput";
+
+export type ImpersonationUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/MembershipCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/MembershipCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..95779ba
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/MembershipCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { MembershipWhereUniqueInput } from "../membership/MembershipWhereUniqueInput";
+
+export type MembershipCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/MembershipUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/MembershipUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..483e39b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/MembershipUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { MembershipWhereUniqueInput } from "../membership/MembershipWhereUniqueInput";
+
+export type MembershipUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/ScheduleCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/ScheduleCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..2593ec6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/ScheduleCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { ScheduleWhereUniqueInput } from "../schedule/ScheduleWhereUniqueInput";
+
+export type ScheduleCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/ScheduleUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/ScheduleUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..f512d21
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/ScheduleUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { ScheduleWhereUniqueInput } from "../schedule/ScheduleWhereUniqueInput";
+
+export type ScheduleUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/SelectedCalendarCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/SelectedCalendarCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..2fd91a5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/SelectedCalendarCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { SelectedCalendarWhereUniqueInput } from "../selectedCalendar/SelectedCalendarWhereUniqueInput";
+
+export type SelectedCalendarCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/SelectedCalendarUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/SelectedCalendarUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..7f1e93e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/SelectedCalendarUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { SelectedCalendarWhereUniqueInput } from "../selectedCalendar/SelectedCalendarWhereUniqueInput";
+
+export type SelectedCalendarUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/SessionCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/SessionCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..9eb819f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/SessionCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { SessionWhereUniqueInput } from "../session/SessionWhereUniqueInput";
+
+export type SessionCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/SessionUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/SessionUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..1dc0c00
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/SessionUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { SessionWhereUniqueInput } from "../session/SessionWhereUniqueInput";
+
+export type SessionUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/UpdateUserArgs.ts b/apps/roi-cacl-2-admin/src/api/user/UpdateUserArgs.ts
new file mode 100644
index 0000000..30e635e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/UpdateUserArgs.ts
@@ -0,0 +1,7 @@
+import { UserWhereUniqueInput } from "./UserWhereUniqueInput";
+import { UserUpdateInput } from "./UserUpdateInput";
+
+export type UpdateUserArgs = {
+ where: UserWhereUniqueInput;
+ data: UserUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/User.ts b/apps/roi-cacl-2-admin/src/api/user/User.ts
new file mode 100644
index 0000000..3500c0d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/User.ts
@@ -0,0 +1,70 @@
+import { JsonValue } from "type-fest";
+import { EventType } from "../eventType/EventType";
+import { Credential } from "../credential/Credential";
+import { DestinationCalendar } from "../destinationCalendar/DestinationCalendar";
+import { Membership } from "../membership/Membership";
+import { Booking } from "../booking/Booking";
+import { Schedule } from "../schedule/Schedule";
+import { Availability } from "../availability/Availability";
+import { SelectedCalendar } from "../selectedCalendar/SelectedCalendar";
+import { Webhook } from "../webhook/Webhook";
+import { Impersonation } from "../impersonation/Impersonation";
+import { ApiKey } from "../apiKey/ApiKey";
+import { Account } from "../account/Account";
+import { Session } from "../session/Session";
+import { Feedback } from "../feedback/Feedback";
+import { Workflow } from "../workflow/Workflow";
+
+export type User = {
+ id: number;
+ username: string | null;
+ name: string | null;
+ email: string;
+ emailVerified: Date | null;
+ password: string | null;
+ bio: string | null;
+ avatar: string | null;
+ timeZone: string;
+ weekStart: string;
+ startTime: number;
+ endTime: number;
+ bufferTime: number;
+ hideBranding: boolean;
+ theme: string | null;
+ createdDate: Date;
+ trialEndsAt: Date | null;
+ defaultScheduleId: number | null;
+ completedOnboarding: boolean;
+ locale: string | null;
+ timeFormat: number | null;
+ twoFactorSecret: string | null;
+ twoFactorEnabled: boolean;
+ identityProvider?: "CAL" | "GOOGLE" | "SAML";
+ identityProviderId: string | null;
+ invitedTo: number | null;
+ plan?: "FREE" | "TRIAL" | "PRO";
+ brandColor: string;
+ darkBrandColor: string;
+ away: boolean;
+ allowDynamicBooking: boolean | null;
+ metadata: JsonValue;
+ verified: boolean | null;
+ role?: "USER" | "ADMIN";
+ disableImpersonation: boolean;
+ eventTypes?: Array;
+ credentials?: Array;
+ destinationCalendar?: DestinationCalendar | null;
+ teams?: Array;
+ bookings?: Array;
+ schedules?: Array;
+ availability?: Array;
+ selectedCalendars?: Array;
+ webhooks?: Array;
+ impersonatedUsers?: Array;
+ impersonatedBy?: Array;
+ apiKeys?: Array;
+ accounts?: Array;
+ sessions?: Array;
+ feedback?: Array;
+ workflows?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/UserCountArgs.ts b/apps/roi-cacl-2-admin/src/api/user/UserCountArgs.ts
new file mode 100644
index 0000000..b300ec3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/UserCountArgs.ts
@@ -0,0 +1,5 @@
+import { UserWhereInput } from "./UserWhereInput";
+
+export type UserCountArgs = {
+ where?: UserWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/UserCreateInput.ts b/apps/roi-cacl-2-admin/src/api/user/UserCreateInput.ts
new file mode 100644
index 0000000..bba3556
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/UserCreateInput.ts
@@ -0,0 +1,68 @@
+import { InputJsonValue } from "../../types";
+import { EventTypeCreateNestedManyWithoutUsersInput } from "./EventTypeCreateNestedManyWithoutUsersInput";
+import { CredentialCreateNestedManyWithoutUsersInput } from "./CredentialCreateNestedManyWithoutUsersInput";
+import { DestinationCalendarWhereUniqueInput } from "../destinationCalendar/DestinationCalendarWhereUniqueInput";
+import { MembershipCreateNestedManyWithoutUsersInput } from "./MembershipCreateNestedManyWithoutUsersInput";
+import { BookingCreateNestedManyWithoutUsersInput } from "./BookingCreateNestedManyWithoutUsersInput";
+import { ScheduleCreateNestedManyWithoutUsersInput } from "./ScheduleCreateNestedManyWithoutUsersInput";
+import { AvailabilityCreateNestedManyWithoutUsersInput } from "./AvailabilityCreateNestedManyWithoutUsersInput";
+import { SelectedCalendarCreateNestedManyWithoutUsersInput } from "./SelectedCalendarCreateNestedManyWithoutUsersInput";
+import { WebhookCreateNestedManyWithoutUsersInput } from "./WebhookCreateNestedManyWithoutUsersInput";
+import { ImpersonationCreateNestedManyWithoutUsersInput } from "./ImpersonationCreateNestedManyWithoutUsersInput";
+import { ApiKeyCreateNestedManyWithoutUsersInput } from "./ApiKeyCreateNestedManyWithoutUsersInput";
+import { AccountCreateNestedManyWithoutUsersInput } from "./AccountCreateNestedManyWithoutUsersInput";
+import { SessionCreateNestedManyWithoutUsersInput } from "./SessionCreateNestedManyWithoutUsersInput";
+import { FeedbackCreateNestedManyWithoutUsersInput } from "./FeedbackCreateNestedManyWithoutUsersInput";
+import { WorkflowCreateNestedManyWithoutUsersInput } from "./WorkflowCreateNestedManyWithoutUsersInput";
+
+export type UserCreateInput = {
+ username?: string | null;
+ name?: string | null;
+ email: string;
+ emailVerified?: Date | null;
+ password?: string | null;
+ bio?: string | null;
+ avatar?: string | null;
+ timeZone: string;
+ weekStart: string;
+ startTime: number;
+ endTime: number;
+ bufferTime: number;
+ hideBranding: boolean;
+ theme?: string | null;
+ trialEndsAt?: Date | null;
+ defaultScheduleId?: number | null;
+ completedOnboarding: boolean;
+ locale?: string | null;
+ timeFormat?: number | null;
+ twoFactorSecret?: string | null;
+ twoFactorEnabled: boolean;
+ identityProvider: "CAL" | "GOOGLE" | "SAML";
+ identityProviderId?: string | null;
+ invitedTo?: number | null;
+ plan: "FREE" | "TRIAL" | "PRO";
+ brandColor: string;
+ darkBrandColor: string;
+ away: boolean;
+ allowDynamicBooking?: boolean | null;
+ metadata?: InputJsonValue;
+ verified?: boolean | null;
+ role: "USER" | "ADMIN";
+ disableImpersonation: boolean;
+ eventTypes?: EventTypeCreateNestedManyWithoutUsersInput;
+ credentials?: CredentialCreateNestedManyWithoutUsersInput;
+ destinationCalendar?: DestinationCalendarWhereUniqueInput | null;
+ teams?: MembershipCreateNestedManyWithoutUsersInput;
+ bookings?: BookingCreateNestedManyWithoutUsersInput;
+ schedules?: ScheduleCreateNestedManyWithoutUsersInput;
+ availability?: AvailabilityCreateNestedManyWithoutUsersInput;
+ selectedCalendars?: SelectedCalendarCreateNestedManyWithoutUsersInput;
+ webhooks?: WebhookCreateNestedManyWithoutUsersInput;
+ impersonatedUsers?: ImpersonationCreateNestedManyWithoutUsersInput;
+ impersonatedBy?: ImpersonationCreateNestedManyWithoutUsersInput;
+ apiKeys?: ApiKeyCreateNestedManyWithoutUsersInput;
+ accounts?: AccountCreateNestedManyWithoutUsersInput;
+ sessions?: SessionCreateNestedManyWithoutUsersInput;
+ feedback?: FeedbackCreateNestedManyWithoutUsersInput;
+ workflows?: WorkflowCreateNestedManyWithoutUsersInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/UserFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/user/UserFindManyArgs.ts
new file mode 100644
index 0000000..b453f3e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/UserFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { UserWhereInput } from "./UserWhereInput";
+import { UserOrderByInput } from "./UserOrderByInput";
+
+export type UserFindManyArgs = {
+ where?: UserWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/UserFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/user/UserFindUniqueArgs.ts
new file mode 100644
index 0000000..97d18e8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/UserFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { UserWhereUniqueInput } from "./UserWhereUniqueInput";
+
+export type UserFindUniqueArgs = {
+ where: UserWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/UserListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/user/UserListRelationFilter.ts
new file mode 100644
index 0000000..4c4d06e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/UserListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { UserWhereInput } from "./UserWhereInput";
+
+export type UserListRelationFilter = {
+ every?: UserWhereInput;
+ some?: UserWhereInput;
+ none?: UserWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/UserOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/user/UserOrderByInput.ts
new file mode 100644
index 0000000..dfdcb26
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/UserOrderByInput.ts
@@ -0,0 +1,40 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type UserOrderByInput = {
+ id?: SortOrder;
+ username?: SortOrder;
+ name?: SortOrder;
+ email?: SortOrder;
+ emailVerified?: SortOrder;
+ password?: SortOrder;
+ bio?: SortOrder;
+ avatar?: SortOrder;
+ timeZone?: SortOrder;
+ weekStart?: SortOrder;
+ startTime?: SortOrder;
+ endTime?: SortOrder;
+ bufferTime?: SortOrder;
+ hideBranding?: SortOrder;
+ theme?: SortOrder;
+ createdDate?: SortOrder;
+ trialEndsAt?: SortOrder;
+ defaultScheduleId?: SortOrder;
+ completedOnboarding?: SortOrder;
+ locale?: SortOrder;
+ timeFormat?: SortOrder;
+ twoFactorSecret?: SortOrder;
+ twoFactorEnabled?: SortOrder;
+ identityProvider?: SortOrder;
+ identityProviderId?: SortOrder;
+ invitedTo?: SortOrder;
+ plan?: SortOrder;
+ brandColor?: SortOrder;
+ darkBrandColor?: SortOrder;
+ away?: SortOrder;
+ allowDynamicBooking?: SortOrder;
+ metadata?: SortOrder;
+ verified?: SortOrder;
+ role?: SortOrder;
+ disableImpersonation?: SortOrder;
+ destinationCalendarId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/UserUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/user/UserUpdateInput.ts
new file mode 100644
index 0000000..d78d6b6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/UserUpdateInput.ts
@@ -0,0 +1,68 @@
+import { InputJsonValue } from "../../types";
+import { EventTypeUpdateManyWithoutUsersInput } from "./EventTypeUpdateManyWithoutUsersInput";
+import { CredentialUpdateManyWithoutUsersInput } from "./CredentialUpdateManyWithoutUsersInput";
+import { DestinationCalendarWhereUniqueInput } from "../destinationCalendar/DestinationCalendarWhereUniqueInput";
+import { MembershipUpdateManyWithoutUsersInput } from "./MembershipUpdateManyWithoutUsersInput";
+import { BookingUpdateManyWithoutUsersInput } from "./BookingUpdateManyWithoutUsersInput";
+import { ScheduleUpdateManyWithoutUsersInput } from "./ScheduleUpdateManyWithoutUsersInput";
+import { AvailabilityUpdateManyWithoutUsersInput } from "./AvailabilityUpdateManyWithoutUsersInput";
+import { SelectedCalendarUpdateManyWithoutUsersInput } from "./SelectedCalendarUpdateManyWithoutUsersInput";
+import { WebhookUpdateManyWithoutUsersInput } from "./WebhookUpdateManyWithoutUsersInput";
+import { ImpersonationUpdateManyWithoutUsersInput } from "./ImpersonationUpdateManyWithoutUsersInput";
+import { ApiKeyUpdateManyWithoutUsersInput } from "./ApiKeyUpdateManyWithoutUsersInput";
+import { AccountUpdateManyWithoutUsersInput } from "./AccountUpdateManyWithoutUsersInput";
+import { SessionUpdateManyWithoutUsersInput } from "./SessionUpdateManyWithoutUsersInput";
+import { FeedbackUpdateManyWithoutUsersInput } from "./FeedbackUpdateManyWithoutUsersInput";
+import { WorkflowUpdateManyWithoutUsersInput } from "./WorkflowUpdateManyWithoutUsersInput";
+
+export type UserUpdateInput = {
+ username?: string | null;
+ name?: string | null;
+ email?: string;
+ emailVerified?: Date | null;
+ password?: string | null;
+ bio?: string | null;
+ avatar?: string | null;
+ timeZone?: string;
+ weekStart?: string;
+ startTime?: number;
+ endTime?: number;
+ bufferTime?: number;
+ hideBranding?: boolean;
+ theme?: string | null;
+ trialEndsAt?: Date | null;
+ defaultScheduleId?: number | null;
+ completedOnboarding?: boolean;
+ locale?: string | null;
+ timeFormat?: number | null;
+ twoFactorSecret?: string | null;
+ twoFactorEnabled?: boolean;
+ identityProvider?: "CAL" | "GOOGLE" | "SAML";
+ identityProviderId?: string | null;
+ invitedTo?: number | null;
+ plan?: "FREE" | "TRIAL" | "PRO";
+ brandColor?: string;
+ darkBrandColor?: string;
+ away?: boolean;
+ allowDynamicBooking?: boolean | null;
+ metadata?: InputJsonValue;
+ verified?: boolean | null;
+ role?: "USER" | "ADMIN";
+ disableImpersonation?: boolean;
+ eventTypes?: EventTypeUpdateManyWithoutUsersInput;
+ credentials?: CredentialUpdateManyWithoutUsersInput;
+ destinationCalendar?: DestinationCalendarWhereUniqueInput | null;
+ teams?: MembershipUpdateManyWithoutUsersInput;
+ bookings?: BookingUpdateManyWithoutUsersInput;
+ schedules?: ScheduleUpdateManyWithoutUsersInput;
+ availability?: AvailabilityUpdateManyWithoutUsersInput;
+ selectedCalendars?: SelectedCalendarUpdateManyWithoutUsersInput;
+ webhooks?: WebhookUpdateManyWithoutUsersInput;
+ impersonatedUsers?: ImpersonationUpdateManyWithoutUsersInput;
+ impersonatedBy?: ImpersonationUpdateManyWithoutUsersInput;
+ apiKeys?: ApiKeyUpdateManyWithoutUsersInput;
+ accounts?: AccountUpdateManyWithoutUsersInput;
+ sessions?: SessionUpdateManyWithoutUsersInput;
+ feedback?: FeedbackUpdateManyWithoutUsersInput;
+ workflows?: WorkflowUpdateManyWithoutUsersInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/UserWhereInput.ts b/apps/roi-cacl-2-admin/src/api/user/UserWhereInput.ts
new file mode 100644
index 0000000..8f7dbe8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/UserWhereInput.ts
@@ -0,0 +1,78 @@
+import { IntFilter } from "../../util/IntFilter";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { StringFilter } from "../../util/StringFilter";
+import { DateTimeNullableFilter } from "../../util/DateTimeNullableFilter";
+import { BooleanFilter } from "../../util/BooleanFilter";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+import { IntNullableFilter } from "../../util/IntNullableFilter";
+import { BooleanNullableFilter } from "../../util/BooleanNullableFilter";
+import { JsonFilter } from "../../util/JsonFilter";
+import { EventTypeListRelationFilter } from "../eventType/EventTypeListRelationFilter";
+import { CredentialListRelationFilter } from "../credential/CredentialListRelationFilter";
+import { DestinationCalendarWhereUniqueInput } from "../destinationCalendar/DestinationCalendarWhereUniqueInput";
+import { MembershipListRelationFilter } from "../membership/MembershipListRelationFilter";
+import { BookingListRelationFilter } from "../booking/BookingListRelationFilter";
+import { ScheduleListRelationFilter } from "../schedule/ScheduleListRelationFilter";
+import { AvailabilityListRelationFilter } from "../availability/AvailabilityListRelationFilter";
+import { SelectedCalendarListRelationFilter } from "../selectedCalendar/SelectedCalendarListRelationFilter";
+import { WebhookListRelationFilter } from "../webhook/WebhookListRelationFilter";
+import { ImpersonationListRelationFilter } from "../impersonation/ImpersonationListRelationFilter";
+import { ApiKeyListRelationFilter } from "../apiKey/ApiKeyListRelationFilter";
+import { AccountListRelationFilter } from "../account/AccountListRelationFilter";
+import { SessionListRelationFilter } from "../session/SessionListRelationFilter";
+import { FeedbackListRelationFilter } from "../feedback/FeedbackListRelationFilter";
+import { WorkflowListRelationFilter } from "../workflow/WorkflowListRelationFilter";
+
+export type UserWhereInput = {
+ id?: IntFilter;
+ username?: StringNullableFilter;
+ name?: StringNullableFilter;
+ email?: StringFilter;
+ emailVerified?: DateTimeNullableFilter;
+ password?: StringNullableFilter;
+ bio?: StringNullableFilter;
+ avatar?: StringNullableFilter;
+ timeZone?: StringFilter;
+ weekStart?: StringFilter;
+ startTime?: IntFilter;
+ endTime?: IntFilter;
+ bufferTime?: IntFilter;
+ hideBranding?: BooleanFilter;
+ theme?: StringNullableFilter;
+ createdDate?: DateTimeFilter;
+ trialEndsAt?: DateTimeNullableFilter;
+ defaultScheduleId?: IntNullableFilter;
+ completedOnboarding?: BooleanFilter;
+ locale?: StringNullableFilter;
+ timeFormat?: IntNullableFilter;
+ twoFactorSecret?: StringNullableFilter;
+ twoFactorEnabled?: BooleanFilter;
+ identityProvider?: "CAL" | "GOOGLE" | "SAML";
+ identityProviderId?: StringNullableFilter;
+ invitedTo?: IntNullableFilter;
+ plan?: "FREE" | "TRIAL" | "PRO";
+ brandColor?: StringFilter;
+ darkBrandColor?: StringFilter;
+ away?: BooleanFilter;
+ allowDynamicBooking?: BooleanNullableFilter;
+ metadata?: JsonFilter;
+ verified?: BooleanNullableFilter;
+ role?: "USER" | "ADMIN";
+ disableImpersonation?: BooleanFilter;
+ eventTypes?: EventTypeListRelationFilter;
+ credentials?: CredentialListRelationFilter;
+ destinationCalendar?: DestinationCalendarWhereUniqueInput;
+ teams?: MembershipListRelationFilter;
+ bookings?: BookingListRelationFilter;
+ schedules?: ScheduleListRelationFilter;
+ availability?: AvailabilityListRelationFilter;
+ selectedCalendars?: SelectedCalendarListRelationFilter;
+ webhooks?: WebhookListRelationFilter;
+ impersonatedUsers?: ImpersonationListRelationFilter;
+ impersonatedBy?: ImpersonationListRelationFilter;
+ apiKeys?: ApiKeyListRelationFilter;
+ accounts?: AccountListRelationFilter;
+ sessions?: SessionListRelationFilter;
+ feedback?: FeedbackListRelationFilter;
+ workflows?: WorkflowListRelationFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/UserWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/user/UserWhereUniqueInput.ts
new file mode 100644
index 0000000..8bd7723
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/UserWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type UserWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/WebhookCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/WebhookCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..f99cd64
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/WebhookCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { WebhookWhereUniqueInput } from "../webhook/WebhookWhereUniqueInput";
+
+export type WebhookCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/WebhookUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/WebhookUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..5360a5a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/WebhookUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { WebhookWhereUniqueInput } from "../webhook/WebhookWhereUniqueInput";
+
+export type WebhookUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/WorkflowCreateNestedManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/WorkflowCreateNestedManyWithoutUsersInput.ts
new file mode 100644
index 0000000..521096d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/WorkflowCreateNestedManyWithoutUsersInput.ts
@@ -0,0 +1,5 @@
+import { WorkflowWhereUniqueInput } from "../workflow/WorkflowWhereUniqueInput";
+
+export type WorkflowCreateNestedManyWithoutUsersInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/user/WorkflowUpdateManyWithoutUsersInput.ts b/apps/roi-cacl-2-admin/src/api/user/WorkflowUpdateManyWithoutUsersInput.ts
new file mode 100644
index 0000000..c22f8d6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/user/WorkflowUpdateManyWithoutUsersInput.ts
@@ -0,0 +1,7 @@
+import { WorkflowWhereUniqueInput } from "../workflow/WorkflowWhereUniqueInput";
+
+export type WorkflowUpdateManyWithoutUsersInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/verificationToken/CreateVerificationTokenArgs.ts b/apps/roi-cacl-2-admin/src/api/verificationToken/CreateVerificationTokenArgs.ts
new file mode 100644
index 0000000..9256535
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/verificationToken/CreateVerificationTokenArgs.ts
@@ -0,0 +1,5 @@
+import { VerificationTokenCreateInput } from "./VerificationTokenCreateInput";
+
+export type CreateVerificationTokenArgs = {
+ data: VerificationTokenCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/verificationToken/DeleteVerificationTokenArgs.ts b/apps/roi-cacl-2-admin/src/api/verificationToken/DeleteVerificationTokenArgs.ts
new file mode 100644
index 0000000..9097fc2
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/verificationToken/DeleteVerificationTokenArgs.ts
@@ -0,0 +1,5 @@
+import { VerificationTokenWhereUniqueInput } from "./VerificationTokenWhereUniqueInput";
+
+export type DeleteVerificationTokenArgs = {
+ where: VerificationTokenWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/verificationToken/UpdateVerificationTokenArgs.ts b/apps/roi-cacl-2-admin/src/api/verificationToken/UpdateVerificationTokenArgs.ts
new file mode 100644
index 0000000..dbbe2b8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/verificationToken/UpdateVerificationTokenArgs.ts
@@ -0,0 +1,7 @@
+import { VerificationTokenWhereUniqueInput } from "./VerificationTokenWhereUniqueInput";
+import { VerificationTokenUpdateInput } from "./VerificationTokenUpdateInput";
+
+export type UpdateVerificationTokenArgs = {
+ where: VerificationTokenWhereUniqueInput;
+ data: VerificationTokenUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationToken.ts b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationToken.ts
new file mode 100644
index 0000000..71566e5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationToken.ts
@@ -0,0 +1,8 @@
+export type VerificationToken = {
+ id: number;
+ identifier: string;
+ token: string;
+ expires: Date;
+ createdAt: Date;
+ updatedAt: Date;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenCountArgs.ts b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenCountArgs.ts
new file mode 100644
index 0000000..8e173fc
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenCountArgs.ts
@@ -0,0 +1,5 @@
+import { VerificationTokenWhereInput } from "./VerificationTokenWhereInput";
+
+export type VerificationTokenCountArgs = {
+ where?: VerificationTokenWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenCreateInput.ts b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenCreateInput.ts
new file mode 100644
index 0000000..516e453
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenCreateInput.ts
@@ -0,0 +1,5 @@
+export type VerificationTokenCreateInput = {
+ identifier: string;
+ token: string;
+ expires: Date;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenFindManyArgs.ts
new file mode 100644
index 0000000..37f4bc2
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { VerificationTokenWhereInput } from "./VerificationTokenWhereInput";
+import { VerificationTokenOrderByInput } from "./VerificationTokenOrderByInput";
+
+export type VerificationTokenFindManyArgs = {
+ where?: VerificationTokenWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenFindUniqueArgs.ts
new file mode 100644
index 0000000..869565e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { VerificationTokenWhereUniqueInput } from "./VerificationTokenWhereUniqueInput";
+
+export type VerificationTokenFindUniqueArgs = {
+ where: VerificationTokenWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenListRelationFilter.ts
new file mode 100644
index 0000000..6b96fa3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { VerificationTokenWhereInput } from "./VerificationTokenWhereInput";
+
+export type VerificationTokenListRelationFilter = {
+ every?: VerificationTokenWhereInput;
+ some?: VerificationTokenWhereInput;
+ none?: VerificationTokenWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenOrderByInput.ts
new file mode 100644
index 0000000..75c650d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenOrderByInput.ts
@@ -0,0 +1,10 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type VerificationTokenOrderByInput = {
+ id?: SortOrder;
+ identifier?: SortOrder;
+ token?: SortOrder;
+ expires?: SortOrder;
+ createdAt?: SortOrder;
+ updatedAt?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenUpdateInput.ts
new file mode 100644
index 0000000..3970577
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenUpdateInput.ts
@@ -0,0 +1,5 @@
+export type VerificationTokenUpdateInput = {
+ identifier?: string;
+ token?: string;
+ expires?: Date;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenWhereInput.ts b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenWhereInput.ts
new file mode 100644
index 0000000..87a2770
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenWhereInput.ts
@@ -0,0 +1,12 @@
+import { IntFilter } from "../../util/IntFilter";
+import { StringFilter } from "../../util/StringFilter";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+
+export type VerificationTokenWhereInput = {
+ id?: IntFilter;
+ identifier?: StringFilter;
+ token?: StringFilter;
+ expires?: DateTimeFilter;
+ createdAt?: DateTimeFilter;
+ updatedAt?: DateTimeFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenWhereUniqueInput.ts
new file mode 100644
index 0000000..2658ee2
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/verificationToken/VerificationTokenWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type VerificationTokenWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/CreateWebhookArgs.ts b/apps/roi-cacl-2-admin/src/api/webhook/CreateWebhookArgs.ts
new file mode 100644
index 0000000..31cbd5f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/CreateWebhookArgs.ts
@@ -0,0 +1,5 @@
+import { WebhookCreateInput } from "./WebhookCreateInput";
+
+export type CreateWebhookArgs = {
+ data: WebhookCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/DeleteWebhookArgs.ts b/apps/roi-cacl-2-admin/src/api/webhook/DeleteWebhookArgs.ts
new file mode 100644
index 0000000..55a87a6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/DeleteWebhookArgs.ts
@@ -0,0 +1,5 @@
+import { WebhookWhereUniqueInput } from "./WebhookWhereUniqueInput";
+
+export type DeleteWebhookArgs = {
+ where: WebhookWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/EnumWebhookEventTriggers.ts b/apps/roi-cacl-2-admin/src/api/webhook/EnumWebhookEventTriggers.ts
new file mode 100644
index 0000000..03473a5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/EnumWebhookEventTriggers.ts
@@ -0,0 +1,5 @@
+export enum EnumWebhookEventTriggers {
+ BookingCreated = "BOOKING_CREATED",
+ BookingRescheduled = "BOOKING_RESCHEDULED",
+ BookingCancelled = "BOOKING_CANCELLED",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/UpdateWebhookArgs.ts b/apps/roi-cacl-2-admin/src/api/webhook/UpdateWebhookArgs.ts
new file mode 100644
index 0000000..51a9f5e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/UpdateWebhookArgs.ts
@@ -0,0 +1,7 @@
+import { WebhookWhereUniqueInput } from "./WebhookWhereUniqueInput";
+import { WebhookUpdateInput } from "./WebhookUpdateInput";
+
+export type UpdateWebhookArgs = {
+ where: WebhookWhereUniqueInput;
+ data: WebhookUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/Webhook.ts b/apps/roi-cacl-2-admin/src/api/webhook/Webhook.ts
new file mode 100644
index 0000000..853c330
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/Webhook.ts
@@ -0,0 +1,18 @@
+import { User } from "../user/User";
+import { EventType } from "../eventType/EventType";
+import { AppModel } from "../appModel/AppModel";
+
+export type Webhook = {
+ id: string;
+ subscriberUrl: string;
+ payloadTemplate: string | null;
+ createdAt: Date;
+ active: boolean;
+ eventTriggers?: Array<
+ "BOOKING_CREATED" | "BOOKING_RESCHEDULED" | "BOOKING_CANCELLED"
+ >;
+ user?: User | null;
+ eventType?: EventType | null;
+ appField?: AppModel | null;
+ secret: string | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/WebhookCountArgs.ts b/apps/roi-cacl-2-admin/src/api/webhook/WebhookCountArgs.ts
new file mode 100644
index 0000000..0cc0c73
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/WebhookCountArgs.ts
@@ -0,0 +1,5 @@
+import { WebhookWhereInput } from "./WebhookWhereInput";
+
+export type WebhookCountArgs = {
+ where?: WebhookWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/WebhookCreateInput.ts b/apps/roi-cacl-2-admin/src/api/webhook/WebhookCreateInput.ts
new file mode 100644
index 0000000..43ce953
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/WebhookCreateInput.ts
@@ -0,0 +1,16 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+import { AppModelWhereUniqueInput } from "../appModel/AppModelWhereUniqueInput";
+
+export type WebhookCreateInput = {
+ subscriberUrl: string;
+ payloadTemplate?: string | null;
+ active: boolean;
+ eventTriggers?: Array<
+ "BOOKING_CREATED" | "BOOKING_RESCHEDULED" | "BOOKING_CANCELLED"
+ >;
+ user?: UserWhereUniqueInput | null;
+ eventType?: EventTypeWhereUniqueInput | null;
+ appField?: AppModelWhereUniqueInput | null;
+ secret?: string | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/WebhookFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/webhook/WebhookFindManyArgs.ts
new file mode 100644
index 0000000..d8682e2
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/WebhookFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { WebhookWhereInput } from "./WebhookWhereInput";
+import { WebhookOrderByInput } from "./WebhookOrderByInput";
+
+export type WebhookFindManyArgs = {
+ where?: WebhookWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/WebhookFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/webhook/WebhookFindUniqueArgs.ts
new file mode 100644
index 0000000..e62f7f1
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/WebhookFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { WebhookWhereUniqueInput } from "./WebhookWhereUniqueInput";
+
+export type WebhookFindUniqueArgs = {
+ where: WebhookWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/WebhookListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/webhook/WebhookListRelationFilter.ts
new file mode 100644
index 0000000..1db00e3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/WebhookListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { WebhookWhereInput } from "./WebhookWhereInput";
+
+export type WebhookListRelationFilter = {
+ every?: WebhookWhereInput;
+ some?: WebhookWhereInput;
+ none?: WebhookWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/WebhookOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/webhook/WebhookOrderByInput.ts
new file mode 100644
index 0000000..c877713
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/WebhookOrderByInput.ts
@@ -0,0 +1,14 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type WebhookOrderByInput = {
+ id?: SortOrder;
+ subscriberUrl?: SortOrder;
+ payloadTemplate?: SortOrder;
+ createdAt?: SortOrder;
+ active?: SortOrder;
+ eventTriggers?: SortOrder;
+ userId?: SortOrder;
+ eventTypeId?: SortOrder;
+ appId?: SortOrder;
+ secret?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/WebhookUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/webhook/WebhookUpdateInput.ts
new file mode 100644
index 0000000..7253452
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/WebhookUpdateInput.ts
@@ -0,0 +1,16 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+import { AppModelWhereUniqueInput } from "../appModel/AppModelWhereUniqueInput";
+
+export type WebhookUpdateInput = {
+ subscriberUrl?: string;
+ payloadTemplate?: string | null;
+ active?: boolean;
+ eventTriggers?: Array<
+ "BOOKING_CREATED" | "BOOKING_RESCHEDULED" | "BOOKING_CANCELLED"
+ >;
+ user?: UserWhereUniqueInput | null;
+ eventType?: EventTypeWhereUniqueInput | null;
+ appField?: AppModelWhereUniqueInput | null;
+ secret?: string | null;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/WebhookWhereInput.ts b/apps/roi-cacl-2-admin/src/api/webhook/WebhookWhereInput.ts
new file mode 100644
index 0000000..1a75513
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/WebhookWhereInput.ts
@@ -0,0 +1,19 @@
+import { StringFilter } from "../../util/StringFilter";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+import { BooleanFilter } from "../../util/BooleanFilter";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+import { AppModelWhereUniqueInput } from "../appModel/AppModelWhereUniqueInput";
+
+export type WebhookWhereInput = {
+ id?: StringFilter;
+ subscriberUrl?: StringFilter;
+ payloadTemplate?: StringNullableFilter;
+ createdAt?: DateTimeFilter;
+ active?: BooleanFilter;
+ user?: UserWhereUniqueInput;
+ eventType?: EventTypeWhereUniqueInput;
+ appField?: AppModelWhereUniqueInput;
+ secret?: StringNullableFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/webhook/WebhookWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/webhook/WebhookWhereUniqueInput.ts
new file mode 100644
index 0000000..a7321ce
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/webhook/WebhookWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type WebhookWhereUniqueInput = {
+ id: string;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/CreateWorkflowArgs.ts b/apps/roi-cacl-2-admin/src/api/workflow/CreateWorkflowArgs.ts
new file mode 100644
index 0000000..e2197ab
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/CreateWorkflowArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowCreateInput } from "./WorkflowCreateInput";
+
+export type CreateWorkflowArgs = {
+ data: WorkflowCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/DeleteWorkflowArgs.ts b/apps/roi-cacl-2-admin/src/api/workflow/DeleteWorkflowArgs.ts
new file mode 100644
index 0000000..a6110dd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/DeleteWorkflowArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowWhereUniqueInput } from "./WorkflowWhereUniqueInput";
+
+export type DeleteWorkflowArgs = {
+ where: WorkflowWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/EnumWorkflowTimeUnit.ts b/apps/roi-cacl-2-admin/src/api/workflow/EnumWorkflowTimeUnit.ts
new file mode 100644
index 0000000..6fdbb9c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/EnumWorkflowTimeUnit.ts
@@ -0,0 +1,5 @@
+export enum EnumWorkflowTimeUnit {
+ Day = "DAY",
+ Hour = "HOUR",
+ Minute = "MINUTE",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/EnumWorkflowTrigger.ts b/apps/roi-cacl-2-admin/src/api/workflow/EnumWorkflowTrigger.ts
new file mode 100644
index 0000000..7449ff7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/EnumWorkflowTrigger.ts
@@ -0,0 +1,5 @@
+export enum EnumWorkflowTrigger {
+ BeforeEvent = "BEFORE_EVENT",
+ EventCancelled = "EVENT_CANCELLED",
+ NewEvent = "NEW_EVENT",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/UpdateWorkflowArgs.ts b/apps/roi-cacl-2-admin/src/api/workflow/UpdateWorkflowArgs.ts
new file mode 100644
index 0000000..a1f1685
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/UpdateWorkflowArgs.ts
@@ -0,0 +1,7 @@
+import { WorkflowWhereUniqueInput } from "./WorkflowWhereUniqueInput";
+import { WorkflowUpdateInput } from "./WorkflowUpdateInput";
+
+export type UpdateWorkflowArgs = {
+ where: WorkflowWhereUniqueInput;
+ data: WorkflowUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/Workflow.ts b/apps/roi-cacl-2-admin/src/api/workflow/Workflow.ts
new file mode 100644
index 0000000..cc85d1c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/Workflow.ts
@@ -0,0 +1,14 @@
+import { User } from "../user/User";
+import { WorkflowStep } from "../workflowStep/WorkflowStep";
+import { WorkflowsOnEventType } from "../workflowsOnEventType/WorkflowsOnEventType";
+
+export type Workflow = {
+ id: number;
+ name: string;
+ user?: User;
+ trigger?: "BEFORE_EVENT" | "EVENT_CANCELLED" | "NEW_EVENT";
+ time: number | null;
+ timeUnit?: "DAY" | "HOUR" | "MINUTE" | null;
+ steps?: Array;
+ activeOn?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/WorkflowCountArgs.ts b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowCountArgs.ts
new file mode 100644
index 0000000..66ab5fb
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowCountArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowWhereInput } from "./WorkflowWhereInput";
+
+export type WorkflowCountArgs = {
+ where?: WorkflowWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/WorkflowCreateInput.ts b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowCreateInput.ts
new file mode 100644
index 0000000..c6a64c6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowCreateInput.ts
@@ -0,0 +1,13 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { WorkflowStepCreateNestedManyWithoutWorkflowsInput } from "./WorkflowStepCreateNestedManyWithoutWorkflowsInput";
+import { WorkflowsOnEventTypeCreateNestedManyWithoutWorkflowsInput } from "./WorkflowsOnEventTypeCreateNestedManyWithoutWorkflowsInput";
+
+export type WorkflowCreateInput = {
+ name: string;
+ user: UserWhereUniqueInput;
+ trigger: "BEFORE_EVENT" | "EVENT_CANCELLED" | "NEW_EVENT";
+ time?: number | null;
+ timeUnit?: "DAY" | "HOUR" | "MINUTE" | null;
+ steps?: WorkflowStepCreateNestedManyWithoutWorkflowsInput;
+ activeOn?: WorkflowsOnEventTypeCreateNestedManyWithoutWorkflowsInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/WorkflowFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowFindManyArgs.ts
new file mode 100644
index 0000000..da62560
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { WorkflowWhereInput } from "./WorkflowWhereInput";
+import { WorkflowOrderByInput } from "./WorkflowOrderByInput";
+
+export type WorkflowFindManyArgs = {
+ where?: WorkflowWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/WorkflowFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowFindUniqueArgs.ts
new file mode 100644
index 0000000..810ce98
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowWhereUniqueInput } from "./WorkflowWhereUniqueInput";
+
+export type WorkflowFindUniqueArgs = {
+ where: WorkflowWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/WorkflowListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowListRelationFilter.ts
new file mode 100644
index 0000000..d299ca7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { WorkflowWhereInput } from "./WorkflowWhereInput";
+
+export type WorkflowListRelationFilter = {
+ every?: WorkflowWhereInput;
+ some?: WorkflowWhereInput;
+ none?: WorkflowWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/WorkflowOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowOrderByInput.ts
new file mode 100644
index 0000000..84cca1b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowOrderByInput.ts
@@ -0,0 +1,10 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type WorkflowOrderByInput = {
+ id?: SortOrder;
+ name?: SortOrder;
+ userId?: SortOrder;
+ trigger?: SortOrder;
+ time?: SortOrder;
+ timeUnit?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/WorkflowStepCreateNestedManyWithoutWorkflowsInput.ts b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowStepCreateNestedManyWithoutWorkflowsInput.ts
new file mode 100644
index 0000000..511e8dd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowStepCreateNestedManyWithoutWorkflowsInput.ts
@@ -0,0 +1,5 @@
+import { WorkflowStepWhereUniqueInput } from "../workflowStep/WorkflowStepWhereUniqueInput";
+
+export type WorkflowStepCreateNestedManyWithoutWorkflowsInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/WorkflowStepUpdateManyWithoutWorkflowsInput.ts b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowStepUpdateManyWithoutWorkflowsInput.ts
new file mode 100644
index 0000000..a1350a2
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowStepUpdateManyWithoutWorkflowsInput.ts
@@ -0,0 +1,7 @@
+import { WorkflowStepWhereUniqueInput } from "../workflowStep/WorkflowStepWhereUniqueInput";
+
+export type WorkflowStepUpdateManyWithoutWorkflowsInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/WorkflowUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowUpdateInput.ts
new file mode 100644
index 0000000..bcd0fa7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowUpdateInput.ts
@@ -0,0 +1,13 @@
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { WorkflowStepUpdateManyWithoutWorkflowsInput } from "./WorkflowStepUpdateManyWithoutWorkflowsInput";
+import { WorkflowsOnEventTypeUpdateManyWithoutWorkflowsInput } from "./WorkflowsOnEventTypeUpdateManyWithoutWorkflowsInput";
+
+export type WorkflowUpdateInput = {
+ name?: string;
+ user?: UserWhereUniqueInput;
+ trigger?: "BEFORE_EVENT" | "EVENT_CANCELLED" | "NEW_EVENT";
+ time?: number | null;
+ timeUnit?: "DAY" | "HOUR" | "MINUTE" | null;
+ steps?: WorkflowStepUpdateManyWithoutWorkflowsInput;
+ activeOn?: WorkflowsOnEventTypeUpdateManyWithoutWorkflowsInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/WorkflowWhereInput.ts b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowWhereInput.ts
new file mode 100644
index 0000000..2735cdd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowWhereInput.ts
@@ -0,0 +1,17 @@
+import { IntFilter } from "../../util/IntFilter";
+import { StringFilter } from "../../util/StringFilter";
+import { UserWhereUniqueInput } from "../user/UserWhereUniqueInput";
+import { IntNullableFilter } from "../../util/IntNullableFilter";
+import { WorkflowStepListRelationFilter } from "../workflowStep/WorkflowStepListRelationFilter";
+import { WorkflowsOnEventTypeListRelationFilter } from "../workflowsOnEventType/WorkflowsOnEventTypeListRelationFilter";
+
+export type WorkflowWhereInput = {
+ id?: IntFilter;
+ name?: StringFilter;
+ user?: UserWhereUniqueInput;
+ trigger?: "BEFORE_EVENT" | "EVENT_CANCELLED" | "NEW_EVENT";
+ time?: IntNullableFilter;
+ timeUnit?: "DAY" | "HOUR" | "MINUTE";
+ steps?: WorkflowStepListRelationFilter;
+ activeOn?: WorkflowsOnEventTypeListRelationFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/WorkflowWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowWhereUniqueInput.ts
new file mode 100644
index 0000000..85b1e7f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type WorkflowWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/WorkflowsOnEventTypeCreateNestedManyWithoutWorkflowsInput.ts b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowsOnEventTypeCreateNestedManyWithoutWorkflowsInput.ts
new file mode 100644
index 0000000..7ac3e63
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowsOnEventTypeCreateNestedManyWithoutWorkflowsInput.ts
@@ -0,0 +1,5 @@
+import { WorkflowsOnEventTypeWhereUniqueInput } from "../workflowsOnEventType/WorkflowsOnEventTypeWhereUniqueInput";
+
+export type WorkflowsOnEventTypeCreateNestedManyWithoutWorkflowsInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflow/WorkflowsOnEventTypeUpdateManyWithoutWorkflowsInput.ts b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowsOnEventTypeUpdateManyWithoutWorkflowsInput.ts
new file mode 100644
index 0000000..1fa3ef3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflow/WorkflowsOnEventTypeUpdateManyWithoutWorkflowsInput.ts
@@ -0,0 +1,7 @@
+import { WorkflowsOnEventTypeWhereUniqueInput } from "../workflowsOnEventType/WorkflowsOnEventTypeWhereUniqueInput";
+
+export type WorkflowsOnEventTypeUpdateManyWithoutWorkflowsInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/CreateWorkflowReminderArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/CreateWorkflowReminderArgs.ts
new file mode 100644
index 0000000..5784536
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/CreateWorkflowReminderArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowReminderCreateInput } from "./WorkflowReminderCreateInput";
+
+export type CreateWorkflowReminderArgs = {
+ data: WorkflowReminderCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/DeleteWorkflowReminderArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/DeleteWorkflowReminderArgs.ts
new file mode 100644
index 0000000..d605928
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/DeleteWorkflowReminderArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowReminderWhereUniqueInput } from "./WorkflowReminderWhereUniqueInput";
+
+export type DeleteWorkflowReminderArgs = {
+ where: WorkflowReminderWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/EnumWorkflowReminderMethod.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/EnumWorkflowReminderMethod.ts
new file mode 100644
index 0000000..ea15c39
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/EnumWorkflowReminderMethod.ts
@@ -0,0 +1,4 @@
+export enum EnumWorkflowReminderMethod {
+ Email = "EMAIL",
+ Sms = "SMS",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/UpdateWorkflowReminderArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/UpdateWorkflowReminderArgs.ts
new file mode 100644
index 0000000..54013ac
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/UpdateWorkflowReminderArgs.ts
@@ -0,0 +1,7 @@
+import { WorkflowReminderWhereUniqueInput } from "./WorkflowReminderWhereUniqueInput";
+import { WorkflowReminderUpdateInput } from "./WorkflowReminderUpdateInput";
+
+export type UpdateWorkflowReminderArgs = {
+ where: WorkflowReminderWhereUniqueInput;
+ data: WorkflowReminderUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminder.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminder.ts
new file mode 100644
index 0000000..4cd3828
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminder.ts
@@ -0,0 +1,12 @@
+import { Booking } from "../booking/Booking";
+import { WorkflowStep } from "../workflowStep/WorkflowStep";
+
+export type WorkflowReminder = {
+ id: number;
+ booking?: Booking | null;
+ method?: "EMAIL" | "SMS";
+ scheduledDate: Date;
+ referenceId: string | null;
+ scheduled: boolean;
+ workflowStep?: WorkflowStep;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderCountArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderCountArgs.ts
new file mode 100644
index 0000000..9aa2ea0
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderCountArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowReminderWhereInput } from "./WorkflowReminderWhereInput";
+
+export type WorkflowReminderCountArgs = {
+ where?: WorkflowReminderWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderCreateInput.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderCreateInput.ts
new file mode 100644
index 0000000..c85800d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderCreateInput.ts
@@ -0,0 +1,11 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+import { WorkflowStepWhereUniqueInput } from "../workflowStep/WorkflowStepWhereUniqueInput";
+
+export type WorkflowReminderCreateInput = {
+ booking?: BookingWhereUniqueInput | null;
+ method: "EMAIL" | "SMS";
+ scheduledDate: Date;
+ referenceId?: string | null;
+ scheduled: boolean;
+ workflowStep: WorkflowStepWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderFindManyArgs.ts
new file mode 100644
index 0000000..85c2b4e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { WorkflowReminderWhereInput } from "./WorkflowReminderWhereInput";
+import { WorkflowReminderOrderByInput } from "./WorkflowReminderOrderByInput";
+
+export type WorkflowReminderFindManyArgs = {
+ where?: WorkflowReminderWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderFindUniqueArgs.ts
new file mode 100644
index 0000000..26503ea
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowReminderWhereUniqueInput } from "./WorkflowReminderWhereUniqueInput";
+
+export type WorkflowReminderFindUniqueArgs = {
+ where: WorkflowReminderWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderListRelationFilter.ts
new file mode 100644
index 0000000..820a202
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { WorkflowReminderWhereInput } from "./WorkflowReminderWhereInput";
+
+export type WorkflowReminderListRelationFilter = {
+ every?: WorkflowReminderWhereInput;
+ some?: WorkflowReminderWhereInput;
+ none?: WorkflowReminderWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderOrderByInput.ts
new file mode 100644
index 0000000..64b1575
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderOrderByInput.ts
@@ -0,0 +1,11 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type WorkflowReminderOrderByInput = {
+ id?: SortOrder;
+ bookingUid?: SortOrder;
+ method?: SortOrder;
+ scheduledDate?: SortOrder;
+ referenceId?: SortOrder;
+ scheduled?: SortOrder;
+ workflowStepId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderUpdateInput.ts
new file mode 100644
index 0000000..c8df314
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderUpdateInput.ts
@@ -0,0 +1,11 @@
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+import { WorkflowStepWhereUniqueInput } from "../workflowStep/WorkflowStepWhereUniqueInput";
+
+export type WorkflowReminderUpdateInput = {
+ booking?: BookingWhereUniqueInput | null;
+ method?: "EMAIL" | "SMS";
+ scheduledDate?: Date;
+ referenceId?: string | null;
+ scheduled?: boolean;
+ workflowStep?: WorkflowStepWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderWhereInput.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderWhereInput.ts
new file mode 100644
index 0000000..a382f13
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderWhereInput.ts
@@ -0,0 +1,16 @@
+import { IntFilter } from "../../util/IntFilter";
+import { BookingWhereUniqueInput } from "../booking/BookingWhereUniqueInput";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { BooleanFilter } from "../../util/BooleanFilter";
+import { WorkflowStepWhereUniqueInput } from "../workflowStep/WorkflowStepWhereUniqueInput";
+
+export type WorkflowReminderWhereInput = {
+ id?: IntFilter;
+ booking?: BookingWhereUniqueInput;
+ method?: "EMAIL" | "SMS";
+ scheduledDate?: DateTimeFilter;
+ referenceId?: StringNullableFilter;
+ scheduled?: BooleanFilter;
+ workflowStep?: WorkflowStepWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderWhereUniqueInput.ts
new file mode 100644
index 0000000..0f28e2b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowReminder/WorkflowReminderWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type WorkflowReminderWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/CreateWorkflowStepArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/CreateWorkflowStepArgs.ts
new file mode 100644
index 0000000..bba9539
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/CreateWorkflowStepArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowStepCreateInput } from "./WorkflowStepCreateInput";
+
+export type CreateWorkflowStepArgs = {
+ data: WorkflowStepCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/DeleteWorkflowStepArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/DeleteWorkflowStepArgs.ts
new file mode 100644
index 0000000..4b5bb40
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/DeleteWorkflowStepArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowStepWhereUniqueInput } from "./WorkflowStepWhereUniqueInput";
+
+export type DeleteWorkflowStepArgs = {
+ where: WorkflowStepWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/EnumWorkflowStepAction.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/EnumWorkflowStepAction.ts
new file mode 100644
index 0000000..dbd2b25
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/EnumWorkflowStepAction.ts
@@ -0,0 +1,6 @@
+export enum EnumWorkflowStepAction {
+ EmailHost = "EMAIL_HOST",
+ EmailAttendee = "EMAIL_ATTENDEE",
+ SmsAttendee = "SMS_ATTENDEE",
+ SmsNumber = "SMS_NUMBER",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/EnumWorkflowStepTemplate.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/EnumWorkflowStepTemplate.ts
new file mode 100644
index 0000000..5d095fb
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/EnumWorkflowStepTemplate.ts
@@ -0,0 +1,4 @@
+export enum EnumWorkflowStepTemplate {
+ Reminder = "REMINDER",
+ Custom = "CUSTOM",
+}
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/UpdateWorkflowStepArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/UpdateWorkflowStepArgs.ts
new file mode 100644
index 0000000..213272d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/UpdateWorkflowStepArgs.ts
@@ -0,0 +1,7 @@
+import { WorkflowStepWhereUniqueInput } from "./WorkflowStepWhereUniqueInput";
+import { WorkflowStepUpdateInput } from "./WorkflowStepUpdateInput";
+
+export type UpdateWorkflowStepArgs = {
+ where: WorkflowStepWhereUniqueInput;
+ data: WorkflowStepUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowReminderCreateNestedManyWithoutWorkflowStepsInput.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowReminderCreateNestedManyWithoutWorkflowStepsInput.ts
new file mode 100644
index 0000000..7524512
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowReminderCreateNestedManyWithoutWorkflowStepsInput.ts
@@ -0,0 +1,5 @@
+import { WorkflowReminderWhereUniqueInput } from "../workflowReminder/WorkflowReminderWhereUniqueInput";
+
+export type WorkflowReminderCreateNestedManyWithoutWorkflowStepsInput = {
+ connect?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowReminderUpdateManyWithoutWorkflowStepsInput.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowReminderUpdateManyWithoutWorkflowStepsInput.ts
new file mode 100644
index 0000000..770bdb0
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowReminderUpdateManyWithoutWorkflowStepsInput.ts
@@ -0,0 +1,7 @@
+import { WorkflowReminderWhereUniqueInput } from "../workflowReminder/WorkflowReminderWhereUniqueInput";
+
+export type WorkflowReminderUpdateManyWithoutWorkflowStepsInput = {
+ connect?: Array;
+ disconnect?: Array;
+ set?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStep.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStep.ts
new file mode 100644
index 0000000..a69e063
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStep.ts
@@ -0,0 +1,14 @@
+import { Workflow } from "../workflow/Workflow";
+import { WorkflowReminder } from "../workflowReminder/WorkflowReminder";
+
+export type WorkflowStep = {
+ id: number;
+ stepNumber: number;
+ action?: "EMAIL_HOST" | "EMAIL_ATTENDEE" | "SMS_ATTENDEE" | "SMS_NUMBER";
+ workflow?: Workflow;
+ sendTo: string | null;
+ reminderBody: string | null;
+ emailSubject: string | null;
+ template?: "REMINDER" | "CUSTOM";
+ workflowReminders?: Array;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepCountArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepCountArgs.ts
new file mode 100644
index 0000000..3c74391
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepCountArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowStepWhereInput } from "./WorkflowStepWhereInput";
+
+export type WorkflowStepCountArgs = {
+ where?: WorkflowStepWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepCreateInput.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepCreateInput.ts
new file mode 100644
index 0000000..daa81fb
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepCreateInput.ts
@@ -0,0 +1,13 @@
+import { WorkflowWhereUniqueInput } from "../workflow/WorkflowWhereUniqueInput";
+import { WorkflowReminderCreateNestedManyWithoutWorkflowStepsInput } from "./WorkflowReminderCreateNestedManyWithoutWorkflowStepsInput";
+
+export type WorkflowStepCreateInput = {
+ stepNumber: number;
+ action: "EMAIL_HOST" | "EMAIL_ATTENDEE" | "SMS_ATTENDEE" | "SMS_NUMBER";
+ workflow: WorkflowWhereUniqueInput;
+ sendTo?: string | null;
+ reminderBody?: string | null;
+ emailSubject?: string | null;
+ template: "REMINDER" | "CUSTOM";
+ workflowReminders?: WorkflowReminderCreateNestedManyWithoutWorkflowStepsInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepFindManyArgs.ts
new file mode 100644
index 0000000..0f8cf9f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { WorkflowStepWhereInput } from "./WorkflowStepWhereInput";
+import { WorkflowStepOrderByInput } from "./WorkflowStepOrderByInput";
+
+export type WorkflowStepFindManyArgs = {
+ where?: WorkflowStepWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepFindUniqueArgs.ts
new file mode 100644
index 0000000..3c34755
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowStepWhereUniqueInput } from "./WorkflowStepWhereUniqueInput";
+
+export type WorkflowStepFindUniqueArgs = {
+ where: WorkflowStepWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepListRelationFilter.ts
new file mode 100644
index 0000000..6af4c7a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { WorkflowStepWhereInput } from "./WorkflowStepWhereInput";
+
+export type WorkflowStepListRelationFilter = {
+ every?: WorkflowStepWhereInput;
+ some?: WorkflowStepWhereInput;
+ none?: WorkflowStepWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepOrderByInput.ts
new file mode 100644
index 0000000..39eae4b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepOrderByInput.ts
@@ -0,0 +1,12 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type WorkflowStepOrderByInput = {
+ id?: SortOrder;
+ stepNumber?: SortOrder;
+ action?: SortOrder;
+ workflowId?: SortOrder;
+ sendTo?: SortOrder;
+ reminderBody?: SortOrder;
+ emailSubject?: SortOrder;
+ template?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepUpdateInput.ts
new file mode 100644
index 0000000..6f0fd77
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepUpdateInput.ts
@@ -0,0 +1,13 @@
+import { WorkflowWhereUniqueInput } from "../workflow/WorkflowWhereUniqueInput";
+import { WorkflowReminderUpdateManyWithoutWorkflowStepsInput } from "./WorkflowReminderUpdateManyWithoutWorkflowStepsInput";
+
+export type WorkflowStepUpdateInput = {
+ stepNumber?: number;
+ action?: "EMAIL_HOST" | "EMAIL_ATTENDEE" | "SMS_ATTENDEE" | "SMS_NUMBER";
+ workflow?: WorkflowWhereUniqueInput;
+ sendTo?: string | null;
+ reminderBody?: string | null;
+ emailSubject?: string | null;
+ template?: "REMINDER" | "CUSTOM";
+ workflowReminders?: WorkflowReminderUpdateManyWithoutWorkflowStepsInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepWhereInput.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepWhereInput.ts
new file mode 100644
index 0000000..2f6fa1e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepWhereInput.ts
@@ -0,0 +1,16 @@
+import { IntFilter } from "../../util/IntFilter";
+import { WorkflowWhereUniqueInput } from "../workflow/WorkflowWhereUniqueInput";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { WorkflowReminderListRelationFilter } from "../workflowReminder/WorkflowReminderListRelationFilter";
+
+export type WorkflowStepWhereInput = {
+ id?: IntFilter;
+ stepNumber?: IntFilter;
+ action?: "EMAIL_HOST" | "EMAIL_ATTENDEE" | "SMS_ATTENDEE" | "SMS_NUMBER";
+ workflow?: WorkflowWhereUniqueInput;
+ sendTo?: StringNullableFilter;
+ reminderBody?: StringNullableFilter;
+ emailSubject?: StringNullableFilter;
+ template?: "REMINDER" | "CUSTOM";
+ workflowReminders?: WorkflowReminderListRelationFilter;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepWhereUniqueInput.ts
new file mode 100644
index 0000000..8f78b1a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowStep/WorkflowStepWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type WorkflowStepWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/CreateWorkflowsOnEventTypeArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/CreateWorkflowsOnEventTypeArgs.ts
new file mode 100644
index 0000000..68db3be
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/CreateWorkflowsOnEventTypeArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowsOnEventTypeCreateInput } from "./WorkflowsOnEventTypeCreateInput";
+
+export type CreateWorkflowsOnEventTypeArgs = {
+ data: WorkflowsOnEventTypeCreateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/DeleteWorkflowsOnEventTypeArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/DeleteWorkflowsOnEventTypeArgs.ts
new file mode 100644
index 0000000..278d9ec
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/DeleteWorkflowsOnEventTypeArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowsOnEventTypeWhereUniqueInput } from "./WorkflowsOnEventTypeWhereUniqueInput";
+
+export type DeleteWorkflowsOnEventTypeArgs = {
+ where: WorkflowsOnEventTypeWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/UpdateWorkflowsOnEventTypeArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/UpdateWorkflowsOnEventTypeArgs.ts
new file mode 100644
index 0000000..353a7c1
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/UpdateWorkflowsOnEventTypeArgs.ts
@@ -0,0 +1,7 @@
+import { WorkflowsOnEventTypeWhereUniqueInput } from "./WorkflowsOnEventTypeWhereUniqueInput";
+import { WorkflowsOnEventTypeUpdateInput } from "./WorkflowsOnEventTypeUpdateInput";
+
+export type UpdateWorkflowsOnEventTypeArgs = {
+ where: WorkflowsOnEventTypeWhereUniqueInput;
+ data: WorkflowsOnEventTypeUpdateInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventType.ts b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventType.ts
new file mode 100644
index 0000000..b98d345
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventType.ts
@@ -0,0 +1,8 @@
+import { Workflow } from "../workflow/Workflow";
+import { EventType } from "../eventType/EventType";
+
+export type WorkflowsOnEventType = {
+ id: number;
+ workflow?: Workflow;
+ eventType?: EventType;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeCountArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeCountArgs.ts
new file mode 100644
index 0000000..2000932
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeCountArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowsOnEventTypeWhereInput } from "./WorkflowsOnEventTypeWhereInput";
+
+export type WorkflowsOnEventTypeCountArgs = {
+ where?: WorkflowsOnEventTypeWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeCreateInput.ts b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeCreateInput.ts
new file mode 100644
index 0000000..5b874bd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeCreateInput.ts
@@ -0,0 +1,7 @@
+import { WorkflowWhereUniqueInput } from "../workflow/WorkflowWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type WorkflowsOnEventTypeCreateInput = {
+ workflow: WorkflowWhereUniqueInput;
+ eventType: EventTypeWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeFindManyArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeFindManyArgs.ts
new file mode 100644
index 0000000..4dc9335
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeFindManyArgs.ts
@@ -0,0 +1,9 @@
+import { WorkflowsOnEventTypeWhereInput } from "./WorkflowsOnEventTypeWhereInput";
+import { WorkflowsOnEventTypeOrderByInput } from "./WorkflowsOnEventTypeOrderByInput";
+
+export type WorkflowsOnEventTypeFindManyArgs = {
+ where?: WorkflowsOnEventTypeWhereInput;
+ orderBy?: Array;
+ skip?: number;
+ take?: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeFindUniqueArgs.ts b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeFindUniqueArgs.ts
new file mode 100644
index 0000000..2020435
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeFindUniqueArgs.ts
@@ -0,0 +1,5 @@
+import { WorkflowsOnEventTypeWhereUniqueInput } from "./WorkflowsOnEventTypeWhereUniqueInput";
+
+export type WorkflowsOnEventTypeFindUniqueArgs = {
+ where: WorkflowsOnEventTypeWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeListRelationFilter.ts b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeListRelationFilter.ts
new file mode 100644
index 0000000..85be4bd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeListRelationFilter.ts
@@ -0,0 +1,7 @@
+import { WorkflowsOnEventTypeWhereInput } from "./WorkflowsOnEventTypeWhereInput";
+
+export type WorkflowsOnEventTypeListRelationFilter = {
+ every?: WorkflowsOnEventTypeWhereInput;
+ some?: WorkflowsOnEventTypeWhereInput;
+ none?: WorkflowsOnEventTypeWhereInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeOrderByInput.ts b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeOrderByInput.ts
new file mode 100644
index 0000000..cba8706
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeOrderByInput.ts
@@ -0,0 +1,7 @@
+import { SortOrder } from "../../util/SortOrder";
+
+export type WorkflowsOnEventTypeOrderByInput = {
+ id?: SortOrder;
+ workflowId?: SortOrder;
+ eventTypeId?: SortOrder;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeUpdateInput.ts b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeUpdateInput.ts
new file mode 100644
index 0000000..063c0ac
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeUpdateInput.ts
@@ -0,0 +1,7 @@
+import { WorkflowWhereUniqueInput } from "../workflow/WorkflowWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type WorkflowsOnEventTypeUpdateInput = {
+ workflow?: WorkflowWhereUniqueInput;
+ eventType?: EventTypeWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeWhereInput.ts b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeWhereInput.ts
new file mode 100644
index 0000000..dd65231
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeWhereInput.ts
@@ -0,0 +1,9 @@
+import { IntFilter } from "../../util/IntFilter";
+import { WorkflowWhereUniqueInput } from "../workflow/WorkflowWhereUniqueInput";
+import { EventTypeWhereUniqueInput } from "../eventType/EventTypeWhereUniqueInput";
+
+export type WorkflowsOnEventTypeWhereInput = {
+ id?: IntFilter;
+ workflow?: WorkflowWhereUniqueInput;
+ eventType?: EventTypeWhereUniqueInput;
+};
diff --git a/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeWhereUniqueInput.ts b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeWhereUniqueInput.ts
new file mode 100644
index 0000000..cdd2208
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/api/workflowsOnEventType/WorkflowsOnEventTypeWhereUniqueInput.ts
@@ -0,0 +1,3 @@
+export type WorkflowsOnEventTypeWhereUniqueInput = {
+ id: number;
+};
diff --git a/apps/roi-cacl-2-admin/src/apiKey/ApiKeyCreate.tsx b/apps/roi-cacl-2-admin/src/apiKey/ApiKeyCreate.tsx
new file mode 100644
index 0000000..f5b2cba
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/apiKey/ApiKeyCreate.tsx
@@ -0,0 +1,37 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ DateTimeInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { AppModelTitle } from "../appModel/AppModelTitle";
+
+export const ApiKeyCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/apiKey/ApiKeyEdit.tsx b/apps/roi-cacl-2-admin/src/apiKey/ApiKeyEdit.tsx
new file mode 100644
index 0000000..5d5014b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/apiKey/ApiKeyEdit.tsx
@@ -0,0 +1,37 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ DateTimeInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { AppModelTitle } from "../appModel/AppModelTitle";
+
+export const ApiKeyEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/apiKey/ApiKeyList.tsx b/apps/roi-cacl-2-admin/src/apiKey/ApiKeyList.tsx
new file mode 100644
index 0000000..e9606d3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/apiKey/ApiKeyList.tsx
@@ -0,0 +1,43 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ DateField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { APPMODEL_TITLE_FIELD } from "../appModel/AppModelTitle";
+
+export const ApiKeyList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/apiKey/ApiKeyShow.tsx b/apps/roi-cacl-2-admin/src/apiKey/ApiKeyShow.tsx
new file mode 100644
index 0000000..933653b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/apiKey/ApiKeyShow.tsx
@@ -0,0 +1,36 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ DateField,
+ ReferenceField,
+} from "react-admin";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { APPMODEL_TITLE_FIELD } from "../appModel/AppModelTitle";
+
+export const ApiKeyShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/apiKey/ApiKeyTitle.ts b/apps/roi-cacl-2-admin/src/apiKey/ApiKeyTitle.ts
new file mode 100644
index 0000000..09af0e8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/apiKey/ApiKeyTitle.ts
@@ -0,0 +1,7 @@
+import { ApiKey as TApiKey } from "../api/apiKey/ApiKey";
+
+export const APIKEY_TITLE_FIELD = "note";
+
+export const ApiKeyTitle = (record: TApiKey): string => {
+ return record.note?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/appModel/AppModelCreate.tsx b/apps/roi-cacl-2-admin/src/appModel/AppModelCreate.tsx
new file mode 100644
index 0000000..b92553a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/appModel/AppModelCreate.tsx
@@ -0,0 +1,63 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ SelectArrayInput,
+ ReferenceArrayInput,
+} from "react-admin";
+
+import { CredentialTitle } from "../credential/CredentialTitle";
+import { WebhookTitle } from "../webhook/WebhookTitle";
+import { ApiKeyTitle } from "../apiKey/ApiKeyTitle";
+
+export const AppModelCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/appModel/AppModelEdit.tsx b/apps/roi-cacl-2-admin/src/appModel/AppModelEdit.tsx
new file mode 100644
index 0000000..bf6caea
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/appModel/AppModelEdit.tsx
@@ -0,0 +1,63 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ SelectArrayInput,
+ ReferenceArrayInput,
+} from "react-admin";
+
+import { CredentialTitle } from "../credential/CredentialTitle";
+import { WebhookTitle } from "../webhook/WebhookTitle";
+import { ApiKeyTitle } from "../apiKey/ApiKeyTitle";
+
+export const AppModelEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/appModel/AppModelList.tsx b/apps/roi-cacl-2-admin/src/appModel/AppModelList.tsx
new file mode 100644
index 0000000..6f51b72
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/appModel/AppModelList.tsx
@@ -0,0 +1,24 @@
+import * as React from "react";
+import { List, Datagrid, ListProps, TextField, DateField } from "react-admin";
+import Pagination from "../Components/Pagination";
+
+export const AppModelList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/appModel/AppModelShow.tsx b/apps/roi-cacl-2-admin/src/appModel/AppModelShow.tsx
new file mode 100644
index 0000000..5866d2d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/appModel/AppModelShow.tsx
@@ -0,0 +1,101 @@
+import * as React from "react";
+
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ DateField,
+ ReferenceManyField,
+ Datagrid,
+ ReferenceField,
+ BooleanField,
+} from "react-admin";
+
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { APPMODEL_TITLE_FIELD } from "./AppModelTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+
+export const AppModelShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/appModel/AppModelTitle.ts b/apps/roi-cacl-2-admin/src/appModel/AppModelTitle.ts
new file mode 100644
index 0000000..6f6476b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/appModel/AppModelTitle.ts
@@ -0,0 +1,7 @@
+import { AppModel as TAppModel } from "../api/appModel/AppModel";
+
+export const APPMODEL_TITLE_FIELD = "dirName";
+
+export const AppModelTitle = (record: TAppModel): string => {
+ return record.dirName?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/attendee/AttendeeCreate.tsx b/apps/roi-cacl-2-admin/src/attendee/AttendeeCreate.tsx
new file mode 100644
index 0000000..c22e5df
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/attendee/AttendeeCreate.tsx
@@ -0,0 +1,26 @@
+import * as React from "react";
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+import { BookingTitle } from "../booking/BookingTitle";
+
+export const AttendeeCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/attendee/AttendeeEdit.tsx b/apps/roi-cacl-2-admin/src/attendee/AttendeeEdit.tsx
new file mode 100644
index 0000000..408a04d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/attendee/AttendeeEdit.tsx
@@ -0,0 +1,26 @@
+import * as React from "react";
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+import { BookingTitle } from "../booking/BookingTitle";
+
+export const AttendeeEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/attendee/AttendeeList.tsx b/apps/roi-cacl-2-admin/src/attendee/AttendeeList.tsx
new file mode 100644
index 0000000..56cbac9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/attendee/AttendeeList.tsx
@@ -0,0 +1,33 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+
+export const AttendeeList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/attendee/AttendeeShow.tsx b/apps/roi-cacl-2-admin/src/attendee/AttendeeShow.tsx
new file mode 100644
index 0000000..6416c9b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/attendee/AttendeeShow.tsx
@@ -0,0 +1,26 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+
+export const AttendeeShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/attendee/AttendeeTitle.ts b/apps/roi-cacl-2-admin/src/attendee/AttendeeTitle.ts
new file mode 100644
index 0000000..7592413
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/attendee/AttendeeTitle.ts
@@ -0,0 +1,7 @@
+import { Attendee as TAttendee } from "../api/attendee/Attendee";
+
+export const ATTENDEE_TITLE_FIELD = "name";
+
+export const AttendeeTitle = (record: TAttendee): string => {
+ return record.name?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/auth-provider/ra-auth-http.ts b/apps/roi-cacl-2-admin/src/auth-provider/ra-auth-http.ts
new file mode 100644
index 0000000..c6eeba8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/auth-provider/ra-auth-http.ts
@@ -0,0 +1,78 @@
+import { gql } from "@apollo/client/core";
+import { AuthProvider } from "react-admin";
+import {
+ CREDENTIALS_LOCAL_STORAGE_ITEM,
+ USER_DATA_LOCAL_STORAGE_ITEM,
+} from "../constants";
+import { Credentials, LoginMutateResult } from "../types";
+import { apolloClient } from "../data-provider/graphqlDataProvider";
+
+const LOGIN = gql`
+ mutation login($username: String!, $password: String!) {
+ login(credentials: { username: $username, password: $password }) {
+ username
+ roles
+ }
+ }
+`;
+
+export const httpAuthProvider: AuthProvider = {
+ login: async (credentials: Credentials) => {
+ const userData = await apolloClient.mutate({
+ mutation: LOGIN,
+ variables: {
+ ...credentials,
+ },
+ });
+
+ if (userData && userData.data?.login.username) {
+ localStorage.setItem(
+ CREDENTIALS_LOCAL_STORAGE_ITEM,
+ createBasicAuthorizationHeader(
+ credentials.username,
+ credentials.password
+ )
+ );
+ localStorage.setItem(
+ USER_DATA_LOCAL_STORAGE_ITEM,
+ JSON.stringify(userData.data)
+ );
+ return Promise.resolve();
+ }
+ return Promise.reject();
+ },
+ logout: () => {
+ localStorage.removeItem(CREDENTIALS_LOCAL_STORAGE_ITEM);
+ return Promise.resolve();
+ },
+ checkError: ({ status }: any) => {
+ if (status === 401 || status === 403) {
+ localStorage.removeItem(CREDENTIALS_LOCAL_STORAGE_ITEM);
+ return Promise.reject();
+ }
+ return Promise.resolve();
+ },
+ checkAuth: () => {
+ return localStorage.getItem(CREDENTIALS_LOCAL_STORAGE_ITEM)
+ ? Promise.resolve()
+ : Promise.reject();
+ },
+ getPermissions: () => Promise.reject("Unknown method"),
+ getIdentity: () => {
+ const str = localStorage.getItem(USER_DATA_LOCAL_STORAGE_ITEM);
+ const userData: LoginMutateResult = JSON.parse(str || "");
+
+ return Promise.resolve({
+ id: userData.login.username,
+ fullName: userData.login.username,
+ avatar: undefined,
+ });
+ },
+};
+
+function createBasicAuthorizationHeader(
+ username: string,
+ password: string
+): string {
+ return `Basic ${btoa(`${username}:${password}`)}`;
+}
diff --git a/apps/roi-cacl-2-admin/src/auth-provider/ra-auth-jwt.ts b/apps/roi-cacl-2-admin/src/auth-provider/ra-auth-jwt.ts
new file mode 100644
index 0000000..c8bcafc
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/auth-provider/ra-auth-jwt.ts
@@ -0,0 +1,72 @@
+import { gql } from "@apollo/client/core";
+import { AuthProvider } from "react-admin";
+import {
+ CREDENTIALS_LOCAL_STORAGE_ITEM,
+ USER_DATA_LOCAL_STORAGE_ITEM,
+} from "../constants";
+import { Credentials, LoginMutateResult } from "../types";
+import { apolloClient } from "../data-provider/graphqlDataProvider";
+
+const LOGIN = gql`
+ mutation login($username: String!, $password: String!) {
+ login(credentials: { username: $username, password: $password }) {
+ username
+ accessToken
+ }
+ }
+`;
+
+export const jwtAuthProvider: AuthProvider = {
+ login: async (credentials: Credentials) => {
+ const userData = await apolloClient.mutate({
+ mutation: LOGIN,
+ variables: {
+ ...credentials,
+ },
+ });
+
+ if (userData && userData.data?.login.username) {
+ localStorage.setItem(
+ CREDENTIALS_LOCAL_STORAGE_ITEM,
+ createBearerAuthorizationHeader(userData.data.login?.accessToken)
+ );
+ localStorage.setItem(
+ USER_DATA_LOCAL_STORAGE_ITEM,
+ JSON.stringify(userData.data)
+ );
+ return Promise.resolve();
+ }
+ return Promise.reject();
+ },
+ logout: () => {
+ localStorage.removeItem(CREDENTIALS_LOCAL_STORAGE_ITEM);
+ return Promise.resolve();
+ },
+ checkError: ({ status }: any) => {
+ if (status === 401 || status === 403) {
+ localStorage.removeItem(CREDENTIALS_LOCAL_STORAGE_ITEM);
+ return Promise.reject();
+ }
+ return Promise.resolve();
+ },
+ checkAuth: () => {
+ return localStorage.getItem(CREDENTIALS_LOCAL_STORAGE_ITEM)
+ ? Promise.resolve()
+ : Promise.reject();
+ },
+ getPermissions: () => Promise.reject("Unknown method"),
+ getIdentity: () => {
+ const str = localStorage.getItem(USER_DATA_LOCAL_STORAGE_ITEM);
+ const userData: LoginMutateResult = JSON.parse(str || "");
+
+ return Promise.resolve({
+ id: userData.login.username,
+ fullName: userData.login.username,
+ avatar: undefined,
+ });
+ },
+};
+
+export function createBearerAuthorizationHeader(accessToken: string) {
+ return `Bearer ${accessToken}`;
+}
diff --git a/apps/roi-cacl-2-admin/src/auth.ts b/apps/roi-cacl-2-admin/src/auth.ts
new file mode 100644
index 0000000..498b026
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/auth.ts
@@ -0,0 +1,34 @@
+import { EventEmitter } from "events";
+import { CREDENTIALS_LOCAL_STORAGE_ITEM } from "./constants";
+import { Credentials } from "./types";
+
+const eventEmitter = new EventEmitter();
+
+export function isAuthenticated(): boolean {
+ return Boolean(getCredentials());
+}
+
+export function listen(listener: (authenticated: boolean) => void): void {
+ eventEmitter.on("change", () => {
+ listener(isAuthenticated());
+ });
+}
+
+export function setCredentials(credentials: Credentials) {
+ localStorage.setItem(
+ CREDENTIALS_LOCAL_STORAGE_ITEM,
+ JSON.stringify(credentials)
+ );
+}
+
+export function getCredentials(): Credentials | null {
+ const raw = localStorage.getItem(CREDENTIALS_LOCAL_STORAGE_ITEM);
+ if (raw === null) {
+ return null;
+ }
+ return JSON.parse(raw);
+}
+
+export function removeCredentials(): void {
+ localStorage.removeItem(CREDENTIALS_LOCAL_STORAGE_ITEM);
+}
diff --git a/apps/roi-cacl-2-admin/src/availability/AvailabilityCreate.tsx b/apps/roi-cacl-2-admin/src/availability/AvailabilityCreate.tsx
new file mode 100644
index 0000000..bba64e3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/availability/AvailabilityCreate.tsx
@@ -0,0 +1,45 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ ReferenceInput,
+ SelectInput,
+ NumberInput,
+ DateTimeInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { ScheduleTitle } from "../schedule/ScheduleTitle";
+
+export const AvailabilityCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/availability/AvailabilityEdit.tsx b/apps/roi-cacl-2-admin/src/availability/AvailabilityEdit.tsx
new file mode 100644
index 0000000..d751508
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/availability/AvailabilityEdit.tsx
@@ -0,0 +1,45 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ ReferenceInput,
+ SelectInput,
+ NumberInput,
+ DateTimeInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { ScheduleTitle } from "../schedule/ScheduleTitle";
+
+export const AvailabilityEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/availability/AvailabilityList.tsx b/apps/roi-cacl-2-admin/src/availability/AvailabilityList.tsx
new file mode 100644
index 0000000..9aac891
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/availability/AvailabilityList.tsx
@@ -0,0 +1,49 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+import { SCHEDULE_TITLE_FIELD } from "../schedule/ScheduleTitle";
+
+export const AvailabilityList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/availability/AvailabilityShow.tsx b/apps/roi-cacl-2-admin/src/availability/AvailabilityShow.tsx
new file mode 100644
index 0000000..8528642
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/availability/AvailabilityShow.tsx
@@ -0,0 +1,42 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+import { SCHEDULE_TITLE_FIELD } from "../schedule/ScheduleTitle";
+
+export const AvailabilityShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/availability/AvailabilityTitle.ts b/apps/roi-cacl-2-admin/src/availability/AvailabilityTitle.ts
new file mode 100644
index 0000000..1271cf1
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/availability/AvailabilityTitle.ts
@@ -0,0 +1,7 @@
+import { Availability as TAvailability } from "../api/availability/Availability";
+
+export const AVAILABILITY_TITLE_FIELD = "id";
+
+export const AvailabilityTitle = (record: TAvailability): string => {
+ return record.id?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/booking/BookingCreate.tsx b/apps/roi-cacl-2-admin/src/booking/BookingCreate.tsx
new file mode 100644
index 0000000..bd53f00
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/booking/BookingCreate.tsx
@@ -0,0 +1,123 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+ DateTimeInput,
+ BooleanInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { DestinationCalendarTitle } from "../destinationCalendar/DestinationCalendarTitle";
+import { BookingReferenceTitle } from "../bookingReference/BookingReferenceTitle";
+import { AttendeeTitle } from "../attendee/AttendeeTitle";
+import { DailyEventReferenceTitle } from "../dailyEventReference/DailyEventReferenceTitle";
+import { PaymentTitle } from "../payment/PaymentTitle";
+import { WorkflowReminderTitle } from "../workflowReminder/WorkflowReminderTitle";
+
+export const BookingCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/booking/BookingEdit.tsx b/apps/roi-cacl-2-admin/src/booking/BookingEdit.tsx
new file mode 100644
index 0000000..7b559e2
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/booking/BookingEdit.tsx
@@ -0,0 +1,123 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+ DateTimeInput,
+ BooleanInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { DestinationCalendarTitle } from "../destinationCalendar/DestinationCalendarTitle";
+import { BookingReferenceTitle } from "../bookingReference/BookingReferenceTitle";
+import { AttendeeTitle } from "../attendee/AttendeeTitle";
+import { DailyEventReferenceTitle } from "../dailyEventReference/DailyEventReferenceTitle";
+import { PaymentTitle } from "../payment/PaymentTitle";
+import { WorkflowReminderTitle } from "../workflowReminder/WorkflowReminderTitle";
+
+export const BookingEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/booking/BookingList.tsx b/apps/roi-cacl-2-admin/src/booking/BookingList.tsx
new file mode 100644
index 0000000..80e9120
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/booking/BookingList.tsx
@@ -0,0 +1,82 @@
+import * as React from "react";
+
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+ DateField,
+ BooleanField,
+} from "react-admin";
+
+import Pagination from "../Components/Pagination";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+import { DESTINATIONCALENDAR_TITLE_FIELD } from "../destinationCalendar/DestinationCalendarTitle";
+import { DAILYEVENTREFERENCE_TITLE_FIELD } from "../dailyEventReference/DailyEventReferenceTitle";
+
+export const BookingList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/booking/BookingShow.tsx b/apps/roi-cacl-2-admin/src/booking/BookingShow.tsx
new file mode 100644
index 0000000..1088cff
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/booking/BookingShow.tsx
@@ -0,0 +1,177 @@
+import * as React from "react";
+
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+ DateField,
+ BooleanField,
+ ReferenceManyField,
+ Datagrid,
+} from "react-admin";
+
+import { BOOKING_TITLE_FIELD } from "./BookingTitle";
+import { WORKFLOWSTEP_TITLE_FIELD } from "../workflowStep/WorkflowStepTitle";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+import { DESTINATIONCALENDAR_TITLE_FIELD } from "../destinationCalendar/DestinationCalendarTitle";
+import { DAILYEVENTREFERENCE_TITLE_FIELD } from "../dailyEventReference/DailyEventReferenceTitle";
+
+export const BookingShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/booking/BookingTitle.ts b/apps/roi-cacl-2-admin/src/booking/BookingTitle.ts
new file mode 100644
index 0000000..0eb8f1d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/booking/BookingTitle.ts
@@ -0,0 +1,7 @@
+import { Booking as TBooking } from "../api/booking/Booking";
+
+export const BOOKING_TITLE_FIELD = "title";
+
+export const BookingTitle = (record: TBooking): string => {
+ return record.title?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceCreate.tsx b/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceCreate.tsx
new file mode 100644
index 0000000..09ca1f5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceCreate.tsx
@@ -0,0 +1,34 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+ BooleanInput,
+} from "react-admin";
+
+import { BookingTitle } from "../booking/BookingTitle";
+
+export const BookingReferenceCreate = (
+ props: CreateProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceEdit.tsx b/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceEdit.tsx
new file mode 100644
index 0000000..7ed2063
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceEdit.tsx
@@ -0,0 +1,32 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+ BooleanInput,
+} from "react-admin";
+
+import { BookingTitle } from "../booking/BookingTitle";
+
+export const BookingReferenceEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceList.tsx b/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceList.tsx
new file mode 100644
index 0000000..0352fd1
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceList.tsx
@@ -0,0 +1,37 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+ BooleanField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+
+export const BookingReferenceList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceShow.tsx b/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceShow.tsx
new file mode 100644
index 0000000..9e9afff
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceShow.tsx
@@ -0,0 +1,30 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+ BooleanField,
+} from "react-admin";
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+
+export const BookingReferenceShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceTitle.ts b/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceTitle.ts
new file mode 100644
index 0000000..5152ba4
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/bookingReference/BookingReferenceTitle.ts
@@ -0,0 +1,7 @@
+import { BookingReference as TBookingReference } from "../api/bookingReference/BookingReference";
+
+export const BOOKINGREFERENCE_TITLE_FIELD = "typeField";
+
+export const BookingReferenceTitle = (record: TBookingReference): string => {
+ return record.typeField?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/constants.ts b/apps/roi-cacl-2-admin/src/constants.ts
new file mode 100644
index 0000000..4b3ca4b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/constants.ts
@@ -0,0 +1,2 @@
+export const CREDENTIALS_LOCAL_STORAGE_ITEM = "credentials";
+export const USER_DATA_LOCAL_STORAGE_ITEM = "userData";
diff --git a/apps/roi-cacl-2-admin/src/credential/CredentialCreate.tsx b/apps/roi-cacl-2-admin/src/credential/CredentialCreate.tsx
new file mode 100644
index 0000000..7db7b66
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/credential/CredentialCreate.tsx
@@ -0,0 +1,45 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { AppModelTitle } from "../appModel/AppModelTitle";
+import { DestinationCalendarTitle } from "../destinationCalendar/DestinationCalendarTitle";
+
+export const CredentialCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/credential/CredentialEdit.tsx b/apps/roi-cacl-2-admin/src/credential/CredentialEdit.tsx
new file mode 100644
index 0000000..025d394
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/credential/CredentialEdit.tsx
@@ -0,0 +1,45 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { AppModelTitle } from "../appModel/AppModelTitle";
+import { DestinationCalendarTitle } from "../destinationCalendar/DestinationCalendarTitle";
+
+export const CredentialEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/credential/CredentialList.tsx b/apps/roi-cacl-2-admin/src/credential/CredentialList.tsx
new file mode 100644
index 0000000..3376a99
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/credential/CredentialList.tsx
@@ -0,0 +1,39 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { APPMODEL_TITLE_FIELD } from "../appModel/AppModelTitle";
+
+export const CredentialList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/credential/CredentialShow.tsx b/apps/roi-cacl-2-admin/src/credential/CredentialShow.tsx
new file mode 100644
index 0000000..d312983
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/credential/CredentialShow.tsx
@@ -0,0 +1,74 @@
+import * as React from "react";
+
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+ ReferenceManyField,
+ Datagrid,
+} from "react-admin";
+
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+import { CREDENTIAL_TITLE_FIELD } from "./CredentialTitle";
+import { APPMODEL_TITLE_FIELD } from "../appModel/AppModelTitle";
+
+export const CredentialShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/credential/CredentialTitle.ts b/apps/roi-cacl-2-admin/src/credential/CredentialTitle.ts
new file mode 100644
index 0000000..3a1a211
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/credential/CredentialTitle.ts
@@ -0,0 +1,7 @@
+import { Credential as TCredential } from "../api/credential/Credential";
+
+export const CREDENTIAL_TITLE_FIELD = "typeField";
+
+export const CredentialTitle = (record: TCredential): string => {
+ return record.typeField?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceCreate.tsx b/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceCreate.tsx
new file mode 100644
index 0000000..09a2f12
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceCreate.tsx
@@ -0,0 +1,26 @@
+import * as React from "react";
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+import { BookingTitle } from "../booking/BookingTitle";
+
+export const DailyEventReferenceCreate = (
+ props: CreateProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceEdit.tsx b/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceEdit.tsx
new file mode 100644
index 0000000..75adb98
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceEdit.tsx
@@ -0,0 +1,26 @@
+import * as React from "react";
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+import { BookingTitle } from "../booking/BookingTitle";
+
+export const DailyEventReferenceEdit = (
+ props: EditProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceList.tsx b/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceList.tsx
new file mode 100644
index 0000000..b94e22f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceList.tsx
@@ -0,0 +1,33 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+
+export const DailyEventReferenceList = (
+ props: ListProps
+): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceShow.tsx b/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceShow.tsx
new file mode 100644
index 0000000..6bee5af
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceShow.tsx
@@ -0,0 +1,26 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+
+export const DailyEventReferenceShow = (
+ props: ShowProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceTitle.ts b/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceTitle.ts
new file mode 100644
index 0000000..6aef3ef
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/dailyEventReference/DailyEventReferenceTitle.ts
@@ -0,0 +1,9 @@
+import { DailyEventReference as TDailyEventReference } from "../api/dailyEventReference/DailyEventReference";
+
+export const DAILYEVENTREFERENCE_TITLE_FIELD = "dailyurl";
+
+export const DailyEventReferenceTitle = (
+ record: TDailyEventReference
+): string => {
+ return record.dailyurl?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/data-provider/graphqlDataProvider.ts b/apps/roi-cacl-2-admin/src/data-provider/graphqlDataProvider.ts
new file mode 100644
index 0000000..3ec4466
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/data-provider/graphqlDataProvider.ts
@@ -0,0 +1,28 @@
+import buildGraphQLProvider from "ra-data-graphql-amplication";
+import { ApolloClient, InMemoryCache, createHttpLink } from "@apollo/client";
+import { setContext } from "@apollo/client/link/context";
+import { CREDENTIALS_LOCAL_STORAGE_ITEM } from "../constants";
+
+const httpLink = createHttpLink({
+ uri: `${process.env.REACT_APP_SERVER_URL}/graphql`,
+});
+
+// eslint-disable-next-line @typescript-eslint/naming-convention
+const authLink = setContext((_, { headers }) => {
+ const token = localStorage.getItem(CREDENTIALS_LOCAL_STORAGE_ITEM);
+ return {
+ headers: {
+ ...headers,
+ authorization: token ? token : "",
+ },
+ };
+});
+
+export const apolloClient = new ApolloClient({
+ cache: new InMemoryCache(),
+ link: authLink.concat(httpLink),
+});
+
+export default buildGraphQLProvider({
+ client: apolloClient,
+});
diff --git a/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarCreate.tsx b/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarCreate.tsx
new file mode 100644
index 0000000..b5f149a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarCreate.tsx
@@ -0,0 +1,46 @@
+import * as React from "react";
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+import { UserTitle } from "../user/UserTitle";
+import { BookingTitle } from "../booking/BookingTitle";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { CredentialTitle } from "../credential/CredentialTitle";
+
+export const DestinationCalendarCreate = (
+ props: CreateProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarEdit.tsx b/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarEdit.tsx
new file mode 100644
index 0000000..ec7ff85
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarEdit.tsx
@@ -0,0 +1,46 @@
+import * as React from "react";
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+import { UserTitle } from "../user/UserTitle";
+import { BookingTitle } from "../booking/BookingTitle";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { CredentialTitle } from "../credential/CredentialTitle";
+
+export const DestinationCalendarEdit = (
+ props: EditProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarList.tsx b/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarList.tsx
new file mode 100644
index 0000000..390bad3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarList.tsx
@@ -0,0 +1,53 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+import { CREDENTIAL_TITLE_FIELD } from "../credential/CredentialTitle";
+
+export const DestinationCalendarList = (
+ props: ListProps
+): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarShow.tsx b/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarShow.tsx
new file mode 100644
index 0000000..4df8f93
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarShow.tsx
@@ -0,0 +1,46 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+import { CREDENTIAL_TITLE_FIELD } from "../credential/CredentialTitle";
+
+export const DestinationCalendarShow = (
+ props: ShowProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarTitle.ts b/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarTitle.ts
new file mode 100644
index 0000000..8347c6f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/destinationCalendar/DestinationCalendarTitle.ts
@@ -0,0 +1,9 @@
+import { DestinationCalendar as TDestinationCalendar } from "../api/destinationCalendar/DestinationCalendar";
+
+export const DESTINATIONCALENDAR_TITLE_FIELD = "integration";
+
+export const DestinationCalendarTitle = (
+ record: TDestinationCalendar
+): string => {
+ return record.integration?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/eventType/EventTypeCreate.tsx b/apps/roi-cacl-2-admin/src/eventType/EventTypeCreate.tsx
new file mode 100644
index 0000000..f264de3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/eventType/EventTypeCreate.tsx
@@ -0,0 +1,178 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ NumberInput,
+ BooleanInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+ ReferenceInput,
+ SelectInput,
+ DateTimeInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { TeamTitle } from "../team/TeamTitle";
+import { ScheduleTitle } from "../schedule/ScheduleTitle";
+import { DestinationCalendarTitle } from "../destinationCalendar/DestinationCalendarTitle";
+import { BookingTitle } from "../booking/BookingTitle";
+import { AvailabilityTitle } from "../availability/AvailabilityTitle";
+import { EventTypeCustomInputTitle } from "../eventTypeCustomInput/EventTypeCustomInputTitle";
+import { WebhookTitle } from "../webhook/WebhookTitle";
+import { HashedLinkTitle } from "../hashedLink/HashedLinkTitle";
+import { WorkflowsOnEventTypeTitle } from "../workflowsOnEventType/WorkflowsOnEventTypeTitle";
+
+export const EventTypeCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/eventType/EventTypeEdit.tsx b/apps/roi-cacl-2-admin/src/eventType/EventTypeEdit.tsx
new file mode 100644
index 0000000..dc6efe7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/eventType/EventTypeEdit.tsx
@@ -0,0 +1,178 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ NumberInput,
+ BooleanInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+ ReferenceInput,
+ SelectInput,
+ DateTimeInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { TeamTitle } from "../team/TeamTitle";
+import { ScheduleTitle } from "../schedule/ScheduleTitle";
+import { DestinationCalendarTitle } from "../destinationCalendar/DestinationCalendarTitle";
+import { BookingTitle } from "../booking/BookingTitle";
+import { AvailabilityTitle } from "../availability/AvailabilityTitle";
+import { EventTypeCustomInputTitle } from "../eventTypeCustomInput/EventTypeCustomInputTitle";
+import { WebhookTitle } from "../webhook/WebhookTitle";
+import { HashedLinkTitle } from "../hashedLink/HashedLinkTitle";
+import { WorkflowsOnEventTypeTitle } from "../workflowsOnEventType/WorkflowsOnEventTypeTitle";
+
+export const EventTypeEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/eventType/EventTypeList.tsx b/apps/roi-cacl-2-admin/src/eventType/EventTypeList.tsx
new file mode 100644
index 0000000..70cad75
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/eventType/EventTypeList.tsx
@@ -0,0 +1,92 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ BooleanField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { TEAM_TITLE_FIELD } from "../team/TeamTitle";
+import { SCHEDULE_TITLE_FIELD } from "../schedule/ScheduleTitle";
+import { DESTINATIONCALENDAR_TITLE_FIELD } from "../destinationCalendar/DestinationCalendarTitle";
+import { HASHEDLINK_TITLE_FIELD } from "../hashedLink/HashedLinkTitle";
+
+export const EventTypeList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/eventType/EventTypeShow.tsx b/apps/roi-cacl-2-admin/src/eventType/EventTypeShow.tsx
new file mode 100644
index 0000000..2b479fd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/eventType/EventTypeShow.tsx
@@ -0,0 +1,261 @@
+import * as React from "react";
+
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ BooleanField,
+ ReferenceField,
+ ReferenceManyField,
+ Datagrid,
+ DateField,
+} from "react-admin";
+
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { EVENTTYPE_TITLE_FIELD } from "./EventTypeTitle";
+import { DESTINATIONCALENDAR_TITLE_FIELD } from "../destinationCalendar/DestinationCalendarTitle";
+import { DAILYEVENTREFERENCE_TITLE_FIELD } from "../dailyEventReference/DailyEventReferenceTitle";
+import { SCHEDULE_TITLE_FIELD } from "../schedule/ScheduleTitle";
+import { APPMODEL_TITLE_FIELD } from "../appModel/AppModelTitle";
+import { WORKFLOW_TITLE_FIELD } from "../workflow/WorkflowTitle";
+import { TEAM_TITLE_FIELD } from "../team/TeamTitle";
+import { HASHEDLINK_TITLE_FIELD } from "../hashedLink/HashedLinkTitle";
+
+export const EventTypeShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/eventType/EventTypeTitle.ts b/apps/roi-cacl-2-admin/src/eventType/EventTypeTitle.ts
new file mode 100644
index 0000000..fa0f537
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/eventType/EventTypeTitle.ts
@@ -0,0 +1,7 @@
+import { EventType as TEventType } from "../api/eventType/EventType";
+
+export const EVENTTYPE_TITLE_FIELD = "eventName";
+
+export const EventTypeTitle = (record: TEventType): string => {
+ return record.eventName?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputCreate.tsx b/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputCreate.tsx
new file mode 100644
index 0000000..1c00d56
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputCreate.tsx
@@ -0,0 +1,46 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ ReferenceInput,
+ SelectInput,
+ TextInput,
+ BooleanInput,
+} from "react-admin";
+
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+
+export const EventTypeCustomInputCreate = (
+ props: CreateProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputEdit.tsx b/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputEdit.tsx
new file mode 100644
index 0000000..44a5f6f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputEdit.tsx
@@ -0,0 +1,46 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ ReferenceInput,
+ SelectInput,
+ TextInput,
+ BooleanInput,
+} from "react-admin";
+
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+
+export const EventTypeCustomInputEdit = (
+ props: EditProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputList.tsx b/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputList.tsx
new file mode 100644
index 0000000..b34feb9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputList.tsx
@@ -0,0 +1,40 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+ BooleanField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+
+export const EventTypeCustomInputList = (
+ props: ListProps
+): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputShow.tsx b/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputShow.tsx
new file mode 100644
index 0000000..30c651c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputShow.tsx
@@ -0,0 +1,33 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+ BooleanField,
+} from "react-admin";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+
+export const EventTypeCustomInputShow = (
+ props: ShowProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputTitle.ts b/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputTitle.ts
new file mode 100644
index 0000000..44850f8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/eventTypeCustomInput/EventTypeCustomInputTitle.ts
@@ -0,0 +1,9 @@
+import { EventTypeCustomInput as TEventTypeCustomInput } from "../api/eventTypeCustomInput/EventTypeCustomInput";
+
+export const EVENTTYPECUSTOMINPUT_TITLE_FIELD = "label";
+
+export const EventTypeCustomInputTitle = (
+ record: TEventTypeCustomInput
+): string => {
+ return record.label?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/feedback/FeedbackCreate.tsx b/apps/roi-cacl-2-admin/src/feedback/FeedbackCreate.tsx
new file mode 100644
index 0000000..318ddcc
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/feedback/FeedbackCreate.tsx
@@ -0,0 +1,28 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ DateTimeInput,
+ ReferenceInput,
+ SelectInput,
+ TextInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+
+export const FeedbackCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/feedback/FeedbackEdit.tsx b/apps/roi-cacl-2-admin/src/feedback/FeedbackEdit.tsx
new file mode 100644
index 0000000..9bd5b2a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/feedback/FeedbackEdit.tsx
@@ -0,0 +1,28 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ DateTimeInput,
+ ReferenceInput,
+ SelectInput,
+ TextInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+
+export const FeedbackEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/feedback/FeedbackList.tsx b/apps/roi-cacl-2-admin/src/feedback/FeedbackList.tsx
new file mode 100644
index 0000000..3681b75
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/feedback/FeedbackList.tsx
@@ -0,0 +1,32 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const FeedbackList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/feedback/FeedbackShow.tsx b/apps/roi-cacl-2-admin/src/feedback/FeedbackShow.tsx
new file mode 100644
index 0000000..3ee50bf
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/feedback/FeedbackShow.tsx
@@ -0,0 +1,25 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const FeedbackShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/feedback/FeedbackTitle.ts b/apps/roi-cacl-2-admin/src/feedback/FeedbackTitle.ts
new file mode 100644
index 0000000..f933e80
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/feedback/FeedbackTitle.ts
@@ -0,0 +1,7 @@
+import { Feedback as TFeedback } from "../api/feedback/Feedback";
+
+export const FEEDBACK_TITLE_FIELD = "rating";
+
+export const FeedbackTitle = (record: TFeedback): string => {
+ return record.rating?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkCreate.tsx b/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkCreate.tsx
new file mode 100644
index 0000000..f027ca2
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkCreate.tsx
@@ -0,0 +1,27 @@
+import * as React from "react";
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+
+export const HashedLinkCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkEdit.tsx b/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkEdit.tsx
new file mode 100644
index 0000000..45b1df5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkEdit.tsx
@@ -0,0 +1,27 @@
+import * as React from "react";
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+
+export const HashedLinkEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkList.tsx b/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkList.tsx
new file mode 100644
index 0000000..3308a75
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkList.tsx
@@ -0,0 +1,34 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+
+export const HashedLinkList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkShow.tsx b/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkShow.tsx
new file mode 100644
index 0000000..732c0d9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkShow.tsx
@@ -0,0 +1,27 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+
+export const HashedLinkShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkTitle.ts b/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkTitle.ts
new file mode 100644
index 0000000..f011cb6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/hashedLink/HashedLinkTitle.ts
@@ -0,0 +1,7 @@
+import { HashedLink as THashedLink } from "../api/hashedLink/HashedLink";
+
+export const HASHEDLINK_TITLE_FIELD = "link";
+
+export const HashedLinkTitle = (record: THashedLink): string => {
+ return record.link?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/impersonation/ImpersonationCreate.tsx b/apps/roi-cacl-2-admin/src/impersonation/ImpersonationCreate.tsx
new file mode 100644
index 0000000..8222cec
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/impersonation/ImpersonationCreate.tsx
@@ -0,0 +1,32 @@
+import * as React from "react";
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+import { UserTitle } from "../user/UserTitle";
+
+export const ImpersonationCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/impersonation/ImpersonationEdit.tsx b/apps/roi-cacl-2-admin/src/impersonation/ImpersonationEdit.tsx
new file mode 100644
index 0000000..8a71474
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/impersonation/ImpersonationEdit.tsx
@@ -0,0 +1,32 @@
+import * as React from "react";
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+import { UserTitle } from "../user/UserTitle";
+
+export const ImpersonationEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/impersonation/ImpersonationList.tsx b/apps/roi-cacl-2-admin/src/impersonation/ImpersonationList.tsx
new file mode 100644
index 0000000..9d9a371
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/impersonation/ImpersonationList.tsx
@@ -0,0 +1,42 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ DateField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const ImpersonationList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/impersonation/ImpersonationShow.tsx b/apps/roi-cacl-2-admin/src/impersonation/ImpersonationShow.tsx
new file mode 100644
index 0000000..ef8feac
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/impersonation/ImpersonationShow.tsx
@@ -0,0 +1,35 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ DateField,
+ ReferenceField,
+} from "react-admin";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const ImpersonationShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/impersonation/ImpersonationTitle.ts b/apps/roi-cacl-2-admin/src/impersonation/ImpersonationTitle.ts
new file mode 100644
index 0000000..29ebf38
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/impersonation/ImpersonationTitle.ts
@@ -0,0 +1,7 @@
+import { Impersonation as TImpersonation } from "../api/impersonation/Impersonation";
+
+export const IMPERSONATION_TITLE_FIELD = "id";
+
+export const ImpersonationTitle = (record: TImpersonation): string => {
+ return record.id?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/index.css b/apps/roi-cacl-2-admin/src/index.css
new file mode 100644
index 0000000..8686848
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/index.css
@@ -0,0 +1,26 @@
+body {
+ margin: 0;
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
+ "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
+ sans-serif;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+#root {
+ height: 100vh;
+}
+
+code {
+ font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
+ monospace;
+}
+
+.amp-breadcrumbs {
+ padding: var(--default-spacing);
+}
+
+.entity-id {
+ color: var(--primary);
+ text-decoration: underline;
+}
diff --git a/apps/roi-cacl-2-admin/src/index.tsx b/apps/roi-cacl-2-admin/src/index.tsx
new file mode 100644
index 0000000..2da129c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/index.tsx
@@ -0,0 +1,18 @@
+import React from "react";
+import ReactDOM from "react-dom";
+import "./index.css";
+
+import App from "./App";
+import reportWebVitals from "./reportWebVitals";
+
+ReactDOM.render(
+
+
+ ,
+ document.getElementById("root")
+);
+
+// If you want to start measuring performance in your app, pass a function
+// to log results (for example: reportWebVitals(console.log))
+// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
+reportWebVitals();
diff --git a/apps/roi-cacl-2-admin/src/login.scss b/apps/roi-cacl-2-admin/src/login.scss
new file mode 100644
index 0000000..667d8d2
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/login.scss
@@ -0,0 +1,119 @@
+:root {
+ --surface: #15192c; /*dark: black100 */
+ --white: #15192c; /*dark: black100 */
+
+ --black100: #ffffff; /*dark: white */
+ --black90: #b7bac7; /*dark: black10 */
+ --black80: #a3a8b8; /*dark: black20 */
+ --black60: #80869d; /*dark: black30 */
+ --black40: #686f8c; /*dark: black40 */
+ --black30: #515873; /*dark: black50 */
+ --black20: #444b66; /*dark: black60 */
+ --black10: #373d57; /*dark: black70 */
+ --black5: #2c3249; /*dark: black80 */
+ --black2: #22273c; /*dark: black90 */
+
+ --primary: #7950ed;
+}
+
+.login-page {
+ height: 100vh;
+ width: 100%;
+ background-color: var(--surface);
+ color: var(--black100);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ flex-direction: column;
+
+ &__wrapper {
+ display: flex;
+ align-items: stretch;
+ justify-content: center;
+ flex-direction: row;
+ }
+
+ &__box {
+ text-align: center;
+ width: 340px;
+ background-color: var(--black2);
+ border-radius: var(--small-border-radius);
+ margin: 1rem;
+ padding: 1rem;
+ border: 1px solid var(--black10);
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: stretch;
+
+ h2 {
+ font-size: 18px;
+ }
+ img {
+ width: 48px;
+ }
+
+ &__message {
+ color: var(--black80);
+ font-size: 14px;
+ line-height: 22px;
+ }
+
+ button,
+ .MuiButton-contained {
+ box-sizing: border-box;
+ background-color: var(--primary);
+ width: 300px;
+ margin-top: 0.5rem;
+ margin-bottom: 1rem;
+ margin-top: auto;
+ &:hover,
+ &:active,
+ &:focus {
+ background-color: var(--primary);
+ }
+ }
+ }
+
+ form {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: center;
+ margin-top: 2rem;
+
+ label {
+ span {
+ display: block;
+ text-align: left;
+ font-size: 12px;
+ color: var(--black60);
+ }
+ }
+
+ input {
+ box-sizing: border-box;
+ background-color: var(--white);
+ border: 1px solid var(--black10);
+ padding: 0.5rem;
+ margin-bottom: 1rem;
+ outline: none;
+ border-radius: var(--small-border-radius);
+ width: 300px;
+ color: var(--black100);
+ &:hover,
+ &:active,
+ &:focus {
+ border: 1px solid var(--black100);
+ }
+ }
+ }
+
+ &__read-more {
+ color: var(--black80);
+ a {
+ color: var(--black100);
+ text-decoration: none;
+ }
+ }
+}
diff --git a/apps/roi-cacl-2-admin/src/membership/MembershipCreate.tsx b/apps/roi-cacl-2-admin/src/membership/MembershipCreate.tsx
new file mode 100644
index 0000000..3344097
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/membership/MembershipCreate.tsx
@@ -0,0 +1,38 @@
+import * as React from "react";
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ BooleanInput,
+ SelectInput,
+ ReferenceInput,
+} from "react-admin";
+import { TeamTitle } from "../team/TeamTitle";
+import { UserTitle } from "../user/UserTitle";
+
+export const MembershipCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/membership/MembershipEdit.tsx b/apps/roi-cacl-2-admin/src/membership/MembershipEdit.tsx
new file mode 100644
index 0000000..81f74eb
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/membership/MembershipEdit.tsx
@@ -0,0 +1,38 @@
+import * as React from "react";
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ BooleanInput,
+ SelectInput,
+ ReferenceInput,
+} from "react-admin";
+import { TeamTitle } from "../team/TeamTitle";
+import { UserTitle } from "../user/UserTitle";
+
+export const MembershipEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/membership/MembershipList.tsx b/apps/roi-cacl-2-admin/src/membership/MembershipList.tsx
new file mode 100644
index 0000000..6c57f7e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/membership/MembershipList.tsx
@@ -0,0 +1,36 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ BooleanField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { TEAM_TITLE_FIELD } from "../team/TeamTitle";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const MembershipList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/membership/MembershipShow.tsx b/apps/roi-cacl-2-admin/src/membership/MembershipShow.tsx
new file mode 100644
index 0000000..a4725a5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/membership/MembershipShow.tsx
@@ -0,0 +1,29 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ BooleanField,
+ ReferenceField,
+} from "react-admin";
+import { TEAM_TITLE_FIELD } from "../team/TeamTitle";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const MembershipShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/membership/MembershipTitle.ts b/apps/roi-cacl-2-admin/src/membership/MembershipTitle.ts
new file mode 100644
index 0000000..b190e01
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/membership/MembershipTitle.ts
@@ -0,0 +1,7 @@
+import { Membership as TMembership } from "../api/membership/Membership";
+
+export const MEMBERSHIP_TITLE_FIELD = "id";
+
+export const MembershipTitle = (record: TMembership): string => {
+ return record.id?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/pages/Dashboard.tsx b/apps/roi-cacl-2-admin/src/pages/Dashboard.tsx
new file mode 100644
index 0000000..39c4d18
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/pages/Dashboard.tsx
@@ -0,0 +1,12 @@
+import * as React from "react";
+import Card from "@material-ui/core/Card";
+import CardContent from "@material-ui/core/CardContent";
+import { Title } from "react-admin";
+const Dashboard = () => (
+
+
+ Welcome
+
+);
+
+export default Dashboard;
diff --git a/apps/roi-cacl-2-admin/src/payment/PaymentCreate.tsx b/apps/roi-cacl-2-admin/src/payment/PaymentCreate.tsx
new file mode 100644
index 0000000..d094908
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/payment/PaymentCreate.tsx
@@ -0,0 +1,41 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ SelectInput,
+ ReferenceInput,
+ NumberInput,
+ BooleanInput,
+} from "react-admin";
+
+import { BookingTitle } from "../booking/BookingTitle";
+
+export const PaymentCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/payment/PaymentEdit.tsx b/apps/roi-cacl-2-admin/src/payment/PaymentEdit.tsx
new file mode 100644
index 0000000..5b55d21
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/payment/PaymentEdit.tsx
@@ -0,0 +1,41 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ SelectInput,
+ ReferenceInput,
+ NumberInput,
+ BooleanInput,
+} from "react-admin";
+
+import { BookingTitle } from "../booking/BookingTitle";
+
+export const PaymentEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/payment/PaymentList.tsx b/apps/roi-cacl-2-admin/src/payment/PaymentList.tsx
new file mode 100644
index 0000000..257fadc
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/payment/PaymentList.tsx
@@ -0,0 +1,39 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+ BooleanField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+
+export const PaymentList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/payment/PaymentShow.tsx b/apps/roi-cacl-2-admin/src/payment/PaymentShow.tsx
new file mode 100644
index 0000000..2af8012
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/payment/PaymentShow.tsx
@@ -0,0 +1,32 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+ BooleanField,
+} from "react-admin";
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+
+export const PaymentShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/payment/PaymentTitle.ts b/apps/roi-cacl-2-admin/src/payment/PaymentTitle.ts
new file mode 100644
index 0000000..9a33886
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/payment/PaymentTitle.ts
@@ -0,0 +1,7 @@
+import { Payment as TPayment } from "../api/payment/Payment";
+
+export const PAYMENT_TITLE_FIELD = "uid";
+
+export const PaymentTitle = (record: TPayment): string => {
+ return record.uid?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailCreate.tsx b/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailCreate.tsx
new file mode 100644
index 0000000..61286d8
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailCreate.tsx
@@ -0,0 +1,31 @@
+import * as React from "react";
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ NumberInput,
+ SelectInput,
+} from "react-admin";
+
+export const ReminderMailCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailEdit.tsx b/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailEdit.tsx
new file mode 100644
index 0000000..59bea1b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailEdit.tsx
@@ -0,0 +1,31 @@
+import * as React from "react";
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ NumberInput,
+ SelectInput,
+} from "react-admin";
+
+export const ReminderMailEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailList.tsx b/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailList.tsx
new file mode 100644
index 0000000..944bece
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailList.tsx
@@ -0,0 +1,23 @@
+import * as React from "react";
+import { List, Datagrid, ListProps, TextField, DateField } from "react-admin";
+import Pagination from "../Components/Pagination";
+
+export const ReminderMailList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailShow.tsx b/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailShow.tsx
new file mode 100644
index 0000000..303677b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailShow.tsx
@@ -0,0 +1,22 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ DateField,
+} from "react-admin";
+
+export const ReminderMailShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailTitle.ts b/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailTitle.ts
new file mode 100644
index 0000000..07c026f
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/reminderMail/ReminderMailTitle.ts
@@ -0,0 +1,7 @@
+import { ReminderMail as TReminderMail } from "../api/reminderMail/ReminderMail";
+
+export const REMINDERMAIL_TITLE_FIELD = "id";
+
+export const ReminderMailTitle = (record: TReminderMail): string => {
+ return record.id?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/reportWebVitals.ts b/apps/roi-cacl-2-admin/src/reportWebVitals.ts
new file mode 100644
index 0000000..821a6cd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/reportWebVitals.ts
@@ -0,0 +1,17 @@
+import { ReportHandler } from "web-vitals";
+
+const reportWebVitals = (onPerfEntry?: ReportHandler): void => {
+ if (onPerfEntry && onPerfEntry instanceof Function) {
+ void import("web-vitals").then(
+ ({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
+ getCLS(onPerfEntry);
+ getFID(onPerfEntry);
+ getFCP(onPerfEntry);
+ getLCP(onPerfEntry);
+ getTTFB(onPerfEntry);
+ }
+ );
+ }
+};
+
+export default reportWebVitals;
diff --git a/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestCreate.tsx b/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestCreate.tsx
new file mode 100644
index 0000000..84b1c6a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestCreate.tsx
@@ -0,0 +1,21 @@
+import * as React from "react";
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ DateTimeInput,
+} from "react-admin";
+
+export const ResetPasswordRequestCreate = (
+ props: CreateProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestEdit.tsx b/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestEdit.tsx
new file mode 100644
index 0000000..602807e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestEdit.tsx
@@ -0,0 +1,21 @@
+import * as React from "react";
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ DateTimeInput,
+} from "react-admin";
+
+export const ResetPasswordRequestEdit = (
+ props: EditProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestList.tsx b/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestList.tsx
new file mode 100644
index 0000000..ba1bc12
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestList.tsx
@@ -0,0 +1,25 @@
+import * as React from "react";
+import { List, Datagrid, ListProps, TextField, DateField } from "react-admin";
+import Pagination from "../Components/Pagination";
+
+export const ResetPasswordRequestList = (
+ props: ListProps
+): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestShow.tsx b/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestShow.tsx
new file mode 100644
index 0000000..22041b9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestShow.tsx
@@ -0,0 +1,24 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ DateField,
+} from "react-admin";
+
+export const ResetPasswordRequestShow = (
+ props: ShowProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestTitle.ts b/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestTitle.ts
new file mode 100644
index 0000000..e97976d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/resetPasswordRequest/ResetPasswordRequestTitle.ts
@@ -0,0 +1,9 @@
+import { ResetPasswordRequest as TResetPasswordRequest } from "../api/resetPasswordRequest/ResetPasswordRequest";
+
+export const RESETPASSWORDREQUEST_TITLE_FIELD = "email";
+
+export const ResetPasswordRequestTitle = (
+ record: TResetPasswordRequest
+): string => {
+ return record.email?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/schedule/ScheduleCreate.tsx b/apps/roi-cacl-2-admin/src/schedule/ScheduleCreate.tsx
new file mode 100644
index 0000000..9e9ee03
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/schedule/ScheduleCreate.tsx
@@ -0,0 +1,46 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ ReferenceInput,
+ SelectInput,
+ TextInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { AvailabilityTitle } from "../availability/AvailabilityTitle";
+
+export const ScheduleCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/schedule/ScheduleEdit.tsx b/apps/roi-cacl-2-admin/src/schedule/ScheduleEdit.tsx
new file mode 100644
index 0000000..965a656
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/schedule/ScheduleEdit.tsx
@@ -0,0 +1,46 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ ReferenceInput,
+ SelectInput,
+ TextInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { AvailabilityTitle } from "../availability/AvailabilityTitle";
+
+export const ScheduleEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/schedule/ScheduleList.tsx b/apps/roi-cacl-2-admin/src/schedule/ScheduleList.tsx
new file mode 100644
index 0000000..85ef04b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/schedule/ScheduleList.tsx
@@ -0,0 +1,31 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const ScheduleList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/schedule/ScheduleShow.tsx b/apps/roi-cacl-2-admin/src/schedule/ScheduleShow.tsx
new file mode 100644
index 0000000..318f16d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/schedule/ScheduleShow.tsx
@@ -0,0 +1,141 @@
+import * as React from "react";
+
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+ ReferenceManyField,
+ Datagrid,
+ BooleanField,
+} from "react-admin";
+
+import { TEAM_TITLE_FIELD } from "../team/TeamTitle";
+import { SCHEDULE_TITLE_FIELD } from "./ScheduleTitle";
+import { DESTINATIONCALENDAR_TITLE_FIELD } from "../destinationCalendar/DestinationCalendarTitle";
+import { HASHEDLINK_TITLE_FIELD } from "../hashedLink/HashedLinkTitle";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+
+export const ScheduleShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/schedule/ScheduleTitle.ts b/apps/roi-cacl-2-admin/src/schedule/ScheduleTitle.ts
new file mode 100644
index 0000000..678741c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/schedule/ScheduleTitle.ts
@@ -0,0 +1,7 @@
+import { Schedule as TSchedule } from "../api/schedule/Schedule";
+
+export const SCHEDULE_TITLE_FIELD = "name";
+
+export const ScheduleTitle = (record: TSchedule): string => {
+ return record.name?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarCreate.tsx b/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarCreate.tsx
new file mode 100644
index 0000000..a507416
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarCreate.tsx
@@ -0,0 +1,26 @@
+import * as React from "react";
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ ReferenceInput,
+ SelectInput,
+ TextInput,
+} from "react-admin";
+import { UserTitle } from "../user/UserTitle";
+
+export const SelectedCalendarCreate = (
+ props: CreateProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarEdit.tsx b/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarEdit.tsx
new file mode 100644
index 0000000..764ed2d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarEdit.tsx
@@ -0,0 +1,24 @@
+import * as React from "react";
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ ReferenceInput,
+ SelectInput,
+ TextInput,
+} from "react-admin";
+import { UserTitle } from "../user/UserTitle";
+
+export const SelectedCalendarEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarList.tsx b/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarList.tsx
new file mode 100644
index 0000000..83aa4dd
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarList.tsx
@@ -0,0 +1,31 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const SelectedCalendarList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarShow.tsx b/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarShow.tsx
new file mode 100644
index 0000000..69d150b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarShow.tsx
@@ -0,0 +1,24 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const SelectedCalendarShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarTitle.ts b/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarTitle.ts
new file mode 100644
index 0000000..45a53c5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/selectedCalendar/SelectedCalendarTitle.ts
@@ -0,0 +1,7 @@
+import { SelectedCalendar as TSelectedCalendar } from "../api/selectedCalendar/SelectedCalendar";
+
+export const SELECTEDCALENDAR_TITLE_FIELD = "integration";
+
+export const SelectedCalendarTitle = (record: TSelectedCalendar): string => {
+ return record.integration?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/session/SessionCreate.tsx b/apps/roi-cacl-2-admin/src/session/SessionCreate.tsx
new file mode 100644
index 0000000..2e704f3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/session/SessionCreate.tsx
@@ -0,0 +1,27 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ DateTimeInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+
+export const SessionCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/session/SessionEdit.tsx b/apps/roi-cacl-2-admin/src/session/SessionEdit.tsx
new file mode 100644
index 0000000..5d8b026
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/session/SessionEdit.tsx
@@ -0,0 +1,27 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ DateTimeInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+
+export const SessionEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/session/SessionList.tsx b/apps/roi-cacl-2-admin/src/session/SessionList.tsx
new file mode 100644
index 0000000..25f9bed
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/session/SessionList.tsx
@@ -0,0 +1,31 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const SessionList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/session/SessionShow.tsx b/apps/roi-cacl-2-admin/src/session/SessionShow.tsx
new file mode 100644
index 0000000..e5a065e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/session/SessionShow.tsx
@@ -0,0 +1,24 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const SessionShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/session/SessionTitle.ts b/apps/roi-cacl-2-admin/src/session/SessionTitle.ts
new file mode 100644
index 0000000..ad53575
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/session/SessionTitle.ts
@@ -0,0 +1,7 @@
+import { Session as TSession } from "../api/session/Session";
+
+export const SESSION_TITLE_FIELD = "sessionToken";
+
+export const SessionTitle = (record: TSession): string => {
+ return record.sessionToken?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/setupTests.ts b/apps/roi-cacl-2-admin/src/setupTests.ts
new file mode 100644
index 0000000..1dd407a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/setupTests.ts
@@ -0,0 +1,5 @@
+// jest-dom adds custom jest matchers for asserting on DOM nodes.
+// allows you to do things like:
+// expect(element).toHaveTextContent(/react/i)
+// learn more: https://github.com/testing-library/jest-dom
+import "@testing-library/jest-dom";
diff --git a/apps/roi-cacl-2-admin/src/team/TeamCreate.tsx b/apps/roi-cacl-2-admin/src/team/TeamCreate.tsx
new file mode 100644
index 0000000..959ec52
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/team/TeamCreate.tsx
@@ -0,0 +1,44 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ BooleanInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+} from "react-admin";
+
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { MembershipTitle } from "../membership/MembershipTitle";
+
+export const TeamCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/team/TeamEdit.tsx b/apps/roi-cacl-2-admin/src/team/TeamEdit.tsx
new file mode 100644
index 0000000..3652921
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/team/TeamEdit.tsx
@@ -0,0 +1,44 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ BooleanInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+} from "react-admin";
+
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { MembershipTitle } from "../membership/MembershipTitle";
+
+export const TeamEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/team/TeamList.tsx b/apps/roi-cacl-2-admin/src/team/TeamList.tsx
new file mode 100644
index 0000000..e127eb9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/team/TeamList.tsx
@@ -0,0 +1,30 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ BooleanField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+
+export const TeamList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/team/TeamShow.tsx b/apps/roi-cacl-2-admin/src/team/TeamShow.tsx
new file mode 100644
index 0000000..cfcb281
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/team/TeamShow.tsx
@@ -0,0 +1,127 @@
+import * as React from "react";
+
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ BooleanField,
+ ReferenceManyField,
+ Datagrid,
+ ReferenceField,
+} from "react-admin";
+
+import { TEAM_TITLE_FIELD } from "./TeamTitle";
+import { SCHEDULE_TITLE_FIELD } from "../schedule/ScheduleTitle";
+import { DESTINATIONCALENDAR_TITLE_FIELD } from "../destinationCalendar/DestinationCalendarTitle";
+import { HASHEDLINK_TITLE_FIELD } from "../hashedLink/HashedLinkTitle";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const TeamShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/team/TeamTitle.ts b/apps/roi-cacl-2-admin/src/team/TeamTitle.ts
new file mode 100644
index 0000000..50d6ed6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/team/TeamTitle.ts
@@ -0,0 +1,7 @@
+import { Team as TTeam } from "../api/team/Team";
+
+export const TEAM_TITLE_FIELD = "name";
+
+export const TeamTitle = (record: TTeam): string => {
+ return record.name?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/theme/theme.ts b/apps/roi-cacl-2-admin/src/theme/theme.ts
new file mode 100644
index 0000000..56a1153
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/theme/theme.ts
@@ -0,0 +1,33 @@
+import { defaultTheme } from "react-admin";
+import { createTheme, ThemeOptions } from "@material-ui/core/styles";
+import { merge } from "lodash";
+import createPalette from "@material-ui/core/styles/createPalette";
+
+const palette = createPalette(
+ merge({}, defaultTheme.palette, {
+ primary: {
+ main: "#20a4f3",
+ },
+ secondary: {
+ main: "#7950ed",
+ },
+ error: {
+ main: "#e93c51",
+ },
+ warning: {
+ main: "#f6aa50",
+ },
+ info: {
+ main: "#144bc1",
+ },
+ success: {
+ main: "#31c587",
+ },
+ })
+);
+
+const themeOptions: ThemeOptions = {
+ palette,
+};
+
+export const theme = createTheme(merge({}, defaultTheme, themeOptions));
diff --git a/apps/roi-cacl-2-admin/src/types.ts b/apps/roi-cacl-2-admin/src/types.ts
new file mode 100644
index 0000000..45a457d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/types.ts
@@ -0,0 +1,13 @@
+import { JsonValue } from "type-fest";
+
+export type Credentials = {
+ username: string;
+ password: string;
+};
+export type LoginMutateResult = {
+ login: {
+ username: string;
+ accessToken: string;
+ };
+};
+export type InputJsonValue = Omit;
diff --git a/apps/roi-cacl-2-admin/src/user/EnumRoles.ts b/apps/roi-cacl-2-admin/src/user/EnumRoles.ts
new file mode 100644
index 0000000..3df7048
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/user/EnumRoles.ts
@@ -0,0 +1,3 @@
+export enum EnumRoles {
+ User = "user",
+}
diff --git a/apps/roi-cacl-2-admin/src/user/RolesOptions.ts b/apps/roi-cacl-2-admin/src/user/RolesOptions.ts
new file mode 100644
index 0000000..5e30fe9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/user/RolesOptions.ts
@@ -0,0 +1,11 @@
+import { ROLES } from "./roles";
+
+declare interface Role {
+ name: string;
+ displayName: string;
+}
+
+export const ROLES_OPTIONS = ROLES.map((role: Role) => ({
+ value: role.name,
+ label: role.displayName,
+}));
diff --git a/apps/roi-cacl-2-admin/src/user/UserCreate.tsx b/apps/roi-cacl-2-admin/src/user/UserCreate.tsx
new file mode 100644
index 0000000..428d171
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/user/UserCreate.tsx
@@ -0,0 +1,242 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ DateTimeInput,
+ NumberInput,
+ BooleanInput,
+ SelectInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+ ReferenceInput,
+} from "react-admin";
+
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { CredentialTitle } from "../credential/CredentialTitle";
+import { DestinationCalendarTitle } from "../destinationCalendar/DestinationCalendarTitle";
+import { MembershipTitle } from "../membership/MembershipTitle";
+import { BookingTitle } from "../booking/BookingTitle";
+import { ScheduleTitle } from "../schedule/ScheduleTitle";
+import { AvailabilityTitle } from "../availability/AvailabilityTitle";
+import { SelectedCalendarTitle } from "../selectedCalendar/SelectedCalendarTitle";
+import { WebhookTitle } from "../webhook/WebhookTitle";
+import { ImpersonationTitle } from "../impersonation/ImpersonationTitle";
+import { ApiKeyTitle } from "../apiKey/ApiKeyTitle";
+import { AccountTitle } from "../account/AccountTitle";
+import { SessionTitle } from "../session/SessionTitle";
+import { FeedbackTitle } from "../feedback/FeedbackTitle";
+import { WorkflowTitle } from "../workflow/WorkflowTitle";
+
+export const UserCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/user/UserEdit.tsx b/apps/roi-cacl-2-admin/src/user/UserEdit.tsx
new file mode 100644
index 0000000..5970d32
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/user/UserEdit.tsx
@@ -0,0 +1,242 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ DateTimeInput,
+ NumberInput,
+ BooleanInput,
+ SelectInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+ ReferenceInput,
+} from "react-admin";
+
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { CredentialTitle } from "../credential/CredentialTitle";
+import { DestinationCalendarTitle } from "../destinationCalendar/DestinationCalendarTitle";
+import { MembershipTitle } from "../membership/MembershipTitle";
+import { BookingTitle } from "../booking/BookingTitle";
+import { ScheduleTitle } from "../schedule/ScheduleTitle";
+import { AvailabilityTitle } from "../availability/AvailabilityTitle";
+import { SelectedCalendarTitle } from "../selectedCalendar/SelectedCalendarTitle";
+import { WebhookTitle } from "../webhook/WebhookTitle";
+import { ImpersonationTitle } from "../impersonation/ImpersonationTitle";
+import { ApiKeyTitle } from "../apiKey/ApiKeyTitle";
+import { AccountTitle } from "../account/AccountTitle";
+import { SessionTitle } from "../session/SessionTitle";
+import { FeedbackTitle } from "../feedback/FeedbackTitle";
+import { WorkflowTitle } from "../workflow/WorkflowTitle";
+
+export const UserEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/user/UserList.tsx b/apps/roi-cacl-2-admin/src/user/UserList.tsx
new file mode 100644
index 0000000..a38dc76
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/user/UserList.tsx
@@ -0,0 +1,80 @@
+import * as React from "react";
+
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ BooleanField,
+ DateField,
+ ReferenceField,
+} from "react-admin";
+
+import Pagination from "../Components/Pagination";
+import { DESTINATIONCALENDAR_TITLE_FIELD } from "../destinationCalendar/DestinationCalendarTitle";
+
+export const UserList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/user/UserShow.tsx b/apps/roi-cacl-2-admin/src/user/UserShow.tsx
new file mode 100644
index 0000000..6bbbc1a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/user/UserShow.tsx
@@ -0,0 +1,405 @@
+import * as React from "react";
+
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ BooleanField,
+ DateField,
+ ReferenceField,
+ ReferenceManyField,
+ Datagrid,
+} from "react-admin";
+
+import { USER_TITLE_FIELD } from "./UserTitle";
+import { APPMODEL_TITLE_FIELD } from "../appModel/AppModelTitle";
+import { TEAM_TITLE_FIELD } from "../team/TeamTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+import { DESTINATIONCALENDAR_TITLE_FIELD } from "../destinationCalendar/DestinationCalendarTitle";
+import { DAILYEVENTREFERENCE_TITLE_FIELD } from "../dailyEventReference/DailyEventReferenceTitle";
+import { SCHEDULE_TITLE_FIELD } from "../schedule/ScheduleTitle";
+
+export const UserShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/user/UserTitle.ts b/apps/roi-cacl-2-admin/src/user/UserTitle.ts
new file mode 100644
index 0000000..65b5055
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/user/UserTitle.ts
@@ -0,0 +1,7 @@
+import { User as TUser } from "../api/user/User";
+
+export const USER_TITLE_FIELD = "username";
+
+export const UserTitle = (record: TUser): string => {
+ return record.username?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/user/roles.ts b/apps/roi-cacl-2-admin/src/user/roles.ts
new file mode 100644
index 0000000..732870a
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/user/roles.ts
@@ -0,0 +1,6 @@
+export const ROLES = [
+ {
+ name: "user",
+ displayName: "User",
+ },
+];
diff --git a/apps/roi-cacl-2-admin/src/util/BooleanFilter.ts b/apps/roi-cacl-2-admin/src/util/BooleanFilter.ts
new file mode 100644
index 0000000..a142d58
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/BooleanFilter.ts
@@ -0,0 +1,4 @@
+export class BooleanFilter {
+ equals?: boolean;
+ not?: boolean;
+}
diff --git a/apps/roi-cacl-2-admin/src/util/BooleanNullableFilter.ts b/apps/roi-cacl-2-admin/src/util/BooleanNullableFilter.ts
new file mode 100644
index 0000000..b94aefc
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/BooleanNullableFilter.ts
@@ -0,0 +1,4 @@
+export class BooleanNullableFilter {
+ equals?: boolean | null;
+ not?: boolean | null;
+}
diff --git a/apps/roi-cacl-2-admin/src/util/DateTimeFilter.ts b/apps/roi-cacl-2-admin/src/util/DateTimeFilter.ts
new file mode 100644
index 0000000..cd8d213
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/DateTimeFilter.ts
@@ -0,0 +1,10 @@
+export class DateTimeFilter {
+ equals?: Date;
+ not?: Date;
+ in?: Date[];
+ notIn?: Date[];
+ lt?: Date;
+ lte?: Date;
+ gt?: Date;
+ gte?: Date;
+}
diff --git a/apps/roi-cacl-2-admin/src/util/DateTimeNullableFilter.ts b/apps/roi-cacl-2-admin/src/util/DateTimeNullableFilter.ts
new file mode 100644
index 0000000..2f9c7b3
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/DateTimeNullableFilter.ts
@@ -0,0 +1,10 @@
+export class DateTimeNullableFilter {
+ equals?: Date | null;
+ in?: Date[] | null;
+ notIn?: Date[] | null;
+ lt?: Date;
+ lte?: Date;
+ gt?: Date;
+ gte?: Date;
+ not?: Date;
+}
diff --git a/apps/roi-cacl-2-admin/src/util/FloatFilter.ts b/apps/roi-cacl-2-admin/src/util/FloatFilter.ts
new file mode 100644
index 0000000..62aeb14
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/FloatFilter.ts
@@ -0,0 +1,10 @@
+export class FloatFilter {
+ equals?: number;
+ in?: number[];
+ notIn?: number[];
+ lt?: number;
+ lte?: number;
+ gt?: number;
+ gte?: number;
+ not?: number;
+}
diff --git a/apps/roi-cacl-2-admin/src/util/FloatNullableFilter.ts b/apps/roi-cacl-2-admin/src/util/FloatNullableFilter.ts
new file mode 100644
index 0000000..d7bb163
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/FloatNullableFilter.ts
@@ -0,0 +1,10 @@
+export class FloatNullableFilter {
+ equals?: number | null;
+ in?: number[] | null;
+ notIn?: number[] | null;
+ lt?: number;
+ lte?: number;
+ gt?: number;
+ gte?: number;
+ not?: number;
+}
diff --git a/apps/roi-cacl-2-admin/src/util/IntFilter.ts b/apps/roi-cacl-2-admin/src/util/IntFilter.ts
new file mode 100644
index 0000000..3dc0221
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/IntFilter.ts
@@ -0,0 +1,10 @@
+export class IntFilter {
+ equals?: number;
+ in?: number[];
+ notIn?: number[];
+ lt?: number;
+ lte?: number;
+ gt?: number;
+ gte?: number;
+ not?: number;
+}
diff --git a/apps/roi-cacl-2-admin/src/util/IntNullableFilter.ts b/apps/roi-cacl-2-admin/src/util/IntNullableFilter.ts
new file mode 100644
index 0000000..2107cae
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/IntNullableFilter.ts
@@ -0,0 +1,10 @@
+export class IntNullableFilter {
+ equals?: number | null;
+ in?: number[] | null;
+ notIn?: number[] | null;
+ lt?: number;
+ lte?: number;
+ gt?: number;
+ gte?: number;
+ not?: number;
+}
diff --git a/apps/roi-cacl-2-admin/src/util/JsonFilter.ts b/apps/roi-cacl-2-admin/src/util/JsonFilter.ts
new file mode 100644
index 0000000..cc44763
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/JsonFilter.ts
@@ -0,0 +1,5 @@
+import { InputJsonValue } from "../types";
+export class JsonFilter {
+ equals?: InputJsonValue;
+ not?: InputJsonValue;
+}
diff --git a/apps/roi-cacl-2-admin/src/util/JsonNullableFilter.ts b/apps/roi-cacl-2-admin/src/util/JsonNullableFilter.ts
new file mode 100644
index 0000000..e6d1506
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/JsonNullableFilter.ts
@@ -0,0 +1,5 @@
+import { JsonValue } from "type-fest";
+export class JsonNullableFilter {
+ equals?: JsonValue | null;
+ not?: JsonValue | null;
+}
diff --git a/apps/roi-cacl-2-admin/src/util/MetaQueryPayload.ts b/apps/roi-cacl-2-admin/src/util/MetaQueryPayload.ts
new file mode 100644
index 0000000..bc3175b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/MetaQueryPayload.ts
@@ -0,0 +1,3 @@
+export class MetaQueryPayload {
+ count!: number;
+}
diff --git a/apps/roi-cacl-2-admin/src/util/QueryMode.ts b/apps/roi-cacl-2-admin/src/util/QueryMode.ts
new file mode 100644
index 0000000..8a2164e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/QueryMode.ts
@@ -0,0 +1,4 @@
+export enum QueryMode {
+ Default = "default",
+ Insensitive = "insensitive",
+}
diff --git a/apps/roi-cacl-2-admin/src/util/SortOrder.ts b/apps/roi-cacl-2-admin/src/util/SortOrder.ts
new file mode 100644
index 0000000..a5bcdb6
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/SortOrder.ts
@@ -0,0 +1,4 @@
+export enum SortOrder {
+ Asc = "asc",
+ Desc = "desc",
+}
diff --git a/apps/roi-cacl-2-admin/src/util/StringFilter.ts b/apps/roi-cacl-2-admin/src/util/StringFilter.ts
new file mode 100644
index 0000000..c2e26c5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/StringFilter.ts
@@ -0,0 +1,16 @@
+import { QueryMode } from "./QueryMode";
+
+export class StringFilter {
+ equals?: string;
+ in?: string[];
+ notIn?: string[];
+ lt?: string;
+ lte?: string;
+ gt?: string;
+ gte?: string;
+ contains?: string;
+ startsWith?: string;
+ endsWith?: string;
+ mode?: QueryMode;
+ not?: string;
+}
diff --git a/apps/roi-cacl-2-admin/src/util/StringNullableFilter.ts b/apps/roi-cacl-2-admin/src/util/StringNullableFilter.ts
new file mode 100644
index 0000000..e1e37ec
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/util/StringNullableFilter.ts
@@ -0,0 +1,15 @@
+import { QueryMode } from "./QueryMode";
+export class StringNullableFilter {
+ equals?: string | null;
+ in?: string[] | null;
+ notIn?: string[] | null;
+ lt?: string;
+ lte?: string;
+ gt?: string;
+ gte?: string;
+ contains?: string;
+ startsWith?: string;
+ endsWith?: string;
+ mode?: QueryMode;
+ not?: string;
+}
diff --git a/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenCreate.tsx b/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenCreate.tsx
new file mode 100644
index 0000000..82a2a62
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenCreate.tsx
@@ -0,0 +1,22 @@
+import * as React from "react";
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ DateTimeInput,
+} from "react-admin";
+
+export const VerificationTokenCreate = (
+ props: CreateProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenEdit.tsx b/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenEdit.tsx
new file mode 100644
index 0000000..7056bf7
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenEdit.tsx
@@ -0,0 +1,20 @@
+import * as React from "react";
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ DateTimeInput,
+} from "react-admin";
+
+export const VerificationTokenEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenList.tsx b/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenList.tsx
new file mode 100644
index 0000000..84d74b0
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenList.tsx
@@ -0,0 +1,24 @@
+import * as React from "react";
+import { List, Datagrid, ListProps, TextField, DateField } from "react-admin";
+import Pagination from "../Components/Pagination";
+
+export const VerificationTokenList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenShow.tsx b/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenShow.tsx
new file mode 100644
index 0000000..202dd0d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenShow.tsx
@@ -0,0 +1,23 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ DateField,
+} from "react-admin";
+
+export const VerificationTokenShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenTitle.ts b/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenTitle.ts
new file mode 100644
index 0000000..61c17c9
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/verificationToken/VerificationTokenTitle.ts
@@ -0,0 +1,7 @@
+import { VerificationToken as TVerificationToken } from "../api/verificationToken/VerificationToken";
+
+export const VERIFICATIONTOKEN_TITLE_FIELD = "identifier";
+
+export const VerificationTokenTitle = (record: TVerificationToken): string => {
+ return record.identifier?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/webhook/WebhookCreate.tsx b/apps/roi-cacl-2-admin/src/webhook/WebhookCreate.tsx
new file mode 100644
index 0000000..cc7ae3c
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/webhook/WebhookCreate.tsx
@@ -0,0 +1,57 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ BooleanInput,
+ SelectArrayInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { AppModelTitle } from "../appModel/AppModelTitle";
+
+export const WebhookCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/webhook/WebhookEdit.tsx b/apps/roi-cacl-2-admin/src/webhook/WebhookEdit.tsx
new file mode 100644
index 0000000..6fbc2a5
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/webhook/WebhookEdit.tsx
@@ -0,0 +1,57 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ BooleanInput,
+ SelectArrayInput,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+import { AppModelTitle } from "../appModel/AppModelTitle";
+
+export const WebhookEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/webhook/WebhookList.tsx b/apps/roi-cacl-2-admin/src/webhook/WebhookList.tsx
new file mode 100644
index 0000000..afc58aa
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/webhook/WebhookList.tsx
@@ -0,0 +1,55 @@
+import * as React from "react";
+
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ DateField,
+ BooleanField,
+ ReferenceField,
+} from "react-admin";
+
+import Pagination from "../Components/Pagination";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+import { APPMODEL_TITLE_FIELD } from "../appModel/AppModelTitle";
+
+export const WebhookList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/webhook/WebhookShow.tsx b/apps/roi-cacl-2-admin/src/webhook/WebhookShow.tsx
new file mode 100644
index 0000000..a4c4676
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/webhook/WebhookShow.tsx
@@ -0,0 +1,48 @@
+import * as React from "react";
+
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ DateField,
+ BooleanField,
+ ReferenceField,
+} from "react-admin";
+
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+import { APPMODEL_TITLE_FIELD } from "../appModel/AppModelTitle";
+
+export const WebhookShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/webhook/WebhookTitle.ts b/apps/roi-cacl-2-admin/src/webhook/WebhookTitle.ts
new file mode 100644
index 0000000..2141558
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/webhook/WebhookTitle.ts
@@ -0,0 +1,7 @@
+import { Webhook as TWebhook } from "../api/webhook/Webhook";
+
+export const WEBHOOK_TITLE_FIELD = "subscriberUrl";
+
+export const WebhookTitle = (record: TWebhook): string => {
+ return record.subscriberUrl?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/workflow/WorkflowCreate.tsx b/apps/roi-cacl-2-admin/src/workflow/WorkflowCreate.tsx
new file mode 100644
index 0000000..e3f9653
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflow/WorkflowCreate.tsx
@@ -0,0 +1,70 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+ NumberInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { WorkflowStepTitle } from "../workflowStep/WorkflowStepTitle";
+import { WorkflowsOnEventTypeTitle } from "../workflowsOnEventType/WorkflowsOnEventTypeTitle";
+
+export const WorkflowCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflow/WorkflowEdit.tsx b/apps/roi-cacl-2-admin/src/workflow/WorkflowEdit.tsx
new file mode 100644
index 0000000..d571271
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflow/WorkflowEdit.tsx
@@ -0,0 +1,70 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ TextInput,
+ ReferenceInput,
+ SelectInput,
+ NumberInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+} from "react-admin";
+
+import { UserTitle } from "../user/UserTitle";
+import { WorkflowStepTitle } from "../workflowStep/WorkflowStepTitle";
+import { WorkflowsOnEventTypeTitle } from "../workflowsOnEventType/WorkflowsOnEventTypeTitle";
+
+export const WorkflowEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflow/WorkflowList.tsx b/apps/roi-cacl-2-admin/src/workflow/WorkflowList.tsx
new file mode 100644
index 0000000..e0e252b
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflow/WorkflowList.tsx
@@ -0,0 +1,33 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const WorkflowList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflow/WorkflowShow.tsx b/apps/roi-cacl-2-admin/src/workflow/WorkflowShow.tsx
new file mode 100644
index 0000000..0b46214
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflow/WorkflowShow.tsx
@@ -0,0 +1,77 @@
+import * as React from "react";
+
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+ ReferenceManyField,
+ Datagrid,
+} from "react-admin";
+
+import { WORKFLOW_TITLE_FIELD } from "./WorkflowTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+import { USER_TITLE_FIELD } from "../user/UserTitle";
+
+export const WorkflowShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflow/WorkflowTitle.ts b/apps/roi-cacl-2-admin/src/workflow/WorkflowTitle.ts
new file mode 100644
index 0000000..7f52fbe
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflow/WorkflowTitle.ts
@@ -0,0 +1,7 @@
+import { Workflow as TWorkflow } from "../api/workflow/Workflow";
+
+export const WORKFLOW_TITLE_FIELD = "name";
+
+export const WorkflowTitle = (record: TWorkflow): string => {
+ return record.name?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderCreate.tsx b/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderCreate.tsx
new file mode 100644
index 0000000..9733519
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderCreate.tsx
@@ -0,0 +1,49 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ ReferenceInput,
+ SelectInput,
+ DateTimeInput,
+ TextInput,
+ BooleanInput,
+} from "react-admin";
+
+import { BookingTitle } from "../booking/BookingTitle";
+import { WorkflowStepTitle } from "../workflowStep/WorkflowStepTitle";
+
+export const WorkflowReminderCreate = (
+ props: CreateProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderEdit.tsx b/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderEdit.tsx
new file mode 100644
index 0000000..b2ea942
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderEdit.tsx
@@ -0,0 +1,47 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ ReferenceInput,
+ SelectInput,
+ DateTimeInput,
+ TextInput,
+ BooleanInput,
+} from "react-admin";
+
+import { BookingTitle } from "../booking/BookingTitle";
+import { WorkflowStepTitle } from "../workflowStep/WorkflowStepTitle";
+
+export const WorkflowReminderEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderList.tsx b/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderList.tsx
new file mode 100644
index 0000000..bd470fa
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderList.tsx
@@ -0,0 +1,42 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+ BooleanField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+import { WORKFLOWSTEP_TITLE_FIELD } from "../workflowStep/WorkflowStepTitle";
+
+export const WorkflowReminderList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderShow.tsx b/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderShow.tsx
new file mode 100644
index 0000000..4626d5d
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderShow.tsx
@@ -0,0 +1,35 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+ BooleanField,
+} from "react-admin";
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+import { WORKFLOWSTEP_TITLE_FIELD } from "../workflowStep/WorkflowStepTitle";
+
+export const WorkflowReminderShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderTitle.ts b/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderTitle.ts
new file mode 100644
index 0000000..700d407
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowReminder/WorkflowReminderTitle.ts
@@ -0,0 +1,7 @@
+import { WorkflowReminder as TWorkflowReminder } from "../api/workflowReminder/WorkflowReminder";
+
+export const WORKFLOWREMINDER_TITLE_FIELD = "referenceId";
+
+export const WorkflowReminderTitle = (record: TWorkflowReminder): string => {
+ return record.referenceId?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepCreate.tsx b/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepCreate.tsx
new file mode 100644
index 0000000..5487b90
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepCreate.tsx
@@ -0,0 +1,66 @@
+import * as React from "react";
+
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ NumberInput,
+ SelectInput,
+ ReferenceInput,
+ TextInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+} from "react-admin";
+
+import { WorkflowTitle } from "../workflow/WorkflowTitle";
+import { WorkflowReminderTitle } from "../workflowReminder/WorkflowReminderTitle";
+
+export const WorkflowStepCreate = (props: CreateProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepEdit.tsx b/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepEdit.tsx
new file mode 100644
index 0000000..fa1f7db
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepEdit.tsx
@@ -0,0 +1,66 @@
+import * as React from "react";
+
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ NumberInput,
+ SelectInput,
+ ReferenceInput,
+ TextInput,
+ ReferenceArrayInput,
+ SelectArrayInput,
+} from "react-admin";
+
+import { WorkflowTitle } from "../workflow/WorkflowTitle";
+import { WorkflowReminderTitle } from "../workflowReminder/WorkflowReminderTitle";
+
+export const WorkflowStepEdit = (props: EditProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ value && value.map((v: any) => ({ id: v }))}
+ format={(value: any) => value && value.map((v: any) => v.id)}
+ >
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepList.tsx b/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepList.tsx
new file mode 100644
index 0000000..66a2c33
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepList.tsx
@@ -0,0 +1,39 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { WORKFLOW_TITLE_FIELD } from "../workflow/WorkflowTitle";
+
+export const WorkflowStepList = (props: ListProps): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepShow.tsx b/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepShow.tsx
new file mode 100644
index 0000000..0f377c2
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepShow.tsx
@@ -0,0 +1,66 @@
+import * as React from "react";
+
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+ ReferenceManyField,
+ Datagrid,
+ BooleanField,
+} from "react-admin";
+
+import { BOOKING_TITLE_FIELD } from "../booking/BookingTitle";
+import { WORKFLOWSTEP_TITLE_FIELD } from "./WorkflowStepTitle";
+import { WORKFLOW_TITLE_FIELD } from "../workflow/WorkflowTitle";
+
+export const WorkflowStepShow = (props: ShowProps): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepTitle.ts b/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepTitle.ts
new file mode 100644
index 0000000..9e70288
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowStep/WorkflowStepTitle.ts
@@ -0,0 +1,7 @@
+import { WorkflowStep as TWorkflowStep } from "../api/workflowStep/WorkflowStep";
+
+export const WORKFLOWSTEP_TITLE_FIELD = "sendTo";
+
+export const WorkflowStepTitle = (record: TWorkflowStep): string => {
+ return record.sendTo?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeCreate.tsx b/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeCreate.tsx
new file mode 100644
index 0000000..8564068
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeCreate.tsx
@@ -0,0 +1,35 @@
+import * as React from "react";
+import {
+ Create,
+ SimpleForm,
+ CreateProps,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+import { WorkflowTitle } from "../workflow/WorkflowTitle";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+
+export const WorkflowsOnEventTypeCreate = (
+ props: CreateProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeEdit.tsx b/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeEdit.tsx
new file mode 100644
index 0000000..a6f86fb
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeEdit.tsx
@@ -0,0 +1,35 @@
+import * as React from "react";
+import {
+ Edit,
+ SimpleForm,
+ EditProps,
+ ReferenceInput,
+ SelectInput,
+} from "react-admin";
+import { WorkflowTitle } from "../workflow/WorkflowTitle";
+import { EventTypeTitle } from "../eventType/EventTypeTitle";
+
+export const WorkflowsOnEventTypeEdit = (
+ props: EditProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeList.tsx b/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeList.tsx
new file mode 100644
index 0000000..8f9650e
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeList.tsx
@@ -0,0 +1,43 @@
+import * as React from "react";
+import {
+ List,
+ Datagrid,
+ ListProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import Pagination from "../Components/Pagination";
+import { WORKFLOW_TITLE_FIELD } from "../workflow/WorkflowTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+
+export const WorkflowsOnEventTypeList = (
+ props: ListProps
+): React.ReactElement => {
+ return (
+
}
+ >
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeShow.tsx b/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeShow.tsx
new file mode 100644
index 0000000..8019d07
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeShow.tsx
@@ -0,0 +1,36 @@
+import * as React from "react";
+import {
+ Show,
+ SimpleShowLayout,
+ ShowProps,
+ TextField,
+ ReferenceField,
+} from "react-admin";
+import { WORKFLOW_TITLE_FIELD } from "../workflow/WorkflowTitle";
+import { EVENTTYPE_TITLE_FIELD } from "../eventType/EventTypeTitle";
+
+export const WorkflowsOnEventTypeShow = (
+ props: ShowProps
+): React.ReactElement => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeTitle.ts b/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeTitle.ts
new file mode 100644
index 0000000..39d9403
--- /dev/null
+++ b/apps/roi-cacl-2-admin/src/workflowsOnEventType/WorkflowsOnEventTypeTitle.ts
@@ -0,0 +1,9 @@
+import { WorkflowsOnEventType as TWorkflowsOnEventType } from "../api/workflowsOnEventType/WorkflowsOnEventType";
+
+export const WORKFLOWSONEVENTTYPE_TITLE_FIELD = "id";
+
+export const WorkflowsOnEventTypeTitle = (
+ record: TWorkflowsOnEventType
+): string => {
+ return record.id?.toString() || String(record.id);
+};
diff --git a/apps/roi-cacl-2-admin/tsconfig.json b/apps/roi-cacl-2-admin/tsconfig.json
new file mode 100644
index 0000000..31cc780
--- /dev/null
+++ b/apps/roi-cacl-2-admin/tsconfig.json
@@ -0,0 +1,21 @@
+{
+ "compilerOptions": {
+ "target": "es5",
+ "lib": ["dom", "dom.iterable", "esnext"],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "esModuleInterop": true,
+ "allowSyntheticDefaultImports": true,
+ "forceConsistentCasingInFileNames": true,
+ "noFallthroughCasesInSwitch": true,
+ "module": "esnext",
+ "moduleResolution": "node",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "noEmit": true,
+ "jsx": "react-jsx",
+ "strict": true
+ },
+ "include": ["src"],
+ "exclude": ["./node_modules"]
+}
diff --git a/apps/roi-cacl-2/.dockerignore b/apps/roi-cacl-2/.dockerignore
new file mode 100644
index 0000000..cb5c30b
--- /dev/null
+++ b/apps/roi-cacl-2/.dockerignore
@@ -0,0 +1,8 @@
+.dockerignore
+docker-compose.yml
+Dockerfile
+dist/
+node_modules
+.env
+.gitignore
+.prettierignore
\ No newline at end of file
diff --git a/apps/roi-cacl-2/.env b/apps/roi-cacl-2/.env
new file mode 100644
index 0000000..7cfbc4e
--- /dev/null
+++ b/apps/roi-cacl-2/.env
@@ -0,0 +1,8 @@
+BCRYPT_SALT=10
+COMPOSE_PROJECT_NAME=amp_cluva7ffe00011upfyk074oua
+DB_NAME=my-db
+DB_PASSWORD=admin
+DB_PORT=5432
+DB_URL=postgres://admin:admin@localhost:5432/my-db
+DB_USER=admin
+PORT=3000
\ No newline at end of file
diff --git a/apps/roi-cacl-2/.gitignore b/apps/roi-cacl-2/.gitignore
new file mode 100644
index 0000000..08c9980
--- /dev/null
+++ b/apps/roi-cacl-2/.gitignore
@@ -0,0 +1,5 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+/node_modules
+/dist
+.DS_Store
diff --git a/apps/roi-cacl-2/.prettierignore b/apps/roi-cacl-2/.prettierignore
new file mode 100644
index 0000000..e48f355
--- /dev/null
+++ b/apps/roi-cacl-2/.prettierignore
@@ -0,0 +1,5 @@
+node_modules/
+dist/
+prisma/migrations/
+package-lock.json
+coverage/
\ No newline at end of file
diff --git a/apps/roi-cacl-2/Dockerfile b/apps/roi-cacl-2/Dockerfile
new file mode 100644
index 0000000..80dd8d3
--- /dev/null
+++ b/apps/roi-cacl-2/Dockerfile
@@ -0,0 +1,68 @@
+# multi-stage: base (build)
+FROM node:18.13.0 AS base
+
+# create directory where the application will be built
+WORKDIR /app
+
+# copy over the dependency manifests, both the package.json
+# and the package-lock.json are copied over
+COPY package*.json ./
+
+# installs packages and their dependencies
+RUN npm install
+
+# copy over the prisma schema
+COPY prisma/schema.prisma ./prisma/
+
+# generate the prisma client based on the schema
+RUN npm run prisma:generate
+
+# copy over the code base
+COPY . .
+
+# create the bundle of the application
+RUN npm run build
+
+# multi-stage: production (runtime)
+FROM node:18.13.0-slim AS production
+
+# create arguments of builds time variables
+ARG user=amplication
+ARG group=${user}
+ARG uid=1001
+ARG gid=$uid
+
+# [temporary] work around to be able to run prisma
+RUN apt-get update -y && apt-get install -y openssl
+
+# create directory where the application will be executed from
+WORKDIR /app
+
+# add the user and group
+RUN groupadd --gid ${gid} ${user}
+RUN useradd --uid ${uid} --gid ${gid} -m ${user}
+
+# copy over the bundled code from the build stage
+COPY --from=base /app/node_modules/ ./node_modules
+COPY --from=base /app/package.json ./package.json
+COPY --from=base /app/dist ./dist
+COPY --from=base /app/prisma ./prisma
+COPY --from=base /app/scripts ./scripts
+COPY --from=base /app/src ./src
+COPY --from=base /app/tsconfig* ./
+
+# change ownership of the workspace directory
+RUN chown -R ${uid}:${gid} /app/
+
+# get rid of the development dependencies
+RUN npm install --production
+
+# set user to the created non-privileged user
+USER ${user}
+
+# expose a specific port on the docker container
+ENV PORT=3000
+EXPOSE ${PORT}
+
+# start the server using the previously build application
+CMD [ "node", "./dist/main.js" ]
diff --git a/apps/roi-cacl-2/README.md b/apps/roi-cacl-2/README.md
new file mode 100644
index 0000000..bca0445
--- /dev/null
+++ b/apps/roi-cacl-2/README.md
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+# Introduction
+
+This service was generated with Amplication. The server-side of the generated project. This component provides the different backend services - i.e., REST API, GraphQL API, authentication, authorization, logging, data validation and the connection to the database. Additional information about the server component and the architecture around it, can be found on the [documentation](https://docs.amplication.com/guides/getting-started) site.
+
+# Getting started
+
+## Step 1: Configuration
+
+Configuration for the server component can be provided through the use of environment variables. These can be passed to the application via the use of the `.env` file in the base directory of the generated service. Below a table can be found which show the different variables that can be passed - these are the variables which exist by default, through the use of plugins additional integrations could require additional values. These values are provided default values after generation, change them to the desired values.
+
+| Variable | Description | Value |
+| -------------------- | -------------------------------------------- | ------------------------------------------------------------------- |
+| BCRYPT_SALT | the string used for hashing | [random-string] |
+| COMPOSE_PROJECT_NAME | the identifier of the service plus prefix | amp_[service-identifier] |
+| PORT | the port on which to run the server | 3000 |
+| DB_URL | the connection url for the database | [db-provider]://[username]:[password]@localhost:[db-port]/[db-name] |
+| DB_PORT | the port used by the database instance | [db-provider-port] |
+| DB_USER | the username used to connect to the database | [username] |
+| DB_PASSWORD | the password used to connect to the database | [password] |
+| DB_NAME | the name of the database | [service-name] / [project-name] |
+| JWT_SECRET_KEY | the secret used to sign the json-web token | [secret] |
+| JWT_EXPIRATION | the expiration time for the json-web token | 2d |
+
+> **Note**
+> Amplication generates default values and stores them under the .env file. It is advised to use some form of secrets manager/vault solution when using in production.
+
+## Step 2.1: Scripts - pre-requisites
+
+After configuration of the server the next step would be to run the application. Before running the server side of the component, make sure that the different pre-requisites are met - i.e., node.js [^16.x], npm, docker. After the setup of the pre-requisites the server component can be started.
+
+```sh
+# installation of the dependencies
+$ npm install
+
+# generate the prisma client
+$ npm run prisma:generate
+```
+
+## Step 2.2: Scripts - local development
+
+```sh
+# start the database where the server component will connect to
+$ npm run docker:dev
+
+# initialize the database
+$ npm run db:init
+
+# start the server component
+$ npm run start
+```
+By default, your app comes with one user with the username "admin" and password "admin".
+
+## Step 2.2: Scripts - container based development
+
+```shell
+# start the server component as a docker container
+$ npm run compose:up
+```
diff --git a/apps/roi-cacl-2/docker-compose.dev.yml b/apps/roi-cacl-2/docker-compose.dev.yml
new file mode 100644
index 0000000..8d7c358
--- /dev/null
+++ b/apps/roi-cacl-2/docker-compose.dev.yml
@@ -0,0 +1,13 @@
+version: "3"
+services:
+ db:
+ image: postgres:12
+ ports:
+ - ${DB_PORT}:5432
+ environment:
+ POSTGRES_USER: ${DB_USER}
+ POSTGRES_PASSWORD: ${DB_PASSWORD}
+ volumes:
+ - postgres:/var/lib/postgresql/data
+volumes:
+ postgres: ~
diff --git a/apps/roi-cacl-2/docker-compose.yml b/apps/roi-cacl-2/docker-compose.yml
new file mode 100644
index 0000000..ef3a7a5
--- /dev/null
+++ b/apps/roi-cacl-2/docker-compose.yml
@@ -0,0 +1,47 @@
+version: "3"
+services:
+ server:
+ build:
+ context: .
+ args:
+ NPM_LOG_LEVEL: notice
+ ports:
+ - ${PORT}:3000
+ environment:
+ BCRYPT_SALT: ${BCRYPT_SALT}
+ DB_URL: postgres://${DB_USER}:${DB_PASSWORD}@db:5432/${DB_NAME}
+ depends_on:
+ - migrate
+ restart: on-failure
+ migrate:
+ build:
+ context: .
+ args:
+ NPM_LOG_LEVEL: notice
+ command: npm run db:init
+ working_dir: /app/server
+ environment:
+ BCRYPT_SALT: ${BCRYPT_SALT}
+ DB_URL: postgres://${DB_USER}:${DB_PASSWORD}@db:5432/${DB_NAME}
+ depends_on:
+ db:
+ condition: service_healthy
+ db:
+ image: postgres:12
+ ports:
+ - ${DB_PORT}:5432
+ environment:
+ POSTGRES_USER: ${DB_USER}
+ POSTGRES_PASSWORD: ${DB_PASSWORD}
+ POSTGRES_DB: ${DB_NAME}
+ volumes:
+ - postgres:/var/lib/postgresql/data
+ healthcheck:
+ test:
+ - CMD-SHELL
+ - pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}
+ timeout: 45s
+ interval: 10s
+ retries: 10
+volumes:
+ postgres: ~
diff --git a/apps/roi-cacl-2/nest-cli.json b/apps/roi-cacl-2/nest-cli.json
new file mode 100644
index 0000000..b7b60ae
--- /dev/null
+++ b/apps/roi-cacl-2/nest-cli.json
@@ -0,0 +1,10 @@
+{
+ "sourceRoot": "src",
+ "compilerOptions": {
+ "assets": [
+ {
+ "include": "swagger/**/*"
+ }
+ ]
+ }
+}
diff --git a/apps/roi-cacl-2/package.json b/apps/roi-cacl-2/package.json
new file mode 100644
index 0000000..7a1faeb
--- /dev/null
+++ b/apps/roi-cacl-2/package.json
@@ -0,0 +1,73 @@
+{
+ "name": "@roi-cacl-2/server",
+ "private": true,
+ "scripts": {
+ "start": "nest start",
+ "start:watch": "nest start --watch",
+ "start:debug": "nest start --debug --watch",
+ "build": "nest build",
+ "test": "jest",
+ "seed": "ts-node scripts/seed.ts",
+ "db:migrate-save": "prisma migrate dev",
+ "db:migrate-up": "prisma migrate deploy",
+ "db:clean": "prisma migrate reset",
+ "db:init": "run-s \"db:migrate-save -- --name 'initial version'\" db:migrate-up seed",
+ "prisma:generate": "prisma generate",
+ "docker:dev": "docker-compose -f docker-compose.dev.yml up -d",
+ "package:container": "docker build .",
+ "compose:up": "docker-compose up -d",
+ "compose:down": "docker-compose down --volumes"
+ },
+ "dependencies": {
+ "@apollo/server": "^4.9.4",
+ "@nestjs/apollo": "12.0.9",
+ "@nestjs/common": "10.2.7",
+ "@nestjs/config": "3.1.1",
+ "@nestjs/core": "10.2.7",
+ "@nestjs/graphql": "12.0.9",
+ "@nestjs/jwt": "^10.1.1",
+ "@nestjs/passport": "^10.0.2",
+ "@nestjs/platform-express": "10.2.7",
+ "@nestjs/serve-static": "4.0.0",
+ "@nestjs/swagger": "7.1.13",
+ "@prisma/client": "^5.4.2",
+ "@types/bcrypt": "5.0.0",
+ "bcrypt": "5.1.1",
+ "class-transformer": "0.5.1",
+ "class-validator": "0.14.0",
+ "dotenv": "16.3.1",
+ "graphql": "^16.8.1",
+ "graphql-type-json": "0.3.2",
+ "npm-run-all": "4.1.5",
+ "passport": "0.6.0",
+ "passport-http": "0.3.0",
+ "passport-jwt": "4.0.1",
+ "reflect-metadata": "0.1.13",
+ "ts-node": "10.9.2",
+ "type-fest": "2.19.0",
+ "validator": "13.11.0"
+ },
+ "devDependencies": {
+ "@nestjs/cli": "^10.1.18",
+ "@nestjs/testing": "^10.2.7",
+ "@types/express": "^4.17.19",
+ "@types/graphql-type-json": "0.3.3",
+ "@types/jest": "^29.5.5",
+ "@types/normalize-path": "3.0.0",
+ "@types/passport-http": "0.3.9",
+ "@types/passport-jwt": "3.0.10",
+ "@types/supertest": "^2.0.14",
+ "@types/validator": "^13.11.2",
+ "jest": "^29.7.0",
+ "jest-mock-extended": "^3.0.5",
+ "prisma": "^5.4.2",
+ "supertest": "^6.3.3",
+ "ts-jest": "^29.1.1",
+ "typescript": "^5.4.3"
+ },
+ "jest": {
+ "preset": "ts-jest",
+ "testEnvironment": "node",
+ "modulePathIgnorePatterns": ["/dist/"]
+ }
+}
diff --git a/apps/roi-cacl-2/prisma/schema.prisma b/apps/roi-cacl-2/prisma/schema.prisma
new file mode 100644
index 0000000..b38e738
--- /dev/null
+++ b/apps/roi-cacl-2/prisma/schema.prisma
@@ -0,0 +1,553 @@
+datasource db {
+ provider = "postgresql"
+ url = env("DB_URL")
+}
+
+generator client {
+ provider = "prisma-client-js"
+}
+
+model EventType {
+ id Int @id @default(autoincrement())
+ title String
+ slug String
+ description String?
+ position Int @default(0)
+ locations Json?
+ length Int
+ hidden Boolean @default(false)
+ users User[]
+ userId Int?
+ team Team? @relation(fields: [teamId], references: [id])
+ teamId Int?
+ eventName String?
+ timeZone String?
+ periodType EnumEventTypePeriodType @default(UNLIMITED)
+ periodStartDate DateTime?
+ periodEndDate DateTime?
+ periodDays Int?
+ periodCountCalendarDays Boolean?
+ requiresConfirmation Boolean @default(false)
+ recurringEvent Json?
+ disableGuests Boolean @default(false)
+ hideCalendarNotes Boolean @default(false)
+ minimumBookingNotice Int @default(120)
+ beforeEventBuffer Int @default(0)
+ afterEventBuffer Int @default(0)
+ seatsPerTimeSlot Int?
+ schedulingType EnumEventTypeSchedulingType?
+ schedule Schedule? @relation(fields: [scheduleId], references: [id])
+ scheduleId Int?
+ price Int @default(0)
+ currency String @default("usd")
+ slotInterval Int?
+ metadata Json?
+ successRedirectUrl String?
+ destinationCalendar DestinationCalendar?
+ bookings Booking[]
+ availability Availability[]
+ customInputs EventTypeCustomInput[]
+ webhooks Webhook[]
+ hashedLink HashedLink?
+ workflows WorkflowsOnEventType[]
+
+ @@unique([userId, slug])
+ @@unique([teamId, slug])
+}
+
+model Credential {
+ id Int @id @default(autoincrement())
+ typeField String @map("type")
+ key Json
+ user User? @relation(fields: [userId], references: [id])
+ userId Int?
+ appField AppModel? @relation(fields: [appId], references: [id])
+ appId String?
+ destinationCalendars DestinationCalendar[]
+}
+
+model DestinationCalendar {
+ id Int @id @default(autoincrement())
+ integration String
+ externalId String
+ user User? @relation(fields: [userId], references: [id])
+ userId Int? @unique
+ booking Booking? @relation(fields: [bookingId], references: [id])
+ bookingId Int? @unique
+ eventType EventType? @relation(fields: [eventTypeId], references: [id])
+ eventTypeId Int? @unique
+ credential Credential? @relation(fields: [credentialId], references: [id])
+ credentialId Int?
+}
+
+model User {
+ id Int @id @default(autoincrement())
+ username String? @unique
+ name String?
+ email String @unique
+ emailVerified DateTime?
+ password String?
+ bio String?
+ avatar String?
+ timeZone String @default("Europe/London")
+ weekStart String @default("Sunday")
+ startTime Int @default(0)
+ endTime Int @default(1440)
+ bufferTime Int @default(0)
+ hideBranding Boolean @default(false)
+ theme String?
+ createdDate DateTime @default(now()) @map(name: "created")
+ trialEndsAt DateTime?
+ defaultScheduleId Int?
+ completedOnboarding Boolean @default(false)
+ locale String?
+ timeFormat Int? @default(12)
+ twoFactorSecret String?
+ twoFactorEnabled Boolean @default(false)
+ identityProvider EnumUserIdentityProvider @default(CAL)
+ identityProviderId String?
+ invitedTo Int?
+ plan EnumUserPlan @default(TRIAL)
+ brandColor String @default("#292929")
+ darkBrandColor String @default("#fafafa")
+ away Boolean @default(false)
+ allowDynamicBooking Boolean? @default(true)
+ metadata Json?
+ verified Boolean? @default(false)
+ role EnumUserRole @default(USER)
+ disableImpersonation Boolean @default(false)
+ eventTypes EventType[]
+ credentials Credential[]
+ destinationCalendar DestinationCalendar?
+ teams Membership[]
+ bookings Booking[]
+ schedules Schedule[]
+ availability Availability[]
+ selectedCalendars SelectedCalendar[]
+ webhooks Webhook[]
+ impersonatedUsers Impersonation[] @relation(name: "impersonatedUser")
+ impersonatedBy Impersonation[] @relation(name: "ImpersonationImpersonatedByUserImpersonatedBy")
+ apiKeys ApiKey[]
+ accounts Account[]
+ sessions Session[]
+ feedback Feedback[]
+ workflows Workflow[]
+
+ @@map(name: "users")
+}
+
+model Team {
+ id Int @id @default(autoincrement())
+ name String?
+ slug String? @unique
+ logo String?
+ bio String?
+ hideBranding Boolean @default(false)
+ eventTypes EventType[]
+ members Membership[]
+}
+
+model Membership {
+ id Int @id @default(autoincrement())
+ accepted Boolean @default(false)
+ role EnumMembershipRole
+ team Team @relation(fields: [teamId], references: [id])
+ teamId Int
+ user User @relation(fields: [userId], references: [id])
+ userId Int
+
+ @@unique([userId, teamId])
+}
+
+model VerificationToken {
+ id Int @id @default(autoincrement())
+ identifier String
+ token String @unique
+ expires DateTime
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+
+ @@unique([identifier, token])
+}
+
+model BookingReference {
+ id Int @id @default(autoincrement())
+ typeField String @map("type")
+ uid String
+ meetingId String?
+ meetingPassword String?
+ meetingUrl String?
+ booking Booking? @relation(fields: [bookingId], references: [id])
+ bookingId Int?
+ externalCalendarId String?
+ deleted Boolean?
+}
+
+model Attendee {
+ id Int @id @default(autoincrement())
+ email String
+ name String
+ timeZone String
+ locale String? @default("en")
+ booking Booking? @relation(fields: [bookingId], references: [id])
+ bookingId Int?
+}
+
+model DailyEventReference {
+ id Int @id @default(autoincrement())
+ dailyurl String @default("dailycallurl")
+ dailytoken String @default("dailytoken")
+ booking Booking? @relation(fields: [bookingId], references: [id])
+ bookingId Int? @unique
+}
+
+model Booking {
+ id Int @id @default(autoincrement())
+ uid String @unique
+ user User? @relation(fields: [userId], references: [id])
+ userId Int?
+ eventType EventType? @relation(fields: [eventTypeId], references: [id])
+ eventTypeId Int?
+ title String
+ description String?
+ customInputs Json?
+ startTime DateTime
+ endTime DateTime
+ location String?
+ createdAt DateTime @default(now())
+ updatedAt DateTime?
+ status EnumBookingStatus @default(ACCEPTED)
+ paid Boolean @default(false)
+ cancellationReason String?
+ rejectionReason String?
+ dynamicEventSlugRef String?
+ dynamicGroupSlugRef String?
+ rescheduled Boolean?
+ fromReschedule String?
+ recurringEventId String?
+ smsReminderNumber String?
+ destinationCalendar DestinationCalendar?
+ references BookingReference[]
+ attendees Attendee[]
+ dailyRef DailyEventReference?
+ payment Payment[]
+ workflowReminders WorkflowReminder[]
+}
+
+model Schedule {
+ id Int @id @default(autoincrement())
+ user User @relation(fields: [userId], references: [id])
+ userId Int
+ name String
+ timeZone String?
+ eventType EventType[]
+ availability Availability[]
+}
+
+model Availability {
+ id Int @id @default(autoincrement())
+ user User? @relation(fields: [userId], references: [id])
+ userId Int?
+ eventType EventType? @relation(fields: [eventTypeId], references: [id])
+ eventTypeId Int?
+ days Int
+ startTime DateTime @db.Time
+ endTime DateTime @db.Time
+ date DateTime? @db.Date
+ schedule Schedule? @relation(fields: [scheduleId], references: [id])
+ scheduleId Int?
+}
+
+model SelectedCalendar {
+ id Int @id @default(autoincrement())
+ user User @relation(fields: [userId], references: [id])
+ userId Int
+ integration String
+ externalId String
+
+ @@unique([userId, integration, externalId])
+}
+
+model EventTypeCustomInput {
+ id Int @id @default(autoincrement())
+ eventType EventType @relation(fields: [eventTypeId], references: [id])
+ eventTypeId Int
+ label String
+ type EnumEventTypeCustomInputType
+ required Boolean
+ placeholder String @default("")
+}
+
+model ResetPasswordRequest {
+ id String @id @default(cuid())
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ email String
+ expires DateTime
+}
+
+model ReminderMail {
+ id Int @id @default(autoincrement())
+ referenceId Int
+ reminderType EnumReminderMailReminderType
+ elapsedMinutes Int
+ createdAt DateTime @default(now())
+}
+
+model Payment {
+ id Int @id @default(autoincrement())
+ uid String @unique
+ type EnumPaymentType
+ booking Booking? @relation(fields: [bookingId], references: [id])
+ bookingId Int?
+ amount Int
+ fee Int
+ currency String
+ success Boolean
+ refunded Boolean
+ data Json
+ externalId String @unique
+}
+
+model Webhook {
+ id String @id @unique @default(cuid())
+ subscriberUrl String
+ payloadTemplate String?
+ createdAt DateTime @default(now())
+ active Boolean @default(true)
+ eventTriggers EnumWebhookEventTriggers[]
+ user User? @relation(fields: [userId], references: [id])
+ userId Int?
+ eventType EventType? @relation(fields: [eventTypeId], references: [id])
+ eventTypeId Int?
+ appField AppModel? @relation(fields: [appId], references: [id])
+ appId String?
+ secret String?
+}
+
+model Impersonation {
+ id Int @id @default(autoincrement())
+ createdAt DateTime @default(now())
+ impersonatedUser User @relation(name: "impersonatedUser", fields: [impersonatedUserId], references: [id])
+ impersonatedUserId Int
+ impersonatedBy User @relation(name: "ImpersonationImpersonatedByUserImpersonatedBy", fields: [impersonatedById], references: [id])
+ impersonatedById Int
+
+ @@map("Impersonations")
+}
+
+model ApiKey {
+ id String @id @unique @default(cuid())
+ note String?
+ createdAt DateTime @default(now())
+ expiresAt DateTime?
+ lastUsedAt DateTime?
+ hashedKey String @unique
+ user User? @relation(fields: [userId], references: [id])
+ userId Int?
+ appField AppModel? @relation(fields: [appId], references: [id])
+ appId String?
+}
+
+model HashedLink {
+ id Int @id @default(autoincrement())
+ link String @unique
+ eventType EventType @relation(fields: [eventTypeId], references: [id])
+ eventTypeId Int @unique
+}
+
+model Account {
+ id String @id @default(cuid())
+ typeField String @map("type")
+ provider String
+ providerAccountId String
+ refreshToken String? @map("refresh_token") @db.Text
+ accessToken String? @map("access_token") @db.Text
+ expiresAt Int? @map("expires_at")
+ tokenType String? @map("token_type")
+ scope String?
+ idToken String? @map("id_token") @db.Text
+ sessionState String? @map("session_state")
+ user User? @relation(fields: [userId], references: [id])
+ userId Int?
+
+ @@unique([provider, providerAccountId])
+}
+
+model Session {
+ id String @id @default(cuid())
+ sessionToken String @unique
+ expires DateTime
+ user User? @relation(fields: [userId], references: [id])
+ userId Int?
+}
+
+model AppModel {
+ id String @id @unique @default(cuid()) @map("slug")
+ dirName String @unique
+ keys Json?
+ categories EnumAppModelCategories[]
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ credentials Credential[]
+ webhook Webhook[]
+ apiKey ApiKey[]
+
+ @@map("App")
+}
+
+model Feedback {
+ id Int @id @default(autoincrement())
+ date DateTime
+ user User @relation(fields: [userId], references: [id])
+ userId Int
+ rating String
+ comment String?
+}
+
+model WorkflowStep {
+ id Int @id @default(autoincrement())
+ stepNumber Int
+ action EnumWorkflowStepAction
+ workflow Workflow @relation(fields: [workflowId], references: [id])
+ workflowId Int
+ sendTo String?
+ reminderBody String?
+ emailSubject String?
+ template EnumWorkflowStepTemplate @default(REMINDER)
+ workflowReminders WorkflowReminder[]
+}
+
+model Workflow {
+ id Int @id @default(autoincrement())
+ name String
+ user User @relation(fields: [userId], references: [id])
+ userId Int
+ trigger EnumWorkflowTrigger
+ time Int?
+ timeUnit EnumWorkflowTimeUnit?
+ steps WorkflowStep[]
+ activeOn WorkflowsOnEventType[]
+}
+
+model WorkflowsOnEventType {
+ id Int @id @default(autoincrement())
+ workflow Workflow @relation(fields: [workflowId], references: [id])
+ workflowId Int
+ eventType EventType @relation(fields: [eventTypeId], references: [id])
+ eventTypeId Int
+
+ @@map("WorkflowsOnEventTypes")
+}
+
+model WorkflowReminder {
+ id Int @id @default(autoincrement())
+ booking Booking? @relation(fields: [bookingUid], references: [id])
+ bookingUid Int?
+ method EnumWorkflowReminderMethod
+ scheduledDate DateTime
+ referenceId String? @unique
+ scheduled Boolean
+ workflowStep WorkflowStep @relation(fields: [workflowStepId], references: [id])
+ workflowStepId Int
+}
+
+enum EnumEventTypePeriodType {
+ UNLIMITED
+ ROLLING
+ RANGE
+}
+
+enum EnumEventTypeSchedulingType {
+ ROUND_ROBIN
+ COLLECTIVE
+}
+
+enum EnumUserIdentityProvider {
+ CAL
+ GOOGLE
+ SAML
+}
+
+enum EnumUserPlan {
+ FREE
+ TRIAL
+ PRO
+}
+
+enum EnumUserRole {
+ USER
+ ADMIN
+}
+
+enum EnumMembershipRole {
+ MEMBER
+ ADMIN
+ OWNER
+}
+
+enum EnumBookingStatus {
+ CANCELLED
+ ACCEPTED
+ REJECTED
+ PENDING
+}
+
+enum EnumEventTypeCustomInputType {
+ TEXT
+ TEXTLONG
+ NUMBER
+ BOOL
+}
+
+enum EnumReminderMailReminderType {
+ PENDING_BOOKING_CONFIRMATION
+}
+
+enum EnumPaymentType {
+ STRIPE
+}
+
+enum EnumWebhookEventTriggers {
+ BOOKING_CREATED
+ BOOKING_RESCHEDULED
+ BOOKING_CANCELLED
+}
+
+enum EnumAppModelCategories {
+ calendar
+ messaging
+ other
+ payment
+ video
+ web3
+}
+
+enum EnumWorkflowStepAction {
+ EMAIL_HOST
+ EMAIL_ATTENDEE
+ SMS_ATTENDEE
+ SMS_NUMBER
+}
+
+enum EnumWorkflowStepTemplate {
+ REMINDER
+ CUSTOM
+}
+
+enum EnumWorkflowTrigger {
+ BEFORE_EVENT
+ EVENT_CANCELLED
+ NEW_EVENT
+}
+
+enum EnumWorkflowTimeUnit {
+ DAY
+ HOUR
+ MINUTE
+}
+
+enum EnumWorkflowReminderMethod {
+ EMAIL
+ SMS
+}
diff --git a/apps/roi-cacl-2/scripts/customSeed.ts b/apps/roi-cacl-2/scripts/customSeed.ts
new file mode 100644
index 0000000..26ccaf4
--- /dev/null
+++ b/apps/roi-cacl-2/scripts/customSeed.ts
@@ -0,0 +1,7 @@
+import { PrismaClient } from "@prisma/client";
+
+export async function customSeed() {
+ const client = new PrismaClient();
+
+ client.$disconnect();
+}
diff --git a/apps/roi-cacl-2/scripts/seed.ts b/apps/roi-cacl-2/scripts/seed.ts
new file mode 100644
index 0000000..04cee65
--- /dev/null
+++ b/apps/roi-cacl-2/scripts/seed.ts
@@ -0,0 +1,25 @@
+import * as dotenv from "dotenv";
+import { PrismaClient } from "@prisma/client";
+import { customSeed } from "./customSeed";
+
+if (require.main === module) {
+ dotenv.config();
+
+ const { BCRYPT_SALT } = process.env;
+
+ if (!BCRYPT_SALT) {
+ throw new Error("BCRYPT_SALT environment variable must be defined");
+ }
+}
+
+async function seed() {
+ console.info("Seeding database...");
+
+ const client = new PrismaClient();
+ void client.$disconnect();
+
+ console.info("Seeding database with custom seed...");
+ customSeed();
+
+ console.info("Seeded database successfully");
+}
diff --git a/apps/roi-cacl-2/src/account/account.controller.ts b/apps/roi-cacl-2/src/account/account.controller.ts
new file mode 100644
index 0000000..eb68f76
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/account.controller.ts
@@ -0,0 +1,12 @@
+import * as common from "@nestjs/common";
+import * as swagger from "@nestjs/swagger";
+import { AccountService } from "./account.service";
+import { AccountControllerBase } from "./base/account.controller.base";
+
+@swagger.ApiTags("accounts")
+@common.Controller("accounts")
+export class AccountController extends AccountControllerBase {
+ constructor(protected readonly service: AccountService) {
+ super(service);
+ }
+}
diff --git a/apps/roi-cacl-2/src/account/account.module.ts b/apps/roi-cacl-2/src/account/account.module.ts
new file mode 100644
index 0000000..bc6b28a
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/account.module.ts
@@ -0,0 +1,13 @@
+import { Module } from "@nestjs/common";
+import { AccountModuleBase } from "./base/account.module.base";
+import { AccountService } from "./account.service";
+import { AccountController } from "./account.controller";
+import { AccountResolver } from "./account.resolver";
+
+@Module({
+ imports: [AccountModuleBase],
+ controllers: [AccountController],
+ providers: [AccountService, AccountResolver],
+ exports: [AccountService],
+})
+export class AccountModule {}
diff --git a/apps/roi-cacl-2/src/account/account.resolver.ts b/apps/roi-cacl-2/src/account/account.resolver.ts
new file mode 100644
index 0000000..c6a50f6
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/account.resolver.ts
@@ -0,0 +1,11 @@
+import * as graphql from "@nestjs/graphql";
+import { AccountResolverBase } from "./base/account.resolver.base";
+import { Account } from "./base/Account";
+import { AccountService } from "./account.service";
+
+@graphql.Resolver(() => Account)
+export class AccountResolver extends AccountResolverBase {
+ constructor(protected readonly service: AccountService) {
+ super(service);
+ }
+}
diff --git a/apps/roi-cacl-2/src/account/account.service.ts b/apps/roi-cacl-2/src/account/account.service.ts
new file mode 100644
index 0000000..3db12e3
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/account.service.ts
@@ -0,0 +1,10 @@
+import { Injectable } from "@nestjs/common";
+import { PrismaService } from "../prisma/prisma.service";
+import { AccountServiceBase } from "./base/account.service.base";
+
+@Injectable()
+export class AccountService extends AccountServiceBase {
+ constructor(protected readonly prisma: PrismaService) {
+ super(prisma);
+ }
+}
diff --git a/apps/roi-cacl-2/src/account/base/Account.ts b/apps/roi-cacl-2/src/account/base/Account.ts
new file mode 100644
index 0000000..8e67b86
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/Account.ts
@@ -0,0 +1,139 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ObjectType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { IsString, IsOptional, IsInt, ValidateNested } from "class-validator";
+import { User } from "../../user/base/User";
+import { Type } from "class-transformer";
+
+@ObjectType()
+class Account {
+ @ApiProperty({
+ required: true,
+ type: String,
+ })
+ @IsString()
+ @Field(() => String)
+ id!: string;
+
+ @ApiProperty({
+ required: true,
+ type: String,
+ })
+ @IsString()
+ @Field(() => String)
+ typeField!: string;
+
+ @ApiProperty({
+ required: true,
+ type: String,
+ })
+ @IsString()
+ @Field(() => String)
+ provider!: string;
+
+ @ApiProperty({
+ required: true,
+ type: String,
+ })
+ @IsString()
+ @Field(() => String)
+ providerAccountId!: string;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ refreshToken!: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ accessToken!: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: Number,
+ })
+ @IsInt()
+ @IsOptional()
+ @Field(() => Number, {
+ nullable: true,
+ })
+ expiresAt!: number | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ tokenType!: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ scope!: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ idToken!: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ sessionState!: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: () => User,
+ })
+ @ValidateNested()
+ @Type(() => User)
+ @IsOptional()
+ user?: User | null;
+}
+
+export { Account as Account };
diff --git a/apps/roi-cacl-2/src/account/base/AccountCountArgs.ts b/apps/roi-cacl-2/src/account/base/AccountCountArgs.ts
new file mode 100644
index 0000000..61b52bf
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/AccountCountArgs.ts
@@ -0,0 +1,28 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ArgsType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { AccountWhereInput } from "./AccountWhereInput";
+import { Type } from "class-transformer";
+
+@ArgsType()
+class AccountCountArgs {
+ @ApiProperty({
+ required: false,
+ type: () => AccountWhereInput,
+ })
+ @Field(() => AccountWhereInput, { nullable: true })
+ @Type(() => AccountWhereInput)
+ where?: AccountWhereInput;
+}
+
+export { AccountCountArgs as AccountCountArgs };
diff --git a/apps/roi-cacl-2/src/account/base/AccountCreateInput.ts b/apps/roi-cacl-2/src/account/base/AccountCreateInput.ts
new file mode 100644
index 0000000..5792b2e
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/AccountCreateInput.ts
@@ -0,0 +1,134 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { InputType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { IsString, IsOptional, IsInt, ValidateNested } from "class-validator";
+import { UserWhereUniqueInput } from "../../user/base/UserWhereUniqueInput";
+import { Type } from "class-transformer";
+
+@InputType()
+class AccountCreateInput {
+ @ApiProperty({
+ required: true,
+ type: String,
+ })
+ @IsString()
+ @Field(() => String)
+ typeField!: string;
+
+ @ApiProperty({
+ required: true,
+ type: String,
+ })
+ @IsString()
+ @Field(() => String)
+ provider!: string;
+
+ @ApiProperty({
+ required: true,
+ type: String,
+ })
+ @IsString()
+ @Field(() => String)
+ providerAccountId!: string;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ refreshToken?: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ accessToken?: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: Number,
+ })
+ @IsInt()
+ @IsOptional()
+ @Field(() => Number, {
+ nullable: true,
+ })
+ expiresAt?: number | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ tokenType?: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ scope?: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ idToken?: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ sessionState?: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: () => UserWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => UserWhereUniqueInput)
+ @IsOptional()
+ @Field(() => UserWhereUniqueInput, {
+ nullable: true,
+ })
+ user?: UserWhereUniqueInput | null;
+}
+
+export { AccountCreateInput as AccountCreateInput };
diff --git a/apps/roi-cacl-2/src/account/base/AccountFindManyArgs.ts b/apps/roi-cacl-2/src/account/base/AccountFindManyArgs.ts
new file mode 100644
index 0000000..3ae903b
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/AccountFindManyArgs.ts
@@ -0,0 +1,62 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ArgsType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { AccountWhereInput } from "./AccountWhereInput";
+import { IsOptional, ValidateNested, IsInt } from "class-validator";
+import { Type } from "class-transformer";
+import { AccountOrderByInput } from "./AccountOrderByInput";
+
+@ArgsType()
+class AccountFindManyArgs {
+ @ApiProperty({
+ required: false,
+ type: () => AccountWhereInput,
+ })
+ @IsOptional()
+ @ValidateNested()
+ @Field(() => AccountWhereInput, { nullable: true })
+ @Type(() => AccountWhereInput)
+ where?: AccountWhereInput;
+
+ @ApiProperty({
+ required: false,
+ type: [AccountOrderByInput],
+ })
+ @IsOptional()
+ @ValidateNested({ each: true })
+ @Field(() => [AccountOrderByInput], { nullable: true })
+ @Type(() => AccountOrderByInput)
+ orderBy?: Array;
+
+ @ApiProperty({
+ required: false,
+ type: Number,
+ })
+ @IsOptional()
+ @IsInt()
+ @Field(() => Number, { nullable: true })
+ @Type(() => Number)
+ skip?: number;
+
+ @ApiProperty({
+ required: false,
+ type: Number,
+ })
+ @IsOptional()
+ @IsInt()
+ @Field(() => Number, { nullable: true })
+ @Type(() => Number)
+ take?: number;
+}
+
+export { AccountFindManyArgs as AccountFindManyArgs };
diff --git a/apps/roi-cacl-2/src/account/base/AccountFindUniqueArgs.ts b/apps/roi-cacl-2/src/account/base/AccountFindUniqueArgs.ts
new file mode 100644
index 0000000..c6e1074
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/AccountFindUniqueArgs.ts
@@ -0,0 +1,30 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ArgsType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { AccountWhereUniqueInput } from "./AccountWhereUniqueInput";
+import { ValidateNested } from "class-validator";
+import { Type } from "class-transformer";
+
+@ArgsType()
+class AccountFindUniqueArgs {
+ @ApiProperty({
+ required: true,
+ type: () => AccountWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => AccountWhereUniqueInput)
+ @Field(() => AccountWhereUniqueInput, { nullable: false })
+ where!: AccountWhereUniqueInput;
+}
+
+export { AccountFindUniqueArgs as AccountFindUniqueArgs };
diff --git a/apps/roi-cacl-2/src/account/base/AccountListRelationFilter.ts b/apps/roi-cacl-2/src/account/base/AccountListRelationFilter.ts
new file mode 100644
index 0000000..cf19aa3
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/AccountListRelationFilter.ts
@@ -0,0 +1,56 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { InputType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { AccountWhereInput } from "./AccountWhereInput";
+import { ValidateNested, IsOptional } from "class-validator";
+import { Type } from "class-transformer";
+
+@InputType()
+class AccountListRelationFilter {
+ @ApiProperty({
+ required: false,
+ type: () => AccountWhereInput,
+ })
+ @ValidateNested()
+ @Type(() => AccountWhereInput)
+ @IsOptional()
+ @Field(() => AccountWhereInput, {
+ nullable: true,
+ })
+ every?: AccountWhereInput;
+
+ @ApiProperty({
+ required: false,
+ type: () => AccountWhereInput,
+ })
+ @ValidateNested()
+ @Type(() => AccountWhereInput)
+ @IsOptional()
+ @Field(() => AccountWhereInput, {
+ nullable: true,
+ })
+ some?: AccountWhereInput;
+
+ @ApiProperty({
+ required: false,
+ type: () => AccountWhereInput,
+ })
+ @ValidateNested()
+ @Type(() => AccountWhereInput)
+ @IsOptional()
+ @Field(() => AccountWhereInput, {
+ nullable: true,
+ })
+ none?: AccountWhereInput;
+}
+export { AccountListRelationFilter as AccountListRelationFilter };
diff --git a/apps/roi-cacl-2/src/account/base/AccountOrderByInput.ts b/apps/roi-cacl-2/src/account/base/AccountOrderByInput.ts
new file mode 100644
index 0000000..0a7db12
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/AccountOrderByInput.ts
@@ -0,0 +1,155 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { InputType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { IsOptional, IsEnum } from "class-validator";
+import { SortOrder } from "../../util/SortOrder";
+
+@InputType({
+ isAbstract: true,
+ description: undefined,
+})
+class AccountOrderByInput {
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ id?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ typeField?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ provider?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ providerAccountId?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ refreshToken?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ accessToken?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ expiresAt?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ tokenType?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ scope?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ idToken?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ sessionState?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ userId?: SortOrder;
+}
+
+export { AccountOrderByInput as AccountOrderByInput };
diff --git a/apps/roi-cacl-2/src/account/base/AccountUpdateInput.ts b/apps/roi-cacl-2/src/account/base/AccountUpdateInput.ts
new file mode 100644
index 0000000..edd0e4b
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/AccountUpdateInput.ts
@@ -0,0 +1,143 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { InputType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { IsString, IsOptional, IsInt, ValidateNested } from "class-validator";
+import { UserWhereUniqueInput } from "../../user/base/UserWhereUniqueInput";
+import { Type } from "class-transformer";
+
+@InputType()
+class AccountUpdateInput {
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ typeField?: string;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ provider?: string;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ providerAccountId?: string;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ refreshToken?: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ accessToken?: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: Number,
+ })
+ @IsInt()
+ @IsOptional()
+ @Field(() => Number, {
+ nullable: true,
+ })
+ expiresAt?: number | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ tokenType?: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ scope?: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ idToken?: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ sessionState?: string | null;
+
+ @ApiProperty({
+ required: false,
+ type: () => UserWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => UserWhereUniqueInput)
+ @IsOptional()
+ @Field(() => UserWhereUniqueInput, {
+ nullable: true,
+ })
+ user?: UserWhereUniqueInput | null;
+}
+
+export { AccountUpdateInput as AccountUpdateInput };
diff --git a/apps/roi-cacl-2/src/account/base/AccountWhereInput.ts b/apps/roi-cacl-2/src/account/base/AccountWhereInput.ts
new file mode 100644
index 0000000..47723ba
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/AccountWhereInput.ts
@@ -0,0 +1,157 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { InputType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { StringFilter } from "../../util/StringFilter";
+import { Type } from "class-transformer";
+import { IsOptional, ValidateNested } from "class-validator";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { IntNullableFilter } from "../../util/IntNullableFilter";
+import { UserWhereUniqueInput } from "../../user/base/UserWhereUniqueInput";
+
+@InputType()
+class AccountWhereInput {
+ @ApiProperty({
+ required: false,
+ type: StringFilter,
+ })
+ @Type(() => StringFilter)
+ @IsOptional()
+ @Field(() => StringFilter, {
+ nullable: true,
+ })
+ id?: StringFilter;
+
+ @ApiProperty({
+ required: false,
+ type: StringFilter,
+ })
+ @Type(() => StringFilter)
+ @IsOptional()
+ @Field(() => StringFilter, {
+ nullable: true,
+ })
+ typeField?: StringFilter;
+
+ @ApiProperty({
+ required: false,
+ type: StringFilter,
+ })
+ @Type(() => StringFilter)
+ @IsOptional()
+ @Field(() => StringFilter, {
+ nullable: true,
+ })
+ provider?: StringFilter;
+
+ @ApiProperty({
+ required: false,
+ type: StringFilter,
+ })
+ @Type(() => StringFilter)
+ @IsOptional()
+ @Field(() => StringFilter, {
+ nullable: true,
+ })
+ providerAccountId?: StringFilter;
+
+ @ApiProperty({
+ required: false,
+ type: StringNullableFilter,
+ })
+ @Type(() => StringNullableFilter)
+ @IsOptional()
+ @Field(() => StringNullableFilter, {
+ nullable: true,
+ })
+ refreshToken?: StringNullableFilter;
+
+ @ApiProperty({
+ required: false,
+ type: StringNullableFilter,
+ })
+ @Type(() => StringNullableFilter)
+ @IsOptional()
+ @Field(() => StringNullableFilter, {
+ nullable: true,
+ })
+ accessToken?: StringNullableFilter;
+
+ @ApiProperty({
+ required: false,
+ type: IntNullableFilter,
+ })
+ @Type(() => IntNullableFilter)
+ @IsOptional()
+ @Field(() => IntNullableFilter, {
+ nullable: true,
+ })
+ expiresAt?: IntNullableFilter;
+
+ @ApiProperty({
+ required: false,
+ type: StringNullableFilter,
+ })
+ @Type(() => StringNullableFilter)
+ @IsOptional()
+ @Field(() => StringNullableFilter, {
+ nullable: true,
+ })
+ tokenType?: StringNullableFilter;
+
+ @ApiProperty({
+ required: false,
+ type: StringNullableFilter,
+ })
+ @Type(() => StringNullableFilter)
+ @IsOptional()
+ @Field(() => StringNullableFilter, {
+ nullable: true,
+ })
+ scope?: StringNullableFilter;
+
+ @ApiProperty({
+ required: false,
+ type: StringNullableFilter,
+ })
+ @Type(() => StringNullableFilter)
+ @IsOptional()
+ @Field(() => StringNullableFilter, {
+ nullable: true,
+ })
+ idToken?: StringNullableFilter;
+
+ @ApiProperty({
+ required: false,
+ type: StringNullableFilter,
+ })
+ @Type(() => StringNullableFilter)
+ @IsOptional()
+ @Field(() => StringNullableFilter, {
+ nullable: true,
+ })
+ sessionState?: StringNullableFilter;
+
+ @ApiProperty({
+ required: false,
+ type: () => UserWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => UserWhereUniqueInput)
+ @IsOptional()
+ @Field(() => UserWhereUniqueInput, {
+ nullable: true,
+ })
+ user?: UserWhereUniqueInput;
+}
+
+export { AccountWhereInput as AccountWhereInput };
diff --git a/apps/roi-cacl-2/src/account/base/AccountWhereUniqueInput.ts b/apps/roi-cacl-2/src/account/base/AccountWhereUniqueInput.ts
new file mode 100644
index 0000000..b62d580
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/AccountWhereUniqueInput.ts
@@ -0,0 +1,27 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { InputType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { IsString } from "class-validator";
+
+@InputType()
+class AccountWhereUniqueInput {
+ @ApiProperty({
+ required: true,
+ type: String,
+ })
+ @IsString()
+ @Field(() => String)
+ id!: string;
+}
+
+export { AccountWhereUniqueInput as AccountWhereUniqueInput };
diff --git a/apps/roi-cacl-2/src/account/base/CreateAccountArgs.ts b/apps/roi-cacl-2/src/account/base/CreateAccountArgs.ts
new file mode 100644
index 0000000..6a7791f
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/CreateAccountArgs.ts
@@ -0,0 +1,30 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ArgsType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { AccountCreateInput } from "./AccountCreateInput";
+import { ValidateNested } from "class-validator";
+import { Type } from "class-transformer";
+
+@ArgsType()
+class CreateAccountArgs {
+ @ApiProperty({
+ required: true,
+ type: () => AccountCreateInput,
+ })
+ @ValidateNested()
+ @Type(() => AccountCreateInput)
+ @Field(() => AccountCreateInput, { nullable: false })
+ data!: AccountCreateInput;
+}
+
+export { CreateAccountArgs as CreateAccountArgs };
diff --git a/apps/roi-cacl-2/src/account/base/DeleteAccountArgs.ts b/apps/roi-cacl-2/src/account/base/DeleteAccountArgs.ts
new file mode 100644
index 0000000..a80866d
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/DeleteAccountArgs.ts
@@ -0,0 +1,30 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ArgsType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { AccountWhereUniqueInput } from "./AccountWhereUniqueInput";
+import { ValidateNested } from "class-validator";
+import { Type } from "class-transformer";
+
+@ArgsType()
+class DeleteAccountArgs {
+ @ApiProperty({
+ required: true,
+ type: () => AccountWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => AccountWhereUniqueInput)
+ @Field(() => AccountWhereUniqueInput, { nullable: false })
+ where!: AccountWhereUniqueInput;
+}
+
+export { DeleteAccountArgs as DeleteAccountArgs };
diff --git a/apps/roi-cacl-2/src/account/base/UpdateAccountArgs.ts b/apps/roi-cacl-2/src/account/base/UpdateAccountArgs.ts
new file mode 100644
index 0000000..f13d30c
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/UpdateAccountArgs.ts
@@ -0,0 +1,40 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ArgsType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { AccountWhereUniqueInput } from "./AccountWhereUniqueInput";
+import { ValidateNested } from "class-validator";
+import { Type } from "class-transformer";
+import { AccountUpdateInput } from "./AccountUpdateInput";
+
+@ArgsType()
+class UpdateAccountArgs {
+ @ApiProperty({
+ required: true,
+ type: () => AccountWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => AccountWhereUniqueInput)
+ @Field(() => AccountWhereUniqueInput, { nullable: false })
+ where!: AccountWhereUniqueInput;
+
+ @ApiProperty({
+ required: true,
+ type: () => AccountUpdateInput,
+ })
+ @ValidateNested()
+ @Type(() => AccountUpdateInput)
+ @Field(() => AccountUpdateInput, { nullable: false })
+ data!: AccountUpdateInput;
+}
+
+export { UpdateAccountArgs as UpdateAccountArgs };
diff --git a/apps/roi-cacl-2/src/account/base/account.controller.base.spec.ts b/apps/roi-cacl-2/src/account/base/account.controller.base.spec.ts
new file mode 100644
index 0000000..cb3efe6
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/account.controller.base.spec.ts
@@ -0,0 +1,204 @@
+import { Test } from "@nestjs/testing";
+import {
+ INestApplication,
+ HttpStatus,
+ ExecutionContext,
+ CallHandler,
+} from "@nestjs/common";
+import request from "supertest";
+import { ACGuard } from "nest-access-control";
+import { DefaultAuthGuard } from "../../auth/defaultAuth.guard";
+import { ACLModule } from "../../auth/acl.module";
+import { AclFilterResponseInterceptor } from "../../interceptors/aclFilterResponse.interceptor";
+import { AclValidateRequestInterceptor } from "../../interceptors/aclValidateRequest.interceptor";
+import { map } from "rxjs";
+import { AccountController } from "../account.controller";
+import { AccountService } from "../account.service";
+
+const nonExistingId = "nonExistingId";
+const existingId = "existingId";
+const CREATE_INPUT = {
+ id: "exampleId",
+ typeField: "exampleTypeField",
+ provider: "exampleProvider",
+ providerAccountId: "exampleProviderAccountId",
+ refreshToken: "exampleRefreshToken",
+ accessToken: "exampleAccessToken",
+ expiresAt: 42,
+ tokenType: "exampleTokenType",
+ scope: "exampleScope",
+ idToken: "exampleIdToken",
+ sessionState: "exampleSessionState",
+};
+const CREATE_RESULT = {
+ id: "exampleId",
+ typeField: "exampleTypeField",
+ provider: "exampleProvider",
+ providerAccountId: "exampleProviderAccountId",
+ refreshToken: "exampleRefreshToken",
+ accessToken: "exampleAccessToken",
+ expiresAt: 42,
+ tokenType: "exampleTokenType",
+ scope: "exampleScope",
+ idToken: "exampleIdToken",
+ sessionState: "exampleSessionState",
+};
+const FIND_MANY_RESULT = [
+ {
+ id: "exampleId",
+ typeField: "exampleTypeField",
+ provider: "exampleProvider",
+ providerAccountId: "exampleProviderAccountId",
+ refreshToken: "exampleRefreshToken",
+ accessToken: "exampleAccessToken",
+ expiresAt: 42,
+ tokenType: "exampleTokenType",
+ scope: "exampleScope",
+ idToken: "exampleIdToken",
+ sessionState: "exampleSessionState",
+ },
+];
+const FIND_ONE_RESULT = {
+ id: "exampleId",
+ typeField: "exampleTypeField",
+ provider: "exampleProvider",
+ providerAccountId: "exampleProviderAccountId",
+ refreshToken: "exampleRefreshToken",
+ accessToken: "exampleAccessToken",
+ expiresAt: 42,
+ tokenType: "exampleTokenType",
+ scope: "exampleScope",
+ idToken: "exampleIdToken",
+ sessionState: "exampleSessionState",
+};
+
+const service = {
+ createAccount() {
+ return CREATE_RESULT;
+ },
+ accounts: () => FIND_MANY_RESULT,
+ account: ({ where }: { where: { id: string } }) => {
+ switch (where.id) {
+ case existingId:
+ return FIND_ONE_RESULT;
+ case nonExistingId:
+ return null;
+ }
+ },
+};
+
+const basicAuthGuard = {
+ canActivate: (context: ExecutionContext) => {
+ const argumentHost = context.switchToHttp();
+ const request = argumentHost.getRequest();
+ request.user = {
+ roles: ["user"],
+ };
+ return true;
+ },
+};
+
+const acGuard = {
+ canActivate: () => {
+ return true;
+ },
+};
+
+const aclFilterResponseInterceptor = {
+ intercept: (context: ExecutionContext, next: CallHandler) => {
+ return next.handle().pipe(
+ map((data) => {
+ return data;
+ })
+ );
+ },
+};
+const aclValidateRequestInterceptor = {
+ intercept: (context: ExecutionContext, next: CallHandler) => {
+ return next.handle();
+ },
+};
+
+describe("Account", () => {
+ let app: INestApplication;
+
+ beforeAll(async () => {
+ const moduleRef = await Test.createTestingModule({
+ providers: [
+ {
+ provide: AccountService,
+ useValue: service,
+ },
+ ],
+ controllers: [AccountController],
+ imports: [ACLModule],
+ })
+ .overrideGuard(DefaultAuthGuard)
+ .useValue(basicAuthGuard)
+ .overrideGuard(ACGuard)
+ .useValue(acGuard)
+ .overrideInterceptor(AclFilterResponseInterceptor)
+ .useValue(aclFilterResponseInterceptor)
+ .overrideInterceptor(AclValidateRequestInterceptor)
+ .useValue(aclValidateRequestInterceptor)
+ .compile();
+
+ app = moduleRef.createNestApplication();
+ await app.init();
+ });
+
+ test("POST /accounts", async () => {
+ await request(app.getHttpServer())
+ .post("/accounts")
+ .send(CREATE_INPUT)
+ .expect(HttpStatus.CREATED)
+ .expect(CREATE_RESULT);
+ });
+
+ test("GET /accounts", async () => {
+ await request(app.getHttpServer())
+ .get("/accounts")
+ .expect(HttpStatus.OK)
+ .expect([FIND_MANY_RESULT[0]]);
+ });
+
+ test("GET /accounts/:id non existing", async () => {
+ await request(app.getHttpServer())
+ .get(`${"/accounts"}/${nonExistingId}`)
+ .expect(HttpStatus.NOT_FOUND)
+ .expect({
+ statusCode: HttpStatus.NOT_FOUND,
+ message: `No resource was found for {"${"id"}":"${nonExistingId}"}`,
+ error: "Not Found",
+ });
+ });
+
+ test("GET /accounts/:id existing", async () => {
+ await request(app.getHttpServer())
+ .get(`${"/accounts"}/${existingId}`)
+ .expect(HttpStatus.OK)
+ .expect(FIND_ONE_RESULT);
+ });
+
+ test("POST /accounts existing resource", async () => {
+ const agent = request(app.getHttpServer());
+ await agent
+ .post("/accounts")
+ .send(CREATE_INPUT)
+ .expect(HttpStatus.CREATED)
+ .expect(CREATE_RESULT)
+ .then(function () {
+ agent
+ .post("/accounts")
+ .send(CREATE_INPUT)
+ .expect(HttpStatus.CONFLICT)
+ .expect({
+ statusCode: HttpStatus.CONFLICT,
+ });
+ });
+ });
+
+ afterAll(async () => {
+ await app.close();
+ });
+});
diff --git a/apps/roi-cacl-2/src/account/base/account.controller.base.ts b/apps/roi-cacl-2/src/account/base/account.controller.base.ts
new file mode 100644
index 0000000..2f2bd05
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/account.controller.base.ts
@@ -0,0 +1,217 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import * as common from "@nestjs/common";
+import * as swagger from "@nestjs/swagger";
+import { isRecordNotFoundError } from "../../prisma.util";
+import * as errors from "../../errors";
+import { Request } from "express";
+import { plainToClass } from "class-transformer";
+import { ApiNestedQuery } from "../../decorators/api-nested-query.decorator";
+import { AccountService } from "../account.service";
+import { AccountCreateInput } from "./AccountCreateInput";
+import { Account } from "./Account";
+import { AccountFindManyArgs } from "./AccountFindManyArgs";
+import { AccountWhereUniqueInput } from "./AccountWhereUniqueInput";
+import { AccountUpdateInput } from "./AccountUpdateInput";
+
+export class AccountControllerBase {
+ constructor(protected readonly service: AccountService) {}
+ @common.Post()
+ @swagger.ApiCreatedResponse({ type: Account })
+ async createAccount(
+ @common.Body() data: AccountCreateInput
+ ): Promise {
+ return await this.service.createAccount({
+ data: {
+ ...data,
+
+ user: data.user
+ ? {
+ connect: data.user,
+ }
+ : undefined,
+ },
+ select: {
+ id: true,
+ typeField: true,
+ provider: true,
+ providerAccountId: true,
+ refreshToken: true,
+ accessToken: true,
+ expiresAt: true,
+ tokenType: true,
+ scope: true,
+ idToken: true,
+ sessionState: true,
+
+ user: {
+ select: {
+ id: true,
+ },
+ },
+ },
+ });
+ }
+
+ @common.Get()
+ @swagger.ApiOkResponse({ type: [Account] })
+ @ApiNestedQuery(AccountFindManyArgs)
+ async accounts(@common.Req() request: Request): Promise {
+ const args = plainToClass(AccountFindManyArgs, request.query);
+ return this.service.accounts({
+ ...args,
+ select: {
+ id: true,
+ typeField: true,
+ provider: true,
+ providerAccountId: true,
+ refreshToken: true,
+ accessToken: true,
+ expiresAt: true,
+ tokenType: true,
+ scope: true,
+ idToken: true,
+ sessionState: true,
+
+ user: {
+ select: {
+ id: true,
+ },
+ },
+ },
+ });
+ }
+
+ @common.Get("/:id")
+ @swagger.ApiOkResponse({ type: Account })
+ @swagger.ApiNotFoundResponse({ type: errors.NotFoundException })
+ async account(
+ @common.Param() params: AccountWhereUniqueInput
+ ): Promise {
+ const result = await this.service.account({
+ where: params,
+ select: {
+ id: true,
+ typeField: true,
+ provider: true,
+ providerAccountId: true,
+ refreshToken: true,
+ accessToken: true,
+ expiresAt: true,
+ tokenType: true,
+ scope: true,
+ idToken: true,
+ sessionState: true,
+
+ user: {
+ select: {
+ id: true,
+ },
+ },
+ },
+ });
+ if (result === null) {
+ throw new errors.NotFoundException(
+ `No resource was found for ${JSON.stringify(params)}`
+ );
+ }
+ return result;
+ }
+
+ @common.Patch("/:id")
+ @swagger.ApiOkResponse({ type: Account })
+ @swagger.ApiNotFoundResponse({ type: errors.NotFoundException })
+ async updateAccount(
+ @common.Param() params: AccountWhereUniqueInput,
+ @common.Body() data: AccountUpdateInput
+ ): Promise {
+ try {
+ return await this.service.updateAccount({
+ where: params,
+ data: {
+ ...data,
+
+ user: data.user
+ ? {
+ connect: data.user,
+ }
+ : undefined,
+ },
+ select: {
+ id: true,
+ typeField: true,
+ provider: true,
+ providerAccountId: true,
+ refreshToken: true,
+ accessToken: true,
+ expiresAt: true,
+ tokenType: true,
+ scope: true,
+ idToken: true,
+ sessionState: true,
+
+ user: {
+ select: {
+ id: true,
+ },
+ },
+ },
+ });
+ } catch (error) {
+ if (isRecordNotFoundError(error)) {
+ throw new errors.NotFoundException(
+ `No resource was found for ${JSON.stringify(params)}`
+ );
+ }
+ throw error;
+ }
+ }
+
+ @common.Delete("/:id")
+ @swagger.ApiOkResponse({ type: Account })
+ @swagger.ApiNotFoundResponse({ type: errors.NotFoundException })
+ async deleteAccount(
+ @common.Param() params: AccountWhereUniqueInput
+ ): Promise {
+ try {
+ return await this.service.deleteAccount({
+ where: params,
+ select: {
+ id: true,
+ typeField: true,
+ provider: true,
+ providerAccountId: true,
+ refreshToken: true,
+ accessToken: true,
+ expiresAt: true,
+ tokenType: true,
+ scope: true,
+ idToken: true,
+ sessionState: true,
+
+ user: {
+ select: {
+ id: true,
+ },
+ },
+ },
+ });
+ } catch (error) {
+ if (isRecordNotFoundError(error)) {
+ throw new errors.NotFoundException(
+ `No resource was found for ${JSON.stringify(params)}`
+ );
+ }
+ throw error;
+ }
+ }
+}
diff --git a/apps/roi-cacl-2/src/account/base/account.module.base.ts b/apps/roi-cacl-2/src/account/base/account.module.base.ts
new file mode 100644
index 0000000..39ee020
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/account.module.base.ts
@@ -0,0 +1,18 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { Module } from "@nestjs/common";
+
+@Module({
+ imports: [],
+ exports: [],
+})
+export class AccountModuleBase {}
diff --git a/apps/roi-cacl-2/src/account/base/account.resolver.base.ts b/apps/roi-cacl-2/src/account/base/account.resolver.base.ts
new file mode 100644
index 0000000..67a52eb
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/account.resolver.base.ts
@@ -0,0 +1,129 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import * as graphql from "@nestjs/graphql";
+import { GraphQLError } from "graphql";
+import { isRecordNotFoundError } from "../../prisma.util";
+import { MetaQueryPayload } from "../../util/MetaQueryPayload";
+import { Account } from "./Account";
+import { AccountCountArgs } from "./AccountCountArgs";
+import { AccountFindManyArgs } from "./AccountFindManyArgs";
+import { AccountFindUniqueArgs } from "./AccountFindUniqueArgs";
+import { CreateAccountArgs } from "./CreateAccountArgs";
+import { UpdateAccountArgs } from "./UpdateAccountArgs";
+import { DeleteAccountArgs } from "./DeleteAccountArgs";
+import { User } from "../../user/base/User";
+import { AccountService } from "../account.service";
+@graphql.Resolver(() => Account)
+export class AccountResolverBase {
+ constructor(protected readonly service: AccountService) {}
+
+ async _accountsMeta(
+ @graphql.Args() args: AccountCountArgs
+ ): Promise {
+ const result = await this.service.count(args);
+ return {
+ count: result,
+ };
+ }
+
+ @graphql.Query(() => [Account])
+ async accounts(
+ @graphql.Args() args: AccountFindManyArgs
+ ): Promise {
+ return this.service.accounts(args);
+ }
+
+ @graphql.Query(() => Account, { nullable: true })
+ async account(
+ @graphql.Args() args: AccountFindUniqueArgs
+ ): Promise {
+ const result = await this.service.account(args);
+ if (result === null) {
+ return null;
+ }
+ return result;
+ }
+
+ @graphql.Mutation(() => Account)
+ async createAccount(
+ @graphql.Args() args: CreateAccountArgs
+ ): Promise {
+ return await this.service.createAccount({
+ ...args,
+ data: {
+ ...args.data,
+
+ user: args.data.user
+ ? {
+ connect: args.data.user,
+ }
+ : undefined,
+ },
+ });
+ }
+
+ @graphql.Mutation(() => Account)
+ async updateAccount(
+ @graphql.Args() args: UpdateAccountArgs
+ ): Promise {
+ try {
+ return await this.service.updateAccount({
+ ...args,
+ data: {
+ ...args.data,
+
+ user: args.data.user
+ ? {
+ connect: args.data.user,
+ }
+ : undefined,
+ },
+ });
+ } catch (error) {
+ if (isRecordNotFoundError(error)) {
+ throw new GraphQLError(
+ `No resource was found for ${JSON.stringify(args.where)}`
+ );
+ }
+ throw error;
+ }
+ }
+
+ @graphql.Mutation(() => Account)
+ async deleteAccount(
+ @graphql.Args() args: DeleteAccountArgs
+ ): Promise {
+ try {
+ return await this.service.deleteAccount(args);
+ } catch (error) {
+ if (isRecordNotFoundError(error)) {
+ throw new GraphQLError(
+ `No resource was found for ${JSON.stringify(args.where)}`
+ );
+ }
+ throw error;
+ }
+ }
+
+ @graphql.ResolveField(() => User, {
+ nullable: true,
+ name: "user",
+ })
+ async getUser(@graphql.Parent() parent: Account): Promise {
+ const result = await this.service.getUser(parent.id);
+
+ if (!result) {
+ return null;
+ }
+ return result;
+ }
+}
diff --git a/apps/roi-cacl-2/src/account/base/account.service.base.ts b/apps/roi-cacl-2/src/account/base/account.service.base.ts
new file mode 100644
index 0000000..38f90df
--- /dev/null
+++ b/apps/roi-cacl-2/src/account/base/account.service.base.ts
@@ -0,0 +1,59 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { PrismaService } from "../../prisma/prisma.service";
+import {
+ Prisma,
+ Account as PrismaAccount,
+ User as PrismaUser,
+} from "@prisma/client";
+
+export class AccountServiceBase {
+ constructor(protected readonly prisma: PrismaService) {}
+
+ async count(args: Omit): Promise {
+ return this.prisma.account.count(args);
+ }
+
+ async accounts(
+ args: Prisma.SelectSubset
+ ): Promise {
+ return this.prisma.account.findMany(args);
+ }
+ async account(
+ args: Prisma.SelectSubset
+ ): Promise {
+ return this.prisma.account.findUnique(args);
+ }
+ async createAccount(
+ args: Prisma.SelectSubset
+ ): Promise {
+ return this.prisma.account.create(args);
+ }
+ async updateAccount(
+ args: Prisma.SelectSubset
+ ): Promise {
+ return this.prisma.account.update(args);
+ }
+ async deleteAccount(
+ args: Prisma.SelectSubset
+ ): Promise {
+ return this.prisma.account.delete(args);
+ }
+
+ async getUser(parentId: string): Promise {
+ return this.prisma.account
+ .findUnique({
+ where: { id: parentId },
+ })
+ .user();
+ }
+}
diff --git a/apps/roi-cacl-2/src/apiKey/apiKey.controller.ts b/apps/roi-cacl-2/src/apiKey/apiKey.controller.ts
new file mode 100644
index 0000000..06122a6
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/apiKey.controller.ts
@@ -0,0 +1,12 @@
+import * as common from "@nestjs/common";
+import * as swagger from "@nestjs/swagger";
+import { ApiKeyService } from "./apiKey.service";
+import { ApiKeyControllerBase } from "./base/apiKey.controller.base";
+
+@swagger.ApiTags("apiKeys")
+@common.Controller("apiKeys")
+export class ApiKeyController extends ApiKeyControllerBase {
+ constructor(protected readonly service: ApiKeyService) {
+ super(service);
+ }
+}
diff --git a/apps/roi-cacl-2/src/apiKey/apiKey.module.ts b/apps/roi-cacl-2/src/apiKey/apiKey.module.ts
new file mode 100644
index 0000000..f536303
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/apiKey.module.ts
@@ -0,0 +1,13 @@
+import { Module } from "@nestjs/common";
+import { ApiKeyModuleBase } from "./base/apiKey.module.base";
+import { ApiKeyService } from "./apiKey.service";
+import { ApiKeyController } from "./apiKey.controller";
+import { ApiKeyResolver } from "./apiKey.resolver";
+
+@Module({
+ imports: [ApiKeyModuleBase],
+ controllers: [ApiKeyController],
+ providers: [ApiKeyService, ApiKeyResolver],
+ exports: [ApiKeyService],
+})
+export class ApiKeyModule {}
diff --git a/apps/roi-cacl-2/src/apiKey/apiKey.resolver.ts b/apps/roi-cacl-2/src/apiKey/apiKey.resolver.ts
new file mode 100644
index 0000000..555ce79
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/apiKey.resolver.ts
@@ -0,0 +1,11 @@
+import * as graphql from "@nestjs/graphql";
+import { ApiKeyResolverBase } from "./base/apiKey.resolver.base";
+import { ApiKey } from "./base/ApiKey";
+import { ApiKeyService } from "./apiKey.service";
+
+@graphql.Resolver(() => ApiKey)
+export class ApiKeyResolver extends ApiKeyResolverBase {
+ constructor(protected readonly service: ApiKeyService) {
+ super(service);
+ }
+}
diff --git a/apps/roi-cacl-2/src/apiKey/apiKey.service.ts b/apps/roi-cacl-2/src/apiKey/apiKey.service.ts
new file mode 100644
index 0000000..383c63c
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/apiKey.service.ts
@@ -0,0 +1,10 @@
+import { Injectable } from "@nestjs/common";
+import { PrismaService } from "../prisma/prisma.service";
+import { ApiKeyServiceBase } from "./base/apiKey.service.base";
+
+@Injectable()
+export class ApiKeyService extends ApiKeyServiceBase {
+ constructor(protected readonly prisma: PrismaService) {
+ super(prisma);
+ }
+}
diff --git a/apps/roi-cacl-2/src/apiKey/base/ApiKey.ts b/apps/roi-cacl-2/src/apiKey/base/ApiKey.ts
new file mode 100644
index 0000000..8b2ee74
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/ApiKey.ts
@@ -0,0 +1,97 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ObjectType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { IsString, IsOptional, IsDate, ValidateNested } from "class-validator";
+import { Type } from "class-transformer";
+import { User } from "../../user/base/User";
+import { AppModel } from "../../appModel/base/AppModel";
+
+@ObjectType()
+class ApiKey {
+ @ApiProperty({
+ required: true,
+ type: String,
+ })
+ @IsString()
+ @Field(() => String)
+ id!: string;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ note!: string | null;
+
+ @ApiProperty({
+ required: true,
+ })
+ @IsDate()
+ @Type(() => Date)
+ @Field(() => Date)
+ createdAt!: Date;
+
+ @ApiProperty({
+ required: false,
+ })
+ @IsDate()
+ @Type(() => Date)
+ @IsOptional()
+ @Field(() => Date, {
+ nullable: true,
+ })
+ expiresAt!: Date | null;
+
+ @ApiProperty({
+ required: false,
+ })
+ @IsDate()
+ @Type(() => Date)
+ @IsOptional()
+ @Field(() => Date, {
+ nullable: true,
+ })
+ lastUsedAt!: Date | null;
+
+ @ApiProperty({
+ required: true,
+ type: String,
+ })
+ @IsString()
+ @Field(() => String)
+ hashedKey!: string;
+
+ @ApiProperty({
+ required: false,
+ type: () => User,
+ })
+ @ValidateNested()
+ @Type(() => User)
+ @IsOptional()
+ user?: User | null;
+
+ @ApiProperty({
+ required: false,
+ type: () => AppModel,
+ })
+ @ValidateNested()
+ @Type(() => AppModel)
+ @IsOptional()
+ appField?: AppModel | null;
+}
+
+export { ApiKey as ApiKey };
diff --git a/apps/roi-cacl-2/src/apiKey/base/ApiKeyCountArgs.ts b/apps/roi-cacl-2/src/apiKey/base/ApiKeyCountArgs.ts
new file mode 100644
index 0000000..34fe246
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/ApiKeyCountArgs.ts
@@ -0,0 +1,28 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ArgsType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { ApiKeyWhereInput } from "./ApiKeyWhereInput";
+import { Type } from "class-transformer";
+
+@ArgsType()
+class ApiKeyCountArgs {
+ @ApiProperty({
+ required: false,
+ type: () => ApiKeyWhereInput,
+ })
+ @Field(() => ApiKeyWhereInput, { nullable: true })
+ @Type(() => ApiKeyWhereInput)
+ where?: ApiKeyWhereInput;
+}
+
+export { ApiKeyCountArgs as ApiKeyCountArgs };
diff --git a/apps/roi-cacl-2/src/apiKey/base/ApiKeyCreateInput.ts b/apps/roi-cacl-2/src/apiKey/base/ApiKeyCreateInput.ts
new file mode 100644
index 0000000..be3e3fd
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/ApiKeyCreateInput.ts
@@ -0,0 +1,87 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { InputType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { IsString, IsOptional, IsDate, ValidateNested } from "class-validator";
+import { Type } from "class-transformer";
+import { UserWhereUniqueInput } from "../../user/base/UserWhereUniqueInput";
+import { AppModelWhereUniqueInput } from "../../appModel/base/AppModelWhereUniqueInput";
+
+@InputType()
+class ApiKeyCreateInput {
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ note?: string | null;
+
+ @ApiProperty({
+ required: false,
+ })
+ @IsDate()
+ @Type(() => Date)
+ @IsOptional()
+ @Field(() => Date, {
+ nullable: true,
+ })
+ expiresAt?: Date | null;
+
+ @ApiProperty({
+ required: false,
+ })
+ @IsDate()
+ @Type(() => Date)
+ @IsOptional()
+ @Field(() => Date, {
+ nullable: true,
+ })
+ lastUsedAt?: Date | null;
+
+ @ApiProperty({
+ required: true,
+ type: String,
+ })
+ @IsString()
+ @Field(() => String)
+ hashedKey!: string;
+
+ @ApiProperty({
+ required: false,
+ type: () => UserWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => UserWhereUniqueInput)
+ @IsOptional()
+ @Field(() => UserWhereUniqueInput, {
+ nullable: true,
+ })
+ user?: UserWhereUniqueInput | null;
+
+ @ApiProperty({
+ required: false,
+ type: () => AppModelWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => AppModelWhereUniqueInput)
+ @IsOptional()
+ @Field(() => AppModelWhereUniqueInput, {
+ nullable: true,
+ })
+ appField?: AppModelWhereUniqueInput | null;
+}
+
+export { ApiKeyCreateInput as ApiKeyCreateInput };
diff --git a/apps/roi-cacl-2/src/apiKey/base/ApiKeyFindManyArgs.ts b/apps/roi-cacl-2/src/apiKey/base/ApiKeyFindManyArgs.ts
new file mode 100644
index 0000000..23e7508
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/ApiKeyFindManyArgs.ts
@@ -0,0 +1,62 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ArgsType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { ApiKeyWhereInput } from "./ApiKeyWhereInput";
+import { IsOptional, ValidateNested, IsInt } from "class-validator";
+import { Type } from "class-transformer";
+import { ApiKeyOrderByInput } from "./ApiKeyOrderByInput";
+
+@ArgsType()
+class ApiKeyFindManyArgs {
+ @ApiProperty({
+ required: false,
+ type: () => ApiKeyWhereInput,
+ })
+ @IsOptional()
+ @ValidateNested()
+ @Field(() => ApiKeyWhereInput, { nullable: true })
+ @Type(() => ApiKeyWhereInput)
+ where?: ApiKeyWhereInput;
+
+ @ApiProperty({
+ required: false,
+ type: [ApiKeyOrderByInput],
+ })
+ @IsOptional()
+ @ValidateNested({ each: true })
+ @Field(() => [ApiKeyOrderByInput], { nullable: true })
+ @Type(() => ApiKeyOrderByInput)
+ orderBy?: Array;
+
+ @ApiProperty({
+ required: false,
+ type: Number,
+ })
+ @IsOptional()
+ @IsInt()
+ @Field(() => Number, { nullable: true })
+ @Type(() => Number)
+ skip?: number;
+
+ @ApiProperty({
+ required: false,
+ type: Number,
+ })
+ @IsOptional()
+ @IsInt()
+ @Field(() => Number, { nullable: true })
+ @Type(() => Number)
+ take?: number;
+}
+
+export { ApiKeyFindManyArgs as ApiKeyFindManyArgs };
diff --git a/apps/roi-cacl-2/src/apiKey/base/ApiKeyFindUniqueArgs.ts b/apps/roi-cacl-2/src/apiKey/base/ApiKeyFindUniqueArgs.ts
new file mode 100644
index 0000000..a880fea
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/ApiKeyFindUniqueArgs.ts
@@ -0,0 +1,30 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ArgsType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { ApiKeyWhereUniqueInput } from "./ApiKeyWhereUniqueInput";
+import { ValidateNested } from "class-validator";
+import { Type } from "class-transformer";
+
+@ArgsType()
+class ApiKeyFindUniqueArgs {
+ @ApiProperty({
+ required: true,
+ type: () => ApiKeyWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => ApiKeyWhereUniqueInput)
+ @Field(() => ApiKeyWhereUniqueInput, { nullable: false })
+ where!: ApiKeyWhereUniqueInput;
+}
+
+export { ApiKeyFindUniqueArgs as ApiKeyFindUniqueArgs };
diff --git a/apps/roi-cacl-2/src/apiKey/base/ApiKeyListRelationFilter.ts b/apps/roi-cacl-2/src/apiKey/base/ApiKeyListRelationFilter.ts
new file mode 100644
index 0000000..723cf05
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/ApiKeyListRelationFilter.ts
@@ -0,0 +1,56 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { InputType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { ApiKeyWhereInput } from "./ApiKeyWhereInput";
+import { ValidateNested, IsOptional } from "class-validator";
+import { Type } from "class-transformer";
+
+@InputType()
+class ApiKeyListRelationFilter {
+ @ApiProperty({
+ required: false,
+ type: () => ApiKeyWhereInput,
+ })
+ @ValidateNested()
+ @Type(() => ApiKeyWhereInput)
+ @IsOptional()
+ @Field(() => ApiKeyWhereInput, {
+ nullable: true,
+ })
+ every?: ApiKeyWhereInput;
+
+ @ApiProperty({
+ required: false,
+ type: () => ApiKeyWhereInput,
+ })
+ @ValidateNested()
+ @Type(() => ApiKeyWhereInput)
+ @IsOptional()
+ @Field(() => ApiKeyWhereInput, {
+ nullable: true,
+ })
+ some?: ApiKeyWhereInput;
+
+ @ApiProperty({
+ required: false,
+ type: () => ApiKeyWhereInput,
+ })
+ @ValidateNested()
+ @Type(() => ApiKeyWhereInput)
+ @IsOptional()
+ @Field(() => ApiKeyWhereInput, {
+ nullable: true,
+ })
+ none?: ApiKeyWhereInput;
+}
+export { ApiKeyListRelationFilter as ApiKeyListRelationFilter };
diff --git a/apps/roi-cacl-2/src/apiKey/base/ApiKeyOrderByInput.ts b/apps/roi-cacl-2/src/apiKey/base/ApiKeyOrderByInput.ts
new file mode 100644
index 0000000..fb64ffb
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/ApiKeyOrderByInput.ts
@@ -0,0 +1,111 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { InputType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { IsOptional, IsEnum } from "class-validator";
+import { SortOrder } from "../../util/SortOrder";
+
+@InputType({
+ isAbstract: true,
+ description: undefined,
+})
+class ApiKeyOrderByInput {
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ id?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ note?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ createdAt?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ expiresAt?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ lastUsedAt?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ hashedKey?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ userId?: SortOrder;
+
+ @ApiProperty({
+ required: false,
+ enum: ["asc", "desc"],
+ })
+ @IsOptional()
+ @IsEnum(SortOrder)
+ @Field(() => SortOrder, {
+ nullable: true,
+ })
+ appId?: SortOrder;
+}
+
+export { ApiKeyOrderByInput as ApiKeyOrderByInput };
diff --git a/apps/roi-cacl-2/src/apiKey/base/ApiKeyUpdateInput.ts b/apps/roi-cacl-2/src/apiKey/base/ApiKeyUpdateInput.ts
new file mode 100644
index 0000000..7c5192d
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/ApiKeyUpdateInput.ts
@@ -0,0 +1,90 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { InputType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { IsString, IsOptional, IsDate, ValidateNested } from "class-validator";
+import { Type } from "class-transformer";
+import { UserWhereUniqueInput } from "../../user/base/UserWhereUniqueInput";
+import { AppModelWhereUniqueInput } from "../../appModel/base/AppModelWhereUniqueInput";
+
+@InputType()
+class ApiKeyUpdateInput {
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ note?: string | null;
+
+ @ApiProperty({
+ required: false,
+ })
+ @IsDate()
+ @Type(() => Date)
+ @IsOptional()
+ @Field(() => Date, {
+ nullable: true,
+ })
+ expiresAt?: Date | null;
+
+ @ApiProperty({
+ required: false,
+ })
+ @IsDate()
+ @Type(() => Date)
+ @IsOptional()
+ @Field(() => Date, {
+ nullable: true,
+ })
+ lastUsedAt?: Date | null;
+
+ @ApiProperty({
+ required: false,
+ type: String,
+ })
+ @IsString()
+ @IsOptional()
+ @Field(() => String, {
+ nullable: true,
+ })
+ hashedKey?: string;
+
+ @ApiProperty({
+ required: false,
+ type: () => UserWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => UserWhereUniqueInput)
+ @IsOptional()
+ @Field(() => UserWhereUniqueInput, {
+ nullable: true,
+ })
+ user?: UserWhereUniqueInput | null;
+
+ @ApiProperty({
+ required: false,
+ type: () => AppModelWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => AppModelWhereUniqueInput)
+ @IsOptional()
+ @Field(() => AppModelWhereUniqueInput, {
+ nullable: true,
+ })
+ appField?: AppModelWhereUniqueInput | null;
+}
+
+export { ApiKeyUpdateInput as ApiKeyUpdateInput };
diff --git a/apps/roi-cacl-2/src/apiKey/base/ApiKeyWhereInput.ts b/apps/roi-cacl-2/src/apiKey/base/ApiKeyWhereInput.ts
new file mode 100644
index 0000000..45c6251
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/ApiKeyWhereInput.ts
@@ -0,0 +1,116 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { InputType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { StringFilter } from "../../util/StringFilter";
+import { Type } from "class-transformer";
+import { IsOptional, ValidateNested } from "class-validator";
+import { StringNullableFilter } from "../../util/StringNullableFilter";
+import { DateTimeFilter } from "../../util/DateTimeFilter";
+import { DateTimeNullableFilter } from "../../util/DateTimeNullableFilter";
+import { UserWhereUniqueInput } from "../../user/base/UserWhereUniqueInput";
+import { AppModelWhereUniqueInput } from "../../appModel/base/AppModelWhereUniqueInput";
+
+@InputType()
+class ApiKeyWhereInput {
+ @ApiProperty({
+ required: false,
+ type: StringFilter,
+ })
+ @Type(() => StringFilter)
+ @IsOptional()
+ @Field(() => StringFilter, {
+ nullable: true,
+ })
+ id?: StringFilter;
+
+ @ApiProperty({
+ required: false,
+ type: StringNullableFilter,
+ })
+ @Type(() => StringNullableFilter)
+ @IsOptional()
+ @Field(() => StringNullableFilter, {
+ nullable: true,
+ })
+ note?: StringNullableFilter;
+
+ @ApiProperty({
+ required: false,
+ type: DateTimeFilter,
+ })
+ @Type(() => DateTimeFilter)
+ @IsOptional()
+ @Field(() => DateTimeFilter, {
+ nullable: true,
+ })
+ createdAt?: DateTimeFilter;
+
+ @ApiProperty({
+ required: false,
+ type: DateTimeNullableFilter,
+ })
+ @Type(() => DateTimeNullableFilter)
+ @IsOptional()
+ @Field(() => DateTimeNullableFilter, {
+ nullable: true,
+ })
+ expiresAt?: DateTimeNullableFilter;
+
+ @ApiProperty({
+ required: false,
+ type: DateTimeNullableFilter,
+ })
+ @Type(() => DateTimeNullableFilter)
+ @IsOptional()
+ @Field(() => DateTimeNullableFilter, {
+ nullable: true,
+ })
+ lastUsedAt?: DateTimeNullableFilter;
+
+ @ApiProperty({
+ required: false,
+ type: StringFilter,
+ })
+ @Type(() => StringFilter)
+ @IsOptional()
+ @Field(() => StringFilter, {
+ nullable: true,
+ })
+ hashedKey?: StringFilter;
+
+ @ApiProperty({
+ required: false,
+ type: () => UserWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => UserWhereUniqueInput)
+ @IsOptional()
+ @Field(() => UserWhereUniqueInput, {
+ nullable: true,
+ })
+ user?: UserWhereUniqueInput;
+
+ @ApiProperty({
+ required: false,
+ type: () => AppModelWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => AppModelWhereUniqueInput)
+ @IsOptional()
+ @Field(() => AppModelWhereUniqueInput, {
+ nullable: true,
+ })
+ appField?: AppModelWhereUniqueInput;
+}
+
+export { ApiKeyWhereInput as ApiKeyWhereInput };
diff --git a/apps/roi-cacl-2/src/apiKey/base/ApiKeyWhereUniqueInput.ts b/apps/roi-cacl-2/src/apiKey/base/ApiKeyWhereUniqueInput.ts
new file mode 100644
index 0000000..da05e93
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/ApiKeyWhereUniqueInput.ts
@@ -0,0 +1,27 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { InputType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { IsString } from "class-validator";
+
+@InputType()
+class ApiKeyWhereUniqueInput {
+ @ApiProperty({
+ required: true,
+ type: String,
+ })
+ @IsString()
+ @Field(() => String)
+ id!: string;
+}
+
+export { ApiKeyWhereUniqueInput as ApiKeyWhereUniqueInput };
diff --git a/apps/roi-cacl-2/src/apiKey/base/CreateApiKeyArgs.ts b/apps/roi-cacl-2/src/apiKey/base/CreateApiKeyArgs.ts
new file mode 100644
index 0000000..a01e88d
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/CreateApiKeyArgs.ts
@@ -0,0 +1,30 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ArgsType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { ApiKeyCreateInput } from "./ApiKeyCreateInput";
+import { ValidateNested } from "class-validator";
+import { Type } from "class-transformer";
+
+@ArgsType()
+class CreateApiKeyArgs {
+ @ApiProperty({
+ required: true,
+ type: () => ApiKeyCreateInput,
+ })
+ @ValidateNested()
+ @Type(() => ApiKeyCreateInput)
+ @Field(() => ApiKeyCreateInput, { nullable: false })
+ data!: ApiKeyCreateInput;
+}
+
+export { CreateApiKeyArgs as CreateApiKeyArgs };
diff --git a/apps/roi-cacl-2/src/apiKey/base/DeleteApiKeyArgs.ts b/apps/roi-cacl-2/src/apiKey/base/DeleteApiKeyArgs.ts
new file mode 100644
index 0000000..4f7d820
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/DeleteApiKeyArgs.ts
@@ -0,0 +1,30 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ArgsType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { ApiKeyWhereUniqueInput } from "./ApiKeyWhereUniqueInput";
+import { ValidateNested } from "class-validator";
+import { Type } from "class-transformer";
+
+@ArgsType()
+class DeleteApiKeyArgs {
+ @ApiProperty({
+ required: true,
+ type: () => ApiKeyWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => ApiKeyWhereUniqueInput)
+ @Field(() => ApiKeyWhereUniqueInput, { nullable: false })
+ where!: ApiKeyWhereUniqueInput;
+}
+
+export { DeleteApiKeyArgs as DeleteApiKeyArgs };
diff --git a/apps/roi-cacl-2/src/apiKey/base/UpdateApiKeyArgs.ts b/apps/roi-cacl-2/src/apiKey/base/UpdateApiKeyArgs.ts
new file mode 100644
index 0000000..65df4bf
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/UpdateApiKeyArgs.ts
@@ -0,0 +1,40 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { ArgsType, Field } from "@nestjs/graphql";
+import { ApiProperty } from "@nestjs/swagger";
+import { ApiKeyWhereUniqueInput } from "./ApiKeyWhereUniqueInput";
+import { ValidateNested } from "class-validator";
+import { Type } from "class-transformer";
+import { ApiKeyUpdateInput } from "./ApiKeyUpdateInput";
+
+@ArgsType()
+class UpdateApiKeyArgs {
+ @ApiProperty({
+ required: true,
+ type: () => ApiKeyWhereUniqueInput,
+ })
+ @ValidateNested()
+ @Type(() => ApiKeyWhereUniqueInput)
+ @Field(() => ApiKeyWhereUniqueInput, { nullable: false })
+ where!: ApiKeyWhereUniqueInput;
+
+ @ApiProperty({
+ required: true,
+ type: () => ApiKeyUpdateInput,
+ })
+ @ValidateNested()
+ @Type(() => ApiKeyUpdateInput)
+ @Field(() => ApiKeyUpdateInput, { nullable: false })
+ data!: ApiKeyUpdateInput;
+}
+
+export { UpdateApiKeyArgs as UpdateApiKeyArgs };
diff --git a/apps/roi-cacl-2/src/apiKey/base/apiKey.controller.base.spec.ts b/apps/roi-cacl-2/src/apiKey/base/apiKey.controller.base.spec.ts
new file mode 100644
index 0000000..92e02aa
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/apiKey.controller.base.spec.ts
@@ -0,0 +1,206 @@
+import { Test } from "@nestjs/testing";
+import {
+ INestApplication,
+ HttpStatus,
+ ExecutionContext,
+ CallHandler,
+} from "@nestjs/common";
+import request from "supertest";
+import { ACGuard } from "nest-access-control";
+import { DefaultAuthGuard } from "../../auth/defaultAuth.guard";
+import { ACLModule } from "../../auth/acl.module";
+import { AclFilterResponseInterceptor } from "../../interceptors/aclFilterResponse.interceptor";
+import { AclValidateRequestInterceptor } from "../../interceptors/aclValidateRequest.interceptor";
+import { map } from "rxjs";
+import { ApiKeyController } from "../apiKey.controller";
+import { ApiKeyService } from "../apiKey.service";
+
+const nonExistingId = "nonExistingId";
+const existingId = "existingId";
+const CREATE_INPUT = {
+ id: "exampleId",
+ note: "exampleNote",
+ createdAt: new Date(),
+ expiresAt: new Date(),
+ lastUsedAt: new Date(),
+ hashedKey: "exampleHashedKey",
+};
+const CREATE_RESULT = {
+ id: "exampleId",
+ note: "exampleNote",
+ createdAt: new Date(),
+ expiresAt: new Date(),
+ lastUsedAt: new Date(),
+ hashedKey: "exampleHashedKey",
+};
+const FIND_MANY_RESULT = [
+ {
+ id: "exampleId",
+ note: "exampleNote",
+ createdAt: new Date(),
+ expiresAt: new Date(),
+ lastUsedAt: new Date(),
+ hashedKey: "exampleHashedKey",
+ },
+];
+const FIND_ONE_RESULT = {
+ id: "exampleId",
+ note: "exampleNote",
+ createdAt: new Date(),
+ expiresAt: new Date(),
+ lastUsedAt: new Date(),
+ hashedKey: "exampleHashedKey",
+};
+
+const service = {
+ createApiKey() {
+ return CREATE_RESULT;
+ },
+ apiKeys: () => FIND_MANY_RESULT,
+ apiKey: ({ where }: { where: { id: string } }) => {
+ switch (where.id) {
+ case existingId:
+ return FIND_ONE_RESULT;
+ case nonExistingId:
+ return null;
+ }
+ },
+};
+
+const basicAuthGuard = {
+ canActivate: (context: ExecutionContext) => {
+ const argumentHost = context.switchToHttp();
+ const request = argumentHost.getRequest();
+ request.user = {
+ roles: ["user"],
+ };
+ return true;
+ },
+};
+
+const acGuard = {
+ canActivate: () => {
+ return true;
+ },
+};
+
+const aclFilterResponseInterceptor = {
+ intercept: (context: ExecutionContext, next: CallHandler) => {
+ return next.handle().pipe(
+ map((data) => {
+ return data;
+ })
+ );
+ },
+};
+const aclValidateRequestInterceptor = {
+ intercept: (context: ExecutionContext, next: CallHandler) => {
+ return next.handle();
+ },
+};
+
+describe("ApiKey", () => {
+ let app: INestApplication;
+
+ beforeAll(async () => {
+ const moduleRef = await Test.createTestingModule({
+ providers: [
+ {
+ provide: ApiKeyService,
+ useValue: service,
+ },
+ ],
+ controllers: [ApiKeyController],
+ imports: [ACLModule],
+ })
+ .overrideGuard(DefaultAuthGuard)
+ .useValue(basicAuthGuard)
+ .overrideGuard(ACGuard)
+ .useValue(acGuard)
+ .overrideInterceptor(AclFilterResponseInterceptor)
+ .useValue(aclFilterResponseInterceptor)
+ .overrideInterceptor(AclValidateRequestInterceptor)
+ .useValue(aclValidateRequestInterceptor)
+ .compile();
+
+ app = moduleRef.createNestApplication();
+ await app.init();
+ });
+
+ test("POST /apiKeys", async () => {
+ await request(app.getHttpServer())
+ .post("/apiKeys")
+ .send(CREATE_INPUT)
+ .expect(HttpStatus.CREATED)
+ .expect({
+ ...CREATE_RESULT,
+ createdAt: CREATE_RESULT.createdAt.toISOString(),
+ expiresAt: CREATE_RESULT.expiresAt.toISOString(),
+ lastUsedAt: CREATE_RESULT.lastUsedAt.toISOString(),
+ });
+ });
+
+ test("GET /apiKeys", async () => {
+ await request(app.getHttpServer())
+ .get("/apiKeys")
+ .expect(HttpStatus.OK)
+ .expect([
+ {
+ ...FIND_MANY_RESULT[0],
+ createdAt: FIND_MANY_RESULT[0].createdAt.toISOString(),
+ expiresAt: FIND_MANY_RESULT[0].expiresAt.toISOString(),
+ lastUsedAt: FIND_MANY_RESULT[0].lastUsedAt.toISOString(),
+ },
+ ]);
+ });
+
+ test("GET /apiKeys/:id non existing", async () => {
+ await request(app.getHttpServer())
+ .get(`${"/apiKeys"}/${nonExistingId}`)
+ .expect(HttpStatus.NOT_FOUND)
+ .expect({
+ statusCode: HttpStatus.NOT_FOUND,
+ message: `No resource was found for {"${"id"}":"${nonExistingId}"}`,
+ error: "Not Found",
+ });
+ });
+
+ test("GET /apiKeys/:id existing", async () => {
+ await request(app.getHttpServer())
+ .get(`${"/apiKeys"}/${existingId}`)
+ .expect(HttpStatus.OK)
+ .expect({
+ ...FIND_ONE_RESULT,
+ createdAt: FIND_ONE_RESULT.createdAt.toISOString(),
+ expiresAt: FIND_ONE_RESULT.expiresAt.toISOString(),
+ lastUsedAt: FIND_ONE_RESULT.lastUsedAt.toISOString(),
+ });
+ });
+
+ test("POST /apiKeys existing resource", async () => {
+ const agent = request(app.getHttpServer());
+ await agent
+ .post("/apiKeys")
+ .send(CREATE_INPUT)
+ .expect(HttpStatus.CREATED)
+ .expect({
+ ...CREATE_RESULT,
+ createdAt: CREATE_RESULT.createdAt.toISOString(),
+ expiresAt: CREATE_RESULT.expiresAt.toISOString(),
+ lastUsedAt: CREATE_RESULT.lastUsedAt.toISOString(),
+ })
+ .then(function () {
+ agent
+ .post("/apiKeys")
+ .send(CREATE_INPUT)
+ .expect(HttpStatus.CONFLICT)
+ .expect({
+ statusCode: HttpStatus.CONFLICT,
+ });
+ });
+ });
+
+ afterAll(async () => {
+ await app.close();
+ });
+});
diff --git a/apps/roi-cacl-2/src/apiKey/base/apiKey.controller.base.ts b/apps/roi-cacl-2/src/apiKey/base/apiKey.controller.base.ts
new file mode 100644
index 0000000..e9a3148
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/apiKey.controller.base.ts
@@ -0,0 +1,232 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import * as common from "@nestjs/common";
+import * as swagger from "@nestjs/swagger";
+import { isRecordNotFoundError } from "../../prisma.util";
+import * as errors from "../../errors";
+import { Request } from "express";
+import { plainToClass } from "class-transformer";
+import { ApiNestedQuery } from "../../decorators/api-nested-query.decorator";
+import { ApiKeyService } from "../apiKey.service";
+import { ApiKeyCreateInput } from "./ApiKeyCreateInput";
+import { ApiKey } from "./ApiKey";
+import { ApiKeyFindManyArgs } from "./ApiKeyFindManyArgs";
+import { ApiKeyWhereUniqueInput } from "./ApiKeyWhereUniqueInput";
+import { ApiKeyUpdateInput } from "./ApiKeyUpdateInput";
+
+export class ApiKeyControllerBase {
+ constructor(protected readonly service: ApiKeyService) {}
+ @common.Post()
+ @swagger.ApiCreatedResponse({ type: ApiKey })
+ async createApiKey(@common.Body() data: ApiKeyCreateInput): Promise {
+ return await this.service.createApiKey({
+ data: {
+ ...data,
+
+ user: data.user
+ ? {
+ connect: data.user,
+ }
+ : undefined,
+
+ appField: data.appField
+ ? {
+ connect: data.appField,
+ }
+ : undefined,
+ },
+ select: {
+ id: true,
+ note: true,
+ createdAt: true,
+ expiresAt: true,
+ lastUsedAt: true,
+ hashedKey: true,
+
+ user: {
+ select: {
+ id: true,
+ },
+ },
+
+ appField: {
+ select: {
+ id: true,
+ },
+ },
+ },
+ });
+ }
+
+ @common.Get()
+ @swagger.ApiOkResponse({ type: [ApiKey] })
+ @ApiNestedQuery(ApiKeyFindManyArgs)
+ async apiKeys(@common.Req() request: Request): Promise {
+ const args = plainToClass(ApiKeyFindManyArgs, request.query);
+ return this.service.apiKeys({
+ ...args,
+ select: {
+ id: true,
+ note: true,
+ createdAt: true,
+ expiresAt: true,
+ lastUsedAt: true,
+ hashedKey: true,
+
+ user: {
+ select: {
+ id: true,
+ },
+ },
+
+ appField: {
+ select: {
+ id: true,
+ },
+ },
+ },
+ });
+ }
+
+ @common.Get("/:id")
+ @swagger.ApiOkResponse({ type: ApiKey })
+ @swagger.ApiNotFoundResponse({ type: errors.NotFoundException })
+ async apiKey(
+ @common.Param() params: ApiKeyWhereUniqueInput
+ ): Promise {
+ const result = await this.service.apiKey({
+ where: params,
+ select: {
+ id: true,
+ note: true,
+ createdAt: true,
+ expiresAt: true,
+ lastUsedAt: true,
+ hashedKey: true,
+
+ user: {
+ select: {
+ id: true,
+ },
+ },
+
+ appField: {
+ select: {
+ id: true,
+ },
+ },
+ },
+ });
+ if (result === null) {
+ throw new errors.NotFoundException(
+ `No resource was found for ${JSON.stringify(params)}`
+ );
+ }
+ return result;
+ }
+
+ @common.Patch("/:id")
+ @swagger.ApiOkResponse({ type: ApiKey })
+ @swagger.ApiNotFoundResponse({ type: errors.NotFoundException })
+ async updateApiKey(
+ @common.Param() params: ApiKeyWhereUniqueInput,
+ @common.Body() data: ApiKeyUpdateInput
+ ): Promise {
+ try {
+ return await this.service.updateApiKey({
+ where: params,
+ data: {
+ ...data,
+
+ user: data.user
+ ? {
+ connect: data.user,
+ }
+ : undefined,
+
+ appField: data.appField
+ ? {
+ connect: data.appField,
+ }
+ : undefined,
+ },
+ select: {
+ id: true,
+ note: true,
+ createdAt: true,
+ expiresAt: true,
+ lastUsedAt: true,
+ hashedKey: true,
+
+ user: {
+ select: {
+ id: true,
+ },
+ },
+
+ appField: {
+ select: {
+ id: true,
+ },
+ },
+ },
+ });
+ } catch (error) {
+ if (isRecordNotFoundError(error)) {
+ throw new errors.NotFoundException(
+ `No resource was found for ${JSON.stringify(params)}`
+ );
+ }
+ throw error;
+ }
+ }
+
+ @common.Delete("/:id")
+ @swagger.ApiOkResponse({ type: ApiKey })
+ @swagger.ApiNotFoundResponse({ type: errors.NotFoundException })
+ async deleteApiKey(
+ @common.Param() params: ApiKeyWhereUniqueInput
+ ): Promise {
+ try {
+ return await this.service.deleteApiKey({
+ where: params,
+ select: {
+ id: true,
+ note: true,
+ createdAt: true,
+ expiresAt: true,
+ lastUsedAt: true,
+ hashedKey: true,
+
+ user: {
+ select: {
+ id: true,
+ },
+ },
+
+ appField: {
+ select: {
+ id: true,
+ },
+ },
+ },
+ });
+ } catch (error) {
+ if (isRecordNotFoundError(error)) {
+ throw new errors.NotFoundException(
+ `No resource was found for ${JSON.stringify(params)}`
+ );
+ }
+ throw error;
+ }
+ }
+}
diff --git a/apps/roi-cacl-2/src/apiKey/base/apiKey.module.base.ts b/apps/roi-cacl-2/src/apiKey/base/apiKey.module.base.ts
new file mode 100644
index 0000000..857051d
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/apiKey.module.base.ts
@@ -0,0 +1,18 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import { Module } from "@nestjs/common";
+
+@Module({
+ imports: [],
+ exports: [],
+})
+export class ApiKeyModuleBase {}
diff --git a/apps/roi-cacl-2/src/apiKey/base/apiKey.resolver.base.ts b/apps/roi-cacl-2/src/apiKey/base/apiKey.resolver.base.ts
new file mode 100644
index 0000000..4520459
--- /dev/null
+++ b/apps/roi-cacl-2/src/apiKey/base/apiKey.resolver.base.ts
@@ -0,0 +1,153 @@
+/*
+------------------------------------------------------------------------------
+This code was generated by Amplication.
+
+Changes to this file will be lost if the code is regenerated.
+
+There are other ways to to customize your code, see this doc to learn more
+https://docs.amplication.com/how-to/custom-code
+
+------------------------------------------------------------------------------
+ */
+import * as graphql from "@nestjs/graphql";
+import { GraphQLError } from "graphql";
+import { isRecordNotFoundError } from "../../prisma.util";
+import { MetaQueryPayload } from "../../util/MetaQueryPayload";
+import { ApiKey } from "./ApiKey";
+import { ApiKeyCountArgs } from "./ApiKeyCountArgs";
+import { ApiKeyFindManyArgs } from "./ApiKeyFindManyArgs";
+import { ApiKeyFindUniqueArgs } from "./ApiKeyFindUniqueArgs";
+import { CreateApiKeyArgs } from "./CreateApiKeyArgs";
+import { UpdateApiKeyArgs } from "./UpdateApiKeyArgs";
+import { DeleteApiKeyArgs } from "./DeleteApiKeyArgs";
+import { User } from "../../user/base/User";
+import { AppModel } from "../../appModel/base/AppModel";
+import { ApiKeyService } from "../apiKey.service";
+@graphql.Resolver(() => ApiKey)
+export class ApiKeyResolverBase {
+ constructor(protected readonly service: ApiKeyService) {}
+
+ async _apiKeysMeta(
+ @graphql.Args() args: ApiKeyCountArgs
+ ): Promise {
+ const result = await this.service.count(args);
+ return {
+ count: result,
+ };
+ }
+
+ @graphql.Query(() => [ApiKey])
+ async apiKeys(@graphql.Args() args: ApiKeyFindManyArgs): Promise {
+ return this.service.apiKeys(args);
+ }
+
+ @graphql.Query(() => ApiKey, { nullable: true })
+ async apiKey(
+ @graphql.Args() args: ApiKeyFindUniqueArgs
+ ): Promise