@narrative.io/data-collaboration-sdk-ts 0.0.151 → 0.0.153
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/build/nql/AstParser.d.ts
CHANGED
|
@@ -194,7 +194,7 @@ export interface Concat {
|
|
|
194
194
|
as?: string;
|
|
195
195
|
operands: Expression[];
|
|
196
196
|
}
|
|
197
|
-
export type Node = Select | Expression | Deduplication | Table | BooleanExpression | ArithmeticExpression | StringExpression | Join | AttributeRef | DatasetColumnRef | RawRef | Lit | FunctionCall | Add | Divide | Multiply | Subtract | UnaryMinus | And | Or | Not | Between | Equals | NotEquals | Lt | Lte | Gt | Gte | In | IsNull | Like | Concat;
|
|
197
|
+
export type Node = Select | Expression | Deduplication | Table | BooleanExpression | ArithmeticExpression | StringExpression | Join | AttributeRef | DatasetColumnRef | RawRef | Lit | FunctionCall | Add | Divide | Multiply | Subtract | UnaryMinus | And | Or | Not | Between | Equals | NotEquals | Lt | Lte | Gt | Gte | In | IsNull | Like | Concat | Raw;
|
|
198
198
|
export declare function parseStatement(n: ast.NqlAst): Statement | Raw;
|
|
199
199
|
export declare function parseCreateMaterializedView(n: ast.NqlCreateMaterializedView): CreateMaterializedView;
|
|
200
200
|
export declare function parseExplain(n: ast.NqlExplain): Explain | Raw;
|
package/build/nql/AstTraverse.js
CHANGED
|
@@ -17,7 +17,7 @@ function findTraversalTargets(node) {
|
|
|
17
17
|
case "like":
|
|
18
18
|
return [node.value];
|
|
19
19
|
case "not":
|
|
20
|
-
return
|
|
20
|
+
return [node.operand];
|
|
21
21
|
case "between":
|
|
22
22
|
return [node.operand, node.lower, node.upper];
|
|
23
23
|
case "=":
|
|
@@ -32,20 +32,19 @@ function findTraversalTargets(node) {
|
|
|
32
32
|
if (Array.isArray(node.values)) {
|
|
33
33
|
inTargets.push(...node.values);
|
|
34
34
|
}
|
|
35
|
+
else {
|
|
36
|
+
inTargets.push(node.values);
|
|
37
|
+
}
|
|
35
38
|
return inTargets;
|
|
36
39
|
}
|
|
37
40
|
case "deduplication":
|
|
38
41
|
return node.expressions;
|
|
39
42
|
case "select": {
|
|
40
43
|
const selectTargets = [...node.columns];
|
|
41
|
-
if (node.where !== null &&
|
|
42
|
-
node.where !== undefined &&
|
|
43
|
-
node.where.type !== "nql") {
|
|
44
|
+
if (node.where !== null && node.where !== undefined) {
|
|
44
45
|
selectTargets.push(node.where);
|
|
45
46
|
}
|
|
46
|
-
if (node.deduplication !== null &&
|
|
47
|
-
node.deduplication !== undefined &&
|
|
48
|
-
node.deduplication.type !== "nql") {
|
|
47
|
+
if (node.deduplication !== null && node.deduplication !== undefined) {
|
|
49
48
|
selectTargets.push(node.deduplication);
|
|
50
49
|
}
|
|
51
50
|
if (Array.isArray(node.from)) {
|
package/build/rosetta/types.d.ts
CHANGED
|
@@ -822,29 +822,29 @@ declare const RosettaRequestMessageSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
822
822
|
data: z.ZodObject<{
|
|
823
823
|
input: z.ZodString;
|
|
824
824
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
825
|
-
|
|
825
|
+
assistantId: z.ZodOptional<z.ZodString>;
|
|
826
826
|
}, "strip", z.ZodTypeAny, {
|
|
827
827
|
input: string;
|
|
828
828
|
apiKey?: string | undefined;
|
|
829
|
-
|
|
829
|
+
assistantId?: string | undefined;
|
|
830
830
|
}, {
|
|
831
831
|
input: string;
|
|
832
832
|
apiKey?: string | undefined;
|
|
833
|
-
|
|
833
|
+
assistantId?: string | undefined;
|
|
834
834
|
}>;
|
|
835
835
|
}, "strip", z.ZodTypeAny, {
|
|
836
836
|
type: "request";
|
|
837
837
|
data: {
|
|
838
838
|
input: string;
|
|
839
839
|
apiKey?: string | undefined;
|
|
840
|
-
|
|
840
|
+
assistantId?: string | undefined;
|
|
841
841
|
};
|
|
842
842
|
}, {
|
|
843
843
|
type: "request";
|
|
844
844
|
data: {
|
|
845
845
|
input: string;
|
|
846
846
|
apiKey?: string | undefined;
|
|
847
|
-
|
|
847
|
+
assistantId?: string | undefined;
|
|
848
848
|
};
|
|
849
849
|
}>, z.ZodObject<{
|
|
850
850
|
type: z.ZodLiteral<"ping">;
|
|
@@ -871,7 +871,7 @@ declare const isRosettaRequestMessage: (input: unknown) => input is {
|
|
|
871
871
|
data: {
|
|
872
872
|
input: string;
|
|
873
873
|
apiKey?: string | undefined;
|
|
874
|
-
|
|
874
|
+
assistantId?: string | undefined;
|
|
875
875
|
};
|
|
876
876
|
} | {
|
|
877
877
|
type: "ping";
|
package/build/rosetta/types.js
CHANGED
|
@@ -191,10 +191,10 @@ const RequestMessageSchema = z.object({
|
|
|
191
191
|
data: z.object({
|
|
192
192
|
input: z.string(),
|
|
193
193
|
apiKey: z.string().optional(),
|
|
194
|
-
|
|
194
|
+
assistantId: z
|
|
195
195
|
.string()
|
|
196
196
|
.optional()
|
|
197
|
-
.describe("The team member who should handle the request"),
|
|
197
|
+
.describe("The id of the team member/assistant who should handle the request"),
|
|
198
198
|
}),
|
|
199
199
|
});
|
|
200
200
|
const PingEventSchema = z.object({
|