url-shortener-mcp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +174 -0
- package/bin/url-shortener-mcp.js +25 -0
- package/dist/generated/prisma/browser.d.ts +15 -0
- package/dist/generated/prisma/browser.d.ts.map +1 -0
- package/dist/generated/prisma/browser.js +57 -0
- package/dist/generated/prisma/browser.js.map +1 -0
- package/dist/generated/prisma/client.d.ts +34 -0
- package/dist/generated/prisma/client.d.ts.map +1 -0
- package/dist/generated/prisma/client.js +71 -0
- package/dist/generated/prisma/client.js.map +1 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +226 -0
- package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
- package/dist/generated/prisma/commonInputTypes.js +12 -0
- package/dist/generated/prisma/commonInputTypes.js.map +1 -0
- package/dist/generated/prisma/enums.d.ts +2 -0
- package/dist/generated/prisma/enums.d.ts.map +1 -0
- package/dist/generated/prisma/enums.js +12 -0
- package/dist/generated/prisma/enums.js.map +1 -0
- package/dist/generated/prisma/internal/class.d.ts +142 -0
- package/dist/generated/prisma/internal/class.d.ts.map +1 -0
- package/dist/generated/prisma/internal/class.js +86 -0
- package/dist/generated/prisma/internal/class.js.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +599 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +139 -0
- package/dist/generated/prisma/internal/prismaNamespace.js.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +64 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +110 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
- package/dist/generated/prisma/models/Url.d.ts +1333 -0
- package/dist/generated/prisma/models/Url.d.ts.map +1 -0
- package/dist/generated/prisma/models/Url.js +3 -0
- package/dist/generated/prisma/models/Url.js.map +1 -0
- package/dist/generated/prisma/models/User.d.ts +1095 -0
- package/dist/generated/prisma/models/User.d.ts.map +1 -0
- package/dist/generated/prisma/models/User.js +3 -0
- package/dist/generated/prisma/models/User.js.map +1 -0
- package/dist/generated/prisma/models.d.ts +4 -0
- package/dist/generated/prisma/models.d.ts.map +1 -0
- package/dist/generated/prisma/models.js +3 -0
- package/dist/generated/prisma/models.js.map +1 -0
- package/dist/src/app.d.ts +4 -0
- package/dist/src/app.d.ts.map +1 -0
- package/dist/src/app.js +55 -0
- package/dist/src/app.js.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +67 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/jobs/expiry.job.d.ts +2 -0
- package/dist/src/jobs/expiry.job.d.ts.map +1 -0
- package/dist/src/jobs/expiry.job.js +22 -0
- package/dist/src/jobs/expiry.job.js.map +1 -0
- package/dist/src/lib/crypto.d.ts +4 -0
- package/dist/src/lib/crypto.d.ts.map +1 -0
- package/dist/src/lib/crypto.js +23 -0
- package/dist/src/lib/crypto.js.map +1 -0
- package/dist/src/lib/env.d.ts +12 -0
- package/dist/src/lib/env.d.ts.map +1 -0
- package/dist/src/lib/env.js +22 -0
- package/dist/src/lib/env.js.map +1 -0
- package/dist/src/lib/errors.d.ts +22 -0
- package/dist/src/lib/errors.d.ts.map +1 -0
- package/dist/src/lib/errors.js +46 -0
- package/dist/src/lib/errors.js.map +1 -0
- package/dist/src/lib/logger.d.ts +6 -0
- package/dist/src/lib/logger.d.ts.map +1 -0
- package/dist/src/lib/logger.js +25 -0
- package/dist/src/lib/logger.js.map +1 -0
- package/dist/src/lib/prisma.d.ts +3 -0
- package/dist/src/lib/prisma.d.ts.map +1 -0
- package/dist/src/lib/prisma.js +22 -0
- package/dist/src/lib/prisma.js.map +1 -0
- package/dist/src/lib/schemas.d.ts +30 -0
- package/dist/src/lib/schemas.d.ts.map +1 -0
- package/dist/src/lib/schemas.js +36 -0
- package/dist/src/lib/schemas.js.map +1 -0
- package/dist/src/mcp/server.d.ts +3 -0
- package/dist/src/mcp/server.d.ts.map +1 -0
- package/dist/src/mcp/server.js +335 -0
- package/dist/src/mcp/server.js.map +1 -0
- package/dist/src/middleware/auth.d.ts +3 -0
- package/dist/src/middleware/auth.d.ts.map +1 -0
- package/dist/src/middleware/auth.js +59 -0
- package/dist/src/middleware/auth.js.map +1 -0
- package/dist/src/middleware/error.d.ts +3 -0
- package/dist/src/middleware/error.d.ts.map +1 -0
- package/dist/src/middleware/error.js +20 -0
- package/dist/src/middleware/error.js.map +1 -0
- package/dist/src/middleware/logging.d.ts +5 -0
- package/dist/src/middleware/logging.d.ts.map +1 -0
- package/dist/src/middleware/logging.js +26 -0
- package/dist/src/middleware/logging.js.map +1 -0
- package/dist/src/middleware/validate.d.ts +21 -0
- package/dist/src/middleware/validate.d.ts.map +1 -0
- package/dist/src/middleware/validate.js +59 -0
- package/dist/src/middleware/validate.js.map +1 -0
- package/dist/src/routes/url.router.d.ts +4 -0
- package/dist/src/routes/url.router.d.ts.map +1 -0
- package/dist/src/routes/url.router.js +55 -0
- package/dist/src/routes/url.router.js.map +1 -0
- package/dist/src/services/url.service.d.ts +64 -0
- package/dist/src/services/url.service.d.ts.map +1 -0
- package/dist/src/services/url.service.js +207 -0
- package/dist/src/services/url.service.js.map +1 -0
- package/generated/prisma/browser.ts +29 -0
- package/generated/prisma/client.ts +51 -0
- package/generated/prisma/commonInputTypes.ts +260 -0
- package/generated/prisma/enums.ts +15 -0
- package/generated/prisma/internal/class.ts +214 -0
- package/generated/prisma/internal/prismaNamespace.ts +823 -0
- package/generated/prisma/internal/prismaNamespaceBrowser.ts +108 -0
- package/generated/prisma/models/Url.ts +1511 -0
- package/generated/prisma/models/User.ts +1261 -0
- package/generated/prisma/models.ts +13 -0
- package/package.json +80 -0
- package/prisma/migrations/20260325164854_init/migration.sql +12 -0
- package/prisma/migrations/20260325165426_add_expires_at/migration.sql +2 -0
- package/prisma/migrations/20260325171510_add_user/migration.sql +8 -0
- package/prisma/migrations/20260325171703_add_url_user_relation/migration.sql +29 -0
- package/prisma/migrations/20260325172339_add_user_salt/migration.sql +24 -0
- package/prisma/migrations/20260325174349_add_indexes_and_cascade/migration.sql +22 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +33 -0
- package/prisma.config.ts +12 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Michael Shum
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# url-shortener-mcp
|
|
2
|
+
|
|
3
|
+
[](https://www.typescriptlang.org/)
|
|
4
|
+
[](https://nodejs.org/)
|
|
5
|
+
[](https://expressjs.com/)
|
|
6
|
+
[](https://www.prisma.io/)
|
|
7
|
+
[](https://www.sqlite.org/)
|
|
8
|
+
[](https://zod.dev/)
|
|
9
|
+
[](https://vitest.dev/)
|
|
10
|
+
[](https://modelcontextprotocol.io/)
|
|
11
|
+
[](https://opensource.org/licenses/MIT)
|
|
12
|
+
|
|
13
|
+
A URL shortener exposed as an [MCP](https://modelcontextprotocol.io/) server. Built with Express, Prisma, TypeScript, and SQLite.
|
|
14
|
+
|
|
15
|
+
Shorten URLs, set expiry times, and manage your links directly from any MCP-compatible LLM client.
|
|
16
|
+
|
|
17
|
+
> **This server is designed to be deployed remotely.** Short URLs are only useful if they resolve publicly, and MCP clients connect over HTTP — so the server should run on a machine with a public hostname (e.g. a VPS, cloud VM, or PaaS). Set `HOSTNAME` to your public domain and `HTTPS=true` in production. Running it on `localhost` is fine for development, but short links won't be shareable outside your machine.
|
|
18
|
+
|
|
19
|
+
## Quick Start (npx)
|
|
20
|
+
|
|
21
|
+
The fastest way to get running — no cloning required:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx url-shortener-mcp --port 3000 --hostname your-domain.com --https true
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
On first run the server will:
|
|
28
|
+
1. Create a fresh SQLite database and apply all migrations automatically
|
|
29
|
+
2. Generate an API key and print it once — **save it, it will not be shown again**
|
|
30
|
+
3. Start listening
|
|
31
|
+
|
|
32
|
+
All environment variables can be passed as CLI flags:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx url-shortener-mcp \
|
|
36
|
+
--port 3000 \
|
|
37
|
+
--database-url file:/data/urls.db \
|
|
38
|
+
--hostname your-domain.com \
|
|
39
|
+
--https true \
|
|
40
|
+
--enable-api true \
|
|
41
|
+
--enable-mcp true
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
| Flag | Env var |
|
|
45
|
+
|------|---------|
|
|
46
|
+
| `--port` / `-p` | `PORT` |
|
|
47
|
+
| `--database-url` | `DATABASE_URL` |
|
|
48
|
+
| `--hostname` | `HOSTNAME` |
|
|
49
|
+
| `--https` | `HTTPS` |
|
|
50
|
+
| `--enable-api` | `ENABLE_API` |
|
|
51
|
+
| `--enable-mcp` | `ENABLE_MCP` |
|
|
52
|
+
| `--max-expiry-seconds` | `MAX_EXPIRY_SECONDS` |
|
|
53
|
+
|
|
54
|
+
Flags take precedence over values set in a `.env` file.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Getting Started (from source)
|
|
59
|
+
|
|
60
|
+
### 1. Install dependencies
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pnpm install
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### 2. Set up environment
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pnpm init-env
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
This copies `.env.example` to `.env`. Edit `.env` to configure your hostname, port, and other settings.
|
|
73
|
+
|
|
74
|
+
### 3. Run database migrations
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
pnpm db:migrate
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### 4. Create a user
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
pnpm user:create
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
This outputs a user ID and API key. **Store the key securely — it will not be shown again.**
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
User created successfully.
|
|
90
|
+
|
|
91
|
+
ID: clxyz...
|
|
92
|
+
Key: a1b2c3d4...
|
|
93
|
+
|
|
94
|
+
Store this key securely — it will not be shown again.
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### 5. Start the server
|
|
98
|
+
|
|
99
|
+
**Development (with hot reload):**
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
pnpm dev
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Production:**
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
pnpm build && pnpm start
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
The server runs on `http://localhost:3000` by default.
|
|
112
|
+
|
|
113
|
+
## MCP Configuration
|
|
114
|
+
|
|
115
|
+
Add this server to your MCP client (e.g. Claude Desktop, Cursor):
|
|
116
|
+
|
|
117
|
+
```json
|
|
118
|
+
{
|
|
119
|
+
"mcpServers": {
|
|
120
|
+
"url-shortener": {
|
|
121
|
+
"url": "https://your-domain.com/mcp",
|
|
122
|
+
"headers": {
|
|
123
|
+
"Authorization": "Bearer <your-api-key>"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Replace `https://your-domain.com` with the public URL of your deployed server.
|
|
131
|
+
|
|
132
|
+
## Available Tools
|
|
133
|
+
|
|
134
|
+
| Tool | Description |
|
|
135
|
+
|------|-------------|
|
|
136
|
+
| `shorten_url` | Create a shortened URL with optional TTL, expiry date, or custom slug |
|
|
137
|
+
| `get_url` | Get details and click count for a URL you own |
|
|
138
|
+
| `list_urls` | List all your shortened URLs |
|
|
139
|
+
| `delete_url` | Delete a shortened URL by slug |
|
|
140
|
+
| `delete_all_urls` | Delete all your shortened URLs |
|
|
141
|
+
|
|
142
|
+
## Environment Variables
|
|
143
|
+
|
|
144
|
+
| Variable | Default | Description |
|
|
145
|
+
|----------|---------|-------------|
|
|
146
|
+
| `PORT` | `3000` | Server port |
|
|
147
|
+
| `DATABASE_URL` | `file:./prisma/dev.db` | SQLite database path |
|
|
148
|
+
| `HOSTNAME` | `localhost:3000` | Hostname used when building short URLs |
|
|
149
|
+
| `HTTPS` | `false` | Use `https://` scheme in short URLs |
|
|
150
|
+
| `MAX_EXPIRY_SECONDS` | `86400` | Maximum allowed TTL (default: 24 hours) |
|
|
151
|
+
| `EXPIRY_JOB_CRON` | `* * * * *` | Cron schedule for cleaning up expired URLs |
|
|
152
|
+
| `ENABLE_API` | `true` | Enable the REST API (`/urls`) |
|
|
153
|
+
| `ENABLE_MCP` | `true` | Enable the MCP server (`/mcp`) |
|
|
154
|
+
|
|
155
|
+
## Example Use Case
|
|
156
|
+
|
|
157
|
+
Once configured, you can ask your LLM assistant:
|
|
158
|
+
|
|
159
|
+
> "Shorten https://github.com/anthropics/anthropic-sdk-python/blob/main/README.md with a custom slug `anthropic-py` that expires in 12 hours, then list all my active URLs."
|
|
160
|
+
|
|
161
|
+
The assistant will call `shorten_url` with `longUrl`, `slug`, and `ttl` set appropriately, then call `list_urls` to show you the results — returning something like `http://localhost:3000/anthropic-py`.
|
|
162
|
+
|
|
163
|
+
## REST API
|
|
164
|
+
|
|
165
|
+
The server also exposes a traditional REST API under `/urls` using the same Bearer token auth, and redirects short URLs at `/:slug`.
|
|
166
|
+
|
|
167
|
+
## Development
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
pnpm test # run tests
|
|
171
|
+
pnpm test:coverage # coverage report
|
|
172
|
+
pnpm check # lint + format
|
|
173
|
+
pnpm db:studio # open Prisma Studio
|
|
174
|
+
```
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// Parse CLI args into process.env BEFORE any module is loaded.
|
|
4
|
+
// This must run before require('../dist/src/index') so that env.ts
|
|
5
|
+
// reads the correct values when it initialises.
|
|
6
|
+
const argv = process.argv.slice(2);
|
|
7
|
+
const flagMap = {
|
|
8
|
+
"--port": "PORT",
|
|
9
|
+
"-p": "PORT",
|
|
10
|
+
"--database-url": "DATABASE_URL",
|
|
11
|
+
"--hostname": "HOSTNAME",
|
|
12
|
+
"--https": "HTTPS",
|
|
13
|
+
"--enable-api": "ENABLE_API",
|
|
14
|
+
"--enable-mcp": "ENABLE_MCP",
|
|
15
|
+
"--max-expiry-seconds": "MAX_EXPIRY_SECONDS",
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
for (let i = 0; i < argv.length; i++) {
|
|
19
|
+
const envKey = flagMap[argv[i]];
|
|
20
|
+
if (envKey !== undefined && argv[i + 1] !== undefined) {
|
|
21
|
+
process.env[envKey] = argv[++i];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
require("../dist/src/index");
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as Prisma from './internal/prismaNamespaceBrowser';
|
|
2
|
+
export { Prisma };
|
|
3
|
+
export * as $Enums from './enums';
|
|
4
|
+
export * from './enums';
|
|
5
|
+
/**
|
|
6
|
+
* Model Url
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export type Url = Prisma.UrlModel;
|
|
10
|
+
/**
|
|
11
|
+
* Model User
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export type User = Prisma.UserModel;
|
|
15
|
+
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../generated/prisma/browser.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,MAAM,MAAM,mCAAmC,CAAA;AAC3D,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,OAAO,KAAK,MAAM,MAAM,SAAS,CAAA;AACjC,cAAc,SAAS,CAAC;AACxB;;;GAGG;AACH,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAA;AACjC;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file should be your main import to use Prisma-related types and utilities in a browser.
|
|
8
|
+
* Use it to get access to models, enums, and input types.
|
|
9
|
+
*
|
|
10
|
+
* This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
|
|
11
|
+
* See `client.ts` for the standard, server-side entry point.
|
|
12
|
+
*
|
|
13
|
+
* 🟢 You can import this file directly.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
49
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
50
|
+
};
|
|
51
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
+
exports.$Enums = exports.Prisma = void 0;
|
|
53
|
+
const Prisma = __importStar(require("./internal/prismaNamespaceBrowser"));
|
|
54
|
+
exports.Prisma = Prisma;
|
|
55
|
+
exports.$Enums = __importStar(require("./enums"));
|
|
56
|
+
__exportStar(require("./enums"), exports);
|
|
57
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../../generated/prisma/browser.ts"],"names":[],"mappings":";AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;;;;;GAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0EAA2D;AAClD,wBAAM;AACf,kDAAiC;AACjC,0CAAwB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import * as $Class from "./internal/class";
|
|
3
|
+
import * as Prisma from "./internal/prismaNamespace";
|
|
4
|
+
export * as $Enums from './enums';
|
|
5
|
+
export * from "./enums";
|
|
6
|
+
/**
|
|
7
|
+
* ## Prisma Client
|
|
8
|
+
*
|
|
9
|
+
* Type-safe database client for TypeScript
|
|
10
|
+
* @example
|
|
11
|
+
* ```
|
|
12
|
+
* const prisma = new PrismaClient({
|
|
13
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
14
|
+
* })
|
|
15
|
+
* // Fetch zero or more Urls
|
|
16
|
+
* const urls = await prisma.url.findMany()
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
20
|
+
*/
|
|
21
|
+
export declare const PrismaClient: $Class.PrismaClientConstructor;
|
|
22
|
+
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
|
23
|
+
export { Prisma };
|
|
24
|
+
/**
|
|
25
|
+
* Model Url
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export type Url = Prisma.UrlModel;
|
|
29
|
+
/**
|
|
30
|
+
* Model User
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export type User = Prisma.UserModel;
|
|
34
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../generated/prisma/client.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAA;AAExD,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAA;AAC1C,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAA;AAEpD,OAAO,KAAK,MAAM,MAAM,SAAS,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,gCAAgC,CAAA;AACzD,MAAM,MAAM,YAAY,CAAC,OAAO,SAAS,MAAM,CAAC,QAAQ,GAAG,KAAK,EAAE,QAAQ,SAAS,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,OAAO,SAAS,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,IAAI,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;AAC3S,OAAO,EAAE,MAAM,EAAE,CAAA;AAEjB;;;GAGG;AACH,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAA;AACjC;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
|
|
8
|
+
* If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
|
|
9
|
+
*
|
|
10
|
+
* 🟢 You can import this file directly.
|
|
11
|
+
*/
|
|
12
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(o, k2, desc);
|
|
19
|
+
}) : (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
o[k2] = m[k];
|
|
22
|
+
}));
|
|
23
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
24
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
25
|
+
}) : function(o, v) {
|
|
26
|
+
o["default"] = v;
|
|
27
|
+
});
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
45
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
46
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
47
|
+
};
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.Prisma = exports.PrismaClient = exports.$Enums = void 0;
|
|
50
|
+
const $Class = __importStar(require("./internal/class"));
|
|
51
|
+
const Prisma = __importStar(require("./internal/prismaNamespace"));
|
|
52
|
+
exports.Prisma = Prisma;
|
|
53
|
+
exports.$Enums = __importStar(require("./enums"));
|
|
54
|
+
__exportStar(require("./enums"), exports);
|
|
55
|
+
/**
|
|
56
|
+
* ## Prisma Client
|
|
57
|
+
*
|
|
58
|
+
* Type-safe database client for TypeScript
|
|
59
|
+
* @example
|
|
60
|
+
* ```
|
|
61
|
+
* const prisma = new PrismaClient({
|
|
62
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
63
|
+
* })
|
|
64
|
+
* // Fetch zero or more Urls
|
|
65
|
+
* const urls = await prisma.url.findMany()
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
69
|
+
*/
|
|
70
|
+
exports.PrismaClient = $Class.getPrismaClientClass();
|
|
71
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../generated/prisma/client.ts"],"names":[],"mappings":";AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOH,yDAA0C;AAC1C,mEAAoD;AAqB3C,wBAAM;AAnBf,kDAAiC;AACjC,0CAAuB;AACvB;;;;;;;;;;;;;;GAcG;AACU,QAAA,YAAY,GAAG,MAAM,CAAC,oBAAoB,EAAE,CAAA"}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import type * as Prisma from "./internal/prismaNamespace";
|
|
2
|
+
export type StringFilter<$PrismaModel = never> = {
|
|
3
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
4
|
+
in?: string[];
|
|
5
|
+
notIn?: string[];
|
|
6
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
7
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
8
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
9
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
10
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
11
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
12
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
13
|
+
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
|
14
|
+
};
|
|
15
|
+
export type DateTimeFilter<$PrismaModel = never> = {
|
|
16
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
17
|
+
in?: Date[] | string[];
|
|
18
|
+
notIn?: Date[] | string[];
|
|
19
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
20
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
21
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
22
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
23
|
+
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
|
24
|
+
};
|
|
25
|
+
export type IntFilter<$PrismaModel = never> = {
|
|
26
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
27
|
+
in?: number[];
|
|
28
|
+
notIn?: number[];
|
|
29
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
30
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
31
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
32
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
33
|
+
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
|
34
|
+
};
|
|
35
|
+
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|
36
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
37
|
+
in?: Date[] | string[] | null;
|
|
38
|
+
notIn?: Date[] | string[] | null;
|
|
39
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
40
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
41
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
42
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
43
|
+
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
44
|
+
};
|
|
45
|
+
export type SortOrderInput = {
|
|
46
|
+
sort: Prisma.SortOrder;
|
|
47
|
+
nulls?: Prisma.NullsOrder;
|
|
48
|
+
};
|
|
49
|
+
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|
50
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
51
|
+
in?: string[];
|
|
52
|
+
notIn?: string[];
|
|
53
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
54
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
55
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
56
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
57
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
58
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
59
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
60
|
+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
|
61
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
62
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
63
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
64
|
+
};
|
|
65
|
+
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
66
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
67
|
+
in?: Date[] | string[];
|
|
68
|
+
notIn?: Date[] | string[];
|
|
69
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
70
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
71
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
72
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
73
|
+
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
|
74
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
75
|
+
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
76
|
+
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
77
|
+
};
|
|
78
|
+
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
79
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
80
|
+
in?: number[];
|
|
81
|
+
notIn?: number[];
|
|
82
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
83
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
84
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
85
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
86
|
+
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
|
87
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
88
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
89
|
+
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
90
|
+
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
91
|
+
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
92
|
+
};
|
|
93
|
+
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
94
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
95
|
+
in?: Date[] | string[] | null;
|
|
96
|
+
notIn?: Date[] | string[] | null;
|
|
97
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
98
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
99
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
100
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
101
|
+
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
102
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
103
|
+
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
104
|
+
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
105
|
+
};
|
|
106
|
+
export type NestedStringFilter<$PrismaModel = never> = {
|
|
107
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
108
|
+
in?: string[];
|
|
109
|
+
notIn?: string[];
|
|
110
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
111
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
112
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
113
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
114
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
115
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
116
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
117
|
+
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
|
118
|
+
};
|
|
119
|
+
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
|
120
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
121
|
+
in?: Date[] | string[];
|
|
122
|
+
notIn?: Date[] | string[];
|
|
123
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
124
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
125
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
126
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
127
|
+
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
|
128
|
+
};
|
|
129
|
+
export type NestedIntFilter<$PrismaModel = never> = {
|
|
130
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
131
|
+
in?: number[];
|
|
132
|
+
notIn?: number[];
|
|
133
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
134
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
135
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
136
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
137
|
+
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
|
138
|
+
};
|
|
139
|
+
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|
140
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
141
|
+
in?: Date[] | string[] | null;
|
|
142
|
+
notIn?: Date[] | string[] | null;
|
|
143
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
144
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
145
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
146
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
147
|
+
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
148
|
+
};
|
|
149
|
+
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|
150
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
151
|
+
in?: string[];
|
|
152
|
+
notIn?: string[];
|
|
153
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
154
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
155
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
156
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
157
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
158
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
159
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
160
|
+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
|
161
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
162
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
163
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
164
|
+
};
|
|
165
|
+
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
166
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
167
|
+
in?: Date[] | string[];
|
|
168
|
+
notIn?: Date[] | string[];
|
|
169
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
170
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
171
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
172
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
173
|
+
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
|
174
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
175
|
+
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
176
|
+
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
177
|
+
};
|
|
178
|
+
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
179
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
180
|
+
in?: number[];
|
|
181
|
+
notIn?: number[];
|
|
182
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
183
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
184
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
185
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
186
|
+
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
|
187
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
188
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
189
|
+
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
190
|
+
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
191
|
+
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
192
|
+
};
|
|
193
|
+
export type NestedFloatFilter<$PrismaModel = never> = {
|
|
194
|
+
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
195
|
+
in?: number[];
|
|
196
|
+
notIn?: number[];
|
|
197
|
+
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
198
|
+
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
199
|
+
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
200
|
+
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
201
|
+
not?: Prisma.NestedFloatFilter<$PrismaModel> | number;
|
|
202
|
+
};
|
|
203
|
+
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
204
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
205
|
+
in?: Date[] | string[] | null;
|
|
206
|
+
notIn?: Date[] | string[] | null;
|
|
207
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
208
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
209
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
210
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
211
|
+
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
212
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
213
|
+
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
214
|
+
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
215
|
+
};
|
|
216
|
+
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
|
217
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
|
218
|
+
in?: number[] | null;
|
|
219
|
+
notIn?: number[] | null;
|
|
220
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
221
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
222
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
223
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
224
|
+
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
|
|
225
|
+
};
|
|
226
|
+
//# sourceMappingURL=commonInputTypes.d.ts.map
|