@codemation/host 0.0.7 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/package.json +10 -5
  2. package/prisma/migrations/20260315063514_init/migration.sql +16 -16
  3. package/prisma/migrations/20260316090000_workflow_debugger_overlay/migration.sql +9 -9
  4. package/prisma/migrations/20260317120000_trigger_state_store/migration.sql +3 -3
  5. package/prisma/migrations/20260317153000_trigger_setup_state/migration.sql +8 -8
  6. package/prisma/migrations/20260318110000_credentials_v2/migration.sql +49 -49
  7. package/prisma/migrations/20260319110000_credential_oauth2_material/migration.sql +28 -28
  8. package/prisma/migrations/20260319200000_codemation_auth_tables/migration.sql +56 -56
  9. package/prisma/migrations/20260320140000_user_invites_account_status/migration.sql +20 -20
  10. package/prisma/migrations/20260325120000_workflow_activation/migration.sql +8 -8
  11. package/prisma/migrations/migration_lock.toml +3 -3
  12. package/prisma/schema.prisma +179 -179
  13. package/prisma.config.ts +15 -2
  14. package/src/infrastructure/persistence/generated/prisma/client.d.ts +0 -1
  15. package/src/infrastructure/persistence/generated/prisma/default.d.ts +0 -1
  16. package/src/infrastructure/persistence/generated/prisma/edge.d.ts +0 -1
  17. package/src/infrastructure/persistence/generated/prisma/index.d.ts +0 -4766
  18. package/src/infrastructure/persistence/generated/prisma/package.json +0 -144
  19. package/src/infrastructure/persistence/generated/prisma/query_compiler_fast_bg.wasm +0 -0
  20. package/src/infrastructure/persistence/generated/prisma/runtime/client.d.ts +0 -3358
  21. package/src/infrastructure/persistence/generated/prisma/runtime/index-browser.d.ts +0 -90
  22. package/src/infrastructure/persistence/generated/prisma/schema.prisma +0 -35
  23. package/src/infrastructure/persistence/generated/prisma/wasm-edge-light-loader.mjs +0 -5
  24. package/src/infrastructure/persistence/generated/prisma/wasm-worker-loader.mjs +0 -5
@@ -1,90 +0,0 @@
1
- import { AnyNull } from '@prisma/client-runtime-utils';
2
- import { DbNull } from '@prisma/client-runtime-utils';
3
- import { Decimal } from '@prisma/client-runtime-utils';
4
- import { isAnyNull } from '@prisma/client-runtime-utils';
5
- import { isDbNull } from '@prisma/client-runtime-utils';
6
- import { isJsonNull } from '@prisma/client-runtime-utils';
7
- import { isObjectEnumValue } from '@prisma/client-runtime-utils';
8
- import { JsonNull } from '@prisma/client-runtime-utils';
9
- import { NullTypes } from '@prisma/client-runtime-utils';
10
-
11
- export { AnyNull }
12
-
13
- declare type Args<T, F extends Operation> = T extends {
14
- [K: symbol]: {
15
- types: {
16
- operations: {
17
- [K in F]: {
18
- args: any;
19
- };
20
- };
21
- };
22
- };
23
- } ? T[symbol]['types']['operations'][F]['args'] : any;
24
-
25
- export { DbNull }
26
-
27
- export { Decimal }
28
-
29
- declare type Exact<A, W> = (A extends unknown ? (W extends A ? {
30
- [K in keyof A]: Exact<A[K], W[K]>;
31
- } : W) : never) | (A extends Narrowable ? A : never);
32
-
33
- export declare function getRuntime(): GetRuntimeOutput;
34
-
35
- declare type GetRuntimeOutput = {
36
- id: RuntimeName;
37
- prettyName: string;
38
- isEdge: boolean;
39
- };
40
-
41
- export { isAnyNull }
42
-
43
- export { isDbNull }
44
-
45
- export { isJsonNull }
46
-
47
- export { isObjectEnumValue }
48
-
49
- export { JsonNull }
50
-
51
- /**
52
- * Generates more strict variant of an enum which, unlike regular enum,
53
- * throws on non-existing property access. This can be useful in following situations:
54
- * - we have an API, that accepts both `undefined` and `SomeEnumType` as an input
55
- * - enum values are generated dynamically from DMMF.
56
- *
57
- * In that case, if using normal enums and no compile-time typechecking, using non-existing property
58
- * will result in `undefined` value being used, which will be accepted. Using strict enum
59
- * in this case will help to have a runtime exception, telling you that you are probably doing something wrong.
60
- *
61
- * Note: if you need to check for existence of a value in the enum you can still use either
62
- * `in` operator or `hasOwnProperty` function.
63
- *
64
- * @param definition
65
- * @returns
66
- */
67
- export declare function makeStrictEnum<T extends Record<PropertyKey, string | number>>(definition: T): T;
68
-
69
- declare type Narrowable = string | number | bigint | boolean | [];
70
-
71
- export { NullTypes }
72
-
73
- declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
74
-
75
- declare namespace Public {
76
- export {
77
- validator
78
- }
79
- }
80
- export { Public }
81
-
82
- declare type RuntimeName = 'workerd' | 'deno' | 'netlify' | 'node' | 'bun' | 'edge-light' | '';
83
-
84
- declare function validator<V>(): <S>(select: Exact<S, V>) => S;
85
-
86
- declare function validator<C, M extends Exclude<keyof C, `$${string}`>, O extends keyof C[M] & Operation>(client: C, model: M, operation: O): <S>(select: Exact<S, Args<C[M], O>>) => S;
87
-
88
- declare function validator<C, M extends Exclude<keyof C, `$${string}`>, O extends keyof C[M] & Operation, P extends keyof Args<C[M], O>>(client: C, model: M, operation: O, prop: P): <S>(select: Exact<S, Args<C[M], O>[P]>) => S;
89
-
90
- export { }
@@ -1,35 +0,0 @@
1
- generator client {
2
- provider = "prisma-client-js"
3
- output = "../src/infrastructure/persistence/generated/prisma"
4
- }
5
-
6
- datasource db {
7
- provider = "postgresql"
8
- }
9
-
10
- model Run {
11
- runId String @id @map("run_id")
12
- workflowId String @map("workflow_id")
13
- startedAt String @map("started_at")
14
- status String
15
- parentJson String? @map("parent_json")
16
- executionOptionsJson String? @map("execution_options_json")
17
- updatedAt String @map("updated_at")
18
- stateJson String @map("state_json")
19
- }
20
-
21
- model WorkflowDebuggerOverlay {
22
- workflowId String @id @map("workflow_id")
23
- updatedAt String @map("updated_at")
24
- copiedFromRunId String? @map("copied_from_run_id")
25
- stateJson String @map("state_json")
26
- }
27
-
28
- model TriggerSetupState {
29
- workflowId String @map("workflow_id")
30
- nodeId String @map("node_id")
31
- updatedAt String @map("updated_at")
32
- stateJson String @map("state_json")
33
-
34
- @@id([workflowId, nodeId])
35
- }
@@ -1,5 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- export default import('./query_compiler_fast_bg.wasm?module')
@@ -1,5 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- export default import('./query_compiler_fast_bg.wasm')