@0xobelisk/ecs 1.2.0-pre.62 → 1.2.0-pre.64

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/index.js CHANGED
@@ -937,7 +937,7 @@ var ECSSubscription = class {
937
937
  } catch (error) {
938
938
  }
939
939
  }
940
- return ["createdAt", "updatedAt"];
940
+ return ["createdAtTimestampMs", "updatedAtTimestampMs", "isDeleted"];
941
941
  }
942
942
  /**
943
943
  * Get fields to use for queries (priority: user specified > dubhe config auto-parsed > default fields)
@@ -1052,7 +1052,7 @@ var ECSSubscription = class {
1052
1052
  componentType,
1053
1053
  {
1054
1054
  initialEvent: false,
1055
- fields: ["updatedAt"],
1055
+ fields: ["updatedAtTimestampMs"],
1056
1056
  // Removal detection only needs basic fields
1057
1057
  onData: (data) => {
1058
1058
  try {
@@ -1338,7 +1338,7 @@ var ECSSubscription = class {
1338
1338
  async initializeLastKnownEntities(componentType, lastKnownEntities) {
1339
1339
  try {
1340
1340
  const connection = await this.graphqlClient.getAllTables(componentType, {
1341
- fields: ["updatedAt"]
1341
+ fields: ["updatedAtTimestampMs"]
1342
1342
  });
1343
1343
  connection.edges.forEach((edge) => {
1344
1344
  const node = edge.node;
@@ -1470,7 +1470,7 @@ var QueryWatcherImpl = class {
1470
1470
  if (this.componentTypes.length === 1) {
1471
1471
  const connection = await this.graphqlClient.getAllTables(
1472
1472
  this.componentTypes[0],
1473
- { fields: ["updatedAt"] }
1473
+ { fields: ["updatedAtTimestampMs"] }
1474
1474
  );
1475
1475
  this.currentResults = connection.edges.map((edge) => {
1476
1476
  const node = edge.node;
@@ -1481,7 +1481,7 @@ var QueryWatcherImpl = class {
1481
1481
  key: type,
1482
1482
  tableName: type,
1483
1483
  params: {
1484
- fields: ["updatedAt"],
1484
+ fields: ["updatedAtTimestampMs"],
1485
1485
  filter: {}
1486
1486
  }
1487
1487
  }));
@@ -1591,15 +1591,22 @@ var ComponentDiscoverer = class {
1591
1591
  }
1592
1592
  fields.push(
1593
1593
  {
1594
- name: "createdAt",
1595
- type: "String",
1594
+ name: "createdAtTimestampMs",
1595
+ type: "BigInt",
1596
1596
  nullable: false,
1597
1597
  isPrimaryKey: false,
1598
1598
  isEnum: false
1599
1599
  },
1600
1600
  {
1601
- name: "updatedAt",
1602
- type: "String",
1601
+ name: "updatedAtTimestampMs",
1602
+ type: "BigInt",
1603
+ nullable: false,
1604
+ isPrimaryKey: false,
1605
+ isEnum: false
1606
+ },
1607
+ {
1608
+ name: "isDeleted",
1609
+ type: "Boolean",
1603
1610
  nullable: false,
1604
1611
  isPrimaryKey: false,
1605
1612
  isEnum: false
@@ -1743,15 +1750,22 @@ var ResourceDiscoverer = class {
1743
1750
  }
1744
1751
  fields.push(
1745
1752
  {
1746
- name: "createdAt",
1747
- type: "String",
1753
+ name: "createdAtTimestampMs",
1754
+ type: "BigInt",
1748
1755
  nullable: false,
1749
1756
  isPrimaryKey: false,
1750
1757
  isEnum: false
1751
1758
  },
1752
1759
  {
1753
- name: "updatedAt",
1754
- type: "String",
1760
+ name: "updatedAtTimestampMs",
1761
+ type: "BigInt",
1762
+ nullable: false,
1763
+ isPrimaryKey: false,
1764
+ isEnum: false
1765
+ },
1766
+ {
1767
+ name: "isDeleted",
1768
+ type: "Boolean",
1755
1769
  nullable: false,
1756
1770
  isPrimaryKey: false,
1757
1771
  isEnum: false