Compare commits
91 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 86d7426e8b | |||
| afe56393e7 | |||
| b2cd26af30 | |||
| 0594816ea4 | |||
| 71fe36c0b8 | |||
| e0d575454e | |||
| 32bba31e72 | |||
| 1233535b20 | |||
| 2c737b22f1 | |||
| a3bfe9f374 | |||
| a106bb15a8 | |||
| d9a431d99a | |||
| 83377a7d0d | |||
| a81618007c | |||
| f56c49e242 | |||
| 4fa13a1d28 | |||
| 6b90bab30c | |||
| 7914c025a1 | |||
| 8c32b0c5e0 | |||
| f34178978e | |||
| 9a1a641e97 | |||
| 557e729ca9 | |||
| f3a8a7e25a | |||
| b9c2ddb38b | |||
| ee0434fa08 | |||
| 7cbc0c9178 | |||
| 92318608dd | |||
| 8e5c0801ef | |||
| 0844fd0577 | |||
| 1d48a2fe7b | |||
| 43a3968788 | |||
| e88d21fa35 | |||
| 546bf65b8b | |||
| 5d378ccb56 | |||
| 24f303355b | |||
| 87cce83030 | |||
| 688a9096c2 | |||
| 6b7eec67b8 | |||
| f55c7e47c9 | |||
| cb71133186 | |||
| 91fa272fe6 | |||
| 5ea7bb8f95 | |||
| 9fed61de68 | |||
| ec4c8da786 | |||
| 2f17f24b3b | |||
| 1230dacfa2 | |||
| 005e939a54 | |||
| 85fa991c30 | |||
| 1dc3c7ce07 | |||
| e764932c39 | |||
| e74611cd96 | |||
| 33b34d08a7 | |||
| 7ffbd98f2e | |||
| 02dc4f0305 | |||
| 025e4e8a44 | |||
| 7073f5aa33 | |||
| 5169107a04 | |||
| b735981b6b | |||
| 762edd8eb7 | |||
| e04a1ad746 | |||
| c628a78b27 | |||
| 9145ea5ba4 | |||
| 4bec198db6 | |||
| 27755d4a00 | |||
| 0e634c84ff | |||
| 3b43393e5d | |||
| cb8c6b3958 | |||
| 5a6970a4c5 | |||
| 7486bcf939 | |||
| 4814e67b19 | |||
| 5be32e0dcf | |||
| 68000c8272 | |||
| bd5a54031e | |||
| f86ab35b32 | |||
| e9e3451c2d | |||
| ae5ac35058 | |||
| 6791a6735b | |||
| a99c9f5102 | |||
| 8e225aa254 | |||
| 6d046e90ed | |||
| 561aef8ee3 | |||
| 140e6c416a | |||
| 51db9de171 | |||
| 6b176196d3 | |||
| 1a45f708ec | |||
| 7fb53acfa4 | |||
| e517a45c0f | |||
| e9a7ded305 | |||
| 7b04aa3116 | |||
| a9bf8317f4 | |||
| e219b5db4d |
@@ -26,7 +26,7 @@ services:
|
|||||||
image: adminer
|
image: adminer
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8081:8080
|
||||||
depends_on:
|
depends_on:
|
||||||
- pgsql
|
- pgsql
|
||||||
redisinsight:
|
redisinsight:
|
||||||
|
|||||||
+14
-6
@@ -1,4 +1,4 @@
|
|||||||
name: Build and Publish
|
name: API - Build and Publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
@@ -8,7 +8,10 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: api
|
||||||
|
steps:x
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -47,6 +50,7 @@ jobs:
|
|||||||
- name: Build and push the Docker image
|
- name: Build and push the Docker image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
context: ./api
|
||||||
push: true
|
push: true
|
||||||
target: runtime
|
target: runtime
|
||||||
tags: |
|
tags: |
|
||||||
@@ -56,6 +60,7 @@ jobs:
|
|||||||
- name: Build and push the migration image
|
- name: Build and push the migration image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
context: ./api
|
||||||
push: true
|
push: true
|
||||||
target: migration
|
target: migration
|
||||||
tags: |
|
tags: |
|
||||||
@@ -66,6 +71,9 @@ jobs:
|
|||||||
name: Run Migrations
|
name: Run Migrations
|
||||||
needs: [build]
|
needs: [build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: api
|
||||||
steps:
|
steps:
|
||||||
- name: Set the Kubernetes context
|
- name: Set the Kubernetes context
|
||||||
uses: azure/k8s-set-context@v2
|
uses: azure/k8s-set-context@v2
|
||||||
@@ -108,8 +116,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
lintType: dryrun
|
lintType: dryrun
|
||||||
manifests: |
|
manifests: |
|
||||||
kubernetes/deployment.yaml
|
api/kubernetes/deployment.yaml
|
||||||
kubernetes/ingress.yaml
|
api/kubernetes/ingress.yaml
|
||||||
namespace: optima
|
namespace: optima
|
||||||
|
|
||||||
- name: Deploy to the Kubernetes cluster
|
- name: Deploy to the Kubernetes cluster
|
||||||
@@ -119,7 +127,7 @@ jobs:
|
|||||||
force: true
|
force: true
|
||||||
skip-tls-verify: true
|
skip-tls-verify: true
|
||||||
manifests: |
|
manifests: |
|
||||||
kubernetes/deployment.yaml
|
api/kubernetes/deployment.yaml
|
||||||
kubernetes/ingress.yaml
|
api/kubernetes/ingress.yaml
|
||||||
images: |
|
images: |
|
||||||
ghcr.io/project-optima/ttscm-api:${{ github.event.release.tag_name }}
|
ghcr.io/project-optima/ttscm-api:${{ github.event.release.tag_name }}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Tests
|
name: API - Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -20,8 +20,10 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Generate Prisma client
|
- name: Generate API Prisma client
|
||||||
run: DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy" bunx prisma generate
|
run: DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy" bunx prisma generate
|
||||||
|
working-directory: api
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: bun test --preload ./tests/setup.ts
|
run: bun test --preload ./tests/setup.ts
|
||||||
|
working-directory: api
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
name: Dalpuri - Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["**"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
with:
|
||||||
|
bun-version: "1.3.6"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Generate Dalpuri Prisma client (CW MSSQL)
|
||||||
|
run: DATABASE_URL="sqlserver://localhost:1433;database=dummy;user=dummy;password=dummy;trustServerCertificate=true" bunx prisma generate
|
||||||
|
working-directory: dalpuri
|
||||||
|
|
||||||
|
- name: Generate API Prisma client (required by Dalpuri translators)
|
||||||
|
run: DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy" bunx prisma generate
|
||||||
|
working-directory: api
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: bun test
|
||||||
|
working-directory: dalpuri
|
||||||
@@ -0,0 +1,496 @@
|
|||||||
|
name: Build and Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# ==========================================================================
|
||||||
|
# Test jobs — all three run concurrently. No build or deploy job may
|
||||||
|
# proceed until every test job has succeeded.
|
||||||
|
# ==========================================================================
|
||||||
|
|
||||||
|
test-api:
|
||||||
|
name: Test - API
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
with:
|
||||||
|
bun-version: "1.3.6"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Generate API Prisma client
|
||||||
|
run: DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy" bunx prisma generate
|
||||||
|
working-directory: api
|
||||||
|
|
||||||
|
- name: Run API tests
|
||||||
|
run: bun test --preload ./tests/setup.ts
|
||||||
|
working-directory: api
|
||||||
|
|
||||||
|
test-dalpuri:
|
||||||
|
name: Test - Dalpuri
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
with:
|
||||||
|
bun-version: "1.3.6"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Generate Dalpuri Prisma client (CW MSSQL)
|
||||||
|
run: DATABASE_URL="sqlserver://localhost:1433;database=dummy;user=dummy;password=dummy;trustServerCertificate=true" bunx prisma generate
|
||||||
|
working-directory: dalpuri
|
||||||
|
|
||||||
|
- name: Generate API Prisma client (required by Dalpuri translators)
|
||||||
|
run: DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy" bunx prisma generate
|
||||||
|
working-directory: api
|
||||||
|
|
||||||
|
- name: Run Dalpuri tests
|
||||||
|
run: bun test
|
||||||
|
working-directory: dalpuri
|
||||||
|
|
||||||
|
test-ui:
|
||||||
|
name: Test - UI
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ui
|
||||||
|
steps:
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
with:
|
||||||
|
bun-version: "1.3.11"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Run UI unit tests
|
||||||
|
run: bun run test:unit -- --run
|
||||||
|
env:
|
||||||
|
PUBLIC_API_URL: "https://api.example.com"
|
||||||
|
|
||||||
|
# ==========================================================================
|
||||||
|
# Build jobs — run concurrently, but all require every test to pass first.
|
||||||
|
# ==========================================================================
|
||||||
|
|
||||||
|
build-api:
|
||||||
|
name: Build - API
|
||||||
|
needs: [test-api, test-dalpuri, test-ui]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push the API runtime image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: api/Dockerfile
|
||||||
|
push: true
|
||||||
|
target: runtime
|
||||||
|
tags: |
|
||||||
|
ghcr.io/horizonstacksoftware/optima-api:latest
|
||||||
|
ghcr.io/horizonstacksoftware/optima-api:${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
|
- name: Build and push the API migration image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: api/Dockerfile
|
||||||
|
push: true
|
||||||
|
target: migration
|
||||||
|
tags: |
|
||||||
|
ghcr.io/horizonstacksoftware/optima-api-migrate:latest
|
||||||
|
ghcr.io/horizonstacksoftware/optima-api-migrate:${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
|
- name: Build and push the dalpuri sync image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: api/Dockerfile
|
||||||
|
push: true
|
||||||
|
target: dalpuri-sync
|
||||||
|
tags: |
|
||||||
|
ghcr.io/horizonstacksoftware/optima-dalpuri-sync:latest
|
||||||
|
ghcr.io/horizonstacksoftware/optima-dalpuri-sync:${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
|
build-worker:
|
||||||
|
name: Build - Worker
|
||||||
|
needs: [test-api, test-dalpuri, test-ui]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push the worker image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: api/Dockerfile
|
||||||
|
push: true
|
||||||
|
target: worker
|
||||||
|
tags: |
|
||||||
|
ghcr.io/horizonstacksoftware/optima-worker:latest
|
||||||
|
ghcr.io/horizonstacksoftware/optima-worker:${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
|
build-ui-server:
|
||||||
|
name: Build - UI Server
|
||||||
|
needs: [test-api, test-dalpuri, test-ui]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build and push the UI server image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ui/Dockerfile
|
||||||
|
push: true
|
||||||
|
build-args: |
|
||||||
|
PUBLIC_API_URL=https://opt-api.osdci.net
|
||||||
|
tags: |
|
||||||
|
ghcr.io/horizonstacksoftware/optima-ui:latest
|
||||||
|
ghcr.io/horizonstacksoftware/optima-ui:${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
|
build-ui-desktop-macos:
|
||||||
|
name: Build - UI Desktop (macOS)
|
||||||
|
needs: [test-api, test-dalpuri, test-ui]
|
||||||
|
runs-on: macos-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ui
|
||||||
|
steps:
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
|
||||||
|
- name: Install Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Rebuild native modules
|
||||||
|
run: npm rebuild --ignore-scripts
|
||||||
|
env:
|
||||||
|
HUSKY: "0"
|
||||||
|
HUSKY_SKIP_INSTALL: "1"
|
||||||
|
|
||||||
|
- name: Build macOS distributables
|
||||||
|
run: bun run make:macos
|
||||||
|
env:
|
||||||
|
PUBLIC_API_URL: https://opt-api.osdci.net
|
||||||
|
|
||||||
|
- name: Upload macOS artifacts to release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
ui/out/make/**/*.dmg
|
||||||
|
ui/out/make/**/*.zip
|
||||||
|
|
||||||
|
build-ui-desktop-windows:
|
||||||
|
name: Build - UI Desktop (Windows)
|
||||||
|
needs: [test-api, test-dalpuri, test-ui]
|
||||||
|
runs-on: windows-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ui
|
||||||
|
steps:
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
|
||||||
|
- name: Install Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Rebuild native modules
|
||||||
|
run: npm rebuild --ignore-scripts
|
||||||
|
env:
|
||||||
|
HUSKY: "0"
|
||||||
|
HUSKY_SKIP_INSTALL: "1"
|
||||||
|
|
||||||
|
- name: Build Windows distributables
|
||||||
|
run: bun run make -- --platform win32
|
||||||
|
env:
|
||||||
|
PUBLIC_API_URL: https://opt-api.osdci.net
|
||||||
|
|
||||||
|
- name: Upload Windows artifacts to release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
ui/out/make/**/*.exe
|
||||||
|
|
||||||
|
# Runs a full CW → API data sync as a Kubernetes Job (the CW MSSQL and
|
||||||
|
# API Postgres addresses are internal to the cluster and unreachable from
|
||||||
|
# GitHub-hosted runners). Waits for both images to be built first and
|
||||||
|
# must succeed before either the API or worker deploys.
|
||||||
|
sync-cw-to-api:
|
||||||
|
name: Sync - CW to API
|
||||||
|
needs: [migrate-api, build-worker]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set the Kubernetes context
|
||||||
|
uses: azure/k8s-set-context@v2
|
||||||
|
with:
|
||||||
|
method: kubeconfig
|
||||||
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
||||||
|
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Delete previous sync job if exists
|
||||||
|
run: kubectl delete job -n optima -l app=dalpuri-sync --ignore-not-found
|
||||||
|
|
||||||
|
- name: Apply sync job
|
||||||
|
run: |
|
||||||
|
TAG=${{ github.event.release.tag_name }}
|
||||||
|
sed "s/RELEASE_TAG/${TAG}/g" dalpuri/kubernetes/sync-job.yaml | kubectl apply -f -
|
||||||
|
|
||||||
|
- name: Wait for sync to complete
|
||||||
|
run: |
|
||||||
|
TAG=${{ github.event.release.tag_name }}
|
||||||
|
JOB="job/dalpuri-sync-${TAG}"
|
||||||
|
|
||||||
|
kubectl wait --for=condition=complete --timeout=7200s -n optima "$JOB" &
|
||||||
|
WAIT_COMPLETE=$!
|
||||||
|
kubectl wait --for=condition=failed --timeout=7200s -n optima "$JOB" &
|
||||||
|
WAIT_FAILED=$!
|
||||||
|
|
||||||
|
wait -n $WAIT_COMPLETE $WAIT_FAILED
|
||||||
|
|
||||||
|
echo "--- Sync job logs ---"
|
||||||
|
kubectl logs -n optima "$JOB" --tail=500 || true
|
||||||
|
|
||||||
|
if kubectl get -n optima "$JOB" -o jsonpath='{.status.conditions[?(@.type=="Complete")].status}' | grep -q "True"; then
|
||||||
|
echo "Sync completed successfully."
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "Sync FAILED."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ==========================================================================
|
||||||
|
# Deploy jobs
|
||||||
|
# ==========================================================================
|
||||||
|
|
||||||
|
migrate-api:
|
||||||
|
name: Migrate - API Database
|
||||||
|
needs: [build-api]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set the Kubernetes context
|
||||||
|
uses: azure/k8s-set-context@v2
|
||||||
|
with:
|
||||||
|
method: kubeconfig
|
||||||
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
||||||
|
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Delete previous migration job if exists
|
||||||
|
run: kubectl delete job -n optima -l app=prisma-migrate --ignore-not-found
|
||||||
|
|
||||||
|
- name: Apply migration job
|
||||||
|
run: |
|
||||||
|
TAG=${{ github.event.release.tag_name }}
|
||||||
|
sed "s/RELEASE_TAG/${TAG}/g" api/kubernetes/migration-job.yaml | kubectl apply -f -
|
||||||
|
|
||||||
|
- name: Wait for migration to complete
|
||||||
|
run: |
|
||||||
|
TAG=${{ github.event.release.tag_name }}
|
||||||
|
JOB="job/prisma-migrate-${TAG}"
|
||||||
|
|
||||||
|
# Wait for either success or failure — whichever comes first.
|
||||||
|
kubectl wait --for=condition=complete --timeout=180s -n optima "$JOB" &
|
||||||
|
WAIT_COMPLETE=$!
|
||||||
|
kubectl wait --for=condition=failed --timeout=180s -n optima "$JOB" &
|
||||||
|
WAIT_FAILED=$!
|
||||||
|
|
||||||
|
# wait -n returns when the first background job exits
|
||||||
|
wait -n $WAIT_COMPLETE $WAIT_FAILED
|
||||||
|
FIRST_EXIT=$?
|
||||||
|
|
||||||
|
# Print logs regardless of outcome so failures are diagnosable
|
||||||
|
echo "--- Migration pod logs ---"
|
||||||
|
kubectl logs -n optima "$JOB" --tail=200 || true
|
||||||
|
|
||||||
|
# Determine outcome by checking the job's actual conditions
|
||||||
|
if kubectl get -n optima "$JOB" -o jsonpath='{.status.conditions[?(@.type=="Complete")].status}' | grep -q "True"; then
|
||||||
|
echo "Migration completed successfully."
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "Migration FAILED."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
deploy-api:
|
||||||
|
name: Deploy - API
|
||||||
|
needs: [migrate-api, sync-cw-to-api]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set the Kubernetes context
|
||||||
|
uses: azure/k8s-set-context@v2
|
||||||
|
with:
|
||||||
|
method: kubeconfig
|
||||||
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
||||||
|
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Lint API Kubernetes manifests
|
||||||
|
uses: azure/k8s-lint@v3
|
||||||
|
with:
|
||||||
|
lintType: dryrun
|
||||||
|
manifests: |
|
||||||
|
api/kubernetes/deployment.yaml
|
||||||
|
api/kubernetes/ingress.yaml
|
||||||
|
namespace: optima
|
||||||
|
|
||||||
|
- name: Deploy API to the Kubernetes cluster
|
||||||
|
uses: azure/k8s-deploy@v5
|
||||||
|
with:
|
||||||
|
namespace: optima
|
||||||
|
force: true
|
||||||
|
skip-tls-verify: true
|
||||||
|
manifests: |
|
||||||
|
api/kubernetes/deployment.yaml
|
||||||
|
api/kubernetes/ingress.yaml
|
||||||
|
images: |
|
||||||
|
ghcr.io/horizonstacksoftware/optima-api:${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
|
deploy-ui:
|
||||||
|
name: Deploy - UI Server
|
||||||
|
needs: [build-ui-server]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set the Kubernetes context
|
||||||
|
uses: azure/k8s-set-context@v2
|
||||||
|
with:
|
||||||
|
method: kubeconfig
|
||||||
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
||||||
|
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Lint UI Kubernetes manifests
|
||||||
|
uses: azure/k8s-lint@v3
|
||||||
|
with:
|
||||||
|
lintType: dryrun
|
||||||
|
manifests: |
|
||||||
|
ui/kubernetes/deployment.yaml
|
||||||
|
ui/kubernetes/ingress.yaml
|
||||||
|
namespace: optima
|
||||||
|
|
||||||
|
- name: Deploy UI to the Kubernetes cluster
|
||||||
|
uses: azure/k8s-deploy@v5
|
||||||
|
with:
|
||||||
|
namespace: optima
|
||||||
|
force: true
|
||||||
|
skip-tls-verify: true
|
||||||
|
manifests: |
|
||||||
|
ui/kubernetes/deployment.yaml
|
||||||
|
ui/kubernetes/ingress.yaml
|
||||||
|
images: |
|
||||||
|
ghcr.io/horizonstacksoftware/optima-ui:${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
|
deploy-worker:
|
||||||
|
name: Deploy - Worker
|
||||||
|
needs: [build-worker, sync-cw-to-api]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set the Kubernetes context
|
||||||
|
uses: azure/k8s-set-context@v2
|
||||||
|
with:
|
||||||
|
method: kubeconfig
|
||||||
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
||||||
|
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Lint worker Kubernetes manifests
|
||||||
|
uses: azure/k8s-lint@v3
|
||||||
|
with:
|
||||||
|
lintType: dryrun
|
||||||
|
manifests: |
|
||||||
|
api/kubernetes/worker-deployment.yaml
|
||||||
|
namespace: optima
|
||||||
|
|
||||||
|
- name: Deploy worker to the Kubernetes cluster
|
||||||
|
uses: azure/k8s-deploy@v5
|
||||||
|
with:
|
||||||
|
namespace: optima
|
||||||
|
force: true
|
||||||
|
skip-tls-verify: true
|
||||||
|
manifests: |
|
||||||
|
api/kubernetes/worker-deployment.yaml
|
||||||
|
images: |
|
||||||
|
ghcr.io/horizonstacksoftware/optima-worker:${{ github.event.release.tag_name }}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
name: UI - Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["**"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ui
|
||||||
|
steps:
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
with:
|
||||||
|
bun-version: "1.3.11"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Run unit tests
|
||||||
|
run: bun run test:unit -- --run
|
||||||
|
env:
|
||||||
|
PUBLIC_API_URL: "https://api.example.com"
|
||||||
+49
-134
@@ -1,154 +1,69 @@
|
|||||||
# Logs
|
# macOS metadata
|
||||||
logs
|
__MACOSX/
|
||||||
*.log
|
.DS_Store
|
||||||
*.jsonl
|
.AppleDouble
|
||||||
cw-api-logs/
|
.LSOverride
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
lerna-debug.log*
|
|
||||||
|
|
||||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
# Windows
|
||||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
Thumbs.db
|
||||||
|
ehthumbs.db
|
||||||
|
Desktop.ini
|
||||||
|
|
||||||
# Runtime data
|
# Dependencies
|
||||||
pids
|
|
||||||
*.pid
|
|
||||||
*.seed
|
|
||||||
*.pid.lock
|
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
||||||
lib-cov
|
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
|
||||||
coverage
|
|
||||||
*.lcov
|
|
||||||
|
|
||||||
# nyc test coverage
|
|
||||||
.nyc_output
|
|
||||||
|
|
||||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
||||||
.grunt
|
|
||||||
|
|
||||||
# Bower dependency directory (https://bower.io/)
|
|
||||||
bower_components
|
|
||||||
|
|
||||||
# node-waf configuration
|
|
||||||
.lock-wscript
|
|
||||||
|
|
||||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
||||||
build/Release
|
|
||||||
|
|
||||||
# Dependency directories
|
|
||||||
node_modules/
|
node_modules/
|
||||||
jspm_packages/
|
|
||||||
|
|
||||||
# Snowpack dependency directory (https://snowpack.dev/)
|
# Environment variables
|
||||||
web_modules/
|
|
||||||
|
|
||||||
# TypeScript cache
|
|
||||||
*.tsbuildinfo
|
|
||||||
|
|
||||||
# Optional npm cache directory
|
|
||||||
.npm
|
|
||||||
|
|
||||||
# Optional eslint cache
|
|
||||||
.eslintcache
|
|
||||||
|
|
||||||
# Optional stylelint cache
|
|
||||||
.stylelintcache
|
|
||||||
|
|
||||||
# Optional REPL history
|
|
||||||
.node_repl_history
|
|
||||||
|
|
||||||
# Output of 'npm pack'
|
|
||||||
*.tgz
|
|
||||||
|
|
||||||
# Yarn Integrity file
|
|
||||||
.yarn-integrity
|
|
||||||
|
|
||||||
# dotenv environment variable files
|
|
||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
!.env.example
|
!.env.example
|
||||||
|
!.env.test
|
||||||
|
|
||||||
# parcel-bundler cache (https://parceljs.org/)
|
# Logs
|
||||||
.cache
|
*.log
|
||||||
.parcel-cache
|
*.jsonl
|
||||||
|
logs/
|
||||||
|
|
||||||
# Next.js build output
|
# TypeScript
|
||||||
.next
|
*.tsbuildinfo
|
||||||
out
|
|
||||||
|
|
||||||
# Nuxt.js build / generate output
|
# Bun
|
||||||
.nuxt
|
.bun/
|
||||||
dist
|
|
||||||
|
|
||||||
# Gatsby files
|
# Build outputs
|
||||||
.cache/
|
dist/
|
||||||
# Comment in the public line in if your project uses Gatsby and not Next.js
|
build/
|
||||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
out/
|
||||||
# public
|
.output/
|
||||||
|
|
||||||
# vuepress build output
|
# SvelteKit
|
||||||
.vuepress/dist
|
|
||||||
|
|
||||||
# vuepress v2.x temp and cache directory
|
|
||||||
.temp
|
|
||||||
.cache
|
|
||||||
|
|
||||||
# Sveltekit cache directory
|
|
||||||
.svelte-kit/
|
.svelte-kit/
|
||||||
|
|
||||||
# vitepress build output
|
# Vite
|
||||||
**/.vitepress/dist
|
.vite/
|
||||||
|
|
||||||
# vitepress cache directory
|
|
||||||
**/.vitepress/cache
|
|
||||||
|
|
||||||
# Docusaurus cache and generated files
|
|
||||||
.docusaurus
|
|
||||||
|
|
||||||
# Serverless directories
|
|
||||||
.serverless/
|
|
||||||
|
|
||||||
# FuseBox cache
|
|
||||||
.fusebox/
|
|
||||||
|
|
||||||
# DynamoDB Local files
|
|
||||||
.dynamodb/
|
|
||||||
|
|
||||||
# Firebase cache directory
|
|
||||||
.firebase/
|
|
||||||
|
|
||||||
# TernJS port file
|
|
||||||
.tern-port
|
|
||||||
|
|
||||||
# Stores VSCode versions used for testing VSCode extensions
|
|
||||||
.vscode-test
|
|
||||||
|
|
||||||
# yarn v3
|
|
||||||
.pnp.*
|
|
||||||
.yarn/*
|
|
||||||
!.yarn/patches
|
|
||||||
!.yarn/plugins
|
|
||||||
!.yarn/releases
|
|
||||||
!.yarn/sdks
|
|
||||||
!.yarn/versions
|
|
||||||
|
|
||||||
# Vite logs files
|
|
||||||
vite.config.js.timestamp-*
|
vite.config.js.timestamp-*
|
||||||
vite.config.ts.timestamp-*
|
vite.config.ts.timestamp-*
|
||||||
|
|
||||||
.permissions.key
|
# Test coverage
|
||||||
.refreshToken.key
|
coverage/
|
||||||
.secureValues.key
|
.nyc_output/
|
||||||
.accessToken.key
|
|
||||||
|
|
||||||
public-keys/
|
# Local Docker data volumes
|
||||||
production-keys/
|
.docker/postgres/
|
||||||
|
.docker/redis/dump.rdb
|
||||||
|
|
||||||
microsoft-oauth.json
|
# Generated Prisma client
|
||||||
|
api/generated/
|
||||||
|
dalpuri/generated/
|
||||||
|
|
||||||
.docker/postgres
|
# Secret key files
|
||||||
.docker/redis
|
api/.permissions.key
|
||||||
|
api/.refreshToken.key
|
||||||
|
api/.secureKeys.key
|
||||||
|
api/.accessToken.key
|
||||||
|
api/.secureValues.key
|
||||||
|
api/production-keys/
|
||||||
|
api/public-keys/
|
||||||
|
|
||||||
|
# Temporary / scratch files
|
||||||
|
git-backup.zip
|
||||||
|
configurations-top-150-and-stats.json
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
_
|
||||||
-73
@@ -1,73 +0,0 @@
|
|||||||
# ---- Stage 1: Install dependencies ----
|
|
||||||
FROM oven/bun:1 AS deps
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY package.json bun.lock ./
|
|
||||||
RUN bun install --frozen-lockfile --production
|
|
||||||
|
|
||||||
# ---- Stage 2: Build ----
|
|
||||||
FROM oven/bun:1 AS build
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Copy dependency manifests and install all deps (including dev)
|
|
||||||
COPY package.json bun.lock ./
|
|
||||||
RUN bun install --frozen-lockfile
|
|
||||||
|
|
||||||
# Copy source code and supporting files
|
|
||||||
COPY src/ src/
|
|
||||||
COPY prisma/ prisma/
|
|
||||||
COPY prisma.config.ts tsconfig.json ./
|
|
||||||
|
|
||||||
# Generate Prisma client (dummy URL — generate only needs the schema, not a real DB)
|
|
||||||
RUN DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy" bunx prisma generate
|
|
||||||
|
|
||||||
# Compile to a standalone executable
|
|
||||||
RUN NODE_ENV=production bun build src/index.ts \
|
|
||||||
--compile \
|
|
||||||
--minify \
|
|
||||||
--target=bun-linux-x64 \
|
|
||||||
--outfile=server
|
|
||||||
|
|
||||||
# ---- Stage 3: Production image ----
|
|
||||||
FROM ubuntu:22.04 AS runtime
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Install minimal runtime dependencies (CA certs for HTTPS calls)
|
|
||||||
RUN apt-get update && \
|
|
||||||
apt-get install -y --no-install-recommends ca-certificates && \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Copy the compiled binary from the build stage
|
|
||||||
COPY --from=build /app/server ./server
|
|
||||||
|
|
||||||
# Copy Prisma artifacts needed at runtime
|
|
||||||
COPY --from=build /app/generated/ ./generated/
|
|
||||||
COPY --from=build /app/prisma/ ./prisma/
|
|
||||||
COPY --from=build /app/prisma.config.ts ./prisma.config.ts
|
|
||||||
|
|
||||||
# Copy production node_modules (Prisma adapter needs native bindings)
|
|
||||||
COPY --from=deps /app/node_modules/ ./node_modules/
|
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
|
||||||
EXPOSE 3000
|
|
||||||
|
|
||||||
CMD ["./server"]
|
|
||||||
|
|
||||||
# ---- Stage 4: Migration runner ----
|
|
||||||
FROM oven/bun:1 AS migration
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY package.json bun.lock ./
|
|
||||||
RUN bun install --frozen-lockfile
|
|
||||||
|
|
||||||
COPY prisma/ prisma/
|
|
||||||
COPY prisma.config.ts ./
|
|
||||||
|
|
||||||
COPY prisma/migrate-entrypoint.sh ./prisma/migrate-entrypoint.sh
|
|
||||||
RUN chmod +x prisma/migrate-entrypoint.sh
|
|
||||||
|
|
||||||
CMD ["sh", "prisma/migrate-entrypoint.sh"]
|
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
# ttsci-api
|
# optima
|
||||||
The Api for the TTS Credentials Manager
|
The primary repository for Optima.
|
||||||
|
|||||||
+154
@@ -0,0 +1,154 @@
|
|||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
*.jsonl
|
||||||
|
cw-api-logs/
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
|
||||||
|
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||||
|
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||||
|
|
||||||
|
# Runtime data
|
||||||
|
pids
|
||||||
|
*.pid
|
||||||
|
*.seed
|
||||||
|
*.pid.lock
|
||||||
|
|
||||||
|
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||||
|
lib-cov
|
||||||
|
|
||||||
|
# Coverage directory used by tools like istanbul
|
||||||
|
coverage
|
||||||
|
*.lcov
|
||||||
|
|
||||||
|
# nyc test coverage
|
||||||
|
.nyc_output
|
||||||
|
|
||||||
|
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||||
|
.grunt
|
||||||
|
|
||||||
|
# Bower dependency directory (https://bower.io/)
|
||||||
|
bower_components
|
||||||
|
|
||||||
|
# node-waf configuration
|
||||||
|
.lock-wscript
|
||||||
|
|
||||||
|
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||||
|
build/Release
|
||||||
|
|
||||||
|
# Dependency directories
|
||||||
|
node_modules/
|
||||||
|
jspm_packages/
|
||||||
|
|
||||||
|
# Snowpack dependency directory (https://snowpack.dev/)
|
||||||
|
web_modules/
|
||||||
|
|
||||||
|
# TypeScript cache
|
||||||
|
*.tsbuildinfo
|
||||||
|
|
||||||
|
# Optional npm cache directory
|
||||||
|
.npm
|
||||||
|
|
||||||
|
# Optional eslint cache
|
||||||
|
.eslintcache
|
||||||
|
|
||||||
|
# Optional stylelint cache
|
||||||
|
.stylelintcache
|
||||||
|
|
||||||
|
# Optional REPL history
|
||||||
|
.node_repl_history
|
||||||
|
|
||||||
|
# Output of 'npm pack'
|
||||||
|
*.tgz
|
||||||
|
|
||||||
|
# Yarn Integrity file
|
||||||
|
.yarn-integrity
|
||||||
|
|
||||||
|
# dotenv environment variable files
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
|
||||||
|
# parcel-bundler cache (https://parceljs.org/)
|
||||||
|
.cache
|
||||||
|
.parcel-cache
|
||||||
|
|
||||||
|
# Next.js build output
|
||||||
|
.next
|
||||||
|
out
|
||||||
|
|
||||||
|
# Nuxt.js build / generate output
|
||||||
|
.nuxt
|
||||||
|
dist
|
||||||
|
|
||||||
|
# Gatsby files
|
||||||
|
.cache/
|
||||||
|
# Comment in the public line in if your project uses Gatsby and not Next.js
|
||||||
|
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||||
|
# public
|
||||||
|
|
||||||
|
# vuepress build output
|
||||||
|
.vuepress/dist
|
||||||
|
|
||||||
|
# vuepress v2.x temp and cache directory
|
||||||
|
.temp
|
||||||
|
.cache
|
||||||
|
|
||||||
|
# Sveltekit cache directory
|
||||||
|
.svelte-kit/
|
||||||
|
|
||||||
|
# vitepress build output
|
||||||
|
**/.vitepress/dist
|
||||||
|
|
||||||
|
# vitepress cache directory
|
||||||
|
**/.vitepress/cache
|
||||||
|
|
||||||
|
# Docusaurus cache and generated files
|
||||||
|
.docusaurus
|
||||||
|
|
||||||
|
# Serverless directories
|
||||||
|
.serverless/
|
||||||
|
|
||||||
|
# FuseBox cache
|
||||||
|
.fusebox/
|
||||||
|
|
||||||
|
# DynamoDB Local files
|
||||||
|
.dynamodb/
|
||||||
|
|
||||||
|
# Firebase cache directory
|
||||||
|
.firebase/
|
||||||
|
|
||||||
|
# TernJS port file
|
||||||
|
.tern-port
|
||||||
|
|
||||||
|
# Stores VSCode versions used for testing VSCode extensions
|
||||||
|
.vscode-test
|
||||||
|
|
||||||
|
# yarn v3
|
||||||
|
.pnp.*
|
||||||
|
.yarn/*
|
||||||
|
!.yarn/patches
|
||||||
|
!.yarn/plugins
|
||||||
|
!.yarn/releases
|
||||||
|
!.yarn/sdks
|
||||||
|
!.yarn/versions
|
||||||
|
|
||||||
|
# Vite logs files
|
||||||
|
vite.config.js.timestamp-*
|
||||||
|
vite.config.ts.timestamp-*
|
||||||
|
|
||||||
|
.permissions.key
|
||||||
|
.refreshToken.key
|
||||||
|
.secureValues.key
|
||||||
|
.accessToken.key
|
||||||
|
|
||||||
|
public-keys/
|
||||||
|
production-keys/
|
||||||
|
|
||||||
|
microsoft-oauth.json
|
||||||
|
|
||||||
|
.docker/postgres
|
||||||
|
.docker/redis
|
||||||
@@ -127,7 +127,7 @@ All fetch and fetchAll endpoints gate response object keys via `processObjectVal
|
|||||||
| User | `obj.user` | `GET /user/@me`, `GET /user/users/:identifier`, `GET /user/users`, `GET /role/:identifier/users` |
|
| User | `obj.user` | `GET /user/@me`, `GET /user/users/:identifier`, `GET /user/users`, `GET /role/:identifier/users` |
|
||||||
| Role | `obj.role` | `GET /role/:identifier`, `GET /role/`, `GET /user/users/:identifier/roles` |
|
| Role | `obj.role` | `GET /role/:identifier`, `GET /role/`, `GET /user/users/:identifier/roles` |
|
||||||
| Catalog Item | `obj.catalogItem` | `GET /procurement/items`, `GET /procurement/items/:identifier`, `GET /procurement/items/:identifier/linked` |
|
| Catalog Item | `obj.catalogItem` | `GET /procurement/items`, `GET /procurement/items/:identifier`, `GET /procurement/items/:identifier/linked` |
|
||||||
| Opportunity | `obj.opportunity` | `GET /sales/opportunities`, `GET /sales/opportunities/:identifier` |
|
| Opportunity | `obj.opportunity` | `GET /sales/opportunities`, `GET /sales/opportunities/opportunity/:identifier` |
|
||||||
| UniFi Site | `obj.unifiSite` | `GET /unifi/sites`, `GET /unifi/site/:id`, `GET /company/companies/:identifier/unifi/sites` |
|
| UniFi Site | `obj.unifiSite` | `GET /unifi/sites`, `GET /unifi/site/:id`, `GET /company/companies/:identifier/unifi/sites` |
|
||||||
| WiFi Network | `unifi.site.wifi.read` | `GET /unifi/site/:id/wifi` |
|
| WiFi Network | `unifi.site.wifi.read` | `GET /unifi/site/:id/wifi` |
|
||||||
|
|
||||||
@@ -2956,7 +2956,11 @@ Fetch the list of all opportunity quote statuses (types). Returns a static list
|
|||||||
|
|
||||||
**Authentication Required:** Yes
|
**Authentication Required:** Yes
|
||||||
|
|
||||||
**Required Permissions:** `sales.opportunity.fetch.many`
|
**Required Permissions:**
|
||||||
|
|
||||||
|
- Base access: `sales.opportunity.fetch.many`
|
||||||
|
- `scope=all`: `sales.opportunity.metrics.all`
|
||||||
|
- `identifier=<cwIdentifier>` (when different from caller's own identifier): `sales.opportunity.metrics.identifier.override`
|
||||||
|
|
||||||
**Response:**
|
**Response:**
|
||||||
|
|
||||||
@@ -3064,6 +3068,7 @@ Fetch a paginated list of opportunities. Supports search. Each opportunity inclu
|
|||||||
"site": { "id": 50, "name": "Main Office" },
|
"site": { "id": 50, "name": "Main Office" },
|
||||||
"customerPO": null,
|
"customerPO": null,
|
||||||
"totalSalesTax": 0,
|
"totalSalesTax": 0,
|
||||||
|
"expectedSalesTax": 0.06,
|
||||||
"probability": 50,
|
"probability": 50,
|
||||||
"location": { "id": 1, "name": "Murray" },
|
"location": { "id": 1, "name": "Murray" },
|
||||||
"department": { "id": 5, "name": "Sales" },
|
"department": { "id": 5, "name": "Sales" },
|
||||||
@@ -3161,9 +3166,208 @@ Get the total number of opportunities.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### Get My Opportunities
|
||||||
|
|
||||||
|
**GET** `/sales/opportunities/@me`
|
||||||
|
|
||||||
|
Returns all opportunities where the authenticated user is assigned as the primary or secondary sales rep. The user's ConnectWise member identifier is resolved from their account.
|
||||||
|
|
||||||
|
**Authentication Required:** Yes
|
||||||
|
|
||||||
|
**Required Permissions:** `sales.opportunity.fetch.many`
|
||||||
|
|
||||||
|
**Query Parameters:**
|
||||||
|
|
||||||
|
- `includeClosed` _(optional, default `false`)_ — When `true`, includes closed opportunities in the result.
|
||||||
|
|
||||||
|
**Response:**
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"status": 200,
|
||||||
|
"message": "Opportunities fetched successfully!",
|
||||||
|
"data": [
|
||||||
|
/* array of opportunity objects */
|
||||||
|
],
|
||||||
|
"successful": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Notes:**
|
||||||
|
|
||||||
|
- Returns an empty array if the authenticated user has no ConnectWise identifier linked to their account.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Get Opportunities by User ID
|
||||||
|
|
||||||
|
**GET** `/sales/opportunities/user/:id`
|
||||||
|
|
||||||
|
Returns all opportunities where the specified user is assigned as the primary or secondary sales rep.
|
||||||
|
|
||||||
|
**Authentication Required:** Yes
|
||||||
|
|
||||||
|
**Required Permissions:** `sales.opportunity.fetch.many`
|
||||||
|
|
||||||
|
**Path Parameters:**
|
||||||
|
|
||||||
|
- `id` — Internal user ID (cuid)
|
||||||
|
|
||||||
|
**Query Parameters:**
|
||||||
|
|
||||||
|
- `includeClosed` _(optional, default `false`)_ — When `true`, includes closed opportunities in the result.
|
||||||
|
|
||||||
|
**Response:**
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"status": 200,
|
||||||
|
"message": "Opportunities fetched successfully!",
|
||||||
|
"data": [
|
||||||
|
/* array of opportunity objects */
|
||||||
|
],
|
||||||
|
"successful": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Error Responses:**
|
||||||
|
|
||||||
|
- `404` — User not found
|
||||||
|
- Returns an empty array if the user has no ConnectWise identifier linked.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Get Sales Opportunity Metrics (Cached)
|
||||||
|
|
||||||
|
**GET** `/sales/opportunities/metrics`
|
||||||
|
|
||||||
|
Fetch precomputed sales opportunity metrics from Redis. Metrics are refreshed in the background every 5 minutes for active ConnectWise members and are designed for fast dashboard/reporting reads.
|
||||||
|
|
||||||
|
**Authentication Required:** Yes
|
||||||
|
|
||||||
|
**Required Permissions:** `sales.opportunity.fetch.many`
|
||||||
|
|
||||||
|
**Query Parameters:**
|
||||||
|
|
||||||
|
- `scope` _(optional, default `me`)_ — `me` returns metrics for the current user's `cwIdentifier`; `all` returns cached metrics for all active CW members.
|
||||||
|
- `identifier` _(optional)_ — Explicit CW member identifier override (e.g. `jroberts`). Ignored when `scope=all`.
|
||||||
|
|
||||||
|
**Strict parameter gating:**
|
||||||
|
|
||||||
|
- `scope=all` is rejected with `403` unless caller has `sales.opportunity.metrics.all`.
|
||||||
|
- `identifier=<cwIdentifier>` is rejected with `403` when the identifier differs from caller's own `cwIdentifier` and caller lacks `sales.opportunity.metrics.identifier.override`.
|
||||||
|
|
||||||
|
**Response (`scope=me`):**
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"status": 200,
|
||||||
|
"message": "Sales opportunity metrics fetched successfully!",
|
||||||
|
"data": {
|
||||||
|
"identifier": "jroberts",
|
||||||
|
"metrics": {
|
||||||
|
"memberIdentifier": "jroberts",
|
||||||
|
"memberName": "John Roberts",
|
||||||
|
"generatedAt": "2026-03-15T20:10:00.000Z",
|
||||||
|
"pipelineRevenue": 250000,
|
||||||
|
"closedWonRevenueMtd": 142500,
|
||||||
|
"closedWonRevenueYtd": 512000,
|
||||||
|
"winCount": { "mtd": 3, "ytd": 11 },
|
||||||
|
"lossCount": { "mtd": 1, "ytd": 4 },
|
||||||
|
"avgDaysToClose": 27.35,
|
||||||
|
"openOpportunityCount": 9,
|
||||||
|
"weightedPipelineRevenue": 173500,
|
||||||
|
"taxablePipelineRevenue": 198000,
|
||||||
|
"nonTaxablePipelineRevenue": 52000,
|
||||||
|
"avgOpenDealSize": 27777.78,
|
||||||
|
"avgWonDealSize": { "mtd": 47500, "ytd": 46545.45 },
|
||||||
|
"winRate": { "mtd": 0.75, "ytd": 0.7333 },
|
||||||
|
"lossRate": { "mtd": 0.25, "ytd": 0.2667 },
|
||||||
|
"assignedOpportunityCount": 14,
|
||||||
|
"cacheHitCount": 12,
|
||||||
|
"cacheMissCount": 2,
|
||||||
|
"cacheHitRate": 0.8571,
|
||||||
|
"opportunityBreakdown": {
|
||||||
|
"pipeline": [
|
||||||
|
{
|
||||||
|
"id": "clx1abc123",
|
||||||
|
"cwId": 98765,
|
||||||
|
"name": "Acme Corp - Network Upgrade",
|
||||||
|
"revenue": 45000,
|
||||||
|
"taxableRevenue": 45000,
|
||||||
|
"nonTaxableRevenue": 0,
|
||||||
|
"probability": 70,
|
||||||
|
"weightedRevenue": 31500,
|
||||||
|
"closedDate": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"closedWonMtd": [
|
||||||
|
{
|
||||||
|
"id": "clx1def456",
|
||||||
|
"cwId": 98720,
|
||||||
|
"name": "Globex - Security Stack",
|
||||||
|
"revenue": 142500,
|
||||||
|
"taxableRevenue": 120000,
|
||||||
|
"nonTaxableRevenue": 22500,
|
||||||
|
"probability": 100,
|
||||||
|
"weightedRevenue": 142500,
|
||||||
|
"closedDate": "2026-03-08T00:00:00.000Z"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"closedWonYtd": [
|
||||||
|
/* same shape, all won opps this year */
|
||||||
|
],
|
||||||
|
"closedLostMtd": [
|
||||||
|
/* same shape, lost opps this month */
|
||||||
|
],
|
||||||
|
"closedLostYtd": [
|
||||||
|
/* same shape, lost opps this year */
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"successful": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Each entry in an `opportunityBreakdown` list contains:
|
||||||
|
|
||||||
|
| Field | Type | Description |
|
||||||
|
| ------------------- | ---------------- | -------------------------------------- |
|
||||||
|
| `id` | `string` | Internal DB id (cuid) |
|
||||||
|
| `cwId` | `number` | ConnectWise opportunity ID |
|
||||||
|
| `name` | `string` | Opportunity name |
|
||||||
|
| `revenue` | `number` | Computed total revenue |
|
||||||
|
| `taxableRevenue` | `number` | Taxable portion of revenue |
|
||||||
|
| `nonTaxableRevenue` | `number` | Non-taxable portion of revenue |
|
||||||
|
| `probability` | `number` | Probability as a 0–100 percent value |
|
||||||
|
| `weightedRevenue` | `number` | `revenue × (probability / 100)` |
|
||||||
|
| `closedDate` | `string \| null` | ISO 8601 close date, or `null` if open |
|
||||||
|
|
||||||
|
**Response (`scope=all`):**
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"status": 200,
|
||||||
|
"message": "Sales opportunity metrics fetched successfully!",
|
||||||
|
"data": {
|
||||||
|
"generatedAt": "2026-03-15T20:10:00.000Z",
|
||||||
|
"activeMemberCount": 26,
|
||||||
|
"memberIdentifiers": ["jroberts", "asmith"],
|
||||||
|
"members": {
|
||||||
|
"jroberts": { "memberIdentifier": "jroberts" },
|
||||||
|
"asmith": { "memberIdentifier": "asmith" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"successful": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Get Opportunity
|
### Get Opportunity
|
||||||
|
|
||||||
**GET** `/sales/opportunities/:identifier`
|
**GET** `/sales/opportunities/opportunity/:identifier`
|
||||||
|
|
||||||
Fetch a single opportunity by its internal ID or ConnectWise opportunity ID. The response includes hydrated company data (with address and contacts) and full site details (with address) when available. CW data (activities, company, site) is served from the Redis cache when available; on cache miss, data is fetched live from CW and cached with an adaptive TTL.
|
Fetch a single opportunity by its internal ID or ConnectWise opportunity ID. The response includes hydrated company data (with address and contacts) and full site details (with address) when available. CW data (activities, company, site) is served from the Redis cache when available; on cache miss, data is fetched live from CW and cached with an adaptive TTL.
|
||||||
|
|
||||||
@@ -3183,6 +3387,8 @@ Fetch a single opportunity by its internal ID or ConnectWise opportunity ID. The
|
|||||||
- `includeRegenData` _(optional)_ — When `"true"`, includes `quoteRegenData` on each quote object (applies to `?include=quotes`). Default: `false`.
|
- `includeRegenData` _(optional)_ — When `"true"`, includes `quoteRegenData` on each quote object (applies to `?include=quotes`). Default: `false`.
|
||||||
- `includeRegenParams` _(optional)_ — When `"true"`, includes `quoteRegenParams` on each quote object (applies to `?include=quotes`). Default: `false`.
|
- `includeRegenParams` _(optional)_ — When `"true"`, includes `quoteRegenParams` on each quote object (applies to `?include=quotes`). Default: `false`.
|
||||||
|
|
||||||
|
`expectedSalesTax` is computed from address using site address first and company address as fallback. Logic first checks state, then city-level jurisdiction when available in the sales tax data file, and otherwise falls back to the state's `avg_combined_rate`. Tennessee (`TN`) remains hard-coded to `0.0975` regardless of data-file values.
|
||||||
|
|
||||||
**Response:**
|
**Response:**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
@@ -3255,6 +3461,7 @@ Fetch a single opportunity by its internal ID or ConnectWise opportunity ID. The
|
|||||||
},
|
},
|
||||||
"customerPO": null,
|
"customerPO": null,
|
||||||
"totalSalesTax": 0,
|
"totalSalesTax": 0,
|
||||||
|
"expectedSalesTax": 0.06,
|
||||||
"probability": 50,
|
"probability": 50,
|
||||||
"location": { "id": 1, "name": "Murray" },
|
"location": { "id": 1, "name": "Murray" },
|
||||||
"department": { "id": 5, "name": "Sales" },
|
"department": { "id": 5, "name": "Sales" },
|
||||||
@@ -3310,7 +3517,7 @@ Fetch a single opportunity by its internal ID or ConnectWise opportunity ID. The
|
|||||||
|
|
||||||
### Refresh Opportunity
|
### Refresh Opportunity
|
||||||
|
|
||||||
**POST** `/sales/opportunities/:identifier/refresh`
|
**POST** `/sales/opportunities/opportunity/:identifier/refresh`
|
||||||
|
|
||||||
Refresh an opportunity's local data by fetching the latest from ConnectWise. The response includes hydrated company data and site details.
|
Refresh an opportunity's local data by fetching the latest from ConnectWise. The response includes hydrated company data and site details.
|
||||||
|
|
||||||
@@ -3377,6 +3584,7 @@ Refresh an opportunity's local data by fetching the latest from ConnectWise. The
|
|||||||
"site": { "id": 50, "name": "Main Office" },
|
"site": { "id": 50, "name": "Main Office" },
|
||||||
"customerPO": null,
|
"customerPO": null,
|
||||||
"totalSalesTax": 0,
|
"totalSalesTax": 0,
|
||||||
|
"expectedSalesTax": 0.06,
|
||||||
"probability": 50,
|
"probability": 50,
|
||||||
"location": { "id": 1, "name": "Murray" },
|
"location": { "id": 1, "name": "Murray" },
|
||||||
"department": { "id": 5, "name": "Sales" },
|
"department": { "id": 5, "name": "Sales" },
|
||||||
@@ -3518,6 +3726,7 @@ Create a new opportunity in ConnectWise. The created opportunity is synced to th
|
|||||||
"site": { "id": 50, "name": "Main Office" },
|
"site": { "id": 50, "name": "Main Office" },
|
||||||
"customerPO": "PO-12345",
|
"customerPO": "PO-12345",
|
||||||
"totalSalesTax": 0,
|
"totalSalesTax": 0,
|
||||||
|
"expectedSalesTax": 0,
|
||||||
"probability": 0,
|
"probability": 0,
|
||||||
"location": { "id": 1, "name": "Murray" },
|
"location": { "id": 1, "name": "Murray" },
|
||||||
"department": null,
|
"department": null,
|
||||||
@@ -3552,7 +3761,7 @@ Create a new opportunity in ConnectWise. The created opportunity is synced to th
|
|||||||
|
|
||||||
### Update Opportunity
|
### Update Opportunity
|
||||||
|
|
||||||
**PATCH** `/sales/opportunities/:identifier`
|
**PATCH** `/sales/opportunities/opportunity/:identifier`
|
||||||
|
|
||||||
Update an opportunity's fields in ConnectWise (e.g. rating, sales rep, company, contact, site, description). Only the provided fields are patched; omitted fields remain unchanged. The updated opportunity is synced back to the local database and returned in the response.
|
Update an opportunity's fields in ConnectWise (e.g. rating, sales rep, company, contact, site, description). Only the provided fields are patched; omitted fields remain unchanged. The updated opportunity is synced back to the local database and returned in the response.
|
||||||
|
|
||||||
@@ -3643,6 +3852,7 @@ Update an opportunity's fields in ConnectWise (e.g. rating, sales rep, company,
|
|||||||
"site": { "id": 50, "name": "Main Office" },
|
"site": { "id": 50, "name": "Main Office" },
|
||||||
"customerPO": "PO-12345",
|
"customerPO": "PO-12345",
|
||||||
"totalSalesTax": 0,
|
"totalSalesTax": 0,
|
||||||
|
"expectedSalesTax": 0,
|
||||||
"probability": 50,
|
"probability": 50,
|
||||||
"location": { "id": 1, "name": "Murray" },
|
"location": { "id": 1, "name": "Murray" },
|
||||||
"department": { "id": 5, "name": "Sales" },
|
"department": { "id": 5, "name": "Sales" },
|
||||||
@@ -3667,7 +3877,7 @@ Update an opportunity's fields in ConnectWise (e.g. rating, sales rep, company,
|
|||||||
|
|
||||||
### Delete Opportunity
|
### Delete Opportunity
|
||||||
|
|
||||||
**DELETE** `/sales/opportunities/:identifier`
|
**DELETE** `/sales/opportunities/opportunity/:identifier`
|
||||||
|
|
||||||
Delete an opportunity from ConnectWise and the local database. All related Redis caches (activities, notes, contacts, products, CW data) are invalidated.
|
Delete an opportunity from ConnectWise and the local database. All related Redis caches (activities, notes, contacts, products, CW data) are invalidated.
|
||||||
|
|
||||||
@@ -3702,7 +3912,7 @@ Delete an opportunity from ConnectWise and the local database. All related Redis
|
|||||||
|
|
||||||
### Get Opportunity Products
|
### Get Opportunity Products
|
||||||
|
|
||||||
**GET** `/sales/opportunities/:identifier/products`
|
**GET** `/sales/opportunities/opportunity/:identifier/products`
|
||||||
|
|
||||||
Fetch products for an opportunity, scoped to items that have a matching ConnectWise procurement product (`forecastDetailId` link). Data is served from the Redis cache when available; on cache miss, data is fetched live from ConnectWise and cached. Hot opportunities (updated within 3 days) have a 15-second TTL; others use a 30-minute lazy TTL. Products are returned sorted by the opportunity's local `productSequence` array when set; otherwise, items are sorted by their ConnectWise `sequenceNumber`.
|
Fetch products for an opportunity, scoped to items that have a matching ConnectWise procurement product (`forecastDetailId` link). Data is served from the Redis cache when available; on cache miss, data is fetched live from ConnectWise and cached. Hot opportunities (updated within 3 days) have a 15-second TTL; others use a 30-minute lazy TTL. Products are returned sorted by the opportunity's local `productSequence` array when set; otherwise, items are sorted by their ConnectWise `sequenceNumber`.
|
||||||
|
|
||||||
@@ -3788,7 +3998,7 @@ Internal inventory data is sourced from the local CatalogItem database. If the p
|
|||||||
|
|
||||||
### Resequence Opportunity Products
|
### Resequence Opportunity Products
|
||||||
|
|
||||||
**PATCH** `/sales/opportunities/:identifier/products/sequence`
|
**PATCH** `/sales/opportunities/opportunity/:identifier/products/sequence`
|
||||||
|
|
||||||
Update the display order of products (forecast items) on an opportunity. The sequence is stored **locally** in the database (`productSequence` field on the Opportunity model) — no modifications are made to ConnectWise. This means forecast item IDs remain stable and procurement product linkages are unaffected.
|
Update the display order of products (forecast items) on an opportunity. The sequence is stored **locally** in the database (`productSequence` field on the Opportunity model) — no modifications are made to ConnectWise. This means forecast item IDs remain stable and procurement product linkages are unaffected.
|
||||||
|
|
||||||
@@ -3850,7 +4060,7 @@ When a `productSequence` is set, `GET .../products` returns items in that order.
|
|||||||
|
|
||||||
### Edit Opportunity Product
|
### Edit Opportunity Product
|
||||||
|
|
||||||
**PATCH** `/sales/opportunities/:identifier/products/:productId/edit`
|
**PATCH** `/sales/opportunities/opportunity/:identifier/products/:productId/edit`
|
||||||
|
|
||||||
Edit a product line item on an opportunity. This route supports forecast-backed fields and procurement-backed fields (including custom fields for narrative/notes).
|
Edit a product line item on an opportunity. This route supports forecast-backed fields and procurement-backed fields (including custom fields for narrative/notes).
|
||||||
|
|
||||||
@@ -3915,7 +4125,7 @@ At least one field is required.
|
|||||||
|
|
||||||
### Cancel / Uncancel Opportunity Product
|
### Cancel / Uncancel Opportunity Product
|
||||||
|
|
||||||
**PATCH** `/sales/opportunities/:identifier/products/:productId/cancel`
|
**PATCH** `/sales/opportunities/opportunity/:identifier/products/:productId/cancel`
|
||||||
|
|
||||||
Set cancellation state for a product line item using procurement cancellation fields.
|
Set cancellation state for a product line item using procurement cancellation fields.
|
||||||
|
|
||||||
@@ -3974,7 +4184,7 @@ Set cancellation state for a product line item using procurement cancellation fi
|
|||||||
|
|
||||||
### Delete Product from Opportunity
|
### Delete Product from Opportunity
|
||||||
|
|
||||||
**DELETE** `/sales/opportunities/:identifier/products/:productId`
|
**DELETE** `/sales/opportunities/opportunity/:identifier/products/:productId`
|
||||||
|
|
||||||
Remove a forecast item (product) from an opportunity in ConnectWise. The item is also removed from the local `productSequence` array and the products cache is invalidated.
|
Remove a forecast item (product) from an opportunity in ConnectWise. The item is also removed from the local `productSequence` array and the products cache is invalidated.
|
||||||
|
|
||||||
@@ -4011,7 +4221,7 @@ Remove a forecast item (product) from an opportunity in ConnectWise. The item is
|
|||||||
|
|
||||||
### Add Product to Opportunity
|
### Add Product to Opportunity
|
||||||
|
|
||||||
**POST** `/sales/opportunities/:identifier/products`
|
**POST** `/sales/opportunities/opportunity/:identifier/products`
|
||||||
|
|
||||||
Add a new product (forecast item) to an opportunity in ConnectWise. The request body is validated with Zod, then each submitted field is gated against `sales.opportunity.product.field.<field>` permissions — only fields the user has permission for are forwarded to ConnectWise.
|
Add a new product (forecast item) to an opportunity in ConnectWise. The request body is validated with Zod, then each submitted field is gated against `sales.opportunity.product.field.<field>` permissions — only fields the user has permission for are forwarded to ConnectWise.
|
||||||
|
|
||||||
@@ -4121,7 +4331,7 @@ All fields are optional. Only fields the user has the corresponding `sales.oppor
|
|||||||
|
|
||||||
### Add SPECIAL ORDER Product
|
### Add SPECIAL ORDER Product
|
||||||
|
|
||||||
**POST** `/sales/opportunities/:identifier/products/special-order`
|
**POST** `/sales/opportunities/opportunity/:identifier/products/special-order`
|
||||||
|
|
||||||
Add one or more products as **SPECIAL ORDER** procurement line items. This route creates ConnectWise procurement products (not forecast items) and enforces stable defaults for quick-entry workflows.
|
Add one or more products as **SPECIAL ORDER** procurement line items. This route creates ConnectWise procurement products (not forecast items) and enforces stable defaults for quick-entry workflows.
|
||||||
|
|
||||||
@@ -4201,7 +4411,7 @@ Accepts either a single object or an array of objects.
|
|||||||
|
|
||||||
### Get Labor Product Options
|
### Get Labor Product Options
|
||||||
|
|
||||||
**GET** `/sales/opportunities/:identifier/products/labor/options`
|
**GET** `/sales/opportunities/opportunity/:identifier/products/labor/options`
|
||||||
|
|
||||||
Fetch the resolved **Field** and **Tech** labor catalog products plus default labor pricing metadata so the UI can hydrate the labor-entry form without hardcoding catalog IDs.
|
Fetch the resolved **Field** and **Tech** labor catalog products plus default labor pricing metadata so the UI can hydrate the labor-entry form without hardcoding catalog IDs.
|
||||||
|
|
||||||
@@ -4252,7 +4462,7 @@ Fetch the resolved **Field** and **Tech** labor catalog products plus default la
|
|||||||
|
|
||||||
### Add Labor Product
|
### Add Labor Product
|
||||||
|
|
||||||
**POST** `/sales/opportunities/:identifier/products/labor`
|
**POST** `/sales/opportunities/opportunity/:identifier/products/labor`
|
||||||
|
|
||||||
Add a labor line item to an opportunity using one of the two canonical labor catalog products (**Field** or **Tech**). The route resolves both labor products from the local catalog, then picks the selected style and creates a ConnectWise procurement product.
|
Add a labor line item to an opportunity using one of the two canonical labor catalog products (**Field** or **Tech**). The route resolves both labor products from the local catalog, then picks the selected style and creates a ConnectWise procurement product.
|
||||||
|
|
||||||
@@ -4342,7 +4552,7 @@ Add a labor line item to an opportunity using one of the two canonical labor cat
|
|||||||
|
|
||||||
### Fetch Committed Quotes
|
### Fetch Committed Quotes
|
||||||
|
|
||||||
**GET** `/sales/opportunities/:identifier/quotes`
|
**GET** `/sales/opportunities/opportunity/:identifier/quotes`
|
||||||
|
|
||||||
Fetch all committed (finalized) quotes for an opportunity, ordered by most recent first.
|
Fetch all committed (finalized) quotes for an opportunity, ordered by most recent first.
|
||||||
|
|
||||||
@@ -4386,7 +4596,7 @@ Fetch all committed (finalized) quotes for an opportunity, ordered by most recen
|
|||||||
|
|
||||||
### Commit Quote
|
### Commit Quote
|
||||||
|
|
||||||
**POST** `/sales/opportunities/:identifier/quote/commit`
|
**POST** `/sales/opportunities/opportunity/:identifier/quote/commit`
|
||||||
|
|
||||||
Generate a finalized (non-preview) quote PDF for an opportunity and store it in the database with regeneration metadata and creator attribution.
|
Generate a finalized (non-preview) quote PDF for an opportunity and store it in the database with regeneration metadata and creator attribution.
|
||||||
|
|
||||||
@@ -4503,7 +4713,7 @@ Generate a finalized (non-preview) quote PDF for an opportunity and store it in
|
|||||||
|
|
||||||
### Preview Quote
|
### Preview Quote
|
||||||
|
|
||||||
**GET** `/sales/opportunities/:identifier/quote/:quoteId/preview`
|
**GET** `/sales/opportunities/opportunity/:identifier/quote/:quoteId/preview`
|
||||||
|
|
||||||
Regenerate a preview-stamped version of an existing committed quote PDF using its stored generation parameters. The PDF is not persisted — it is returned as a base64-encoded string.
|
Regenerate a preview-stamped version of an existing committed quote PDF using its stored generation parameters. The PDF is not persisted — it is returned as a base64-encoded string.
|
||||||
|
|
||||||
@@ -4534,7 +4744,7 @@ Regenerate a preview-stamped version of an existing committed quote PDF using it
|
|||||||
|
|
||||||
### Download Quote
|
### Download Quote
|
||||||
|
|
||||||
**GET** `/sales/opportunities/:identifier/quote/:quoteId/download`
|
**GET** `/sales/opportunities/opportunity/:identifier/quote/:quoteId/download`
|
||||||
|
|
||||||
Download a committed quote PDF by its ID. Returns the PDF file as a base64-encoded string. Each call automatically records a download entry with the timestamp, user info, and fetch action in the quote's `downloads` array. Download-time metadata (downloadedAt, downloadedBy) is also injected into the PDF's document properties.
|
Download a committed quote PDF by its ID. Returns the PDF file as a base64-encoded string. Each call automatically records a download entry with the timestamp, user info, and fetch action in the quote's `downloads` array. Download-time metadata (downloadedAt, downloadedBy) is also injected into the PDF's document properties.
|
||||||
|
|
||||||
@@ -4588,7 +4798,7 @@ Download a committed quote PDF by its ID. Returns the PDF file as a base64-encod
|
|||||||
|
|
||||||
### Fetch Quote Download History
|
### Fetch Quote Download History
|
||||||
|
|
||||||
**GET** `/sales/opportunities/:identifier/quotes/downloads`
|
**GET** `/sales/opportunities/opportunity/:identifier/quotes/downloads`
|
||||||
|
|
||||||
Fetch download/print history for all committed quotes on an opportunity. Returns an array of quote summaries, each containing the full `downloads` array with every download/print record. This is an admin-level route intended for audit and tracking purposes.
|
Fetch download/print history for all committed quotes on an opportunity. Returns an array of quote summaries, each containing the full `downloads` array with every download/print record. This is an admin-level route intended for audit and tracking purposes.
|
||||||
|
|
||||||
@@ -4638,7 +4848,7 @@ Fetch download/print history for all committed quotes on an opportunity. Returns
|
|||||||
|
|
||||||
### Get Opportunity Notes
|
### Get Opportunity Notes
|
||||||
|
|
||||||
**GET** `/sales/opportunities/:identifier/notes`
|
**GET** `/sales/opportunities/opportunity/:identifier/notes`
|
||||||
|
|
||||||
Fetch notes for an opportunity. Data is served from the Redis cache when available; on cache miss, data is fetched live from ConnectWise and cached. Cache is invalidated automatically when notes are created, updated, or deleted.
|
Fetch notes for an opportunity. Data is served from the Redis cache when available; on cache miss, data is fetched live from ConnectWise and cached. Cache is invalidated automatically when notes are created, updated, or deleted.
|
||||||
|
|
||||||
@@ -4678,7 +4888,7 @@ Fetch notes for an opportunity. Data is served from the Redis cache when availab
|
|||||||
|
|
||||||
### Get Single Opportunity Note
|
### Get Single Opportunity Note
|
||||||
|
|
||||||
**GET** `/sales/opportunities/:identifier/notes/:noteId`
|
**GET** `/sales/opportunities/opportunity/:identifier/notes/:noteId`
|
||||||
|
|
||||||
Fetch a single note by its ConnectWise note ID for an opportunity.
|
Fetch a single note by its ConnectWise note ID for an opportunity.
|
||||||
|
|
||||||
@@ -4717,7 +4927,7 @@ Fetch a single note by its ConnectWise note ID for an opportunity.
|
|||||||
|
|
||||||
### Create Opportunity Note
|
### Create Opportunity Note
|
||||||
|
|
||||||
**POST** `/sales/opportunities/:identifier/notes`
|
**POST** `/sales/opportunities/opportunity/:identifier/notes`
|
||||||
|
|
||||||
Create a new note on an opportunity in ConnectWise.
|
Create a new note on an opportunity in ConnectWise.
|
||||||
|
|
||||||
@@ -4769,7 +4979,7 @@ Create a new note on an opportunity in ConnectWise.
|
|||||||
|
|
||||||
### Update Opportunity Note
|
### Update Opportunity Note
|
||||||
|
|
||||||
**PATCH** `/sales/opportunities/:identifier/notes/:noteId`
|
**PATCH** `/sales/opportunities/opportunity/:identifier/notes/:noteId`
|
||||||
|
|
||||||
Update an existing note on an opportunity in ConnectWise.
|
Update an existing note on an opportunity in ConnectWise.
|
||||||
|
|
||||||
@@ -4824,7 +5034,7 @@ Update an existing note on an opportunity in ConnectWise.
|
|||||||
|
|
||||||
### Delete Opportunity Note
|
### Delete Opportunity Note
|
||||||
|
|
||||||
**DELETE** `/sales/opportunities/:identifier/notes/:noteId`
|
**DELETE** `/sales/opportunities/opportunity/:identifier/notes/:noteId`
|
||||||
|
|
||||||
Delete a note from an opportunity in ConnectWise.
|
Delete a note from an opportunity in ConnectWise.
|
||||||
|
|
||||||
@@ -4851,7 +5061,7 @@ Delete a note from an opportunity in ConnectWise.
|
|||||||
|
|
||||||
### Get Opportunity Contacts
|
### Get Opportunity Contacts
|
||||||
|
|
||||||
**GET** `/sales/opportunities/:identifier/contacts`
|
**GET** `/sales/opportunities/opportunity/:identifier/contacts`
|
||||||
|
|
||||||
Fetch contacts associated with an opportunity. Data is served from the Redis cache when available; on cache miss, data is fetched live from ConnectWise and cached. Cache is invalidated automatically when contacts are created, updated, or deleted.
|
Fetch contacts associated with an opportunity. Data is served from the Redis cache when available; on cache miss, data is fetched live from ConnectWise and cached. Cache is invalidated automatically when contacts are created, updated, or deleted.
|
||||||
|
|
||||||
@@ -4905,7 +5115,8 @@ The opportunity workflow system is an internal engine that manages the lifecycle
|
|||||||
| QuoteSent | 43 | 03. Quote Sent | No | Quote has been sent to the customer |
|
| QuoteSent | 43 | 03. Quote Sent | No | Quote has been sent to the customer |
|
||||||
| ConfirmedQuote | 57 | 04. Confirmed Quote | No | Customer acknowledged receipt |
|
| ConfirmedQuote | 57 | 04. Confirmed Quote | No | Customer acknowledged receipt |
|
||||||
| Active | 58 | 05. Active | No | Quote in revision/flux |
|
| Active | 58 | 05. Active | No | Quote in revision/flux |
|
||||||
| PendingSent | 60 | Pending Sent | No | Review approved, awaiting rep to send |
|
| ReadyToSend | 63 | Ready to Send | No | Review approved; ready for rep send |
|
||||||
|
| PendingSent | 60 | Pending Sent | No | Deprecated legacy status; existing records may still use it |
|
||||||
| PendingRevision | 61 | Pending Revision | No | Review rejected, awaiting rep revision |
|
| PendingRevision | 61 | Pending Revision | No | Review rejected, awaiting rep revision |
|
||||||
| PendingWon | 49 | 91. Pending Won | No | Won pending finalization by authorized user |
|
| PendingWon | 49 | 91. Pending Won | No | Won pending finalization by authorized user |
|
||||||
| Won | 29 | 95. Won | Yes | Final positive outcome — immutable |
|
| Won | 29 | 95. Won | Yes | Final positive outcome — immutable |
|
||||||
@@ -4919,8 +5130,9 @@ The opportunity workflow system is an internal engine that manages the lifecycle
|
|||||||
| --------------- | ------------------------------------------------------------------------------- |
|
| --------------- | ------------------------------------------------------------------------------- |
|
||||||
| PendingNew | New |
|
| PendingNew | New |
|
||||||
| New | InternalReview, QuoteSent, Canceled |
|
| New | InternalReview, QuoteSent, Canceled |
|
||||||
| InternalReview | PendingSent (approve), PendingRevision (reject), QuoteSent (send), Canceled |
|
| InternalReview | ReadyToSend (approve), PendingRevision (reject), QuoteSent (send), Canceled |
|
||||||
| PendingSent | QuoteSent |
|
| ReadyToSend | QuoteSent |
|
||||||
|
| PendingSent | QuoteSent _(deprecated legacy path for existing records only)_ |
|
||||||
| PendingRevision | Active |
|
| PendingRevision | Active |
|
||||||
| QuoteSent | ConfirmedQuote, Won/PendingWon, PendingLost, Active, InternalReview (cold auto) |
|
| QuoteSent | ConfirmedQuote, Won/PendingWon, PendingLost, Active, InternalReview (cold auto) |
|
||||||
| ConfirmedQuote | Won/PendingWon, PendingLost, Active, InternalReview (cold auto) |
|
| ConfirmedQuote | Won/PendingWon, PendingLost, Active, InternalReview (cold auto) |
|
||||||
@@ -4983,11 +5195,11 @@ Triggered via `triggerColdDetection()` (intended for schedulers/automation, not
|
|||||||
|
|
||||||
### Workflow API Routes
|
### Workflow API Routes
|
||||||
|
|
||||||
These routes expose the opportunity workflow to the UI. They live under `/v1/sales/opportunities/:identifier/workflow`.
|
These routes expose the opportunity workflow to the UI. They live under `/v1/sales/opportunities/opportunity/:identifier/workflow`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
#### `GET /v1/sales/opportunities/:identifier/workflow`
|
#### `GET /v1/sales/opportunities/opportunity/:identifier/workflow`
|
||||||
|
|
||||||
Fetch the current workflow state for an opportunity — current status, stage, available actions, cold-detection result, and whether each action is permitted for the authenticated user.
|
Fetch the current workflow state for an opportunity — current status, stage, available actions, cold-detection result, and whether each action is permitted for the authenticated user.
|
||||||
|
|
||||||
@@ -5038,7 +5250,7 @@ Fetch the current workflow state for an opportunity — current status, stage, a
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
#### `POST /v1/sales/opportunities/:identifier/workflow`
|
#### `POST /v1/sales/opportunities/opportunity/:identifier/workflow`
|
||||||
|
|
||||||
Execute a workflow action. Accepts a discriminated union of `{ action, payload }` and routes it through the workflow engine. The body is validated with Zod.
|
Execute a workflow action. Accepts a discriminated union of `{ action, payload }` and routes it through the workflow engine. The body is validated with Zod.
|
||||||
|
|
||||||
@@ -5073,8 +5285,8 @@ Execute a workflow action. Accepts a discriminated union of `{ action, payload }
|
|||||||
| ---------------- | --------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------- |
|
| ---------------- | --------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------- |
|
||||||
| `acceptNew` | — | `note`, `timeSpent` | PendingNew → New |
|
| `acceptNew` | — | `note`, `timeSpent` | PendingNew → New |
|
||||||
| `requestReview` | `note` | `timeSpent` | New/Active → InternalReview |
|
| `requestReview` | `note` | `timeSpent` | New/Active → InternalReview |
|
||||||
| `reviewDecision` | `note`, `decision` | `timeSpent` | InternalReview → PendingSent/PendingRevision/QuoteSent/Canceled |
|
| `reviewDecision` | `note`, `decision` | `timeSpent` | InternalReview → ReadyToSend/PendingRevision/QuoteSent/Canceled |
|
||||||
| `sendQuote` | — | `note`, `timeSpent`, `quoteConfirmed`, `won`, `lost`, `needsRevision` | PendingSent/New → QuoteSent (+ compound transitions) |
|
| `sendQuote` | — | `note`, `timeSpent`, `quoteConfirmed`, `won`, `lost`, `needsRevision` | ReadyToSend/New → QuoteSent (+ compound transitions) |
|
||||||
| `confirmQuote` | — | `note`, `timeSpent` | QuoteSent → ConfirmedQuote |
|
| `confirmQuote` | — | `note`, `timeSpent` | QuoteSent → ConfirmedQuote |
|
||||||
| `finalize` | `note`, `outcome` (`"won"` or `"lost"`) | `timeSpent` | Pending → Won/Lost (or direct if permitted) |
|
| `finalize` | `note`, `outcome` (`"won"` or `"lost"`) | `timeSpent` | Pending → Won/Lost (or direct if permitted) |
|
||||||
| `resurrect` | `note` | `timeSpent` | PendingLost → Active |
|
| `resurrect` | `note` | `timeSpent` | PendingLost → Active |
|
||||||
@@ -5094,8 +5306,8 @@ Execute a workflow action. Accepts a discriminated union of `{ action, payload }
|
|||||||
"message": "Workflow action completed successfully.",
|
"message": "Workflow action completed successfully.",
|
||||||
"status": 200,
|
"status": 200,
|
||||||
"data": {
|
"data": {
|
||||||
"previousStatusId": 60,
|
"previousStatusId": 63,
|
||||||
"previousStatus": "PendingSent",
|
"previousStatus": "ReadyToSend",
|
||||||
"newStatusId": 43,
|
"newStatusId": 43,
|
||||||
"newStatus": "QuoteSent",
|
"newStatus": "QuoteSent",
|
||||||
"activitiesCreated": [ { "...activity JSON..." } ],
|
"activitiesCreated": [ { "...activity JSON..." } ],
|
||||||
@@ -5122,7 +5334,7 @@ Execute a workflow action. Accepts a discriminated union of `{ action, payload }
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
#### `GET /v1/sales/opportunities/:identifier/workflow/history`
|
#### `GET /v1/sales/opportunities/opportunity/:identifier/workflow/history`
|
||||||
|
|
||||||
Fetch the workflow activity history for an opportunity. Returns only CW activities that have a valid `Optima_Type` custom field set, sorted newest first.
|
Fetch the workflow activity history for an opportunity. Returns only CW activities that have a valid `Optima_Type` custom field set, sorted newest first.
|
||||||
|
|
||||||
+88
-37
@@ -6,12 +6,14 @@ This document describes the caching layer used in the Optima API, covering the R
|
|||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
The API caches expensive ConnectWise (CW) API responses in **Redis** to reduce latency and avoid CW rate limits. The primary cache layer is the **opportunity cache** (`src/modules/cache/opportunityCache.ts`), which proactively warms data for all non-closed opportunities on a background interval.
|
The API caches expensive ConnectWise (CW) API responses in **Redis** to reduce latency and avoid CW rate limits. The primary cache layer is the **opportunity cache** (`src/modules/cache/opportunityCache.ts`), which is proactively warmed by workers on a background interval.
|
||||||
|
|
||||||
|
The API also maintains a Redis-backed **sales member metrics cache** (`src/modules/cache/salesOpportunityMetricsCache.ts`) refreshed every 5 minutes. It precomputes per-member dashboard/reporting figures (pipeline revenue, won/lost counts, win rate, avg days to close, and related metrics) for fast reads from `/v1/sales/opportunities/metrics`.
|
||||||
|
|
||||||
### Key design principles
|
### Key design principles
|
||||||
|
|
||||||
- **Adaptive TTLs** — cache durations are computed dynamically based on how "hot" an opportunity is (recently updated = shorter TTL = fresher data).
|
- **Adaptive TTLs** — cache durations are computed dynamically based on how "hot" an opportunity is (recently updated = shorter TTL = fresher data).
|
||||||
- **Background refresh** — a 20-minute interval scans all open opportunities and re-fetches only expired cache keys.
|
- **Background refresh** — a 20-minute interval runs a unified opportunity refresh pass (collector-first full sync + cache warm across active and archived opportunities).
|
||||||
- **Bounded concurrency** — CW API calls are throttled via thunk-based batching to prevent overwhelming the upstream API.
|
- **Bounded concurrency** — CW API calls are throttled via thunk-based batching to prevent overwhelming the upstream API.
|
||||||
- **Graceful degradation** — transient CW errors (timeouts, network failures) are caught, logged, and retried on the next cycle rather than crashing the process.
|
- **Graceful degradation** — transient CW errors (timeouts, network failures) are caught, logged, and retried on the next cycle rather than crashing the process.
|
||||||
- **Priority ordering** — most recently updated opportunities are refreshed first so active deals get fresh data before stale ones.
|
- **Priority ordering** — most recently updated opportunities are refreshed first so active deals get fresh data before stale ones.
|
||||||
@@ -20,7 +22,7 @@ The API caches expensive ConnectWise (CW) API responses in **Redis** to reduce l
|
|||||||
|
|
||||||
## What is cached
|
## What is cached
|
||||||
|
|
||||||
Each non-closed opportunity can have up to 7 cached payloads in Redis:
|
Each opportunity can have up to 7 cached payloads in Redis:
|
||||||
|
|
||||||
| Cache Key Pattern | Data | Source |
|
| Cache Key Pattern | Data | Source |
|
||||||
| ----------------------------------- | ------------------------------------ | --------------------------------------------------------------------- |
|
| ----------------------------------- | ------------------------------------ | --------------------------------------------------------------------- |
|
||||||
@@ -38,6 +40,14 @@ Inventory-adjustment-driven catalog sync adds a targeted product cache:
|
|||||||
| ------------------------ | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
|
| ------------------------ | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
|
||||||
| `catalog:item:cw:{cwId}` | Full CW catalog item + computed `onHand` + DB row snapshot | `GET /procurement/adjustments` + `GET /procurement/catalog/:id` + catalog inventory endpoint |
|
| `catalog:item:cw:{cwId}` | Full CW catalog item + computed `onHand` + DB row snapshot | `GET /procurement/adjustments` + `GET /procurement/catalog/:id` + catalog inventory endpoint |
|
||||||
|
|
||||||
|
Sales opportunity metrics caching adds member-focused keys:
|
||||||
|
|
||||||
|
| Cache Key Pattern | Data | Source |
|
||||||
|
| ------------------------------------- | -------------------------------------- | ------------------------------------------------------------------------------------- |
|
||||||
|
| `sales:metrics:members:all` | Envelope of all active-member metrics | Precomputed from active CW members + assigned opportunities + products cache/CW fetch |
|
||||||
|
| `sales:metrics:member:{cwIdentifier}` | One member's computed metrics snapshot | Same as above |
|
||||||
|
| `sales:metrics:oppRevenue:{cwOppId}` | Per-opportunity computed revenue blob | Metrics refresh lookups (products cache-first, then manager/controller fallback) |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## TTL Algorithms
|
## TTL Algorithms
|
||||||
@@ -102,17 +112,20 @@ Sites use a fixed TTL of **20 minutes** (1,200,000 ms). Site/address data rarely
|
|||||||
|
|
||||||
## Background Refresh
|
## Background Refresh
|
||||||
|
|
||||||
**Function:** `refreshOpportunityCache()` in `src/modules/cache/opportunityCache.ts`
|
**Worker path:** `enqueueActiveOpportunityRefreshJob()` in `src/index.ts` → `src/workert.ts` → `refreshActiveOpportunitiesWorker()` in `src/modules/workers/cache/refreshActiveOpportunities.ts`
|
||||||
|
|
||||||
**Interval:** Every 20 minutes, triggered from `src/index.ts`.
|
**Interval:** Every 20 minutes, triggered from `src/index.ts`.
|
||||||
|
|
||||||
### Refresh cycle
|
### Refresh cycle
|
||||||
|
|
||||||
1. **Query DB** — fetch all non-closed opportunities + recently closed (within 30 days), ordered by `cwLastUpdated DESC` (most recently active first).
|
1. **Full sync first** — worker runs `refreshOpportunities()` with collector-first strategy (`fetchOpportunities` collector call, CW fallback) to keep DB opportunity records current.
|
||||||
2. **Batch EXISTS check** — use a single Redis pipeline to check which cache keys already exist (5 EXISTS commands per opportunity: oppCwData, activities, notes, contacts, products).
|
2. **Collector cache seeding** — when collector data is used, Redis keys for opportunity CW data, activities, notes, contacts, and products are seeded directly from collector payload before cache warm planning.
|
||||||
3. **Build thunk list** — for each opportunity with missing keys, push a **thunk** (lazy function) into the task list. No HTTP requests fire at this point.
|
3. **Query DB** — fetch all opportunities ordered by `cwLastUpdated DESC`.
|
||||||
4. **Execute with bounded concurrency** — process thunks in batches of `CONCURRENCY` (currently **6**), with a `BATCH_DELAY_MS` (currently **250ms**) pause between batches. Each thunk is only invoked inside the batch loop.
|
4. **Compute TTL per opportunity** — adaptive TTL for active/recent opportunities, and `TTL_ARCHIVED_MS` (24h) for archived opportunities where adaptive TTL resolves to `null`.
|
||||||
5. **Emit events** — `cache:opportunities:refresh:started` and `cache:opportunities:refresh:completed` events are emitted for the event debugger.
|
5. **Batch EXISTS check** — use a single Redis pipeline to check which cache keys already exist (5 EXISTS commands per opportunity: oppCwData, activities, notes, contacts, products).
|
||||||
|
6. **Build thunk list** — for each opportunity with missing keys, push a **thunk** (lazy function) into the task list. No HTTP requests fire at this point.
|
||||||
|
7. **Execute with bounded concurrency** — process thunks through a worker pool (`ACTIVE_REFRESH_CONCURRENCY`, default **12**) and progress logging (`ACTIVE_REFRESH_PROGRESS_EVERY`, default **50**).
|
||||||
|
8. **Emit events** — `cache:opportunities:refresh:started` and `cache:opportunities:refresh:completed` events are emitted for the event debugger.
|
||||||
|
|
||||||
### Inventory-adjustment listener cycle
|
### Inventory-adjustment listener cycle
|
||||||
|
|
||||||
@@ -164,14 +177,45 @@ The thunk pattern is critical. Previously, tasks were pushed as already-executin
|
|||||||
|
|
||||||
### Current tuning
|
### Current tuning
|
||||||
|
|
||||||
| Parameter | Value | Effect |
|
| Parameter | Value | Effect |
|
||||||
| ---------------- | ---------- | ------------------------------------------ |
|
| ------------------------------- | ---------- | ------------------------------------------ |
|
||||||
| `CONCURRENCY` | 6 | Max simultaneous CW API requests per batch |
|
| `ACTIVE_REFRESH_CONCURRENCY` | 12 | Max simultaneous CW API requests |
|
||||||
| `BATCH_DELAY_MS` | 250 | Milliseconds between batches |
|
| `ACTIVE_REFRESH_PROGRESS_EVERY` | 50 | Task completion cadence for progress logs |
|
||||||
| Refresh interval | 20 minutes | How often the full sweep runs |
|
| Refresh interval | 20 minutes | How often the unified sweep runs |
|
||||||
|
|
||||||
At these settings, a full sweep of ~500 expired keys completes in ~1-2 minutes with zero CW errors and ~230ms median latency.
|
At these settings, a full sweep of ~500 expired keys completes in ~1-2 minutes with zero CW errors and ~230ms median latency.
|
||||||
|
|
||||||
|
### Archived opportunities in unified refresh
|
||||||
|
|
||||||
|
Archived opportunities are those returned `null` by `computeCacheTTL` — specifically opportunities with `closedFlag = true` AND `closedDate` older than 30 days (or `closedDate = null`).
|
||||||
|
|
||||||
|
In the unified 20-minute refresh pass, these rows are no longer skipped. Instead, cache writes use `TTL_ARCHIVED_MS = 86,400,000 ms` (**24 hours**) while still using the same missing-key EXISTS strategy as active opportunities.
|
||||||
|
|
||||||
|
### Sales metrics refresh job
|
||||||
|
|
||||||
|
**Function:** `refreshSalesOpportunityMetricsCache()` in `src/modules/cache/salesOpportunityMetricsCache.ts`
|
||||||
|
|
||||||
|
**Interval:** Every 5 minutes, triggered from `src/index.ts`.
|
||||||
|
|
||||||
|
**Startup behavior:** On app startup, the refresh is invoked once with `forceColdLoad=true`, which clears metrics-owned Redis keys and bypasses metrics/product cache reuse for that initial rebuild. Subsequent interval runs use the normal warm path.
|
||||||
|
|
||||||
|
Refresh flow:
|
||||||
|
|
||||||
|
1. Fetch all active CW members (`inactiveFlag=false`).
|
||||||
|
Source: local `CwMember` table (kept in sync by the existing members refresh job).
|
||||||
|
2. Query DB opportunities assigned to those members (primary or secondary rep), scoped to open opportunities plus YTD-closed opportunities.
|
||||||
|
3. For each opportunity, compute revenue cache-first from `sales:metrics:oppRevenue:{cwOppId}` then `opp:products:{cwOpportunityId}`, and fallback through the manager/controller path (`opportunities.fetchRecord(...).fetchProducts()`) on miss.
|
||||||
|
4. Aggregate member metrics (pipeline revenue, won/lost MTD+YTD counts, avg days to close, weighted pipeline, win/loss rates, and related KPIs).
|
||||||
|
5. Write per-opportunity revenue blobs plus all-member and per-member snapshots to Redis with a 10-minute TTL.
|
||||||
|
|
||||||
|
Safety controls:
|
||||||
|
|
||||||
|
- **Single-flight lock** prevents overlapping refresh runs if a prior run is still in progress.
|
||||||
|
- **Per-opportunity timeout guard** ensures slow CW product lookups degrade to zero-revenue fallback instead of stalling the full refresh.
|
||||||
|
- **Force-cold-load mode** clears `sales:metrics:*` runtime state owned by the metrics cache before rebuilding startup data.
|
||||||
|
|
||||||
|
This cache-first model prioritizes metrics-owned opportunity revenue keys first, then opportunity product cache entries, and only reaches CW when needed.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Retry Logic (`withCwRetry`)
|
## Retry Logic (`withCwRetry`)
|
||||||
@@ -305,28 +349,32 @@ The shared Axios instance (`connectWiseApi`) is configured in `src/constants.ts`
|
|||||||
```
|
```
|
||||||
src/index.ts
|
src/index.ts
|
||||||
│
|
│
|
||||||
├─ setInterval(refreshOpportunityCache, 20m)
|
├─ setInterval(enqueueActiveOpportunityRefreshJob, 20m)
|
||||||
│
|
│
|
||||||
└─► src/modules/cache/opportunityCache.ts
|
└─► src/workert.ts (REFRESH_ACTIVE_OPPORTUNITIES worker)
|
||||||
│
|
│
|
||||||
├─ prisma.opportunity.findMany(orderBy: cwLastUpdated DESC)
|
├─ refreshOpportunities() // collector-first full DB sync
|
||||||
├─ redis.pipeline().exists(...) ← batch key check
|
│
|
||||||
│
|
└─► refreshActiveOpportunitiesWorker()
|
||||||
├─ Build thunk list (lazy functions)
|
│
|
||||||
│
|
├─ prisma.opportunity.findMany(orderBy: cwLastUpdated DESC)
|
||||||
└─ Execute thunks with CONCURRENCY=6, DELAY=250ms
|
├─ redis.pipeline().exists(...) ← batch key check
|
||||||
│
|
│
|
||||||
├─► fetchAndCacheOppCwData() ─► opportunityCw.fetch()
|
├─ Build thunk list (lazy functions)
|
||||||
├─► fetchAndCacheActivities() ─► activityCw.fetchByOpportunityDirect()
|
│
|
||||||
├─► fetchAndCacheNotes() ─► opportunityCw.fetchNotes()
|
└─ Execute thunks with ACTIVE_REFRESH_CONCURRENCY
|
||||||
├─► fetchAndCacheContacts() ─► opportunityCw.fetchContacts()
|
│
|
||||||
├─► fetchAndCacheProducts() ─► opportunityCw.fetchProducts() + fetchProcurementProducts()
|
├─► fetchAndCacheOppCwData() ─► opportunityCw.fetch()
|
||||||
├─► fetchAndCacheCompanyCwData() ─► fetchCwCompanyById() + contacts
|
├─► fetchAndCacheActivities() ─► activityCw.fetchByOpportunityDirect()
|
||||||
└─► fetchAndCacheSite() ─► fetchCompanySite() (lazy only)
|
├─► fetchAndCacheNotes() ─► opportunityCw.fetchNotes()
|
||||||
│
|
├─► fetchAndCacheContacts() ─► opportunityCw.fetchContacts()
|
||||||
└─► connectWiseApi.get(...) ← withCwRetry + cwApiLogger interceptors
|
├─► fetchAndCacheProducts() ─► opportunityCw.fetchProducts() + fetchProcurementProducts()
|
||||||
│
|
├─► fetchAndCacheCompanyCwData() ─► fetchCwCompanyById() + contacts
|
||||||
└─► Redis SET with computed TTL
|
└─► fetchAndCacheSite() ─► fetchCompanySite() (lazy only)
|
||||||
|
│
|
||||||
|
└─► connectWiseApi.get(...) ← withCwRetry + cwApiLogger interceptors
|
||||||
|
│
|
||||||
|
└─► Redis SET with computed TTL
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -335,7 +383,9 @@ src/index.ts
|
|||||||
|
|
||||||
| File | Purpose |
|
| File | Purpose |
|
||||||
| ---------------------------------------------------------------- | ------------------------------------------------------------- |
|
| ---------------------------------------------------------------- | ------------------------------------------------------------- |
|
||||||
| `src/modules/cache/opportunityCache.ts` | Cache read/write helpers, background refresh logic |
|
| `src/modules/cache/opportunityCache.ts` | Cache read/write helpers and key utilities |
|
||||||
|
| `src/modules/workers/cache/refreshActiveOpportunities.ts` | Unified opportunity cache refresh worker (active + archived) |
|
||||||
|
| `src/workert.ts` | Queue wiring and collector-first full refresh orchestration |
|
||||||
| `src/modules/algorithms/computeCacheTTL.ts` | Primary adaptive TTL algorithm |
|
| `src/modules/algorithms/computeCacheTTL.ts` | Primary adaptive TTL algorithm |
|
||||||
| `src/modules/algorithms/computeSubResourceCacheTTL.ts` | Sub-resource (notes, contacts) TTL algorithm |
|
| `src/modules/algorithms/computeSubResourceCacheTTL.ts` | Sub-resource (notes, contacts) TTL algorithm |
|
||||||
| `src/modules/algorithms/computeProductsCacheTTL.ts` | Products TTL algorithm |
|
| `src/modules/algorithms/computeProductsCacheTTL.ts` | Products TTL algorithm |
|
||||||
@@ -343,6 +393,7 @@ src/index.ts
|
|||||||
| `src/modules/cw-utils/cwApiLogger.ts` | Axios interceptor for JSONL call logging |
|
| `src/modules/cw-utils/cwApiLogger.ts` | Axios interceptor for JSONL call logging |
|
||||||
| `src/modules/cw-utils/fetchCompany.ts` | Company fetch with retry |
|
| `src/modules/cw-utils/fetchCompany.ts` | Company fetch with retry |
|
||||||
| `src/modules/cw-utils/procurement/listenInventoryAdjustments.ts` | Adjustment listener for targeted catalog-item cache + DB sync |
|
| `src/modules/cw-utils/procurement/listenInventoryAdjustments.ts` | Adjustment listener for targeted catalog-item cache + DB sync |
|
||||||
|
| `src/modules/cache/salesOpportunityMetricsCache.ts` | 5-minute active-member opportunity metrics cache |
|
||||||
| `src/constants.ts` | CW Axios instance config (timeout, logger) |
|
| `src/constants.ts` | CW Axios instance config (timeout, logger) |
|
||||||
| `src/index.ts` | Refresh interval registration |
|
| `src/index.ts` | Refresh interval registration and worker job enqueueing |
|
||||||
| `debug-scripts/analyze-cw-calls.py` | CW API call analysis script |
|
| `debug-scripts/analyze-cw-calls.py` | CW API call analysis script |
|
||||||
+169
@@ -0,0 +1,169 @@
|
|||||||
|
# =============================================================================
|
||||||
|
# Build context: monorepo root (.)
|
||||||
|
# This Dockerfile is built with `docker build -f api/Dockerfile .` from root.
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
# ---- Stage 1: Install production dependencies ----
|
||||||
|
FROM oven/bun:1.3.11 AS deps
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy root workspace manifest and lockfile
|
||||||
|
COPY package.json bun.lock ./
|
||||||
|
|
||||||
|
# Copy workspace package manifests (source not needed — just for bun workspace resolution)
|
||||||
|
COPY api/package.json ./api/package.json
|
||||||
|
COPY dalpuri/package.json ./dalpuri/package.json
|
||||||
|
COPY ui/package.json ./ui/package.json
|
||||||
|
COPY patches ./patches
|
||||||
|
|
||||||
|
RUN bun install --frozen-lockfile --production
|
||||||
|
|
||||||
|
# ---- Stage 2: Build ----
|
||||||
|
FROM oven/bun:1.3.11 AS build
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy root workspace manifest and lockfile, plus workspace package manifests
|
||||||
|
COPY package.json bun.lock ./
|
||||||
|
COPY api/package.json ./api/package.json
|
||||||
|
COPY dalpuri/package.json ./dalpuri/package.json
|
||||||
|
COPY ui/package.json ./ui/package.json
|
||||||
|
COPY patches ./patches
|
||||||
|
|
||||||
|
# Install all deps (including dev) for the full workspace
|
||||||
|
RUN bun install --frozen-lockfile
|
||||||
|
|
||||||
|
# Copy API source and config
|
||||||
|
COPY api/src/ ./api/src/
|
||||||
|
COPY api/prisma/ ./api/prisma/
|
||||||
|
COPY api/prisma.config.ts api/tsconfig.json ./api/
|
||||||
|
COPY api/logo.png ./api/logo.png
|
||||||
|
|
||||||
|
# Copy Dalpuri source and Prisma schema
|
||||||
|
COPY dalpuri/src/ ./dalpuri/src/
|
||||||
|
COPY dalpuri/prisma/ ./dalpuri/prisma/
|
||||||
|
COPY dalpuri/prisma.config.ts ./dalpuri/prisma.config.ts
|
||||||
|
|
||||||
|
# Generate Dalpuri Prisma client (ConnectWise MSSQL schema)
|
||||||
|
# prisma generate does not connect — dummy URL just satisfies the env requirement
|
||||||
|
WORKDIR /app/dalpuri
|
||||||
|
RUN DATABASE_URL="sqlserver://localhost:1433;database=dummy;user=dummy;password=dummy;trustServerCertificate=true" \
|
||||||
|
bunx prisma generate
|
||||||
|
|
||||||
|
# Generate API Prisma client (PostgreSQL schema)
|
||||||
|
WORKDIR /app/api
|
||||||
|
RUN DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy" bunx prisma generate
|
||||||
|
|
||||||
|
# Compile the API server to a standalone binary
|
||||||
|
RUN NODE_ENV=production bun build src/index.ts \
|
||||||
|
--compile \
|
||||||
|
--minify \
|
||||||
|
--target=bun-linux-x64 \
|
||||||
|
--outfile=server
|
||||||
|
|
||||||
|
# Compile the worker process to a standalone binary
|
||||||
|
RUN NODE_ENV=production bun build src/workert.ts \
|
||||||
|
--compile \
|
||||||
|
--minify \
|
||||||
|
--target=bun-linux-x64 \
|
||||||
|
--outfile=worker
|
||||||
|
|
||||||
|
# ---- Stage 3: Shared runtime base (API server and worker share the same deps/files) ----
|
||||||
|
FROM ubuntu:22.04 AS runtime-base
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Install minimal runtime dependencies (CA certs for HTTPS calls)
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends ca-certificates && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Copy Prisma artifacts needed at runtime
|
||||||
|
COPY --from=build /app/api/generated/ ./generated/
|
||||||
|
COPY --from=build /app/api/prisma/ ./prisma/
|
||||||
|
COPY --from=build /app/api/prisma.config.ts ./prisma.config.ts
|
||||||
|
|
||||||
|
# Copy Dalpuri generated Prisma client (worker imports dalpuri which references this)
|
||||||
|
COPY --from=build /app/dalpuri/generated/ ./dalpuri/generated/
|
||||||
|
|
||||||
|
# Copy production node_modules (Prisma adapter needs native bindings)
|
||||||
|
COPY --from=deps /app/node_modules/ ./node_modules/
|
||||||
|
|
||||||
|
# Ensure pdfmake Roboto fonts are present at runtime for PDF generation.
|
||||||
|
COPY --from=build /app/api/node_modules/pdfmake/build/fonts/ ./node_modules/pdfmake/build/fonts/
|
||||||
|
|
||||||
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
|
# ---- Stage 4: API server runtime image ----
|
||||||
|
FROM runtime-base AS runtime
|
||||||
|
|
||||||
|
# API-specific: PDF branding asset and sales tax lookup data
|
||||||
|
COPY --from=build /app/api/server ./server
|
||||||
|
COPY --from=build /app/api/logo.png ./logo.png
|
||||||
|
COPY --from=build /app/api/src/modules/sales-utils/salesTaxRates.json ./salesTaxRates.json
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD ["./server"]
|
||||||
|
|
||||||
|
# ---- Stage 5: Worker runtime image ----
|
||||||
|
FROM runtime-base AS worker
|
||||||
|
|
||||||
|
COPY --from=build /app/api/worker ./worker
|
||||||
|
|
||||||
|
# Default to localhost for local dev; override with k8s internal service URL in production
|
||||||
|
ENV MANAGER_SOCKET_URL=http://localhost:8671
|
||||||
|
|
||||||
|
CMD ["./worker"]
|
||||||
|
|
||||||
|
# ---- Stage 6: Migration runner ----
|
||||||
|
FROM oven/bun:1.3.11 AS migration
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy workspace manifests for bun workspace resolution
|
||||||
|
COPY package.json bun.lock ./
|
||||||
|
COPY api/package.json ./api/package.json
|
||||||
|
COPY dalpuri/package.json ./dalpuri/package.json
|
||||||
|
COPY ui/package.json ./ui/package.json
|
||||||
|
COPY patches ./patches
|
||||||
|
|
||||||
|
RUN bun install --frozen-lockfile
|
||||||
|
|
||||||
|
COPY api/prisma/ ./api/prisma/
|
||||||
|
COPY api/prisma.config.ts ./api/prisma.config.ts
|
||||||
|
|
||||||
|
RUN chmod +x /app/api/prisma/migrate-entrypoint.sh
|
||||||
|
|
||||||
|
WORKDIR /app/api
|
||||||
|
CMD ["sh", "prisma/migrate-entrypoint.sh"]
|
||||||
|
|
||||||
|
# ---- Stage 7: Dalpuri CW-to-API sync runner ----
|
||||||
|
FROM oven/bun:1.3.11 AS dalpuri-sync
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY package.json bun.lock ./
|
||||||
|
COPY api/package.json ./api/package.json
|
||||||
|
COPY dalpuri/package.json ./dalpuri/package.json
|
||||||
|
COPY ui/package.json ./ui/package.json
|
||||||
|
COPY patches ./patches
|
||||||
|
|
||||||
|
RUN bun install --frozen-lockfile
|
||||||
|
|
||||||
|
COPY dalpuri/src/ ./dalpuri/src/
|
||||||
|
COPY dalpuri/prisma/ ./dalpuri/prisma/
|
||||||
|
COPY dalpuri/prisma.config.ts ./dalpuri/prisma.config.ts
|
||||||
|
|
||||||
|
COPY api/prisma/ ./api/prisma/
|
||||||
|
COPY api/prisma.config.ts ./api/prisma.config.ts
|
||||||
|
|
||||||
|
WORKDIR /app/dalpuri
|
||||||
|
RUN DATABASE_URL="sqlserver://localhost:1433;database=dummy;user=dummy;password=dummy;trustServerCertificate=true" \
|
||||||
|
bunx prisma generate
|
||||||
|
|
||||||
|
WORKDIR /app/api
|
||||||
|
RUN DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy" bunx prisma generate
|
||||||
|
|
||||||
|
WORKDIR /app/dalpuri
|
||||||
|
CMD ["bun", "run", "src/sync.ts"]
|
||||||
+674
@@ -0,0 +1,674 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||||
@@ -142,38 +142,43 @@ Permissions for accessing and managing sales opportunities. Opportunities are sy
|
|||||||
|
|
||||||
**WebSocket note:** The `/secure` socket event chain `opp:live_quote_preview` and `opp:live_quote_preview:<id>:data` is gated by `sales.opportunity.fetch`.
|
**WebSocket note:** The `/secure` socket event chain `opp:live_quote_preview` and `opp:live_quote_preview:<id>:data` is gated by `sales.opportunity.fetch`.
|
||||||
|
|
||||||
| Permission Node | Description | Used In | Dependencies |
|
| Permission Node | Description | Used In | Dependencies |
|
||||||
| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------- |
|
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------ |
|
||||||
| `sales.opportunity.fetch` | Fetch a single opportunity and its CW sub-resources (products, notes, contacts) | [src/api/sales/opportunities/[id]/fetch.ts](src/api/sales/opportunities/[id]/fetch.ts), [src/api/sales/opportunities/[id]/products/fetchAll.ts](src/api/sales/opportunities/[id]/products/fetchAll.ts), [src/api/sales/opportunities/[id]/notes/fetchAll.ts](src/api/sales/opportunities/[id]/notes/fetchAll.ts), [src/api/sales/opportunities/[id]/notes/fetch.ts](src/api/sales/opportunities/[id]/notes/fetch.ts), [src/api/sales/opportunities/[id]/contacts/fetchAll.ts](src/api/sales/opportunities/[id]/contacts/fetchAll.ts), [src/api/sockets/events/liveQuotePreview.ts](src/api/sockets/events/liveQuotePreview.ts) | |
|
| `sales.opportunity.fetch` | Fetch a single opportunity and its CW sub-resources (products, notes, contacts) | [src/api/sales/opportunities/[id]/fetch.ts](src/api/sales/opportunities/[id]/fetch.ts), [src/api/sales/opportunities/[id]/products/fetchAll.ts](src/api/sales/opportunities/[id]/products/fetchAll.ts), [src/api/sales/opportunities/[id]/notes/fetchAll.ts](src/api/sales/opportunities/[id]/notes/fetchAll.ts), [src/api/sales/opportunities/[id]/notes/fetch.ts](src/api/sales/opportunities/[id]/notes/fetch.ts), [src/api/sales/opportunities/[id]/contacts/fetchAll.ts](src/api/sales/opportunities/[id]/contacts/fetchAll.ts), [src/api/sockets/events/liveQuotePreview.ts](src/api/sockets/events/liveQuotePreview.ts) | |
|
||||||
| `sales.opportunity.fetch.many` | Fetch multiple opportunities (paginated/searchable), count, or opportunity types | [src/api/sales/opportunities/fetchAll.ts](src/api/sales/opportunities/fetchAll.ts), [src/api/sales/opportunities/count.ts](src/api/sales/opportunities/count.ts), [src/api/sales/opportunities/fetchTypes.ts](src/api/sales/opportunities/fetchTypes.ts) | |
|
| `sales.opportunity.fetch.many` | Fetch multiple opportunities (paginated/searchable), count, or opportunity types | [src/api/sales/opportunities/fetchAll.ts](src/api/sales/opportunities/fetchAll.ts), [src/api/sales/opportunities/count.ts](src/api/sales/opportunities/count.ts), [src/api/sales/opportunities/fetchTypes.ts](src/api/sales/opportunities/fetchTypes.ts) | |
|
||||||
| `sales.opportunity.refresh` | Refresh a single opportunity's local data from ConnectWise | [src/api/sales/opportunities/[id]/refresh.ts](src/api/sales/opportunities/[id]/refresh.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.fetch.@me` | View the personal sales dashboard showing opportunities assigned to the current user | UI-only (client-side gate) | |
|
||||||
| `sales.opportunity.update` | Update an opportunity's fields (rating, sales rep, company, contact, site, description, etc.) in ConnectWise | [src/api/sales/opportunities/[id]/update.ts](src/api/sales/opportunities/[id]/update.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.fetch.all` | View all opportunities across all users (All Opportunities tab and View All button in the sales dashboard) | UI-only (client-side gate) | `sales.opportunity.fetch.many` |
|
||||||
| `sales.opportunity.create` | Create a new opportunity in ConnectWise | [src/api/sales/opportunities/create.ts](src/api/sales/opportunities/create.ts) | |
|
| `sales.opportunity.metrics.all` | Allow `scope=all` on sales opportunity metrics endpoint to read cached metrics for all active members | [src/api/sales/opportunities/metrics.ts](src/api/sales/opportunities/metrics.ts) | `sales.opportunity.fetch.many` |
|
||||||
| `sales.opportunity.delete` | Delete an opportunity from ConnectWise and the local database | [src/api/sales/opportunities/[id]/delete.ts](src/api/sales/opportunities/[id]/delete.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.metrics.identifier.override` | Allow `identifier=<cwIdentifier>` override on sales opportunity metrics endpoint for querying another member | [src/api/sales/opportunities/metrics.ts](src/api/sales/opportunities/metrics.ts) | `sales.opportunity.fetch.many` |
|
||||||
| `sales.opportunity.note.create` | Create a new note on an opportunity | [src/api/sales/opportunities/[id]/notes/create.ts](src/api/sales/opportunities/[id]/notes/create.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.refresh` | Refresh a single opportunity's local data from ConnectWise | [src/api/sales/opportunities/[id]/refresh.ts](src/api/sales/opportunities/[id]/refresh.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.note.update` | Update an existing note on an opportunity | [src/api/sales/opportunities/[id]/notes/update.ts](src/api/sales/opportunities/[id]/notes/update.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.update` | Update an opportunity's fields (rating, sales rep, company, contact, site, description, etc.) in ConnectWise | [src/api/sales/opportunities/[id]/update.ts](src/api/sales/opportunities/[id]/update.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.note.delete` | Delete a note from an opportunity | [src/api/sales/opportunities/[id]/notes/delete.ts](src/api/sales/opportunities/[id]/notes/delete.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.create` | Create a new opportunity in ConnectWise | [src/api/sales/opportunities/create.ts](src/api/sales/opportunities/create.ts) | |
|
||||||
| `sales.opportunity.product.update` | Update products (forecast items) on an opportunity, including resequencing | [src/api/sales/opportunities/[id]/products/resequence.ts](src/api/sales/opportunities/[id]/products/resequence.ts), [src/api/sales/opportunities/[id]/products/update.ts](src/api/sales/opportunities/[id]/products/update.ts), [src/api/sales/opportunities/[id]/products/cancel.ts](src/api/sales/opportunities/[id]/products/cancel.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.delete` | Delete an opportunity from ConnectWise and the local database | [src/api/sales/opportunities/[id]/delete.ts](src/api/sales/opportunities/[id]/delete.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.product.delete` | Delete a product (forecast item) from an opportunity | [src/api/sales/opportunities/[id]/products/delete.ts](src/api/sales/opportunities/[id]/products/delete.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.note.create` | Create a new note on an opportunity | [src/api/sales/opportunities/[id]/notes/create.ts](src/api/sales/opportunities/[id]/notes/create.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.product.add` | Add a new product (forecast item) to an opportunity. Individual fields gated by `sales.opportunity.product.field.<field>` permissions. | [src/api/sales/opportunities/[id]/products/add.ts](src/api/sales/opportunities/[id]/products/add.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.note.update` | Update an existing note on an opportunity | [src/api/sales/opportunities/[id]/notes/update.ts](src/api/sales/opportunities/[id]/notes/update.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.product.add.specialOrder` | Add one or more "SPECIAL ORDER" products via the dedicated special-order route. | [src/api/sales/opportunities/[id]/products/addSpecialOrder.ts](src/api/sales/opportunities/[id]/products/addSpecialOrder.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.note.delete` | Delete a note from an opportunity | [src/api/sales/opportunities/[id]/notes/delete.ts](src/api/sales/opportunities/[id]/notes/delete.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.product.add.labor` | Add labor products via the dedicated labor route with Field/Tech catalog selection and labor pricing inputs. | [src/api/sales/opportunities/[id]/products/addLabor.ts](src/api/sales/opportunities/[id]/products/addLabor.ts), [src/api/sales/opportunities/[id]/products/laborOptions.ts](src/api/sales/opportunities/[id]/products/laborOptions.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.product.update` | Update products (forecast items) on an opportunity, including resequencing | [src/api/sales/opportunities/[id]/products/resequence.ts](src/api/sales/opportunities/[id]/products/resequence.ts), [src/api/sales/opportunities/[id]/products/update.ts](src/api/sales/opportunities/[id]/products/update.ts), [src/api/sales/opportunities/[id]/products/cancel.ts](src/api/sales/opportunities/[id]/products/cancel.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.quote.fetch` | Fetch all committed quotes for an opportunity. | [src/api/sales/opportunities/[id]/quotes/fetchAll.ts](src/api/sales/opportunities/[id]/quotes/fetchAll.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.product.delete` | Delete a product (forecast item) from an opportunity | [src/api/sales/opportunities/[id]/products/delete.ts](src/api/sales/opportunities/[id]/products/delete.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.quote.commit` | Generate and store a finalized quote PDF for an opportunity with regeneration metadata and creator attribution. | [src/api/sales/opportunities/[id]/quotes/commit.ts](src/api/sales/opportunities/[id]/quotes/commit.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.product.add` | Add a new product (forecast item) to an opportunity. Individual fields gated by `sales.opportunity.product.field.<field>` permissions. | [src/api/sales/opportunities/[id]/products/add.ts](src/api/sales/opportunities/[id]/products/add.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.quote.preview` | Generate a preview-stamped quote PDF for an opportunity without storing it. | [src/api/sales/opportunities/[id]/quotes/preview.ts](src/api/sales/opportunities/[id]/quotes/preview.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.product.add.specialOrder` | Add one or more "SPECIAL ORDER" products via the dedicated special-order route. | [src/api/sales/opportunities/[id]/products/addSpecialOrder.ts](src/api/sales/opportunities/[id]/products/addSpecialOrder.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.quote.download` | Download a committed quote PDF. Each download is recorded with timestamp and user info. | [src/api/sales/opportunities/[id]/quotes/download.ts](src/api/sales/opportunities/[id]/quotes/download.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.product.add.labor` | Add labor products via the dedicated labor route with Field/Tech catalog selection and labor pricing inputs. | [src/api/sales/opportunities/[id]/products/addLabor.ts](src/api/sales/opportunities/[id]/products/addLabor.ts), [src/api/sales/opportunities/[id]/products/laborOptions.ts](src/api/sales/opportunities/[id]/products/laborOptions.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.quote.fetch_downloads` | Fetch download/print history for all quotes on an opportunity. Admin-level permission. | [src/api/sales/opportunities/[id]/quotes/fetchDownloads.ts](src/api/sales/opportunities/[id]/quotes/fetchDownloads.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.quote.fetch` | Fetch all committed quotes for an opportunity. | [src/api/sales/opportunities/[id]/quotes/fetchAll.ts](src/api/sales/opportunities/[id]/quotes/fetchAll.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.view_margin` | View margin and markup data on opportunity products. Controls visibility of margin %, markup %, and related progress bars in the UI. | UI-only (client-side gate) | `sales.opportunity.fetch` |
|
| `sales.opportunity.quote.commit` | Generate and store a finalized quote PDF for an opportunity with regeneration metadata and creator attribution. | [src/api/sales/opportunities/[id]/quotes/commit.ts](src/api/sales/opportunities/[id]/quotes/commit.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.view_cost` | View cost data on opportunity products. Controls visibility of unit cost, total cost, and recurring cost in the UI. | UI-only (client-side gate) | `sales.opportunity.fetch` |
|
| `sales.opportunity.quote.preview` | Generate a preview-stamped quote PDF for an opportunity without storing it. | [src/api/sales/opportunities/[id]/quotes/preview.ts](src/api/sales/opportunities/[id]/quotes/preview.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.view_profit` | View profit data on opportunity products. Controls visibility of profit values in the UI. | UI-only (client-side gate) | `sales.opportunity.fetch` |
|
| `sales.opportunity.quote.download` | Download a committed quote PDF. Each download is recorded with timestamp and user info. | [src/api/sales/opportunities/[id]/quotes/download.ts](src/api/sales/opportunities/[id]/quotes/download.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.workflow` | Execute opportunity workflow actions (status transitions, review decisions, quote sending, etc.). Base gate for the workflow dispatch endpoint. | [dispatch.ts](src/api/sales/opportunities/[id]/workflow/dispatch.ts) | `sales.opportunity.fetch` |
|
| `sales.opportunity.quote.fetch_downloads` | Fetch download/print history for all quotes on an opportunity. Admin-level permission. | [src/api/sales/opportunities/[id]/quotes/fetchDownloads.ts](src/api/sales/opportunities/[id]/quotes/fetchDownloads.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.finalize` | Finalize an opportunity as Won or Lost. Without this permission, win/lose actions route to PendingWon/PendingLost instead. | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts), [dispatch.ts](src/api/sales/opportunities/[id]/workflow/dispatch.ts) | `sales.opportunity.workflow` |
|
| `sales.opportunity.view_margin` | View margin and markup data on opportunity products. Controls visibility of margin %, markup %, and related progress bars in the UI. | UI-only (client-side gate) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.cancel` | Cancel an opportunity. Required to transition any eligible opportunity to the Canceled status. | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts), [dispatch.ts](src/api/sales/opportunities/[id]/workflow/dispatch.ts) | `sales.opportunity.workflow` |
|
| `sales.opportunity.view_cost` | View cost data on opportunity products. Controls visibility of unit cost, total cost, and recurring cost in the UI. | UI-only (client-side gate) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.review` | Submit an opportunity for internal review. Required to transition an opportunity into the InternalReview status. | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts) | `sales.opportunity.workflow` |
|
| `sales.opportunity.view_profit` | View profit data on opportunity products. Controls visibility of profit values in the UI. | UI-only (client-side gate) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.send` | Send a quote to the customer. Required to transition an opportunity to QuoteSent (and compound transitions like immediate won/lost/confirmed). | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts) | `sales.opportunity.workflow` |
|
| `sales.opportunity.workflow` | Execute opportunity workflow actions (status transitions, review decisions, quote sending, etc.). Base gate for the workflow dispatch endpoint. | [dispatch.ts](src/api/sales/opportunities/[id]/workflow/dispatch.ts) | `sales.opportunity.fetch` |
|
||||||
| `sales.opportunity.reopen` | Re-open a cancelled opportunity. Required to transition an opportunity from Canceled back to Active. | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts) | `sales.opportunity.workflow` |
|
| `sales.opportunity.finalize` | Finalize an opportunity as Won or Lost. Without this permission, win/lose actions route to PendingWon/PendingLost instead. | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts), [dispatch.ts](src/api/sales/opportunities/[id]/workflow/dispatch.ts) | `sales.opportunity.workflow` |
|
||||||
| `sales.opportunity.win` | Mark an opportunity as won (or pending won). Gates the win button in the UI. Required for finalize(won), sendQuote(won), and transitionToPending(won). | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts) | `sales.opportunity.workflow` |
|
| `sales.opportunity.cancel` | Cancel an opportunity. Required to transition any eligible opportunity to the Canceled status. | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts), [dispatch.ts](src/api/sales/opportunities/[id]/workflow/dispatch.ts) | `sales.opportunity.workflow` |
|
||||||
| `sales.opportunity.lose` | Mark an opportunity as lost (or pending lost). Gates the lose button in the UI. Required for finalize(lost), sendQuote(lost), and transitionToPending(lost). | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts) | `sales.opportunity.workflow` |
|
| `sales.opportunity.review` | Submit an opportunity for internal review. Required to transition an opportunity into the InternalReview status. | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts) | `sales.opportunity.workflow` |
|
||||||
|
| `sales.opportunity.send` | Send a quote to the customer. Required to transition an opportunity to QuoteSent (and compound transitions like immediate won/lost/confirmed). | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts) | `sales.opportunity.workflow` |
|
||||||
|
| `sales.opportunity.reopen` | Re-open a cancelled opportunity. Required to transition an opportunity from Canceled back to Active. | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts) | `sales.opportunity.workflow` |
|
||||||
|
| `sales.opportunity.win` | Mark an opportunity as won (or pending won). Gates the win button in the UI. Required for finalize(won), sendQuote(won), and transitionToPending(won). | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts) | `sales.opportunity.workflow` |
|
||||||
|
| `sales.opportunity.lose` | Mark an opportunity as lost (or pending lost). Gates the lose button in the UI. Required for finalize(lost), sendQuote(lost), and transitionToPending(lost). | [src/workflows/wf.opportunity.ts](src/workflows/wf.opportunity.ts) | `sales.opportunity.workflow` |
|
||||||
|
| `sales.isRepresentative` | Designates the user as a sales representative; used for reporting and filtering purposes. | _(not yet used in routes)_ | |
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary><strong>Field-level permissions for <code>sales.opportunity.product.add</code></strong></summary>
|
<summary><strong>Field-level permissions for <code>sales.opportunity.product.add</code></strong></summary>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# ttsci-api
|
||||||
|
The Api for the TTS Credentials Manager
|
||||||
+511
@@ -0,0 +1,511 @@
|
|||||||
|
{
|
||||||
|
"lockfileVersion": 1,
|
||||||
|
"configVersion": 1,
|
||||||
|
"workspaces": {
|
||||||
|
"": {
|
||||||
|
"name": "ttscm-api",
|
||||||
|
"dependencies": {
|
||||||
|
"@azure/msal-node": "^5.0.2",
|
||||||
|
"@discordjs/collection": "^2.1.1",
|
||||||
|
"@duxcore/eventra": "^1.1.0",
|
||||||
|
"@prisma/adapter-pg": "^7.3.0",
|
||||||
|
"@prisma/client": "^7.3.0",
|
||||||
|
"@socket.io/bun-engine": "^0.1.0",
|
||||||
|
"axios": "^1.13.3",
|
||||||
|
"blakets": "^0.1.12",
|
||||||
|
"cors": "^2.8.6",
|
||||||
|
"cuid": "^3.0.0",
|
||||||
|
"hono": "^4.11.5",
|
||||||
|
"ioredis": "^5.10.0",
|
||||||
|
"jsonwebtoken": "^9.0.3",
|
||||||
|
"keypair": "^1.0.4",
|
||||||
|
"pdf-lib": "^1.17.1",
|
||||||
|
"pdfmake": "^0.3.5",
|
||||||
|
"pg-boss": "^12.14.0",
|
||||||
|
"prisma": "^7.3.0",
|
||||||
|
"socket.io": "^4.8.3",
|
||||||
|
"socket.io-client": "^4.8.3",
|
||||||
|
"zod": "^4.3.6",
|
||||||
|
"zon": "^1.0.3",
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/bun": "latest",
|
||||||
|
"@types/jsonwebtoken": "^9.0.10",
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"typescript": "^5",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"packages": {
|
||||||
|
"@azure/msal-common": ["@azure/msal-common@16.0.2", "", {}, "sha512-ZJ/UR7lyqIntURrIJCyvScwJFanM9QhJYcJCheB21jZofGKpP9QxWgvADANo7UkresHKzV+6YwoeZYP7P7HvUg=="],
|
||||||
|
|
||||||
|
"@azure/msal-node": ["@azure/msal-node@5.0.2", "", { "dependencies": { "@azure/msal-common": "16.0.2", "jsonwebtoken": "^9.0.0", "uuid": "^8.3.0" } }, "sha512-3tHeJghckgpTX98TowJoXOjKGuds0L+FKfeHJtoZFl2xvwE6RF65shZJzMQ5EQZWXzh3sE1i9gE+m3aRMachjA=="],
|
||||||
|
|
||||||
|
"@chevrotain/cst-dts-gen": ["@chevrotain/cst-dts-gen@10.5.0", "", { "dependencies": { "@chevrotain/gast": "10.5.0", "@chevrotain/types": "10.5.0", "lodash": "4.17.21" } }, "sha512-lhmC/FyqQ2o7pGK4Om+hzuDrm9rhFYIJ/AXoQBeongmn870Xeb0L6oGEiuR8nohFNL5sMaQEJWCxr1oIVIVXrw=="],
|
||||||
|
|
||||||
|
"@chevrotain/gast": ["@chevrotain/gast@10.5.0", "", { "dependencies": { "@chevrotain/types": "10.5.0", "lodash": "4.17.21" } }, "sha512-pXdMJ9XeDAbgOWKuD1Fldz4ieCs6+nLNmyVhe2gZVqoO7v8HXuHYs5OV2EzUtbuai37TlOAQHrTDvxMnvMJz3A=="],
|
||||||
|
|
||||||
|
"@chevrotain/types": ["@chevrotain/types@10.5.0", "", {}, "sha512-f1MAia0x/pAVPWH/T73BJVyO2XU5tI4/iE7cnxb7tqdNTNhQI3Uq3XkqcoteTmD4t1aM0LbHCJOhgIDn07kl2A=="],
|
||||||
|
|
||||||
|
"@chevrotain/utils": ["@chevrotain/utils@10.5.0", "", {}, "sha512-hBzuU5+JjB2cqNZyszkDHZgOSrUUT8V3dhgRl8Q9Gp6dAj/H5+KILGjbhDpc3Iy9qmqlm/akuOI2ut9VUtzJxQ=="],
|
||||||
|
|
||||||
|
"@discordjs/collection": ["@discordjs/collection@2.1.1", "", {}, "sha512-LiSusze9Tc7qF03sLCujF5iZp7K+vRNEDBZ86FT9aQAv3vxMLihUvKvpsCWiQ2DJq1tVckopKm1rxomgNUc9hg=="],
|
||||||
|
|
||||||
|
"@duxcore/eventra": ["@duxcore/eventra@1.1.0", "", {}, "sha512-XYLksXvOjr3uGw9oh0wgKVF0POiz1Gjk/Ety8chEQdEwzDAiyydztB8TtjF/Pfr+vdM/ceMV/OOQliBZLnfONA=="],
|
||||||
|
|
||||||
|
"@electric-sql/pglite": ["@electric-sql/pglite@0.3.15", "", {}, "sha512-Cj++n1Mekf9ETfdc16TlDi+cDDQF0W7EcbyRHYOAeZdsAe8M/FJg18itDTSwyHfar2WIezawM9o0EKaRGVKygQ=="],
|
||||||
|
|
||||||
|
"@electric-sql/pglite-socket": ["@electric-sql/pglite-socket@0.0.20", "", { "peerDependencies": { "@electric-sql/pglite": "0.3.15" }, "bin": { "pglite-server": "dist/scripts/server.js" } }, "sha512-J5nLGsicnD9wJHnno9r+DGxfcZWh+YJMCe0q/aCgtG6XOm9Z7fKeite8IZSNXgZeGltSigM9U/vAWZQWdgcSFg=="],
|
||||||
|
|
||||||
|
"@electric-sql/pglite-tools": ["@electric-sql/pglite-tools@0.2.20", "", { "peerDependencies": { "@electric-sql/pglite": "0.3.15" } }, "sha512-BK50ZnYa3IG7ztXhtgYf0Q7zijV32Iw1cYS8C+ThdQlwx12V5VZ9KRJ42y82Hyb4PkTxZQklVQA9JHyUlex33A=="],
|
||||||
|
|
||||||
|
"@hono/node-server": ["@hono/node-server@1.19.9", "", { "peerDependencies": { "hono": "^4" } }, "sha512-vHL6w3ecZsky+8P5MD+eFfaGTyCeOHUIFYMGpQGbrBTSmNNoxv0if69rEZ5giu36weC5saFuznL411gRX7bJDw=="],
|
||||||
|
|
||||||
|
"@ioredis/commands": ["@ioredis/commands@1.5.1", "", {}, "sha512-JH8ZL/ywcJyR9MmJ5BNqZllXNZQqQbnVZOqpPQqE1vHiFgAw4NHbvE0FOduNU8IX9babitBT46571OnPTT0Zcw=="],
|
||||||
|
|
||||||
|
"@mrleebo/prisma-ast": ["@mrleebo/prisma-ast@0.13.1", "", { "dependencies": { "chevrotain": "^10.5.0", "lilconfig": "^2.1.0" } }, "sha512-XyroGQXcHrZdvmrGJvsA9KNeOOgGMg1Vg9OlheUsBOSKznLMDl+YChxbkboRHvtFYJEMRYmlV3uoo/njCw05iw=="],
|
||||||
|
|
||||||
|
"@pdf-lib/standard-fonts": ["@pdf-lib/standard-fonts@1.0.0", "", { "dependencies": { "pako": "^1.0.6" } }, "sha512-hU30BK9IUN/su0Mn9VdlVKsWBS6GyhVfqjwl1FjZN4TxP6cCw0jP2w7V3Hf5uX7M0AZJ16vey9yE0ny7Sa59ZA=="],
|
||||||
|
|
||||||
|
"@pdf-lib/upng": ["@pdf-lib/upng@1.0.1", "", { "dependencies": { "pako": "^1.0.10" } }, "sha512-dQK2FUMQtowVP00mtIksrlZhdFXQZPC+taih1q4CvPZ5vqdxR/LKBaFg0oAfzd1GlHZXXSPdQfzQnt+ViGvEIQ=="],
|
||||||
|
|
||||||
|
"@prisma/adapter-pg": ["@prisma/adapter-pg@7.3.0", "", { "dependencies": { "@prisma/driver-adapter-utils": "7.3.0", "pg": "^8.16.3", "postgres-array": "3.0.4" } }, "sha512-iuYQMbIPO6i9O45Fv8TB7vWu00BXhCaNAShenqF7gLExGDbnGp5BfFB4yz1K59zQ59jF6tQ9YHrg0P6/J3OoLg=="],
|
||||||
|
|
||||||
|
"@prisma/client": ["@prisma/client@7.3.0", "", { "dependencies": { "@prisma/client-runtime-utils": "7.3.0" }, "peerDependencies": { "prisma": "*", "typescript": ">=5.4.0" }, "optionalPeers": ["prisma", "typescript"] }, "sha512-FXBIxirqQfdC6b6HnNgxGmU7ydCPEPk7maHMOduJJfnTP+MuOGa15X4omjR/zpPUUpm8ef/mEFQjJudOGkXFcQ=="],
|
||||||
|
|
||||||
|
"@prisma/client-runtime-utils": ["@prisma/client-runtime-utils@7.3.0", "", {}, "sha512-dG/ceD9c+tnXATPk8G+USxxYM9E6UdMTnQeQ+1SZUDxTz7SgQcfxEqafqIQHcjdlcNK/pvmmLfSwAs3s2gYwUw=="],
|
||||||
|
|
||||||
|
"@prisma/config": ["@prisma/config@7.3.0", "", { "dependencies": { "c12": "3.1.0", "deepmerge-ts": "7.1.5", "effect": "3.18.4", "empathic": "2.0.0" } }, "sha512-QyMV67+eXF7uMtKxTEeQqNu/Be7iH+3iDZOQZW5ttfbSwBamCSdwPszA0dum+Wx27I7anYTPLmRmMORKViSW1A=="],
|
||||||
|
|
||||||
|
"@prisma/debug": ["@prisma/debug@7.3.0", "", {}, "sha512-yh/tHhraCzYkffsI1/3a7SHX8tpgbJu1NPnuxS4rEpJdWAUDHUH25F1EDo6PPzirpyLNkgPPZdhojQK804BGtg=="],
|
||||||
|
|
||||||
|
"@prisma/dev": ["@prisma/dev@0.20.0", "", { "dependencies": { "@electric-sql/pglite": "0.3.15", "@electric-sql/pglite-socket": "0.0.20", "@electric-sql/pglite-tools": "0.2.20", "@hono/node-server": "1.19.9", "@mrleebo/prisma-ast": "0.13.1", "@prisma/get-platform": "7.2.0", "@prisma/query-plan-executor": "7.2.0", "foreground-child": "3.3.1", "get-port-please": "3.2.0", "hono": "4.11.4", "http-status-codes": "2.3.0", "pathe": "2.0.3", "proper-lockfile": "4.1.2", "remeda": "2.33.4", "std-env": "3.10.0", "valibot": "1.2.0", "zeptomatch": "2.1.0" } }, "sha512-ovlBYwWor0OzG+yH4J3Ot+AneD818BttLA+Ii7wjbcLHUrnC4tbUPVGyNd3c/+71KETPKZfjhkTSpdS15dmXNQ=="],
|
||||||
|
|
||||||
|
"@prisma/driver-adapter-utils": ["@prisma/driver-adapter-utils@7.3.0", "", { "dependencies": { "@prisma/debug": "7.3.0" } }, "sha512-Wdlezh1ck0Rq2dDINkfSkwbR53q53//Eo1vVqVLwtiZ0I6fuWDGNPxwq+SNAIHnsU+FD/m3aIJKevH3vF13U3w=="],
|
||||||
|
|
||||||
|
"@prisma/engines": ["@prisma/engines@7.3.0", "", { "dependencies": { "@prisma/debug": "7.3.0", "@prisma/engines-version": "7.3.0-16.9d6ad21cbbceab97458517b147a6a09ff43aa735", "@prisma/fetch-engine": "7.3.0", "@prisma/get-platform": "7.3.0" } }, "sha512-cWRQoPDXPtR6stOWuWFZf9pHdQ/o8/QNWn0m0zByxf5Kd946Q875XdEJ52pEsX88vOiXUmjuPG3euw82mwQNMg=="],
|
||||||
|
|
||||||
|
"@prisma/engines-version": ["@prisma/engines-version@7.3.0-16.9d6ad21cbbceab97458517b147a6a09ff43aa735", "", {}, "sha512-IH2va2ouUHihyiTTRW889LjKAl1CusZOvFfZxCDNpjSENt7g2ndFsK0vdIw/72v7+jCN6YgkHmdAP/BI7SDgyg=="],
|
||||||
|
|
||||||
|
"@prisma/fetch-engine": ["@prisma/fetch-engine@7.3.0", "", { "dependencies": { "@prisma/debug": "7.3.0", "@prisma/engines-version": "7.3.0-16.9d6ad21cbbceab97458517b147a6a09ff43aa735", "@prisma/get-platform": "7.3.0" } }, "sha512-Mm0F84JMqM9Vxk70pzfNpGJ1lE4hYjOeLMu7nOOD1i83nvp8MSAcFYBnHqLvEZiA6onUR+m8iYogtOY4oPO5lQ=="],
|
||||||
|
|
||||||
|
"@prisma/get-platform": ["@prisma/get-platform@7.2.0", "", { "dependencies": { "@prisma/debug": "7.2.0" } }, "sha512-k1V0l0Td1732EHpAfi2eySTezyllok9dXb6UQanajkJQzPUGi3vO2z7jdkz67SypFTdmbnyGYxvEvYZdZsMAVA=="],
|
||||||
|
|
||||||
|
"@prisma/query-plan-executor": ["@prisma/query-plan-executor@7.2.0", "", {}, "sha512-EOZmNzcV8uJ0mae3DhTsiHgoNCuu1J9mULQpGCh62zN3PxPTd+qI9tJvk5jOst8WHKQNwJWR3b39t0XvfBB0WQ=="],
|
||||||
|
|
||||||
|
"@prisma/studio-core": ["@prisma/studio-core@0.13.1", "", { "peerDependencies": { "@types/react": "^18.0.0 || ^19.0.0", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" } }, "sha512-agdqaPEePRHcQ7CexEfkX1RvSH9uWDb6pXrZnhCRykhDFAV0/0P3d07WtfiY8hZWb7oRU4v+NkT4cGFHkQJIPg=="],
|
||||||
|
|
||||||
|
"@prokopschield/argv": ["@prokopschield/argv@0.1.3", "", { "bin": { "argv": "lib/cli.js" } }, "sha512-4/yMUKdaFIKBUOOu5+qhC2kMuAECk7FaKamo5NSu4iAzuw36hj6E3UY3CYVKXPnA5dldwiwW60Ss5Ss5QdxVCw=="],
|
||||||
|
|
||||||
|
"@socket.io/bun-engine": ["@socket.io/bun-engine@0.1.0", "", { "peerDependencies": { "typescript": "^5" } }, "sha512-B1z6GuAxZlfvjgaa3BHZBOfqHJNfnpebTw15p+Un1HuBL4YM7wUxO9sJa7K4NDTe7XbUBeqLIwTDA5tOOjffog=="],
|
||||||
|
|
||||||
|
"@socket.io/component-emitter": ["@socket.io/component-emitter@3.1.2", "", {}, "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA=="],
|
||||||
|
|
||||||
|
"@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="],
|
||||||
|
|
||||||
|
"@swc/helpers": ["@swc/helpers@0.5.19", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-QamiFeIK3txNjgUTNppE6MiG3p7TdninpZu0E0PbqVh1a9FNLT2FRhisaa4NcaX52XVhA5l7Pk58Ft7Sqi/2sA=="],
|
||||||
|
|
||||||
|
"@types/bun": ["@types/bun@1.3.6", "", { "dependencies": { "bun-types": "1.3.6" } }, "sha512-uWCv6FO/8LcpREhenN1d1b6fcspAB+cefwD7uti8C8VffIv0Um08TKMn98FynpTiU38+y2dUO55T11NgDt8VAA=="],
|
||||||
|
|
||||||
|
"@types/cors": ["@types/cors@2.8.19", "", { "dependencies": { "@types/node": "*" } }, "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg=="],
|
||||||
|
|
||||||
|
"@types/jsonwebtoken": ["@types/jsonwebtoken@9.0.10", "", { "dependencies": { "@types/ms": "*", "@types/node": "*" } }, "sha512-asx5hIG9Qmf/1oStypjanR7iKTv0gXQ1Ov/jfrX6kS/EO0OFni8orbmGCn0672NHR3kXHwpAwR+B368ZGN/2rA=="],
|
||||||
|
|
||||||
|
"@types/ms": ["@types/ms@2.1.0", "", {}, "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA=="],
|
||||||
|
|
||||||
|
"@types/node": ["@types/node@25.0.10", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-zWW5KPngR/yvakJgGOmZ5vTBemDoSqF3AcV/LrO5u5wTWyEAVVh+IT39G4gtyAkh3CtTZs8aX/yRM82OfzHJRg=="],
|
||||||
|
|
||||||
|
"@types/react": ["@types/react@19.2.9", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-Lpo8kgb/igvMIPeNV2rsYKTgaORYdO1XGVZ4Qz3akwOj0ySGYMPlQWa8BaLn0G63D1aSaAQ5ldR06wCpChQCjA=="],
|
||||||
|
|
||||||
|
"accepts": ["accepts@1.3.8", "", { "dependencies": { "mime-types": "~2.1.34", "negotiator": "0.6.3" } }, "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw=="],
|
||||||
|
|
||||||
|
"asynckit": ["asynckit@0.4.0", "", {}, "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="],
|
||||||
|
|
||||||
|
"aws-ssl-profiles": ["aws-ssl-profiles@1.1.2", "", {}, "sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g=="],
|
||||||
|
|
||||||
|
"axios": ["axios@1.13.3", "", { "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.4", "proxy-from-env": "^1.1.0" } }, "sha512-ERT8kdX7DZjtUm7IitEyV7InTHAF42iJuMArIiDIV5YtPanJkgw4hw5Dyg9fh0mihdWNn1GKaeIWErfe56UQ1g=="],
|
||||||
|
|
||||||
|
"base64-js": ["base64-js@0.0.8", "", {}, "sha512-3XSA2cR/h/73EzlXXdU6YNycmYI7+kicTxks4eJg2g39biHR84slg2+des+p7iHYhbRg/udIS4TD53WabcOUkw=="],
|
||||||
|
|
||||||
|
"base64id": ["base64id@2.0.0", "", {}, "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog=="],
|
||||||
|
|
||||||
|
"blakets": ["blakets@0.1.12", "", { "dependencies": { "@prokopschield/argv": "^0.1.0-2" }, "bin": { "blake": "lib/demo.js", "blake2b": "lib/cli.js", "blake2s": "lib/cli.js", "blakejs": "lib/demo.js", "blakets": "lib/demo.js" } }, "sha512-ReOnLTDRlbExlTXbJZoA2xkvhzauJ7ldpvhKnb1cUNw8gdAHWHWOWG8XMjwpxQmmEZCDAR7VZiM5BYTUSOLVrw=="],
|
||||||
|
|
||||||
|
"brotli": ["brotli@1.3.3", "", { "dependencies": { "base64-js": "^1.1.2" } }, "sha512-oTKjJdShmDuGW94SyyaoQvAjf30dZaHnjJ8uAF+u2/vGJkJbJPJAT1gDiOJP5v1Zb6f9KEyW/1HpuaWIXtGHPg=="],
|
||||||
|
|
||||||
|
"buffer-equal-constant-time": ["buffer-equal-constant-time@1.0.1", "", {}, "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="],
|
||||||
|
|
||||||
|
"bun-types": ["bun-types@1.3.6", "", { "dependencies": { "@types/node": "*" } }, "sha512-OlFwHcnNV99r//9v5IIOgQ9Uk37gZqrNMCcqEaExdkVq3Avwqok1bJFmvGMCkCE0FqzdY8VMOZpfpR3lwI+CsQ=="],
|
||||||
|
|
||||||
|
"c12": ["c12@3.1.0", "", { "dependencies": { "chokidar": "^4.0.3", "confbox": "^0.2.2", "defu": "^6.1.4", "dotenv": "^16.6.1", "exsolve": "^1.0.7", "giget": "^2.0.0", "jiti": "^2.4.2", "ohash": "^2.0.11", "pathe": "^2.0.3", "perfect-debounce": "^1.0.0", "pkg-types": "^2.2.0", "rc9": "^2.1.2" }, "peerDependencies": { "magicast": "^0.3.5" }, "optionalPeers": ["magicast"] }, "sha512-uWoS8OU1MEIsOv8p/5a82c3H31LsWVR5qiyXVfBNOzfffjUWtPnhAb4BYI2uG2HfGmZmFjCtui5XNWaps+iFuw=="],
|
||||||
|
|
||||||
|
"call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="],
|
||||||
|
|
||||||
|
"chevrotain": ["chevrotain@10.5.0", "", { "dependencies": { "@chevrotain/cst-dts-gen": "10.5.0", "@chevrotain/gast": "10.5.0", "@chevrotain/types": "10.5.0", "@chevrotain/utils": "10.5.0", "lodash": "4.17.21", "regexp-to-ast": "0.5.0" } }, "sha512-Pkv5rBY3+CsHOYfV5g/Vs5JY9WTHHDEKOlohI2XeygaZhUeqhAlldZ8Hz9cRmxu709bvS08YzxHdTPHhffc13A=="],
|
||||||
|
|
||||||
|
"chokidar": ["chokidar@4.0.3", "", { "dependencies": { "readdirp": "^4.0.1" } }, "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA=="],
|
||||||
|
|
||||||
|
"citty": ["citty@0.1.6", "", { "dependencies": { "consola": "^3.2.3" } }, "sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ=="],
|
||||||
|
|
||||||
|
"clone": ["clone@2.1.2", "", {}, "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w=="],
|
||||||
|
|
||||||
|
"cluster-key-slot": ["cluster-key-slot@1.1.2", "", {}, "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA=="],
|
||||||
|
|
||||||
|
"combined-stream": ["combined-stream@1.0.8", "", { "dependencies": { "delayed-stream": "~1.0.0" } }, "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg=="],
|
||||||
|
|
||||||
|
"confbox": ["confbox@0.2.2", "", {}, "sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ=="],
|
||||||
|
|
||||||
|
"consola": ["consola@3.4.2", "", {}, "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA=="],
|
||||||
|
|
||||||
|
"cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="],
|
||||||
|
|
||||||
|
"cors": ["cors@2.8.6", "", { "dependencies": { "object-assign": "^4", "vary": "^1" } }, "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw=="],
|
||||||
|
|
||||||
|
"cron-parser": ["cron-parser@5.5.0", "", { "dependencies": { "luxon": "^3.7.1" } }, "sha512-oML4lKUXxizYswqmxuOCpgFS8BNUJpIu6k/2HVHyaL8Ynnf3wdf9tkns0yRdJLSIjkJ+b0DXHMZEHGpMwjnPww=="],
|
||||||
|
|
||||||
|
"cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="],
|
||||||
|
|
||||||
|
"crypto-js": ["crypto-js@4.2.0", "", {}, "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="],
|
||||||
|
|
||||||
|
"csstype": ["csstype@3.2.3", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="],
|
||||||
|
|
||||||
|
"cuid": ["cuid@3.0.0", "", {}, "sha512-WZYYkHdIDnaxdeP8Misq3Lah5vFjJwGuItJuV+tvMafosMzw0nF297T7mrm8IOWiPJkV6gc7sa8pzx27+w25Zg=="],
|
||||||
|
|
||||||
|
"debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="],
|
||||||
|
|
||||||
|
"deepmerge-ts": ["deepmerge-ts@7.1.5", "", {}, "sha512-HOJkrhaYsweh+W+e74Yn7YStZOilkoPb6fycpwNLKzSPtruFs48nYis0zy5yJz1+ktUhHxoRDJ27RQAWLIJVJw=="],
|
||||||
|
|
||||||
|
"defu": ["defu@6.1.4", "", {}, "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg=="],
|
||||||
|
|
||||||
|
"delayed-stream": ["delayed-stream@1.0.0", "", {}, "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="],
|
||||||
|
|
||||||
|
"denque": ["denque@2.1.0", "", {}, "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw=="],
|
||||||
|
|
||||||
|
"destr": ["destr@2.0.5", "", {}, "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA=="],
|
||||||
|
|
||||||
|
"dfa": ["dfa@1.2.0", "", {}, "sha512-ED3jP8saaweFTjeGX8HQPjeC1YYyZs98jGNZx6IiBvxW7JG5v492kamAQB3m2wop07CvU/RQmzcKr6bgcC5D/Q=="],
|
||||||
|
|
||||||
|
"dotenv": ["dotenv@16.6.1", "", {}, "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow=="],
|
||||||
|
|
||||||
|
"dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="],
|
||||||
|
|
||||||
|
"ecdsa-sig-formatter": ["ecdsa-sig-formatter@1.0.11", "", { "dependencies": { "safe-buffer": "^5.0.1" } }, "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ=="],
|
||||||
|
|
||||||
|
"effect": ["effect@3.18.4", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "fast-check": "^3.23.1" } }, "sha512-b1LXQJLe9D11wfnOKAk3PKxuqYshQ0Heez+y5pnkd3jLj1yx9QhM72zZ9uUrOQyNvrs2GZZd/3maL0ZV18YuDA=="],
|
||||||
|
|
||||||
|
"empathic": ["empathic@2.0.0", "", {}, "sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA=="],
|
||||||
|
|
||||||
|
"engine.io": ["engine.io@6.6.5", "", { "dependencies": { "@types/cors": "^2.8.12", "@types/node": ">=10.0.0", "accepts": "~1.3.4", "base64id": "2.0.0", "cookie": "~0.7.2", "cors": "~2.8.5", "debug": "~4.4.1", "engine.io-parser": "~5.2.1", "ws": "~8.18.3" } }, "sha512-2RZdgEbXmp5+dVbRm0P7HQUImZpICccJy7rN7Tv+SFa55pH+lxnuw6/K1ZxxBfHoYpSkHLAO92oa8O4SwFXA2A=="],
|
||||||
|
|
||||||
|
"engine.io-client": ["engine.io-client@6.6.4", "", { "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.4.1", "engine.io-parser": "~5.2.1", "ws": "~8.18.3", "xmlhttprequest-ssl": "~2.1.1" } }, "sha512-+kjUJnZGwzewFDw951CDWcwj35vMNf2fcj7xQWOctq1F2i1jkDdVvdFG9kM/BEChymCH36KgjnW0NsL58JYRxw=="],
|
||||||
|
|
||||||
|
"engine.io-parser": ["engine.io-parser@5.2.3", "", {}, "sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q=="],
|
||||||
|
|
||||||
|
"es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="],
|
||||||
|
|
||||||
|
"es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="],
|
||||||
|
|
||||||
|
"es-object-atoms": ["es-object-atoms@1.1.1", "", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA=="],
|
||||||
|
|
||||||
|
"es-set-tostringtag": ["es-set-tostringtag@2.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" } }, "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA=="],
|
||||||
|
|
||||||
|
"exsolve": ["exsolve@1.0.8", "", {}, "sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA=="],
|
||||||
|
|
||||||
|
"fast-check": ["fast-check@3.23.2", "", { "dependencies": { "pure-rand": "^6.1.0" } }, "sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A=="],
|
||||||
|
|
||||||
|
"fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="],
|
||||||
|
|
||||||
|
"follow-redirects": ["follow-redirects@1.15.11", "", {}, "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ=="],
|
||||||
|
|
||||||
|
"fontkit": ["fontkit@2.0.4", "", { "dependencies": { "@swc/helpers": "^0.5.12", "brotli": "^1.3.2", "clone": "^2.1.2", "dfa": "^1.2.0", "fast-deep-equal": "^3.1.3", "restructure": "^3.0.0", "tiny-inflate": "^1.0.3", "unicode-properties": "^1.4.0", "unicode-trie": "^2.0.0" } }, "sha512-syetQadaUEDNdxdugga9CpEYVaQIxOwk7GlwZWWZ19//qW4zE5bknOKeMBDYAASwnpaSHKJITRLMF9m1fp3s6g=="],
|
||||||
|
|
||||||
|
"foreground-child": ["foreground-child@3.3.1", "", { "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" } }, "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw=="],
|
||||||
|
|
||||||
|
"form-data": ["form-data@4.0.5", "", { "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", "hasown": "^2.0.2", "mime-types": "^2.1.12" } }, "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w=="],
|
||||||
|
|
||||||
|
"function-bind": ["function-bind@1.1.2", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="],
|
||||||
|
|
||||||
|
"generate-function": ["generate-function@2.3.1", "", { "dependencies": { "is-property": "^1.0.2" } }, "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ=="],
|
||||||
|
|
||||||
|
"get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="],
|
||||||
|
|
||||||
|
"get-port-please": ["get-port-please@3.2.0", "", {}, "sha512-I9QVvBw5U/hw3RmWpYKRumUeaDgxTPd401x364rLmWBJcOQ753eov1eTgzDqRG9bqFIfDc7gfzcQEWrUri3o1A=="],
|
||||||
|
|
||||||
|
"get-proto": ["get-proto@1.0.1", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="],
|
||||||
|
|
||||||
|
"giget": ["giget@2.0.0", "", { "dependencies": { "citty": "^0.1.6", "consola": "^3.4.0", "defu": "^6.1.4", "node-fetch-native": "^1.6.6", "nypm": "^0.6.0", "pathe": "^2.0.3" }, "bin": { "giget": "dist/cli.mjs" } }, "sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA=="],
|
||||||
|
|
||||||
|
"gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="],
|
||||||
|
|
||||||
|
"graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="],
|
||||||
|
|
||||||
|
"grammex": ["grammex@3.1.12", "", {}, "sha512-6ufJOsSA7LcQehIJNCO7HIBykfM7DXQual0Ny780/DEcJIpBlHRvcqEBWGPYd7hrXL2GJ3oJI1MIhaXjWmLQOQ=="],
|
||||||
|
|
||||||
|
"graphmatch": ["graphmatch@1.1.0", "", {}, "sha512-0E62MaTW5rPZVRLyIJZG/YejmdA/Xr1QydHEw3Vt+qOKkMIOE8WDLc9ZX2bmAjtJFZcId4lEdrdmASsEy7D1QA=="],
|
||||||
|
|
||||||
|
"has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="],
|
||||||
|
|
||||||
|
"has-tostringtag": ["has-tostringtag@1.0.2", "", { "dependencies": { "has-symbols": "^1.0.3" } }, "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw=="],
|
||||||
|
|
||||||
|
"hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="],
|
||||||
|
|
||||||
|
"hono": ["hono@4.11.5", "", {}, "sha512-WemPi9/WfyMwZs+ZUXdiwcCh9Y+m7L+8vki9MzDw3jJ+W9Lc+12HGsd368Qc1vZi1xwW8BWMMsnK5efYKPdt4g=="],
|
||||||
|
|
||||||
|
"http-status-codes": ["http-status-codes@2.3.0", "", {}, "sha512-RJ8XvFvpPM/Dmc5SV+dC4y5PCeOhT3x1Hq0NU3rjGeg5a/CqlhZ7uudknPwZFz4aeAXDcbAyaeP7GAo9lvngtA=="],
|
||||||
|
|
||||||
|
"iconv-lite": ["iconv-lite@0.7.2", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw=="],
|
||||||
|
|
||||||
|
"ioredis": ["ioredis@5.10.0", "", { "dependencies": { "@ioredis/commands": "1.5.1", "cluster-key-slot": "^1.1.0", "debug": "^4.3.4", "denque": "^2.1.0", "lodash.defaults": "^4.2.0", "lodash.isarguments": "^3.1.0", "redis-errors": "^1.2.0", "redis-parser": "^3.0.0", "standard-as-callback": "^2.1.0" } }, "sha512-HVBe9OFuqs+Z6n64q09PQvP1/R4Bm+30PAyyD4wIEqssh3v9L21QjCVk4kRLucMBcDokJTcLjsGeVRlq/nH6DA=="],
|
||||||
|
|
||||||
|
"is-property": ["is-property@1.0.2", "", {}, "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g=="],
|
||||||
|
|
||||||
|
"isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="],
|
||||||
|
|
||||||
|
"jiti": ["jiti@2.6.1", "", { "bin": { "jiti": "lib/jiti-cli.mjs" } }, "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ=="],
|
||||||
|
|
||||||
|
"jpeg-exif": ["jpeg-exif@1.1.4", "", {}, "sha512-a+bKEcCjtuW5WTdgeXFzswSrdqi0jk4XlEtZlx5A94wCoBpFjfFTbo/Tra5SpNCl/YFZPvcV1dJc+TAYeg6ROQ=="],
|
||||||
|
|
||||||
|
"jsonwebtoken": ["jsonwebtoken@9.0.3", "", { "dependencies": { "jws": "^4.0.1", "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", "lodash.isinteger": "^4.0.4", "lodash.isnumber": "^3.0.3", "lodash.isplainobject": "^4.0.6", "lodash.isstring": "^4.0.1", "lodash.once": "^4.0.0", "ms": "^2.1.1", "semver": "^7.5.4" } }, "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g=="],
|
||||||
|
|
||||||
|
"jwa": ["jwa@2.0.1", "", { "dependencies": { "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg=="],
|
||||||
|
|
||||||
|
"jws": ["jws@4.0.1", "", { "dependencies": { "jwa": "^2.0.1", "safe-buffer": "^5.0.1" } }, "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA=="],
|
||||||
|
|
||||||
|
"keypair": ["keypair@1.0.4", "", {}, "sha512-zwhgOhhniaL7oxMgUMKKw5219PWWABMO+dgMnzJOQ2/5L3XJtTJGhW2PEXlxXj9zaccdReZJZ83+4NPhVfNVDg=="],
|
||||||
|
|
||||||
|
"lilconfig": ["lilconfig@2.1.0", "", {}, "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ=="],
|
||||||
|
|
||||||
|
"linebreak": ["linebreak@1.1.0", "", { "dependencies": { "base64-js": "0.0.8", "unicode-trie": "^2.0.0" } }, "sha512-MHp03UImeVhB7XZtjd0E4n6+3xr5Dq/9xI/5FptGk5FrbDR3zagPa2DS6U8ks/3HjbKWG9Q1M2ufOzxV2qLYSQ=="],
|
||||||
|
|
||||||
|
"lodash": ["lodash@4.17.21", "", {}, "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="],
|
||||||
|
|
||||||
|
"lodash.defaults": ["lodash.defaults@4.2.0", "", {}, "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ=="],
|
||||||
|
|
||||||
|
"lodash.includes": ["lodash.includes@4.3.0", "", {}, "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w=="],
|
||||||
|
|
||||||
|
"lodash.isarguments": ["lodash.isarguments@3.1.0", "", {}, "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg=="],
|
||||||
|
|
||||||
|
"lodash.isboolean": ["lodash.isboolean@3.0.3", "", {}, "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg=="],
|
||||||
|
|
||||||
|
"lodash.isinteger": ["lodash.isinteger@4.0.4", "", {}, "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA=="],
|
||||||
|
|
||||||
|
"lodash.isnumber": ["lodash.isnumber@3.0.3", "", {}, "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw=="],
|
||||||
|
|
||||||
|
"lodash.isplainobject": ["lodash.isplainobject@4.0.6", "", {}, "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA=="],
|
||||||
|
|
||||||
|
"lodash.isstring": ["lodash.isstring@4.0.1", "", {}, "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw=="],
|
||||||
|
|
||||||
|
"lodash.once": ["lodash.once@4.1.1", "", {}, "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg=="],
|
||||||
|
|
||||||
|
"long": ["long@5.3.2", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="],
|
||||||
|
|
||||||
|
"lru.min": ["lru.min@1.1.3", "", {}, "sha512-Lkk/vx6ak3rYkRR0Nhu4lFUT2VDnQSxBe8Hbl7f36358p6ow8Bnvr8lrLt98H8J1aGxfhbX4Fs5tYg2+FTwr5Q=="],
|
||||||
|
|
||||||
|
"luxon": ["luxon@3.7.2", "", {}, "sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew=="],
|
||||||
|
|
||||||
|
"math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="],
|
||||||
|
|
||||||
|
"mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="],
|
||||||
|
|
||||||
|
"mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="],
|
||||||
|
|
||||||
|
"ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
|
||||||
|
|
||||||
|
"mysql2": ["mysql2@3.15.3", "", { "dependencies": { "aws-ssl-profiles": "^1.1.1", "denque": "^2.1.0", "generate-function": "^2.3.1", "iconv-lite": "^0.7.0", "long": "^5.2.1", "lru.min": "^1.0.0", "named-placeholders": "^1.1.3", "seq-queue": "^0.0.5", "sqlstring": "^2.3.2" } }, "sha512-FBrGau0IXmuqg4haEZRBfHNWB5mUARw6hNwPDXXGg0XzVJ50mr/9hb267lvpVMnhZ1FON3qNd4Xfcez1rbFwSg=="],
|
||||||
|
|
||||||
|
"named-placeholders": ["named-placeholders@1.1.6", "", { "dependencies": { "lru.min": "^1.1.0" } }, "sha512-Tz09sEL2EEuv5fFowm419c1+a/jSMiBjI9gHxVLrVdbUkkNUUfjsVYs9pVZu5oCon/kmRh9TfLEObFtkVxmY0w=="],
|
||||||
|
|
||||||
|
"negotiator": ["negotiator@0.6.3", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="],
|
||||||
|
|
||||||
|
"node-fetch-native": ["node-fetch-native@1.6.7", "", {}, "sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q=="],
|
||||||
|
|
||||||
|
"non-error": ["non-error@0.1.0", "", {}, "sha512-TMB1uHiGsHRGv1uYclfhivcnf0/PdFp2pNqRxXjncaAsjYMoisaQJI+SSZCqRq+VliwRTC8tsMQfmrWjDMhkPQ=="],
|
||||||
|
|
||||||
|
"nypm": ["nypm@0.6.4", "", { "dependencies": { "citty": "^0.2.0", "pathe": "^2.0.3", "tinyexec": "^1.0.2" }, "bin": { "nypm": "dist/cli.mjs" } }, "sha512-1TvCKjZyyklN+JJj2TS3P4uSQEInrM/HkkuSXsEzm1ApPgBffOn8gFguNnZf07r/1X6vlryfIqMUkJKQMzlZiw=="],
|
||||||
|
|
||||||
|
"object-assign": ["object-assign@4.1.1", "", {}, "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="],
|
||||||
|
|
||||||
|
"ohash": ["ohash@2.0.11", "", {}, "sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ=="],
|
||||||
|
|
||||||
|
"pako": ["pako@1.0.11", "", {}, "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="],
|
||||||
|
|
||||||
|
"path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="],
|
||||||
|
|
||||||
|
"pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="],
|
||||||
|
|
||||||
|
"pdf-lib": ["pdf-lib@1.17.1", "", { "dependencies": { "@pdf-lib/standard-fonts": "^1.0.0", "@pdf-lib/upng": "^1.0.1", "pako": "^1.0.11", "tslib": "^1.11.1" } }, "sha512-V/mpyJAoTsN4cnP31vc0wfNA1+p20evqqnap0KLoRUN0Yk/p3wN52DOEsL4oBFcLdb76hlpKPtzJIgo67j/XLw=="],
|
||||||
|
|
||||||
|
"pdfkit": ["pdfkit@0.17.2", "", { "dependencies": { "crypto-js": "^4.2.0", "fontkit": "^2.0.4", "jpeg-exif": "^1.1.4", "linebreak": "^1.1.0", "png-js": "^1.0.0" } }, "sha512-UnwF5fXy08f0dnp4jchFYAROKMNTaPqb/xgR8GtCzIcqoTnbOqtp3bwKvO4688oHI6vzEEs8Q6vqqEnC5IUELw=="],
|
||||||
|
|
||||||
|
"pdfmake": ["pdfmake@0.3.5", "", { "dependencies": { "linebreak": "^1.1.0", "pdfkit": "^0.17.2", "xmldoc": "^2.0.3" } }, "sha512-DR7jRrK4lk7UiRT6pi+NeWhW1ToTsL2Y8CH+bFKNYz3M7agIVgeCtwARveEORhCAqoG3AUDrN318xU/lkOr1Bg=="],
|
||||||
|
|
||||||
|
"perfect-debounce": ["perfect-debounce@1.0.0", "", {}, "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA=="],
|
||||||
|
|
||||||
|
"pg": ["pg@8.17.2", "", { "dependencies": { "pg-connection-string": "^2.10.1", "pg-pool": "^3.11.0", "pg-protocol": "^1.11.0", "pg-types": "2.2.0", "pgpass": "1.0.5" }, "optionalDependencies": { "pg-cloudflare": "^1.3.0" }, "peerDependencies": { "pg-native": ">=3.0.1" }, "optionalPeers": ["pg-native"] }, "sha512-vjbKdiBJRqzcYw1fNU5KuHyYvdJ1qpcQg1CeBrHFqV1pWgHeVR6j/+kX0E1AAXfyuLUGY1ICrN2ELKA/z2HWzw=="],
|
||||||
|
|
||||||
|
"pg-boss": ["pg-boss@12.14.0", "", { "dependencies": { "cron-parser": "^5.5.0", "pg": "^8.19.0", "serialize-error": "^13.0.1" }, "bin": { "pg-boss": "dist/cli.js" } }, "sha512-sxF+Y5w6uRRkFCen3LM6BOcSG5gdMM3/hs+WiycAHHX8EuP5Zod5eTo79IlmegXFzIgtYWs7Bcjjhid4TRLlvg=="],
|
||||||
|
|
||||||
|
"pg-cloudflare": ["pg-cloudflare@1.3.0", "", {}, "sha512-6lswVVSztmHiRtD6I8hw4qP/nDm1EJbKMRhf3HCYaqud7frGysPv7FYJ5noZQdhQtN2xJnimfMtvQq21pdbzyQ=="],
|
||||||
|
|
||||||
|
"pg-connection-string": ["pg-connection-string@2.10.1", "", {}, "sha512-iNzslsoeSH2/gmDDKiyMqF64DATUCWj3YJ0wP14kqcsf2TUklwimd+66yYojKwZCA7h2yRNLGug71hCBA2a4sw=="],
|
||||||
|
|
||||||
|
"pg-int8": ["pg-int8@1.0.1", "", {}, "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw=="],
|
||||||
|
|
||||||
|
"pg-pool": ["pg-pool@3.11.0", "", { "peerDependencies": { "pg": ">=8.0" } }, "sha512-MJYfvHwtGp870aeusDh+hg9apvOe2zmpZJpyt+BMtzUWlVqbhFmMK6bOBXLBUPd7iRtIF9fZplDc7KrPN3PN7w=="],
|
||||||
|
|
||||||
|
"pg-protocol": ["pg-protocol@1.11.0", "", {}, "sha512-pfsxk2M9M3BuGgDOfuy37VNRRX3jmKgMjcvAcWqNDpZSf4cUmv8HSOl5ViRQFsfARFn0KuUQTgLxVMbNq5NW3g=="],
|
||||||
|
|
||||||
|
"pg-types": ["pg-types@2.2.0", "", { "dependencies": { "pg-int8": "1.0.1", "postgres-array": "~2.0.0", "postgres-bytea": "~1.0.0", "postgres-date": "~1.0.4", "postgres-interval": "^1.1.0" } }, "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA=="],
|
||||||
|
|
||||||
|
"pgpass": ["pgpass@1.0.5", "", { "dependencies": { "split2": "^4.1.0" } }, "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug=="],
|
||||||
|
|
||||||
|
"pkg-types": ["pkg-types@2.3.0", "", { "dependencies": { "confbox": "^0.2.2", "exsolve": "^1.0.7", "pathe": "^2.0.3" } }, "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig=="],
|
||||||
|
|
||||||
|
"png-js": ["png-js@1.0.0", "", {}, "sha512-k+YsbhpA9e+EFfKjTCH3VW6aoKlyNYI6NYdTfDL4CIvFnvsuO84ttonmZE7rc+v23SLTH8XX+5w/Ak9v0xGY4g=="],
|
||||||
|
|
||||||
|
"postgres": ["postgres@3.4.7", "", {}, "sha512-Jtc2612XINuBjIl/QTWsV5UvE8UHuNblcO3vVADSrKsrc6RqGX6lOW1cEo3CM2v0XG4Nat8nI+YM7/f26VxXLw=="],
|
||||||
|
|
||||||
|
"postgres-array": ["postgres-array@3.0.4", "", {}, "sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ=="],
|
||||||
|
|
||||||
|
"postgres-bytea": ["postgres-bytea@1.0.1", "", {}, "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ=="],
|
||||||
|
|
||||||
|
"postgres-date": ["postgres-date@1.0.7", "", {}, "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q=="],
|
||||||
|
|
||||||
|
"postgres-interval": ["postgres-interval@1.2.0", "", { "dependencies": { "xtend": "^4.0.0" } }, "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ=="],
|
||||||
|
|
||||||
|
"prisma": ["prisma@7.3.0", "", { "dependencies": { "@prisma/config": "7.3.0", "@prisma/dev": "0.20.0", "@prisma/engines": "7.3.0", "@prisma/studio-core": "0.13.1", "mysql2": "3.15.3", "postgres": "3.4.7" }, "peerDependencies": { "better-sqlite3": ">=9.0.0", "typescript": ">=5.4.0" }, "optionalPeers": ["better-sqlite3", "typescript"], "bin": { "prisma": "build/index.js" } }, "sha512-ApYSOLHfMN8WftJA+vL6XwAPOh/aZ0BgUyyKPwUFgjARmG6EBI9LzDPf6SWULQMSAxydV9qn5gLj037nPNlg2w=="],
|
||||||
|
|
||||||
|
"proper-lockfile": ["proper-lockfile@4.1.2", "", { "dependencies": { "graceful-fs": "^4.2.4", "retry": "^0.12.0", "signal-exit": "^3.0.2" } }, "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA=="],
|
||||||
|
|
||||||
|
"proxy-from-env": ["proxy-from-env@1.1.0", "", {}, "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="],
|
||||||
|
|
||||||
|
"pure-rand": ["pure-rand@6.1.0", "", {}, "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA=="],
|
||||||
|
|
||||||
|
"rc9": ["rc9@2.1.2", "", { "dependencies": { "defu": "^6.1.4", "destr": "^2.0.3" } }, "sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg=="],
|
||||||
|
|
||||||
|
"react": ["react@19.2.3", "", {}, "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA=="],
|
||||||
|
|
||||||
|
"react-dom": ["react-dom@19.2.3", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.3" } }, "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg=="],
|
||||||
|
|
||||||
|
"readdirp": ["readdirp@4.1.2", "", {}, "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg=="],
|
||||||
|
|
||||||
|
"redis-errors": ["redis-errors@1.2.0", "", {}, "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w=="],
|
||||||
|
|
||||||
|
"redis-parser": ["redis-parser@3.0.0", "", { "dependencies": { "redis-errors": "^1.0.0" } }, "sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A=="],
|
||||||
|
|
||||||
|
"regexp-to-ast": ["regexp-to-ast@0.5.0", "", {}, "sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw=="],
|
||||||
|
|
||||||
|
"remeda": ["remeda@2.33.4", "", {}, "sha512-ygHswjlc/opg2VrtiYvUOPLjxjtdKvjGz1/plDhkG66hjNjFr1xmfrs2ClNFo/E6TyUFiwYNh53bKV26oBoMGQ=="],
|
||||||
|
|
||||||
|
"restructure": ["restructure@3.0.2", "", {}, "sha512-gSfoiOEA0VPE6Tukkrr7I0RBdE0s7H1eFCDBk05l1KIQT1UIKNc5JZy6jdyW6eYH3aR3g5b3PuL77rq0hvwtAw=="],
|
||||||
|
|
||||||
|
"retry": ["retry@0.12.0", "", {}, "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow=="],
|
||||||
|
|
||||||
|
"safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
|
||||||
|
|
||||||
|
"safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="],
|
||||||
|
|
||||||
|
"sax": ["sax@1.5.0", "", {}, "sha512-21IYA3Q5cQf089Z6tgaUTr7lDAyzoTPx5HRtbhsME8Udispad8dC/+sziTNugOEx54ilvatQ9YCzl4KQLPcRHA=="],
|
||||||
|
|
||||||
|
"scheduler": ["scheduler@0.27.0", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="],
|
||||||
|
|
||||||
|
"semver": ["semver@7.7.3", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q=="],
|
||||||
|
|
||||||
|
"seq-queue": ["seq-queue@0.0.5", "", {}, "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q=="],
|
||||||
|
|
||||||
|
"serialize-error": ["serialize-error@13.0.1", "", { "dependencies": { "non-error": "^0.1.0", "type-fest": "^5.4.1" } }, "sha512-bBZaRwLH9PN5HbLCjPId4dP5bNGEtumcErgOX952IsvOhVPrm3/AeK1y0UHA/QaPG701eg0yEnOKsCOC6X/kaA=="],
|
||||||
|
|
||||||
|
"shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="],
|
||||||
|
|
||||||
|
"shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="],
|
||||||
|
|
||||||
|
"signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="],
|
||||||
|
|
||||||
|
"socket.io": ["socket.io@4.8.3", "", { "dependencies": { "accepts": "~1.3.4", "base64id": "~2.0.0", "cors": "~2.8.5", "debug": "~4.4.1", "engine.io": "~6.6.0", "socket.io-adapter": "~2.5.2", "socket.io-parser": "~4.2.4" } }, "sha512-2Dd78bqzzjE6KPkD5fHZmDAKRNe3J15q+YHDrIsy9WEkqttc7GY+kT9OBLSMaPbQaEd0x1BjcmtMtXkfpc+T5A=="],
|
||||||
|
|
||||||
|
"socket.io-adapter": ["socket.io-adapter@2.5.6", "", { "dependencies": { "debug": "~4.4.1", "ws": "~8.18.3" } }, "sha512-DkkO/dz7MGln0dHn5bmN3pPy+JmywNICWrJqVWiVOyvXjWQFIv9c2h24JrQLLFJ2aQVQf/Cvl1vblnd4r2apLQ=="],
|
||||||
|
|
||||||
|
"socket.io-client": ["socket.io-client@4.8.3", "", { "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.4.1", "engine.io-client": "~6.6.1", "socket.io-parser": "~4.2.4" } }, "sha512-uP0bpjWrjQmUt5DTHq9RuoCBdFJF10cdX9X+a368j/Ft0wmaVgxlrjvK3kjvgCODOMMOz9lcaRzxmso0bTWZ/g=="],
|
||||||
|
|
||||||
|
"socket.io-parser": ["socket.io-parser@4.2.5", "", { "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.4.1" } }, "sha512-bPMmpy/5WWKHea5Y/jYAP6k74A+hvmRCQaJuJB6I/ML5JZq/KfNieUVo/3Mh7SAqn7TyFdIo6wqYHInG1MU1bQ=="],
|
||||||
|
|
||||||
|
"split2": ["split2@4.2.0", "", {}, "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg=="],
|
||||||
|
|
||||||
|
"sqlstring": ["sqlstring@2.3.3", "", {}, "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg=="],
|
||||||
|
|
||||||
|
"standard-as-callback": ["standard-as-callback@2.1.0", "", {}, "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A=="],
|
||||||
|
|
||||||
|
"std-env": ["std-env@3.10.0", "", {}, "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg=="],
|
||||||
|
|
||||||
|
"tagged-tag": ["tagged-tag@1.0.0", "", {}, "sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng=="],
|
||||||
|
|
||||||
|
"tiny-inflate": ["tiny-inflate@1.0.3", "", {}, "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw=="],
|
||||||
|
|
||||||
|
"tinyexec": ["tinyexec@1.0.2", "", {}, "sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg=="],
|
||||||
|
|
||||||
|
"tslib": ["tslib@1.14.1", "", {}, "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="],
|
||||||
|
|
||||||
|
"type-fest": ["type-fest@5.4.4", "", { "dependencies": { "tagged-tag": "^1.0.0" } }, "sha512-JnTrzGu+zPV3aXIUhnyWJj4z/wigMsdYajGLIYakqyOW1nPllzXEJee0QQbHj+CTIQtXGlAjuK0UY+2xTyjVAw=="],
|
||||||
|
|
||||||
|
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
|
||||||
|
|
||||||
|
"undici-types": ["undici-types@7.16.0", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="],
|
||||||
|
|
||||||
|
"unicode-properties": ["unicode-properties@1.4.1", "", { "dependencies": { "base64-js": "^1.3.0", "unicode-trie": "^2.0.0" } }, "sha512-CLjCCLQ6UuMxWnbIylkisbRj31qxHPAurvena/0iwSVbQ2G1VY5/HjV0IRabOEbDHlzZlRdCrD4NhB0JtU40Pg=="],
|
||||||
|
|
||||||
|
"unicode-trie": ["unicode-trie@2.0.0", "", { "dependencies": { "pako": "^0.2.5", "tiny-inflate": "^1.0.0" } }, "sha512-x7bc76x0bm4prf1VLg79uhAzKw8DVboClSN5VxJuQ+LKDOVEW9CdH+VY7SP+vX7xCYQqzzgQpFqz15zeLvAtZQ=="],
|
||||||
|
|
||||||
|
"uuid": ["uuid@8.3.2", "", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="],
|
||||||
|
|
||||||
|
"valibot": ["valibot@1.2.0", "", { "peerDependencies": { "typescript": ">=5" }, "optionalPeers": ["typescript"] }, "sha512-mm1rxUsmOxzrwnX5arGS+U4T25RdvpPjPN4yR0u9pUBov9+zGVtO84tif1eY4r6zWxVxu3KzIyknJy3rxfRZZg=="],
|
||||||
|
|
||||||
|
"vary": ["vary@1.1.2", "", {}, "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="],
|
||||||
|
|
||||||
|
"which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="],
|
||||||
|
|
||||||
|
"ws": ["ws@8.18.3", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg=="],
|
||||||
|
|
||||||
|
"xmldoc": ["xmldoc@2.0.3", "", { "dependencies": { "sax": "^1.4.3" } }, "sha512-6gRk4NY/Jvg67xn7OzJuxLRsGgiXBaPUQplVJ/9l99uIugxh4FTOewYz5ic8WScj7Xx/2WvhENiQKwkK9RpE4w=="],
|
||||||
|
|
||||||
|
"xmlhttprequest-ssl": ["xmlhttprequest-ssl@2.1.2", "", {}, "sha512-TEU+nJVUUnA4CYJFLvK5X9AOeH4KvDvhIfm0vV1GaQRtchnG0hgK5p8hw/xjv8cunWYCsiPCSDzObPyhEwq3KQ=="],
|
||||||
|
|
||||||
|
"xtend": ["xtend@4.0.2", "", {}, "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="],
|
||||||
|
|
||||||
|
"zeptomatch": ["zeptomatch@2.1.0", "", { "dependencies": { "grammex": "^3.1.11", "graphmatch": "^1.1.0" } }, "sha512-KiGErG2J0G82LSpniV0CtIzjlJ10E04j02VOudJsPyPwNZgGnRKQy7I1R7GMyg/QswnE4l7ohSGrQbQbjXPPDA=="],
|
||||||
|
|
||||||
|
"zod": ["zod@4.3.6", "", {}, "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg=="],
|
||||||
|
|
||||||
|
"zon": ["zon@1.0.3", "", {}, "sha512-FKLlkaI8bU0ORFgZIzbqgvT7ei7aHob2jvhDPLgkwxccDurBRviDlD2eC2px6kEox0VlW0rK3VBwjsvtGV6g0w=="],
|
||||||
|
|
||||||
|
"@prisma/dev/hono": ["hono@4.11.4", "", {}, "sha512-U7tt8JsyrxSRKspfhtLET79pU8K+tInj5QZXs1jSugO1Vq5dFj3kmZsRldo29mTBfcjDRVRXrEZ6LS63Cog9ZA=="],
|
||||||
|
|
||||||
|
"@prisma/engines/@prisma/get-platform": ["@prisma/get-platform@7.3.0", "", { "dependencies": { "@prisma/debug": "7.3.0" } }, "sha512-N7c6m4/I0Q6JYmWKP2RCD/sM9eWiyCPY98g5c0uEktObNSZnugW2U/PO+pwL0UaqzxqTXt7gTsYsb0FnMnJNbg=="],
|
||||||
|
|
||||||
|
"@prisma/fetch-engine/@prisma/get-platform": ["@prisma/get-platform@7.3.0", "", { "dependencies": { "@prisma/debug": "7.3.0" } }, "sha512-N7c6m4/I0Q6JYmWKP2RCD/sM9eWiyCPY98g5c0uEktObNSZnugW2U/PO+pwL0UaqzxqTXt7gTsYsb0FnMnJNbg=="],
|
||||||
|
|
||||||
|
"@prisma/get-platform/@prisma/debug": ["@prisma/debug@7.2.0", "", {}, "sha512-YSGTiSlBAVJPzX4ONZmMotL+ozJwQjRmZweQNIq/ER0tQJKJynNkRB3kyvt37eOfsbMCXk3gnLF6J9OJ4QWftw=="],
|
||||||
|
|
||||||
|
"@swc/helpers/tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
|
||||||
|
|
||||||
|
"brotli/base64-js": ["base64-js@1.5.1", "", {}, "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="],
|
||||||
|
|
||||||
|
"nypm/citty": ["citty@0.2.0", "", {}, "sha512-8csy5IBFI2ex2hTVpaHN2j+LNE199AgiI7y4dMintrr8i0lQiFn+0AWMZrWdHKIgMOer65f8IThysYhoReqjWA=="],
|
||||||
|
|
||||||
|
"pg-boss/pg": ["pg@8.20.0", "", { "dependencies": { "pg-connection-string": "^2.12.0", "pg-pool": "^3.13.0", "pg-protocol": "^1.13.0", "pg-types": "2.2.0", "pgpass": "1.0.5" }, "optionalDependencies": { "pg-cloudflare": "^1.3.0" }, "peerDependencies": { "pg-native": ">=3.0.1" }, "optionalPeers": ["pg-native"] }, "sha512-ldhMxz2r8fl/6QkXnBD3CR9/xg694oT6DZQ2s6c/RI28OjtSOpxnPrUCGOBJ46RCUxcWdx3p6kw/xnDHjKvaRA=="],
|
||||||
|
|
||||||
|
"pg-types/postgres-array": ["postgres-array@2.0.0", "", {}, "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA=="],
|
||||||
|
|
||||||
|
"proper-lockfile/signal-exit": ["signal-exit@3.0.7", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="],
|
||||||
|
|
||||||
|
"unicode-properties/base64-js": ["base64-js@1.5.1", "", {}, "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="],
|
||||||
|
|
||||||
|
"unicode-trie/pako": ["pako@0.2.9", "", {}, "sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA=="],
|
||||||
|
|
||||||
|
"pg-boss/pg/pg-connection-string": ["pg-connection-string@2.12.0", "", {}, "sha512-U7qg+bpswf3Cs5xLzRqbXbQl85ng0mfSV/J0nnA31MCLgvEaAo7CIhmeyrmJpOr7o+zm0rXK+hNnT5l9RHkCkQ=="],
|
||||||
|
|
||||||
|
"pg-boss/pg/pg-pool": ["pg-pool@3.13.0", "", { "peerDependencies": { "pg": ">=8.0" } }, "sha512-gB+R+Xud1gLFuRD/QgOIgGOBE2KCQPaPwkzBBGC9oG69pHTkhQeIuejVIk3/cnDyX39av2AxomQiyPT13WKHQA=="],
|
||||||
|
|
||||||
|
"pg-boss/pg/pg-protocol": ["pg-protocol@1.13.0", "", {}, "sha512-zzdvXfS6v89r6v7OcFCHfHlyG/wvry1ALxZo4LqgUoy7W9xhBDMaqOuMiF3qEV45VqsN6rdlcehHrfDtlCPc8w=="],
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,244 @@
|
|||||||
|
|
||||||
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
|
/* eslint-disable */
|
||||||
|
// biome-ignore-all lint: generated file
|
||||||
|
// @ts-nocheck
|
||||||
|
/*
|
||||||
|
* This file should be your main import to use Prisma-related types and utilities in a browser.
|
||||||
|
* Use it to get access to models, enums, and input types.
|
||||||
|
*
|
||||||
|
* This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
|
||||||
|
* See `client.ts` for the standard, server-side entry point.
|
||||||
|
*
|
||||||
|
* 🟢 You can import this file directly.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import * as Prisma from './internal/prismaNamespaceBrowser.ts'
|
||||||
|
export { Prisma }
|
||||||
|
export * as $Enums from './enums.ts'
|
||||||
|
export * from './enums.ts';
|
||||||
|
/**
|
||||||
|
* Model SyncJobRun
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type SyncJobRun = Prisma.SyncJobRunModel
|
||||||
|
/**
|
||||||
|
* Model SyncStepLog
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type SyncStepLog = Prisma.SyncStepLogModel
|
||||||
|
/**
|
||||||
|
* Model Session
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Session = Prisma.SessionModel
|
||||||
|
/**
|
||||||
|
* Model User
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type User = Prisma.UserModel
|
||||||
|
/**
|
||||||
|
* Model Role
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Role = Prisma.RoleModel
|
||||||
|
/**
|
||||||
|
* Model CorporateLocation
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CorporateLocation = Prisma.CorporateLocationModel
|
||||||
|
/**
|
||||||
|
* Model InternalDepartment
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type InternalDepartment = Prisma.InternalDepartmentModel
|
||||||
|
/**
|
||||||
|
* Model UnifiSite
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type UnifiSite = Prisma.UnifiSiteModel
|
||||||
|
/**
|
||||||
|
* Model Company
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Company = Prisma.CompanyModel
|
||||||
|
/**
|
||||||
|
* Model CompanyAddress
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CompanyAddress = Prisma.CompanyAddressModel
|
||||||
|
/**
|
||||||
|
* Model Contact
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Contact = Prisma.ContactModel
|
||||||
|
/**
|
||||||
|
* Model CatalogItemType
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CatalogItemType = Prisma.CatalogItemTypeModel
|
||||||
|
/**
|
||||||
|
* Model CatalogCategory
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CatalogCategory = Prisma.CatalogCategoryModel
|
||||||
|
/**
|
||||||
|
* Model CatalogSubcategory
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CatalogSubcategory = Prisma.CatalogSubcategoryModel
|
||||||
|
/**
|
||||||
|
* Model CatalogManufacturer
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CatalogManufacturer = Prisma.CatalogManufacturerModel
|
||||||
|
/**
|
||||||
|
* Model WarehouseBin
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type WarehouseBin = Prisma.WarehouseBinModel
|
||||||
|
/**
|
||||||
|
* Model ProductInventory
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ProductInventory = Prisma.ProductInventoryModel
|
||||||
|
/**
|
||||||
|
* Model Warehouse
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Warehouse = Prisma.WarehouseModel
|
||||||
|
/**
|
||||||
|
* Model MinimumStockByWarehouse
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type MinimumStockByWarehouse = Prisma.MinimumStockByWarehouseModel
|
||||||
|
/**
|
||||||
|
* Model CatalogItem
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CatalogItem = Prisma.CatalogItemModel
|
||||||
|
/**
|
||||||
|
* Model ProductData
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ProductData = Prisma.ProductDataModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicket
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicket = Prisma.ServiceTicketModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketNote
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketNote = Prisma.ServiceTicketNoteModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketType
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketType = Prisma.ServiceTicketTypeModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketBoard
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketBoard = Prisma.ServiceTicketBoardModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketLocation
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketLocation = Prisma.ServiceTicketLocationModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketSource
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketSource = Prisma.ServiceTicketSourceModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketImpact
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketImpact = Prisma.ServiceTicketImpactModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketPriority
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketPriority = Prisma.ServiceTicketPriorityModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketSeverity
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketSeverity = Prisma.ServiceTicketSeverityModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketFinalData
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketFinalData = Prisma.ServiceTicketFinalDataModel
|
||||||
|
/**
|
||||||
|
* Model OpportunityStage
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type OpportunityStage = Prisma.OpportunityStageModel
|
||||||
|
/**
|
||||||
|
* Model OpportunityType
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type OpportunityType = Prisma.OpportunityTypeModel
|
||||||
|
/**
|
||||||
|
* Model OpportunityStatus
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type OpportunityStatus = Prisma.OpportunityStatusModel
|
||||||
|
/**
|
||||||
|
* Model Opportunity
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Opportunity = Prisma.OpportunityModel
|
||||||
|
/**
|
||||||
|
* Model ScheduleStatus
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ScheduleStatus = Prisma.ScheduleStatusModel
|
||||||
|
/**
|
||||||
|
* Model ScheduleType
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ScheduleType = Prisma.ScheduleTypeModel
|
||||||
|
/**
|
||||||
|
* Model ScheduleSpan
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ScheduleSpan = Prisma.ScheduleSpanModel
|
||||||
|
/**
|
||||||
|
* Model Schedule
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Schedule = Prisma.ScheduleModel
|
||||||
|
/**
|
||||||
|
* Model CredentialType
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CredentialType = Prisma.CredentialTypeModel
|
||||||
|
/**
|
||||||
|
* Model SecureValue
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type SecureValue = Prisma.SecureValueModel
|
||||||
|
/**
|
||||||
|
* Model Credential
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Credential = Prisma.CredentialModel
|
||||||
|
/**
|
||||||
|
* Model GeneratedQuotes
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type GeneratedQuotes = Prisma.GeneratedQuotesModel
|
||||||
|
/**
|
||||||
|
* Model TaxCode
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type TaxCode = Prisma.TaxCodeModel
|
||||||
|
/**
|
||||||
|
* Model CwMember
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CwMember = Prisma.CwMemberModel
|
||||||
@@ -0,0 +1,268 @@
|
|||||||
|
|
||||||
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
|
/* eslint-disable */
|
||||||
|
// biome-ignore-all lint: generated file
|
||||||
|
// @ts-nocheck
|
||||||
|
/*
|
||||||
|
* This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
|
||||||
|
* If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
|
||||||
|
*
|
||||||
|
* 🟢 You can import this file directly.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import * as process from 'node:process'
|
||||||
|
import * as path from 'node:path'
|
||||||
|
import { fileURLToPath } from 'node:url'
|
||||||
|
globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
|
||||||
|
|
||||||
|
import * as runtime from "@prisma/client/runtime/client"
|
||||||
|
import * as $Enums from "./enums.ts"
|
||||||
|
import * as $Class from "./internal/class.ts"
|
||||||
|
import * as Prisma from "./internal/prismaNamespace.ts"
|
||||||
|
|
||||||
|
export * as $Enums from './enums.ts'
|
||||||
|
export * from "./enums.ts"
|
||||||
|
/**
|
||||||
|
* ## Prisma Client
|
||||||
|
*
|
||||||
|
* Type-safe database client for TypeScript
|
||||||
|
* @example
|
||||||
|
* ```
|
||||||
|
* const prisma = new PrismaClient({
|
||||||
|
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
||||||
|
* })
|
||||||
|
* // Fetch zero or more SyncJobRuns
|
||||||
|
* const syncJobRuns = await prisma.syncJobRun.findMany()
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* Read more in our [docs](https://pris.ly/d/client).
|
||||||
|
*/
|
||||||
|
export const PrismaClient = $Class.getPrismaClientClass()
|
||||||
|
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>
|
||||||
|
export { Prisma }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model SyncJobRun
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type SyncJobRun = Prisma.SyncJobRunModel
|
||||||
|
/**
|
||||||
|
* Model SyncStepLog
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type SyncStepLog = Prisma.SyncStepLogModel
|
||||||
|
/**
|
||||||
|
* Model Session
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Session = Prisma.SessionModel
|
||||||
|
/**
|
||||||
|
* Model User
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type User = Prisma.UserModel
|
||||||
|
/**
|
||||||
|
* Model Role
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Role = Prisma.RoleModel
|
||||||
|
/**
|
||||||
|
* Model CorporateLocation
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CorporateLocation = Prisma.CorporateLocationModel
|
||||||
|
/**
|
||||||
|
* Model InternalDepartment
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type InternalDepartment = Prisma.InternalDepartmentModel
|
||||||
|
/**
|
||||||
|
* Model UnifiSite
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type UnifiSite = Prisma.UnifiSiteModel
|
||||||
|
/**
|
||||||
|
* Model Company
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Company = Prisma.CompanyModel
|
||||||
|
/**
|
||||||
|
* Model CompanyAddress
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CompanyAddress = Prisma.CompanyAddressModel
|
||||||
|
/**
|
||||||
|
* Model Contact
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Contact = Prisma.ContactModel
|
||||||
|
/**
|
||||||
|
* Model CatalogItemType
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CatalogItemType = Prisma.CatalogItemTypeModel
|
||||||
|
/**
|
||||||
|
* Model CatalogCategory
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CatalogCategory = Prisma.CatalogCategoryModel
|
||||||
|
/**
|
||||||
|
* Model CatalogSubcategory
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CatalogSubcategory = Prisma.CatalogSubcategoryModel
|
||||||
|
/**
|
||||||
|
* Model CatalogManufacturer
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CatalogManufacturer = Prisma.CatalogManufacturerModel
|
||||||
|
/**
|
||||||
|
* Model WarehouseBin
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type WarehouseBin = Prisma.WarehouseBinModel
|
||||||
|
/**
|
||||||
|
* Model ProductInventory
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ProductInventory = Prisma.ProductInventoryModel
|
||||||
|
/**
|
||||||
|
* Model Warehouse
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Warehouse = Prisma.WarehouseModel
|
||||||
|
/**
|
||||||
|
* Model MinimumStockByWarehouse
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type MinimumStockByWarehouse = Prisma.MinimumStockByWarehouseModel
|
||||||
|
/**
|
||||||
|
* Model CatalogItem
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CatalogItem = Prisma.CatalogItemModel
|
||||||
|
/**
|
||||||
|
* Model ProductData
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ProductData = Prisma.ProductDataModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicket
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicket = Prisma.ServiceTicketModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketNote
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketNote = Prisma.ServiceTicketNoteModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketType
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketType = Prisma.ServiceTicketTypeModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketBoard
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketBoard = Prisma.ServiceTicketBoardModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketLocation
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketLocation = Prisma.ServiceTicketLocationModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketSource
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketSource = Prisma.ServiceTicketSourceModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketImpact
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketImpact = Prisma.ServiceTicketImpactModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketPriority
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketPriority = Prisma.ServiceTicketPriorityModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketSeverity
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketSeverity = Prisma.ServiceTicketSeverityModel
|
||||||
|
/**
|
||||||
|
* Model ServiceTicketFinalData
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ServiceTicketFinalData = Prisma.ServiceTicketFinalDataModel
|
||||||
|
/**
|
||||||
|
* Model OpportunityStage
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type OpportunityStage = Prisma.OpportunityStageModel
|
||||||
|
/**
|
||||||
|
* Model OpportunityType
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type OpportunityType = Prisma.OpportunityTypeModel
|
||||||
|
/**
|
||||||
|
* Model OpportunityStatus
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type OpportunityStatus = Prisma.OpportunityStatusModel
|
||||||
|
/**
|
||||||
|
* Model Opportunity
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Opportunity = Prisma.OpportunityModel
|
||||||
|
/**
|
||||||
|
* Model ScheduleStatus
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ScheduleStatus = Prisma.ScheduleStatusModel
|
||||||
|
/**
|
||||||
|
* Model ScheduleType
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ScheduleType = Prisma.ScheduleTypeModel
|
||||||
|
/**
|
||||||
|
* Model ScheduleSpan
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ScheduleSpan = Prisma.ScheduleSpanModel
|
||||||
|
/**
|
||||||
|
* Model Schedule
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Schedule = Prisma.ScheduleModel
|
||||||
|
/**
|
||||||
|
* Model CredentialType
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CredentialType = Prisma.CredentialTypeModel
|
||||||
|
/**
|
||||||
|
* Model SecureValue
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type SecureValue = Prisma.SecureValueModel
|
||||||
|
/**
|
||||||
|
* Model Credential
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Credential = Prisma.CredentialModel
|
||||||
|
/**
|
||||||
|
* Model GeneratedQuotes
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type GeneratedQuotes = Prisma.GeneratedQuotesModel
|
||||||
|
/**
|
||||||
|
* Model TaxCode
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type TaxCode = Prisma.TaxCodeModel
|
||||||
|
/**
|
||||||
|
* Model CwMember
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type CwMember = Prisma.CwMemberModel
|
||||||
@@ -29,20 +29,18 @@ export type StringFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DateTimeFilter<$PrismaModel = never> = {
|
export type EnumSyncJobTypeFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: $Enums.SyncJobType | Prisma.EnumSyncJobTypeFieldRefInput<$PrismaModel>
|
||||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
in?: $Enums.SyncJobType[] | Prisma.ListEnumSyncJobTypeFieldRefInput<$PrismaModel>
|
||||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
notIn?: $Enums.SyncJobType[] | Prisma.ListEnumSyncJobTypeFieldRefInput<$PrismaModel>
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
not?: Prisma.NestedEnumSyncJobTypeFilter<$PrismaModel> | $Enums.SyncJobType
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BoolFilter<$PrismaModel = never> = {
|
export type EnumSyncJobStatusFilter<$PrismaModel = never> = {
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
equals?: $Enums.SyncJobStatus | Prisma.EnumSyncJobStatusFieldRefInput<$PrismaModel>
|
||||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
in?: $Enums.SyncJobStatus[] | Prisma.ListEnumSyncJobStatusFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: $Enums.SyncJobStatus[] | Prisma.ListEnumSyncJobStatusFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedEnumSyncJobStatusFilter<$PrismaModel> | $Enums.SyncJobStatus
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
||||||
@@ -56,6 +54,32 @@ export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type StringNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
mode?: Prisma.QueryMode
|
||||||
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DateTimeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
||||||
|
}
|
||||||
|
|
||||||
export type SortOrderInput = {
|
export type SortOrderInput = {
|
||||||
sort: Prisma.SortOrder
|
sort: Prisma.SortOrder
|
||||||
nulls?: Prisma.NullsOrder
|
nulls?: Prisma.NullsOrder
|
||||||
@@ -79,26 +103,24 @@ export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
export type EnumSyncJobTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: $Enums.SyncJobType | Prisma.EnumSyncJobTypeFieldRefInput<$PrismaModel>
|
||||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
in?: $Enums.SyncJobType[] | Prisma.ListEnumSyncJobTypeFieldRefInput<$PrismaModel>
|
||||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
notIn?: $Enums.SyncJobType[] | Prisma.ListEnumSyncJobTypeFieldRefInput<$PrismaModel>
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
not?: Prisma.NestedEnumSyncJobTypeWithAggregatesFilter<$PrismaModel> | $Enums.SyncJobType
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
_min?: Prisma.NestedEnumSyncJobTypeFilter<$PrismaModel>
|
||||||
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
_max?: Prisma.NestedEnumSyncJobTypeFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
export type EnumSyncJobStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
equals?: $Enums.SyncJobStatus | Prisma.EnumSyncJobStatusFieldRefInput<$PrismaModel>
|
||||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
in?: $Enums.SyncJobStatus[] | Prisma.ListEnumSyncJobStatusFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: $Enums.SyncJobStatus[] | Prisma.ListEnumSyncJobStatusFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedEnumSyncJobStatusWithAggregatesFilter<$PrismaModel> | $Enums.SyncJobStatus
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
_min?: Prisma.NestedEnumSyncJobStatusFilter<$PrismaModel>
|
||||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
_max?: Prisma.NestedEnumSyncJobStatusFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
@@ -115,21 +137,6 @@ export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type StringNullableFilter<$PrismaModel = never> = {
|
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
|
||||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
|
||||||
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
mode?: Prisma.QueryMode
|
|
||||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
@@ -148,6 +155,20 @@ export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type IntFilter<$PrismaModel = never> = {
|
export type IntFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||||
@@ -159,76 +180,6 @@ export type IntFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
|
||||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
|
||||||
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type IntNullableFilter<$PrismaModel = never> = {
|
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
|
||||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type FloatFilter<$PrismaModel = never> = {
|
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
|
||||||
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
|
||||||
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
|
||||||
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedFloatFilter<$PrismaModel> | number
|
|
||||||
}
|
|
||||||
|
|
||||||
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
|
||||||
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
|
||||||
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
|
||||||
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type FloatWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
|
||||||
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
|
||||||
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
|
||||||
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedFloatWithAggregatesFilter<$PrismaModel> | number
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
|
||||||
_sum?: Prisma.NestedFloatFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedFloatFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedFloatFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type JsonFilter<$PrismaModel = never> =
|
export type JsonFilter<$PrismaModel = never> =
|
||||||
| Prisma.PatchUndefined<
|
| Prisma.PatchUndefined<
|
||||||
Prisma.Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>,
|
Prisma.Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>,
|
||||||
@@ -253,6 +204,22 @@ export type JsonFilterBase<$PrismaModel = never> = {
|
|||||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||||
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||||
|
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type JsonWithAggregatesFilter<$PrismaModel = never> =
|
export type JsonWithAggregatesFilter<$PrismaModel = never> =
|
||||||
| Prisma.PatchUndefined<
|
| Prisma.PatchUndefined<
|
||||||
Prisma.Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
Prisma.Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
||||||
@@ -280,6 +247,219 @@ export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedJsonFilter<$PrismaModel>
|
_max?: Prisma.NestedJsonFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type BoolFilter<$PrismaModel = never> = {
|
||||||
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type IntNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||||
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||||
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||||
|
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumUSStateNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.USState | Prisma.EnumUSStateFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.USState[] | Prisma.ListEnumUSStateFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.USState[] | Prisma.ListEnumUSStateFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumUSStateNullableFilter<$PrismaModel> | $Enums.USState | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumCountryNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.Country | Prisma.EnumCountryFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.Country[] | Prisma.ListEnumCountryFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.Country[] | Prisma.ListEnumCountryFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumCountryNullableFilter<$PrismaModel> | $Enums.Country | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumUSStateNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.USState | Prisma.EnumUSStateFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.USState[] | Prisma.ListEnumUSStateFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.USState[] | Prisma.ListEnumUSStateFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumUSStateNullableWithAggregatesFilter<$PrismaModel> | $Enums.USState | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumUSStateNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumUSStateNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumCountryNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.Country | Prisma.EnumCountryFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.Country[] | Prisma.ListEnumCountryFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.Country[] | Prisma.ListEnumCountryFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumCountryNullableWithAggregatesFilter<$PrismaModel> | $Enums.Country | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumCountryNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumCountryNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumGenderTypeNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.GenderType | Prisma.EnumGenderTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.GenderType[] | Prisma.ListEnumGenderTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.GenderType[] | Prisma.ListEnumGenderTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumGenderTypeNullableFilter<$PrismaModel> | $Enums.GenderType | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumPhoneTypeNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.PhoneType | Prisma.EnumPhoneTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.PhoneType[] | Prisma.ListEnumPhoneTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.PhoneType[] | Prisma.ListEnumPhoneTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumPhoneTypeNullableFilter<$PrismaModel> | $Enums.PhoneType | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumGenderTypeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.GenderType | Prisma.EnumGenderTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.GenderType[] | Prisma.ListEnumGenderTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.GenderType[] | Prisma.ListEnumGenderTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumGenderTypeNullableWithAggregatesFilter<$PrismaModel> | $Enums.GenderType | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumGenderTypeNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumGenderTypeNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumPhoneTypeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.PhoneType | Prisma.EnumPhoneTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.PhoneType[] | Prisma.ListEnumPhoneTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.PhoneType[] | Prisma.ListEnumPhoneTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumPhoneTypeNullableWithAggregatesFilter<$PrismaModel> | $Enums.PhoneType | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumPhoneTypeNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumPhoneTypeNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type FloatFilter<$PrismaModel = never> = {
|
||||||
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
||||||
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedFloatFilter<$PrismaModel> | number
|
||||||
|
}
|
||||||
|
|
||||||
|
export type FloatWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
||||||
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedFloatWithAggregatesFilter<$PrismaModel> | number
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||||
|
_sum?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type FloatNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||||
|
_sum?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumBillingMethodFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.BillingMethod | Prisma.EnumBillingMethodFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.BillingMethod[] | Prisma.ListEnumBillingMethodFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: $Enums.BillingMethod[] | Prisma.ListEnumBillingMethodFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedEnumBillingMethodFilter<$PrismaModel> | $Enums.BillingMethod
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumBillingTypeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.BillingType | Prisma.EnumBillingTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.BillingType[] | Prisma.ListEnumBillingTypeFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: $Enums.BillingType[] | Prisma.ListEnumBillingTypeFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedEnumBillingTypeFilter<$PrismaModel> | $Enums.BillingType
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumBillingMethodWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.BillingMethod | Prisma.EnumBillingMethodFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.BillingMethod[] | Prisma.ListEnumBillingMethodFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: $Enums.BillingMethod[] | Prisma.ListEnumBillingMethodFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedEnumBillingMethodWithAggregatesFilter<$PrismaModel> | $Enums.BillingMethod
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumBillingMethodFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumBillingMethodFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumBillingTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.BillingType | Prisma.EnumBillingTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.BillingType[] | Prisma.ListEnumBillingTypeFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: $Enums.BillingType[] | Prisma.ListEnumBillingTypeFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedEnumBillingTypeWithAggregatesFilter<$PrismaModel> | $Enums.BillingType
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumBillingTypeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumBillingTypeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumOpportunityInterestNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.OpportunityInterest | Prisma.EnumOpportunityInterestFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.OpportunityInterest[] | Prisma.ListEnumOpportunityInterestFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.OpportunityInterest[] | Prisma.ListEnumOpportunityInterestFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumOpportunityInterestNullableFilter<$PrismaModel> | $Enums.OpportunityInterest | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumOpportunityInterestNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.OpportunityInterest | Prisma.EnumOpportunityInterestFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.OpportunityInterest[] | Prisma.ListEnumOpportunityInterestFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.OpportunityInterest[] | Prisma.ListEnumOpportunityInterestFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumOpportunityInterestNullableWithAggregatesFilter<$PrismaModel> | $Enums.OpportunityInterest | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumOpportunityInterestNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumOpportunityInterestNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type BytesFilter<$PrismaModel = never> = {
|
export type BytesFilter<$PrismaModel = never> = {
|
||||||
equals?: runtime.Bytes | Prisma.BytesFieldRefInput<$PrismaModel>
|
equals?: runtime.Bytes | Prisma.BytesFieldRefInput<$PrismaModel>
|
||||||
in?: runtime.Bytes[] | Prisma.ListBytesFieldRefInput<$PrismaModel>
|
in?: runtime.Bytes[] | Prisma.ListBytesFieldRefInput<$PrismaModel>
|
||||||
@@ -311,20 +491,18 @@ export type NestedStringFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
export type NestedEnumSyncJobTypeFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: $Enums.SyncJobType | Prisma.EnumSyncJobTypeFieldRefInput<$PrismaModel>
|
||||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
in?: $Enums.SyncJobType[] | Prisma.ListEnumSyncJobTypeFieldRefInput<$PrismaModel>
|
||||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
notIn?: $Enums.SyncJobType[] | Prisma.ListEnumSyncJobTypeFieldRefInput<$PrismaModel>
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
not?: Prisma.NestedEnumSyncJobTypeFilter<$PrismaModel> | $Enums.SyncJobType
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedBoolFilter<$PrismaModel = never> = {
|
export type NestedEnumSyncJobStatusFilter<$PrismaModel = never> = {
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
equals?: $Enums.SyncJobStatus | Prisma.EnumSyncJobStatusFieldRefInput<$PrismaModel>
|
||||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
in?: $Enums.SyncJobStatus[] | Prisma.ListEnumSyncJobStatusFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: $Enums.SyncJobStatus[] | Prisma.ListEnumSyncJobStatusFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedEnumSyncJobStatusFilter<$PrismaModel> | $Enums.SyncJobStatus
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
||||||
@@ -338,6 +516,31 @@ export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
||||||
@@ -366,26 +569,24 @@ export type NestedIntFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedEnumSyncJobTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: $Enums.SyncJobType | Prisma.EnumSyncJobTypeFieldRefInput<$PrismaModel>
|
||||||
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
in?: $Enums.SyncJobType[] | Prisma.ListEnumSyncJobTypeFieldRefInput<$PrismaModel>
|
||||||
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
notIn?: $Enums.SyncJobType[] | Prisma.ListEnumSyncJobTypeFieldRefInput<$PrismaModel>
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
not?: Prisma.NestedEnumSyncJobTypeWithAggregatesFilter<$PrismaModel> | $Enums.SyncJobType
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
_min?: Prisma.NestedEnumSyncJobTypeFilter<$PrismaModel>
|
||||||
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
_max?: Prisma.NestedEnumSyncJobTypeFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedEnumSyncJobStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
equals?: $Enums.SyncJobStatus | Prisma.EnumSyncJobStatusFieldRefInput<$PrismaModel>
|
||||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
in?: $Enums.SyncJobStatus[] | Prisma.ListEnumSyncJobStatusFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: $Enums.SyncJobStatus[] | Prisma.ListEnumSyncJobStatusFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedEnumSyncJobStatusWithAggregatesFilter<$PrismaModel> | $Enums.SyncJobStatus
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
_min?: Prisma.NestedEnumSyncJobStatusFilter<$PrismaModel>
|
||||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
_max?: Prisma.NestedEnumSyncJobStatusFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
@@ -413,20 +614,6 @@ export type NestedIntNullableFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
|
||||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
|
||||||
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
@@ -444,6 +631,20 @@ export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||||
@@ -471,6 +672,43 @@ export type NestedFloatFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedFloatFilter<$PrismaModel> | number
|
not?: Prisma.NestedFloatFilter<$PrismaModel> | number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedJsonFilter<$PrismaModel = never> =
|
||||||
|
| Prisma.PatchUndefined<
|
||||||
|
Prisma.Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>,
|
||||||
|
Required<NestedJsonFilterBase<$PrismaModel>>
|
||||||
|
>
|
||||||
|
| Prisma.OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>
|
||||||
|
|
||||||
|
export type NestedJsonFilterBase<$PrismaModel = never> = {
|
||||||
|
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
|
path?: string[]
|
||||||
|
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||||
|
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
|
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
|
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
|
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
|
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
|
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
|
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedBoolFilter<$PrismaModel = never> = {
|
||||||
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||||
@@ -498,6 +736,74 @@ export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
|
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedEnumUSStateNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.USState | Prisma.EnumUSStateFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.USState[] | Prisma.ListEnumUSStateFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.USState[] | Prisma.ListEnumUSStateFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumUSStateNullableFilter<$PrismaModel> | $Enums.USState | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumCountryNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.Country | Prisma.EnumCountryFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.Country[] | Prisma.ListEnumCountryFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.Country[] | Prisma.ListEnumCountryFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumCountryNullableFilter<$PrismaModel> | $Enums.Country | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumUSStateNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.USState | Prisma.EnumUSStateFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.USState[] | Prisma.ListEnumUSStateFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.USState[] | Prisma.ListEnumUSStateFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumUSStateNullableWithAggregatesFilter<$PrismaModel> | $Enums.USState | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumUSStateNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumUSStateNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumCountryNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.Country | Prisma.EnumCountryFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.Country[] | Prisma.ListEnumCountryFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.Country[] | Prisma.ListEnumCountryFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumCountryNullableWithAggregatesFilter<$PrismaModel> | $Enums.Country | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumCountryNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumCountryNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumGenderTypeNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.GenderType | Prisma.EnumGenderTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.GenderType[] | Prisma.ListEnumGenderTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.GenderType[] | Prisma.ListEnumGenderTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumGenderTypeNullableFilter<$PrismaModel> | $Enums.GenderType | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumPhoneTypeNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.PhoneType | Prisma.EnumPhoneTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.PhoneType[] | Prisma.ListEnumPhoneTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.PhoneType[] | Prisma.ListEnumPhoneTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumPhoneTypeNullableFilter<$PrismaModel> | $Enums.PhoneType | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumGenderTypeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.GenderType | Prisma.EnumGenderTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.GenderType[] | Prisma.ListEnumGenderTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.GenderType[] | Prisma.ListEnumGenderTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumGenderTypeNullableWithAggregatesFilter<$PrismaModel> | $Enums.GenderType | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumGenderTypeNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumGenderTypeNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumPhoneTypeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.PhoneType | Prisma.EnumPhoneTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.PhoneType[] | Prisma.ListEnumPhoneTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.PhoneType[] | Prisma.ListEnumPhoneTypeFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumPhoneTypeNullableWithAggregatesFilter<$PrismaModel> | $Enums.PhoneType | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumPhoneTypeNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumPhoneTypeNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
||||||
@@ -514,28 +820,71 @@ export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedFloatFilter<$PrismaModel>
|
_max?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedJsonFilter<$PrismaModel = never> =
|
export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
| Prisma.PatchUndefined<
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
||||||
Prisma.Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>,
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
Required<NestedJsonFilterBase<$PrismaModel>>
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
>
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
| Prisma.OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||||
|
_sum?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedJsonFilterBase<$PrismaModel = never> = {
|
export type NestedEnumBillingMethodFilter<$PrismaModel = never> = {
|
||||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
equals?: $Enums.BillingMethod | Prisma.EnumBillingMethodFieldRefInput<$PrismaModel>
|
||||||
path?: string[]
|
in?: $Enums.BillingMethod[] | Prisma.ListEnumBillingMethodFieldRefInput<$PrismaModel>
|
||||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
notIn?: $Enums.BillingMethod[] | Prisma.ListEnumBillingMethodFieldRefInput<$PrismaModel>
|
||||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
not?: Prisma.NestedEnumBillingMethodFilter<$PrismaModel> | $Enums.BillingMethod
|
||||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
}
|
||||||
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
export type NestedEnumBillingTypeFilter<$PrismaModel = never> = {
|
||||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
equals?: $Enums.BillingType | Prisma.EnumBillingTypeFieldRefInput<$PrismaModel>
|
||||||
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
in?: $Enums.BillingType[] | Prisma.ListEnumBillingTypeFieldRefInput<$PrismaModel>
|
||||||
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
notIn?: $Enums.BillingType[] | Prisma.ListEnumBillingTypeFieldRefInput<$PrismaModel>
|
||||||
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
not?: Prisma.NestedEnumBillingTypeFilter<$PrismaModel> | $Enums.BillingType
|
||||||
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
}
|
||||||
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
|
||||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
export type NestedEnumBillingMethodWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.BillingMethod | Prisma.EnumBillingMethodFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.BillingMethod[] | Prisma.ListEnumBillingMethodFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: $Enums.BillingMethod[] | Prisma.ListEnumBillingMethodFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedEnumBillingMethodWithAggregatesFilter<$PrismaModel> | $Enums.BillingMethod
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumBillingMethodFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumBillingMethodFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumBillingTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.BillingType | Prisma.EnumBillingTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.BillingType[] | Prisma.ListEnumBillingTypeFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: $Enums.BillingType[] | Prisma.ListEnumBillingTypeFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedEnumBillingTypeWithAggregatesFilter<$PrismaModel> | $Enums.BillingType
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumBillingTypeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumBillingTypeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumOpportunityInterestNullableFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.OpportunityInterest | Prisma.EnumOpportunityInterestFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.OpportunityInterest[] | Prisma.ListEnumOpportunityInterestFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.OpportunityInterest[] | Prisma.ListEnumOpportunityInterestFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumOpportunityInterestNullableFilter<$PrismaModel> | $Enums.OpportunityInterest | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumOpportunityInterestNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.OpportunityInterest | Prisma.EnumOpportunityInterestFieldRefInput<$PrismaModel> | null
|
||||||
|
in?: $Enums.OpportunityInterest[] | Prisma.ListEnumOpportunityInterestFieldRefInput<$PrismaModel> | null
|
||||||
|
notIn?: $Enums.OpportunityInterest[] | Prisma.ListEnumOpportunityInterestFieldRefInput<$PrismaModel> | null
|
||||||
|
not?: Prisma.NestedEnumOpportunityInterestNullableWithAggregatesFilter<$PrismaModel> | $Enums.OpportunityInterest | null
|
||||||
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumOpportunityInterestNullableFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumOpportunityInterestNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedBytesFilter<$PrismaModel = never> = {
|
export type NestedBytesFilter<$PrismaModel = never> = {
|
||||||
@@ -0,0 +1,146 @@
|
|||||||
|
|
||||||
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
|
/* eslint-disable */
|
||||||
|
// biome-ignore-all lint: generated file
|
||||||
|
// @ts-nocheck
|
||||||
|
/*
|
||||||
|
* This file exports all enum related types from the schema.
|
||||||
|
*
|
||||||
|
* 🟢 You can import this file directly.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export const PhoneType = {
|
||||||
|
DIRECT: 'DIRECT',
|
||||||
|
MOBILE: 'MOBILE',
|
||||||
|
HOME: 'HOME',
|
||||||
|
COMPANY: 'COMPANY',
|
||||||
|
SITE: 'SITE'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type PhoneType = (typeof PhoneType)[keyof typeof PhoneType]
|
||||||
|
|
||||||
|
|
||||||
|
export const FaxType = {
|
||||||
|
FAX: 'FAX',
|
||||||
|
COMPANY: 'COMPANY',
|
||||||
|
SITE: 'SITE'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type FaxType = (typeof FaxType)[keyof typeof FaxType]
|
||||||
|
|
||||||
|
|
||||||
|
export const BillingMethod = {
|
||||||
|
ACTUAL_RATES: 'ACTUAL_RATES',
|
||||||
|
FIXED_FEE: 'FIXED_FEE',
|
||||||
|
NOT_TO_EXCEED: 'NOT_TO_EXCEED',
|
||||||
|
OVERRIDE_RATE: 'OVERRIDE_RATE'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type BillingMethod = (typeof BillingMethod)[keyof typeof BillingMethod]
|
||||||
|
|
||||||
|
|
||||||
|
export const BillingType = {
|
||||||
|
STANDARD: 'STANDARD',
|
||||||
|
PROJECT: 'PROJECT'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type BillingType = (typeof BillingType)[keyof typeof BillingType]
|
||||||
|
|
||||||
|
|
||||||
|
export const GenderType = {
|
||||||
|
MALE: 'MALE',
|
||||||
|
FEMALE: 'FEMALE'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type GenderType = (typeof GenderType)[keyof typeof GenderType]
|
||||||
|
|
||||||
|
|
||||||
|
export const USState = {
|
||||||
|
AL: 'AL',
|
||||||
|
AK: 'AK',
|
||||||
|
AZ: 'AZ',
|
||||||
|
AR: 'AR',
|
||||||
|
CA: 'CA',
|
||||||
|
CO: 'CO',
|
||||||
|
CT: 'CT',
|
||||||
|
DE: 'DE',
|
||||||
|
FL: 'FL',
|
||||||
|
GA: 'GA',
|
||||||
|
HI: 'HI',
|
||||||
|
ID: 'ID',
|
||||||
|
IL: 'IL',
|
||||||
|
IN: 'IN',
|
||||||
|
IA: 'IA',
|
||||||
|
KS: 'KS',
|
||||||
|
KY: 'KY',
|
||||||
|
LA: 'LA',
|
||||||
|
ME: 'ME',
|
||||||
|
MD: 'MD',
|
||||||
|
MA: 'MA',
|
||||||
|
MI: 'MI',
|
||||||
|
MN: 'MN',
|
||||||
|
MS: 'MS',
|
||||||
|
MO: 'MO',
|
||||||
|
MT: 'MT',
|
||||||
|
NE: 'NE',
|
||||||
|
NV: 'NV',
|
||||||
|
NH: 'NH',
|
||||||
|
NJ: 'NJ',
|
||||||
|
NM: 'NM',
|
||||||
|
NY: 'NY',
|
||||||
|
NC: 'NC',
|
||||||
|
ND: 'ND',
|
||||||
|
OH: 'OH',
|
||||||
|
OK: 'OK',
|
||||||
|
OR: 'OR',
|
||||||
|
PA: 'PA',
|
||||||
|
RI: 'RI',
|
||||||
|
SC: 'SC',
|
||||||
|
SD: 'SD',
|
||||||
|
TN: 'TN',
|
||||||
|
TX: 'TX',
|
||||||
|
UT: 'UT',
|
||||||
|
VT: 'VT',
|
||||||
|
VA: 'VA',
|
||||||
|
WA: 'WA',
|
||||||
|
WV: 'WV',
|
||||||
|
WI: 'WI',
|
||||||
|
WY: 'WY'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type USState = (typeof USState)[keyof typeof USState]
|
||||||
|
|
||||||
|
|
||||||
|
export const Country = {
|
||||||
|
US: 'US'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type Country = (typeof Country)[keyof typeof Country]
|
||||||
|
|
||||||
|
|
||||||
|
export const OpportunityInterest = {
|
||||||
|
HOT: 'HOT',
|
||||||
|
WARM: 'WARM',
|
||||||
|
COLD: 'COLD'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type OpportunityInterest = (typeof OpportunityInterest)[keyof typeof OpportunityInterest]
|
||||||
|
|
||||||
|
|
||||||
|
export const SyncJobType = {
|
||||||
|
FULL_SYNC: 'FULL_SYNC',
|
||||||
|
INCREMENTAL_SYNC: 'INCREMENTAL_SYNC'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type SyncJobType = (typeof SyncJobType)[keyof typeof SyncJobType]
|
||||||
|
|
||||||
|
|
||||||
|
export const SyncJobStatus = {
|
||||||
|
QUEUED: 'QUEUED',
|
||||||
|
RUNNING: 'RUNNING',
|
||||||
|
COMPLETED: 'COMPLETED',
|
||||||
|
FAILED: 'FAILED',
|
||||||
|
TIMED_OUT: 'TIMED_OUT'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type SyncJobStatus = (typeof SyncJobStatus)[keyof typeof SyncJobStatus]
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,56 @@
|
|||||||
|
|
||||||
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||||
|
/* eslint-disable */
|
||||||
|
// biome-ignore-all lint: generated file
|
||||||
|
// @ts-nocheck
|
||||||
|
/*
|
||||||
|
* This is a barrel export file for all models and their related types.
|
||||||
|
*
|
||||||
|
* 🟢 You can import this file directly.
|
||||||
|
*/
|
||||||
|
export type * from './models/SyncJobRun.ts'
|
||||||
|
export type * from './models/SyncStepLog.ts'
|
||||||
|
export type * from './models/Session.ts'
|
||||||
|
export type * from './models/User.ts'
|
||||||
|
export type * from './models/Role.ts'
|
||||||
|
export type * from './models/CorporateLocation.ts'
|
||||||
|
export type * from './models/InternalDepartment.ts'
|
||||||
|
export type * from './models/UnifiSite.ts'
|
||||||
|
export type * from './models/Company.ts'
|
||||||
|
export type * from './models/CompanyAddress.ts'
|
||||||
|
export type * from './models/Contact.ts'
|
||||||
|
export type * from './models/CatalogItemType.ts'
|
||||||
|
export type * from './models/CatalogCategory.ts'
|
||||||
|
export type * from './models/CatalogSubcategory.ts'
|
||||||
|
export type * from './models/CatalogManufacturer.ts'
|
||||||
|
export type * from './models/WarehouseBin.ts'
|
||||||
|
export type * from './models/ProductInventory.ts'
|
||||||
|
export type * from './models/Warehouse.ts'
|
||||||
|
export type * from './models/MinimumStockByWarehouse.ts'
|
||||||
|
export type * from './models/CatalogItem.ts'
|
||||||
|
export type * from './models/ProductData.ts'
|
||||||
|
export type * from './models/ServiceTicket.ts'
|
||||||
|
export type * from './models/ServiceTicketNote.ts'
|
||||||
|
export type * from './models/ServiceTicketType.ts'
|
||||||
|
export type * from './models/ServiceTicketBoard.ts'
|
||||||
|
export type * from './models/ServiceTicketLocation.ts'
|
||||||
|
export type * from './models/ServiceTicketSource.ts'
|
||||||
|
export type * from './models/ServiceTicketImpact.ts'
|
||||||
|
export type * from './models/ServiceTicketPriority.ts'
|
||||||
|
export type * from './models/ServiceTicketSeverity.ts'
|
||||||
|
export type * from './models/ServiceTicketFinalData.ts'
|
||||||
|
export type * from './models/OpportunityStage.ts'
|
||||||
|
export type * from './models/OpportunityType.ts'
|
||||||
|
export type * from './models/OpportunityStatus.ts'
|
||||||
|
export type * from './models/Opportunity.ts'
|
||||||
|
export type * from './models/ScheduleStatus.ts'
|
||||||
|
export type * from './models/ScheduleType.ts'
|
||||||
|
export type * from './models/ScheduleSpan.ts'
|
||||||
|
export type * from './models/Schedule.ts'
|
||||||
|
export type * from './models/CredentialType.ts'
|
||||||
|
export type * from './models/SecureValue.ts'
|
||||||
|
export type * from './models/Credential.ts'
|
||||||
|
export type * from './models/GeneratedQuotes.ts'
|
||||||
|
export type * from './models/TaxCode.ts'
|
||||||
|
export type * from './models/CwMember.ts'
|
||||||
|
export type * from './commonInputTypes.ts'
|
||||||
+1358
-363
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1806,6 +1806,11 @@ export type CredentialFindManyArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
* Skip the first `n` Credentials.
|
* Skip the first `n` Credentials.
|
||||||
*/
|
*/
|
||||||
skip?: number
|
skip?: number
|
||||||
|
/**
|
||||||
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||||
|
*
|
||||||
|
* Filter by unique combinations of Credentials.
|
||||||
|
*/
|
||||||
distinct?: Prisma.CredentialScalarFieldEnum | Prisma.CredentialScalarFieldEnum[]
|
distinct?: Prisma.CredentialScalarFieldEnum | Prisma.CredentialScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
+5
@@ -1146,6 +1146,11 @@ export type CredentialTypeFindManyArgs<ExtArgs extends runtime.Types.Extensions.
|
|||||||
* Skip the first `n` CredentialTypes.
|
* Skip the first `n` CredentialTypes.
|
||||||
*/
|
*/
|
||||||
skip?: number
|
skip?: number
|
||||||
|
/**
|
||||||
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||||
|
*
|
||||||
|
* Filter by unique combinations of CredentialTypes.
|
||||||
|
*/
|
||||||
distinct?: Prisma.CredentialTypeScalarFieldEnum | Prisma.CredentialTypeScalarFieldEnum[]
|
distinct?: Prisma.CredentialTypeScalarFieldEnum | Prisma.CredentialTypeScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -264,6 +264,7 @@ export type CwMemberWhereInput = {
|
|||||||
cwLastUpdated?: Prisma.DateTimeNullableFilter<"CwMember"> | Date | string | null
|
cwLastUpdated?: Prisma.DateTimeNullableFilter<"CwMember"> | Date | string | null
|
||||||
createdAt?: Prisma.DateTimeFilter<"CwMember"> | Date | string
|
createdAt?: Prisma.DateTimeFilter<"CwMember"> | Date | string
|
||||||
updatedAt?: Prisma.DateTimeFilter<"CwMember"> | Date | string
|
updatedAt?: Prisma.DateTimeFilter<"CwMember"> | Date | string
|
||||||
|
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CwMemberOrderByWithRelationInput = {
|
export type CwMemberOrderByWithRelationInput = {
|
||||||
@@ -278,6 +279,7 @@ export type CwMemberOrderByWithRelationInput = {
|
|||||||
cwLastUpdated?: Prisma.SortOrderInput | Prisma.SortOrder
|
cwLastUpdated?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
|
user?: Prisma.UserOrderByWithRelationInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CwMemberWhereUniqueInput = Prisma.AtLeast<{
|
export type CwMemberWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -295,6 +297,7 @@ export type CwMemberWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
cwLastUpdated?: Prisma.DateTimeNullableFilter<"CwMember"> | Date | string | null
|
cwLastUpdated?: Prisma.DateTimeNullableFilter<"CwMember"> | Date | string | null
|
||||||
createdAt?: Prisma.DateTimeFilter<"CwMember"> | Date | string
|
createdAt?: Prisma.DateTimeFilter<"CwMember"> | Date | string
|
||||||
updatedAt?: Prisma.DateTimeFilter<"CwMember"> | Date | string
|
updatedAt?: Prisma.DateTimeFilter<"CwMember"> | Date | string
|
||||||
|
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||||||
}, "id" | "cwMemberId" | "identifier">
|
}, "id" | "cwMemberId" | "identifier">
|
||||||
|
|
||||||
export type CwMemberOrderByWithAggregationInput = {
|
export type CwMemberOrderByWithAggregationInput = {
|
||||||
@@ -345,6 +348,7 @@ export type CwMemberCreateInput = {
|
|||||||
cwLastUpdated?: Date | string | null
|
cwLastUpdated?: Date | string | null
|
||||||
createdAt?: Date | string
|
createdAt?: Date | string
|
||||||
updatedAt?: Date | string
|
updatedAt?: Date | string
|
||||||
|
user?: Prisma.UserCreateNestedOneWithoutCwMemberInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CwMemberUncheckedCreateInput = {
|
export type CwMemberUncheckedCreateInput = {
|
||||||
@@ -359,6 +363,7 @@ export type CwMemberUncheckedCreateInput = {
|
|||||||
cwLastUpdated?: Date | string | null
|
cwLastUpdated?: Date | string | null
|
||||||
createdAt?: Date | string
|
createdAt?: Date | string
|
||||||
updatedAt?: Date | string
|
updatedAt?: Date | string
|
||||||
|
user?: Prisma.UserUncheckedCreateNestedOneWithoutCwMemberInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CwMemberUpdateInput = {
|
export type CwMemberUpdateInput = {
|
||||||
@@ -373,6 +378,7 @@ export type CwMemberUpdateInput = {
|
|||||||
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
user?: Prisma.UserUpdateOneWithoutCwMemberNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CwMemberUncheckedUpdateInput = {
|
export type CwMemberUncheckedUpdateInput = {
|
||||||
@@ -387,6 +393,7 @@ export type CwMemberUncheckedUpdateInput = {
|
|||||||
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
user?: Prisma.UserUncheckedUpdateOneWithoutCwMemberNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CwMemberCreateManyInput = {
|
export type CwMemberCreateManyInput = {
|
||||||
@@ -431,6 +438,11 @@ export type CwMemberUncheckedUpdateManyInput = {
|
|||||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type CwMemberNullableScalarRelationFilter = {
|
||||||
|
is?: Prisma.CwMemberWhereInput | null
|
||||||
|
isNot?: Prisma.CwMemberWhereInput | null
|
||||||
|
}
|
||||||
|
|
||||||
export type CwMemberCountOrderByAggregateInput = {
|
export type CwMemberCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
cwMemberId?: Prisma.SortOrder
|
cwMemberId?: Prisma.SortOrder
|
||||||
@@ -481,6 +493,94 @@ export type CwMemberSumOrderByAggregateInput = {
|
|||||||
cwMemberId?: Prisma.SortOrder
|
cwMemberId?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type CwMemberCreateNestedOneWithoutUserInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.CwMemberCreateWithoutUserInput, Prisma.CwMemberUncheckedCreateWithoutUserInput>
|
||||||
|
connectOrCreate?: Prisma.CwMemberCreateOrConnectWithoutUserInput
|
||||||
|
connect?: Prisma.CwMemberWhereUniqueInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CwMemberUpdateOneWithoutUserNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.CwMemberCreateWithoutUserInput, Prisma.CwMemberUncheckedCreateWithoutUserInput>
|
||||||
|
connectOrCreate?: Prisma.CwMemberCreateOrConnectWithoutUserInput
|
||||||
|
upsert?: Prisma.CwMemberUpsertWithoutUserInput
|
||||||
|
disconnect?: Prisma.CwMemberWhereInput | boolean
|
||||||
|
delete?: Prisma.CwMemberWhereInput | boolean
|
||||||
|
connect?: Prisma.CwMemberWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CwMemberUpdateToOneWithWhereWithoutUserInput, Prisma.CwMemberUpdateWithoutUserInput>, Prisma.CwMemberUncheckedUpdateWithoutUserInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CwMemberCreateWithoutUserInput = {
|
||||||
|
id?: string
|
||||||
|
cwMemberId: number
|
||||||
|
identifier: string
|
||||||
|
firstName: string
|
||||||
|
lastName: string
|
||||||
|
officeEmail?: string | null
|
||||||
|
inactiveFlag?: boolean
|
||||||
|
apiKey?: string | null
|
||||||
|
cwLastUpdated?: Date | string | null
|
||||||
|
createdAt?: Date | string
|
||||||
|
updatedAt?: Date | string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CwMemberUncheckedCreateWithoutUserInput = {
|
||||||
|
id?: string
|
||||||
|
cwMemberId: number
|
||||||
|
identifier: string
|
||||||
|
firstName: string
|
||||||
|
lastName: string
|
||||||
|
officeEmail?: string | null
|
||||||
|
inactiveFlag?: boolean
|
||||||
|
apiKey?: string | null
|
||||||
|
cwLastUpdated?: Date | string | null
|
||||||
|
createdAt?: Date | string
|
||||||
|
updatedAt?: Date | string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CwMemberCreateOrConnectWithoutUserInput = {
|
||||||
|
where: Prisma.CwMemberWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.CwMemberCreateWithoutUserInput, Prisma.CwMemberUncheckedCreateWithoutUserInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CwMemberUpsertWithoutUserInput = {
|
||||||
|
update: Prisma.XOR<Prisma.CwMemberUpdateWithoutUserInput, Prisma.CwMemberUncheckedUpdateWithoutUserInput>
|
||||||
|
create: Prisma.XOR<Prisma.CwMemberCreateWithoutUserInput, Prisma.CwMemberUncheckedCreateWithoutUserInput>
|
||||||
|
where?: Prisma.CwMemberWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CwMemberUpdateToOneWithWhereWithoutUserInput = {
|
||||||
|
where?: Prisma.CwMemberWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.CwMemberUpdateWithoutUserInput, Prisma.CwMemberUncheckedUpdateWithoutUserInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CwMemberUpdateWithoutUserInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
cwMemberId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
|
identifier?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
officeEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
inactiveFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||||
|
apiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CwMemberUncheckedUpdateWithoutUserInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
cwMemberId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||||
|
identifier?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
officeEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
inactiveFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||||
|
apiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export type CwMemberSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
export type CwMemberSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
@@ -495,6 +595,7 @@ export type CwMemberSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||||||
cwLastUpdated?: boolean
|
cwLastUpdated?: boolean
|
||||||
createdAt?: boolean
|
createdAt?: boolean
|
||||||
updatedAt?: boolean
|
updatedAt?: boolean
|
||||||
|
user?: boolean | Prisma.CwMember$userArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["cwMember"]>
|
}, ExtArgs["result"]["cwMember"]>
|
||||||
|
|
||||||
export type CwMemberSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
export type CwMemberSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
@@ -540,10 +641,17 @@ export type CwMemberSelectScalar = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type CwMemberOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "cwMemberId" | "identifier" | "firstName" | "lastName" | "officeEmail" | "inactiveFlag" | "apiKey" | "cwLastUpdated" | "createdAt" | "updatedAt", ExtArgs["result"]["cwMember"]>
|
export type CwMemberOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "cwMemberId" | "identifier" | "firstName" | "lastName" | "officeEmail" | "inactiveFlag" | "apiKey" | "cwLastUpdated" | "createdAt" | "updatedAt", ExtArgs["result"]["cwMember"]>
|
||||||
|
export type CwMemberInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
user?: boolean | Prisma.CwMember$userArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
export type CwMemberIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
||||||
|
export type CwMemberIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
||||||
|
|
||||||
export type $CwMemberPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $CwMemberPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "CwMember"
|
name: "CwMember"
|
||||||
objects: {}
|
objects: {
|
||||||
|
user: Prisma.$UserPayload<ExtArgs> | null
|
||||||
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: string
|
id: string
|
||||||
cwMemberId: number
|
cwMemberId: number
|
||||||
@@ -950,6 +1058,7 @@ readonly fields: CwMemberFieldRefs;
|
|||||||
*/
|
*/
|
||||||
export interface Prisma__CwMemberClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
export interface Prisma__CwMemberClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||||
|
user<T extends Prisma.CwMember$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CwMember$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
@@ -1006,6 +1115,10 @@ export type CwMemberFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
* Omit specific fields from the CwMember
|
* Omit specific fields from the CwMember
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CwMemberInclude<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Filter, which CwMember to fetch.
|
* Filter, which CwMember to fetch.
|
||||||
*/
|
*/
|
||||||
@@ -1024,6 +1137,10 @@ export type CwMemberFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensio
|
|||||||
* Omit specific fields from the CwMember
|
* Omit specific fields from the CwMember
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CwMemberInclude<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Filter, which CwMember to fetch.
|
* Filter, which CwMember to fetch.
|
||||||
*/
|
*/
|
||||||
@@ -1042,6 +1159,10 @@ export type CwMemberFindFirstArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|||||||
* Omit specific fields from the CwMember
|
* Omit specific fields from the CwMember
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CwMemberInclude<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Filter, which CwMember to fetch.
|
* Filter, which CwMember to fetch.
|
||||||
*/
|
*/
|
||||||
@@ -1090,6 +1211,10 @@ export type CwMemberFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extension
|
|||||||
* Omit specific fields from the CwMember
|
* Omit specific fields from the CwMember
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CwMemberInclude<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Filter, which CwMember to fetch.
|
* Filter, which CwMember to fetch.
|
||||||
*/
|
*/
|
||||||
@@ -1138,6 +1263,10 @@ export type CwMemberFindManyArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
|||||||
* Omit specific fields from the CwMember
|
* Omit specific fields from the CwMember
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CwMemberInclude<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Filter, which CwMembers to fetch.
|
* Filter, which CwMembers to fetch.
|
||||||
*/
|
*/
|
||||||
@@ -1166,6 +1295,11 @@ export type CwMemberFindManyArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
|||||||
* Skip the first `n` CwMembers.
|
* Skip the first `n` CwMembers.
|
||||||
*/
|
*/
|
||||||
skip?: number
|
skip?: number
|
||||||
|
/**
|
||||||
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||||
|
*
|
||||||
|
* Filter by unique combinations of CwMembers.
|
||||||
|
*/
|
||||||
distinct?: Prisma.CwMemberScalarFieldEnum | Prisma.CwMemberScalarFieldEnum[]
|
distinct?: Prisma.CwMemberScalarFieldEnum | Prisma.CwMemberScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1181,6 +1315,10 @@ export type CwMemberCreateArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
* Omit specific fields from the CwMember
|
* Omit specific fields from the CwMember
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CwMemberInclude<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* The data needed to create a CwMember.
|
* The data needed to create a CwMember.
|
||||||
*/
|
*/
|
||||||
@@ -1229,6 +1367,10 @@ export type CwMemberUpdateArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
* Omit specific fields from the CwMember
|
* Omit specific fields from the CwMember
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CwMemberInclude<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* The data needed to update a CwMember.
|
* The data needed to update a CwMember.
|
||||||
*/
|
*/
|
||||||
@@ -1295,6 +1437,10 @@ export type CwMemberUpsertArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
* Omit specific fields from the CwMember
|
* Omit specific fields from the CwMember
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CwMemberInclude<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* The filter to search for the CwMember to update in case it exists.
|
* The filter to search for the CwMember to update in case it exists.
|
||||||
*/
|
*/
|
||||||
@@ -1321,6 +1467,10 @@ export type CwMemberDeleteArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
* Omit specific fields from the CwMember
|
* Omit specific fields from the CwMember
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CwMemberInclude<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Filter which CwMember to delete.
|
* Filter which CwMember to delete.
|
||||||
*/
|
*/
|
||||||
@@ -1341,6 +1491,25 @@ export type CwMemberDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CwMember.user
|
||||||
|
*/
|
||||||
|
export type CwMember$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the User
|
||||||
|
*/
|
||||||
|
select?: Prisma.UserSelect<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the User
|
||||||
|
*/
|
||||||
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.UserInclude<ExtArgs> | null
|
||||||
|
where?: Prisma.UserWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CwMember without action
|
* CwMember without action
|
||||||
*/
|
*/
|
||||||
@@ -1353,4 +1522,8 @@ export type CwMemberDefaultArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
|||||||
* Omit specific fields from the CwMember
|
* Omit specific fields from the CwMember
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
omit?: Prisma.CwMemberOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CwMemberInclude<ExtArgs> | null
|
||||||
}
|
}
|
||||||
+5
@@ -1474,6 +1474,11 @@ export type GeneratedQuotesFindManyArgs<ExtArgs extends runtime.Types.Extensions
|
|||||||
* Skip the first `n` GeneratedQuotes.
|
* Skip the first `n` GeneratedQuotes.
|
||||||
*/
|
*/
|
||||||
skip?: number
|
skip?: number
|
||||||
|
/**
|
||||||
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||||
|
*
|
||||||
|
* Filter by unique combinations of GeneratedQuotes.
|
||||||
|
*/
|
||||||
distinct?: Prisma.GeneratedQuotesScalarFieldEnum | Prisma.GeneratedQuotesScalarFieldEnum[]
|
distinct?: Prisma.GeneratedQuotesScalarFieldEnum | Prisma.GeneratedQuotesScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1175,6 +1175,11 @@ export type RoleFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalAr
|
|||||||
* Skip the first `n` Roles.
|
* Skip the first `n` Roles.
|
||||||
*/
|
*/
|
||||||
skip?: number
|
skip?: number
|
||||||
|
/**
|
||||||
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||||
|
*
|
||||||
|
* Filter by unique combinations of Roles.
|
||||||
|
*/
|
||||||
distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[]
|
distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1192,6 +1192,11 @@ export type SecureValueFindManyArgs<ExtArgs extends runtime.Types.Extensions.Int
|
|||||||
* Skip the first `n` SecureValues.
|
* Skip the first `n` SecureValues.
|
||||||
*/
|
*/
|
||||||
skip?: number
|
skip?: number
|
||||||
|
/**
|
||||||
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||||
|
*
|
||||||
|
* Filter by unique combinations of SecureValues.
|
||||||
|
*/
|
||||||
distinct?: Prisma.SecureValueScalarFieldEnum | Prisma.SecureValueScalarFieldEnum[]
|
distinct?: Prisma.SecureValueScalarFieldEnum | Prisma.SecureValueScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -361,22 +361,10 @@ export type SessionOrderByRelationAggregateInput = {
|
|||||||
_count?: Prisma.SortOrder
|
_count?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type StringFieldUpdateOperationsInput = {
|
|
||||||
set?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type DateTimeFieldUpdateOperationsInput = {
|
|
||||||
set?: Date | string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BoolFieldUpdateOperationsInput = {
|
export type BoolFieldUpdateOperationsInput = {
|
||||||
set?: boolean
|
set?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
||||||
set?: Date | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SessionCreateNestedManyWithoutUserInput = {
|
export type SessionCreateNestedManyWithoutUserInput = {
|
||||||
create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[]
|
create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[]
|
||||||
connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[]
|
connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[]
|
||||||
@@ -1208,6 +1196,11 @@ export type SessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
|||||||
* Skip the first `n` Sessions.
|
* Skip the first `n` Sessions.
|
||||||
*/
|
*/
|
||||||
skip?: number
|
skip?: number
|
||||||
|
/**
|
||||||
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||||
|
*
|
||||||
|
* Filter by unique combinations of Sessions.
|
||||||
|
*/
|
||||||
distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[]
|
distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -20,15 +20,25 @@ export type UnifiSiteModel = runtime.Types.Result.DefaultSelection<Prisma.$Unifi
|
|||||||
|
|
||||||
export type AggregateUnifiSite = {
|
export type AggregateUnifiSite = {
|
||||||
_count: UnifiSiteCountAggregateOutputType | null
|
_count: UnifiSiteCountAggregateOutputType | null
|
||||||
|
_avg: UnifiSiteAvgAggregateOutputType | null
|
||||||
|
_sum: UnifiSiteSumAggregateOutputType | null
|
||||||
_min: UnifiSiteMinAggregateOutputType | null
|
_min: UnifiSiteMinAggregateOutputType | null
|
||||||
_max: UnifiSiteMaxAggregateOutputType | null
|
_max: UnifiSiteMaxAggregateOutputType | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type UnifiSiteAvgAggregateOutputType = {
|
||||||
|
companyId: number | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type UnifiSiteSumAggregateOutputType = {
|
||||||
|
companyId: number | null
|
||||||
|
}
|
||||||
|
|
||||||
export type UnifiSiteMinAggregateOutputType = {
|
export type UnifiSiteMinAggregateOutputType = {
|
||||||
id: string | null
|
id: string | null
|
||||||
name: string | null
|
name: string | null
|
||||||
siteId: string | null
|
siteId: string | null
|
||||||
companyId: string | null
|
companyId: number | null
|
||||||
createdAt: Date | null
|
createdAt: Date | null
|
||||||
updatedAt: Date | null
|
updatedAt: Date | null
|
||||||
}
|
}
|
||||||
@@ -37,7 +47,7 @@ export type UnifiSiteMaxAggregateOutputType = {
|
|||||||
id: string | null
|
id: string | null
|
||||||
name: string | null
|
name: string | null
|
||||||
siteId: string | null
|
siteId: string | null
|
||||||
companyId: string | null
|
companyId: number | null
|
||||||
createdAt: Date | null
|
createdAt: Date | null
|
||||||
updatedAt: Date | null
|
updatedAt: Date | null
|
||||||
}
|
}
|
||||||
@@ -53,6 +63,14 @@ export type UnifiSiteCountAggregateOutputType = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export type UnifiSiteAvgAggregateInputType = {
|
||||||
|
companyId?: true
|
||||||
|
}
|
||||||
|
|
||||||
|
export type UnifiSiteSumAggregateInputType = {
|
||||||
|
companyId?: true
|
||||||
|
}
|
||||||
|
|
||||||
export type UnifiSiteMinAggregateInputType = {
|
export type UnifiSiteMinAggregateInputType = {
|
||||||
id?: true
|
id?: true
|
||||||
name?: true
|
name?: true
|
||||||
@@ -116,6 +134,18 @@ export type UnifiSiteAggregateArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
* Count returned UnifiSites
|
* Count returned UnifiSites
|
||||||
**/
|
**/
|
||||||
_count?: true | UnifiSiteCountAggregateInputType
|
_count?: true | UnifiSiteCountAggregateInputType
|
||||||
|
/**
|
||||||
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||||
|
*
|
||||||
|
* Select which fields to average
|
||||||
|
**/
|
||||||
|
_avg?: UnifiSiteAvgAggregateInputType
|
||||||
|
/**
|
||||||
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||||
|
*
|
||||||
|
* Select which fields to sum
|
||||||
|
**/
|
||||||
|
_sum?: UnifiSiteSumAggregateInputType
|
||||||
/**
|
/**
|
||||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||||
*
|
*
|
||||||
@@ -149,6 +179,8 @@ export type UnifiSiteGroupByArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
|||||||
take?: number
|
take?: number
|
||||||
skip?: number
|
skip?: number
|
||||||
_count?: UnifiSiteCountAggregateInputType | true
|
_count?: UnifiSiteCountAggregateInputType | true
|
||||||
|
_avg?: UnifiSiteAvgAggregateInputType
|
||||||
|
_sum?: UnifiSiteSumAggregateInputType
|
||||||
_min?: UnifiSiteMinAggregateInputType
|
_min?: UnifiSiteMinAggregateInputType
|
||||||
_max?: UnifiSiteMaxAggregateInputType
|
_max?: UnifiSiteMaxAggregateInputType
|
||||||
}
|
}
|
||||||
@@ -157,10 +189,12 @@ export type UnifiSiteGroupByOutputType = {
|
|||||||
id: string
|
id: string
|
||||||
name: string
|
name: string
|
||||||
siteId: string
|
siteId: string
|
||||||
companyId: string | null
|
companyId: number | null
|
||||||
createdAt: Date
|
createdAt: Date
|
||||||
updatedAt: Date
|
updatedAt: Date
|
||||||
_count: UnifiSiteCountAggregateOutputType | null
|
_count: UnifiSiteCountAggregateOutputType | null
|
||||||
|
_avg: UnifiSiteAvgAggregateOutputType | null
|
||||||
|
_sum: UnifiSiteSumAggregateOutputType | null
|
||||||
_min: UnifiSiteMinAggregateOutputType | null
|
_min: UnifiSiteMinAggregateOutputType | null
|
||||||
_max: UnifiSiteMaxAggregateOutputType | null
|
_max: UnifiSiteMaxAggregateOutputType | null
|
||||||
}
|
}
|
||||||
@@ -187,7 +221,7 @@ export type UnifiSiteWhereInput = {
|
|||||||
id?: Prisma.StringFilter<"UnifiSite"> | string
|
id?: Prisma.StringFilter<"UnifiSite"> | string
|
||||||
name?: Prisma.StringFilter<"UnifiSite"> | string
|
name?: Prisma.StringFilter<"UnifiSite"> | string
|
||||||
siteId?: Prisma.StringFilter<"UnifiSite"> | string
|
siteId?: Prisma.StringFilter<"UnifiSite"> | string
|
||||||
companyId?: Prisma.StringNullableFilter<"UnifiSite"> | string | null
|
companyId?: Prisma.IntNullableFilter<"UnifiSite"> | number | null
|
||||||
createdAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
|
createdAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
|
||||||
updatedAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
|
updatedAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
|
||||||
company?: Prisma.XOR<Prisma.CompanyNullableScalarRelationFilter, Prisma.CompanyWhereInput> | null
|
company?: Prisma.XOR<Prisma.CompanyNullableScalarRelationFilter, Prisma.CompanyWhereInput> | null
|
||||||
@@ -210,7 +244,7 @@ export type UnifiSiteWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
OR?: Prisma.UnifiSiteWhereInput[]
|
OR?: Prisma.UnifiSiteWhereInput[]
|
||||||
NOT?: Prisma.UnifiSiteWhereInput | Prisma.UnifiSiteWhereInput[]
|
NOT?: Prisma.UnifiSiteWhereInput | Prisma.UnifiSiteWhereInput[]
|
||||||
name?: Prisma.StringFilter<"UnifiSite"> | string
|
name?: Prisma.StringFilter<"UnifiSite"> | string
|
||||||
companyId?: Prisma.StringNullableFilter<"UnifiSite"> | string | null
|
companyId?: Prisma.IntNullableFilter<"UnifiSite"> | number | null
|
||||||
createdAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
|
createdAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
|
||||||
updatedAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
|
updatedAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
|
||||||
company?: Prisma.XOR<Prisma.CompanyNullableScalarRelationFilter, Prisma.CompanyWhereInput> | null
|
company?: Prisma.XOR<Prisma.CompanyNullableScalarRelationFilter, Prisma.CompanyWhereInput> | null
|
||||||
@@ -224,8 +258,10 @@ export type UnifiSiteOrderByWithAggregationInput = {
|
|||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
_count?: Prisma.UnifiSiteCountOrderByAggregateInput
|
_count?: Prisma.UnifiSiteCountOrderByAggregateInput
|
||||||
|
_avg?: Prisma.UnifiSiteAvgOrderByAggregateInput
|
||||||
_max?: Prisma.UnifiSiteMaxOrderByAggregateInput
|
_max?: Prisma.UnifiSiteMaxOrderByAggregateInput
|
||||||
_min?: Prisma.UnifiSiteMinOrderByAggregateInput
|
_min?: Prisma.UnifiSiteMinOrderByAggregateInput
|
||||||
|
_sum?: Prisma.UnifiSiteSumOrderByAggregateInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UnifiSiteScalarWhereWithAggregatesInput = {
|
export type UnifiSiteScalarWhereWithAggregatesInput = {
|
||||||
@@ -235,7 +271,7 @@ export type UnifiSiteScalarWhereWithAggregatesInput = {
|
|||||||
id?: Prisma.StringWithAggregatesFilter<"UnifiSite"> | string
|
id?: Prisma.StringWithAggregatesFilter<"UnifiSite"> | string
|
||||||
name?: Prisma.StringWithAggregatesFilter<"UnifiSite"> | string
|
name?: Prisma.StringWithAggregatesFilter<"UnifiSite"> | string
|
||||||
siteId?: Prisma.StringWithAggregatesFilter<"UnifiSite"> | string
|
siteId?: Prisma.StringWithAggregatesFilter<"UnifiSite"> | string
|
||||||
companyId?: Prisma.StringNullableWithAggregatesFilter<"UnifiSite"> | string | null
|
companyId?: Prisma.IntNullableWithAggregatesFilter<"UnifiSite"> | number | null
|
||||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"UnifiSite"> | Date | string
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"UnifiSite"> | Date | string
|
||||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"UnifiSite"> | Date | string
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"UnifiSite"> | Date | string
|
||||||
}
|
}
|
||||||
@@ -253,7 +289,7 @@ export type UnifiSiteUncheckedCreateInput = {
|
|||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
siteId: string
|
siteId: string
|
||||||
companyId?: string | null
|
companyId?: number | null
|
||||||
createdAt?: Date | string
|
createdAt?: Date | string
|
||||||
updatedAt?: Date | string
|
updatedAt?: Date | string
|
||||||
}
|
}
|
||||||
@@ -271,7 +307,7 @@ export type UnifiSiteUncheckedUpdateInput = {
|
|||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
siteId?: Prisma.StringFieldUpdateOperationsInput | string
|
siteId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
@@ -280,7 +316,7 @@ export type UnifiSiteCreateManyInput = {
|
|||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
siteId: string
|
siteId: string
|
||||||
companyId?: string | null
|
companyId?: number | null
|
||||||
createdAt?: Date | string
|
createdAt?: Date | string
|
||||||
updatedAt?: Date | string
|
updatedAt?: Date | string
|
||||||
}
|
}
|
||||||
@@ -297,7 +333,7 @@ export type UnifiSiteUncheckedUpdateManyInput = {
|
|||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
siteId?: Prisma.StringFieldUpdateOperationsInput | string
|
siteId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
companyId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
@@ -311,6 +347,10 @@ export type UnifiSiteCountOrderByAggregateInput = {
|
|||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type UnifiSiteAvgOrderByAggregateInput = {
|
||||||
|
companyId?: Prisma.SortOrder
|
||||||
|
}
|
||||||
|
|
||||||
export type UnifiSiteMaxOrderByAggregateInput = {
|
export type UnifiSiteMaxOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
name?: Prisma.SortOrder
|
name?: Prisma.SortOrder
|
||||||
@@ -329,6 +369,10 @@ export type UnifiSiteMinOrderByAggregateInput = {
|
|||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type UnifiSiteSumOrderByAggregateInput = {
|
||||||
|
companyId?: Prisma.SortOrder
|
||||||
|
}
|
||||||
|
|
||||||
export type UnifiSiteListRelationFilter = {
|
export type UnifiSiteListRelationFilter = {
|
||||||
every?: Prisma.UnifiSiteWhereInput
|
every?: Prisma.UnifiSiteWhereInput
|
||||||
some?: Prisma.UnifiSiteWhereInput
|
some?: Prisma.UnifiSiteWhereInput
|
||||||
@@ -430,7 +474,7 @@ export type UnifiSiteScalarWhereInput = {
|
|||||||
id?: Prisma.StringFilter<"UnifiSite"> | string
|
id?: Prisma.StringFilter<"UnifiSite"> | string
|
||||||
name?: Prisma.StringFilter<"UnifiSite"> | string
|
name?: Prisma.StringFilter<"UnifiSite"> | string
|
||||||
siteId?: Prisma.StringFilter<"UnifiSite"> | string
|
siteId?: Prisma.StringFilter<"UnifiSite"> | string
|
||||||
companyId?: Prisma.StringNullableFilter<"UnifiSite"> | string | null
|
companyId?: Prisma.IntNullableFilter<"UnifiSite"> | number | null
|
||||||
createdAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
|
createdAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
|
||||||
updatedAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
|
updatedAt?: Prisma.DateTimeFilter<"UnifiSite"> | Date | string
|
||||||
}
|
}
|
||||||
@@ -528,7 +572,7 @@ export type $UnifiSitePayload<ExtArgs extends runtime.Types.Extensions.InternalA
|
|||||||
id: string
|
id: string
|
||||||
name: string
|
name: string
|
||||||
siteId: string
|
siteId: string
|
||||||
companyId: string | null
|
companyId: number | null
|
||||||
createdAt: Date
|
createdAt: Date
|
||||||
updatedAt: Date
|
updatedAt: Date
|
||||||
}, ExtArgs["result"]["unifiSite"]>
|
}, ExtArgs["result"]["unifiSite"]>
|
||||||
@@ -958,7 +1002,7 @@ export interface UnifiSiteFieldRefs {
|
|||||||
readonly id: Prisma.FieldRef<"UnifiSite", 'String'>
|
readonly id: Prisma.FieldRef<"UnifiSite", 'String'>
|
||||||
readonly name: Prisma.FieldRef<"UnifiSite", 'String'>
|
readonly name: Prisma.FieldRef<"UnifiSite", 'String'>
|
||||||
readonly siteId: Prisma.FieldRef<"UnifiSite", 'String'>
|
readonly siteId: Prisma.FieldRef<"UnifiSite", 'String'>
|
||||||
readonly companyId: Prisma.FieldRef<"UnifiSite", 'String'>
|
readonly companyId: Prisma.FieldRef<"UnifiSite", 'Int'>
|
||||||
readonly createdAt: Prisma.FieldRef<"UnifiSite", 'DateTime'>
|
readonly createdAt: Prisma.FieldRef<"UnifiSite", 'DateTime'>
|
||||||
readonly updatedAt: Prisma.FieldRef<"UnifiSite", 'DateTime'>
|
readonly updatedAt: Prisma.FieldRef<"UnifiSite", 'DateTime'>
|
||||||
}
|
}
|
||||||
@@ -1157,6 +1201,11 @@ export type UnifiSiteFindManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|||||||
* Skip the first `n` UnifiSites.
|
* Skip the first `n` UnifiSites.
|
||||||
*/
|
*/
|
||||||
skip?: number
|
skip?: number
|
||||||
|
/**
|
||||||
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||||
|
*
|
||||||
|
* Filter by unique combinations of UnifiSites.
|
||||||
|
*/
|
||||||
distinct?: Prisma.UnifiSiteScalarFieldEnum | Prisma.UnifiSiteScalarFieldEnum[]
|
distinct?: Prisma.UnifiSiteScalarFieldEnum | Prisma.UnifiSiteScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,49 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: optima-api
|
||||||
|
namespace: optima
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: optima-api
|
||||||
|
replicas: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: optima-api
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: optima-api
|
||||||
|
image: ghcr.io/horizonstacksoftware/optima-api:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: api-env-secret
|
||||||
|
- secretRef:
|
||||||
|
name: optima-keys-secret
|
||||||
|
ports:
|
||||||
|
- containerPort: 3000
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "100m"
|
||||||
|
limits:
|
||||||
|
memory: "512Mi"
|
||||||
|
cpu: "1000m"
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: 3000
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 30
|
||||||
|
failureThreshold: 3
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: 3000
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
failureThreshold: 2
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: github-container-registry
|
||||||
@@ -33,7 +33,11 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- port: 3000
|
- name: http
|
||||||
|
port: 3000
|
||||||
|
protocol: TCP
|
||||||
|
- name: worker-comms
|
||||||
|
port: 8671
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
selector:
|
selector:
|
||||||
app: optima-api
|
app: optima-api
|
||||||
@@ -6,13 +6,17 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: prisma-migrate
|
app: prisma-migrate
|
||||||
spec:
|
spec:
|
||||||
backoffLimit: 3
|
backoffLimit: 1
|
||||||
ttlSecondsAfterFinished: 300
|
ttlSecondsAfterFinished: 86400
|
||||||
|
activeDeadlineSeconds: 180
|
||||||
template:
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: prisma-migrate
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: migrate
|
- name: migrate
|
||||||
image: ghcr.io/project-optima/ttscm-api-migrate:RELEASE_TAG
|
image: ghcr.io/horizonstacksoftware/optima-api-migrate:RELEASE_TAG
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: api-env-secret
|
name: api-env-secret
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: optima-worker
|
||||||
|
namespace: optima
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: optima-worker
|
||||||
|
replicas: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: optima-worker
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: optima-worker
|
||||||
|
image: ghcr.io/horizonstacksoftware/optima-worker:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: MANAGER_SOCKET_URL
|
||||||
|
value: "http://optima-api.optima.svc.cluster.local:8671"
|
||||||
|
- name: API_DATABASE_URL
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: api-env-secret
|
||||||
|
key: DATABASE_URL
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: api-env-secret
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "100m"
|
||||||
|
limits:
|
||||||
|
memory: "512Mi"
|
||||||
|
cpu: "1000m"
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: github-container-registry
|
||||||
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
@@ -0,0 +1,64 @@
|
|||||||
|
{
|
||||||
|
"name": "api",
|
||||||
|
"homepage": "https://totaltech.net",
|
||||||
|
"version": "v0.1.0",
|
||||||
|
"author": {
|
||||||
|
"name": "Jackson Roberts",
|
||||||
|
"email": "jackson.roberts@totaltech.net",
|
||||||
|
"url": "https://totaltech.net"
|
||||||
|
},
|
||||||
|
"module": "src/index.ts",
|
||||||
|
"type": "module",
|
||||||
|
"private": true,
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/bun": "latest",
|
||||||
|
"@types/jsonwebtoken": "^9.0.10"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"typescript": "^5"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"dev": "NODE_ENV=development bun --watch src/index.ts",
|
||||||
|
"dev:worker": "NODE_ENV=development bun --watch src/workert.ts",
|
||||||
|
"dev:log": "LOG_CW_API=1 NODE_ENV=development bun --watch src/index.ts",
|
||||||
|
"test": "bun test --preload ./tests/setup.ts",
|
||||||
|
"db:gen": "prisma generate",
|
||||||
|
"db:push": "prisma migrate dev --skip-generate",
|
||||||
|
"db:deploy": "prisma migrate deploy",
|
||||||
|
"utils:dev": "docker compose -f .docker/docker-compose.yml up --build",
|
||||||
|
"utils:gen_private_keys": "bun ./utils/genPrivateKeys",
|
||||||
|
"utils:create_admin_role": "bun ./utils/createAdminRole",
|
||||||
|
"utils:assign_user_role": "bun ./utils/assignUserRole",
|
||||||
|
"utils:gen_access_token": "bun ./utils/generate24HourAccessToken.ts",
|
||||||
|
"utils:test_webserver": "bun ./utils/testWebserver.ts",
|
||||||
|
"utils:test_adjustments_poll": "bun ./utils/testAdjustmentsPoll.ts",
|
||||||
|
"utils:analyze_cw": "python3 debug-scripts/analyze-cw-calls.py",
|
||||||
|
"db:check": "bunx prisma migrate diff --from-migrations prisma/migrations --to-schema prisma/schema.prisma --shadow-database-url $DATABASE_URL --exit-code"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@azure/msal-node": "^5.0.2",
|
||||||
|
"@discordjs/collection": "^2.1.1",
|
||||||
|
"@duxcore/eventra": "^1.1.0",
|
||||||
|
"@prisma/adapter-pg": "^7.3.0",
|
||||||
|
"@prisma/client": "^7.3.0",
|
||||||
|
"@prisma/client-runtime-utils": "7.5.0",
|
||||||
|
"@socket.io/bun-engine": "^0.1.0",
|
||||||
|
"axios": "^1.13.3",
|
||||||
|
"blakets": "^0.1.12",
|
||||||
|
"cors": "^2.8.6",
|
||||||
|
"cuid": "^3.0.0",
|
||||||
|
"dalpuri": "*",
|
||||||
|
"hono": "^4.11.5",
|
||||||
|
"ioredis": "^5.10.0",
|
||||||
|
"jsonwebtoken": "^9.0.3",
|
||||||
|
"keypair": "^1.0.4",
|
||||||
|
"pdf-lib": "^1.17.1",
|
||||||
|
"pdfmake": "^0.3.5",
|
||||||
|
"pg-boss": "^12.14.0",
|
||||||
|
"prisma": "^7.3.0",
|
||||||
|
"socket.io": "^4.8.3",
|
||||||
|
"socket.io-client": "^4.8.3",
|
||||||
|
"zod": "^4.3.6",
|
||||||
|
"zon": "^1.0.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
import 'dotenv/config'
|
|
||||||
import { defineConfig, env } from 'prisma/config'
|
import { defineConfig, env } from 'prisma/config'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
Executable
+53
@@ -0,0 +1,53 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Run prisma migrate deploy. On P3009 (a failed migration is blocking deploy),
|
||||||
|
# extract the migration name from the error, resolve it as rolled-back, and
|
||||||
|
# retry. All migration SQL in this repo is idempotent so a re-run is safe.
|
||||||
|
# Loop handles multiple blocked migrations; max retries prevents infinite loops.
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
MAX_RETRIES=10
|
||||||
|
ATTEMPT=0
|
||||||
|
|
||||||
|
while [ $ATTEMPT -lt $MAX_RETRIES ]; do
|
||||||
|
ATTEMPT=$((ATTEMPT + 1))
|
||||||
|
echo "[migrate] Running prisma migrate deploy (attempt $ATTEMPT)..."
|
||||||
|
|
||||||
|
EXIT_CODE=0
|
||||||
|
DEPLOY_OUTPUT=$(bunx prisma migrate deploy 2>&1) || EXIT_CODE=$?
|
||||||
|
echo "$DEPLOY_OUTPUT"
|
||||||
|
|
||||||
|
if [ $EXIT_CODE -eq 0 ]; then
|
||||||
|
echo "[migrate] All migrations applied successfully."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# P3009: a previously-failed migration is blocking deploy.
|
||||||
|
# The error message contains the migration name in backticks:
|
||||||
|
# The `20260402000000_fix_severity_typo` migration started at ... failed
|
||||||
|
# Strip ANSI escape codes first (Prisma may colorize output even without TTY),
|
||||||
|
# then use a simple backtick-content regex rather than a rigid format match.
|
||||||
|
CLEAN_OUTPUT=$(printf '%s\n' "$DEPLOY_OUTPUT" | sed 's/\x1b\[[0-9;]*[mGKHFJr]//g')
|
||||||
|
if printf '%s\n' "$CLEAN_OUTPUT" | grep -q "P3009"; then
|
||||||
|
FAILED=$(printf '%s\n' "$CLEAN_OUTPUT" | grep -o '`[^`]*`' | grep '[0-9]' | tr -d '`' | head -1)
|
||||||
|
if [ -n "$FAILED" ]; then
|
||||||
|
echo "[migrate] Resolving failed migration as rolled-back: $FAILED"
|
||||||
|
RESOLVE_OUTPUT=""
|
||||||
|
RESOLVE_EXIT=0
|
||||||
|
RESOLVE_OUTPUT=$(bunx prisma migrate resolve --rolled-back "$FAILED" 2>&1) || RESOLVE_EXIT=$?
|
||||||
|
echo "$RESOLVE_OUTPUT"
|
||||||
|
if [ $RESOLVE_EXIT -ne 0 ]; then
|
||||||
|
echo "[migrate] Failed to resolve migration $FAILED (exit $RESOLVE_EXIT). Aborting."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "[migrate] Migration failed with a non-recoverable error."
|
||||||
|
exit 1
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "[migrate] Exceeded max retries ($MAX_RETRIES). Giving up."
|
||||||
|
exit 1
|
||||||
+19
@@ -0,0 +1,19 @@
|
|||||||
|
-- AlterTable: GeneratedQuotes — add columns missing from prior db push (idempotent)
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'GeneratedQuotes' AND column_name = 'quoteRegenParams') THEN
|
||||||
|
ALTER TABLE "GeneratedQuotes" ADD COLUMN "quoteRegenParams" JSONB NOT NULL DEFAULT '{}';
|
||||||
|
END IF;
|
||||||
|
IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'GeneratedQuotes' AND column_name = 'quoteRegenHash') THEN
|
||||||
|
ALTER TABLE "GeneratedQuotes" ADD COLUMN "quoteRegenHash" TEXT NOT NULL DEFAULT '';
|
||||||
|
END IF;
|
||||||
|
IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'GeneratedQuotes' AND column_name = 'downloads') THEN
|
||||||
|
ALTER TABLE "GeneratedQuotes" ADD COLUMN "downloads" JSONB NOT NULL DEFAULT '[]';
|
||||||
|
END IF;
|
||||||
|
END $$;
|
||||||
|
|
||||||
|
-- AlterTable: GeneratedQuotes — set default on existing quoteRegenData column
|
||||||
|
ALTER TABLE "GeneratedQuotes" ALTER COLUMN "quoteRegenData" SET DEFAULT '{}';
|
||||||
|
|
||||||
|
-- CreateIndex (idempotent)
|
||||||
|
CREATE UNIQUE INDEX IF NOT EXISTS "GeneratedQuotes_quoteRegenHash_key" ON "GeneratedQuotes"("quoteRegenHash");
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
-- CreateTable (idempotent)
|
||||||
|
CREATE TABLE IF NOT EXISTS "CwMember" (
|
||||||
|
"id" TEXT NOT NULL,
|
||||||
|
"cwMemberId" INTEGER NOT NULL,
|
||||||
|
"identifier" TEXT NOT NULL,
|
||||||
|
"firstName" TEXT NOT NULL,
|
||||||
|
"lastName" TEXT NOT NULL,
|
||||||
|
"officeEmail" TEXT,
|
||||||
|
"inactiveFlag" BOOLEAN NOT NULL DEFAULT false,
|
||||||
|
"apiKey" TEXT,
|
||||||
|
"cwLastUpdated" TIMESTAMP(3),
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "CwMember_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateIndex (idempotent)
|
||||||
|
CREATE UNIQUE INDEX IF NOT EXISTS "CwMember_cwMemberId_key" ON "CwMember"("cwMemberId");
|
||||||
|
|
||||||
|
-- CreateIndex (idempotent)
|
||||||
|
CREATE UNIQUE INDEX IF NOT EXISTS "CwMember_identifier_key" ON "CwMember"("identifier");
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
-- AlterTable (idempotent)
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'Opportunity' AND column_name = 'cwDateEntered') THEN
|
||||||
|
ALTER TABLE "Opportunity" ADD COLUMN "cwDateEntered" TIMESTAMP(3);
|
||||||
|
END IF;
|
||||||
|
END $$;
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
-- Rename the misspelled column serverityId -> severityId on ServiceTicket (idempotent)
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'ServiceTicket' AND column_name = 'serverityId') THEN
|
||||||
|
ALTER TABLE "ServiceTicket" RENAME COLUMN "serverityId" TO "severityId";
|
||||||
|
END IF;
|
||||||
|
END $$;
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
-- CreateEnum (idempotent)
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'SyncJobType') THEN
|
||||||
|
CREATE TYPE "SyncJobType" AS ENUM ('FULL_SYNC', 'INCREMENTAL_SYNC');
|
||||||
|
END IF;
|
||||||
|
END $$;
|
||||||
|
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'SyncJobStatus') THEN
|
||||||
|
CREATE TYPE "SyncJobStatus" AS ENUM ('QUEUED', 'RUNNING', 'COMPLETED', 'FAILED', 'TIMED_OUT');
|
||||||
|
END IF;
|
||||||
|
END $$;
|
||||||
|
|
||||||
|
-- CreateTable (idempotent)
|
||||||
|
CREATE TABLE IF NOT EXISTS "SyncJobRun" (
|
||||||
|
"id" TEXT NOT NULL,
|
||||||
|
"jobType" "SyncJobType" NOT NULL,
|
||||||
|
"status" "SyncJobStatus" NOT NULL DEFAULT 'QUEUED',
|
||||||
|
"triggeredBy" TEXT NOT NULL DEFAULT 'system',
|
||||||
|
"startedAt" TIMESTAMP(3),
|
||||||
|
"completedAt" TIMESTAMP(3),
|
||||||
|
"errorSummary" TEXT,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "SyncJobRun_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS "SyncStepLog" (
|
||||||
|
"id" TEXT NOT NULL,
|
||||||
|
"syncJobRunId" TEXT NOT NULL,
|
||||||
|
"tableName" TEXT NOT NULL,
|
||||||
|
"syncMode" TEXT NOT NULL,
|
||||||
|
"recordsProcessed" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"recordsInserted" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"recordsSkipped" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"recordsFailed" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"recordsDeleted" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"sampleErrors" JSONB NOT NULL DEFAULT '[]',
|
||||||
|
"durationMs" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
|
CONSTRAINT "SyncStepLog_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- AddForeignKey (idempotent)
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
IF NOT EXISTS (
|
||||||
|
SELECT 1 FROM information_schema.table_constraints
|
||||||
|
WHERE constraint_name = 'SyncStepLog_syncJobRunId_fkey'
|
||||||
|
) THEN
|
||||||
|
ALTER TABLE "SyncStepLog" ADD CONSTRAINT "SyncStepLog_syncJobRunId_fkey"
|
||||||
|
FOREIGN KEY ("syncJobRunId") REFERENCES "SyncJobRun"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
END IF;
|
||||||
|
END $$;
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
-- CreateTable (idempotent)
|
||||||
|
CREATE TABLE IF NOT EXISTS "OpportunityStage" (
|
||||||
|
"uid" TEXT NOT NULL,
|
||||||
|
"id" INTEGER NOT NULL,
|
||||||
|
"name" TEXT NOT NULL,
|
||||||
|
"seqNbr" INTEGER,
|
||||||
|
"funnelColor" TEXT,
|
||||||
|
"updatedById" TEXT,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "OpportunityStage_pkey" PRIMARY KEY ("uid")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateIndex (idempotent)
|
||||||
|
CREATE UNIQUE INDEX IF NOT EXISTS "OpportunityStage_id_key" ON "OpportunityStage"("id");
|
||||||
|
|
||||||
|
-- AlterTable: drop old columns if they exist, add stageId if it doesn't
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'Opportunity' AND column_name = 'stageName') THEN
|
||||||
|
ALTER TABLE "Opportunity" DROP COLUMN "stageName";
|
||||||
|
END IF;
|
||||||
|
IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'Opportunity' AND column_name = 'stageCwId') THEN
|
||||||
|
ALTER TABLE "Opportunity" DROP COLUMN "stageCwId";
|
||||||
|
END IF;
|
||||||
|
IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'Opportunity' AND column_name = 'stageId') THEN
|
||||||
|
ALTER TABLE "Opportunity" ADD COLUMN "stageId" INTEGER;
|
||||||
|
END IF;
|
||||||
|
END $$;
|
||||||
|
|
||||||
|
-- Nullify any stageId values that reference non-existent OpportunityStage rows
|
||||||
|
UPDATE "Opportunity" SET "stageId" = NULL
|
||||||
|
WHERE "stageId" IS NOT NULL
|
||||||
|
AND "stageId" NOT IN (SELECT "id" FROM "OpportunityStage");
|
||||||
|
|
||||||
|
-- AddForeignKey (skip if already exists)
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
IF NOT EXISTS (
|
||||||
|
SELECT 1 FROM information_schema.table_constraints
|
||||||
|
WHERE constraint_name = 'Opportunity_stageId_fkey'
|
||||||
|
) THEN
|
||||||
|
ALTER TABLE "Opportunity" ADD CONSTRAINT "Opportunity_stageId_fkey"
|
||||||
|
FOREIGN KEY ("stageId") REFERENCES "OpportunityStage"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
END IF;
|
||||||
|
END $$;
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Executable
+84
@@ -0,0 +1,84 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Local migration test harness.
|
||||||
|
# Builds the migration Docker image from the monorepo root, spins up a fresh
|
||||||
|
# throwaway Postgres container, runs the migration job against it, and tears
|
||||||
|
# everything down when done — pass or fail.
|
||||||
|
#
|
||||||
|
# Usage (from monorepo root):
|
||||||
|
# sh api/prisma/test-migration-local.sh
|
||||||
|
#
|
||||||
|
# Requirements: Docker
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
set -e
|
||||||
|
|
||||||
|
NETWORK=migrate-test-net
|
||||||
|
DB_CONTAINER=migrate-test-postgres
|
||||||
|
MIGRATE_IMAGE=optima-api-migrate-local-test
|
||||||
|
DB_USER=optima
|
||||||
|
DB_PASS=testpass
|
||||||
|
DB_NAME=optima
|
||||||
|
|
||||||
|
# ---- Cleanup function — always runs on exit ----
|
||||||
|
cleanup() {
|
||||||
|
echo "[test] Cleaning up..."
|
||||||
|
docker rm -f "$DB_CONTAINER" 2>/dev/null || true
|
||||||
|
docker network rm "$NETWORK" 2>/dev/null || true
|
||||||
|
docker rmi "$MIGRATE_IMAGE" 2>/dev/null || true
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
|
||||||
|
# ---- 1. Create an isolated Docker network ----
|
||||||
|
echo "[test] Creating Docker network: $NETWORK"
|
||||||
|
docker network create "$NETWORK"
|
||||||
|
|
||||||
|
# ---- 2. Start a fresh Postgres container ----
|
||||||
|
echo "[test] Starting fresh Postgres container: $DB_CONTAINER"
|
||||||
|
docker run -d \
|
||||||
|
--name "$DB_CONTAINER" \
|
||||||
|
--network "$NETWORK" \
|
||||||
|
-e POSTGRES_USER="$DB_USER" \
|
||||||
|
-e POSTGRES_PASSWORD="$DB_PASS" \
|
||||||
|
-e POSTGRES_DB="$DB_NAME" \
|
||||||
|
postgres:17
|
||||||
|
|
||||||
|
# Wait for Postgres to be ready (up to 30s)
|
||||||
|
echo "[test] Waiting for Postgres to be ready..."
|
||||||
|
READY=0
|
||||||
|
for i in $(seq 1 30); do
|
||||||
|
if docker exec "$DB_CONTAINER" pg_isready -U "$DB_USER" -d "$DB_NAME" > /dev/null 2>&1; then
|
||||||
|
READY=1
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ $READY -eq 0 ]; then
|
||||||
|
echo "[test] Postgres did not become ready in 30s. Aborting."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "[test] Postgres is ready."
|
||||||
|
|
||||||
|
# ---- 3. Build the migration image from the monorepo root ----
|
||||||
|
echo "[test] Building migration image: $MIGRATE_IMAGE"
|
||||||
|
# Determine the monorepo root (two levels up from this script's directory)
|
||||||
|
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
|
||||||
|
REPO_ROOT=$(cd "$SCRIPT_DIR/../.." && pwd)
|
||||||
|
|
||||||
|
docker build \
|
||||||
|
-f "$REPO_ROOT/api/Dockerfile" \
|
||||||
|
--target migration \
|
||||||
|
-t "$MIGRATE_IMAGE" \
|
||||||
|
"$REPO_ROOT"
|
||||||
|
|
||||||
|
# ---- 4. Run the migration container against the test Postgres ----
|
||||||
|
echo "[test] Running migration container..."
|
||||||
|
DATABASE_URL="postgresql://${DB_USER}:${DB_PASS}@${DB_CONTAINER}:5432/${DB_NAME}"
|
||||||
|
|
||||||
|
docker run --rm \
|
||||||
|
--network "$NETWORK" \
|
||||||
|
-e DATABASE_URL="$DATABASE_URL" \
|
||||||
|
"$MIGRATE_IMAGE"
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "[test] SUCCESS — all migrations applied cleanly to a fresh database."
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { createRoute } from "../../modules/api-utils/createRoute";
|
||||||
|
import { redis } from "../../constants";
|
||||||
|
|
||||||
|
/* /v1/auth/callback/:callbackKey */
|
||||||
|
export default createRoute("get", ["/callback/:callbackKey"], async (c) => {
|
||||||
|
const callbackKey = c.req.param("callbackKey");
|
||||||
|
if (!callbackKey) {
|
||||||
|
c.status(400);
|
||||||
|
return c.json({ status: 400, message: "Missing callbackKey", successful: false });
|
||||||
|
}
|
||||||
|
|
||||||
|
const redisKey = `auth:cb:${callbackKey}`;
|
||||||
|
const raw = await redis.get(redisKey);
|
||||||
|
if (!raw) {
|
||||||
|
c.status(202);
|
||||||
|
return c.json({ status: 202, message: "Pending", successful: false });
|
||||||
|
}
|
||||||
|
|
||||||
|
// Delete immediately so tokens can't be replayed
|
||||||
|
await redis.del(redisKey);
|
||||||
|
|
||||||
|
const tokens = JSON.parse(raw) as { accessToken: string; refreshToken: string };
|
||||||
|
return c.json({ status: 200, message: "Auth callback resolved", data: tokens, successful: true });
|
||||||
|
});
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
export { default as redirect } from "./redirect";
|
export { default as redirect } from "./redirect";
|
||||||
export { default as refresh } from "./refresh";
|
export { default as refresh } from "./refresh";
|
||||||
export { default as uri } from "./uri";
|
export { default as uri } from "./uri";
|
||||||
|
export { default as callback } from "./callback";
|
||||||
@@ -1,9 +1,11 @@
|
|||||||
import { Hono } from "hono/tiny";
|
import { Hono } from "hono/tiny";
|
||||||
import { createRoute } from "../../modules/api-utils/createRoute";
|
import { createRoute } from "../../modules/api-utils/createRoute";
|
||||||
import * as msal from "@azure/msal-node";
|
import * as msal from "@azure/msal-node";
|
||||||
import { API_BASE_URL, io, msalClient } from "../../constants";
|
import { API_BASE_URL, msalClient, redis } from "../../constants";
|
||||||
import { users } from "../../managers/users";
|
import { users } from "../../managers/users";
|
||||||
|
|
||||||
|
const AUTH_CALLBACK_TTL_SECONDS = 300; // 5 minutes
|
||||||
|
|
||||||
/* /v1/auth/redirect */
|
/* /v1/auth/redirect */
|
||||||
export default createRoute("get", ["/redirect"], async (c) => {
|
export default createRoute("get", ["/redirect"], async (c) => {
|
||||||
c.status(200);
|
c.status(200);
|
||||||
@@ -18,10 +20,13 @@ export default createRoute("get", ["/redirect"], async (c) => {
|
|||||||
const callbackKey = c.req.query().state as string;
|
const callbackKey = c.req.query().state as string;
|
||||||
const tokens = await users.authenticate(authResult);
|
const tokens = await users.authenticate(authResult);
|
||||||
|
|
||||||
io.of(`/auth_callback`).emit(`auth:login:callback:${callbackKey}`, {
|
// Store tokens in Redis so the UI can poll for them
|
||||||
accessToken: tokens.accessToken,
|
await redis.set(
|
||||||
refreshToken: tokens.refreshToken,
|
`auth:cb:${callbackKey}`,
|
||||||
});
|
JSON.stringify({ accessToken: tokens.accessToken, refreshToken: tokens.refreshToken }),
|
||||||
|
"EX",
|
||||||
|
AUTH_CALLBACK_TTL_SECONDS,
|
||||||
|
);
|
||||||
|
|
||||||
// Close the window because duh
|
// Close the window because duh
|
||||||
return c.html(
|
return c.html(
|
||||||
@@ -29,11 +34,4 @@ export default createRoute("get", ["/redirect"], async (c) => {
|
|||||||
window.close();
|
window.close();
|
||||||
</script>`,
|
</script>`,
|
||||||
);
|
);
|
||||||
|
|
||||||
return c.json({
|
|
||||||
status: 200,
|
|
||||||
message: "Auth Redirect Endpoint",
|
|
||||||
data: authResult,
|
|
||||||
successful: true,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
@@ -4,7 +4,6 @@ import { companies } from "../../../managers/companies";
|
|||||||
import { apiResponse } from "../../../modules/api-utils/apiResponse";
|
import { apiResponse } from "../../../modules/api-utils/apiResponse";
|
||||||
import { ContentfulStatusCode } from "hono/utils/http-status";
|
import { ContentfulStatusCode } from "hono/utils/http-status";
|
||||||
import { authMiddleware } from "../../middleware/authorization";
|
import { authMiddleware } from "../../middleware/authorization";
|
||||||
import GenericError from "../../../Errors/GenericError";
|
|
||||||
import { processObjectValuePerms } from "../../../modules/permission-utils/processObjectPermissions";
|
import { processObjectValuePerms } from "../../../modules/permission-utils/processObjectPermissions";
|
||||||
|
|
||||||
/* /v1/company/companies/[id] */
|
/* /v1/company/companies/[id] */
|
||||||
@@ -14,34 +13,17 @@ export default createRoute(
|
|||||||
|
|
||||||
async (c) => {
|
async (c) => {
|
||||||
const company = await companies.fetch(c.req.param("identifier"));
|
const company = await companies.fetch(c.req.param("identifier"));
|
||||||
const includeAddress = c.req.query("includeAddress") === "true";
|
const user = c.get("user");
|
||||||
|
const includeAddress =
|
||||||
|
c.req.query("includeAddress") === "true" &&
|
||||||
|
!!user &&
|
||||||
|
(await user.hasPermission("company.fetch.address"));
|
||||||
const includePrimaryContact =
|
const includePrimaryContact =
|
||||||
c.req.query("includePrimaryContact") === "true";
|
c.req.query("includePrimaryContact") === "true";
|
||||||
const includeAllContacts = c.req.query("includeAllContacts") === "true";
|
const includeAllContacts =
|
||||||
|
c.req.query("includeAllContacts") === "true" &&
|
||||||
// Check for address-specific permission if includeAddress is requested
|
!!user &&
|
||||||
if (includeAddress) {
|
(await user.hasPermission("company.fetch.contacts"));
|
||||||
const user = c.get("user");
|
|
||||||
if (!user || !(await user.hasPermission("company.fetch.address"))) {
|
|
||||||
throw new GenericError({
|
|
||||||
name: "InsufficientPermission",
|
|
||||||
message: "You do not have permission to view company addresses.",
|
|
||||||
status: 403,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check for contacts permission if includeAllContacts is requested
|
|
||||||
if (includeAllContacts) {
|
|
||||||
const user = c.get("user");
|
|
||||||
if (!user || !(await user.hasPermission("company.fetch.contacts"))) {
|
|
||||||
throw new GenericError({
|
|
||||||
name: "InsufficientPermission",
|
|
||||||
message: "You do not have permission to view company contacts.",
|
|
||||||
status: 403,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const companyData = company.toJson({
|
const companyData = company.toJson({
|
||||||
includeAddress,
|
includeAddress,
|
||||||
@@ -54,6 +36,13 @@ export default createRoute(
|
|||||||
c.get("user"),
|
c.get("user"),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// cw_Data fields were already gated by the explicit permission checks above
|
||||||
|
// (company.fetch.contacts / company.fetch.address). Re-attach them so they
|
||||||
|
// are not silently dropped by field-level gating on obj.company.cw_Data.
|
||||||
|
if (companyData.cw_Data && Object.keys(companyData.cw_Data).length > 0) {
|
||||||
|
(gatedData as any).cw_Data = companyData.cw_Data;
|
||||||
|
}
|
||||||
|
|
||||||
const response = apiResponse.successful(
|
const response = apiResponse.successful(
|
||||||
"Company Fetched Successfully!",
|
"Company Fetched Successfully!",
|
||||||
gatedData,
|
gatedData,
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user