@rudderhq/db 0.2.5-canary.8 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/migrations/0072_overjoyed_red_hulk.sql +12 -0
- package/dist/migrations/meta/0072_snapshot.json +14594 -0
- package/dist/migrations/meta/_journal.json +7 -0
- package/dist/schema/automations.d.ts +102 -0
- package/dist/schema/automations.d.ts.map +1 -1
- package/dist/schema/automations.js +9 -0
- package/dist/schema/automations.js.map +1 -1
- package/dist/schema/plugin_entities.d.ts +2 -2
- package/dist/schema/plugin_jobs.d.ts +2 -2
- package/dist/schema/plugin_state.d.ts +2 -2
- package/dist/schema/plugins.d.ts +2 -2
- package/package.json +15 -5
|
@@ -505,6 +505,13 @@
|
|
|
505
505
|
"when": 1778820186149,
|
|
506
506
|
"tag": "0071_regular_lorna_dane",
|
|
507
507
|
"breakpoints": true
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"idx": 72,
|
|
511
|
+
"version": "7",
|
|
512
|
+
"when": 1779207406019,
|
|
513
|
+
"tag": "0072_overjoyed_red_hulk",
|
|
514
|
+
"breakpoints": true
|
|
508
515
|
}
|
|
509
516
|
]
|
|
510
517
|
}
|
|
@@ -138,6 +138,40 @@ export declare const automations: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
138
138
|
identity: undefined;
|
|
139
139
|
generated: undefined;
|
|
140
140
|
}, {}, {}>;
|
|
141
|
+
outputMode: import("drizzle-orm/pg-core").PgColumn<{
|
|
142
|
+
name: "output_mode";
|
|
143
|
+
tableName: "automations";
|
|
144
|
+
dataType: "string";
|
|
145
|
+
columnType: "PgText";
|
|
146
|
+
data: string;
|
|
147
|
+
driverParam: string;
|
|
148
|
+
notNull: true;
|
|
149
|
+
hasDefault: true;
|
|
150
|
+
isPrimaryKey: false;
|
|
151
|
+
isAutoincrement: false;
|
|
152
|
+
hasRuntimeDefault: false;
|
|
153
|
+
enumValues: [string, ...string[]];
|
|
154
|
+
baseColumn: never;
|
|
155
|
+
identity: undefined;
|
|
156
|
+
generated: undefined;
|
|
157
|
+
}, {}, {}>;
|
|
158
|
+
chatConversationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
159
|
+
name: "chat_conversation_id";
|
|
160
|
+
tableName: "automations";
|
|
161
|
+
dataType: "string";
|
|
162
|
+
columnType: "PgUUID";
|
|
163
|
+
data: string;
|
|
164
|
+
driverParam: string;
|
|
165
|
+
notNull: false;
|
|
166
|
+
hasDefault: false;
|
|
167
|
+
isPrimaryKey: false;
|
|
168
|
+
isAutoincrement: false;
|
|
169
|
+
hasRuntimeDefault: false;
|
|
170
|
+
enumValues: undefined;
|
|
171
|
+
baseColumn: never;
|
|
172
|
+
identity: undefined;
|
|
173
|
+
generated: undefined;
|
|
174
|
+
}, {}, {}>;
|
|
141
175
|
priority: import("drizzle-orm/pg-core").PgColumn<{
|
|
142
176
|
name: "priority";
|
|
143
177
|
tableName: "automations";
|
|
@@ -902,6 +936,74 @@ export declare const automationRuns: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
902
936
|
identity: undefined;
|
|
903
937
|
generated: undefined;
|
|
904
938
|
}, {}, {}>;
|
|
939
|
+
linkedChatConversationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
940
|
+
name: "linked_chat_conversation_id";
|
|
941
|
+
tableName: "automation_runs";
|
|
942
|
+
dataType: "string";
|
|
943
|
+
columnType: "PgUUID";
|
|
944
|
+
data: string;
|
|
945
|
+
driverParam: string;
|
|
946
|
+
notNull: false;
|
|
947
|
+
hasDefault: false;
|
|
948
|
+
isPrimaryKey: false;
|
|
949
|
+
isAutoincrement: false;
|
|
950
|
+
hasRuntimeDefault: false;
|
|
951
|
+
enumValues: undefined;
|
|
952
|
+
baseColumn: never;
|
|
953
|
+
identity: undefined;
|
|
954
|
+
generated: undefined;
|
|
955
|
+
}, {}, {}>;
|
|
956
|
+
startedChatMessageId: import("drizzle-orm/pg-core").PgColumn<{
|
|
957
|
+
name: "started_chat_message_id";
|
|
958
|
+
tableName: "automation_runs";
|
|
959
|
+
dataType: "string";
|
|
960
|
+
columnType: "PgUUID";
|
|
961
|
+
data: string;
|
|
962
|
+
driverParam: string;
|
|
963
|
+
notNull: false;
|
|
964
|
+
hasDefault: false;
|
|
965
|
+
isPrimaryKey: false;
|
|
966
|
+
isAutoincrement: false;
|
|
967
|
+
hasRuntimeDefault: false;
|
|
968
|
+
enumValues: undefined;
|
|
969
|
+
baseColumn: never;
|
|
970
|
+
identity: undefined;
|
|
971
|
+
generated: undefined;
|
|
972
|
+
}, {}, {}>;
|
|
973
|
+
terminalChatMessageId: import("drizzle-orm/pg-core").PgColumn<{
|
|
974
|
+
name: "terminal_chat_message_id";
|
|
975
|
+
tableName: "automation_runs";
|
|
976
|
+
dataType: "string";
|
|
977
|
+
columnType: "PgUUID";
|
|
978
|
+
data: string;
|
|
979
|
+
driverParam: string;
|
|
980
|
+
notNull: false;
|
|
981
|
+
hasDefault: false;
|
|
982
|
+
isPrimaryKey: false;
|
|
983
|
+
isAutoincrement: false;
|
|
984
|
+
hasRuntimeDefault: false;
|
|
985
|
+
enumValues: undefined;
|
|
986
|
+
baseColumn: never;
|
|
987
|
+
identity: undefined;
|
|
988
|
+
generated: undefined;
|
|
989
|
+
}, {}, {}>;
|
|
990
|
+
lastChatMessageId: import("drizzle-orm/pg-core").PgColumn<{
|
|
991
|
+
name: "last_chat_message_id";
|
|
992
|
+
tableName: "automation_runs";
|
|
993
|
+
dataType: "string";
|
|
994
|
+
columnType: "PgUUID";
|
|
995
|
+
data: string;
|
|
996
|
+
driverParam: string;
|
|
997
|
+
notNull: false;
|
|
998
|
+
hasDefault: false;
|
|
999
|
+
isPrimaryKey: false;
|
|
1000
|
+
isAutoincrement: false;
|
|
1001
|
+
hasRuntimeDefault: false;
|
|
1002
|
+
enumValues: undefined;
|
|
1003
|
+
baseColumn: never;
|
|
1004
|
+
identity: undefined;
|
|
1005
|
+
generated: undefined;
|
|
1006
|
+
}, {}, {}>;
|
|
905
1007
|
coalescedIntoRunId: import("drizzle-orm/pg-core").PgColumn<{
|
|
906
1008
|
name: "coalesced_into_run_id";
|
|
907
1009
|
tableName: "automation_runs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../src/schema/automations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../src/schema/automations.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BvB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiC9B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8B1B,CAAC"}
|
|
@@ -5,6 +5,8 @@ import { organizationSecrets } from "./organization_secrets.js";
|
|
|
5
5
|
import { issues } from "./issues.js";
|
|
6
6
|
import { projects } from "./projects.js";
|
|
7
7
|
import { goals } from "./goals.js";
|
|
8
|
+
import { chatConversations } from "./chat_conversations.js";
|
|
9
|
+
import { chatMessages } from "./chat_messages.js";
|
|
8
10
|
export const automations = pgTable("automations", {
|
|
9
11
|
id: uuid("id").primaryKey().defaultRandom(),
|
|
10
12
|
orgId: uuid("org_id").notNull().references(() => organizations.id, { onDelete: "cascade" }),
|
|
@@ -14,6 +16,8 @@ export const automations = pgTable("automations", {
|
|
|
14
16
|
title: text("title").notNull(),
|
|
15
17
|
description: text("description"),
|
|
16
18
|
assigneeAgentId: uuid("assignee_agent_id").notNull().references(() => agents.id),
|
|
19
|
+
outputMode: text("output_mode").notNull().default("track_issue"),
|
|
20
|
+
chatConversationId: uuid("chat_conversation_id").references(() => chatConversations.id, { onDelete: "set null" }),
|
|
17
21
|
priority: text("priority").notNull().default("medium"),
|
|
18
22
|
status: text("status").notNull().default("active"),
|
|
19
23
|
concurrencyPolicy: text("concurrency_policy").notNull().default("coalesce_if_active"),
|
|
@@ -72,6 +76,10 @@ export const automationRuns = pgTable("automation_runs", {
|
|
|
72
76
|
idempotencyKey: text("idempotency_key"),
|
|
73
77
|
triggerPayload: jsonb("trigger_payload").$type(),
|
|
74
78
|
linkedIssueId: uuid("linked_issue_id").references(() => issues.id, { onDelete: "set null" }),
|
|
79
|
+
linkedChatConversationId: uuid("linked_chat_conversation_id").references(() => chatConversations.id, { onDelete: "set null" }),
|
|
80
|
+
startedChatMessageId: uuid("started_chat_message_id").references(() => chatMessages.id, { onDelete: "set null" }),
|
|
81
|
+
terminalChatMessageId: uuid("terminal_chat_message_id").references(() => chatMessages.id, { onDelete: "set null" }),
|
|
82
|
+
lastChatMessageId: uuid("last_chat_message_id").references(() => chatMessages.id, { onDelete: "set null" }),
|
|
75
83
|
coalescedIntoRunId: uuid("coalesced_into_run_id"),
|
|
76
84
|
failureReason: text("failure_reason"),
|
|
77
85
|
completedAt: timestamp("completed_at", { withTimezone: true }),
|
|
@@ -81,6 +89,7 @@ export const automationRuns = pgTable("automation_runs", {
|
|
|
81
89
|
companyAutomationIdx: index("automation_runs_company_automation_idx").on(table.orgId, table.automationId, table.createdAt),
|
|
82
90
|
triggerIdx: index("automation_runs_trigger_idx").on(table.triggerId, table.createdAt),
|
|
83
91
|
linkedIssueIdx: index("automation_runs_linked_issue_idx").on(table.linkedIssueId),
|
|
92
|
+
linkedChatConversationIdx: index("automation_runs_linked_chat_conversation_idx").on(table.linkedChatConversationId),
|
|
84
93
|
idempotencyIdx: index("automation_runs_trigger_idempotency_idx").on(table.triggerId, table.idempotencyKey),
|
|
85
94
|
}));
|
|
86
95
|
//# sourceMappingURL=automations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automations.js","sourceRoot":"","sources":["../../src/schema/automations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,EACJ,SAAS,EACT,WAAW,EACX,IAAI,GACL,MAA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IACjF,yBAAyB,EAAE,KAAK,CAAC,8CAA8C,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC;IACnH,cAAc,EAAE,KAAK,CAAC,yCAAyC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC;CAC3G,CAAC,CACH,CAAC"}
|
|
@@ -72,7 +72,7 @@ export declare const pluginEntities: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
72
72
|
tableName: "plugin_entities";
|
|
73
73
|
dataType: "string";
|
|
74
74
|
columnType: "PgText";
|
|
75
|
-
data: "issue" | "
|
|
75
|
+
data: "issue" | "instance" | "organization" | "project" | "project_workspace" | "agent" | "goal" | "run";
|
|
76
76
|
driverParam: string;
|
|
77
77
|
notNull: true;
|
|
78
78
|
hasDefault: false;
|
|
@@ -84,7 +84,7 @@ export declare const pluginEntities: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
84
84
|
identity: undefined;
|
|
85
85
|
generated: undefined;
|
|
86
86
|
}, {}, {
|
|
87
|
-
$type: "issue" | "
|
|
87
|
+
$type: "issue" | "instance" | "organization" | "project" | "project_workspace" | "agent" | "goal" | "run";
|
|
88
88
|
}>;
|
|
89
89
|
scopeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
90
90
|
name: "scope_id";
|
|
@@ -268,7 +268,7 @@ export declare const pluginJobRuns: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
268
268
|
tableName: "plugin_job_runs";
|
|
269
269
|
dataType: "string";
|
|
270
270
|
columnType: "PgText";
|
|
271
|
-
data: "pending" | "queued" | "running" | "
|
|
271
|
+
data: "pending" | "queued" | "running" | "failed" | "succeeded" | "cancelled";
|
|
272
272
|
driverParam: string;
|
|
273
273
|
notNull: true;
|
|
274
274
|
hasDefault: true;
|
|
@@ -280,7 +280,7 @@ export declare const pluginJobRuns: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
280
280
|
identity: undefined;
|
|
281
281
|
generated: undefined;
|
|
282
282
|
}, {}, {
|
|
283
|
-
$type: "pending" | "queued" | "running" | "
|
|
283
|
+
$type: "pending" | "queued" | "running" | "failed" | "succeeded" | "cancelled";
|
|
284
284
|
}>;
|
|
285
285
|
durationMs: import("drizzle-orm/pg-core").PgColumn<{
|
|
286
286
|
name: "duration_ms";
|
|
@@ -64,7 +64,7 @@ export declare const pluginState: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
64
64
|
tableName: "plugin_state";
|
|
65
65
|
dataType: "string";
|
|
66
66
|
columnType: "PgText";
|
|
67
|
-
data: "issue" | "
|
|
67
|
+
data: "issue" | "instance" | "organization" | "project" | "project_workspace" | "agent" | "goal" | "run";
|
|
68
68
|
driverParam: string;
|
|
69
69
|
notNull: true;
|
|
70
70
|
hasDefault: false;
|
|
@@ -76,7 +76,7 @@ export declare const pluginState: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
76
76
|
identity: undefined;
|
|
77
77
|
generated: undefined;
|
|
78
78
|
}, {}, {
|
|
79
|
-
$type: "issue" | "
|
|
79
|
+
$type: "issue" | "instance" | "organization" | "project" | "project_workspace" | "agent" | "goal" | "run";
|
|
80
80
|
}>;
|
|
81
81
|
scopeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
82
82
|
name: "scope_id";
|
package/dist/schema/plugins.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export declare const plugins: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
103
103
|
tableName: "plugins";
|
|
104
104
|
dataType: "json";
|
|
105
105
|
columnType: "PgJsonb";
|
|
106
|
-
data: ("
|
|
106
|
+
data: ("connector" | "workspace" | "automation" | "ui")[];
|
|
107
107
|
driverParam: unknown;
|
|
108
108
|
notNull: true;
|
|
109
109
|
hasDefault: true;
|
|
@@ -115,7 +115,7 @@ export declare const plugins: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
115
115
|
identity: undefined;
|
|
116
116
|
generated: undefined;
|
|
117
117
|
}, {}, {
|
|
118
|
-
$type: ("
|
|
118
|
+
$type: ("connector" | "workspace" | "automation" | "ui")[];
|
|
119
119
|
}>;
|
|
120
120
|
manifestJson: import("drizzle-orm/pg-core").PgColumn<{
|
|
121
121
|
name: "manifest_json";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rudderhq/db",
|
|
3
|
-
"version": "0.2.5
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"homepage": "https://github.com/Undertone0809/rudder",
|
|
6
6
|
"bugs": {
|
|
@@ -13,8 +13,16 @@
|
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"exports": {
|
|
16
|
-
".":
|
|
17
|
-
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js",
|
|
19
|
+
"default": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./*": {
|
|
22
|
+
"types": "./dist/*.d.ts",
|
|
23
|
+
"import": "./dist/*.js",
|
|
24
|
+
"default": "./dist/*.js"
|
|
25
|
+
}
|
|
18
26
|
},
|
|
19
27
|
"publishConfig": {
|
|
20
28
|
"access": "public",
|
|
@@ -43,7 +51,7 @@
|
|
|
43
51
|
"seed": "tsx src/seed.ts"
|
|
44
52
|
},
|
|
45
53
|
"dependencies": {
|
|
46
|
-
"@rudderhq/shared": "0.2.5
|
|
54
|
+
"@rudderhq/shared": "0.2.5",
|
|
47
55
|
"drizzle-orm": "^0.38.4",
|
|
48
56
|
"embedded-postgres": "18.1.0-beta.16",
|
|
49
57
|
"postgres": "^3.4.8"
|
|
@@ -54,5 +62,7 @@
|
|
|
54
62
|
"tsx": "^4.21.0",
|
|
55
63
|
"typescript": "^5.9.3",
|
|
56
64
|
"vitest": "^3.2.4"
|
|
57
|
-
}
|
|
65
|
+
},
|
|
66
|
+
"main": "./dist/index.js",
|
|
67
|
+
"types": "./dist/index.d.ts"
|
|
58
68
|
}
|