bq2cst 1.0.1 → 1.0.2

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/bq2cst.d.ts CHANGED
@@ -208,8 +208,8 @@ export type Expr = BaseNode & {
208
208
  export type FromItemExpr = Expr & {
209
209
  children: {
210
210
  with_offset: NodeChild;
211
- pivot?: NodeChild;
212
- unpivot?: NodeChild;
211
+ pivot?: { Node: PivotOperator };
212
+ unpivot?: { Node: UnpivotOperator };
213
213
  match_recognize?: NodeChild;
214
214
  };
215
215
  };
@@ -446,8 +446,8 @@ export type AssertStatement = XXXStatement & {
446
446
  export type Asterisk = Expr & {
447
447
  node_type: "Asterisk";
448
448
  children: {
449
- except?: NodeChild;
450
- replace?: NodeChild;
449
+ except?: { Node: KeywordWithGroupedXXX & UnknownNode };
450
+ replace?: { Node: KeywordWithGroupedXXX & UnknownNode };
451
451
  order: undefined;
452
452
  null_order: undefined;
453
453
  };
@@ -938,14 +938,14 @@ export type GroupByExprs = BaseNode & {
938
938
  children: {
939
939
  by: NodeChild;
940
940
  how?: NodeVecChild;
941
- exprs?: { NodeVec: Expr[] & UnknownNode[] };
941
+ exprs?: { NodeVec: (Expr & UnknownNode)[] };
942
942
  };
943
943
  };
944
944
 
945
945
  export type GroupedExpr = FromItemExpr & {
946
946
  node_type: "GroupedExpr";
947
947
  children: {
948
- expr: NodeChild;
948
+ expr: { Node: Expr & UnknownNode };
949
949
  rparen: NodeChild;
950
950
  };
951
951
  };
@@ -954,7 +954,8 @@ export type GroupedExprs = BaseNode & {
954
954
  token: Token;
955
955
  node_type: "GroupedExprs";
956
956
  children: {
957
- exprs?: NodeVecChild;
957
+ // NOTE: contains GroupedExprs in UnpivotConfig. it's a little inconsistent...
958
+ exprs?: { NodeVec: (Expr & UnknownNode)[] };
958
959
  rparen: NodeChild;
959
960
  // only in UNPIVOT operator
960
961
  as?: NodeChild;
@@ -1120,7 +1121,7 @@ export type KeywordSequence = BaseNode & {
1120
1121
  export type KeywordWithExpr = BaseNode & {
1121
1122
  node_type: "KeywordWithExpr";
1122
1123
  children: {
1123
- expr: NodeChild;
1124
+ expr: { Node: Expr & UnknownNode };
1124
1125
  };
1125
1126
  };
1126
1127
 
@@ -1330,7 +1331,7 @@ export type PivotPipeOperator = PipeOperator & {
1330
1331
  node_type: "PivotPipeOperator";
1331
1332
  children: {
1332
1333
  exprs: undefined;
1333
- config: NodeChild;
1334
+ config: { Node: PivotConfig & UnknownNode };
1334
1335
  as?: NodeChild;
1335
1336
  alias?: NodeChild;
1336
1337
  };
@@ -1340,7 +1341,7 @@ export type PivotOperator = BaseNode & {
1340
1341
  token: Token;
1341
1342
  node_type: "PivotOperator";
1342
1343
  children: {
1343
- config: NodeChild;
1344
+ config: { Node: PivotConfig & UnknownNode };
1344
1345
  as?: NodeChild;
1345
1346
  alias?: NodeChild;
1346
1347
  };
@@ -1350,9 +1351,9 @@ export type PivotConfig = BaseNode & {
1350
1351
  token: Token;
1351
1352
  node_type: "PivotConfig";
1352
1353
  children: {
1353
- exprs: NodeVecChild;
1354
- for: NodeChild;
1355
- in: NodeChild;
1354
+ exprs: { NodeVec: (Expr & UnknownNode)[] };
1355
+ for: { Node: KeywordWithExpr };
1356
+ in: { Node: KeywordWithGroupedXXX };
1356
1357
  rparen: NodeChild;
1357
1358
  };
1358
1359
  };
@@ -1516,7 +1517,7 @@ export type TemplateExpr = IdentifierGeneral & {
1516
1517
  export type TemplateExprEnd = BaseNode & {
1517
1518
  token: Token;
1518
1519
  node_type: "TemplateExprEnd";
1519
- children: {}
1520
+ children: {};
1520
1521
  };
1521
1522
 
1522
1523
  export type TemplateExprContinue = BaseNode & {
@@ -1524,7 +1525,7 @@ export type TemplateExprContinue = BaseNode & {
1524
1525
  node_type: "TemplateExprContinue";
1525
1526
  children: {
1526
1527
  exprs: NodeVecChild;
1527
- }
1528
+ };
1528
1529
  };
1529
1530
 
1530
1531
  export type TemplateExprStart = FromItemExpr & {
@@ -1534,7 +1535,7 @@ export type TemplateExprStart = FromItemExpr & {
1534
1535
  exprs: NodeVecChild;
1535
1536
  continues: NodeVecChild;
1536
1537
  end: NodeChild;
1537
- }
1538
+ };
1538
1539
  };
1539
1540
 
1540
1541
  export type TransactionStatement = XXXStatement & {
@@ -1621,8 +1622,8 @@ export type UnpivotConfig = BaseNode & {
1621
1622
  node_type: "UnpivotConfig";
1622
1623
  children: {
1623
1624
  expr: NodeChild;
1624
- for: NodeChild;
1625
- in: NodeChild;
1625
+ for: { Node: KeywordWithExpr };
1626
+ in: { Node: KeywordWithGroupedXXX };
1626
1627
  rparen: NodeChild;
1627
1628
  };
1628
1629
  };
@@ -1631,7 +1632,7 @@ export type UnpivotPipeOperator = PipeOperator & {
1631
1632
  node_type: "UnpivotPipeOperator";
1632
1633
  children: {
1633
1634
  exprs: undefined;
1634
- config: NodeChild;
1635
+ config: { Node: UnpivotConfig & UnknownNode };
1635
1636
  as?: NodeChild;
1636
1637
  alias?: NodeChild;
1637
1638
  };
@@ -1642,7 +1643,7 @@ export type UnpivotOperator = BaseNode & {
1642
1643
  node_type: "UnpivotOperator";
1643
1644
  children: {
1644
1645
  include_or_exclude_nulls: NodeVecChild;
1645
- config: NodeChild;
1646
+ config: { Node: UnpivotConfig & UnknownNode };
1646
1647
  as?: NodeChild;
1647
1648
  alias?: NodeChild;
1648
1649
  };
@@ -1768,6 +1769,6 @@ export type XXXByExprs = BaseNode & {
1768
1769
  node_type: "XXXByExprs";
1769
1770
  children: {
1770
1771
  by: NodeChild;
1771
- exprs: { NodeVec: Expr[] & UnknownNode[] };
1772
+ exprs: { NodeVec: (Expr & UnknownNode)[] };
1772
1773
  };
1773
1774
  };
package/bq2cst_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "kitta65 <kitta65kitta@gmail.com>"
5
5
  ],
6
- "version": "1.0.1",
6
+ "version": "1.0.2",
7
7
  "license": "MIT",
8
8
  "files": [
9
9
  "bq2cst_bg.wasm",