@dvina/sdk 4.0.142 → 4.0.154
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/{_generated_documents-R4Q64XRB.cjs → _generated_documents-PLPR22NI.cjs} +540 -536
- package/dist/{_generated_documents-R4Q64XRB.cjs.map → _generated_documents-PLPR22NI.cjs.map} +1 -1
- package/dist/_generated_documents-U6OTURUL.js +4 -0
- package/dist/{_generated_documents-3N6BQ5SR.js.map → _generated_documents-U6OTURUL.js.map} +1 -1
- package/dist/adapters/angular/index.cjs +4 -4
- package/dist/adapters/angular/index.d.cts +1 -1
- package/dist/adapters/angular/index.d.ts +1 -1
- package/dist/adapters/angular/index.js +2 -2
- package/dist/{chunk-4BKKU67P.js → chunk-DQJSHM4W.js} +10 -8
- package/dist/chunk-DQJSHM4W.js.map +1 -0
- package/dist/{chunk-UDXG6COO.cjs → chunk-J7JMEYUZ.cjs} +774 -526
- package/dist/chunk-J7JMEYUZ.cjs.map +1 -0
- package/dist/{chunk-D7AKD4KG.cjs → chunk-OCCUM5WH.cjs} +10 -7
- package/dist/chunk-OCCUM5WH.cjs.map +1 -0
- package/dist/{chunk-AYE3QJ2O.js → chunk-PF553ECC.js} +278 -31
- package/dist/chunk-PF553ECC.js.map +1 -0
- package/dist/{client-BK4gb0rI.d.ts → client-CD_6CdSh.d.ts} +24 -1
- package/dist/{client-Bqg_UhDO.d.cts → client-DmEn_b5w.d.cts} +24 -1
- package/dist/index.cjs +394 -390
- package/dist/index.d.cts +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/_generated_documents-3N6BQ5SR.js +0 -4
- package/dist/chunk-4BKKU67P.js.map +0 -1
- package/dist/chunk-AYE3QJ2O.js.map +0 -1
- package/dist/chunk-D7AKD4KG.cjs.map +0 -1
- package/dist/chunk-UDXG6COO.cjs.map +0 -1
|
@@ -4,7 +4,7 @@ var chunk342BFYZZ_cjs = require('./chunk-342BFYZZ.cjs');
|
|
|
4
4
|
var chunkUELAE75E_cjs = require('./chunk-UELAE75E.cjs');
|
|
5
5
|
var chunkBL3GFOZR_cjs = require('./chunk-BL3GFOZR.cjs');
|
|
6
6
|
var chunkKV5SP7RP_cjs = require('./chunk-KV5SP7RP.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkOCCUM5WH_cjs = require('./chunk-OCCUM5WH.cjs');
|
|
8
8
|
var chunkDZUJEN5N_cjs = require('./chunk-DZUJEN5N.cjs');
|
|
9
9
|
|
|
10
10
|
// ../../node_modules/.pnpm/dexie@4.3.0/node_modules/dexie/dist/dexie.js
|
|
@@ -7561,7 +7561,7 @@ function createWsTransport(options) {
|
|
|
7561
7561
|
}
|
|
7562
7562
|
|
|
7563
7563
|
// src/_generated_store.ts
|
|
7564
|
-
var SCHEMA_HASH = "
|
|
7564
|
+
var SCHEMA_HASH = "fb892580cf13df3b";
|
|
7565
7565
|
var DB_ENTITY_SCHEMA = {
|
|
7566
7566
|
actions: "id",
|
|
7567
7567
|
agents: "id",
|
|
@@ -7587,6 +7587,7 @@ var DB_ENTITY_SCHEMA = {
|
|
|
7587
7587
|
feedback: "id, &chatMessageId",
|
|
7588
7588
|
feedDatabaseDatas: "id",
|
|
7589
7589
|
feedDocumentDatas: "id",
|
|
7590
|
+
feedInsightDatas: "id",
|
|
7590
7591
|
feedIntegrationDatas: "id",
|
|
7591
7592
|
feedItemGenerateds: "id",
|
|
7592
7593
|
feedItems: "id",
|
|
@@ -7654,6 +7655,7 @@ var TYPENAME_TO_TABLE = {
|
|
|
7654
7655
|
Feedback: "feedback",
|
|
7655
7656
|
FeedDatabaseData: "feedDatabaseDatas",
|
|
7656
7657
|
FeedDocumentData: "feedDocumentDatas",
|
|
7658
|
+
FeedInsightData: "feedInsightDatas",
|
|
7657
7659
|
FeedIntegrationData: "feedIntegrationDatas",
|
|
7658
7660
|
FeedItem: "feedItems",
|
|
7659
7661
|
FeedItemGenerated: "feedItemGenerateds",
|
|
@@ -7721,6 +7723,7 @@ var TABLE_TO_TYPENAME = {
|
|
|
7721
7723
|
feedback: "Feedback",
|
|
7722
7724
|
feedDatabaseDatas: "FeedDatabaseData",
|
|
7723
7725
|
feedDocumentDatas: "FeedDocumentData",
|
|
7726
|
+
feedInsightDatas: "FeedInsightData",
|
|
7724
7727
|
feedIntegrationDatas: "FeedIntegrationData",
|
|
7725
7728
|
feedItemGenerateds: "FeedItemGenerated",
|
|
7726
7729
|
feedItems: "FeedItem",
|
|
@@ -8672,6 +8675,28 @@ function flattenEntity(data) {
|
|
|
8672
8675
|
}
|
|
8673
8676
|
return result;
|
|
8674
8677
|
}
|
|
8678
|
+
function isPlainObject(value) {
|
|
8679
|
+
return Object.prototype.toString.call(value) === "[object Object]";
|
|
8680
|
+
}
|
|
8681
|
+
function areRecordValuesEqual(left, right) {
|
|
8682
|
+
if (Object.is(left, right)) {
|
|
8683
|
+
return true;
|
|
8684
|
+
}
|
|
8685
|
+
if (left instanceof Date && right instanceof Date) {
|
|
8686
|
+
return left.getTime() === right.getTime();
|
|
8687
|
+
}
|
|
8688
|
+
if (Array.isArray(left) && Array.isArray(right)) {
|
|
8689
|
+
return left.length === right.length && left.every((value, index) => areRecordValuesEqual(value, right[index]));
|
|
8690
|
+
}
|
|
8691
|
+
if (isPlainObject(left) && isPlainObject(right)) {
|
|
8692
|
+
const leftKeys = Object.keys(left);
|
|
8693
|
+
const rightKeys = Object.keys(right);
|
|
8694
|
+
return leftKeys.length === rightKeys.length && leftKeys.every(
|
|
8695
|
+
(key) => Object.prototype.hasOwnProperty.call(right, key) && areRecordValuesEqual(left[key], right[key])
|
|
8696
|
+
);
|
|
8697
|
+
}
|
|
8698
|
+
return false;
|
|
8699
|
+
}
|
|
8675
8700
|
function normalize(data, rootField) {
|
|
8676
8701
|
const entities = /* @__PURE__ */ new Map();
|
|
8677
8702
|
const nestedConnections = /* @__PURE__ */ new Map();
|
|
@@ -8782,33 +8807,73 @@ function extractEntity(data, entities, nestedConnections) {
|
|
|
8782
8807
|
}
|
|
8783
8808
|
}
|
|
8784
8809
|
function mergeEntityRecord(existing, incoming) {
|
|
8785
|
-
|
|
8810
|
+
let result;
|
|
8786
8811
|
for (const [key, value] of Object.entries(incoming)) {
|
|
8787
|
-
if (value
|
|
8788
|
-
|
|
8812
|
+
if (value === void 0) {
|
|
8813
|
+
continue;
|
|
8814
|
+
}
|
|
8815
|
+
if (Object.prototype.hasOwnProperty.call(existing, key) && areRecordValuesEqual(existing[key], value)) {
|
|
8816
|
+
continue;
|
|
8789
8817
|
}
|
|
8818
|
+
result ??= { ...existing };
|
|
8819
|
+
result[key] = value;
|
|
8790
8820
|
}
|
|
8791
|
-
return result;
|
|
8821
|
+
return result ?? existing;
|
|
8792
8822
|
}
|
|
8793
8823
|
|
|
8794
8824
|
// src/store/cache-manager.ts
|
|
8825
|
+
var QUERY_FRESHNESS_KEY_PREFIX = "queryFreshness:";
|
|
8826
|
+
function getQueryFreshnessKey(queryKey) {
|
|
8827
|
+
return `${QUERY_FRESHNESS_KEY_PREFIX}${queryKey}`;
|
|
8828
|
+
}
|
|
8829
|
+
function areArraysEqual(left, right) {
|
|
8830
|
+
return left.length === right.length && left.every((value, index) => value === right[index]);
|
|
8831
|
+
}
|
|
8832
|
+
function arePageInfosEqual(left, right) {
|
|
8833
|
+
if (left === right) {
|
|
8834
|
+
return true;
|
|
8835
|
+
}
|
|
8836
|
+
if (!left || !right) {
|
|
8837
|
+
return left === right;
|
|
8838
|
+
}
|
|
8839
|
+
return left.hasNextPage === right.hasNextPage && left.hasPreviousPage === right.hasPreviousPage && left.startCursor === right.startCursor && left.endCursor === right.endCursor;
|
|
8840
|
+
}
|
|
8841
|
+
function hasSameQueryResultContents(existing, incoming) {
|
|
8842
|
+
return existing.entityType === incoming.entityType && areArraysEqual(existing.entityIds, incoming.entityIds) && arePageInfosEqual(existing.pageInfo, incoming.pageInfo) && existing.totalCount === incoming.totalCount;
|
|
8843
|
+
}
|
|
8795
8844
|
var CacheManager = class {
|
|
8796
8845
|
constructor(_db) {
|
|
8797
8846
|
this._db = _db;
|
|
8798
8847
|
}
|
|
8848
|
+
async _touchQueryFreshness(queryKey, fetchedAt = Date.now()) {
|
|
8849
|
+
await this._db._sync.put({ key: getQueryFreshnessKey(queryKey), value: fetchedAt });
|
|
8850
|
+
}
|
|
8851
|
+
async getQueryFetchedAt(queryKey, fallback) {
|
|
8852
|
+
const freshness = await this._db._sync.get(getQueryFreshnessKey(queryKey));
|
|
8853
|
+
return typeof freshness?.value === "number" ? freshness.value : fallback?.fetchedAt;
|
|
8854
|
+
}
|
|
8799
8855
|
/**
|
|
8800
8856
|
* Write connection metadata to the `_queryResults` table.
|
|
8801
8857
|
*/
|
|
8802
8858
|
async writeQueryResult(queryKey, connection) {
|
|
8859
|
+
const fetchedAt = Date.now();
|
|
8860
|
+
const existing = await this._db._queryResults.get(queryKey);
|
|
8861
|
+
if (existing && hasSameQueryResultContents(existing, connection)) {
|
|
8862
|
+
await this._touchQueryFreshness(queryKey, fetchedAt);
|
|
8863
|
+
return;
|
|
8864
|
+
}
|
|
8803
8865
|
const entry = {
|
|
8804
8866
|
key: queryKey,
|
|
8805
8867
|
entityType: connection.entityType,
|
|
8806
8868
|
entityIds: connection.entityIds,
|
|
8807
8869
|
pageInfo: connection.pageInfo,
|
|
8808
8870
|
totalCount: connection.totalCount,
|
|
8809
|
-
fetchedAt
|
|
8871
|
+
fetchedAt
|
|
8810
8872
|
};
|
|
8811
|
-
await this._db._queryResults.
|
|
8873
|
+
await this._db.transaction("rw", [this._db._queryResults, this._db._sync], async () => {
|
|
8874
|
+
await this._db._queryResults.put(entry);
|
|
8875
|
+
await this._touchQueryFreshness(queryKey, fetchedAt);
|
|
8876
|
+
});
|
|
8812
8877
|
}
|
|
8813
8878
|
/**
|
|
8814
8879
|
* Append new page results to an existing query result entry.
|
|
@@ -8817,13 +8882,24 @@ var CacheManager = class {
|
|
|
8817
8882
|
async appendQueryResult(queryKey, connection) {
|
|
8818
8883
|
const existing = await this._db._queryResults.get(queryKey);
|
|
8819
8884
|
if (existing) {
|
|
8885
|
+
const fetchedAt = Date.now();
|
|
8820
8886
|
const existingIds = new Set(existing.entityIds);
|
|
8821
8887
|
const newIds = connection.entityIds.filter((id) => !existingIds.has(id));
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
existing.
|
|
8826
|
-
|
|
8888
|
+
const nextEntityIds = newIds.length > 0 ? [...existing.entityIds, ...newIds] : existing.entityIds;
|
|
8889
|
+
const nextPageInfo = connection.pageInfo ?? existing.pageInfo;
|
|
8890
|
+
const nextTotalCount = connection.totalCount ?? existing.totalCount;
|
|
8891
|
+
if (areArraysEqual(existing.entityIds, nextEntityIds) && arePageInfosEqual(existing.pageInfo, nextPageInfo) && existing.totalCount === nextTotalCount) {
|
|
8892
|
+
await this._touchQueryFreshness(queryKey, fetchedAt);
|
|
8893
|
+
return;
|
|
8894
|
+
}
|
|
8895
|
+
existing.entityIds = nextEntityIds;
|
|
8896
|
+
existing.pageInfo = nextPageInfo;
|
|
8897
|
+
existing.totalCount = nextTotalCount;
|
|
8898
|
+
existing.fetchedAt = fetchedAt;
|
|
8899
|
+
await this._db.transaction("rw", [this._db._queryResults, this._db._sync], async () => {
|
|
8900
|
+
await this._db._queryResults.put(existing);
|
|
8901
|
+
await this._touchQueryFreshness(queryKey, fetchedAt);
|
|
8902
|
+
});
|
|
8827
8903
|
} else {
|
|
8828
8904
|
await this.writeQueryResult(queryKey, connection);
|
|
8829
8905
|
}
|
|
@@ -8840,7 +8916,10 @@ var CacheManager = class {
|
|
|
8840
8916
|
*/
|
|
8841
8917
|
async invalidateQuery(operationName, variables) {
|
|
8842
8918
|
const key = buildQueryKey(operationName, variables);
|
|
8843
|
-
await this._db._queryResults.
|
|
8919
|
+
await this._db.transaction("rw", [this._db._queryResults, this._db._sync], async () => {
|
|
8920
|
+
await this._db._queryResults.delete(key);
|
|
8921
|
+
await this._db._sync.delete(getQueryFreshnessKey(key));
|
|
8922
|
+
});
|
|
8844
8923
|
}
|
|
8845
8924
|
/**
|
|
8846
8925
|
* Remove an entity ID from all query results for a given entity type.
|
|
@@ -9126,7 +9205,8 @@ var QueryExecutor = class {
|
|
|
9126
9205
|
try {
|
|
9127
9206
|
const result = await buildResult(this._db);
|
|
9128
9207
|
ref._markInitialized(result);
|
|
9129
|
-
|
|
9208
|
+
const fetchedAt = await this._cache.getQueryFetchedAt(queryKey, cached);
|
|
9209
|
+
if (!fetchedAt || Date.now() - fetchedAt > CACHE_TTL_MS) {
|
|
9130
9210
|
this.query(document2, variables, operationName).catch(() => {
|
|
9131
9211
|
});
|
|
9132
9212
|
}
|
|
@@ -9175,10 +9255,17 @@ var QueryExecutor = class {
|
|
|
9175
9255
|
return record[pkField];
|
|
9176
9256
|
});
|
|
9177
9257
|
const existingRecords = await table.bulkGet(pks);
|
|
9178
|
-
const toPut = records.
|
|
9258
|
+
const toPut = records.flatMap((record, i) => {
|
|
9179
9259
|
const existing = existingRecords[i];
|
|
9180
|
-
|
|
9260
|
+
if (!existing) {
|
|
9261
|
+
return [record];
|
|
9262
|
+
}
|
|
9263
|
+
const merged = mergeEntityRecord(existing, record);
|
|
9264
|
+
return merged === existing ? [] : [merged];
|
|
9181
9265
|
});
|
|
9266
|
+
if (toPut.length === 0) {
|
|
9267
|
+
continue;
|
|
9268
|
+
}
|
|
9182
9269
|
await table.bulkPut(toPut);
|
|
9183
9270
|
}
|
|
9184
9271
|
});
|
|
@@ -9298,7 +9385,9 @@ var OptimisticManager = class {
|
|
|
9298
9385
|
const snapshot = existing ? structuredClone(existing) : void 0;
|
|
9299
9386
|
if (existing) {
|
|
9300
9387
|
const merged = mergeEntityRecord(existing, data);
|
|
9301
|
-
|
|
9388
|
+
if (merged !== existing) {
|
|
9389
|
+
await table.put(merged);
|
|
9390
|
+
}
|
|
9302
9391
|
}
|
|
9303
9392
|
return async () => {
|
|
9304
9393
|
if (snapshot) {
|
|
@@ -9765,7 +9854,9 @@ var SyncEngine = class {
|
|
|
9765
9854
|
await this._queryExecutor.writeEntities(entities);
|
|
9766
9855
|
} else if (existing) {
|
|
9767
9856
|
const merged = mergeEntityRecord(existing, record);
|
|
9768
|
-
|
|
9857
|
+
if (merged !== existing) {
|
|
9858
|
+
await table.put(merged);
|
|
9859
|
+
}
|
|
9769
9860
|
} else {
|
|
9770
9861
|
await table.put(record);
|
|
9771
9862
|
}
|
|
@@ -9809,7 +9900,8 @@ var SyncEngine = class {
|
|
|
9809
9900
|
if (!touchedAt) return;
|
|
9810
9901
|
const cached = await this._db._queryResults.get(sub.queryKey);
|
|
9811
9902
|
if (!cached) return;
|
|
9812
|
-
|
|
9903
|
+
const fetchedAt = await this._cache.getQueryFetchedAt(sub.queryKey, cached);
|
|
9904
|
+
if ((fetchedAt ?? cached.fetchedAt) >= touchedAt) return;
|
|
9813
9905
|
await this.query(sub.document, sub.variables, sub.operationName).catch(() => void 0);
|
|
9814
9906
|
}
|
|
9815
9907
|
async _revalidateAllActiveSubscriptions() {
|
|
@@ -10205,7 +10297,7 @@ function createLazySyncEngine(httpTransport, sseUrl, syncPolicyUrl, getToken, ge
|
|
|
10205
10297
|
var DEFAULT_UPLOAD_CONTENT_TYPE = "application/octet-stream";
|
|
10206
10298
|
var AZURE_BLOCK_BLOB_TYPE = "BlockBlob";
|
|
10207
10299
|
async function uploadFile(request, getToken, file, name, options) {
|
|
10208
|
-
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-
|
|
10300
|
+
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-PLPR22NI.cjs');
|
|
10209
10301
|
const key = `upload_${Date.now()}`;
|
|
10210
10302
|
const response = await request(
|
|
10211
10303
|
GenerateUploadUriDocument2,
|
|
@@ -10500,6 +10592,124 @@ function inferTargetTables(fieldName) {
|
|
|
10500
10592
|
return normalizedTypeName === normalizedFieldName || normalizedTypeName.endsWith(normalizedFieldName) || normalizedTableName === normalizedFieldName || normalizedTableName === `${normalizedFieldName}s`;
|
|
10501
10593
|
}).map(([tableName]) => tableName);
|
|
10502
10594
|
}
|
|
10595
|
+
function getIncludeQueryKey(parentTable, parentId, fieldName) {
|
|
10596
|
+
return `${parentTable}.${parentId}.${fieldName}`;
|
|
10597
|
+
}
|
|
10598
|
+
function hasNestedIncludes(include) {
|
|
10599
|
+
return Boolean(include.children?.length);
|
|
10600
|
+
}
|
|
10601
|
+
function canUseFlatIncludeBatch(includes) {
|
|
10602
|
+
return includes.length > 0 && includes.every((include) => !hasNestedIncludes(include));
|
|
10603
|
+
}
|
|
10604
|
+
function cloneEntity(entity) {
|
|
10605
|
+
return { ...entity };
|
|
10606
|
+
}
|
|
10607
|
+
function defaultIncludeValue(inc) {
|
|
10608
|
+
if (inc.isConnection) {
|
|
10609
|
+
return {
|
|
10610
|
+
__typename: "Unknown",
|
|
10611
|
+
nodes: [],
|
|
10612
|
+
pageInfo: { hasNextPage: false, hasPreviousPage: false },
|
|
10613
|
+
totalCount: 0
|
|
10614
|
+
};
|
|
10615
|
+
}
|
|
10616
|
+
if (inc.isList) {
|
|
10617
|
+
return [];
|
|
10618
|
+
}
|
|
10619
|
+
return null;
|
|
10620
|
+
}
|
|
10621
|
+
async function preloadFlatIncludeContext(db, parentTable, parentIds, includes) {
|
|
10622
|
+
const queryKeys = [];
|
|
10623
|
+
for (const parentId of parentIds) {
|
|
10624
|
+
for (const include of includes) {
|
|
10625
|
+
queryKeys.push(getIncludeQueryKey(parentTable, parentId, include.fieldName));
|
|
10626
|
+
}
|
|
10627
|
+
}
|
|
10628
|
+
const queryResults = queryKeys.length > 0 ? await db._queryResults.bulkGet(queryKeys) : [];
|
|
10629
|
+
const queryResultsByKey = /* @__PURE__ */ new Map();
|
|
10630
|
+
const childIdsByType = /* @__PURE__ */ new Map();
|
|
10631
|
+
for (let i = 0; i < queryKeys.length; i++) {
|
|
10632
|
+
const queryResult = queryResults[i];
|
|
10633
|
+
if (!queryResult) {
|
|
10634
|
+
continue;
|
|
10635
|
+
}
|
|
10636
|
+
queryResultsByKey.set(queryKeys[i], queryResult);
|
|
10637
|
+
let entityIds = childIdsByType.get(queryResult.entityType);
|
|
10638
|
+
if (!entityIds) {
|
|
10639
|
+
entityIds = /* @__PURE__ */ new Set();
|
|
10640
|
+
childIdsByType.set(queryResult.entityType, entityIds);
|
|
10641
|
+
}
|
|
10642
|
+
for (const entityId of queryResult.entityIds) {
|
|
10643
|
+
entityIds.add(entityId);
|
|
10644
|
+
}
|
|
10645
|
+
}
|
|
10646
|
+
const childEntitiesByType = /* @__PURE__ */ new Map();
|
|
10647
|
+
await Promise.all(
|
|
10648
|
+
Array.from(childIdsByType.entries()).map(async ([entityType, entityIds]) => {
|
|
10649
|
+
const idList = Array.from(entityIds);
|
|
10650
|
+
const childRecords = await db.table(entityType).bulkGet(idList.map((id) => parsePrimaryKeyString(entityType, id)));
|
|
10651
|
+
const childMap = /* @__PURE__ */ new Map();
|
|
10652
|
+
for (let i = 0; i < idList.length; i++) {
|
|
10653
|
+
const childRecord = childRecords[i];
|
|
10654
|
+
if (!childRecord || typeof childRecord !== "object") {
|
|
10655
|
+
continue;
|
|
10656
|
+
}
|
|
10657
|
+
childMap.set(idList[i], childRecord);
|
|
10658
|
+
}
|
|
10659
|
+
childEntitiesByType.set(entityType, childMap);
|
|
10660
|
+
})
|
|
10661
|
+
);
|
|
10662
|
+
return { childEntitiesByType, queryResultsByKey };
|
|
10663
|
+
}
|
|
10664
|
+
function resolveFlatChildEntities(context, queryResult) {
|
|
10665
|
+
const childMap = context.childEntitiesByType.get(queryResult.entityType);
|
|
10666
|
+
if (!childMap) {
|
|
10667
|
+
return [];
|
|
10668
|
+
}
|
|
10669
|
+
const children = [];
|
|
10670
|
+
for (const entityId of queryResult.entityIds) {
|
|
10671
|
+
const child = childMap.get(entityId);
|
|
10672
|
+
if (child) {
|
|
10673
|
+
children.push(child);
|
|
10674
|
+
}
|
|
10675
|
+
}
|
|
10676
|
+
return children;
|
|
10677
|
+
}
|
|
10678
|
+
async function reconstructFlatEntity(db, parentTable, parentEntity, parentId, includes, context) {
|
|
10679
|
+
const result = cloneEntity(parentEntity);
|
|
10680
|
+
for (const inc of includes) {
|
|
10681
|
+
const queryResult = context.queryResultsByKey.get(getIncludeQueryKey(parentTable, parentId, inc.fieldName));
|
|
10682
|
+
if (!queryResult) {
|
|
10683
|
+
const fallback = inc.isConnection ? void 0 : await resolveSingleRelationFallback(db, parentTable, result, inc);
|
|
10684
|
+
if (fallback) {
|
|
10685
|
+
result[inc.fieldName] = fallback.entity;
|
|
10686
|
+
continue;
|
|
10687
|
+
}
|
|
10688
|
+
result[inc.fieldName] = defaultIncludeValue(inc);
|
|
10689
|
+
continue;
|
|
10690
|
+
}
|
|
10691
|
+
const childEntities = resolveFlatChildEntities(context, queryResult);
|
|
10692
|
+
if (inc.isConnection) {
|
|
10693
|
+
result[inc.fieldName] = {
|
|
10694
|
+
__typename: (TABLE_TO_TYPENAME[queryResult.entityType] ?? queryResult.entityType) + "Connection",
|
|
10695
|
+
nodes: childEntities.map(cloneEntity),
|
|
10696
|
+
pageInfo: queryResult.pageInfo ?? {
|
|
10697
|
+
hasNextPage: false,
|
|
10698
|
+
hasPreviousPage: false
|
|
10699
|
+
},
|
|
10700
|
+
totalCount: queryResult.totalCount ?? 0
|
|
10701
|
+
};
|
|
10702
|
+
continue;
|
|
10703
|
+
}
|
|
10704
|
+
if (inc.isList) {
|
|
10705
|
+
result[inc.fieldName] = childEntities.map(cloneEntity);
|
|
10706
|
+
continue;
|
|
10707
|
+
}
|
|
10708
|
+
const child = childEntities[0];
|
|
10709
|
+
result[inc.fieldName] = child ? cloneEntity(child) : null;
|
|
10710
|
+
}
|
|
10711
|
+
return result;
|
|
10712
|
+
}
|
|
10503
10713
|
async function resolveSingleRelationFallback(db, parentTable, parentEntity, inc) {
|
|
10504
10714
|
const targetTables = inc.syncMetadata?.entityType ? [inc.syncMetadata.entityType] : inferTargetTables(inc.fieldName);
|
|
10505
10715
|
if (targetTables.length === 0) {
|
|
@@ -10524,9 +10734,13 @@ async function reconstructEntity(db, tableName, entityId, includes) {
|
|
|
10524
10734
|
const dexieKey = parsePrimaryKeyString(tableName, entityId);
|
|
10525
10735
|
const entity = await db.table(tableName).get(dexieKey);
|
|
10526
10736
|
if (!entity) return {};
|
|
10737
|
+
if (canUseFlatIncludeBatch(includes)) {
|
|
10738
|
+
const context = await preloadFlatIncludeContext(db, tableName, [entityId], includes);
|
|
10739
|
+
return reconstructFlatEntity(db, tableName, entity, entityId, includes, context);
|
|
10740
|
+
}
|
|
10527
10741
|
const result = { ...entity };
|
|
10528
10742
|
for (const inc of includes) {
|
|
10529
|
-
const connKey =
|
|
10743
|
+
const connKey = getIncludeQueryKey(tableName, entityId, inc.fieldName);
|
|
10530
10744
|
const qr = await db._queryResults.get(connKey);
|
|
10531
10745
|
if (!qr) {
|
|
10532
10746
|
const fallback = inc.isConnection ? void 0 : await resolveSingleRelationFallback(db, tableName, result, inc);
|
|
@@ -10539,12 +10753,7 @@ async function reconstructEntity(db, tableName, entityId, includes) {
|
|
|
10539
10753
|
result[inc.fieldName] = fallback.entity;
|
|
10540
10754
|
continue;
|
|
10541
10755
|
}
|
|
10542
|
-
result[inc.fieldName] = inc
|
|
10543
|
-
__typename: "Unknown",
|
|
10544
|
-
nodes: [],
|
|
10545
|
-
pageInfo: { hasNextPage: false, hasPreviousPage: false },
|
|
10546
|
-
totalCount: 0
|
|
10547
|
-
} : inc.isList ? [] : null;
|
|
10756
|
+
result[inc.fieldName] = defaultIncludeValue(inc);
|
|
10548
10757
|
continue;
|
|
10549
10758
|
}
|
|
10550
10759
|
if (inc.isConnection) {
|
|
@@ -10593,6 +10802,27 @@ async function reconstructEntity(db, tableName, entityId, includes) {
|
|
|
10593
10802
|
}
|
|
10594
10803
|
async function reconstructConnectionNodes(db, entityTable, nodes, includes) {
|
|
10595
10804
|
if (includes.length === 0) return nodes;
|
|
10805
|
+
if (canUseFlatIncludeBatch(includes)) {
|
|
10806
|
+
const nodeIds = nodes.map((node) => primaryKeyToString(entityTable, node));
|
|
10807
|
+
const parentEntities = await db.table(entityTable).bulkGet(nodeIds.map((id) => parsePrimaryKeyString(entityTable, id)));
|
|
10808
|
+
const context = await preloadFlatIncludeContext(db, entityTable, nodeIds, includes);
|
|
10809
|
+
return Promise.all(
|
|
10810
|
+
nodeIds.map(async (nodeId, index) => {
|
|
10811
|
+
const parentEntity = parentEntities[index];
|
|
10812
|
+
if (!parentEntity || typeof parentEntity !== "object") {
|
|
10813
|
+
return {};
|
|
10814
|
+
}
|
|
10815
|
+
return reconstructFlatEntity(
|
|
10816
|
+
db,
|
|
10817
|
+
entityTable,
|
|
10818
|
+
parentEntity,
|
|
10819
|
+
nodeId,
|
|
10820
|
+
includes,
|
|
10821
|
+
context
|
|
10822
|
+
);
|
|
10823
|
+
})
|
|
10824
|
+
);
|
|
10825
|
+
}
|
|
10596
10826
|
return Promise.all(
|
|
10597
10827
|
nodes.map(async (node) => {
|
|
10598
10828
|
const nodeId = primaryKeyToString(entityTable, node);
|
|
@@ -11465,6 +11695,21 @@ var FeedDocumentData = class extends DvinaModel {
|
|
|
11465
11695
|
this.kind = data.kind;
|
|
11466
11696
|
}
|
|
11467
11697
|
};
|
|
11698
|
+
var FeedInsightData = class extends DvinaModel {
|
|
11699
|
+
kind;
|
|
11700
|
+
output;
|
|
11701
|
+
pivotConfig;
|
|
11702
|
+
presentation;
|
|
11703
|
+
query;
|
|
11704
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
11705
|
+
super(request, syncEngine, baseUrl);
|
|
11706
|
+
this.kind = data.kind;
|
|
11707
|
+
this.output = data.output ?? void 0;
|
|
11708
|
+
this.pivotConfig = data.pivotConfig ?? void 0;
|
|
11709
|
+
this.presentation = data.presentation;
|
|
11710
|
+
this.query = data.query;
|
|
11711
|
+
}
|
|
11712
|
+
};
|
|
11468
11713
|
var FeedIntegrationData = class extends DvinaModel {
|
|
11469
11714
|
integrationProviderKey;
|
|
11470
11715
|
kind;
|
|
@@ -11507,6 +11752,8 @@ var FeedItem = class extends DvinaModel {
|
|
|
11507
11752
|
return new FeedDatabaseData(request, value, syncEngine, baseUrl);
|
|
11508
11753
|
case "FeedDocumentData":
|
|
11509
11754
|
return new FeedDocumentData(request, value, syncEngine, baseUrl);
|
|
11755
|
+
case "FeedInsightData":
|
|
11756
|
+
return new FeedInsightData(request, value, syncEngine, baseUrl);
|
|
11510
11757
|
case "FeedIntegrationData":
|
|
11511
11758
|
return new FeedIntegrationData(request, value, syncEngine, baseUrl);
|
|
11512
11759
|
case "FeedLiveContextData":
|
|
@@ -12878,7 +13125,7 @@ var AgentSubBuilder = class {
|
|
|
12878
13125
|
_includes = [];
|
|
12879
13126
|
/** Include chats in the parent query. */
|
|
12880
13127
|
chats(variables, builder) {
|
|
12881
|
-
const info = extractIncludeInfo(
|
|
13128
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
12882
13129
|
let children;
|
|
12883
13130
|
if (builder) {
|
|
12884
13131
|
const sub = new ChatSubBuilder();
|
|
@@ -12887,7 +13134,7 @@ var AgentSubBuilder = class {
|
|
|
12887
13134
|
}
|
|
12888
13135
|
this._includes.push({
|
|
12889
13136
|
fieldName: "chats",
|
|
12890
|
-
fragmentDoc:
|
|
13137
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatConnectionFragmentDoc,
|
|
12891
13138
|
variables,
|
|
12892
13139
|
isConnection: true,
|
|
12893
13140
|
isList: false,
|
|
@@ -12909,7 +13156,7 @@ var ArtifactSubBuilder = class {
|
|
|
12909
13156
|
_includes = [];
|
|
12910
13157
|
/** Include chat in the parent query. */
|
|
12911
13158
|
chat(variables, builder) {
|
|
12912
|
-
const info = extractIncludeInfo(
|
|
13159
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
12913
13160
|
let children;
|
|
12914
13161
|
if (builder) {
|
|
12915
13162
|
const sub = new ChatSubBuilder();
|
|
@@ -12918,7 +13165,7 @@ var ArtifactSubBuilder = class {
|
|
|
12918
13165
|
}
|
|
12919
13166
|
this._includes.push({
|
|
12920
13167
|
fieldName: "chat",
|
|
12921
|
-
fragmentDoc:
|
|
13168
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatFragmentDoc,
|
|
12922
13169
|
variables,
|
|
12923
13170
|
isConnection: false,
|
|
12924
13171
|
isList: false,
|
|
@@ -12935,10 +13182,10 @@ var ArtifactSubBuilder = class {
|
|
|
12935
13182
|
}
|
|
12936
13183
|
/** Include file in the parent query. */
|
|
12937
13184
|
file(variables) {
|
|
12938
|
-
const info = extractIncludeInfo(
|
|
13185
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
12939
13186
|
this._includes.push({
|
|
12940
13187
|
fieldName: "file",
|
|
12941
|
-
fragmentDoc:
|
|
13188
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FileFragmentDoc,
|
|
12942
13189
|
variables,
|
|
12943
13190
|
isConnection: false,
|
|
12944
13191
|
isList: false,
|
|
@@ -12954,7 +13201,7 @@ var ArtifactSubBuilder = class {
|
|
|
12954
13201
|
}
|
|
12955
13202
|
/** Include message in the parent query. */
|
|
12956
13203
|
message(variables, builder) {
|
|
12957
|
-
const info = extractIncludeInfo(
|
|
13204
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
12958
13205
|
let children;
|
|
12959
13206
|
if (builder) {
|
|
12960
13207
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -12963,7 +13210,7 @@ var ArtifactSubBuilder = class {
|
|
|
12963
13210
|
}
|
|
12964
13211
|
this._includes.push({
|
|
12965
13212
|
fieldName: "message",
|
|
12966
|
-
fragmentDoc:
|
|
13213
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatMessageFragmentDoc,
|
|
12967
13214
|
variables,
|
|
12968
13215
|
isConnection: false,
|
|
12969
13216
|
isList: false,
|
|
@@ -12984,7 +13231,7 @@ var ChatSubBuilder = class {
|
|
|
12984
13231
|
_includes = [];
|
|
12985
13232
|
/** Include agents in the parent query. */
|
|
12986
13233
|
agents(variables, builder) {
|
|
12987
|
-
const info = extractIncludeInfo(
|
|
13234
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
12988
13235
|
let children;
|
|
12989
13236
|
if (builder) {
|
|
12990
13237
|
const sub = new AgentSubBuilder();
|
|
@@ -12993,7 +13240,7 @@ var ChatSubBuilder = class {
|
|
|
12993
13240
|
}
|
|
12994
13241
|
this._includes.push({
|
|
12995
13242
|
fieldName: "agents",
|
|
12996
|
-
fragmentDoc:
|
|
13243
|
+
fragmentDoc: chunkOCCUM5WH_cjs.AgentConnectionFragmentDoc,
|
|
12997
13244
|
variables,
|
|
12998
13245
|
isConnection: true,
|
|
12999
13246
|
isList: false,
|
|
@@ -13011,7 +13258,7 @@ var ChatSubBuilder = class {
|
|
|
13011
13258
|
}
|
|
13012
13259
|
/** Include artifacts in the parent query. */
|
|
13013
13260
|
artifacts(variables, builder) {
|
|
13014
|
-
const info = extractIncludeInfo(
|
|
13261
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
13015
13262
|
let children;
|
|
13016
13263
|
if (builder) {
|
|
13017
13264
|
const sub = new ArtifactSubBuilder();
|
|
@@ -13020,7 +13267,7 @@ var ChatSubBuilder = class {
|
|
|
13020
13267
|
}
|
|
13021
13268
|
this._includes.push({
|
|
13022
13269
|
fieldName: "artifacts",
|
|
13023
|
-
fragmentDoc:
|
|
13270
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ArtifactConnectionFragmentDoc,
|
|
13024
13271
|
variables,
|
|
13025
13272
|
isConnection: true,
|
|
13026
13273
|
isList: false,
|
|
@@ -13038,7 +13285,7 @@ var ChatSubBuilder = class {
|
|
|
13038
13285
|
}
|
|
13039
13286
|
/** Include insight in the parent query. */
|
|
13040
13287
|
insight(variables, builder) {
|
|
13041
|
-
const info = extractIncludeInfo(
|
|
13288
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
13042
13289
|
let children;
|
|
13043
13290
|
if (builder) {
|
|
13044
13291
|
const sub = new InsightSubBuilder();
|
|
@@ -13047,7 +13294,7 @@ var ChatSubBuilder = class {
|
|
|
13047
13294
|
}
|
|
13048
13295
|
this._includes.push({
|
|
13049
13296
|
fieldName: "insight",
|
|
13050
|
-
fragmentDoc:
|
|
13297
|
+
fragmentDoc: chunkOCCUM5WH_cjs.InsightFragmentDoc,
|
|
13051
13298
|
variables,
|
|
13052
13299
|
isConnection: false,
|
|
13053
13300
|
isList: false,
|
|
@@ -13064,7 +13311,7 @@ var ChatSubBuilder = class {
|
|
|
13064
13311
|
}
|
|
13065
13312
|
/** Include messages in the parent query. */
|
|
13066
13313
|
messages(variables, builder) {
|
|
13067
|
-
const info = extractIncludeInfo(
|
|
13314
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
13068
13315
|
let children;
|
|
13069
13316
|
if (builder) {
|
|
13070
13317
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -13073,7 +13320,7 @@ var ChatSubBuilder = class {
|
|
|
13073
13320
|
}
|
|
13074
13321
|
this._includes.push({
|
|
13075
13322
|
fieldName: "messages",
|
|
13076
|
-
fragmentDoc:
|
|
13323
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatMessageConnectionFragmentDoc,
|
|
13077
13324
|
variables,
|
|
13078
13325
|
isConnection: true,
|
|
13079
13326
|
isList: false,
|
|
@@ -13095,7 +13342,7 @@ var ChatMessageSubBuilder = class {
|
|
|
13095
13342
|
_includes = [];
|
|
13096
13343
|
/** Include artifacts in the parent query. */
|
|
13097
13344
|
artifacts(variables, builder) {
|
|
13098
|
-
const info = extractIncludeInfo(
|
|
13345
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
13099
13346
|
let children;
|
|
13100
13347
|
if (builder) {
|
|
13101
13348
|
const sub = new ArtifactSubBuilder();
|
|
@@ -13104,7 +13351,7 @@ var ChatMessageSubBuilder = class {
|
|
|
13104
13351
|
}
|
|
13105
13352
|
this._includes.push({
|
|
13106
13353
|
fieldName: "artifacts",
|
|
13107
|
-
fragmentDoc:
|
|
13354
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ArtifactConnectionFragmentDoc,
|
|
13108
13355
|
variables,
|
|
13109
13356
|
isConnection: true,
|
|
13110
13357
|
isList: false,
|
|
@@ -13122,7 +13369,7 @@ var ChatMessageSubBuilder = class {
|
|
|
13122
13369
|
}
|
|
13123
13370
|
/** Include chat in the parent query. */
|
|
13124
13371
|
chat(variables, builder) {
|
|
13125
|
-
const info = extractIncludeInfo(
|
|
13372
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
13126
13373
|
let children;
|
|
13127
13374
|
if (builder) {
|
|
13128
13375
|
const sub = new ChatSubBuilder();
|
|
@@ -13131,7 +13378,7 @@ var ChatMessageSubBuilder = class {
|
|
|
13131
13378
|
}
|
|
13132
13379
|
this._includes.push({
|
|
13133
13380
|
fieldName: "chat",
|
|
13134
|
-
fragmentDoc:
|
|
13381
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatFragmentDoc,
|
|
13135
13382
|
variables,
|
|
13136
13383
|
isConnection: false,
|
|
13137
13384
|
isList: false,
|
|
@@ -13148,10 +13395,10 @@ var ChatMessageSubBuilder = class {
|
|
|
13148
13395
|
}
|
|
13149
13396
|
/** Include contents in the parent query. */
|
|
13150
13397
|
contents(variables) {
|
|
13151
|
-
const info = extractIncludeInfo(
|
|
13398
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
13152
13399
|
this._includes.push({
|
|
13153
13400
|
fieldName: "contents",
|
|
13154
|
-
fragmentDoc:
|
|
13401
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ContentBlockFragmentDoc,
|
|
13155
13402
|
variables,
|
|
13156
13403
|
isConnection: false,
|
|
13157
13404
|
isList: true,
|
|
@@ -13167,10 +13414,10 @@ var ChatMessageSubBuilder = class {
|
|
|
13167
13414
|
}
|
|
13168
13415
|
/** Include feedback in the parent query. */
|
|
13169
13416
|
feedback(variables) {
|
|
13170
|
-
const info = extractIncludeInfo(
|
|
13417
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
13171
13418
|
this._includes.push({
|
|
13172
13419
|
fieldName: "feedback",
|
|
13173
|
-
fragmentDoc:
|
|
13420
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FeedbackFragmentDoc,
|
|
13174
13421
|
variables,
|
|
13175
13422
|
isConnection: false,
|
|
13176
13423
|
isList: false,
|
|
@@ -13190,10 +13437,10 @@ var DatabaseSubBuilder = class {
|
|
|
13190
13437
|
_includes = [];
|
|
13191
13438
|
/** Include engine in the parent query. */
|
|
13192
13439
|
engine(variables) {
|
|
13193
|
-
const info = extractIncludeInfo(
|
|
13440
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
13194
13441
|
this._includes.push({
|
|
13195
13442
|
fieldName: "engine",
|
|
13196
|
-
fragmentDoc:
|
|
13443
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DatabaseEngineFragmentDoc,
|
|
13197
13444
|
variables,
|
|
13198
13445
|
isConnection: false,
|
|
13199
13446
|
isList: false,
|
|
@@ -13209,7 +13456,7 @@ var DatabaseSubBuilder = class {
|
|
|
13209
13456
|
}
|
|
13210
13457
|
/** Include tables in the parent query. */
|
|
13211
13458
|
tables(variables, builder) {
|
|
13212
|
-
const info = extractIncludeInfo(
|
|
13459
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
13213
13460
|
let children;
|
|
13214
13461
|
if (builder) {
|
|
13215
13462
|
const sub = new TableSubBuilder();
|
|
@@ -13218,7 +13465,7 @@ var DatabaseSubBuilder = class {
|
|
|
13218
13465
|
}
|
|
13219
13466
|
this._includes.push({
|
|
13220
13467
|
fieldName: "tables",
|
|
13221
|
-
fragmentDoc:
|
|
13468
|
+
fragmentDoc: chunkOCCUM5WH_cjs.TableConnectionFragmentDoc,
|
|
13222
13469
|
variables,
|
|
13223
13470
|
isConnection: true,
|
|
13224
13471
|
isList: false,
|
|
@@ -13240,10 +13487,10 @@ var DatabaseCatalogSubBuilder = class {
|
|
|
13240
13487
|
_includes = [];
|
|
13241
13488
|
/** Include engine in the parent query. */
|
|
13242
13489
|
engine(variables) {
|
|
13243
|
-
const info = extractIncludeInfo(
|
|
13490
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
13244
13491
|
this._includes.push({
|
|
13245
13492
|
fieldName: "engine",
|
|
13246
|
-
fragmentDoc:
|
|
13493
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DatabaseEngineFragmentDoc,
|
|
13247
13494
|
variables,
|
|
13248
13495
|
isConnection: false,
|
|
13249
13496
|
isList: false,
|
|
@@ -13263,10 +13510,10 @@ var DocumentSubBuilder = class {
|
|
|
13263
13510
|
_includes = [];
|
|
13264
13511
|
/** Include contents in the parent query. */
|
|
13265
13512
|
contents(variables) {
|
|
13266
|
-
const info = extractIncludeInfo(
|
|
13513
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
13267
13514
|
this._includes.push({
|
|
13268
13515
|
fieldName: "contents",
|
|
13269
|
-
fragmentDoc:
|
|
13516
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DocumentContentFragmentDoc,
|
|
13270
13517
|
variables,
|
|
13271
13518
|
isConnection: false,
|
|
13272
13519
|
isList: true,
|
|
@@ -13282,10 +13529,10 @@ var DocumentSubBuilder = class {
|
|
|
13282
13529
|
}
|
|
13283
13530
|
/** Include file in the parent query. */
|
|
13284
13531
|
file(variables) {
|
|
13285
|
-
const info = extractIncludeInfo(
|
|
13532
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Document_FileDocument, "file", ["id"]);
|
|
13286
13533
|
this._includes.push({
|
|
13287
13534
|
fieldName: "file",
|
|
13288
|
-
fragmentDoc:
|
|
13535
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FileFragmentDoc,
|
|
13289
13536
|
variables,
|
|
13290
13537
|
isConnection: false,
|
|
13291
13538
|
isList: false,
|
|
@@ -13301,10 +13548,10 @@ var DocumentSubBuilder = class {
|
|
|
13301
13548
|
}
|
|
13302
13549
|
/** Include format in the parent query. */
|
|
13303
13550
|
format(variables) {
|
|
13304
|
-
const info = extractIncludeInfo(
|
|
13551
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Document_FormatDocument, "format", ["id"]);
|
|
13305
13552
|
this._includes.push({
|
|
13306
13553
|
fieldName: "format",
|
|
13307
|
-
fragmentDoc:
|
|
13554
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DocumentFormatFragmentDoc,
|
|
13308
13555
|
variables,
|
|
13309
13556
|
isConnection: false,
|
|
13310
13557
|
isList: false,
|
|
@@ -13320,7 +13567,7 @@ var DocumentSubBuilder = class {
|
|
|
13320
13567
|
}
|
|
13321
13568
|
/** Include tables in the parent query. */
|
|
13322
13569
|
tables(variables, builder) {
|
|
13323
|
-
const info = extractIncludeInfo(
|
|
13570
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
13324
13571
|
let children;
|
|
13325
13572
|
if (builder) {
|
|
13326
13573
|
const sub = new TableSubBuilder();
|
|
@@ -13329,7 +13576,7 @@ var DocumentSubBuilder = class {
|
|
|
13329
13576
|
}
|
|
13330
13577
|
this._includes.push({
|
|
13331
13578
|
fieldName: "tables",
|
|
13332
|
-
fragmentDoc:
|
|
13579
|
+
fragmentDoc: chunkOCCUM5WH_cjs.TableConnectionFragmentDoc,
|
|
13333
13580
|
variables,
|
|
13334
13581
|
isConnection: true,
|
|
13335
13582
|
isList: false,
|
|
@@ -13351,10 +13598,10 @@ var DocumentCatalogSubBuilder = class {
|
|
|
13351
13598
|
_includes = [];
|
|
13352
13599
|
/** Include format in the parent query. */
|
|
13353
13600
|
format(variables) {
|
|
13354
|
-
const info = extractIncludeInfo(
|
|
13601
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
13355
13602
|
this._includes.push({
|
|
13356
13603
|
fieldName: "format",
|
|
13357
|
-
fragmentDoc:
|
|
13604
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DocumentFormatFragmentDoc,
|
|
13358
13605
|
variables,
|
|
13359
13606
|
isConnection: false,
|
|
13360
13607
|
isList: false,
|
|
@@ -13374,10 +13621,10 @@ var FeedItemSubBuilder = class {
|
|
|
13374
13621
|
_includes = [];
|
|
13375
13622
|
/** Include action in the parent query. */
|
|
13376
13623
|
action(variables) {
|
|
13377
|
-
const info = extractIncludeInfo(
|
|
13624
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.FeedItem_ActionDocument, "action", ["id"]);
|
|
13378
13625
|
this._includes.push({
|
|
13379
13626
|
fieldName: "action",
|
|
13380
|
-
fragmentDoc:
|
|
13627
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FeedSendMessageActionFragmentDoc,
|
|
13381
13628
|
variables,
|
|
13382
13629
|
isConnection: false,
|
|
13383
13630
|
isList: false,
|
|
@@ -13393,10 +13640,10 @@ var FeedItemSubBuilder = class {
|
|
|
13393
13640
|
}
|
|
13394
13641
|
/** Include data in the parent query. */
|
|
13395
13642
|
data(variables) {
|
|
13396
|
-
const info = extractIncludeInfo(
|
|
13643
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.FeedItem_DataDocument, "data", ["id"]);
|
|
13397
13644
|
this._includes.push({
|
|
13398
13645
|
fieldName: "data",
|
|
13399
|
-
fragmentDoc:
|
|
13646
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FeedArtifactDataFragmentDoc,
|
|
13400
13647
|
variables,
|
|
13401
13648
|
isConnection: false,
|
|
13402
13649
|
isList: true,
|
|
@@ -13416,7 +13663,7 @@ var InsightSubBuilder = class {
|
|
|
13416
13663
|
_includes = [];
|
|
13417
13664
|
/** Include chat in the parent query. */
|
|
13418
13665
|
chat(variables, builder) {
|
|
13419
|
-
const info = extractIncludeInfo(
|
|
13666
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
13420
13667
|
let children;
|
|
13421
13668
|
if (builder) {
|
|
13422
13669
|
const sub = new ChatSubBuilder();
|
|
@@ -13425,7 +13672,7 @@ var InsightSubBuilder = class {
|
|
|
13425
13672
|
}
|
|
13426
13673
|
this._includes.push({
|
|
13427
13674
|
fieldName: "chat",
|
|
13428
|
-
fragmentDoc:
|
|
13675
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatFragmentDoc,
|
|
13429
13676
|
variables,
|
|
13430
13677
|
isConnection: false,
|
|
13431
13678
|
isList: false,
|
|
@@ -13442,10 +13689,10 @@ var InsightSubBuilder = class {
|
|
|
13442
13689
|
}
|
|
13443
13690
|
/** Include reportMembers in the parent query. */
|
|
13444
13691
|
reportMembers(variables) {
|
|
13445
|
-
const info = extractIncludeInfo(
|
|
13692
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
13446
13693
|
this._includes.push({
|
|
13447
13694
|
fieldName: "reportMembers",
|
|
13448
|
-
fragmentDoc:
|
|
13695
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ReportMemberFragmentDoc,
|
|
13449
13696
|
variables,
|
|
13450
13697
|
isConnection: false,
|
|
13451
13698
|
isList: true,
|
|
@@ -13461,7 +13708,7 @@ var InsightSubBuilder = class {
|
|
|
13461
13708
|
}
|
|
13462
13709
|
/** Include reports in the parent query. */
|
|
13463
13710
|
reports(variables, builder) {
|
|
13464
|
-
const info = extractIncludeInfo(
|
|
13711
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
13465
13712
|
let children;
|
|
13466
13713
|
if (builder) {
|
|
13467
13714
|
const sub = new ReportSubBuilder();
|
|
@@ -13470,7 +13717,7 @@ var InsightSubBuilder = class {
|
|
|
13470
13717
|
}
|
|
13471
13718
|
this._includes.push({
|
|
13472
13719
|
fieldName: "reports",
|
|
13473
|
-
fragmentDoc:
|
|
13720
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ReportConnectionFragmentDoc,
|
|
13474
13721
|
variables,
|
|
13475
13722
|
isConnection: true,
|
|
13476
13723
|
isList: false,
|
|
@@ -13488,10 +13735,10 @@ var InsightSubBuilder = class {
|
|
|
13488
13735
|
}
|
|
13489
13736
|
/** Include thumbnailFile in the parent query. */
|
|
13490
13737
|
thumbnailFile(variables) {
|
|
13491
|
-
const info = extractIncludeInfo(
|
|
13738
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
|
|
13492
13739
|
this._includes.push({
|
|
13493
13740
|
fieldName: "thumbnailFile",
|
|
13494
|
-
fragmentDoc:
|
|
13741
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FileFragmentDoc,
|
|
13495
13742
|
variables,
|
|
13496
13743
|
isConnection: false,
|
|
13497
13744
|
isList: false,
|
|
@@ -13511,10 +13758,10 @@ var IntegrationSubBuilder = class {
|
|
|
13511
13758
|
_includes = [];
|
|
13512
13759
|
/** Include provider in the parent query. */
|
|
13513
13760
|
provider(variables) {
|
|
13514
|
-
const info = extractIncludeInfo(
|
|
13761
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
13515
13762
|
this._includes.push({
|
|
13516
13763
|
fieldName: "provider",
|
|
13517
|
-
fragmentDoc:
|
|
13764
|
+
fragmentDoc: chunkOCCUM5WH_cjs.IntegrationProviderFragmentDoc,
|
|
13518
13765
|
variables,
|
|
13519
13766
|
isConnection: false,
|
|
13520
13767
|
isList: false,
|
|
@@ -13534,10 +13781,10 @@ var IntegrationCatalogSubBuilder = class {
|
|
|
13534
13781
|
_includes = [];
|
|
13535
13782
|
/** Include provider in the parent query. */
|
|
13536
13783
|
provider(variables) {
|
|
13537
|
-
const info = extractIncludeInfo(
|
|
13784
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
13538
13785
|
this._includes.push({
|
|
13539
13786
|
fieldName: "provider",
|
|
13540
|
-
fragmentDoc:
|
|
13787
|
+
fragmentDoc: chunkOCCUM5WH_cjs.IntegrationProviderFragmentDoc,
|
|
13541
13788
|
variables,
|
|
13542
13789
|
isConnection: false,
|
|
13543
13790
|
isList: false,
|
|
@@ -13557,7 +13804,7 @@ var PulseEventSubBuilder = class {
|
|
|
13557
13804
|
_includes = [];
|
|
13558
13805
|
/** Include integration in the parent query. */
|
|
13559
13806
|
integration(variables, builder) {
|
|
13560
|
-
const info = extractIncludeInfo(
|
|
13807
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
13561
13808
|
let children;
|
|
13562
13809
|
if (builder) {
|
|
13563
13810
|
const sub = new IntegrationSubBuilder();
|
|
@@ -13566,7 +13813,7 @@ var PulseEventSubBuilder = class {
|
|
|
13566
13813
|
}
|
|
13567
13814
|
this._includes.push({
|
|
13568
13815
|
fieldName: "integration",
|
|
13569
|
-
fragmentDoc:
|
|
13816
|
+
fragmentDoc: chunkOCCUM5WH_cjs.IntegrationFragmentDoc,
|
|
13570
13817
|
variables,
|
|
13571
13818
|
isConnection: false,
|
|
13572
13819
|
isList: false,
|
|
@@ -13587,7 +13834,7 @@ var ReportSubBuilder = class {
|
|
|
13587
13834
|
_includes = [];
|
|
13588
13835
|
/** Include insights in the parent query. */
|
|
13589
13836
|
insights(variables, builder) {
|
|
13590
|
-
const info = extractIncludeInfo(
|
|
13837
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
13591
13838
|
let children;
|
|
13592
13839
|
if (builder) {
|
|
13593
13840
|
const sub = new InsightSubBuilder();
|
|
@@ -13596,7 +13843,7 @@ var ReportSubBuilder = class {
|
|
|
13596
13843
|
}
|
|
13597
13844
|
this._includes.push({
|
|
13598
13845
|
fieldName: "insights",
|
|
13599
|
-
fragmentDoc:
|
|
13846
|
+
fragmentDoc: chunkOCCUM5WH_cjs.InsightConnectionFragmentDoc,
|
|
13600
13847
|
variables,
|
|
13601
13848
|
isConnection: true,
|
|
13602
13849
|
isList: false,
|
|
@@ -13614,10 +13861,10 @@ var ReportSubBuilder = class {
|
|
|
13614
13861
|
}
|
|
13615
13862
|
/** Include layout in the parent query. */
|
|
13616
13863
|
layout(variables) {
|
|
13617
|
-
const info = extractIncludeInfo(
|
|
13864
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
13618
13865
|
this._includes.push({
|
|
13619
13866
|
fieldName: "layout",
|
|
13620
|
-
fragmentDoc:
|
|
13867
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ReportMemberFragmentDoc,
|
|
13621
13868
|
variables,
|
|
13622
13869
|
isConnection: false,
|
|
13623
13870
|
isList: true,
|
|
@@ -13637,7 +13884,7 @@ var TableSubBuilder = class {
|
|
|
13637
13884
|
_includes = [];
|
|
13638
13885
|
/** Include database in the parent query. */
|
|
13639
13886
|
database(variables, builder) {
|
|
13640
|
-
const info = extractIncludeInfo(
|
|
13887
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
13641
13888
|
let children;
|
|
13642
13889
|
if (builder) {
|
|
13643
13890
|
const sub = new DatabaseSubBuilder();
|
|
@@ -13646,7 +13893,7 @@ var TableSubBuilder = class {
|
|
|
13646
13893
|
}
|
|
13647
13894
|
this._includes.push({
|
|
13648
13895
|
fieldName: "database",
|
|
13649
|
-
fragmentDoc:
|
|
13896
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DatabaseFragmentDoc,
|
|
13650
13897
|
variables,
|
|
13651
13898
|
isConnection: false,
|
|
13652
13899
|
isList: false,
|
|
@@ -13663,7 +13910,7 @@ var TableSubBuilder = class {
|
|
|
13663
13910
|
}
|
|
13664
13911
|
/** Include document in the parent query. */
|
|
13665
13912
|
document(variables, builder) {
|
|
13666
|
-
const info = extractIncludeInfo(
|
|
13913
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
13667
13914
|
let children;
|
|
13668
13915
|
if (builder) {
|
|
13669
13916
|
const sub = new DocumentSubBuilder();
|
|
@@ -13672,7 +13919,7 @@ var TableSubBuilder = class {
|
|
|
13672
13919
|
}
|
|
13673
13920
|
this._includes.push({
|
|
13674
13921
|
fieldName: "document",
|
|
13675
|
-
fragmentDoc:
|
|
13922
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DocumentFragmentDoc,
|
|
13676
13923
|
variables,
|
|
13677
13924
|
isConnection: false,
|
|
13678
13925
|
isList: false,
|
|
@@ -13689,10 +13936,10 @@ var TableSubBuilder = class {
|
|
|
13689
13936
|
}
|
|
13690
13937
|
/** Include fromRelations in the parent query. */
|
|
13691
13938
|
fromRelations(variables) {
|
|
13692
|
-
const info = extractIncludeInfo(
|
|
13939
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
13693
13940
|
this._includes.push({
|
|
13694
13941
|
fieldName: "fromRelations",
|
|
13695
|
-
fragmentDoc:
|
|
13942
|
+
fragmentDoc: chunkOCCUM5WH_cjs.RelationFragmentDoc,
|
|
13696
13943
|
variables,
|
|
13697
13944
|
isConnection: false,
|
|
13698
13945
|
isList: true,
|
|
@@ -13708,10 +13955,10 @@ var TableSubBuilder = class {
|
|
|
13708
13955
|
}
|
|
13709
13956
|
/** Include toRelations in the parent query. */
|
|
13710
13957
|
toRelations(variables) {
|
|
13711
|
-
const info = extractIncludeInfo(
|
|
13958
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
13712
13959
|
this._includes.push({
|
|
13713
13960
|
fieldName: "toRelations",
|
|
13714
|
-
fragmentDoc:
|
|
13961
|
+
fragmentDoc: chunkOCCUM5WH_cjs.RelationFragmentDoc,
|
|
13715
13962
|
variables,
|
|
13716
13963
|
isConnection: false,
|
|
13717
13964
|
isList: true,
|
|
@@ -13728,454 +13975,454 @@ var TableSubBuilder = class {
|
|
|
13728
13975
|
};
|
|
13729
13976
|
var AbortChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13730
13977
|
async fetch(variables) {
|
|
13731
|
-
const response = await this._syncEngine.mutate(
|
|
13978
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.AbortChatDocument, variables, MUTATION_CACHE_RULES["abortChat"]);
|
|
13732
13979
|
return response.abortChat;
|
|
13733
13980
|
}
|
|
13734
13981
|
};
|
|
13735
13982
|
var AddInsightToReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13736
13983
|
async fetch(variables, options) {
|
|
13737
|
-
const response = await this._syncEngine.mutate(
|
|
13984
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.AddInsightToReportDocument, variables, MUTATION_CACHE_RULES["addInsightToReport"]);
|
|
13738
13985
|
const data = response.addInsightToReport;
|
|
13739
13986
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
13740
13987
|
}
|
|
13741
13988
|
};
|
|
13742
13989
|
var CancelOauthFlowMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13743
13990
|
async fetch(variables) {
|
|
13744
|
-
const response = await this._syncEngine.mutate(
|
|
13991
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CancelOauthFlowDocument, variables, MUTATION_CACHE_RULES["cancelOauthFlow"]);
|
|
13745
13992
|
return response.cancelOauthFlow;
|
|
13746
13993
|
}
|
|
13747
13994
|
};
|
|
13748
13995
|
var CancelWorkspaceDeletionMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13749
13996
|
async fetch(variables) {
|
|
13750
|
-
const response = await this._syncEngine.mutate(
|
|
13997
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CancelWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["cancelWorkspaceDeletion"]);
|
|
13751
13998
|
return response.cancelWorkspaceDeletion;
|
|
13752
13999
|
}
|
|
13753
14000
|
};
|
|
13754
14001
|
var ConnectIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13755
14002
|
async fetch(variables, options) {
|
|
13756
|
-
const response = await this._syncEngine.mutate(
|
|
14003
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.ConnectIntegrationDocument, variables, MUTATION_CACHE_RULES["connectIntegration"]);
|
|
13757
14004
|
const data = response.connectIntegration;
|
|
13758
14005
|
return new CreateIntegrationOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
13759
14006
|
}
|
|
13760
14007
|
};
|
|
13761
14008
|
var ConsumePulseEventsMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13762
14009
|
async fetch(variables) {
|
|
13763
|
-
const response = await this._syncEngine.mutate(
|
|
14010
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.ConsumePulseEventsDocument, variables, MUTATION_CACHE_RULES["consumePulseEvents"]);
|
|
13764
14011
|
return response.consumePulseEvents;
|
|
13765
14012
|
}
|
|
13766
14013
|
};
|
|
13767
14014
|
var ContinueImportedChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13768
14015
|
async fetch(variables) {
|
|
13769
|
-
const response = await this._syncEngine.mutate(
|
|
14016
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.ContinueImportedChatDocument, variables, MUTATION_CACHE_RULES["continueImportedChat"]);
|
|
13770
14017
|
return response.continueImportedChat;
|
|
13771
14018
|
}
|
|
13772
14019
|
};
|
|
13773
14020
|
var ContinueInterpretationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13774
14021
|
async fetch(variables) {
|
|
13775
|
-
const response = await this._syncEngine.mutate(
|
|
14022
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.ContinueInterpretationDocument, variables, MUTATION_CACHE_RULES["continueInterpretation"]);
|
|
13776
14023
|
return response.continueInterpretation;
|
|
13777
14024
|
}
|
|
13778
14025
|
};
|
|
13779
14026
|
var CreateAgentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13780
14027
|
async fetch(variables, options) {
|
|
13781
|
-
const response = await this._syncEngine.mutate(
|
|
14028
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CreateAgentDocument, variables, MUTATION_CACHE_RULES["createAgent"]);
|
|
13782
14029
|
const data = response.createAgent;
|
|
13783
14030
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
13784
14031
|
}
|
|
13785
14032
|
};
|
|
13786
14033
|
var CreateChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13787
14034
|
async fetch(variables, options) {
|
|
13788
|
-
const response = await this._syncEngine.mutate(
|
|
14035
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CreateChatDocument, variables, MUTATION_CACHE_RULES["createChat"]);
|
|
13789
14036
|
const data = response.createChat;
|
|
13790
14037
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
13791
14038
|
}
|
|
13792
14039
|
};
|
|
13793
14040
|
var CreateDatabaseMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13794
14041
|
async fetch(variables, options) {
|
|
13795
|
-
const response = await this._syncEngine.mutate(
|
|
14042
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CreateDatabaseDocument, variables, MUTATION_CACHE_RULES["createDatabase"]);
|
|
13796
14043
|
const data = response.createDatabase;
|
|
13797
14044
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
13798
14045
|
}
|
|
13799
14046
|
};
|
|
13800
14047
|
var CreateDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13801
14048
|
async fetch(variables, options) {
|
|
13802
|
-
const response = await this._syncEngine.mutate(
|
|
14049
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CreateDocumentDocument, variables, MUTATION_CACHE_RULES["createDocument"]);
|
|
13803
14050
|
const data = response.createDocument;
|
|
13804
14051
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
13805
14052
|
}
|
|
13806
14053
|
};
|
|
13807
14054
|
var CreateFeedbackMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13808
14055
|
async fetch(variables, options) {
|
|
13809
|
-
const response = await this._syncEngine.mutate(
|
|
14056
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CreateFeedbackDocument, variables, MUTATION_CACHE_RULES["createFeedback"]);
|
|
13810
14057
|
const data = response.createFeedback;
|
|
13811
14058
|
return new Feedback(this._request, data, this._syncEngine, this._baseUrl);
|
|
13812
14059
|
}
|
|
13813
14060
|
};
|
|
13814
14061
|
var CreateFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13815
14062
|
async fetch(variables, options) {
|
|
13816
|
-
const response = await this._syncEngine.mutate(
|
|
14063
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CreateFolderDocument, variables, MUTATION_CACHE_RULES["createFolder"]);
|
|
13817
14064
|
const data = response.createFolder;
|
|
13818
14065
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
13819
14066
|
}
|
|
13820
14067
|
};
|
|
13821
14068
|
var CreateInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13822
14069
|
async fetch(variables, options) {
|
|
13823
|
-
const response = await this._syncEngine.mutate(
|
|
14070
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CreateInsightDocument, variables, MUTATION_CACHE_RULES["createInsight"]);
|
|
13824
14071
|
const data = response.createInsight;
|
|
13825
14072
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
13826
14073
|
}
|
|
13827
14074
|
};
|
|
13828
14075
|
var CreateIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13829
14076
|
async fetch(variables, options) {
|
|
13830
|
-
const response = await this._syncEngine.mutate(
|
|
14077
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CreateIntegrationDocument, variables, MUTATION_CACHE_RULES["createIntegration"]);
|
|
13831
14078
|
const data = response.createIntegration;
|
|
13832
14079
|
return new CreateIntegrationOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
13833
14080
|
}
|
|
13834
14081
|
};
|
|
13835
14082
|
var CreateReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13836
14083
|
async fetch(variables, options) {
|
|
13837
|
-
const response = await this._syncEngine.mutate(
|
|
14084
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CreateReportDocument, variables, MUTATION_CACHE_RULES["createReport"]);
|
|
13838
14085
|
const data = response.createReport;
|
|
13839
14086
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
13840
14087
|
}
|
|
13841
14088
|
};
|
|
13842
14089
|
var CreateTableMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13843
14090
|
async fetch(variables, options) {
|
|
13844
|
-
const response = await this._syncEngine.mutate(
|
|
14091
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CreateTableDocument, variables, MUTATION_CACHE_RULES["createTable"]);
|
|
13845
14092
|
const data = response.createTable;
|
|
13846
14093
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
13847
14094
|
}
|
|
13848
14095
|
};
|
|
13849
14096
|
var CreateUserSkillFileMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13850
14097
|
async fetch(variables, options) {
|
|
13851
|
-
const response = await this._syncEngine.mutate(
|
|
14098
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CreateUserSkillFileDocument, variables, MUTATION_CACHE_RULES["createUserSkillFile"]);
|
|
13852
14099
|
const data = response.createUserSkillFile;
|
|
13853
14100
|
return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13854
14101
|
}
|
|
13855
14102
|
};
|
|
13856
14103
|
var CreateUserSkillFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13857
14104
|
async fetch(variables, options) {
|
|
13858
|
-
const response = await this._syncEngine.mutate(
|
|
14105
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.CreateUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["createUserSkillFolder"]);
|
|
13859
14106
|
const data = response.createUserSkillFolder;
|
|
13860
14107
|
return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13861
14108
|
}
|
|
13862
14109
|
};
|
|
13863
14110
|
var DeleteAgentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13864
14111
|
async fetch(variables, options) {
|
|
13865
|
-
const response = await this._syncEngine.mutate(
|
|
14112
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DeleteAgentDocument, variables, MUTATION_CACHE_RULES["deleteAgent"]);
|
|
13866
14113
|
const data = response.deleteAgent;
|
|
13867
14114
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
13868
14115
|
}
|
|
13869
14116
|
};
|
|
13870
14117
|
var DeleteArtifactMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13871
14118
|
async fetch(variables, options) {
|
|
13872
|
-
const response = await this._syncEngine.mutate(
|
|
14119
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DeleteArtifactDocument, variables, MUTATION_CACHE_RULES["deleteArtifact"]);
|
|
13873
14120
|
const data = response.deleteArtifact;
|
|
13874
14121
|
return new Artifact(this._request, data, this._syncEngine, this._baseUrl);
|
|
13875
14122
|
}
|
|
13876
14123
|
};
|
|
13877
14124
|
var DeleteChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13878
14125
|
async fetch(variables, options) {
|
|
13879
|
-
const response = await this._syncEngine.mutate(
|
|
14126
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DeleteChatDocument, variables, MUTATION_CACHE_RULES["deleteChat"]);
|
|
13880
14127
|
const data = response.deleteChat;
|
|
13881
14128
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
13882
14129
|
}
|
|
13883
14130
|
};
|
|
13884
14131
|
var DeleteDatabaseMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13885
14132
|
async fetch(variables, options) {
|
|
13886
|
-
const response = await this._syncEngine.mutate(
|
|
14133
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DeleteDatabaseDocument, variables, MUTATION_CACHE_RULES["deleteDatabase"]);
|
|
13887
14134
|
const data = response.deleteDatabase;
|
|
13888
14135
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
13889
14136
|
}
|
|
13890
14137
|
};
|
|
13891
14138
|
var DeleteDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13892
14139
|
async fetch(variables, options) {
|
|
13893
|
-
const response = await this._syncEngine.mutate(
|
|
14140
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DeleteDocumentDocument, variables, MUTATION_CACHE_RULES["deleteDocument"]);
|
|
13894
14141
|
const data = response.deleteDocument;
|
|
13895
14142
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
13896
14143
|
}
|
|
13897
14144
|
};
|
|
13898
14145
|
var DeleteFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13899
14146
|
async fetch(variables, options) {
|
|
13900
|
-
const response = await this._syncEngine.mutate(
|
|
14147
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DeleteFolderDocument, variables, MUTATION_CACHE_RULES["deleteFolder"]);
|
|
13901
14148
|
const data = response.deleteFolder;
|
|
13902
14149
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
13903
14150
|
}
|
|
13904
14151
|
};
|
|
13905
14152
|
var DeleteInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13906
14153
|
async fetch(variables, options) {
|
|
13907
|
-
const response = await this._syncEngine.mutate(
|
|
14154
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DeleteInsightDocument, variables, MUTATION_CACHE_RULES["deleteInsight"]);
|
|
13908
14155
|
const data = response.deleteInsight;
|
|
13909
14156
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
13910
14157
|
}
|
|
13911
14158
|
};
|
|
13912
14159
|
var DeleteInsightsMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13913
14160
|
async fetch(variables, options) {
|
|
13914
|
-
const response = await this._syncEngine.mutate(
|
|
14161
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DeleteInsightsDocument, variables, MUTATION_CACHE_RULES["deleteInsights"]);
|
|
13915
14162
|
const data = response.deleteInsights;
|
|
13916
14163
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
13917
14164
|
}
|
|
13918
14165
|
};
|
|
13919
14166
|
var DeleteIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13920
14167
|
async fetch(variables) {
|
|
13921
|
-
const response = await this._syncEngine.mutate(
|
|
14168
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DeleteIntegrationDocument, variables, MUTATION_CACHE_RULES["deleteIntegration"]);
|
|
13922
14169
|
return response.deleteIntegration;
|
|
13923
14170
|
}
|
|
13924
14171
|
};
|
|
13925
14172
|
var DeleteReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13926
14173
|
async fetch(variables, options) {
|
|
13927
|
-
const response = await this._syncEngine.mutate(
|
|
14174
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DeleteReportDocument, variables, MUTATION_CACHE_RULES["deleteReport"]);
|
|
13928
14175
|
const data = response.deleteReport;
|
|
13929
14176
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
13930
14177
|
}
|
|
13931
14178
|
};
|
|
13932
14179
|
var DeleteTableMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13933
14180
|
async fetch(variables, options) {
|
|
13934
|
-
const response = await this._syncEngine.mutate(
|
|
14181
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DeleteTableDocument, variables, MUTATION_CACHE_RULES["deleteTable"]);
|
|
13935
14182
|
const data = response.deleteTable;
|
|
13936
14183
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
13937
14184
|
}
|
|
13938
14185
|
};
|
|
13939
14186
|
var DeleteUserSkillFileMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13940
14187
|
async fetch(variables, options) {
|
|
13941
|
-
const response = await this._syncEngine.mutate(
|
|
14188
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DeleteUserSkillFileDocument, variables, MUTATION_CACHE_RULES["deleteUserSkillFile"]);
|
|
13942
14189
|
const data = response.deleteUserSkillFile;
|
|
13943
14190
|
return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13944
14191
|
}
|
|
13945
14192
|
};
|
|
13946
14193
|
var DeleteUserSkillFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13947
14194
|
async fetch(variables, options) {
|
|
13948
|
-
const response = await this._syncEngine.mutate(
|
|
14195
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DeleteUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["deleteUserSkillFolder"]);
|
|
13949
14196
|
const data = response.deleteUserSkillFolder;
|
|
13950
14197
|
return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13951
14198
|
}
|
|
13952
14199
|
};
|
|
13953
14200
|
var DisconnectIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13954
14201
|
async fetch(variables) {
|
|
13955
|
-
const response = await this._syncEngine.mutate(
|
|
14202
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DisconnectIntegrationDocument, variables, MUTATION_CACHE_RULES["disconnectIntegration"]);
|
|
13956
14203
|
return response.disconnectIntegration;
|
|
13957
14204
|
}
|
|
13958
14205
|
};
|
|
13959
14206
|
var DismissPulseEventMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13960
14207
|
async fetch(variables, options) {
|
|
13961
|
-
const response = await this._syncEngine.mutate(
|
|
14208
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.DismissPulseEventDocument, variables, MUTATION_CACHE_RULES["dismissPulseEvent"]);
|
|
13962
14209
|
const data = response.dismissPulseEvent;
|
|
13963
14210
|
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
13964
14211
|
}
|
|
13965
14212
|
};
|
|
13966
14213
|
var ExecuteChatImportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13967
14214
|
async fetch(variables, options) {
|
|
13968
|
-
const response = await this._syncEngine.mutate(
|
|
14215
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.ExecuteChatImportDocument, variables, MUTATION_CACHE_RULES["executeChatImport"]);
|
|
13969
14216
|
const data = response.executeChatImport;
|
|
13970
14217
|
return new ChatImportExecuteOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
13971
14218
|
}
|
|
13972
14219
|
};
|
|
13973
14220
|
var GenerateUploadUriMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13974
14221
|
async fetch(variables, options) {
|
|
13975
|
-
const response = await this._syncEngine.mutate(
|
|
14222
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.GenerateUploadUriDocument, variables, MUTATION_CACHE_RULES["generateUploadUri"]);
|
|
13976
14223
|
const data = response.generateUploadUri;
|
|
13977
14224
|
return new FileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13978
14225
|
}
|
|
13979
14226
|
};
|
|
13980
14227
|
var PreviewChatImportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13981
14228
|
async fetch(variables, options) {
|
|
13982
|
-
const response = await this._syncEngine.mutate(
|
|
14229
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.PreviewChatImportDocument, variables, MUTATION_CACHE_RULES["previewChatImport"]);
|
|
13983
14230
|
const data = response.previewChatImport;
|
|
13984
14231
|
return new ChatImportPreviewOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
13985
14232
|
}
|
|
13986
14233
|
};
|
|
13987
14234
|
var ReanalyzeDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13988
14235
|
async fetch(variables, options) {
|
|
13989
|
-
const response = await this._syncEngine.mutate(
|
|
14236
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.ReanalyzeDocumentDocument, variables, MUTATION_CACHE_RULES["reanalyzeDocument"]);
|
|
13990
14237
|
const data = response.reanalyzeDocument;
|
|
13991
14238
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
13992
14239
|
}
|
|
13993
14240
|
};
|
|
13994
14241
|
var RefineMindInstructionMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13995
14242
|
async fetch(variables) {
|
|
13996
|
-
const response = await this._syncEngine.mutate(
|
|
14243
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.RefineMindInstructionDocument, variables, MUTATION_CACHE_RULES["refineMindInstruction"]);
|
|
13997
14244
|
return response.refineMindInstruction;
|
|
13998
14245
|
}
|
|
13999
14246
|
};
|
|
14000
14247
|
var RefreshDatabaseSchemaMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14001
14248
|
async fetch(variables) {
|
|
14002
|
-
const response = await this._syncEngine.mutate(
|
|
14249
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.RefreshDatabaseSchemaDocument, variables, MUTATION_CACHE_RULES["refreshDatabaseSchema"]);
|
|
14003
14250
|
return response.refreshDatabaseSchema;
|
|
14004
14251
|
}
|
|
14005
14252
|
};
|
|
14006
14253
|
var RefreshInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14007
14254
|
async fetch(variables, options) {
|
|
14008
|
-
const response = await this._syncEngine.mutate(
|
|
14255
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.RefreshInsightDocument, variables, MUTATION_CACHE_RULES["refreshInsight"]);
|
|
14009
14256
|
const data = response.refreshInsight;
|
|
14010
14257
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
14011
14258
|
}
|
|
14012
14259
|
};
|
|
14013
14260
|
var ReinterpretSourceMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14014
14261
|
async fetch(variables) {
|
|
14015
|
-
const response = await this._syncEngine.mutate(
|
|
14262
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.ReinterpretSourceDocument, variables, MUTATION_CACHE_RULES["reinterpretSource"]);
|
|
14016
14263
|
return response.reinterpretSource;
|
|
14017
14264
|
}
|
|
14018
14265
|
};
|
|
14019
14266
|
var ReinterpretSourcesOfuserMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14020
14267
|
async fetch(variables) {
|
|
14021
|
-
const response = await this._syncEngine.mutate(
|
|
14268
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.ReinterpretSourcesOfuserDocument, variables, MUTATION_CACHE_RULES["reinterpretSourcesOfuser"]);
|
|
14022
14269
|
return response.reinterpretSourcesOfuser;
|
|
14023
14270
|
}
|
|
14024
14271
|
};
|
|
14025
14272
|
var RelocateInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14026
14273
|
async fetch(variables, options) {
|
|
14027
|
-
const response = await this._syncEngine.mutate(
|
|
14274
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.RelocateInsightDocument, variables, MUTATION_CACHE_RULES["relocateInsight"]);
|
|
14028
14275
|
const data = response.relocateInsight;
|
|
14029
14276
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
14030
14277
|
}
|
|
14031
14278
|
};
|
|
14032
14279
|
var RemoveInsightFromReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14033
14280
|
async fetch(variables, options) {
|
|
14034
|
-
const response = await this._syncEngine.mutate(
|
|
14281
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.RemoveInsightFromReportDocument, variables, MUTATION_CACHE_RULES["removeInsightFromReport"]);
|
|
14035
14282
|
const data = response.removeInsightFromReport;
|
|
14036
14283
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
14037
14284
|
}
|
|
14038
14285
|
};
|
|
14039
14286
|
var ResetWorkspaceMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14040
14287
|
async fetch(variables) {
|
|
14041
|
-
const response = await this._syncEngine.mutate(
|
|
14288
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.ResetWorkspaceDocument, variables, MUTATION_CACHE_RULES["resetWorkspace"]);
|
|
14042
14289
|
return response.resetWorkspace;
|
|
14043
14290
|
}
|
|
14044
14291
|
};
|
|
14045
14292
|
var ResolvePulseEventMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14046
14293
|
async fetch(variables, options) {
|
|
14047
|
-
const response = await this._syncEngine.mutate(
|
|
14294
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.ResolvePulseEventDocument, variables, MUTATION_CACHE_RULES["resolvePulseEvent"]);
|
|
14048
14295
|
const data = response.resolvePulseEvent;
|
|
14049
14296
|
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
14050
14297
|
}
|
|
14051
14298
|
};
|
|
14052
14299
|
var ScheduleWorkspaceDeletionMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14053
14300
|
async fetch(variables, options) {
|
|
14054
|
-
const response = await this._syncEngine.mutate(
|
|
14301
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.ScheduleWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["scheduleWorkspaceDeletion"]);
|
|
14055
14302
|
const data = response.scheduleWorkspaceDeletion;
|
|
14056
14303
|
return new WorkspaceDeleteSchedule(this._request, data, this._syncEngine, this._baseUrl);
|
|
14057
14304
|
}
|
|
14058
14305
|
};
|
|
14059
14306
|
var SendMessageMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14060
14307
|
async fetch(variables, options) {
|
|
14061
|
-
const response = await this._syncEngine.mutate(
|
|
14308
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.SendMessageDocument, variables, MUTATION_CACHE_RULES["sendMessage"]);
|
|
14062
14309
|
const data = response.sendMessage;
|
|
14063
14310
|
return new ChatMessage(this._request, data, this._syncEngine, this._baseUrl);
|
|
14064
14311
|
}
|
|
14065
14312
|
};
|
|
14066
14313
|
var SetDatabasePrimaryKeyMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14067
14314
|
async fetch(variables) {
|
|
14068
|
-
const response = await this._syncEngine.mutate(
|
|
14315
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.SetDatabasePrimaryKeyDocument, variables, MUTATION_CACHE_RULES["setDatabasePrimaryKey"]);
|
|
14069
14316
|
return response.setDatabasePrimaryKey;
|
|
14070
14317
|
}
|
|
14071
14318
|
};
|
|
14072
14319
|
var UpdateAgentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14073
14320
|
async fetch(variables, options) {
|
|
14074
|
-
const response = await this._syncEngine.mutate(
|
|
14321
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateAgentDocument, variables, MUTATION_CACHE_RULES["updateAgent"]);
|
|
14075
14322
|
const data = response.updateAgent;
|
|
14076
14323
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
14077
14324
|
}
|
|
14078
14325
|
};
|
|
14079
14326
|
var UpdateArtifactNameMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14080
14327
|
async fetch(variables, options) {
|
|
14081
|
-
const response = await this._syncEngine.mutate(
|
|
14328
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateArtifactNameDocument, variables, MUTATION_CACHE_RULES["updateArtifactName"]);
|
|
14082
14329
|
const data = response.updateArtifactName;
|
|
14083
14330
|
return new Artifact(this._request, data, this._syncEngine, this._baseUrl);
|
|
14084
14331
|
}
|
|
14085
14332
|
};
|
|
14086
14333
|
var UpdateChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14087
14334
|
async fetch(variables, options) {
|
|
14088
|
-
const response = await this._syncEngine.mutate(
|
|
14335
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateChatDocument, variables, MUTATION_CACHE_RULES["updateChat"]);
|
|
14089
14336
|
const data = response.updateChat;
|
|
14090
14337
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
14091
14338
|
}
|
|
14092
14339
|
};
|
|
14093
14340
|
var UpdateDatabaseMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14094
14341
|
async fetch(variables, options) {
|
|
14095
|
-
const response = await this._syncEngine.mutate(
|
|
14342
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateDatabaseDocument, variables, MUTATION_CACHE_RULES["updateDatabase"]);
|
|
14096
14343
|
const data = response.updateDatabase;
|
|
14097
14344
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
14098
14345
|
}
|
|
14099
14346
|
};
|
|
14100
14347
|
var UpdateDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14101
14348
|
async fetch(variables, options) {
|
|
14102
|
-
const response = await this._syncEngine.mutate(
|
|
14349
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateDocumentDocument, variables, MUTATION_CACHE_RULES["updateDocument"]);
|
|
14103
14350
|
const data = response.updateDocument;
|
|
14104
14351
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
14105
14352
|
}
|
|
14106
14353
|
};
|
|
14107
14354
|
var UpdateFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14108
14355
|
async fetch(variables, options) {
|
|
14109
|
-
const response = await this._syncEngine.mutate(
|
|
14356
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateFolderDocument, variables, MUTATION_CACHE_RULES["updateFolder"]);
|
|
14110
14357
|
const data = response.updateFolder;
|
|
14111
14358
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
14112
14359
|
}
|
|
14113
14360
|
};
|
|
14114
14361
|
var UpdateInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14115
14362
|
async fetch(variables, options) {
|
|
14116
|
-
const response = await this._syncEngine.mutate(
|
|
14363
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateInsightDocument, variables, MUTATION_CACHE_RULES["updateInsight"]);
|
|
14117
14364
|
const data = response.updateInsight;
|
|
14118
14365
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
14119
14366
|
}
|
|
14120
14367
|
};
|
|
14121
14368
|
var UpdateInsightInReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14122
14369
|
async fetch(variables, options) {
|
|
14123
|
-
const response = await this._syncEngine.mutate(
|
|
14370
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateInsightInReportDocument, variables, MUTATION_CACHE_RULES["updateInsightInReport"]);
|
|
14124
14371
|
const data = response.updateInsightInReport;
|
|
14125
14372
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
14126
14373
|
}
|
|
14127
14374
|
};
|
|
14128
14375
|
var UpdateInsightThumbnailMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14129
14376
|
async fetch(variables) {
|
|
14130
|
-
const response = await this._syncEngine.mutate(
|
|
14377
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateInsightThumbnailDocument, variables, MUTATION_CACHE_RULES["updateInsightThumbnail"]);
|
|
14131
14378
|
return response.updateInsightThumbnail;
|
|
14132
14379
|
}
|
|
14133
14380
|
};
|
|
14134
14381
|
var UpdateInterpMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14135
14382
|
async fetch(variables, options) {
|
|
14136
|
-
const response = await this._syncEngine.mutate(
|
|
14383
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateInterpDocument, variables, MUTATION_CACHE_RULES["updateInterp"]);
|
|
14137
14384
|
const data = response.updateInterp;
|
|
14138
14385
|
return new Interpretation(this._request, data, this._syncEngine, this._baseUrl);
|
|
14139
14386
|
}
|
|
14140
14387
|
};
|
|
14141
14388
|
var UpdateLiveContextMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14142
14389
|
async fetch(variables, options) {
|
|
14143
|
-
const response = await this._syncEngine.mutate(
|
|
14390
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateLiveContextDocument, variables, MUTATION_CACHE_RULES["updateLiveContext"]);
|
|
14144
14391
|
const data = response.updateLiveContext;
|
|
14145
14392
|
return new LiveContext(this._request, data, this._syncEngine, this._baseUrl);
|
|
14146
14393
|
}
|
|
14147
14394
|
};
|
|
14148
14395
|
var UpdatePulseTriggerMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14149
14396
|
async fetch(variables, options) {
|
|
14150
|
-
const response = await this._syncEngine.mutate(
|
|
14397
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdatePulseTriggerDocument, variables, MUTATION_CACHE_RULES["updatePulseTrigger"]);
|
|
14151
14398
|
const data = response.updatePulseTrigger;
|
|
14152
14399
|
return new PulseTriggerSettingModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
14153
14400
|
}
|
|
14154
14401
|
};
|
|
14155
14402
|
var UpdateReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14156
14403
|
async fetch(variables, options) {
|
|
14157
|
-
const response = await this._syncEngine.mutate(
|
|
14404
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateReportDocument, variables, MUTATION_CACHE_RULES["updateReport"]);
|
|
14158
14405
|
const data = response.updateReport;
|
|
14159
14406
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
14160
14407
|
}
|
|
14161
14408
|
};
|
|
14162
14409
|
var UpdateTableMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14163
14410
|
async fetch(variables, options) {
|
|
14164
|
-
const response = await this._syncEngine.mutate(
|
|
14411
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateTableDocument, variables, MUTATION_CACHE_RULES["updateTable"]);
|
|
14165
14412
|
const data = response.updateTable;
|
|
14166
14413
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
14167
14414
|
}
|
|
14168
14415
|
};
|
|
14169
14416
|
var UpdateUserSkillFileMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14170
14417
|
async fetch(variables, options) {
|
|
14171
|
-
const response = await this._syncEngine.mutate(
|
|
14418
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateUserSkillFileDocument, variables, MUTATION_CACHE_RULES["updateUserSkillFile"]);
|
|
14172
14419
|
const data = response.updateUserSkillFile;
|
|
14173
14420
|
return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
14174
14421
|
}
|
|
14175
14422
|
};
|
|
14176
14423
|
var UpdateUserSkillFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14177
14424
|
async fetch(variables, options) {
|
|
14178
|
-
const response = await this._syncEngine.mutate(
|
|
14425
|
+
const response = await this._syncEngine.mutate(chunkOCCUM5WH_cjs.UpdateUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["updateUserSkillFolder"]);
|
|
14179
14426
|
const data = response.updateUserSkillFolder;
|
|
14180
14427
|
return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
14181
14428
|
}
|
|
@@ -14189,7 +14436,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14189
14436
|
}
|
|
14190
14437
|
async fetch(options) {
|
|
14191
14438
|
const variables = this._variables;
|
|
14192
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14439
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.AgentDocument, "agent", this._includes, variables);
|
|
14193
14440
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "agent");
|
|
14194
14441
|
const data = response.agent;
|
|
14195
14442
|
const instance = new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14201,7 +14448,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14201
14448
|
watch(options) {
|
|
14202
14449
|
const variables = this._variables;
|
|
14203
14450
|
const includes = this._includes;
|
|
14204
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14451
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.AgentDocument, "agent", includes, variables);
|
|
14205
14452
|
const raw = this._syncEngine.watch(
|
|
14206
14453
|
queryDoc,
|
|
14207
14454
|
mergedVars,
|
|
@@ -14231,7 +14478,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14231
14478
|
}
|
|
14232
14479
|
/** Include chats in this query (Smart Fetch — single HTTP request). */
|
|
14233
14480
|
chats(variables, builder) {
|
|
14234
|
-
const info = extractIncludeInfo(
|
|
14481
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
14235
14482
|
let children;
|
|
14236
14483
|
if (builder) {
|
|
14237
14484
|
const sub = new ChatSubBuilder();
|
|
@@ -14240,7 +14487,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14240
14487
|
}
|
|
14241
14488
|
this._includes.push({
|
|
14242
14489
|
fieldName: "chats",
|
|
14243
|
-
fragmentDoc:
|
|
14490
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatConnectionFragmentDoc,
|
|
14244
14491
|
variables,
|
|
14245
14492
|
isConnection: true,
|
|
14246
14493
|
isList: false,
|
|
@@ -14265,18 +14512,18 @@ var Agent_ChatsQuery = class _Agent_ChatsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
14265
14512
|
}
|
|
14266
14513
|
async fetch(options) {
|
|
14267
14514
|
const variables = this._variables;
|
|
14268
|
-
const response = await this._syncEngine.query(
|
|
14515
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Agent_ChatsDocument, variables, "agent");
|
|
14269
14516
|
const data = response.agent?.chats;
|
|
14270
14517
|
return new ChatConnection(this._request, (conn, opts) => new _Agent_ChatsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
14271
14518
|
}
|
|
14272
14519
|
watch(options) {
|
|
14273
14520
|
const variables = this._variables;
|
|
14274
14521
|
const raw = this._syncEngine.watch(
|
|
14275
|
-
|
|
14522
|
+
chunkOCCUM5WH_cjs.Agent_ChatsDocument,
|
|
14276
14523
|
variables,
|
|
14277
14524
|
"agent",
|
|
14278
14525
|
async (db) => {
|
|
14279
|
-
const qr = await db._queryResults.get(buildQueryKey("agent", variables,
|
|
14526
|
+
const qr = await db._queryResults.get(buildQueryKey("agent", variables, chunkOCCUM5WH_cjs.Agent_ChatsDocument));
|
|
14280
14527
|
const nodes = qr ? await db.table("chats").bulkGet(qr.entityIds) : [];
|
|
14281
14528
|
return { agent: { chats: { __typename: "ChatConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
14282
14529
|
}
|
|
@@ -14296,7 +14543,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14296
14543
|
}
|
|
14297
14544
|
async fetch(options) {
|
|
14298
14545
|
const variables = this._variables;
|
|
14299
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14546
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.AgentsDocument, "agents", this._includes, variables, true);
|
|
14300
14547
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "agents");
|
|
14301
14548
|
const data = response.agents;
|
|
14302
14549
|
const connection = new AgentConnection(this._request, (conn, opts) => new _AgentsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -14313,7 +14560,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14313
14560
|
const subscriptionId = crypto.randomUUID();
|
|
14314
14561
|
const includes = this._includes;
|
|
14315
14562
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
14316
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14563
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.AgentsDocument, "agents", includes, variables, true);
|
|
14317
14564
|
const raw = this._syncEngine.watch(
|
|
14318
14565
|
queryDoc,
|
|
14319
14566
|
mergedVars,
|
|
@@ -14348,7 +14595,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14348
14595
|
}
|
|
14349
14596
|
/** Include chats in this query (Smart Fetch — single HTTP request). */
|
|
14350
14597
|
chats(variables, builder) {
|
|
14351
|
-
const info = extractIncludeInfo(
|
|
14598
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
14352
14599
|
let children;
|
|
14353
14600
|
if (builder) {
|
|
14354
14601
|
const sub = new ChatSubBuilder();
|
|
@@ -14357,7 +14604,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14357
14604
|
}
|
|
14358
14605
|
this._includes.push({
|
|
14359
14606
|
fieldName: "chats",
|
|
14360
|
-
fragmentDoc:
|
|
14607
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatConnectionFragmentDoc,
|
|
14361
14608
|
variables,
|
|
14362
14609
|
isConnection: true,
|
|
14363
14610
|
isList: false,
|
|
@@ -14383,7 +14630,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14383
14630
|
}
|
|
14384
14631
|
async fetch(options) {
|
|
14385
14632
|
const variables = this._variables;
|
|
14386
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14633
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ArtifactDocument, "artifact", this._includes, variables);
|
|
14387
14634
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "artifact");
|
|
14388
14635
|
const data = response.artifact;
|
|
14389
14636
|
const instance = new Artifact(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14395,7 +14642,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14395
14642
|
watch(options) {
|
|
14396
14643
|
const variables = this._variables;
|
|
14397
14644
|
const includes = this._includes;
|
|
14398
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14645
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ArtifactDocument, "artifact", includes, variables);
|
|
14399
14646
|
const raw = this._syncEngine.watch(
|
|
14400
14647
|
queryDoc,
|
|
14401
14648
|
mergedVars,
|
|
@@ -14425,7 +14672,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14425
14672
|
}
|
|
14426
14673
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
14427
14674
|
chat(variables, builder) {
|
|
14428
|
-
const info = extractIncludeInfo(
|
|
14675
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
14429
14676
|
let children;
|
|
14430
14677
|
if (builder) {
|
|
14431
14678
|
const sub = new ChatSubBuilder();
|
|
@@ -14434,7 +14681,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14434
14681
|
}
|
|
14435
14682
|
this._includes.push({
|
|
14436
14683
|
fieldName: "chat",
|
|
14437
|
-
fragmentDoc:
|
|
14684
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatFragmentDoc,
|
|
14438
14685
|
variables,
|
|
14439
14686
|
isConnection: false,
|
|
14440
14687
|
isList: false,
|
|
@@ -14451,10 +14698,10 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14451
14698
|
}
|
|
14452
14699
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
14453
14700
|
file(variables) {
|
|
14454
|
-
const info = extractIncludeInfo(
|
|
14701
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
14455
14702
|
this._includes.push({
|
|
14456
14703
|
fieldName: "file",
|
|
14457
|
-
fragmentDoc:
|
|
14704
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FileFragmentDoc,
|
|
14458
14705
|
variables,
|
|
14459
14706
|
isConnection: false,
|
|
14460
14707
|
isList: false,
|
|
@@ -14470,7 +14717,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14470
14717
|
}
|
|
14471
14718
|
/** Include message in this query (Smart Fetch — single HTTP request). */
|
|
14472
14719
|
message(variables, builder) {
|
|
14473
|
-
const info = extractIncludeInfo(
|
|
14720
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
14474
14721
|
let children;
|
|
14475
14722
|
if (builder) {
|
|
14476
14723
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -14479,7 +14726,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14479
14726
|
}
|
|
14480
14727
|
this._includes.push({
|
|
14481
14728
|
fieldName: "message",
|
|
14482
|
-
fragmentDoc:
|
|
14729
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatMessageFragmentDoc,
|
|
14483
14730
|
variables,
|
|
14484
14731
|
isConnection: false,
|
|
14485
14732
|
isList: false,
|
|
@@ -14503,14 +14750,14 @@ var Artifact_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14503
14750
|
}
|
|
14504
14751
|
async fetch(options) {
|
|
14505
14752
|
const variables = this._variables;
|
|
14506
|
-
const response = await this._syncEngine.query(
|
|
14753
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Artifact_ChatDocument, variables, "artifact");
|
|
14507
14754
|
const data = response.artifact?.chat;
|
|
14508
14755
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14509
14756
|
}
|
|
14510
14757
|
watch(options) {
|
|
14511
14758
|
const variables = this._variables;
|
|
14512
14759
|
const raw = this._syncEngine.watch(
|
|
14513
|
-
|
|
14760
|
+
chunkOCCUM5WH_cjs.Artifact_ChatDocument,
|
|
14514
14761
|
variables,
|
|
14515
14762
|
"artifact",
|
|
14516
14763
|
async (db) => {
|
|
@@ -14533,14 +14780,14 @@ var Artifact_Chat_InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14533
14780
|
}
|
|
14534
14781
|
async fetch(options) {
|
|
14535
14782
|
const variables = this._variables;
|
|
14536
|
-
const response = await this._syncEngine.query(
|
|
14783
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Artifact_Chat_InsightDocument, variables, "artifact");
|
|
14537
14784
|
const data = response.artifact?.chat?.insight;
|
|
14538
14785
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14539
14786
|
}
|
|
14540
14787
|
watch(options) {
|
|
14541
14788
|
const variables = this._variables;
|
|
14542
14789
|
const raw = this._syncEngine.watch(
|
|
14543
|
-
|
|
14790
|
+
chunkOCCUM5WH_cjs.Artifact_Chat_InsightDocument,
|
|
14544
14791
|
variables,
|
|
14545
14792
|
"artifact",
|
|
14546
14793
|
async (db) => {
|
|
@@ -14563,14 +14810,14 @@ var Artifact_FileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14563
14810
|
}
|
|
14564
14811
|
async fetch(options) {
|
|
14565
14812
|
const variables = this._variables;
|
|
14566
|
-
const response = await this._syncEngine.query(
|
|
14813
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Artifact_FileDocument, variables, "artifact");
|
|
14567
14814
|
const data = response.artifact?.file;
|
|
14568
14815
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14569
14816
|
}
|
|
14570
14817
|
watch(options) {
|
|
14571
14818
|
const variables = this._variables;
|
|
14572
14819
|
const raw = this._syncEngine.watch(
|
|
14573
|
-
|
|
14820
|
+
chunkOCCUM5WH_cjs.Artifact_FileDocument,
|
|
14574
14821
|
variables,
|
|
14575
14822
|
"artifact",
|
|
14576
14823
|
async (db) => {
|
|
@@ -14593,14 +14840,14 @@ var Artifact_MessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14593
14840
|
}
|
|
14594
14841
|
async fetch(options) {
|
|
14595
14842
|
const variables = this._variables;
|
|
14596
|
-
const response = await this._syncEngine.query(
|
|
14843
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Artifact_MessageDocument, variables, "artifact");
|
|
14597
14844
|
const data = response.artifact?.message;
|
|
14598
14845
|
return data ? new ChatMessage(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14599
14846
|
}
|
|
14600
14847
|
watch(options) {
|
|
14601
14848
|
const variables = this._variables;
|
|
14602
14849
|
const raw = this._syncEngine.watch(
|
|
14603
|
-
|
|
14850
|
+
chunkOCCUM5WH_cjs.Artifact_MessageDocument,
|
|
14604
14851
|
variables,
|
|
14605
14852
|
"artifact",
|
|
14606
14853
|
async (db) => {
|
|
@@ -14623,14 +14870,14 @@ var Artifact_Message_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14623
14870
|
}
|
|
14624
14871
|
async fetch(options) {
|
|
14625
14872
|
const variables = this._variables;
|
|
14626
|
-
const response = await this._syncEngine.query(
|
|
14873
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Artifact_Message_ChatDocument, variables, "artifact");
|
|
14627
14874
|
const data = response.artifact?.message?.chat;
|
|
14628
14875
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14629
14876
|
}
|
|
14630
14877
|
watch(options) {
|
|
14631
14878
|
const variables = this._variables;
|
|
14632
14879
|
const raw = this._syncEngine.watch(
|
|
14633
|
-
|
|
14880
|
+
chunkOCCUM5WH_cjs.Artifact_Message_ChatDocument,
|
|
14634
14881
|
variables,
|
|
14635
14882
|
"artifact",
|
|
14636
14883
|
async (db) => {
|
|
@@ -14652,7 +14899,7 @@ var Artifact_Message_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14652
14899
|
this._variables = variables;
|
|
14653
14900
|
}
|
|
14654
14901
|
async fetch(options) {
|
|
14655
|
-
const response = await this._syncEngine.query(
|
|
14902
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Artifact_Message_ContentsDocument, this._variables, "artifact");
|
|
14656
14903
|
const data = response.artifact?.message?.contents;
|
|
14657
14904
|
if (!Array.isArray(data)) return [];
|
|
14658
14905
|
return data.map((item) => new ContentBlock(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -14666,14 +14913,14 @@ var Artifact_Message_FeedbackQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14666
14913
|
}
|
|
14667
14914
|
async fetch(options) {
|
|
14668
14915
|
const variables = this._variables;
|
|
14669
|
-
const response = await this._syncEngine.query(
|
|
14916
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Artifact_Message_FeedbackDocument, variables, "artifact");
|
|
14670
14917
|
const data = response.artifact?.message?.feedback;
|
|
14671
14918
|
return data ? new Feedback(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14672
14919
|
}
|
|
14673
14920
|
watch(options) {
|
|
14674
14921
|
const variables = this._variables;
|
|
14675
14922
|
const raw = this._syncEngine.watch(
|
|
14676
|
-
|
|
14923
|
+
chunkOCCUM5WH_cjs.Artifact_Message_FeedbackDocument,
|
|
14677
14924
|
variables,
|
|
14678
14925
|
"artifact",
|
|
14679
14926
|
async (db) => {
|
|
@@ -14697,7 +14944,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14697
14944
|
}
|
|
14698
14945
|
async fetch(options) {
|
|
14699
14946
|
const variables = this._variables;
|
|
14700
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14947
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ArtifactsDocument, "artifacts", this._includes, variables, true);
|
|
14701
14948
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "artifacts");
|
|
14702
14949
|
const data = response.artifacts;
|
|
14703
14950
|
const connection = new ArtifactConnection(this._request, (conn, opts) => new _ArtifactsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -14714,7 +14961,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14714
14961
|
const subscriptionId = crypto.randomUUID();
|
|
14715
14962
|
const includes = this._includes;
|
|
14716
14963
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
14717
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14964
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ArtifactsDocument, "artifacts", includes, variables, true);
|
|
14718
14965
|
const raw = this._syncEngine.watch(
|
|
14719
14966
|
queryDoc,
|
|
14720
14967
|
mergedVars,
|
|
@@ -14749,7 +14996,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14749
14996
|
}
|
|
14750
14997
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
14751
14998
|
chat(variables, builder) {
|
|
14752
|
-
const info = extractIncludeInfo(
|
|
14999
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
14753
15000
|
let children;
|
|
14754
15001
|
if (builder) {
|
|
14755
15002
|
const sub = new ChatSubBuilder();
|
|
@@ -14758,7 +15005,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14758
15005
|
}
|
|
14759
15006
|
this._includes.push({
|
|
14760
15007
|
fieldName: "chat",
|
|
14761
|
-
fragmentDoc:
|
|
15008
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatFragmentDoc,
|
|
14762
15009
|
variables,
|
|
14763
15010
|
isConnection: false,
|
|
14764
15011
|
isList: false,
|
|
@@ -14775,10 +15022,10 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14775
15022
|
}
|
|
14776
15023
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
14777
15024
|
file(variables) {
|
|
14778
|
-
const info = extractIncludeInfo(
|
|
15025
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
14779
15026
|
this._includes.push({
|
|
14780
15027
|
fieldName: "file",
|
|
14781
|
-
fragmentDoc:
|
|
15028
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FileFragmentDoc,
|
|
14782
15029
|
variables,
|
|
14783
15030
|
isConnection: false,
|
|
14784
15031
|
isList: false,
|
|
@@ -14794,7 +15041,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14794
15041
|
}
|
|
14795
15042
|
/** Include message in this query (Smart Fetch — single HTTP request). */
|
|
14796
15043
|
message(variables, builder) {
|
|
14797
|
-
const info = extractIncludeInfo(
|
|
15044
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
14798
15045
|
let children;
|
|
14799
15046
|
if (builder) {
|
|
14800
15047
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -14803,7 +15050,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14803
15050
|
}
|
|
14804
15051
|
this._includes.push({
|
|
14805
15052
|
fieldName: "message",
|
|
14806
|
-
fragmentDoc:
|
|
15053
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatMessageFragmentDoc,
|
|
14807
15054
|
variables,
|
|
14808
15055
|
isConnection: false,
|
|
14809
15056
|
isList: false,
|
|
@@ -14828,7 +15075,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14828
15075
|
}
|
|
14829
15076
|
async fetch(options) {
|
|
14830
15077
|
const variables = this._variables;
|
|
14831
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15078
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ChatDocument, "chat", this._includes, variables);
|
|
14832
15079
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chat");
|
|
14833
15080
|
const data = response.chat;
|
|
14834
15081
|
const instance = new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14840,7 +15087,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14840
15087
|
watch(options) {
|
|
14841
15088
|
const variables = this._variables;
|
|
14842
15089
|
const includes = this._includes;
|
|
14843
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15090
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ChatDocument, "chat", includes, variables);
|
|
14844
15091
|
const raw = this._syncEngine.watch(
|
|
14845
15092
|
queryDoc,
|
|
14846
15093
|
mergedVars,
|
|
@@ -14870,7 +15117,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14870
15117
|
}
|
|
14871
15118
|
/** Include agents in this query (Smart Fetch — single HTTP request). */
|
|
14872
15119
|
agents(variables, builder) {
|
|
14873
|
-
const info = extractIncludeInfo(
|
|
15120
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
14874
15121
|
let children;
|
|
14875
15122
|
if (builder) {
|
|
14876
15123
|
const sub = new AgentSubBuilder();
|
|
@@ -14879,7 +15126,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14879
15126
|
}
|
|
14880
15127
|
this._includes.push({
|
|
14881
15128
|
fieldName: "agents",
|
|
14882
|
-
fragmentDoc:
|
|
15129
|
+
fragmentDoc: chunkOCCUM5WH_cjs.AgentConnectionFragmentDoc,
|
|
14883
15130
|
variables,
|
|
14884
15131
|
isConnection: true,
|
|
14885
15132
|
isList: false,
|
|
@@ -14897,7 +15144,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14897
15144
|
}
|
|
14898
15145
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
14899
15146
|
artifacts(variables, builder) {
|
|
14900
|
-
const info = extractIncludeInfo(
|
|
15147
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
14901
15148
|
let children;
|
|
14902
15149
|
if (builder) {
|
|
14903
15150
|
const sub = new ArtifactSubBuilder();
|
|
@@ -14906,7 +15153,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14906
15153
|
}
|
|
14907
15154
|
this._includes.push({
|
|
14908
15155
|
fieldName: "artifacts",
|
|
14909
|
-
fragmentDoc:
|
|
15156
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ArtifactConnectionFragmentDoc,
|
|
14910
15157
|
variables,
|
|
14911
15158
|
isConnection: true,
|
|
14912
15159
|
isList: false,
|
|
@@ -14924,7 +15171,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14924
15171
|
}
|
|
14925
15172
|
/** Include insight in this query (Smart Fetch — single HTTP request). */
|
|
14926
15173
|
insight(variables, builder) {
|
|
14927
|
-
const info = extractIncludeInfo(
|
|
15174
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
14928
15175
|
let children;
|
|
14929
15176
|
if (builder) {
|
|
14930
15177
|
const sub = new InsightSubBuilder();
|
|
@@ -14933,7 +15180,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14933
15180
|
}
|
|
14934
15181
|
this._includes.push({
|
|
14935
15182
|
fieldName: "insight",
|
|
14936
|
-
fragmentDoc:
|
|
15183
|
+
fragmentDoc: chunkOCCUM5WH_cjs.InsightFragmentDoc,
|
|
14937
15184
|
variables,
|
|
14938
15185
|
isConnection: false,
|
|
14939
15186
|
isList: false,
|
|
@@ -14950,7 +15197,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14950
15197
|
}
|
|
14951
15198
|
/** Include messages in this query (Smart Fetch — single HTTP request). */
|
|
14952
15199
|
messages(variables, builder) {
|
|
14953
|
-
const info = extractIncludeInfo(
|
|
15200
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
14954
15201
|
let children;
|
|
14955
15202
|
if (builder) {
|
|
14956
15203
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -14959,7 +15206,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14959
15206
|
}
|
|
14960
15207
|
this._includes.push({
|
|
14961
15208
|
fieldName: "messages",
|
|
14962
|
-
fragmentDoc:
|
|
15209
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatMessageConnectionFragmentDoc,
|
|
14963
15210
|
variables,
|
|
14964
15211
|
isConnection: true,
|
|
14965
15212
|
isList: false,
|
|
@@ -14984,18 +15231,18 @@ var Chat_AgentsQuery = class _Chat_AgentsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
14984
15231
|
}
|
|
14985
15232
|
async fetch(options) {
|
|
14986
15233
|
const variables = this._variables;
|
|
14987
|
-
const response = await this._syncEngine.query(
|
|
15234
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Chat_AgentsDocument, variables, "chat");
|
|
14988
15235
|
const data = response.chat?.agents;
|
|
14989
15236
|
return new AgentConnection(this._request, (conn, opts) => new _Chat_AgentsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
14990
15237
|
}
|
|
14991
15238
|
watch(options) {
|
|
14992
15239
|
const variables = this._variables;
|
|
14993
15240
|
const raw = this._syncEngine.watch(
|
|
14994
|
-
|
|
15241
|
+
chunkOCCUM5WH_cjs.Chat_AgentsDocument,
|
|
14995
15242
|
variables,
|
|
14996
15243
|
"chat",
|
|
14997
15244
|
async (db) => {
|
|
14998
|
-
const qr = await db._queryResults.get(buildQueryKey("chat", variables,
|
|
15245
|
+
const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunkOCCUM5WH_cjs.Chat_AgentsDocument));
|
|
14999
15246
|
const nodes = qr ? await db.table("agents").bulkGet(qr.entityIds) : [];
|
|
15000
15247
|
return { chat: { agents: { __typename: "AgentConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15001
15248
|
}
|
|
@@ -15014,18 +15261,18 @@ var Chat_ArtifactsQuery = class _Chat_ArtifactsQuery extends chunk342BFYZZ_cjs.R
|
|
|
15014
15261
|
}
|
|
15015
15262
|
async fetch(options) {
|
|
15016
15263
|
const variables = this._variables;
|
|
15017
|
-
const response = await this._syncEngine.query(
|
|
15264
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Chat_ArtifactsDocument, variables, "chat");
|
|
15018
15265
|
const data = response.chat?.artifacts;
|
|
15019
15266
|
return new ArtifactConnection(this._request, (conn, opts) => new _Chat_ArtifactsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
15020
15267
|
}
|
|
15021
15268
|
watch(options) {
|
|
15022
15269
|
const variables = this._variables;
|
|
15023
15270
|
const raw = this._syncEngine.watch(
|
|
15024
|
-
|
|
15271
|
+
chunkOCCUM5WH_cjs.Chat_ArtifactsDocument,
|
|
15025
15272
|
variables,
|
|
15026
15273
|
"chat",
|
|
15027
15274
|
async (db) => {
|
|
15028
|
-
const qr = await db._queryResults.get(buildQueryKey("chat", variables,
|
|
15275
|
+
const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunkOCCUM5WH_cjs.Chat_ArtifactsDocument));
|
|
15029
15276
|
const nodes = qr ? await db.table("artifacts").bulkGet(qr.entityIds) : [];
|
|
15030
15277
|
return { chat: { artifacts: { __typename: "ArtifactConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15031
15278
|
}
|
|
@@ -15044,14 +15291,14 @@ var Chat_InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15044
15291
|
}
|
|
15045
15292
|
async fetch(options) {
|
|
15046
15293
|
const variables = this._variables;
|
|
15047
|
-
const response = await this._syncEngine.query(
|
|
15294
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Chat_InsightDocument, variables, "chat");
|
|
15048
15295
|
const data = response.chat?.insight;
|
|
15049
15296
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15050
15297
|
}
|
|
15051
15298
|
watch(options) {
|
|
15052
15299
|
const variables = this._variables;
|
|
15053
15300
|
const raw = this._syncEngine.watch(
|
|
15054
|
-
|
|
15301
|
+
chunkOCCUM5WH_cjs.Chat_InsightDocument,
|
|
15055
15302
|
variables,
|
|
15056
15303
|
"chat",
|
|
15057
15304
|
async (db) => {
|
|
@@ -15073,7 +15320,7 @@ var Chat_Insight_ReportMembersQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15073
15320
|
this._variables = variables;
|
|
15074
15321
|
}
|
|
15075
15322
|
async fetch(options) {
|
|
15076
|
-
const response = await this._syncEngine.query(
|
|
15323
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Chat_Insight_ReportMembersDocument, this._variables, "chat");
|
|
15077
15324
|
const data = response.chat?.insight?.reportMembers;
|
|
15078
15325
|
if (!Array.isArray(data)) return [];
|
|
15079
15326
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -15087,14 +15334,14 @@ var Chat_Insight_ThumbnailFileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15087
15334
|
}
|
|
15088
15335
|
async fetch(options) {
|
|
15089
15336
|
const variables = this._variables;
|
|
15090
|
-
const response = await this._syncEngine.query(
|
|
15337
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Chat_Insight_ThumbnailFileDocument, variables, "chat");
|
|
15091
15338
|
const data = response.chat?.insight?.thumbnailFile;
|
|
15092
15339
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15093
15340
|
}
|
|
15094
15341
|
watch(options) {
|
|
15095
15342
|
const variables = this._variables;
|
|
15096
15343
|
const raw = this._syncEngine.watch(
|
|
15097
|
-
|
|
15344
|
+
chunkOCCUM5WH_cjs.Chat_Insight_ThumbnailFileDocument,
|
|
15098
15345
|
variables,
|
|
15099
15346
|
"chat",
|
|
15100
15347
|
async (db) => {
|
|
@@ -15117,18 +15364,18 @@ var Chat_MessagesQuery = class _Chat_MessagesQuery extends chunk342BFYZZ_cjs.Req
|
|
|
15117
15364
|
}
|
|
15118
15365
|
async fetch(options) {
|
|
15119
15366
|
const variables = this._variables;
|
|
15120
|
-
const response = await this._syncEngine.query(
|
|
15367
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Chat_MessagesDocument, variables, "chat");
|
|
15121
15368
|
const data = response.chat?.messages;
|
|
15122
15369
|
return new ChatMessageConnection(this._request, (conn, opts) => new _Chat_MessagesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
15123
15370
|
}
|
|
15124
15371
|
watch(options) {
|
|
15125
15372
|
const variables = this._variables;
|
|
15126
15373
|
const raw = this._syncEngine.watch(
|
|
15127
|
-
|
|
15374
|
+
chunkOCCUM5WH_cjs.Chat_MessagesDocument,
|
|
15128
15375
|
variables,
|
|
15129
15376
|
"chat",
|
|
15130
15377
|
async (db) => {
|
|
15131
|
-
const qr = await db._queryResults.get(buildQueryKey("chat", variables,
|
|
15378
|
+
const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunkOCCUM5WH_cjs.Chat_MessagesDocument));
|
|
15132
15379
|
const nodes = qr ? await db.table("chatMessages").bulkGet(qr.entityIds) : [];
|
|
15133
15380
|
return { chat: { messages: { __typename: "ChatMessageConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15134
15381
|
}
|
|
@@ -15148,7 +15395,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15148
15395
|
}
|
|
15149
15396
|
async fetch(options) {
|
|
15150
15397
|
const variables = this._variables;
|
|
15151
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15398
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ChatMessageDocument, "chatMessage", this._includes, variables);
|
|
15152
15399
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessage");
|
|
15153
15400
|
const data = response.chatMessage;
|
|
15154
15401
|
const instance = new ChatMessage(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15160,7 +15407,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15160
15407
|
watch(options) {
|
|
15161
15408
|
const variables = this._variables;
|
|
15162
15409
|
const includes = this._includes;
|
|
15163
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15410
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ChatMessageDocument, "chatMessage", includes, variables);
|
|
15164
15411
|
const raw = this._syncEngine.watch(
|
|
15165
15412
|
queryDoc,
|
|
15166
15413
|
mergedVars,
|
|
@@ -15190,7 +15437,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15190
15437
|
}
|
|
15191
15438
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
15192
15439
|
artifacts(variables, builder) {
|
|
15193
|
-
const info = extractIncludeInfo(
|
|
15440
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
15194
15441
|
let children;
|
|
15195
15442
|
if (builder) {
|
|
15196
15443
|
const sub = new ArtifactSubBuilder();
|
|
@@ -15199,7 +15446,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15199
15446
|
}
|
|
15200
15447
|
this._includes.push({
|
|
15201
15448
|
fieldName: "artifacts",
|
|
15202
|
-
fragmentDoc:
|
|
15449
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ArtifactConnectionFragmentDoc,
|
|
15203
15450
|
variables,
|
|
15204
15451
|
isConnection: true,
|
|
15205
15452
|
isList: false,
|
|
@@ -15217,7 +15464,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15217
15464
|
}
|
|
15218
15465
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
15219
15466
|
chat(variables, builder) {
|
|
15220
|
-
const info = extractIncludeInfo(
|
|
15467
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
15221
15468
|
let children;
|
|
15222
15469
|
if (builder) {
|
|
15223
15470
|
const sub = new ChatSubBuilder();
|
|
@@ -15226,7 +15473,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15226
15473
|
}
|
|
15227
15474
|
this._includes.push({
|
|
15228
15475
|
fieldName: "chat",
|
|
15229
|
-
fragmentDoc:
|
|
15476
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatFragmentDoc,
|
|
15230
15477
|
variables,
|
|
15231
15478
|
isConnection: false,
|
|
15232
15479
|
isList: false,
|
|
@@ -15243,10 +15490,10 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15243
15490
|
}
|
|
15244
15491
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
15245
15492
|
contents(variables) {
|
|
15246
|
-
const info = extractIncludeInfo(
|
|
15493
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
15247
15494
|
this._includes.push({
|
|
15248
15495
|
fieldName: "contents",
|
|
15249
|
-
fragmentDoc:
|
|
15496
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ContentBlockFragmentDoc,
|
|
15250
15497
|
variables,
|
|
15251
15498
|
isConnection: false,
|
|
15252
15499
|
isList: true,
|
|
@@ -15262,10 +15509,10 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15262
15509
|
}
|
|
15263
15510
|
/** Include feedback in this query (Smart Fetch — single HTTP request). */
|
|
15264
15511
|
feedback(variables) {
|
|
15265
|
-
const info = extractIncludeInfo(
|
|
15512
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
15266
15513
|
this._includes.push({
|
|
15267
15514
|
fieldName: "feedback",
|
|
15268
|
-
fragmentDoc:
|
|
15515
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FeedbackFragmentDoc,
|
|
15269
15516
|
variables,
|
|
15270
15517
|
isConnection: false,
|
|
15271
15518
|
isList: false,
|
|
@@ -15288,18 +15535,18 @@ var ChatMessage_ArtifactsQuery = class _ChatMessage_ArtifactsQuery extends chunk
|
|
|
15288
15535
|
}
|
|
15289
15536
|
async fetch(options) {
|
|
15290
15537
|
const variables = this._variables;
|
|
15291
|
-
const response = await this._syncEngine.query(
|
|
15538
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.ChatMessage_ArtifactsDocument, variables, "chatMessage");
|
|
15292
15539
|
const data = response.chatMessage?.artifacts;
|
|
15293
15540
|
return new ArtifactConnection(this._request, (conn, opts) => new _ChatMessage_ArtifactsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
15294
15541
|
}
|
|
15295
15542
|
watch(options) {
|
|
15296
15543
|
const variables = this._variables;
|
|
15297
15544
|
const raw = this._syncEngine.watch(
|
|
15298
|
-
|
|
15545
|
+
chunkOCCUM5WH_cjs.ChatMessage_ArtifactsDocument,
|
|
15299
15546
|
variables,
|
|
15300
15547
|
"chatMessage",
|
|
15301
15548
|
async (db) => {
|
|
15302
|
-
const qr = await db._queryResults.get(buildQueryKey("chatMessage", variables,
|
|
15549
|
+
const qr = await db._queryResults.get(buildQueryKey("chatMessage", variables, chunkOCCUM5WH_cjs.ChatMessage_ArtifactsDocument));
|
|
15303
15550
|
const nodes = qr ? await db.table("artifacts").bulkGet(qr.entityIds) : [];
|
|
15304
15551
|
return { chatMessage: { artifacts: { __typename: "ArtifactConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15305
15552
|
}
|
|
@@ -15318,14 +15565,14 @@ var ChatMessage_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15318
15565
|
}
|
|
15319
15566
|
async fetch(options) {
|
|
15320
15567
|
const variables = this._variables;
|
|
15321
|
-
const response = await this._syncEngine.query(
|
|
15568
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.ChatMessage_ChatDocument, variables, "chatMessage");
|
|
15322
15569
|
const data = response.chatMessage?.chat;
|
|
15323
15570
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15324
15571
|
}
|
|
15325
15572
|
watch(options) {
|
|
15326
15573
|
const variables = this._variables;
|
|
15327
15574
|
const raw = this._syncEngine.watch(
|
|
15328
|
-
|
|
15575
|
+
chunkOCCUM5WH_cjs.ChatMessage_ChatDocument,
|
|
15329
15576
|
variables,
|
|
15330
15577
|
"chatMessage",
|
|
15331
15578
|
async (db) => {
|
|
@@ -15348,14 +15595,14 @@ var ChatMessage_Chat_InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15348
15595
|
}
|
|
15349
15596
|
async fetch(options) {
|
|
15350
15597
|
const variables = this._variables;
|
|
15351
|
-
const response = await this._syncEngine.query(
|
|
15598
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.ChatMessage_Chat_InsightDocument, variables, "chatMessage");
|
|
15352
15599
|
const data = response.chatMessage?.chat?.insight;
|
|
15353
15600
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15354
15601
|
}
|
|
15355
15602
|
watch(options) {
|
|
15356
15603
|
const variables = this._variables;
|
|
15357
15604
|
const raw = this._syncEngine.watch(
|
|
15358
|
-
|
|
15605
|
+
chunkOCCUM5WH_cjs.ChatMessage_Chat_InsightDocument,
|
|
15359
15606
|
variables,
|
|
15360
15607
|
"chatMessage",
|
|
15361
15608
|
async (db) => {
|
|
@@ -15377,7 +15624,7 @@ var ChatMessage_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15377
15624
|
this._variables = variables;
|
|
15378
15625
|
}
|
|
15379
15626
|
async fetch(options) {
|
|
15380
|
-
const response = await this._syncEngine.query(
|
|
15627
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.ChatMessage_ContentsDocument, this._variables, "chatMessage");
|
|
15381
15628
|
const data = response.chatMessage?.contents;
|
|
15382
15629
|
if (!Array.isArray(data)) return [];
|
|
15383
15630
|
return data.map((item) => new ContentBlock(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -15391,14 +15638,14 @@ var ChatMessage_FeedbackQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15391
15638
|
}
|
|
15392
15639
|
async fetch(options) {
|
|
15393
15640
|
const variables = this._variables;
|
|
15394
|
-
const response = await this._syncEngine.query(
|
|
15641
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.ChatMessage_FeedbackDocument, variables, "chatMessage");
|
|
15395
15642
|
const data = response.chatMessage?.feedback;
|
|
15396
15643
|
return data ? new Feedback(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15397
15644
|
}
|
|
15398
15645
|
watch(options) {
|
|
15399
15646
|
const variables = this._variables;
|
|
15400
15647
|
const raw = this._syncEngine.watch(
|
|
15401
|
-
|
|
15648
|
+
chunkOCCUM5WH_cjs.ChatMessage_FeedbackDocument,
|
|
15402
15649
|
variables,
|
|
15403
15650
|
"chatMessage",
|
|
15404
15651
|
async (db) => {
|
|
@@ -15422,7 +15669,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15422
15669
|
}
|
|
15423
15670
|
async fetch(options) {
|
|
15424
15671
|
const variables = this._variables;
|
|
15425
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15672
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ChatMessagesDocument, "chatMessages", this._includes, variables, true);
|
|
15426
15673
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessages");
|
|
15427
15674
|
const data = response.chatMessages;
|
|
15428
15675
|
const connection = new ChatMessageConnection(this._request, (conn, opts) => new _ChatMessagesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -15439,7 +15686,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15439
15686
|
const subscriptionId = crypto.randomUUID();
|
|
15440
15687
|
const includes = this._includes;
|
|
15441
15688
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
15442
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15689
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ChatMessagesDocument, "chatMessages", includes, variables, true);
|
|
15443
15690
|
const raw = this._syncEngine.watch(
|
|
15444
15691
|
queryDoc,
|
|
15445
15692
|
mergedVars,
|
|
@@ -15474,7 +15721,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15474
15721
|
}
|
|
15475
15722
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
15476
15723
|
artifacts(variables, builder) {
|
|
15477
|
-
const info = extractIncludeInfo(
|
|
15724
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
15478
15725
|
let children;
|
|
15479
15726
|
if (builder) {
|
|
15480
15727
|
const sub = new ArtifactSubBuilder();
|
|
@@ -15483,7 +15730,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15483
15730
|
}
|
|
15484
15731
|
this._includes.push({
|
|
15485
15732
|
fieldName: "artifacts",
|
|
15486
|
-
fragmentDoc:
|
|
15733
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ArtifactConnectionFragmentDoc,
|
|
15487
15734
|
variables,
|
|
15488
15735
|
isConnection: true,
|
|
15489
15736
|
isList: false,
|
|
@@ -15501,7 +15748,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15501
15748
|
}
|
|
15502
15749
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
15503
15750
|
chat(variables, builder) {
|
|
15504
|
-
const info = extractIncludeInfo(
|
|
15751
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
15505
15752
|
let children;
|
|
15506
15753
|
if (builder) {
|
|
15507
15754
|
const sub = new ChatSubBuilder();
|
|
@@ -15510,7 +15757,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15510
15757
|
}
|
|
15511
15758
|
this._includes.push({
|
|
15512
15759
|
fieldName: "chat",
|
|
15513
|
-
fragmentDoc:
|
|
15760
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatFragmentDoc,
|
|
15514
15761
|
variables,
|
|
15515
15762
|
isConnection: false,
|
|
15516
15763
|
isList: false,
|
|
@@ -15527,10 +15774,10 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15527
15774
|
}
|
|
15528
15775
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
15529
15776
|
contents(variables) {
|
|
15530
|
-
const info = extractIncludeInfo(
|
|
15777
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
15531
15778
|
this._includes.push({
|
|
15532
15779
|
fieldName: "contents",
|
|
15533
|
-
fragmentDoc:
|
|
15780
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ContentBlockFragmentDoc,
|
|
15534
15781
|
variables,
|
|
15535
15782
|
isConnection: false,
|
|
15536
15783
|
isList: true,
|
|
@@ -15546,10 +15793,10 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15546
15793
|
}
|
|
15547
15794
|
/** Include feedback in this query (Smart Fetch — single HTTP request). */
|
|
15548
15795
|
feedback(variables) {
|
|
15549
|
-
const info = extractIncludeInfo(
|
|
15796
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
15550
15797
|
this._includes.push({
|
|
15551
15798
|
fieldName: "feedback",
|
|
15552
|
-
fragmentDoc:
|
|
15799
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FeedbackFragmentDoc,
|
|
15553
15800
|
variables,
|
|
15554
15801
|
isConnection: false,
|
|
15555
15802
|
isList: false,
|
|
@@ -15573,7 +15820,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15573
15820
|
}
|
|
15574
15821
|
async fetch(options) {
|
|
15575
15822
|
const variables = this._variables;
|
|
15576
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15823
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ChatsDocument, "chats", this._includes, variables, true);
|
|
15577
15824
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chats");
|
|
15578
15825
|
const data = response.chats;
|
|
15579
15826
|
const connection = new ChatConnection(this._request, (conn, opts) => new _ChatsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -15590,7 +15837,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15590
15837
|
const subscriptionId = crypto.randomUUID();
|
|
15591
15838
|
const includes = this._includes;
|
|
15592
15839
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
15593
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15840
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ChatsDocument, "chats", includes, variables, true);
|
|
15594
15841
|
const raw = this._syncEngine.watch(
|
|
15595
15842
|
queryDoc,
|
|
15596
15843
|
mergedVars,
|
|
@@ -15625,7 +15872,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15625
15872
|
}
|
|
15626
15873
|
/** Include agents in this query (Smart Fetch — single HTTP request). */
|
|
15627
15874
|
agents(variables, builder) {
|
|
15628
|
-
const info = extractIncludeInfo(
|
|
15875
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
15629
15876
|
let children;
|
|
15630
15877
|
if (builder) {
|
|
15631
15878
|
const sub = new AgentSubBuilder();
|
|
@@ -15634,7 +15881,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15634
15881
|
}
|
|
15635
15882
|
this._includes.push({
|
|
15636
15883
|
fieldName: "agents",
|
|
15637
|
-
fragmentDoc:
|
|
15884
|
+
fragmentDoc: chunkOCCUM5WH_cjs.AgentConnectionFragmentDoc,
|
|
15638
15885
|
variables,
|
|
15639
15886
|
isConnection: true,
|
|
15640
15887
|
isList: false,
|
|
@@ -15652,7 +15899,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15652
15899
|
}
|
|
15653
15900
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
15654
15901
|
artifacts(variables, builder) {
|
|
15655
|
-
const info = extractIncludeInfo(
|
|
15902
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
15656
15903
|
let children;
|
|
15657
15904
|
if (builder) {
|
|
15658
15905
|
const sub = new ArtifactSubBuilder();
|
|
@@ -15661,7 +15908,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15661
15908
|
}
|
|
15662
15909
|
this._includes.push({
|
|
15663
15910
|
fieldName: "artifacts",
|
|
15664
|
-
fragmentDoc:
|
|
15911
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ArtifactConnectionFragmentDoc,
|
|
15665
15912
|
variables,
|
|
15666
15913
|
isConnection: true,
|
|
15667
15914
|
isList: false,
|
|
@@ -15679,7 +15926,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15679
15926
|
}
|
|
15680
15927
|
/** Include insight in this query (Smart Fetch — single HTTP request). */
|
|
15681
15928
|
insight(variables, builder) {
|
|
15682
|
-
const info = extractIncludeInfo(
|
|
15929
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
15683
15930
|
let children;
|
|
15684
15931
|
if (builder) {
|
|
15685
15932
|
const sub = new InsightSubBuilder();
|
|
@@ -15688,7 +15935,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15688
15935
|
}
|
|
15689
15936
|
this._includes.push({
|
|
15690
15937
|
fieldName: "insight",
|
|
15691
|
-
fragmentDoc:
|
|
15938
|
+
fragmentDoc: chunkOCCUM5WH_cjs.InsightFragmentDoc,
|
|
15692
15939
|
variables,
|
|
15693
15940
|
isConnection: false,
|
|
15694
15941
|
isList: false,
|
|
@@ -15705,7 +15952,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15705
15952
|
}
|
|
15706
15953
|
/** Include messages in this query (Smart Fetch — single HTTP request). */
|
|
15707
15954
|
messages(variables, builder) {
|
|
15708
|
-
const info = extractIncludeInfo(
|
|
15955
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
15709
15956
|
let children;
|
|
15710
15957
|
if (builder) {
|
|
15711
15958
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -15714,7 +15961,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15714
15961
|
}
|
|
15715
15962
|
this._includes.push({
|
|
15716
15963
|
fieldName: "messages",
|
|
15717
|
-
fragmentDoc:
|
|
15964
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatMessageConnectionFragmentDoc,
|
|
15718
15965
|
variables,
|
|
15719
15966
|
isConnection: true,
|
|
15720
15967
|
isList: false,
|
|
@@ -15740,7 +15987,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15740
15987
|
}
|
|
15741
15988
|
async fetch(options) {
|
|
15742
15989
|
const variables = this._variables;
|
|
15743
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15990
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DatabaseDocument, "database", this._includes, variables);
|
|
15744
15991
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "database");
|
|
15745
15992
|
const data = response.database;
|
|
15746
15993
|
const instance = new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15752,7 +15999,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15752
15999
|
watch(options) {
|
|
15753
16000
|
const variables = this._variables;
|
|
15754
16001
|
const includes = this._includes;
|
|
15755
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16002
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DatabaseDocument, "database", includes, variables);
|
|
15756
16003
|
const raw = this._syncEngine.watch(
|
|
15757
16004
|
queryDoc,
|
|
15758
16005
|
mergedVars,
|
|
@@ -15782,10 +16029,10 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15782
16029
|
}
|
|
15783
16030
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
15784
16031
|
engine(variables) {
|
|
15785
|
-
const info = extractIncludeInfo(
|
|
16032
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
15786
16033
|
this._includes.push({
|
|
15787
16034
|
fieldName: "engine",
|
|
15788
|
-
fragmentDoc:
|
|
16035
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DatabaseEngineFragmentDoc,
|
|
15789
16036
|
variables,
|
|
15790
16037
|
isConnection: false,
|
|
15791
16038
|
isList: false,
|
|
@@ -15801,7 +16048,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15801
16048
|
}
|
|
15802
16049
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
15803
16050
|
tables(variables, builder) {
|
|
15804
|
-
const info = extractIncludeInfo(
|
|
16051
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
15805
16052
|
let children;
|
|
15806
16053
|
if (builder) {
|
|
15807
16054
|
const sub = new TableSubBuilder();
|
|
@@ -15810,7 +16057,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15810
16057
|
}
|
|
15811
16058
|
this._includes.push({
|
|
15812
16059
|
fieldName: "tables",
|
|
15813
|
-
fragmentDoc:
|
|
16060
|
+
fragmentDoc: chunkOCCUM5WH_cjs.TableConnectionFragmentDoc,
|
|
15814
16061
|
variables,
|
|
15815
16062
|
isConnection: true,
|
|
15816
16063
|
isList: false,
|
|
@@ -15835,14 +16082,14 @@ var Database_EngineQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15835
16082
|
}
|
|
15836
16083
|
async fetch(options) {
|
|
15837
16084
|
const variables = this._variables;
|
|
15838
|
-
const response = await this._syncEngine.query(
|
|
16085
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Database_EngineDocument, variables, "database");
|
|
15839
16086
|
const data = response.database?.engine;
|
|
15840
16087
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15841
16088
|
}
|
|
15842
16089
|
watch(options) {
|
|
15843
16090
|
const variables = this._variables;
|
|
15844
16091
|
const raw = this._syncEngine.watch(
|
|
15845
|
-
|
|
16092
|
+
chunkOCCUM5WH_cjs.Database_EngineDocument,
|
|
15846
16093
|
variables,
|
|
15847
16094
|
"database",
|
|
15848
16095
|
async (db) => {
|
|
@@ -15865,14 +16112,14 @@ var Database_Engine_CatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15865
16112
|
}
|
|
15866
16113
|
async fetch(options) {
|
|
15867
16114
|
const variables = this._variables;
|
|
15868
|
-
const response = await this._syncEngine.query(
|
|
16115
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Database_Engine_CatalogDocument, variables, "database");
|
|
15869
16116
|
const data = response.database?.engine?.catalog;
|
|
15870
16117
|
return data ? new DatabaseCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15871
16118
|
}
|
|
15872
16119
|
watch(options) {
|
|
15873
16120
|
const variables = this._variables;
|
|
15874
16121
|
const raw = this._syncEngine.watch(
|
|
15875
|
-
|
|
16122
|
+
chunkOCCUM5WH_cjs.Database_Engine_CatalogDocument,
|
|
15876
16123
|
variables,
|
|
15877
16124
|
"database",
|
|
15878
16125
|
async (db) => {
|
|
@@ -15895,18 +16142,18 @@ var Database_TablesQuery = class _Database_TablesQuery extends chunk342BFYZZ_cjs
|
|
|
15895
16142
|
}
|
|
15896
16143
|
async fetch(options) {
|
|
15897
16144
|
const variables = this._variables;
|
|
15898
|
-
const response = await this._syncEngine.query(
|
|
16145
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Database_TablesDocument, variables, "database");
|
|
15899
16146
|
const data = response.database?.tables;
|
|
15900
16147
|
return new TableConnection(this._request, (conn, opts) => new _Database_TablesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
15901
16148
|
}
|
|
15902
16149
|
watch(options) {
|
|
15903
16150
|
const variables = this._variables;
|
|
15904
16151
|
const raw = this._syncEngine.watch(
|
|
15905
|
-
|
|
16152
|
+
chunkOCCUM5WH_cjs.Database_TablesDocument,
|
|
15906
16153
|
variables,
|
|
15907
16154
|
"database",
|
|
15908
16155
|
async (db) => {
|
|
15909
|
-
const qr = await db._queryResults.get(buildQueryKey("database", variables,
|
|
16156
|
+
const qr = await db._queryResults.get(buildQueryKey("database", variables, chunkOCCUM5WH_cjs.Database_TablesDocument));
|
|
15910
16157
|
const nodes = qr ? await db.table("tables").bulkGet(qr.entityIds) : [];
|
|
15911
16158
|
return { database: { tables: { __typename: "TableConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15912
16159
|
}
|
|
@@ -15926,7 +16173,7 @@ var DatabaseCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15926
16173
|
}
|
|
15927
16174
|
async fetch(options) {
|
|
15928
16175
|
const variables = this._variables;
|
|
15929
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16176
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DatabaseCatalogDocument, "databaseCatalog", this._includes, variables);
|
|
15930
16177
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databaseCatalog");
|
|
15931
16178
|
const data = response.databaseCatalog;
|
|
15932
16179
|
const instance = new DatabaseCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15938,7 +16185,7 @@ var DatabaseCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15938
16185
|
watch(options) {
|
|
15939
16186
|
const variables = this._variables;
|
|
15940
16187
|
const includes = this._includes;
|
|
15941
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16188
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DatabaseCatalogDocument, "databaseCatalog", includes, variables);
|
|
15942
16189
|
const raw = this._syncEngine.watch(
|
|
15943
16190
|
queryDoc,
|
|
15944
16191
|
mergedVars,
|
|
@@ -15968,10 +16215,10 @@ var DatabaseCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15968
16215
|
}
|
|
15969
16216
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
15970
16217
|
engine(variables) {
|
|
15971
|
-
const info = extractIncludeInfo(
|
|
16218
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
15972
16219
|
this._includes.push({
|
|
15973
16220
|
fieldName: "engine",
|
|
15974
|
-
fragmentDoc:
|
|
16221
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DatabaseEngineFragmentDoc,
|
|
15975
16222
|
variables,
|
|
15976
16223
|
isConnection: false,
|
|
15977
16224
|
isList: false,
|
|
@@ -15994,14 +16241,14 @@ var DatabaseCatalog_EngineQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15994
16241
|
}
|
|
15995
16242
|
async fetch(options) {
|
|
15996
16243
|
const variables = this._variables;
|
|
15997
|
-
const response = await this._syncEngine.query(
|
|
16244
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.DatabaseCatalog_EngineDocument, variables, "databaseCatalog");
|
|
15998
16245
|
const data = response.databaseCatalog?.engine;
|
|
15999
16246
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16000
16247
|
}
|
|
16001
16248
|
watch(options) {
|
|
16002
16249
|
const variables = this._variables;
|
|
16003
16250
|
const raw = this._syncEngine.watch(
|
|
16004
|
-
|
|
16251
|
+
chunkOCCUM5WH_cjs.DatabaseCatalog_EngineDocument,
|
|
16005
16252
|
variables,
|
|
16006
16253
|
"databaseCatalog",
|
|
16007
16254
|
async (db) => {
|
|
@@ -16025,7 +16272,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16025
16272
|
}
|
|
16026
16273
|
async fetch(options) {
|
|
16027
16274
|
const variables = this._variables;
|
|
16028
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16275
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DatabaseCatalogsDocument, "databaseCatalogs", this._includes, variables, true);
|
|
16029
16276
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databaseCatalogs");
|
|
16030
16277
|
const data = response.databaseCatalogs;
|
|
16031
16278
|
const connection = new DatabaseCatalogConnection(this._request, (conn, opts) => new _DatabaseCatalogsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16042,7 +16289,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16042
16289
|
const subscriptionId = crypto.randomUUID();
|
|
16043
16290
|
const includes = this._includes;
|
|
16044
16291
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
16045
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16292
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DatabaseCatalogsDocument, "databaseCatalogs", includes, variables, true);
|
|
16046
16293
|
const raw = this._syncEngine.watch(
|
|
16047
16294
|
queryDoc,
|
|
16048
16295
|
mergedVars,
|
|
@@ -16077,10 +16324,10 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16077
16324
|
}
|
|
16078
16325
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
16079
16326
|
engine(variables) {
|
|
16080
|
-
const info = extractIncludeInfo(
|
|
16327
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
16081
16328
|
this._includes.push({
|
|
16082
16329
|
fieldName: "engine",
|
|
16083
|
-
fragmentDoc:
|
|
16330
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DatabaseEngineFragmentDoc,
|
|
16084
16331
|
variables,
|
|
16085
16332
|
isConnection: false,
|
|
16086
16333
|
isList: false,
|
|
@@ -16097,7 +16344,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16097
16344
|
};
|
|
16098
16345
|
var DatabaseSchemaQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
16099
16346
|
async fetch(variables) {
|
|
16100
|
-
const response = await this._request(
|
|
16347
|
+
const response = await this._request(chunkOCCUM5WH_cjs.DatabaseSchemaDocument, variables);
|
|
16101
16348
|
return response.databaseSchema;
|
|
16102
16349
|
}
|
|
16103
16350
|
};
|
|
@@ -16110,7 +16357,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16110
16357
|
}
|
|
16111
16358
|
async fetch(options) {
|
|
16112
16359
|
const variables = this._variables;
|
|
16113
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16360
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DatabasesDocument, "databases", this._includes, variables, true);
|
|
16114
16361
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databases");
|
|
16115
16362
|
const data = response.databases;
|
|
16116
16363
|
const connection = new DatabaseConnection(this._request, (conn, opts) => new _DatabasesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16127,7 +16374,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16127
16374
|
const subscriptionId = crypto.randomUUID();
|
|
16128
16375
|
const includes = this._includes;
|
|
16129
16376
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
16130
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16377
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DatabasesDocument, "databases", includes, variables, true);
|
|
16131
16378
|
const raw = this._syncEngine.watch(
|
|
16132
16379
|
queryDoc,
|
|
16133
16380
|
mergedVars,
|
|
@@ -16162,10 +16409,10 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16162
16409
|
}
|
|
16163
16410
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
16164
16411
|
engine(variables) {
|
|
16165
|
-
const info = extractIncludeInfo(
|
|
16412
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
16166
16413
|
this._includes.push({
|
|
16167
16414
|
fieldName: "engine",
|
|
16168
|
-
fragmentDoc:
|
|
16415
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DatabaseEngineFragmentDoc,
|
|
16169
16416
|
variables,
|
|
16170
16417
|
isConnection: false,
|
|
16171
16418
|
isList: false,
|
|
@@ -16181,7 +16428,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16181
16428
|
}
|
|
16182
16429
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
16183
16430
|
tables(variables, builder) {
|
|
16184
|
-
const info = extractIncludeInfo(
|
|
16431
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
16185
16432
|
let children;
|
|
16186
16433
|
if (builder) {
|
|
16187
16434
|
const sub = new TableSubBuilder();
|
|
@@ -16190,7 +16437,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16190
16437
|
}
|
|
16191
16438
|
this._includes.push({
|
|
16192
16439
|
fieldName: "tables",
|
|
16193
|
-
fragmentDoc:
|
|
16440
|
+
fragmentDoc: chunkOCCUM5WH_cjs.TableConnectionFragmentDoc,
|
|
16194
16441
|
variables,
|
|
16195
16442
|
isConnection: true,
|
|
16196
16443
|
isList: false,
|
|
@@ -16216,7 +16463,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16216
16463
|
}
|
|
16217
16464
|
async fetch(options) {
|
|
16218
16465
|
const variables = this._variables;
|
|
16219
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16466
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DocumentDocument, "document", this._includes, variables);
|
|
16220
16467
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "document");
|
|
16221
16468
|
const data = response.document;
|
|
16222
16469
|
const instance = new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16228,7 +16475,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16228
16475
|
watch(options) {
|
|
16229
16476
|
const variables = this._variables;
|
|
16230
16477
|
const includes = this._includes;
|
|
16231
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16478
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DocumentDocument, "document", includes, variables);
|
|
16232
16479
|
const raw = this._syncEngine.watch(
|
|
16233
16480
|
queryDoc,
|
|
16234
16481
|
mergedVars,
|
|
@@ -16258,10 +16505,10 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16258
16505
|
}
|
|
16259
16506
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
16260
16507
|
contents(variables) {
|
|
16261
|
-
const info = extractIncludeInfo(
|
|
16508
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
16262
16509
|
this._includes.push({
|
|
16263
16510
|
fieldName: "contents",
|
|
16264
|
-
fragmentDoc:
|
|
16511
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DocumentContentFragmentDoc,
|
|
16265
16512
|
variables,
|
|
16266
16513
|
isConnection: false,
|
|
16267
16514
|
isList: true,
|
|
@@ -16277,10 +16524,10 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16277
16524
|
}
|
|
16278
16525
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
16279
16526
|
file(variables) {
|
|
16280
|
-
const info = extractIncludeInfo(
|
|
16527
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Document_FileDocument, "file", ["id"]);
|
|
16281
16528
|
this._includes.push({
|
|
16282
16529
|
fieldName: "file",
|
|
16283
|
-
fragmentDoc:
|
|
16530
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FileFragmentDoc,
|
|
16284
16531
|
variables,
|
|
16285
16532
|
isConnection: false,
|
|
16286
16533
|
isList: false,
|
|
@@ -16296,10 +16543,10 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16296
16543
|
}
|
|
16297
16544
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
16298
16545
|
format(variables) {
|
|
16299
|
-
const info = extractIncludeInfo(
|
|
16546
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Document_FormatDocument, "format", ["id"]);
|
|
16300
16547
|
this._includes.push({
|
|
16301
16548
|
fieldName: "format",
|
|
16302
|
-
fragmentDoc:
|
|
16549
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DocumentFormatFragmentDoc,
|
|
16303
16550
|
variables,
|
|
16304
16551
|
isConnection: false,
|
|
16305
16552
|
isList: false,
|
|
@@ -16315,7 +16562,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16315
16562
|
}
|
|
16316
16563
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
16317
16564
|
tables(variables, builder) {
|
|
16318
|
-
const info = extractIncludeInfo(
|
|
16565
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
16319
16566
|
let children;
|
|
16320
16567
|
if (builder) {
|
|
16321
16568
|
const sub = new TableSubBuilder();
|
|
@@ -16324,7 +16571,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16324
16571
|
}
|
|
16325
16572
|
this._includes.push({
|
|
16326
16573
|
fieldName: "tables",
|
|
16327
|
-
fragmentDoc:
|
|
16574
|
+
fragmentDoc: chunkOCCUM5WH_cjs.TableConnectionFragmentDoc,
|
|
16328
16575
|
variables,
|
|
16329
16576
|
isConnection: true,
|
|
16330
16577
|
isList: false,
|
|
@@ -16348,7 +16595,7 @@ var Document_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16348
16595
|
this._variables = variables;
|
|
16349
16596
|
}
|
|
16350
16597
|
async fetch(options) {
|
|
16351
|
-
const response = await this._syncEngine.query(
|
|
16598
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Document_ContentsDocument, this._variables, "document");
|
|
16352
16599
|
const data = response.document?.contents;
|
|
16353
16600
|
if (!Array.isArray(data)) return [];
|
|
16354
16601
|
return data.map((item) => new DocumentContent(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -16362,14 +16609,14 @@ var Document_FileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16362
16609
|
}
|
|
16363
16610
|
async fetch(options) {
|
|
16364
16611
|
const variables = this._variables;
|
|
16365
|
-
const response = await this._syncEngine.query(
|
|
16612
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Document_FileDocument, variables, "document");
|
|
16366
16613
|
const data = response.document?.file;
|
|
16367
16614
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16368
16615
|
}
|
|
16369
16616
|
watch(options) {
|
|
16370
16617
|
const variables = this._variables;
|
|
16371
16618
|
const raw = this._syncEngine.watch(
|
|
16372
|
-
|
|
16619
|
+
chunkOCCUM5WH_cjs.Document_FileDocument,
|
|
16373
16620
|
variables,
|
|
16374
16621
|
"document",
|
|
16375
16622
|
async (db) => {
|
|
@@ -16392,14 +16639,14 @@ var Document_FormatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16392
16639
|
}
|
|
16393
16640
|
async fetch(options) {
|
|
16394
16641
|
const variables = this._variables;
|
|
16395
|
-
const response = await this._syncEngine.query(
|
|
16642
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Document_FormatDocument, variables, "document");
|
|
16396
16643
|
const data = response.document?.format;
|
|
16397
16644
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16398
16645
|
}
|
|
16399
16646
|
watch(options) {
|
|
16400
16647
|
const variables = this._variables;
|
|
16401
16648
|
const raw = this._syncEngine.watch(
|
|
16402
|
-
|
|
16649
|
+
chunkOCCUM5WH_cjs.Document_FormatDocument,
|
|
16403
16650
|
variables,
|
|
16404
16651
|
"document",
|
|
16405
16652
|
async (db) => {
|
|
@@ -16422,14 +16669,14 @@ var Document_Format_CatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16422
16669
|
}
|
|
16423
16670
|
async fetch(options) {
|
|
16424
16671
|
const variables = this._variables;
|
|
16425
|
-
const response = await this._syncEngine.query(
|
|
16672
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Document_Format_CatalogDocument, variables, "document");
|
|
16426
16673
|
const data = response.document?.format?.catalog;
|
|
16427
16674
|
return data ? new DocumentCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16428
16675
|
}
|
|
16429
16676
|
watch(options) {
|
|
16430
16677
|
const variables = this._variables;
|
|
16431
16678
|
const raw = this._syncEngine.watch(
|
|
16432
|
-
|
|
16679
|
+
chunkOCCUM5WH_cjs.Document_Format_CatalogDocument,
|
|
16433
16680
|
variables,
|
|
16434
16681
|
"document",
|
|
16435
16682
|
async (db) => {
|
|
@@ -16452,18 +16699,18 @@ var Document_TablesQuery = class _Document_TablesQuery extends chunk342BFYZZ_cjs
|
|
|
16452
16699
|
}
|
|
16453
16700
|
async fetch(options) {
|
|
16454
16701
|
const variables = this._variables;
|
|
16455
|
-
const response = await this._syncEngine.query(
|
|
16702
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Document_TablesDocument, variables, "document");
|
|
16456
16703
|
const data = response.document?.tables;
|
|
16457
16704
|
return new TableConnection(this._request, (conn, opts) => new _Document_TablesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
16458
16705
|
}
|
|
16459
16706
|
watch(options) {
|
|
16460
16707
|
const variables = this._variables;
|
|
16461
16708
|
const raw = this._syncEngine.watch(
|
|
16462
|
-
|
|
16709
|
+
chunkOCCUM5WH_cjs.Document_TablesDocument,
|
|
16463
16710
|
variables,
|
|
16464
16711
|
"document",
|
|
16465
16712
|
async (db) => {
|
|
16466
|
-
const qr = await db._queryResults.get(buildQueryKey("document", variables,
|
|
16713
|
+
const qr = await db._queryResults.get(buildQueryKey("document", variables, chunkOCCUM5WH_cjs.Document_TablesDocument));
|
|
16467
16714
|
const nodes = qr ? await db.table("tables").bulkGet(qr.entityIds) : [];
|
|
16468
16715
|
return { document: { tables: { __typename: "TableConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
16469
16716
|
}
|
|
@@ -16483,7 +16730,7 @@ var DocumentCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16483
16730
|
}
|
|
16484
16731
|
async fetch(options) {
|
|
16485
16732
|
const variables = this._variables;
|
|
16486
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16733
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DocumentCatalogDocument, "documentCatalog", this._includes, variables);
|
|
16487
16734
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documentCatalog");
|
|
16488
16735
|
const data = response.documentCatalog;
|
|
16489
16736
|
const instance = new DocumentCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16495,7 +16742,7 @@ var DocumentCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16495
16742
|
watch(options) {
|
|
16496
16743
|
const variables = this._variables;
|
|
16497
16744
|
const includes = this._includes;
|
|
16498
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16745
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DocumentCatalogDocument, "documentCatalog", includes, variables);
|
|
16499
16746
|
const raw = this._syncEngine.watch(
|
|
16500
16747
|
queryDoc,
|
|
16501
16748
|
mergedVars,
|
|
@@ -16525,10 +16772,10 @@ var DocumentCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16525
16772
|
}
|
|
16526
16773
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
16527
16774
|
format(variables) {
|
|
16528
|
-
const info = extractIncludeInfo(
|
|
16775
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
16529
16776
|
this._includes.push({
|
|
16530
16777
|
fieldName: "format",
|
|
16531
|
-
fragmentDoc:
|
|
16778
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DocumentFormatFragmentDoc,
|
|
16532
16779
|
variables,
|
|
16533
16780
|
isConnection: false,
|
|
16534
16781
|
isList: false,
|
|
@@ -16551,14 +16798,14 @@ var DocumentCatalog_FormatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16551
16798
|
}
|
|
16552
16799
|
async fetch(options) {
|
|
16553
16800
|
const variables = this._variables;
|
|
16554
|
-
const response = await this._syncEngine.query(
|
|
16801
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.DocumentCatalog_FormatDocument, variables, "documentCatalog");
|
|
16555
16802
|
const data = response.documentCatalog?.format;
|
|
16556
16803
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16557
16804
|
}
|
|
16558
16805
|
watch(options) {
|
|
16559
16806
|
const variables = this._variables;
|
|
16560
16807
|
const raw = this._syncEngine.watch(
|
|
16561
|
-
|
|
16808
|
+
chunkOCCUM5WH_cjs.DocumentCatalog_FormatDocument,
|
|
16562
16809
|
variables,
|
|
16563
16810
|
"documentCatalog",
|
|
16564
16811
|
async (db) => {
|
|
@@ -16582,7 +16829,7 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16582
16829
|
}
|
|
16583
16830
|
async fetch(options) {
|
|
16584
16831
|
const variables = this._variables;
|
|
16585
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16832
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DocumentCatalogsDocument, "documentCatalogs", this._includes, variables, true);
|
|
16586
16833
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documentCatalogs");
|
|
16587
16834
|
const data = response.documentCatalogs;
|
|
16588
16835
|
const connection = new DocumentCatalogConnection(this._request, (conn, opts) => new _DocumentCatalogsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16599,7 +16846,7 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16599
16846
|
const subscriptionId = crypto.randomUUID();
|
|
16600
16847
|
const includes = this._includes;
|
|
16601
16848
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
16602
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16849
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DocumentCatalogsDocument, "documentCatalogs", includes, variables, true);
|
|
16603
16850
|
const raw = this._syncEngine.watch(
|
|
16604
16851
|
queryDoc,
|
|
16605
16852
|
mergedVars,
|
|
@@ -16634,10 +16881,10 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16634
16881
|
}
|
|
16635
16882
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
16636
16883
|
format(variables) {
|
|
16637
|
-
const info = extractIncludeInfo(
|
|
16884
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
16638
16885
|
this._includes.push({
|
|
16639
16886
|
fieldName: "format",
|
|
16640
|
-
fragmentDoc:
|
|
16887
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DocumentFormatFragmentDoc,
|
|
16641
16888
|
variables,
|
|
16642
16889
|
isConnection: false,
|
|
16643
16890
|
isList: false,
|
|
@@ -16661,7 +16908,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16661
16908
|
}
|
|
16662
16909
|
async fetch(options) {
|
|
16663
16910
|
const variables = this._variables;
|
|
16664
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16911
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DocumentsDocument, "documents", this._includes, variables, true);
|
|
16665
16912
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documents");
|
|
16666
16913
|
const data = response.documents;
|
|
16667
16914
|
const connection = new DocumentConnection(this._request, (conn, opts) => new _DocumentsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16678,7 +16925,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16678
16925
|
const subscriptionId = crypto.randomUUID();
|
|
16679
16926
|
const includes = this._includes;
|
|
16680
16927
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
16681
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16928
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.DocumentsDocument, "documents", includes, variables, true);
|
|
16682
16929
|
const raw = this._syncEngine.watch(
|
|
16683
16930
|
queryDoc,
|
|
16684
16931
|
mergedVars,
|
|
@@ -16713,10 +16960,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16713
16960
|
}
|
|
16714
16961
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
16715
16962
|
contents(variables) {
|
|
16716
|
-
const info = extractIncludeInfo(
|
|
16963
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
16717
16964
|
this._includes.push({
|
|
16718
16965
|
fieldName: "contents",
|
|
16719
|
-
fragmentDoc:
|
|
16966
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DocumentContentFragmentDoc,
|
|
16720
16967
|
variables,
|
|
16721
16968
|
isConnection: false,
|
|
16722
16969
|
isList: true,
|
|
@@ -16732,10 +16979,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16732
16979
|
}
|
|
16733
16980
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
16734
16981
|
file(variables) {
|
|
16735
|
-
const info = extractIncludeInfo(
|
|
16982
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Document_FileDocument, "file", ["id"]);
|
|
16736
16983
|
this._includes.push({
|
|
16737
16984
|
fieldName: "file",
|
|
16738
|
-
fragmentDoc:
|
|
16985
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FileFragmentDoc,
|
|
16739
16986
|
variables,
|
|
16740
16987
|
isConnection: false,
|
|
16741
16988
|
isList: false,
|
|
@@ -16751,10 +16998,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16751
16998
|
}
|
|
16752
16999
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
16753
17000
|
format(variables) {
|
|
16754
|
-
const info = extractIncludeInfo(
|
|
17001
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Document_FormatDocument, "format", ["id"]);
|
|
16755
17002
|
this._includes.push({
|
|
16756
17003
|
fieldName: "format",
|
|
16757
|
-
fragmentDoc:
|
|
17004
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DocumentFormatFragmentDoc,
|
|
16758
17005
|
variables,
|
|
16759
17006
|
isConnection: false,
|
|
16760
17007
|
isList: false,
|
|
@@ -16770,7 +17017,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16770
17017
|
}
|
|
16771
17018
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
16772
17019
|
tables(variables, builder) {
|
|
16773
|
-
const info = extractIncludeInfo(
|
|
17020
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
16774
17021
|
let children;
|
|
16775
17022
|
if (builder) {
|
|
16776
17023
|
const sub = new TableSubBuilder();
|
|
@@ -16779,7 +17026,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16779
17026
|
}
|
|
16780
17027
|
this._includes.push({
|
|
16781
17028
|
fieldName: "tables",
|
|
16782
|
-
fragmentDoc:
|
|
17029
|
+
fragmentDoc: chunkOCCUM5WH_cjs.TableConnectionFragmentDoc,
|
|
16783
17030
|
variables,
|
|
16784
17031
|
isConnection: true,
|
|
16785
17032
|
isList: false,
|
|
@@ -16798,13 +17045,13 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16798
17045
|
};
|
|
16799
17046
|
var ExportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
16800
17047
|
async fetch(variables) {
|
|
16801
|
-
const response = await this._request(
|
|
17048
|
+
const response = await this._request(chunkOCCUM5WH_cjs.ExportDocument, variables);
|
|
16802
17049
|
return response.export;
|
|
16803
17050
|
}
|
|
16804
17051
|
};
|
|
16805
17052
|
var ExportWithInsightIdQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
16806
17053
|
async fetch(variables) {
|
|
16807
|
-
const response = await this._request(
|
|
17054
|
+
const response = await this._request(chunkOCCUM5WH_cjs.ExportWithInsightIdDocument, variables);
|
|
16808
17055
|
return response.exportWithInsightId;
|
|
16809
17056
|
}
|
|
16810
17057
|
};
|
|
@@ -16817,7 +17064,7 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16817
17064
|
}
|
|
16818
17065
|
async fetch(options) {
|
|
16819
17066
|
const variables = this._variables;
|
|
16820
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17067
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.FeedItemDocument, "feedItem", this._includes, variables);
|
|
16821
17068
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "feedItem");
|
|
16822
17069
|
const data = response.feedItem;
|
|
16823
17070
|
if (!data) return void 0;
|
|
@@ -16830,7 +17077,7 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16830
17077
|
watch(options) {
|
|
16831
17078
|
const variables = this._variables;
|
|
16832
17079
|
const includes = this._includes;
|
|
16833
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17080
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.FeedItemDocument, "feedItem", includes, variables);
|
|
16834
17081
|
const raw = this._syncEngine.watch(
|
|
16835
17082
|
queryDoc,
|
|
16836
17083
|
mergedVars,
|
|
@@ -16861,10 +17108,10 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16861
17108
|
}
|
|
16862
17109
|
/** Include action in this query (Smart Fetch — single HTTP request). */
|
|
16863
17110
|
action(variables) {
|
|
16864
|
-
const info = extractIncludeInfo(
|
|
17111
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.FeedItem_ActionDocument, "action", ["id"]);
|
|
16865
17112
|
this._includes.push({
|
|
16866
17113
|
fieldName: "action",
|
|
16867
|
-
fragmentDoc:
|
|
17114
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FeedSendMessageActionFragmentDoc,
|
|
16868
17115
|
variables,
|
|
16869
17116
|
isConnection: false,
|
|
16870
17117
|
isList: false,
|
|
@@ -16880,10 +17127,10 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16880
17127
|
}
|
|
16881
17128
|
/** Include data in this query (Smart Fetch — single HTTP request). */
|
|
16882
17129
|
data(variables) {
|
|
16883
|
-
const info = extractIncludeInfo(
|
|
17130
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.FeedItem_DataDocument, "data", ["id"]);
|
|
16884
17131
|
this._includes.push({
|
|
16885
17132
|
fieldName: "data",
|
|
16886
|
-
fragmentDoc:
|
|
17133
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FeedArtifactDataFragmentDoc,
|
|
16887
17134
|
variables,
|
|
16888
17135
|
isConnection: false,
|
|
16889
17136
|
isList: true,
|
|
@@ -16906,14 +17153,14 @@ var FeedItem_ActionQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16906
17153
|
}
|
|
16907
17154
|
async fetch(options) {
|
|
16908
17155
|
const variables = this._variables;
|
|
16909
|
-
const response = await this._syncEngine.query(
|
|
17156
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.FeedItem_ActionDocument, variables, "feedItem");
|
|
16910
17157
|
const data = response.feedItem?.action;
|
|
16911
17158
|
return data ? new FeedSendMessageAction(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16912
17159
|
}
|
|
16913
17160
|
watch(options) {
|
|
16914
17161
|
const variables = this._variables;
|
|
16915
17162
|
const raw = this._syncEngine.watch(
|
|
16916
|
-
|
|
17163
|
+
chunkOCCUM5WH_cjs.FeedItem_ActionDocument,
|
|
16917
17164
|
variables,
|
|
16918
17165
|
"feedItem",
|
|
16919
17166
|
async (db) => {
|
|
@@ -16935,7 +17182,7 @@ var FeedItem_DataQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16935
17182
|
this._variables = variables;
|
|
16936
17183
|
}
|
|
16937
17184
|
async fetch(options) {
|
|
16938
|
-
const response = await this._syncEngine.query(
|
|
17185
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.FeedItem_DataDocument, this._variables, "feedItem");
|
|
16939
17186
|
const data = response.feedItem?.data;
|
|
16940
17187
|
if (!Array.isArray(data)) return [];
|
|
16941
17188
|
return data.map((item) => new FeedArtifactData(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -16950,7 +17197,7 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16950
17197
|
}
|
|
16951
17198
|
async fetch(options) {
|
|
16952
17199
|
const variables = this._variables;
|
|
16953
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17200
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.FeedItemsDocument, "feedItems", this._includes, variables, true);
|
|
16954
17201
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "feedItems");
|
|
16955
17202
|
const data = response.feedItems;
|
|
16956
17203
|
const connection = new FeedConnection(this._request, (conn, opts) => new _FeedItemsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16967,7 +17214,7 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16967
17214
|
const subscriptionId = crypto.randomUUID();
|
|
16968
17215
|
const includes = this._includes;
|
|
16969
17216
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
16970
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17217
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.FeedItemsDocument, "feedItems", includes, variables, true);
|
|
16971
17218
|
const raw = this._syncEngine.watch(
|
|
16972
17219
|
queryDoc,
|
|
16973
17220
|
mergedVars,
|
|
@@ -17002,10 +17249,10 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17002
17249
|
}
|
|
17003
17250
|
/** Include action in this query (Smart Fetch — single HTTP request). */
|
|
17004
17251
|
action(variables) {
|
|
17005
|
-
const info = extractIncludeInfo(
|
|
17252
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.FeedItem_ActionDocument, "action", ["id"]);
|
|
17006
17253
|
this._includes.push({
|
|
17007
17254
|
fieldName: "action",
|
|
17008
|
-
fragmentDoc:
|
|
17255
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FeedSendMessageActionFragmentDoc,
|
|
17009
17256
|
variables,
|
|
17010
17257
|
isConnection: false,
|
|
17011
17258
|
isList: false,
|
|
@@ -17021,10 +17268,10 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17021
17268
|
}
|
|
17022
17269
|
/** Include data in this query (Smart Fetch — single HTTP request). */
|
|
17023
17270
|
data(variables) {
|
|
17024
|
-
const info = extractIncludeInfo(
|
|
17271
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.FeedItem_DataDocument, "data", ["id"]);
|
|
17025
17272
|
this._includes.push({
|
|
17026
17273
|
fieldName: "data",
|
|
17027
|
-
fragmentDoc:
|
|
17274
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FeedArtifactDataFragmentDoc,
|
|
17028
17275
|
variables,
|
|
17029
17276
|
isConnection: false,
|
|
17030
17277
|
isList: true,
|
|
@@ -17041,7 +17288,7 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17041
17288
|
};
|
|
17042
17289
|
var FileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17043
17290
|
async fetch(variables) {
|
|
17044
|
-
const response = await this._request(
|
|
17291
|
+
const response = await this._request(chunkOCCUM5WH_cjs.FileDocument, variables);
|
|
17045
17292
|
return response.file;
|
|
17046
17293
|
}
|
|
17047
17294
|
};
|
|
@@ -17054,7 +17301,7 @@ var FileMetaQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17054
17301
|
}
|
|
17055
17302
|
async fetch(options) {
|
|
17056
17303
|
const variables = this._variables;
|
|
17057
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17304
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.FileMetaDocument, "fileMeta", this._includes, variables);
|
|
17058
17305
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "fileMeta");
|
|
17059
17306
|
const data = response.fileMeta;
|
|
17060
17307
|
if (!data) return void 0;
|
|
@@ -17067,7 +17314,7 @@ var FileMetaQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17067
17314
|
watch(options) {
|
|
17068
17315
|
const variables = this._variables;
|
|
17069
17316
|
const includes = this._includes;
|
|
17070
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17317
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.FileMetaDocument, "fileMeta", includes, variables);
|
|
17071
17318
|
const raw = this._syncEngine.watch(
|
|
17072
17319
|
queryDoc,
|
|
17073
17320
|
mergedVars,
|
|
@@ -17105,7 +17352,7 @@ var FileUrlsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17105
17352
|
this._variables = variables;
|
|
17106
17353
|
}
|
|
17107
17354
|
async fetch(options) {
|
|
17108
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17355
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.FileUrlsDocument, "fileUrls", this._includes, this._variables);
|
|
17109
17356
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "fileUrls");
|
|
17110
17357
|
const data = response.fileUrls;
|
|
17111
17358
|
if (!Array.isArray(data)) return [];
|
|
@@ -17114,7 +17361,7 @@ var FileUrlsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17114
17361
|
};
|
|
17115
17362
|
var FindFitTierQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17116
17363
|
async fetch(variables) {
|
|
17117
|
-
const response = await this._request(
|
|
17364
|
+
const response = await this._request(chunkOCCUM5WH_cjs.FindFitTierDocument, variables);
|
|
17118
17365
|
return response.findFitTier ?? void 0;
|
|
17119
17366
|
}
|
|
17120
17367
|
};
|
|
@@ -17127,7 +17374,7 @@ var FolderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17127
17374
|
}
|
|
17128
17375
|
async fetch(options) {
|
|
17129
17376
|
const variables = this._variables;
|
|
17130
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17377
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.FolderDocument, "folder", this._includes, variables);
|
|
17131
17378
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "folder");
|
|
17132
17379
|
const data = response.folder;
|
|
17133
17380
|
const instance = new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17139,7 +17386,7 @@ var FolderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17139
17386
|
watch(options) {
|
|
17140
17387
|
const variables = this._variables;
|
|
17141
17388
|
const includes = this._includes;
|
|
17142
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17389
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.FolderDocument, "folder", includes, variables);
|
|
17143
17390
|
const raw = this._syncEngine.watch(
|
|
17144
17391
|
queryDoc,
|
|
17145
17392
|
mergedVars,
|
|
@@ -17177,7 +17424,7 @@ var FoldersQuery = class _FoldersQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17177
17424
|
}
|
|
17178
17425
|
async fetch(options) {
|
|
17179
17426
|
const variables = this._variables;
|
|
17180
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17427
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.FoldersDocument, "folders", this._includes, variables, true);
|
|
17181
17428
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "folders");
|
|
17182
17429
|
const data = response.folders;
|
|
17183
17430
|
const connection = new FolderConnection(this._request, (conn, opts) => new _FoldersQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -17194,7 +17441,7 @@ var FoldersQuery = class _FoldersQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17194
17441
|
const subscriptionId = crypto.randomUUID();
|
|
17195
17442
|
const includes = this._includes;
|
|
17196
17443
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
17197
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17444
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.FoldersDocument, "folders", includes, variables, true);
|
|
17198
17445
|
const raw = this._syncEngine.watch(
|
|
17199
17446
|
queryDoc,
|
|
17200
17447
|
mergedVars,
|
|
@@ -17230,7 +17477,7 @@ var FoldersQuery = class _FoldersQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17230
17477
|
};
|
|
17231
17478
|
var GetCapabilityQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17232
17479
|
async fetch(variables) {
|
|
17233
|
-
const response = await this._request(
|
|
17480
|
+
const response = await this._request(chunkOCCUM5WH_cjs.GetCapabilityDocument, variables);
|
|
17234
17481
|
return response.getCapability;
|
|
17235
17482
|
}
|
|
17236
17483
|
};
|
|
@@ -17243,7 +17490,7 @@ var GetDevAccessTokenQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17243
17490
|
}
|
|
17244
17491
|
async fetch(options) {
|
|
17245
17492
|
const variables = this._variables;
|
|
17246
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17493
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.GetDevAccessTokenDocument, "getDevAccessToken", this._includes, variables);
|
|
17247
17494
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getDevAccessToken");
|
|
17248
17495
|
const data = response.getDevAccessToken;
|
|
17249
17496
|
const instance = new DevAccessTokenOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17255,7 +17502,7 @@ var GetDevAccessTokenQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17255
17502
|
watch(options) {
|
|
17256
17503
|
const variables = this._variables;
|
|
17257
17504
|
const includes = this._includes;
|
|
17258
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17505
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.GetDevAccessTokenDocument, "getDevAccessToken", includes, variables);
|
|
17259
17506
|
const raw = this._syncEngine.watch(
|
|
17260
17507
|
queryDoc,
|
|
17261
17508
|
mergedVars,
|
|
@@ -17286,13 +17533,13 @@ var GetDevAccessTokenQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17286
17533
|
};
|
|
17287
17534
|
var GetLimitQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17288
17535
|
async fetch(variables) {
|
|
17289
|
-
const response = await this._request(
|
|
17536
|
+
const response = await this._request(chunkOCCUM5WH_cjs.GetLimitDocument, variables);
|
|
17290
17537
|
return response.getLimit ?? void 0;
|
|
17291
17538
|
}
|
|
17292
17539
|
};
|
|
17293
17540
|
var GetRemainingQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17294
17541
|
async fetch(variables) {
|
|
17295
|
-
const response = await this._request(
|
|
17542
|
+
const response = await this._request(chunkOCCUM5WH_cjs.GetRemainingDocument, variables);
|
|
17296
17543
|
return response.getRemaining ?? void 0;
|
|
17297
17544
|
}
|
|
17298
17545
|
};
|
|
@@ -17304,7 +17551,7 @@ var GetTokenUsageByModelQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17304
17551
|
this._variables = variables;
|
|
17305
17552
|
}
|
|
17306
17553
|
async fetch(options) {
|
|
17307
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17554
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.GetTokenUsageByModelDocument, "getTokenUsageByModel", this._includes, this._variables);
|
|
17308
17555
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageByModel");
|
|
17309
17556
|
const data = response.getTokenUsageByModel;
|
|
17310
17557
|
if (!Array.isArray(data)) return [];
|
|
@@ -17319,7 +17566,7 @@ var GetTokenUsageHistoryQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17319
17566
|
this._variables = variables;
|
|
17320
17567
|
}
|
|
17321
17568
|
async fetch(options) {
|
|
17322
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17569
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.GetTokenUsageHistoryDocument, "getTokenUsageHistory", this._includes, this._variables);
|
|
17323
17570
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageHistory");
|
|
17324
17571
|
const data = response.getTokenUsageHistory;
|
|
17325
17572
|
if (!Array.isArray(data)) return [];
|
|
@@ -17335,7 +17582,7 @@ var GetTokenUsageStatusQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17335
17582
|
}
|
|
17336
17583
|
async fetch(options) {
|
|
17337
17584
|
const variables = this._variables;
|
|
17338
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17585
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", this._includes, variables);
|
|
17339
17586
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageStatus");
|
|
17340
17587
|
const data = response.getTokenUsageStatus;
|
|
17341
17588
|
const instance = new UsageStatus(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17347,7 +17594,7 @@ var GetTokenUsageStatusQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17347
17594
|
watch(options) {
|
|
17348
17595
|
const variables = this._variables;
|
|
17349
17596
|
const includes = this._includes;
|
|
17350
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17597
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", includes, variables);
|
|
17351
17598
|
const raw = this._syncEngine.watch(
|
|
17352
17599
|
queryDoc,
|
|
17353
17600
|
mergedVars,
|
|
@@ -17377,10 +17624,10 @@ var GetTokenUsageStatusQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17377
17624
|
}
|
|
17378
17625
|
/** Include windows in this query (Smart Fetch — single HTTP request). */
|
|
17379
17626
|
windows(variables) {
|
|
17380
|
-
const info = extractIncludeInfo(
|
|
17627
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.GetTokenUsageStatus_WindowsDocument, "windows", []);
|
|
17381
17628
|
this._includes.push({
|
|
17382
17629
|
fieldName: "windows",
|
|
17383
|
-
fragmentDoc:
|
|
17630
|
+
fragmentDoc: chunkOCCUM5WH_cjs.UsageWindowsStatusTypeFragmentDoc,
|
|
17384
17631
|
variables,
|
|
17385
17632
|
isConnection: false,
|
|
17386
17633
|
isList: false,
|
|
@@ -17403,14 +17650,14 @@ var GetTokenUsageStatus_WindowsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17403
17650
|
}
|
|
17404
17651
|
async fetch(options) {
|
|
17405
17652
|
const variables = this._variables;
|
|
17406
|
-
const response = await this._syncEngine.query(
|
|
17653
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.GetTokenUsageStatus_WindowsDocument, variables, "getTokenUsageStatus");
|
|
17407
17654
|
const data = response.getTokenUsageStatus?.windows;
|
|
17408
17655
|
return data ? new UsageWindowsStatusType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17409
17656
|
}
|
|
17410
17657
|
watch(options) {
|
|
17411
17658
|
const variables = this._variables;
|
|
17412
17659
|
const raw = this._syncEngine.watch(
|
|
17413
|
-
|
|
17660
|
+
chunkOCCUM5WH_cjs.GetTokenUsageStatus_WindowsDocument,
|
|
17414
17661
|
variables,
|
|
17415
17662
|
"getTokenUsageStatus",
|
|
17416
17663
|
async (db) => {
|
|
@@ -17433,14 +17680,14 @@ var GetTokenUsageStatus_Windows_DayQuery = class extends chunk342BFYZZ_cjs.Reque
|
|
|
17433
17680
|
}
|
|
17434
17681
|
async fetch(options) {
|
|
17435
17682
|
const variables = this._variables;
|
|
17436
|
-
const response = await this._syncEngine.query(
|
|
17683
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.GetTokenUsageStatus_Windows_DayDocument, variables, "getTokenUsageStatus");
|
|
17437
17684
|
const data = response.getTokenUsageStatus?.windows?.day;
|
|
17438
17685
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17439
17686
|
}
|
|
17440
17687
|
watch(options) {
|
|
17441
17688
|
const variables = this._variables;
|
|
17442
17689
|
const raw = this._syncEngine.watch(
|
|
17443
|
-
|
|
17690
|
+
chunkOCCUM5WH_cjs.GetTokenUsageStatus_Windows_DayDocument,
|
|
17444
17691
|
variables,
|
|
17445
17692
|
"getTokenUsageStatus",
|
|
17446
17693
|
async (db) => {
|
|
@@ -17463,14 +17710,14 @@ var GetTokenUsageStatus_Windows_FiveHourQuery = class extends chunk342BFYZZ_cjs.
|
|
|
17463
17710
|
}
|
|
17464
17711
|
async fetch(options) {
|
|
17465
17712
|
const variables = this._variables;
|
|
17466
|
-
const response = await this._syncEngine.query(
|
|
17713
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.GetTokenUsageStatus_Windows_FiveHourDocument, variables, "getTokenUsageStatus");
|
|
17467
17714
|
const data = response.getTokenUsageStatus?.windows?.fiveHour;
|
|
17468
17715
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17469
17716
|
}
|
|
17470
17717
|
watch(options) {
|
|
17471
17718
|
const variables = this._variables;
|
|
17472
17719
|
const raw = this._syncEngine.watch(
|
|
17473
|
-
|
|
17720
|
+
chunkOCCUM5WH_cjs.GetTokenUsageStatus_Windows_FiveHourDocument,
|
|
17474
17721
|
variables,
|
|
17475
17722
|
"getTokenUsageStatus",
|
|
17476
17723
|
async (db) => {
|
|
@@ -17493,14 +17740,14 @@ var GetTokenUsageStatus_Windows_MonthQuery = class extends chunk342BFYZZ_cjs.Req
|
|
|
17493
17740
|
}
|
|
17494
17741
|
async fetch(options) {
|
|
17495
17742
|
const variables = this._variables;
|
|
17496
|
-
const response = await this._syncEngine.query(
|
|
17743
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.GetTokenUsageStatus_Windows_MonthDocument, variables, "getTokenUsageStatus");
|
|
17497
17744
|
const data = response.getTokenUsageStatus?.windows?.month;
|
|
17498
17745
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17499
17746
|
}
|
|
17500
17747
|
watch(options) {
|
|
17501
17748
|
const variables = this._variables;
|
|
17502
17749
|
const raw = this._syncEngine.watch(
|
|
17503
|
-
|
|
17750
|
+
chunkOCCUM5WH_cjs.GetTokenUsageStatus_Windows_MonthDocument,
|
|
17504
17751
|
variables,
|
|
17505
17752
|
"getTokenUsageStatus",
|
|
17506
17753
|
async (db) => {
|
|
@@ -17523,14 +17770,14 @@ var GetTokenUsageStatus_Windows_WeekQuery = class extends chunk342BFYZZ_cjs.Requ
|
|
|
17523
17770
|
}
|
|
17524
17771
|
async fetch(options) {
|
|
17525
17772
|
const variables = this._variables;
|
|
17526
|
-
const response = await this._syncEngine.query(
|
|
17773
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.GetTokenUsageStatus_Windows_WeekDocument, variables, "getTokenUsageStatus");
|
|
17527
17774
|
const data = response.getTokenUsageStatus?.windows?.week;
|
|
17528
17775
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17529
17776
|
}
|
|
17530
17777
|
watch(options) {
|
|
17531
17778
|
const variables = this._variables;
|
|
17532
17779
|
const raw = this._syncEngine.watch(
|
|
17533
|
-
|
|
17780
|
+
chunkOCCUM5WH_cjs.GetTokenUsageStatus_Windows_WeekDocument,
|
|
17534
17781
|
variables,
|
|
17535
17782
|
"getTokenUsageStatus",
|
|
17536
17783
|
async (db) => {
|
|
@@ -17547,7 +17794,7 @@ var GetTokenUsageStatus_Windows_WeekQuery = class extends chunk342BFYZZ_cjs.Requ
|
|
|
17547
17794
|
};
|
|
17548
17795
|
var GetUsageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17549
17796
|
async fetch(variables) {
|
|
17550
|
-
const response = await this._request(
|
|
17797
|
+
const response = await this._request(chunkOCCUM5WH_cjs.GetUsageDocument, variables);
|
|
17551
17798
|
return response.getUsage ?? void 0;
|
|
17552
17799
|
}
|
|
17553
17800
|
};
|
|
@@ -17560,7 +17807,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17560
17807
|
}
|
|
17561
17808
|
async fetch(options) {
|
|
17562
17809
|
const variables = this._variables;
|
|
17563
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17810
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.InsightDocument, "insight", this._includes, variables);
|
|
17564
17811
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "insight");
|
|
17565
17812
|
const data = response.insight;
|
|
17566
17813
|
const instance = new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17572,7 +17819,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17572
17819
|
watch(options) {
|
|
17573
17820
|
const variables = this._variables;
|
|
17574
17821
|
const includes = this._includes;
|
|
17575
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17822
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.InsightDocument, "insight", includes, variables);
|
|
17576
17823
|
const raw = this._syncEngine.watch(
|
|
17577
17824
|
queryDoc,
|
|
17578
17825
|
mergedVars,
|
|
@@ -17602,7 +17849,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17602
17849
|
}
|
|
17603
17850
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
17604
17851
|
chat(variables, builder) {
|
|
17605
|
-
const info = extractIncludeInfo(
|
|
17852
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
17606
17853
|
let children;
|
|
17607
17854
|
if (builder) {
|
|
17608
17855
|
const sub = new ChatSubBuilder();
|
|
@@ -17611,7 +17858,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17611
17858
|
}
|
|
17612
17859
|
this._includes.push({
|
|
17613
17860
|
fieldName: "chat",
|
|
17614
|
-
fragmentDoc:
|
|
17861
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatFragmentDoc,
|
|
17615
17862
|
variables,
|
|
17616
17863
|
isConnection: false,
|
|
17617
17864
|
isList: false,
|
|
@@ -17628,10 +17875,10 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17628
17875
|
}
|
|
17629
17876
|
/** Include reportMembers in this query (Smart Fetch — single HTTP request). */
|
|
17630
17877
|
reportMembers(variables) {
|
|
17631
|
-
const info = extractIncludeInfo(
|
|
17878
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
17632
17879
|
this._includes.push({
|
|
17633
17880
|
fieldName: "reportMembers",
|
|
17634
|
-
fragmentDoc:
|
|
17881
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ReportMemberFragmentDoc,
|
|
17635
17882
|
variables,
|
|
17636
17883
|
isConnection: false,
|
|
17637
17884
|
isList: true,
|
|
@@ -17647,7 +17894,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17647
17894
|
}
|
|
17648
17895
|
/** Include reports in this query (Smart Fetch — single HTTP request). */
|
|
17649
17896
|
reports(variables, builder) {
|
|
17650
|
-
const info = extractIncludeInfo(
|
|
17897
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
17651
17898
|
let children;
|
|
17652
17899
|
if (builder) {
|
|
17653
17900
|
const sub = new ReportSubBuilder();
|
|
@@ -17656,7 +17903,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17656
17903
|
}
|
|
17657
17904
|
this._includes.push({
|
|
17658
17905
|
fieldName: "reports",
|
|
17659
|
-
fragmentDoc:
|
|
17906
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ReportConnectionFragmentDoc,
|
|
17660
17907
|
variables,
|
|
17661
17908
|
isConnection: true,
|
|
17662
17909
|
isList: false,
|
|
@@ -17674,10 +17921,10 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17674
17921
|
}
|
|
17675
17922
|
/** Include thumbnailFile in this query (Smart Fetch — single HTTP request). */
|
|
17676
17923
|
thumbnailFile(variables) {
|
|
17677
|
-
const info = extractIncludeInfo(
|
|
17924
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
|
|
17678
17925
|
this._includes.push({
|
|
17679
17926
|
fieldName: "thumbnailFile",
|
|
17680
|
-
fragmentDoc:
|
|
17927
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FileFragmentDoc,
|
|
17681
17928
|
variables,
|
|
17682
17929
|
isConnection: false,
|
|
17683
17930
|
isList: false,
|
|
@@ -17700,14 +17947,14 @@ var Insight_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17700
17947
|
}
|
|
17701
17948
|
async fetch(options) {
|
|
17702
17949
|
const variables = this._variables;
|
|
17703
|
-
const response = await this._syncEngine.query(
|
|
17950
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Insight_ChatDocument, variables, "insight");
|
|
17704
17951
|
const data = response.insight?.chat;
|
|
17705
17952
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17706
17953
|
}
|
|
17707
17954
|
watch(options) {
|
|
17708
17955
|
const variables = this._variables;
|
|
17709
17956
|
const raw = this._syncEngine.watch(
|
|
17710
|
-
|
|
17957
|
+
chunkOCCUM5WH_cjs.Insight_ChatDocument,
|
|
17711
17958
|
variables,
|
|
17712
17959
|
"insight",
|
|
17713
17960
|
async (db) => {
|
|
@@ -17729,7 +17976,7 @@ var Insight_ReportMembersQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17729
17976
|
this._variables = variables;
|
|
17730
17977
|
}
|
|
17731
17978
|
async fetch(options) {
|
|
17732
|
-
const response = await this._syncEngine.query(
|
|
17979
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Insight_ReportMembersDocument, this._variables, "insight");
|
|
17733
17980
|
const data = response.insight?.reportMembers;
|
|
17734
17981
|
if (!Array.isArray(data)) return [];
|
|
17735
17982
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -17743,18 +17990,18 @@ var Insight_ReportsQuery = class _Insight_ReportsQuery extends chunk342BFYZZ_cjs
|
|
|
17743
17990
|
}
|
|
17744
17991
|
async fetch(options) {
|
|
17745
17992
|
const variables = this._variables;
|
|
17746
|
-
const response = await this._syncEngine.query(
|
|
17993
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Insight_ReportsDocument, variables, "insight");
|
|
17747
17994
|
const data = response.insight?.reports;
|
|
17748
17995
|
return new ReportConnection(this._request, (conn, opts) => new _Insight_ReportsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
17749
17996
|
}
|
|
17750
17997
|
watch(options) {
|
|
17751
17998
|
const variables = this._variables;
|
|
17752
17999
|
const raw = this._syncEngine.watch(
|
|
17753
|
-
|
|
18000
|
+
chunkOCCUM5WH_cjs.Insight_ReportsDocument,
|
|
17754
18001
|
variables,
|
|
17755
18002
|
"insight",
|
|
17756
18003
|
async (db) => {
|
|
17757
|
-
const qr = await db._queryResults.get(buildQueryKey("insight", variables,
|
|
18004
|
+
const qr = await db._queryResults.get(buildQueryKey("insight", variables, chunkOCCUM5WH_cjs.Insight_ReportsDocument));
|
|
17758
18005
|
const nodes = qr ? await db.table("reports").bulkGet(qr.entityIds) : [];
|
|
17759
18006
|
return { insight: { reports: { __typename: "ReportConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
17760
18007
|
}
|
|
@@ -17773,14 +18020,14 @@ var Insight_ThumbnailFileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17773
18020
|
}
|
|
17774
18021
|
async fetch(options) {
|
|
17775
18022
|
const variables = this._variables;
|
|
17776
|
-
const response = await this._syncEngine.query(
|
|
18023
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Insight_ThumbnailFileDocument, variables, "insight");
|
|
17777
18024
|
const data = response.insight?.thumbnailFile;
|
|
17778
18025
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17779
18026
|
}
|
|
17780
18027
|
watch(options) {
|
|
17781
18028
|
const variables = this._variables;
|
|
17782
18029
|
const raw = this._syncEngine.watch(
|
|
17783
|
-
|
|
18030
|
+
chunkOCCUM5WH_cjs.Insight_ThumbnailFileDocument,
|
|
17784
18031
|
variables,
|
|
17785
18032
|
"insight",
|
|
17786
18033
|
async (db) => {
|
|
@@ -17804,7 +18051,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17804
18051
|
}
|
|
17805
18052
|
async fetch(options) {
|
|
17806
18053
|
const variables = this._variables;
|
|
17807
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18054
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.InsightsDocument, "insights", this._includes, variables, true);
|
|
17808
18055
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "insights");
|
|
17809
18056
|
const data = response.insights;
|
|
17810
18057
|
const connection = new InsightConnection(this._request, (conn, opts) => new _InsightsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -17821,7 +18068,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17821
18068
|
const subscriptionId = crypto.randomUUID();
|
|
17822
18069
|
const includes = this._includes;
|
|
17823
18070
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
17824
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18071
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.InsightsDocument, "insights", includes, variables, true);
|
|
17825
18072
|
const raw = this._syncEngine.watch(
|
|
17826
18073
|
queryDoc,
|
|
17827
18074
|
mergedVars,
|
|
@@ -17856,7 +18103,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17856
18103
|
}
|
|
17857
18104
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
17858
18105
|
chat(variables, builder) {
|
|
17859
|
-
const info = extractIncludeInfo(
|
|
18106
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
17860
18107
|
let children;
|
|
17861
18108
|
if (builder) {
|
|
17862
18109
|
const sub = new ChatSubBuilder();
|
|
@@ -17865,7 +18112,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17865
18112
|
}
|
|
17866
18113
|
this._includes.push({
|
|
17867
18114
|
fieldName: "chat",
|
|
17868
|
-
fragmentDoc:
|
|
18115
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ChatFragmentDoc,
|
|
17869
18116
|
variables,
|
|
17870
18117
|
isConnection: false,
|
|
17871
18118
|
isList: false,
|
|
@@ -17882,10 +18129,10 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17882
18129
|
}
|
|
17883
18130
|
/** Include reportMembers in this query (Smart Fetch — single HTTP request). */
|
|
17884
18131
|
reportMembers(variables) {
|
|
17885
|
-
const info = extractIncludeInfo(
|
|
18132
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
17886
18133
|
this._includes.push({
|
|
17887
18134
|
fieldName: "reportMembers",
|
|
17888
|
-
fragmentDoc:
|
|
18135
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ReportMemberFragmentDoc,
|
|
17889
18136
|
variables,
|
|
17890
18137
|
isConnection: false,
|
|
17891
18138
|
isList: true,
|
|
@@ -17901,7 +18148,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17901
18148
|
}
|
|
17902
18149
|
/** Include reports in this query (Smart Fetch — single HTTP request). */
|
|
17903
18150
|
reports(variables, builder) {
|
|
17904
|
-
const info = extractIncludeInfo(
|
|
18151
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
17905
18152
|
let children;
|
|
17906
18153
|
if (builder) {
|
|
17907
18154
|
const sub = new ReportSubBuilder();
|
|
@@ -17910,7 +18157,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17910
18157
|
}
|
|
17911
18158
|
this._includes.push({
|
|
17912
18159
|
fieldName: "reports",
|
|
17913
|
-
fragmentDoc:
|
|
18160
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ReportConnectionFragmentDoc,
|
|
17914
18161
|
variables,
|
|
17915
18162
|
isConnection: true,
|
|
17916
18163
|
isList: false,
|
|
@@ -17928,10 +18175,10 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17928
18175
|
}
|
|
17929
18176
|
/** Include thumbnailFile in this query (Smart Fetch — single HTTP request). */
|
|
17930
18177
|
thumbnailFile(variables) {
|
|
17931
|
-
const info = extractIncludeInfo(
|
|
18178
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
|
|
17932
18179
|
this._includes.push({
|
|
17933
18180
|
fieldName: "thumbnailFile",
|
|
17934
|
-
fragmentDoc:
|
|
18181
|
+
fragmentDoc: chunkOCCUM5WH_cjs.FileFragmentDoc,
|
|
17935
18182
|
variables,
|
|
17936
18183
|
isConnection: false,
|
|
17937
18184
|
isList: false,
|
|
@@ -17955,7 +18202,7 @@ var IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17955
18202
|
}
|
|
17956
18203
|
async fetch(options) {
|
|
17957
18204
|
const variables = this._variables;
|
|
17958
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18205
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.IntegrationDocument, "integration", this._includes, variables);
|
|
17959
18206
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integration");
|
|
17960
18207
|
const data = response.integration;
|
|
17961
18208
|
const instance = new Integration(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17967,7 +18214,7 @@ var IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17967
18214
|
watch(options) {
|
|
17968
18215
|
const variables = this._variables;
|
|
17969
18216
|
const includes = this._includes;
|
|
17970
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18217
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.IntegrationDocument, "integration", includes, variables);
|
|
17971
18218
|
const raw = this._syncEngine.watch(
|
|
17972
18219
|
queryDoc,
|
|
17973
18220
|
mergedVars,
|
|
@@ -17997,10 +18244,10 @@ var IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17997
18244
|
}
|
|
17998
18245
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
17999
18246
|
provider(variables) {
|
|
18000
|
-
const info = extractIncludeInfo(
|
|
18247
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
18001
18248
|
this._includes.push({
|
|
18002
18249
|
fieldName: "provider",
|
|
18003
|
-
fragmentDoc:
|
|
18250
|
+
fragmentDoc: chunkOCCUM5WH_cjs.IntegrationProviderFragmentDoc,
|
|
18004
18251
|
variables,
|
|
18005
18252
|
isConnection: false,
|
|
18006
18253
|
isList: false,
|
|
@@ -18023,14 +18270,14 @@ var Integration_ProviderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18023
18270
|
}
|
|
18024
18271
|
async fetch(options) {
|
|
18025
18272
|
const variables = this._variables;
|
|
18026
|
-
const response = await this._syncEngine.query(
|
|
18273
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Integration_ProviderDocument, variables, "integration");
|
|
18027
18274
|
const data = response.integration?.provider;
|
|
18028
18275
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18029
18276
|
}
|
|
18030
18277
|
watch(options) {
|
|
18031
18278
|
const variables = this._variables;
|
|
18032
18279
|
const raw = this._syncEngine.watch(
|
|
18033
|
-
|
|
18280
|
+
chunkOCCUM5WH_cjs.Integration_ProviderDocument,
|
|
18034
18281
|
variables,
|
|
18035
18282
|
"integration",
|
|
18036
18283
|
async (db) => {
|
|
@@ -18053,14 +18300,14 @@ var Integration_Provider_CatalogQuery = class extends chunk342BFYZZ_cjs.Request
|
|
|
18053
18300
|
}
|
|
18054
18301
|
async fetch(options) {
|
|
18055
18302
|
const variables = this._variables;
|
|
18056
|
-
const response = await this._syncEngine.query(
|
|
18303
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Integration_Provider_CatalogDocument, variables, "integration");
|
|
18057
18304
|
const data = response.integration?.provider?.catalog;
|
|
18058
18305
|
return data ? new IntegrationCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18059
18306
|
}
|
|
18060
18307
|
watch(options) {
|
|
18061
18308
|
const variables = this._variables;
|
|
18062
18309
|
const raw = this._syncEngine.watch(
|
|
18063
|
-
|
|
18310
|
+
chunkOCCUM5WH_cjs.Integration_Provider_CatalogDocument,
|
|
18064
18311
|
variables,
|
|
18065
18312
|
"integration",
|
|
18066
18313
|
async (db) => {
|
|
@@ -18084,7 +18331,7 @@ var IntegrationCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18084
18331
|
}
|
|
18085
18332
|
async fetch(options) {
|
|
18086
18333
|
const variables = this._variables;
|
|
18087
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18334
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.IntegrationCatalogDocument, "integrationCatalog", this._includes, variables);
|
|
18088
18335
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrationCatalog");
|
|
18089
18336
|
const data = response.integrationCatalog;
|
|
18090
18337
|
const instance = new IntegrationCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18096,7 +18343,7 @@ var IntegrationCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18096
18343
|
watch(options) {
|
|
18097
18344
|
const variables = this._variables;
|
|
18098
18345
|
const includes = this._includes;
|
|
18099
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18346
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.IntegrationCatalogDocument, "integrationCatalog", includes, variables);
|
|
18100
18347
|
const raw = this._syncEngine.watch(
|
|
18101
18348
|
queryDoc,
|
|
18102
18349
|
mergedVars,
|
|
@@ -18126,10 +18373,10 @@ var IntegrationCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18126
18373
|
}
|
|
18127
18374
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
18128
18375
|
provider(variables) {
|
|
18129
|
-
const info = extractIncludeInfo(
|
|
18376
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
18130
18377
|
this._includes.push({
|
|
18131
18378
|
fieldName: "provider",
|
|
18132
|
-
fragmentDoc:
|
|
18379
|
+
fragmentDoc: chunkOCCUM5WH_cjs.IntegrationProviderFragmentDoc,
|
|
18133
18380
|
variables,
|
|
18134
18381
|
isConnection: false,
|
|
18135
18382
|
isList: false,
|
|
@@ -18152,14 +18399,14 @@ var IntegrationCatalog_ProviderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18152
18399
|
}
|
|
18153
18400
|
async fetch(options) {
|
|
18154
18401
|
const variables = this._variables;
|
|
18155
|
-
const response = await this._syncEngine.query(
|
|
18402
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.IntegrationCatalog_ProviderDocument, variables, "integrationCatalog");
|
|
18156
18403
|
const data = response.integrationCatalog?.provider;
|
|
18157
18404
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18158
18405
|
}
|
|
18159
18406
|
watch(options) {
|
|
18160
18407
|
const variables = this._variables;
|
|
18161
18408
|
const raw = this._syncEngine.watch(
|
|
18162
|
-
|
|
18409
|
+
chunkOCCUM5WH_cjs.IntegrationCatalog_ProviderDocument,
|
|
18163
18410
|
variables,
|
|
18164
18411
|
"integrationCatalog",
|
|
18165
18412
|
async (db) => {
|
|
@@ -18176,7 +18423,7 @@ var IntegrationCatalog_ProviderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18176
18423
|
};
|
|
18177
18424
|
var IntegrationCatalogToolsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
18178
18425
|
async fetch(variables) {
|
|
18179
|
-
const response = await this._request(
|
|
18426
|
+
const response = await this._request(chunkOCCUM5WH_cjs.IntegrationCatalogToolsDocument, variables);
|
|
18180
18427
|
return response.integrationCatalogTools;
|
|
18181
18428
|
}
|
|
18182
18429
|
};
|
|
@@ -18189,7 +18436,7 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk342B
|
|
|
18189
18436
|
}
|
|
18190
18437
|
async fetch(options) {
|
|
18191
18438
|
const variables = this._variables;
|
|
18192
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18439
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.IntegrationCatalogsDocument, "integrationCatalogs", this._includes, variables, true);
|
|
18193
18440
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrationCatalogs");
|
|
18194
18441
|
const data = response.integrationCatalogs;
|
|
18195
18442
|
const connection = new IntegrationCatalogConnection(this._request, (conn, opts) => new _IntegrationCatalogsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -18206,7 +18453,7 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk342B
|
|
|
18206
18453
|
const subscriptionId = crypto.randomUUID();
|
|
18207
18454
|
const includes = this._includes;
|
|
18208
18455
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
18209
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18456
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.IntegrationCatalogsDocument, "integrationCatalogs", includes, variables, true);
|
|
18210
18457
|
const raw = this._syncEngine.watch(
|
|
18211
18458
|
queryDoc,
|
|
18212
18459
|
mergedVars,
|
|
@@ -18241,10 +18488,10 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk342B
|
|
|
18241
18488
|
}
|
|
18242
18489
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
18243
18490
|
provider(variables) {
|
|
18244
|
-
const info = extractIncludeInfo(
|
|
18491
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
18245
18492
|
this._includes.push({
|
|
18246
18493
|
fieldName: "provider",
|
|
18247
|
-
fragmentDoc:
|
|
18494
|
+
fragmentDoc: chunkOCCUM5WH_cjs.IntegrationProviderFragmentDoc,
|
|
18248
18495
|
variables,
|
|
18249
18496
|
isConnection: false,
|
|
18250
18497
|
isList: false,
|
|
@@ -18268,7 +18515,7 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
18268
18515
|
}
|
|
18269
18516
|
async fetch(options) {
|
|
18270
18517
|
const variables = this._variables;
|
|
18271
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18518
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.IntegrationsDocument, "integrations", this._includes, variables, true);
|
|
18272
18519
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrations");
|
|
18273
18520
|
const data = response.integrations;
|
|
18274
18521
|
const connection = new IntegrationConnection(this._request, (conn, opts) => new _IntegrationsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -18285,7 +18532,7 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
18285
18532
|
const subscriptionId = crypto.randomUUID();
|
|
18286
18533
|
const includes = this._includes;
|
|
18287
18534
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
18288
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18535
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.IntegrationsDocument, "integrations", includes, variables, true);
|
|
18289
18536
|
const raw = this._syncEngine.watch(
|
|
18290
18537
|
queryDoc,
|
|
18291
18538
|
mergedVars,
|
|
@@ -18320,10 +18567,10 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
18320
18567
|
}
|
|
18321
18568
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
18322
18569
|
provider(variables) {
|
|
18323
|
-
const info = extractIncludeInfo(
|
|
18570
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
18324
18571
|
this._includes.push({
|
|
18325
18572
|
fieldName: "provider",
|
|
18326
|
-
fragmentDoc:
|
|
18573
|
+
fragmentDoc: chunkOCCUM5WH_cjs.IntegrationProviderFragmentDoc,
|
|
18327
18574
|
variables,
|
|
18328
18575
|
isConnection: false,
|
|
18329
18576
|
isList: false,
|
|
@@ -18347,7 +18594,7 @@ var InterpretationsQuery = class _InterpretationsQuery extends chunk342BFYZZ_cjs
|
|
|
18347
18594
|
}
|
|
18348
18595
|
async fetch(options) {
|
|
18349
18596
|
const variables = this._variables;
|
|
18350
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18597
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.InterpretationsDocument, "interpretations", this._includes, variables, true);
|
|
18351
18598
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "interpretations");
|
|
18352
18599
|
const data = response.interpretations;
|
|
18353
18600
|
const connection = new InterpretationConnection(this._request, (conn, opts) => new _InterpretationsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -18364,7 +18611,7 @@ var InterpretationsQuery = class _InterpretationsQuery extends chunk342BFYZZ_cjs
|
|
|
18364
18611
|
const subscriptionId = crypto.randomUUID();
|
|
18365
18612
|
const includes = this._includes;
|
|
18366
18613
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
18367
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18614
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.InterpretationsDocument, "interpretations", includes, variables, true);
|
|
18368
18615
|
const raw = this._syncEngine.watch(
|
|
18369
18616
|
queryDoc,
|
|
18370
18617
|
mergedVars,
|
|
@@ -18407,7 +18654,7 @@ var NotificationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18407
18654
|
}
|
|
18408
18655
|
async fetch(options) {
|
|
18409
18656
|
const variables = this._variables;
|
|
18410
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18657
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.NotificationDocument, "notification", this._includes, variables);
|
|
18411
18658
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notification");
|
|
18412
18659
|
const data = response.notification;
|
|
18413
18660
|
const instance = new Notification(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18419,7 +18666,7 @@ var NotificationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18419
18666
|
watch(options) {
|
|
18420
18667
|
const variables = this._variables;
|
|
18421
18668
|
const includes = this._includes;
|
|
18422
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18669
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.NotificationDocument, "notification", includes, variables);
|
|
18423
18670
|
const raw = this._syncEngine.watch(
|
|
18424
18671
|
queryDoc,
|
|
18425
18672
|
mergedVars,
|
|
@@ -18457,7 +18704,7 @@ var NotificationsQuery = class _NotificationsQuery extends chunk342BFYZZ_cjs.Req
|
|
|
18457
18704
|
}
|
|
18458
18705
|
async fetch(options) {
|
|
18459
18706
|
const variables = this._variables;
|
|
18460
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18707
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.NotificationsDocument, "notifications", this._includes, variables, true);
|
|
18461
18708
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notifications");
|
|
18462
18709
|
const data = response.notifications;
|
|
18463
18710
|
const connection = new NotificationConnection(this._request, (conn, opts) => new _NotificationsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -18474,7 +18721,7 @@ var NotificationsQuery = class _NotificationsQuery extends chunk342BFYZZ_cjs.Req
|
|
|
18474
18721
|
const subscriptionId = crypto.randomUUID();
|
|
18475
18722
|
const includes = this._includes;
|
|
18476
18723
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
18477
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18724
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.NotificationsDocument, "notifications", includes, variables, true);
|
|
18478
18725
|
const raw = this._syncEngine.watch(
|
|
18479
18726
|
queryDoc,
|
|
18480
18727
|
mergedVars,
|
|
@@ -18516,7 +18763,7 @@ var NotificationsByReferenceQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18516
18763
|
this._variables = variables;
|
|
18517
18764
|
}
|
|
18518
18765
|
async fetch(options) {
|
|
18519
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18766
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.NotificationsByReferenceDocument, "notificationsByReference", this._includes, this._variables);
|
|
18520
18767
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notificationsByReference");
|
|
18521
18768
|
const data = response.notificationsByReference;
|
|
18522
18769
|
if (!Array.isArray(data)) return [];
|
|
@@ -18532,7 +18779,7 @@ var PrivacyStatsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18532
18779
|
}
|
|
18533
18780
|
async fetch(options) {
|
|
18534
18781
|
const variables = this._variables;
|
|
18535
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18782
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.PrivacyStatsDocument, "privacyStats", this._includes, variables);
|
|
18536
18783
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "privacyStats");
|
|
18537
18784
|
const data = response.privacyStats;
|
|
18538
18785
|
const instance = new PrivacyStats(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18544,7 +18791,7 @@ var PrivacyStatsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18544
18791
|
watch(options) {
|
|
18545
18792
|
const variables = this._variables;
|
|
18546
18793
|
const includes = this._includes;
|
|
18547
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18794
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.PrivacyStatsDocument, "privacyStats", includes, variables);
|
|
18548
18795
|
const raw = this._syncEngine.watch(
|
|
18549
18796
|
queryDoc,
|
|
18550
18797
|
mergedVars,
|
|
@@ -18582,7 +18829,7 @@ var PulseAppSummaryQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18582
18829
|
}
|
|
18583
18830
|
async fetch(options) {
|
|
18584
18831
|
const variables = this._variables;
|
|
18585
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18832
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.PulseAppSummaryDocument, "pulseAppSummary", this._includes, variables);
|
|
18586
18833
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseAppSummary");
|
|
18587
18834
|
const data = response.pulseAppSummary;
|
|
18588
18835
|
if (!data) return void 0;
|
|
@@ -18595,7 +18842,7 @@ var PulseAppSummaryQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18595
18842
|
watch(options) {
|
|
18596
18843
|
const variables = this._variables;
|
|
18597
18844
|
const includes = this._includes;
|
|
18598
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18845
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.PulseAppSummaryDocument, "pulseAppSummary", includes, variables);
|
|
18599
18846
|
const raw = this._syncEngine.watch(
|
|
18600
18847
|
queryDoc,
|
|
18601
18848
|
mergedVars,
|
|
@@ -18634,7 +18881,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18634
18881
|
}
|
|
18635
18882
|
async fetch(options) {
|
|
18636
18883
|
const variables = this._variables;
|
|
18637
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18884
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.PulseEventDocument, "pulseEvent", this._includes, variables);
|
|
18638
18885
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEvent");
|
|
18639
18886
|
const data = response.pulseEvent;
|
|
18640
18887
|
const instance = new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18646,7 +18893,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18646
18893
|
watch(options) {
|
|
18647
18894
|
const variables = this._variables;
|
|
18648
18895
|
const includes = this._includes;
|
|
18649
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18896
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.PulseEventDocument, "pulseEvent", includes, variables);
|
|
18650
18897
|
const raw = this._syncEngine.watch(
|
|
18651
18898
|
queryDoc,
|
|
18652
18899
|
mergedVars,
|
|
@@ -18676,7 +18923,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18676
18923
|
}
|
|
18677
18924
|
/** Include integration in this query (Smart Fetch — single HTTP request). */
|
|
18678
18925
|
integration(variables, builder) {
|
|
18679
|
-
const info = extractIncludeInfo(
|
|
18926
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
18680
18927
|
let children;
|
|
18681
18928
|
if (builder) {
|
|
18682
18929
|
const sub = new IntegrationSubBuilder();
|
|
@@ -18685,7 +18932,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18685
18932
|
}
|
|
18686
18933
|
this._includes.push({
|
|
18687
18934
|
fieldName: "integration",
|
|
18688
|
-
fragmentDoc:
|
|
18935
|
+
fragmentDoc: chunkOCCUM5WH_cjs.IntegrationFragmentDoc,
|
|
18689
18936
|
variables,
|
|
18690
18937
|
isConnection: false,
|
|
18691
18938
|
isList: false,
|
|
@@ -18709,14 +18956,14 @@ var PulseEvent_IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18709
18956
|
}
|
|
18710
18957
|
async fetch(options) {
|
|
18711
18958
|
const variables = this._variables;
|
|
18712
|
-
const response = await this._syncEngine.query(
|
|
18959
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.PulseEvent_IntegrationDocument, variables, "pulseEvent");
|
|
18713
18960
|
const data = response.pulseEvent?.integration;
|
|
18714
18961
|
return data ? new Integration(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18715
18962
|
}
|
|
18716
18963
|
watch(options) {
|
|
18717
18964
|
const variables = this._variables;
|
|
18718
18965
|
const raw = this._syncEngine.watch(
|
|
18719
|
-
|
|
18966
|
+
chunkOCCUM5WH_cjs.PulseEvent_IntegrationDocument,
|
|
18720
18967
|
variables,
|
|
18721
18968
|
"pulseEvent",
|
|
18722
18969
|
async (db) => {
|
|
@@ -18739,14 +18986,14 @@ var PulseEvent_Integration_ProviderQuery = class extends chunk342BFYZZ_cjs.Reque
|
|
|
18739
18986
|
}
|
|
18740
18987
|
async fetch(options) {
|
|
18741
18988
|
const variables = this._variables;
|
|
18742
|
-
const response = await this._syncEngine.query(
|
|
18989
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.PulseEvent_Integration_ProviderDocument, variables, "pulseEvent");
|
|
18743
18990
|
const data = response.pulseEvent?.integration?.provider;
|
|
18744
18991
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18745
18992
|
}
|
|
18746
18993
|
watch(options) {
|
|
18747
18994
|
const variables = this._variables;
|
|
18748
18995
|
const raw = this._syncEngine.watch(
|
|
18749
|
-
|
|
18996
|
+
chunkOCCUM5WH_cjs.PulseEvent_Integration_ProviderDocument,
|
|
18750
18997
|
variables,
|
|
18751
18998
|
"pulseEvent",
|
|
18752
18999
|
async (db) => {
|
|
@@ -18770,7 +19017,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
18770
19017
|
}
|
|
18771
19018
|
async fetch(options) {
|
|
18772
19019
|
const variables = this._variables;
|
|
18773
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19020
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.PulseEventsDocument, "pulseEvents", this._includes, variables, true);
|
|
18774
19021
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEvents");
|
|
18775
19022
|
const data = response.pulseEvents;
|
|
18776
19023
|
const connection = new PulseEventConnection(this._request, (conn, opts) => new _PulseEventsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -18787,7 +19034,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
18787
19034
|
const subscriptionId = crypto.randomUUID();
|
|
18788
19035
|
const includes = this._includes;
|
|
18789
19036
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
18790
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19037
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.PulseEventsDocument, "pulseEvents", includes, variables, true);
|
|
18791
19038
|
const raw = this._syncEngine.watch(
|
|
18792
19039
|
queryDoc,
|
|
18793
19040
|
mergedVars,
|
|
@@ -18822,7 +19069,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
18822
19069
|
}
|
|
18823
19070
|
/** Include integration in this query (Smart Fetch — single HTTP request). */
|
|
18824
19071
|
integration(variables, builder) {
|
|
18825
|
-
const info = extractIncludeInfo(
|
|
19072
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
18826
19073
|
let children;
|
|
18827
19074
|
if (builder) {
|
|
18828
19075
|
const sub = new IntegrationSubBuilder();
|
|
@@ -18831,7 +19078,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
18831
19078
|
}
|
|
18832
19079
|
this._includes.push({
|
|
18833
19080
|
fieldName: "integration",
|
|
18834
|
-
fragmentDoc:
|
|
19081
|
+
fragmentDoc: chunkOCCUM5WH_cjs.IntegrationFragmentDoc,
|
|
18835
19082
|
variables,
|
|
18836
19083
|
isConnection: false,
|
|
18837
19084
|
isList: false,
|
|
@@ -18855,7 +19102,7 @@ var PulseTriggerSettingsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18855
19102
|
this._variables = variables;
|
|
18856
19103
|
}
|
|
18857
19104
|
async fetch(options) {
|
|
18858
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19105
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.PulseTriggerSettingsDocument, "pulseTriggerSettings", this._includes, this._variables);
|
|
18859
19106
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseTriggerSettings");
|
|
18860
19107
|
const data = response.pulseTriggerSettings;
|
|
18861
19108
|
if (!Array.isArray(data)) return [];
|
|
@@ -18864,19 +19111,19 @@ var PulseTriggerSettingsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18864
19111
|
};
|
|
18865
19112
|
var QueryQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
18866
19113
|
async fetch(variables) {
|
|
18867
|
-
const response = await this._request(
|
|
19114
|
+
const response = await this._request(chunkOCCUM5WH_cjs.QueryDocument, variables);
|
|
18868
19115
|
return response.query;
|
|
18869
19116
|
}
|
|
18870
19117
|
};
|
|
18871
19118
|
var QueryWithInsightIdQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
18872
19119
|
async fetch(variables) {
|
|
18873
|
-
const response = await this._request(
|
|
19120
|
+
const response = await this._request(chunkOCCUM5WH_cjs.QueryWithInsightIdDocument, variables);
|
|
18874
19121
|
return response.queryWithInsightId;
|
|
18875
19122
|
}
|
|
18876
19123
|
};
|
|
18877
19124
|
var QueryWithMessageIdQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
18878
19125
|
async fetch(variables) {
|
|
18879
|
-
const response = await this._request(
|
|
19126
|
+
const response = await this._request(chunkOCCUM5WH_cjs.QueryWithMessageIdDocument, variables);
|
|
18880
19127
|
return response.queryWithMessageId;
|
|
18881
19128
|
}
|
|
18882
19129
|
};
|
|
@@ -18889,7 +19136,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18889
19136
|
}
|
|
18890
19137
|
async fetch(options) {
|
|
18891
19138
|
const variables = this._variables;
|
|
18892
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19139
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ReportDocument, "report", this._includes, variables);
|
|
18893
19140
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "report");
|
|
18894
19141
|
const data = response.report;
|
|
18895
19142
|
const instance = new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18901,7 +19148,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18901
19148
|
watch(options) {
|
|
18902
19149
|
const variables = this._variables;
|
|
18903
19150
|
const includes = this._includes;
|
|
18904
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19151
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ReportDocument, "report", includes, variables);
|
|
18905
19152
|
const raw = this._syncEngine.watch(
|
|
18906
19153
|
queryDoc,
|
|
18907
19154
|
mergedVars,
|
|
@@ -18931,7 +19178,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18931
19178
|
}
|
|
18932
19179
|
/** Include insights in this query (Smart Fetch — single HTTP request). */
|
|
18933
19180
|
insights(variables, builder) {
|
|
18934
|
-
const info = extractIncludeInfo(
|
|
19181
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
18935
19182
|
let children;
|
|
18936
19183
|
if (builder) {
|
|
18937
19184
|
const sub = new InsightSubBuilder();
|
|
@@ -18940,7 +19187,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18940
19187
|
}
|
|
18941
19188
|
this._includes.push({
|
|
18942
19189
|
fieldName: "insights",
|
|
18943
|
-
fragmentDoc:
|
|
19190
|
+
fragmentDoc: chunkOCCUM5WH_cjs.InsightConnectionFragmentDoc,
|
|
18944
19191
|
variables,
|
|
18945
19192
|
isConnection: true,
|
|
18946
19193
|
isList: false,
|
|
@@ -18958,10 +19205,10 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18958
19205
|
}
|
|
18959
19206
|
/** Include layout in this query (Smart Fetch — single HTTP request). */
|
|
18960
19207
|
layout(variables) {
|
|
18961
|
-
const info = extractIncludeInfo(
|
|
19208
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
18962
19209
|
this._includes.push({
|
|
18963
19210
|
fieldName: "layout",
|
|
18964
|
-
fragmentDoc:
|
|
19211
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ReportMemberFragmentDoc,
|
|
18965
19212
|
variables,
|
|
18966
19213
|
isConnection: false,
|
|
18967
19214
|
isList: true,
|
|
@@ -18984,18 +19231,18 @@ var Report_InsightsQuery = class _Report_InsightsQuery extends chunk342BFYZZ_cjs
|
|
|
18984
19231
|
}
|
|
18985
19232
|
async fetch(options) {
|
|
18986
19233
|
const variables = this._variables;
|
|
18987
|
-
const response = await this._syncEngine.query(
|
|
19234
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Report_InsightsDocument, variables, "report");
|
|
18988
19235
|
const data = response.report?.insights;
|
|
18989
19236
|
return new InsightConnection(this._request, (conn, opts) => new _Report_InsightsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
18990
19237
|
}
|
|
18991
19238
|
watch(options) {
|
|
18992
19239
|
const variables = this._variables;
|
|
18993
19240
|
const raw = this._syncEngine.watch(
|
|
18994
|
-
|
|
19241
|
+
chunkOCCUM5WH_cjs.Report_InsightsDocument,
|
|
18995
19242
|
variables,
|
|
18996
19243
|
"report",
|
|
18997
19244
|
async (db) => {
|
|
18998
|
-
const qr = await db._queryResults.get(buildQueryKey("report", variables,
|
|
19245
|
+
const qr = await db._queryResults.get(buildQueryKey("report", variables, chunkOCCUM5WH_cjs.Report_InsightsDocument));
|
|
18999
19246
|
const nodes = qr ? await db.table("insights").bulkGet(qr.entityIds) : [];
|
|
19000
19247
|
return { report: { insights: { __typename: "InsightConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
19001
19248
|
}
|
|
@@ -19013,7 +19260,7 @@ var Report_LayoutQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19013
19260
|
this._variables = variables;
|
|
19014
19261
|
}
|
|
19015
19262
|
async fetch(options) {
|
|
19016
|
-
const response = await this._syncEngine.query(
|
|
19263
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Report_LayoutDocument, this._variables, "report");
|
|
19017
19264
|
const data = response.report?.layout;
|
|
19018
19265
|
if (!Array.isArray(data)) return [];
|
|
19019
19266
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -19028,7 +19275,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19028
19275
|
}
|
|
19029
19276
|
async fetch(options) {
|
|
19030
19277
|
const variables = this._variables;
|
|
19031
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19278
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ReportsDocument, "reports", this._includes, variables, true);
|
|
19032
19279
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "reports");
|
|
19033
19280
|
const data = response.reports;
|
|
19034
19281
|
const connection = new ReportConnection(this._request, (conn, opts) => new _ReportsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -19045,7 +19292,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19045
19292
|
const subscriptionId = crypto.randomUUID();
|
|
19046
19293
|
const includes = this._includes;
|
|
19047
19294
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
19048
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19295
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.ReportsDocument, "reports", includes, variables, true);
|
|
19049
19296
|
const raw = this._syncEngine.watch(
|
|
19050
19297
|
queryDoc,
|
|
19051
19298
|
mergedVars,
|
|
@@ -19080,7 +19327,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19080
19327
|
}
|
|
19081
19328
|
/** Include insights in this query (Smart Fetch — single HTTP request). */
|
|
19082
19329
|
insights(variables, builder) {
|
|
19083
|
-
const info = extractIncludeInfo(
|
|
19330
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
19084
19331
|
let children;
|
|
19085
19332
|
if (builder) {
|
|
19086
19333
|
const sub = new InsightSubBuilder();
|
|
@@ -19089,7 +19336,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19089
19336
|
}
|
|
19090
19337
|
this._includes.push({
|
|
19091
19338
|
fieldName: "insights",
|
|
19092
|
-
fragmentDoc:
|
|
19339
|
+
fragmentDoc: chunkOCCUM5WH_cjs.InsightConnectionFragmentDoc,
|
|
19093
19340
|
variables,
|
|
19094
19341
|
isConnection: true,
|
|
19095
19342
|
isList: false,
|
|
@@ -19107,10 +19354,10 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19107
19354
|
}
|
|
19108
19355
|
/** Include layout in this query (Smart Fetch — single HTTP request). */
|
|
19109
19356
|
layout(variables) {
|
|
19110
|
-
const info = extractIncludeInfo(
|
|
19357
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
19111
19358
|
this._includes.push({
|
|
19112
19359
|
fieldName: "layout",
|
|
19113
|
-
fragmentDoc:
|
|
19360
|
+
fragmentDoc: chunkOCCUM5WH_cjs.ReportMemberFragmentDoc,
|
|
19114
19361
|
variables,
|
|
19115
19362
|
isConnection: false,
|
|
19116
19363
|
isList: true,
|
|
@@ -19134,7 +19381,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19134
19381
|
}
|
|
19135
19382
|
async fetch(options) {
|
|
19136
19383
|
const variables = this._variables;
|
|
19137
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19384
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.TableDocument, "table", this._includes, variables);
|
|
19138
19385
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "table");
|
|
19139
19386
|
const data = response.table;
|
|
19140
19387
|
const instance = new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -19146,7 +19393,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19146
19393
|
watch(options) {
|
|
19147
19394
|
const variables = this._variables;
|
|
19148
19395
|
const includes = this._includes;
|
|
19149
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19396
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.TableDocument, "table", includes, variables);
|
|
19150
19397
|
const raw = this._syncEngine.watch(
|
|
19151
19398
|
queryDoc,
|
|
19152
19399
|
mergedVars,
|
|
@@ -19176,7 +19423,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19176
19423
|
}
|
|
19177
19424
|
/** Include database in this query (Smart Fetch — single HTTP request). */
|
|
19178
19425
|
database(variables, builder) {
|
|
19179
|
-
const info = extractIncludeInfo(
|
|
19426
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
19180
19427
|
let children;
|
|
19181
19428
|
if (builder) {
|
|
19182
19429
|
const sub = new DatabaseSubBuilder();
|
|
@@ -19185,7 +19432,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19185
19432
|
}
|
|
19186
19433
|
this._includes.push({
|
|
19187
19434
|
fieldName: "database",
|
|
19188
|
-
fragmentDoc:
|
|
19435
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DatabaseFragmentDoc,
|
|
19189
19436
|
variables,
|
|
19190
19437
|
isConnection: false,
|
|
19191
19438
|
isList: false,
|
|
@@ -19202,7 +19449,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19202
19449
|
}
|
|
19203
19450
|
/** Include document in this query (Smart Fetch — single HTTP request). */
|
|
19204
19451
|
document(variables, builder) {
|
|
19205
|
-
const info = extractIncludeInfo(
|
|
19452
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
19206
19453
|
let children;
|
|
19207
19454
|
if (builder) {
|
|
19208
19455
|
const sub = new DocumentSubBuilder();
|
|
@@ -19211,7 +19458,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19211
19458
|
}
|
|
19212
19459
|
this._includes.push({
|
|
19213
19460
|
fieldName: "document",
|
|
19214
|
-
fragmentDoc:
|
|
19461
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DocumentFragmentDoc,
|
|
19215
19462
|
variables,
|
|
19216
19463
|
isConnection: false,
|
|
19217
19464
|
isList: false,
|
|
@@ -19228,10 +19475,10 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19228
19475
|
}
|
|
19229
19476
|
/** Include fromRelations in this query (Smart Fetch — single HTTP request). */
|
|
19230
19477
|
fromRelations(variables) {
|
|
19231
|
-
const info = extractIncludeInfo(
|
|
19478
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
19232
19479
|
this._includes.push({
|
|
19233
19480
|
fieldName: "fromRelations",
|
|
19234
|
-
fragmentDoc:
|
|
19481
|
+
fragmentDoc: chunkOCCUM5WH_cjs.RelationFragmentDoc,
|
|
19235
19482
|
variables,
|
|
19236
19483
|
isConnection: false,
|
|
19237
19484
|
isList: true,
|
|
@@ -19247,10 +19494,10 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19247
19494
|
}
|
|
19248
19495
|
/** Include toRelations in this query (Smart Fetch — single HTTP request). */
|
|
19249
19496
|
toRelations(variables) {
|
|
19250
|
-
const info = extractIncludeInfo(
|
|
19497
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
19251
19498
|
this._includes.push({
|
|
19252
19499
|
fieldName: "toRelations",
|
|
19253
|
-
fragmentDoc:
|
|
19500
|
+
fragmentDoc: chunkOCCUM5WH_cjs.RelationFragmentDoc,
|
|
19254
19501
|
variables,
|
|
19255
19502
|
isConnection: false,
|
|
19256
19503
|
isList: true,
|
|
@@ -19273,14 +19520,14 @@ var Table_DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19273
19520
|
}
|
|
19274
19521
|
async fetch(options) {
|
|
19275
19522
|
const variables = this._variables;
|
|
19276
|
-
const response = await this._syncEngine.query(
|
|
19523
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Table_DatabaseDocument, variables, "table");
|
|
19277
19524
|
const data = response.table?.database;
|
|
19278
19525
|
return data ? new Database(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
19279
19526
|
}
|
|
19280
19527
|
watch(options) {
|
|
19281
19528
|
const variables = this._variables;
|
|
19282
19529
|
const raw = this._syncEngine.watch(
|
|
19283
|
-
|
|
19530
|
+
chunkOCCUM5WH_cjs.Table_DatabaseDocument,
|
|
19284
19531
|
variables,
|
|
19285
19532
|
"table",
|
|
19286
19533
|
async (db) => {
|
|
@@ -19303,14 +19550,14 @@ var Table_Database_EngineQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19303
19550
|
}
|
|
19304
19551
|
async fetch(options) {
|
|
19305
19552
|
const variables = this._variables;
|
|
19306
|
-
const response = await this._syncEngine.query(
|
|
19553
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Table_Database_EngineDocument, variables, "table");
|
|
19307
19554
|
const data = response.table?.database?.engine;
|
|
19308
19555
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
19309
19556
|
}
|
|
19310
19557
|
watch(options) {
|
|
19311
19558
|
const variables = this._variables;
|
|
19312
19559
|
const raw = this._syncEngine.watch(
|
|
19313
|
-
|
|
19560
|
+
chunkOCCUM5WH_cjs.Table_Database_EngineDocument,
|
|
19314
19561
|
variables,
|
|
19315
19562
|
"table",
|
|
19316
19563
|
async (db) => {
|
|
@@ -19333,14 +19580,14 @@ var Table_DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19333
19580
|
}
|
|
19334
19581
|
async fetch(options) {
|
|
19335
19582
|
const variables = this._variables;
|
|
19336
|
-
const response = await this._syncEngine.query(
|
|
19583
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Table_DocumentDocument, variables, "table");
|
|
19337
19584
|
const data = response.table?.document;
|
|
19338
19585
|
return data ? new Document(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
19339
19586
|
}
|
|
19340
19587
|
watch(options) {
|
|
19341
19588
|
const variables = this._variables;
|
|
19342
19589
|
const raw = this._syncEngine.watch(
|
|
19343
|
-
|
|
19590
|
+
chunkOCCUM5WH_cjs.Table_DocumentDocument,
|
|
19344
19591
|
variables,
|
|
19345
19592
|
"table",
|
|
19346
19593
|
async (db) => {
|
|
@@ -19362,7 +19609,7 @@ var Table_Document_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19362
19609
|
this._variables = variables;
|
|
19363
19610
|
}
|
|
19364
19611
|
async fetch(options) {
|
|
19365
|
-
const response = await this._syncEngine.query(
|
|
19612
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Table_Document_ContentsDocument, this._variables, "table");
|
|
19366
19613
|
const data = response.table?.document?.contents;
|
|
19367
19614
|
if (!Array.isArray(data)) return [];
|
|
19368
19615
|
return data.map((item) => new DocumentContent(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -19376,14 +19623,14 @@ var Table_Document_FileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19376
19623
|
}
|
|
19377
19624
|
async fetch(options) {
|
|
19378
19625
|
const variables = this._variables;
|
|
19379
|
-
const response = await this._syncEngine.query(
|
|
19626
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Table_Document_FileDocument, variables, "table");
|
|
19380
19627
|
const data = response.table?.document?.file;
|
|
19381
19628
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
19382
19629
|
}
|
|
19383
19630
|
watch(options) {
|
|
19384
19631
|
const variables = this._variables;
|
|
19385
19632
|
const raw = this._syncEngine.watch(
|
|
19386
|
-
|
|
19633
|
+
chunkOCCUM5WH_cjs.Table_Document_FileDocument,
|
|
19387
19634
|
variables,
|
|
19388
19635
|
"table",
|
|
19389
19636
|
async (db) => {
|
|
@@ -19406,14 +19653,14 @@ var Table_Document_FormatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19406
19653
|
}
|
|
19407
19654
|
async fetch(options) {
|
|
19408
19655
|
const variables = this._variables;
|
|
19409
|
-
const response = await this._syncEngine.query(
|
|
19656
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Table_Document_FormatDocument, variables, "table");
|
|
19410
19657
|
const data = response.table?.document?.format;
|
|
19411
19658
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
19412
19659
|
}
|
|
19413
19660
|
watch(options) {
|
|
19414
19661
|
const variables = this._variables;
|
|
19415
19662
|
const raw = this._syncEngine.watch(
|
|
19416
|
-
|
|
19663
|
+
chunkOCCUM5WH_cjs.Table_Document_FormatDocument,
|
|
19417
19664
|
variables,
|
|
19418
19665
|
"table",
|
|
19419
19666
|
async (db) => {
|
|
@@ -19435,7 +19682,7 @@ var Table_FromRelationsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19435
19682
|
this._variables = variables;
|
|
19436
19683
|
}
|
|
19437
19684
|
async fetch(options) {
|
|
19438
|
-
const response = await this._syncEngine.query(
|
|
19685
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Table_FromRelationsDocument, this._variables, "table");
|
|
19439
19686
|
const data = response.table?.fromRelations;
|
|
19440
19687
|
if (!Array.isArray(data)) return [];
|
|
19441
19688
|
return data.map((item) => new Relation(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -19448,7 +19695,7 @@ var Table_ToRelationsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19448
19695
|
this._variables = variables;
|
|
19449
19696
|
}
|
|
19450
19697
|
async fetch(options) {
|
|
19451
|
-
const response = await this._syncEngine.query(
|
|
19698
|
+
const response = await this._syncEngine.query(chunkOCCUM5WH_cjs.Table_ToRelationsDocument, this._variables, "table");
|
|
19452
19699
|
const data = response.table?.toRelations;
|
|
19453
19700
|
if (!Array.isArray(data)) return [];
|
|
19454
19701
|
return data.map((item) => new Relation(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -19463,7 +19710,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19463
19710
|
}
|
|
19464
19711
|
async fetch(options) {
|
|
19465
19712
|
const variables = this._variables;
|
|
19466
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19713
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.TablesDocument, "tables", this._includes, variables, true);
|
|
19467
19714
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "tables");
|
|
19468
19715
|
const data = response.tables;
|
|
19469
19716
|
const connection = new TableConnection(this._request, (conn, opts) => new _TablesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -19480,7 +19727,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19480
19727
|
const subscriptionId = crypto.randomUUID();
|
|
19481
19728
|
const includes = this._includes;
|
|
19482
19729
|
const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
|
|
19483
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19730
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.TablesDocument, "tables", includes, variables, true);
|
|
19484
19731
|
const raw = this._syncEngine.watch(
|
|
19485
19732
|
queryDoc,
|
|
19486
19733
|
mergedVars,
|
|
@@ -19515,7 +19762,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19515
19762
|
}
|
|
19516
19763
|
/** Include database in this query (Smart Fetch — single HTTP request). */
|
|
19517
19764
|
database(variables, builder) {
|
|
19518
|
-
const info = extractIncludeInfo(
|
|
19765
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
19519
19766
|
let children;
|
|
19520
19767
|
if (builder) {
|
|
19521
19768
|
const sub = new DatabaseSubBuilder();
|
|
@@ -19524,7 +19771,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19524
19771
|
}
|
|
19525
19772
|
this._includes.push({
|
|
19526
19773
|
fieldName: "database",
|
|
19527
|
-
fragmentDoc:
|
|
19774
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DatabaseFragmentDoc,
|
|
19528
19775
|
variables,
|
|
19529
19776
|
isConnection: false,
|
|
19530
19777
|
isList: false,
|
|
@@ -19541,7 +19788,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19541
19788
|
}
|
|
19542
19789
|
/** Include document in this query (Smart Fetch — single HTTP request). */
|
|
19543
19790
|
document(variables, builder) {
|
|
19544
|
-
const info = extractIncludeInfo(
|
|
19791
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
19545
19792
|
let children;
|
|
19546
19793
|
if (builder) {
|
|
19547
19794
|
const sub = new DocumentSubBuilder();
|
|
@@ -19550,7 +19797,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19550
19797
|
}
|
|
19551
19798
|
this._includes.push({
|
|
19552
19799
|
fieldName: "document",
|
|
19553
|
-
fragmentDoc:
|
|
19800
|
+
fragmentDoc: chunkOCCUM5WH_cjs.DocumentFragmentDoc,
|
|
19554
19801
|
variables,
|
|
19555
19802
|
isConnection: false,
|
|
19556
19803
|
isList: false,
|
|
@@ -19567,10 +19814,10 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19567
19814
|
}
|
|
19568
19815
|
/** Include fromRelations in this query (Smart Fetch — single HTTP request). */
|
|
19569
19816
|
fromRelations(variables) {
|
|
19570
|
-
const info = extractIncludeInfo(
|
|
19817
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
19571
19818
|
this._includes.push({
|
|
19572
19819
|
fieldName: "fromRelations",
|
|
19573
|
-
fragmentDoc:
|
|
19820
|
+
fragmentDoc: chunkOCCUM5WH_cjs.RelationFragmentDoc,
|
|
19574
19821
|
variables,
|
|
19575
19822
|
isConnection: false,
|
|
19576
19823
|
isList: true,
|
|
@@ -19586,10 +19833,10 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19586
19833
|
}
|
|
19587
19834
|
/** Include toRelations in this query (Smart Fetch — single HTTP request). */
|
|
19588
19835
|
toRelations(variables) {
|
|
19589
|
-
const info = extractIncludeInfo(
|
|
19836
|
+
const info = extractIncludeInfo(chunkOCCUM5WH_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
19590
19837
|
this._includes.push({
|
|
19591
19838
|
fieldName: "toRelations",
|
|
19592
|
-
fragmentDoc:
|
|
19839
|
+
fragmentDoc: chunkOCCUM5WH_cjs.RelationFragmentDoc,
|
|
19593
19840
|
variables,
|
|
19594
19841
|
isConnection: false,
|
|
19595
19842
|
isList: true,
|
|
@@ -19613,7 +19860,7 @@ var UserSkillFileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19613
19860
|
}
|
|
19614
19861
|
async fetch(options) {
|
|
19615
19862
|
const variables = this._variables;
|
|
19616
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19863
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.UserSkillFileDocument, "userSkillFile", this._includes, variables);
|
|
19617
19864
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFile");
|
|
19618
19865
|
const data = response.userSkillFile;
|
|
19619
19866
|
const instance = new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -19625,7 +19872,7 @@ var UserSkillFileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19625
19872
|
watch(options) {
|
|
19626
19873
|
const variables = this._variables;
|
|
19627
19874
|
const includes = this._includes;
|
|
19628
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19875
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.UserSkillFileDocument, "userSkillFile", includes, variables);
|
|
19629
19876
|
const raw = this._syncEngine.watch(
|
|
19630
19877
|
queryDoc,
|
|
19631
19878
|
mergedVars,
|
|
@@ -19662,7 +19909,7 @@ var UserSkillFilesQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19662
19909
|
this._variables = variables;
|
|
19663
19910
|
}
|
|
19664
19911
|
async fetch(options) {
|
|
19665
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19912
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.UserSkillFilesDocument, "userSkillFiles", this._includes, this._variables);
|
|
19666
19913
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFiles");
|
|
19667
19914
|
const data = response.userSkillFiles;
|
|
19668
19915
|
if (!Array.isArray(data)) return [];
|
|
@@ -19678,7 +19925,7 @@ var UserSkillFolderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19678
19925
|
}
|
|
19679
19926
|
async fetch(options) {
|
|
19680
19927
|
const variables = this._variables;
|
|
19681
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19928
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.UserSkillFolderDocument, "userSkillFolder", this._includes, variables);
|
|
19682
19929
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFolder");
|
|
19683
19930
|
const data = response.userSkillFolder;
|
|
19684
19931
|
const instance = new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -19690,7 +19937,7 @@ var UserSkillFolderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19690
19937
|
watch(options) {
|
|
19691
19938
|
const variables = this._variables;
|
|
19692
19939
|
const includes = this._includes;
|
|
19693
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19940
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.UserSkillFolderDocument, "userSkillFolder", includes, variables);
|
|
19694
19941
|
const raw = this._syncEngine.watch(
|
|
19695
19942
|
queryDoc,
|
|
19696
19943
|
mergedVars,
|
|
@@ -19727,7 +19974,7 @@ var UserSkillFoldersQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19727
19974
|
this._variables = variables;
|
|
19728
19975
|
}
|
|
19729
19976
|
async fetch(options) {
|
|
19730
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19977
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.UserSkillFoldersDocument, "userSkillFolders", this._includes, this._variables);
|
|
19731
19978
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFolders");
|
|
19732
19979
|
const data = response.userSkillFolders;
|
|
19733
19980
|
if (!Array.isArray(data)) return [];
|
|
@@ -19743,7 +19990,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19743
19990
|
}
|
|
19744
19991
|
async fetch(options) {
|
|
19745
19992
|
const variables = this._variables;
|
|
19746
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19993
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", this._includes, variables);
|
|
19747
19994
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "workspaceDeletionSchedule");
|
|
19748
19995
|
const data = response.workspaceDeletionSchedule;
|
|
19749
19996
|
if (!data) return void 0;
|
|
@@ -19756,7 +20003,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19756
20003
|
watch(options) {
|
|
19757
20004
|
const variables = this._variables;
|
|
19758
20005
|
const includes = this._includes;
|
|
19759
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
20006
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkOCCUM5WH_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", includes, variables);
|
|
19760
20007
|
const raw = this._syncEngine.watch(
|
|
19761
20008
|
queryDoc,
|
|
19762
20009
|
mergedVars,
|
|
@@ -19788,7 +20035,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19788
20035
|
};
|
|
19789
20036
|
var McpAuthUpdatesSubscription = class extends chunk342BFYZZ_cjs.Request {
|
|
19790
20037
|
async *subscribe(variables) {
|
|
19791
|
-
for await (const response of this._subscribe(
|
|
20038
|
+
for await (const response of this._subscribe(chunkOCCUM5WH_cjs.McpAuthUpdatesDocument, variables)) {
|
|
19792
20039
|
const data = response.mcpAuthUpdates;
|
|
19793
20040
|
yield new McpAuthUpdateModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
19794
20041
|
}
|
|
@@ -19796,7 +20043,7 @@ var McpAuthUpdatesSubscription = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19796
20043
|
};
|
|
19797
20044
|
var TokenUsageUpdatesSubscription = class extends chunk342BFYZZ_cjs.Request {
|
|
19798
20045
|
async *subscribe(variables) {
|
|
19799
|
-
for await (const response of this._subscribe(
|
|
20046
|
+
for await (const response of this._subscribe(chunkOCCUM5WH_cjs.TokenUsageUpdatesDocument, variables)) {
|
|
19800
20047
|
const data = response.tokenUsageUpdates;
|
|
19801
20048
|
yield new UsageStatus(this._request, data, this._syncEngine, this._baseUrl);
|
|
19802
20049
|
}
|
|
@@ -20536,6 +20783,7 @@ exports.FeedArtifactData = FeedArtifactData;
|
|
|
20536
20783
|
exports.FeedConnection = FeedConnection;
|
|
20537
20784
|
exports.FeedDatabaseData = FeedDatabaseData;
|
|
20538
20785
|
exports.FeedDocumentData = FeedDocumentData;
|
|
20786
|
+
exports.FeedInsightData = FeedInsightData;
|
|
20539
20787
|
exports.FeedIntegrationData = FeedIntegrationData;
|
|
20540
20788
|
exports.FeedItem = FeedItem;
|
|
20541
20789
|
exports.FeedItemGenerated = FeedItemGenerated;
|
|
@@ -20734,5 +20982,5 @@ exports.getOrCreateDatabase = getOrCreateDatabase;
|
|
|
20734
20982
|
exports.reconstructConnectionNodes = reconstructConnectionNodes;
|
|
20735
20983
|
exports.reconstructEntity = reconstructEntity;
|
|
20736
20984
|
exports.uploadFile = uploadFile;
|
|
20737
|
-
//# sourceMappingURL=chunk-
|
|
20738
|
-
//# sourceMappingURL=chunk-
|
|
20985
|
+
//# sourceMappingURL=chunk-J7JMEYUZ.cjs.map
|
|
20986
|
+
//# sourceMappingURL=chunk-J7JMEYUZ.cjs.map
|