@dvina/sdk 4.0.77 → 4.0.103
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-L3PIHCHC.js +4 -0
- package/dist/{_generated_documents-GPAJPXFF.js.map → _generated_documents-L3PIHCHC.js.map} +1 -1
- package/dist/{_generated_documents-KPFSYIQA.cjs → _generated_documents-VY7IG77E.cjs} +565 -497
- package/dist/{_generated_documents-KPFSYIQA.cjs.map → _generated_documents-VY7IG77E.cjs.map} +1 -1
- package/dist/adapters/angular/index.cjs +4 -4
- package/dist/adapters/angular/index.d.cts +2 -2
- package/dist/adapters/angular/index.d.ts +2 -2
- package/dist/adapters/angular/index.js +2 -2
- package/dist/{chunk-MFUJEBEN.js → chunk-43W5CXTU.js} +60 -34
- package/dist/chunk-43W5CXTU.js.map +1 -0
- package/dist/{chunk-IRMDS6IM.js → chunk-AFUPSJA3.js} +583 -142
- package/dist/chunk-AFUPSJA3.js.map +1 -0
- package/dist/{chunk-YMIRF4SC.cjs → chunk-L7HABILC.cjs} +81 -38
- package/dist/chunk-L7HABILC.cjs.map +1 -0
- package/dist/{chunk-UVFQIMJE.cjs → chunk-Z3RDE7GG.cjs} +1057 -605
- package/dist/chunk-Z3RDE7GG.cjs.map +1 -0
- package/dist/{client-DiPeOA1R.d.ts → client-B5LbpEC3.d.ts} +1 -1
- package/dist/{client-BX57zzHy.d.cts → client-Dp5JOq16.d.cts} +1 -1
- package/dist/{index-DFP4l9XY.d.cts → index-BKyI_YQS.d.cts} +1 -1
- package/dist/{index-x3esSuE9.d.ts → index-BrsbEcIx.d.ts} +1 -1
- package/dist/index.cjs +428 -376
- package/dist/index.d.cts +389 -93
- package/dist/index.d.ts +389 -93
- package/dist/index.js +2 -2
- package/dist/pagination/index.d.cts +2 -2
- package/dist/pagination/index.d.ts +2 -2
- package/dist/{sync-engine-BXCeW3GE.d.ts → sync-engine-BmE8-rhX.d.ts} +1 -0
- package/dist/{sync-engine-DHWuexPR.d.cts → sync-engine-DN0tSqtg.d.cts} +1 -0
- package/package.json +1 -1
- package/dist/_generated_documents-GPAJPXFF.js +0 -4
- package/dist/chunk-IRMDS6IM.js.map +0 -1
- package/dist/chunk-MFUJEBEN.js.map +0 -1
- package/dist/chunk-UVFQIMJE.cjs.map +0 -1
- package/dist/chunk-YMIRF4SC.cjs.map +0 -1
|
@@ -4,7 +4,7 @@ var chunk4QKWHQT2_cjs = require('./chunk-4QKWHQT2.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 chunkL7HABILC_cjs = require('./chunk-L7HABILC.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
|
|
@@ -6998,7 +6998,7 @@ function createWsTransport(options) {
|
|
|
6998
6998
|
}
|
|
6999
6999
|
|
|
7000
7000
|
// src/_generated_store.ts
|
|
7001
|
-
var SCHEMA_HASH = "
|
|
7001
|
+
var SCHEMA_HASH = "af30ecb1b8024d35";
|
|
7002
7002
|
var DB_ENTITY_SCHEMA = {
|
|
7003
7003
|
actions: "id",
|
|
7004
7004
|
agents: "id",
|
|
@@ -7016,7 +7016,15 @@ var DB_ENTITY_SCHEMA = {
|
|
|
7016
7016
|
documentContents: "id",
|
|
7017
7017
|
documentFormats: "key",
|
|
7018
7018
|
documents: "id",
|
|
7019
|
+
feedArtifactDatas: "id",
|
|
7019
7020
|
feedback: "id, &chatMessageId",
|
|
7021
|
+
feedDatabaseDatas: "id",
|
|
7022
|
+
feedDocumentDatas: "id",
|
|
7023
|
+
feedIntegrationDatas: "id",
|
|
7024
|
+
feedItemGenerateds: "id",
|
|
7025
|
+
feedItems: "id",
|
|
7026
|
+
feedPulseDatas: "id",
|
|
7027
|
+
feedSendMessageActions: "id",
|
|
7020
7028
|
files: "id",
|
|
7021
7029
|
folders: "id",
|
|
7022
7030
|
inferenceRequestAudits: "id",
|
|
@@ -7035,7 +7043,6 @@ var DB_ENTITY_SCHEMA = {
|
|
|
7035
7043
|
notifications: "id",
|
|
7036
7044
|
pulseAppSummaryModels: "integrationId",
|
|
7037
7045
|
pulseEvents: "id",
|
|
7038
|
-
pulseEventStatsModels: "id",
|
|
7039
7046
|
pulseTriggerSettingModels: "[integrationId+slug]",
|
|
7040
7047
|
relations: "id",
|
|
7041
7048
|
reportMembers: "[reportId+insightId]",
|
|
@@ -7068,7 +7075,15 @@ var TYPENAME_TO_TABLE = {
|
|
|
7068
7075
|
DocumentCatalog: "documentCatalogs",
|
|
7069
7076
|
DocumentContent: "documentContents",
|
|
7070
7077
|
DocumentFormat: "documentFormats",
|
|
7078
|
+
FeedArtifactData: "feedArtifactDatas",
|
|
7071
7079
|
Feedback: "feedback",
|
|
7080
|
+
FeedDatabaseData: "feedDatabaseDatas",
|
|
7081
|
+
FeedDocumentData: "feedDocumentDatas",
|
|
7082
|
+
FeedIntegrationData: "feedIntegrationDatas",
|
|
7083
|
+
FeedItem: "feedItems",
|
|
7084
|
+
FeedItemGenerated: "feedItemGenerateds",
|
|
7085
|
+
FeedPulseData: "feedPulseDatas",
|
|
7086
|
+
FeedSendMessageAction: "feedSendMessageActions",
|
|
7072
7087
|
File: "files",
|
|
7073
7088
|
Folder: "folders",
|
|
7074
7089
|
InferenceRequestAudit: "inferenceRequestAudits",
|
|
@@ -7087,7 +7102,6 @@ var TYPENAME_TO_TABLE = {
|
|
|
7087
7102
|
Notification: "notifications",
|
|
7088
7103
|
PulseAppSummaryModel: "pulseAppSummaryModels",
|
|
7089
7104
|
PulseEvent: "pulseEvents",
|
|
7090
|
-
PulseEventStatsModel: "pulseEventStatsModels",
|
|
7091
7105
|
PulseTriggerSettingModel: "pulseTriggerSettingModels",
|
|
7092
7106
|
Relation: "relations",
|
|
7093
7107
|
Report: "reports",
|
|
@@ -7120,7 +7134,15 @@ var TABLE_TO_TYPENAME = {
|
|
|
7120
7134
|
documentContents: "DocumentContent",
|
|
7121
7135
|
documentFormats: "DocumentFormat",
|
|
7122
7136
|
documents: "Document",
|
|
7137
|
+
feedArtifactDatas: "FeedArtifactData",
|
|
7123
7138
|
feedback: "Feedback",
|
|
7139
|
+
feedDatabaseDatas: "FeedDatabaseData",
|
|
7140
|
+
feedDocumentDatas: "FeedDocumentData",
|
|
7141
|
+
feedIntegrationDatas: "FeedIntegrationData",
|
|
7142
|
+
feedItemGenerateds: "FeedItemGenerated",
|
|
7143
|
+
feedItems: "FeedItem",
|
|
7144
|
+
feedPulseDatas: "FeedPulseData",
|
|
7145
|
+
feedSendMessageActions: "FeedSendMessageAction",
|
|
7124
7146
|
files: "File",
|
|
7125
7147
|
folders: "Folder",
|
|
7126
7148
|
inferenceRequestAudits: "InferenceRequestAudit",
|
|
@@ -7139,7 +7161,6 @@ var TABLE_TO_TYPENAME = {
|
|
|
7139
7161
|
notifications: "Notification",
|
|
7140
7162
|
pulseAppSummaryModels: "PulseAppSummaryModel",
|
|
7141
7163
|
pulseEvents: "PulseEvent",
|
|
7142
|
-
pulseEventStatsModels: "PulseEventStatsModel",
|
|
7143
7164
|
pulseTriggerSettingModels: "PulseTriggerSettingModel",
|
|
7144
7165
|
relations: "Relation",
|
|
7145
7166
|
reportMembers: "ReportMember",
|
|
@@ -8831,6 +8852,38 @@ function inferCascadeRelationFields(parentEntityType, childEntityType) {
|
|
|
8831
8852
|
return [...fields];
|
|
8832
8853
|
}
|
|
8833
8854
|
|
|
8855
|
+
// src/store/relation-heuristic.ts
|
|
8856
|
+
function toFieldArray(value) {
|
|
8857
|
+
return Array.isArray(value) ? value : [value];
|
|
8858
|
+
}
|
|
8859
|
+
function areFieldsEqual(left, right) {
|
|
8860
|
+
return left.length === right.length && left.every((field, index) => field === right[index]);
|
|
8861
|
+
}
|
|
8862
|
+
function upperFirst(value) {
|
|
8863
|
+
return value.length > 0 ? value[0].toUpperCase() + value.slice(1) : value;
|
|
8864
|
+
}
|
|
8865
|
+
function inferSourceFields(parentEntity, relationField, targetFields) {
|
|
8866
|
+
const sourceFields = targetFields.map((field) => `${relationField}${upperFirst(field)}`);
|
|
8867
|
+
return sourceFields.every((field) => Object.prototype.hasOwnProperty.call(parentEntity, field)) ? sourceFields : void 0;
|
|
8868
|
+
}
|
|
8869
|
+
async function resolveRelationByReference(db, params) {
|
|
8870
|
+
const targetFields = toFieldArray(getPrimaryKeyField(params.targetTable));
|
|
8871
|
+
const sourceFields = inferSourceFields(params.parentEntity, params.relationField, targetFields);
|
|
8872
|
+
if (!sourceFields) {
|
|
8873
|
+
return void 0;
|
|
8874
|
+
}
|
|
8875
|
+
const sourceValues = sourceFields.map((field) => params.parentEntity[field]);
|
|
8876
|
+
if (sourceValues.some((value) => value === void 0 || value === null || value === "")) {
|
|
8877
|
+
return void 0;
|
|
8878
|
+
}
|
|
8879
|
+
const primaryKeyFields = toFieldArray(getPrimaryKeyField(params.targetTable));
|
|
8880
|
+
const relation = areFieldsEqual(targetFields, primaryKeyFields) ? await db.table(params.targetTable).get(targetFields.length === 1 ? String(sourceValues[0]) : sourceValues.map((value) => String(value))) : await db.table(params.targetTable).filter((record) => {
|
|
8881
|
+
const candidate = record;
|
|
8882
|
+
return targetFields.every((field, index) => candidate[field] === sourceValues[index]);
|
|
8883
|
+
}).first();
|
|
8884
|
+
return relation && typeof relation === "object" ? relation : void 0;
|
|
8885
|
+
}
|
|
8886
|
+
|
|
8834
8887
|
// src/store/sync-engine.ts
|
|
8835
8888
|
var SyncEngine = class {
|
|
8836
8889
|
_db;
|
|
@@ -9083,7 +9136,12 @@ var SyncEngine = class {
|
|
|
9083
9136
|
const existing = await table.get(pk).catch(() => void 0);
|
|
9084
9137
|
const { entities, nestedConnections } = normalize({ entity: record }, "entity");
|
|
9085
9138
|
const activeSubscriptions = this._getActiveSubscriptionsForEntityType(tableName);
|
|
9086
|
-
const
|
|
9139
|
+
const materializationRecord = existing ? mergeEntityRecord(existing, record) : record;
|
|
9140
|
+
const materializedRelations = await this._materializeWatchedRelations(
|
|
9141
|
+
tableName,
|
|
9142
|
+
materializationRecord,
|
|
9143
|
+
activeSubscriptions
|
|
9144
|
+
);
|
|
9087
9145
|
if (entities.size > 0) {
|
|
9088
9146
|
await this._queryExecutor.writeEntities(entities);
|
|
9089
9147
|
} else if (existing) {
|
|
@@ -9159,7 +9217,7 @@ var SyncEngine = class {
|
|
|
9159
9217
|
_getActiveSubscriptionsForEntityType(entityType) {
|
|
9160
9218
|
return Array.from(this._subscriptionToQuery.values()).filter((sub) => sub.entityType === entityType);
|
|
9161
9219
|
}
|
|
9162
|
-
_materializeWatchedRelations(parentEntityType, parentRecord, subscriptions) {
|
|
9220
|
+
async _materializeWatchedRelations(parentEntityType, parentRecord, subscriptions) {
|
|
9163
9221
|
const relationMetadata = /* @__PURE__ */ new Map();
|
|
9164
9222
|
for (const sub of subscriptions) {
|
|
9165
9223
|
for (const relation of sub.relationMetadata ?? []) {
|
|
@@ -9171,13 +9229,10 @@ var SyncEngine = class {
|
|
|
9171
9229
|
const nestedConnections = /* @__PURE__ */ new Map();
|
|
9172
9230
|
const parentId = primaryKeyToString(parentEntityType, parentRecord);
|
|
9173
9231
|
for (const relation of relationMetadata.values()) {
|
|
9174
|
-
if (!Object.prototype.hasOwnProperty.call(parentRecord, relation.fieldName)) {
|
|
9175
|
-
states.set(relation.fieldName, { status: "missing" });
|
|
9176
|
-
continue;
|
|
9177
|
-
}
|
|
9178
|
-
const value = parentRecord[relation.fieldName];
|
|
9179
9232
|
const queryKey = `${parentEntityType}.${parentId}.${relation.fieldName}`;
|
|
9180
|
-
|
|
9233
|
+
const value = parentRecord[relation.fieldName];
|
|
9234
|
+
const hasRelationValue = Object.prototype.hasOwnProperty.call(parentRecord, relation.fieldName);
|
|
9235
|
+
if (hasRelationValue && value === null) {
|
|
9181
9236
|
nestedConnections.set(queryKey, {
|
|
9182
9237
|
entityIds: [],
|
|
9183
9238
|
entityType: relation.entityType,
|
|
@@ -9187,6 +9242,21 @@ var SyncEngine = class {
|
|
|
9187
9242
|
states.set(relation.fieldName, { status: "resolved" });
|
|
9188
9243
|
continue;
|
|
9189
9244
|
}
|
|
9245
|
+
if (!hasRelationValue) {
|
|
9246
|
+
const resolvedRelation = await this._resolveStoredRelationFallback(parentRecord, relation);
|
|
9247
|
+
if (resolvedRelation) {
|
|
9248
|
+
nestedConnections.set(queryKey, {
|
|
9249
|
+
entityIds: [primaryKeyToString(relation.entityType, resolvedRelation)],
|
|
9250
|
+
entityType: relation.entityType,
|
|
9251
|
+
fetchedAt: Date.now(),
|
|
9252
|
+
key: queryKey
|
|
9253
|
+
});
|
|
9254
|
+
states.set(relation.fieldName, { status: "resolved" });
|
|
9255
|
+
continue;
|
|
9256
|
+
}
|
|
9257
|
+
states.set(relation.fieldName, { status: "missing" });
|
|
9258
|
+
continue;
|
|
9259
|
+
}
|
|
9190
9260
|
if (relation.isConnection) {
|
|
9191
9261
|
states.set(relation.fieldName, { status: "unsupported" });
|
|
9192
9262
|
continue;
|
|
@@ -9250,6 +9320,17 @@ var SyncEngine = class {
|
|
|
9250
9320
|
relation
|
|
9251
9321
|
);
|
|
9252
9322
|
if (relation.hasNestedIncludes || !this._canMaterializeRelationRecord(childRecord, relation)) {
|
|
9323
|
+
const resolvedRelation = await this._resolveStoredRelationFallback(parentRecord, relation);
|
|
9324
|
+
if (resolvedRelation) {
|
|
9325
|
+
nestedConnections.set(queryKey, {
|
|
9326
|
+
entityIds: [primaryKeyToString(relation.entityType, resolvedRelation)],
|
|
9327
|
+
entityType: relation.entityType,
|
|
9328
|
+
fetchedAt: Date.now(),
|
|
9329
|
+
key: queryKey
|
|
9330
|
+
});
|
|
9331
|
+
states.set(relation.fieldName, { status: "resolved" });
|
|
9332
|
+
continue;
|
|
9333
|
+
}
|
|
9253
9334
|
states.set(relation.fieldName, { status: "unsupported" });
|
|
9254
9335
|
continue;
|
|
9255
9336
|
}
|
|
@@ -9264,6 +9345,13 @@ var SyncEngine = class {
|
|
|
9264
9345
|
}
|
|
9265
9346
|
return { entities, nestedConnections, states };
|
|
9266
9347
|
}
|
|
9348
|
+
async _resolveStoredRelationFallback(parentRecord, relation) {
|
|
9349
|
+
return resolveRelationByReference(this._db, {
|
|
9350
|
+
parentEntity: parentRecord,
|
|
9351
|
+
relationField: relation.fieldName,
|
|
9352
|
+
targetTable: relation.entityType
|
|
9353
|
+
});
|
|
9354
|
+
}
|
|
9267
9355
|
_subscriptionNeedsRevalidation(subscription, relationStates) {
|
|
9268
9356
|
if (!subscription.relationMetadata || subscription.relationMetadata.length === 0) {
|
|
9269
9357
|
return false;
|
|
@@ -9498,7 +9586,7 @@ function createLazySyncEngine(httpTransport, sseUrl, syncPolicyUrl, getToken, ge
|
|
|
9498
9586
|
var DEFAULT_UPLOAD_CONTENT_TYPE = "application/octet-stream";
|
|
9499
9587
|
var AZURE_BLOCK_BLOB_TYPE = "BlockBlob";
|
|
9500
9588
|
async function uploadFile(request, getToken, file, name, options) {
|
|
9501
|
-
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-
|
|
9589
|
+
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-VY7IG77E.cjs');
|
|
9502
9590
|
const key = `upload_${Date.now()}`;
|
|
9503
9591
|
const response = await request(
|
|
9504
9592
|
GenerateUploadUriDocument2,
|
|
@@ -9775,34 +9863,36 @@ var DvinaModel = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
9775
9863
|
};
|
|
9776
9864
|
|
|
9777
9865
|
// src/store/reconstruct.ts
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
const
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9866
|
+
function normalizeRelationIdentifier(value) {
|
|
9867
|
+
return value.replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
|
|
9868
|
+
}
|
|
9869
|
+
function inferTargetTables(fieldName) {
|
|
9870
|
+
const normalizedFieldName = normalizeRelationIdentifier(fieldName);
|
|
9871
|
+
return Object.entries(TABLE_TO_TYPENAME).filter(([tableName, typeName]) => {
|
|
9872
|
+
const normalizedTableName = normalizeRelationIdentifier(tableName);
|
|
9873
|
+
const normalizedTypeName = normalizeRelationIdentifier(typeName);
|
|
9874
|
+
return normalizedTypeName === normalizedFieldName || normalizedTypeName.endsWith(normalizedFieldName) || normalizedTableName === normalizedFieldName || normalizedTableName === `${normalizedFieldName}s`;
|
|
9875
|
+
}).map(([tableName]) => tableName);
|
|
9876
|
+
}
|
|
9877
|
+
async function resolveSingleRelationFallback(db, parentTable, parentEntity, inc) {
|
|
9878
|
+
const targetTables = inc.syncMetadata?.entityType ? [inc.syncMetadata.entityType] : inferTargetTables(inc.fieldName);
|
|
9879
|
+
if (targetTables.length === 0) {
|
|
9880
|
+
return void 0;
|
|
9881
|
+
}
|
|
9882
|
+
for (const targetTable of targetTables) {
|
|
9883
|
+
const relation = await resolveRelationByReference(db, {
|
|
9884
|
+
parentEntity,
|
|
9885
|
+
relationField: inc.fieldName,
|
|
9886
|
+
targetTable
|
|
9887
|
+
});
|
|
9888
|
+
if (relation) {
|
|
9799
9889
|
return {
|
|
9800
|
-
|
|
9801
|
-
|
|
9890
|
+
entity: relation,
|
|
9891
|
+
tableName: targetTable
|
|
9802
9892
|
};
|
|
9803
9893
|
}
|
|
9804
9894
|
}
|
|
9805
|
-
return;
|
|
9895
|
+
return void 0;
|
|
9806
9896
|
}
|
|
9807
9897
|
async function reconstructEntity(db, tableName, entityId, includes) {
|
|
9808
9898
|
const dexieKey = parsePrimaryKeyString(tableName, entityId);
|
|
@@ -9813,7 +9903,7 @@ async function reconstructEntity(db, tableName, entityId, includes) {
|
|
|
9813
9903
|
const connKey = `${tableName}.${entityId}.${inc.fieldName}`;
|
|
9814
9904
|
const qr = await db._queryResults.get(connKey);
|
|
9815
9905
|
if (!qr) {
|
|
9816
|
-
const fallback = inc.isConnection ? void 0 : await resolveSingleRelationFallback(db, result, inc
|
|
9906
|
+
const fallback = inc.isConnection ? void 0 : await resolveSingleRelationFallback(db, tableName, result, inc);
|
|
9817
9907
|
if (fallback) {
|
|
9818
9908
|
if (inc.children && inc.children.length > 0) {
|
|
9819
9909
|
const childId = primaryKeyToString(fallback.tableName, fallback.entity);
|
|
@@ -10642,6 +10732,150 @@ var DocumentFormat = class extends DvinaModel {
|
|
|
10642
10732
|
return new DocumentCatalogQuery(this._request, this._syncEngine, { formatKey: this._catalog?.formatKey }, this._baseUrl);
|
|
10643
10733
|
}
|
|
10644
10734
|
};
|
|
10735
|
+
var FeedArtifactData = class extends DvinaModel {
|
|
10736
|
+
artifactKind;
|
|
10737
|
+
fileId;
|
|
10738
|
+
fileName;
|
|
10739
|
+
fileType;
|
|
10740
|
+
kind;
|
|
10741
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
10742
|
+
super(request, syncEngine, baseUrl);
|
|
10743
|
+
this.artifactKind = data.artifactKind ?? void 0;
|
|
10744
|
+
this.fileId = data.fileId ?? void 0;
|
|
10745
|
+
this.fileName = data.fileName ?? void 0;
|
|
10746
|
+
this.fileType = data.fileType ?? void 0;
|
|
10747
|
+
this.kind = data.kind;
|
|
10748
|
+
}
|
|
10749
|
+
};
|
|
10750
|
+
var FeedDatabaseData = class extends DvinaModel {
|
|
10751
|
+
databaseName;
|
|
10752
|
+
databaseType;
|
|
10753
|
+
kind;
|
|
10754
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
10755
|
+
super(request, syncEngine, baseUrl);
|
|
10756
|
+
this.databaseName = data.databaseName ?? void 0;
|
|
10757
|
+
this.databaseType = data.databaseType ?? void 0;
|
|
10758
|
+
this.kind = data.kind;
|
|
10759
|
+
}
|
|
10760
|
+
};
|
|
10761
|
+
var FeedDocumentData = class extends DvinaModel {
|
|
10762
|
+
fileId;
|
|
10763
|
+
fileName;
|
|
10764
|
+
fileType;
|
|
10765
|
+
kind;
|
|
10766
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
10767
|
+
super(request, syncEngine, baseUrl);
|
|
10768
|
+
this.fileId = data.fileId ?? void 0;
|
|
10769
|
+
this.fileName = data.fileName ?? void 0;
|
|
10770
|
+
this.fileType = data.fileType ?? void 0;
|
|
10771
|
+
this.kind = data.kind;
|
|
10772
|
+
}
|
|
10773
|
+
};
|
|
10774
|
+
var FeedIntegrationData = class extends DvinaModel {
|
|
10775
|
+
integrationProviderKey;
|
|
10776
|
+
kind;
|
|
10777
|
+
status;
|
|
10778
|
+
unreadPulseCount;
|
|
10779
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
10780
|
+
super(request, syncEngine, baseUrl);
|
|
10781
|
+
this.integrationProviderKey = data.integrationProviderKey ?? void 0;
|
|
10782
|
+
this.kind = data.kind;
|
|
10783
|
+
this.status = data.status ?? void 0;
|
|
10784
|
+
this.unreadPulseCount = data.unreadPulseCount ?? void 0;
|
|
10785
|
+
}
|
|
10786
|
+
};
|
|
10787
|
+
var FeedItem = class extends DvinaModel {
|
|
10788
|
+
createdAt;
|
|
10789
|
+
id;
|
|
10790
|
+
kind;
|
|
10791
|
+
sourceRef;
|
|
10792
|
+
title;
|
|
10793
|
+
updatedAt;
|
|
10794
|
+
userId;
|
|
10795
|
+
workspaceId;
|
|
10796
|
+
data;
|
|
10797
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
10798
|
+
super(request, syncEngine, baseUrl);
|
|
10799
|
+
this.createdAt = new Date(data.createdAt);
|
|
10800
|
+
this.id = data.id;
|
|
10801
|
+
this.kind = data.kind;
|
|
10802
|
+
this.sourceRef = data.sourceRef ?? void 0;
|
|
10803
|
+
this.title = data.title;
|
|
10804
|
+
this.updatedAt = new Date(data.updatedAt);
|
|
10805
|
+
this.userId = data.userId;
|
|
10806
|
+
this.workspaceId = data.workspaceId;
|
|
10807
|
+
this.data = (() => {
|
|
10808
|
+
const value = data.data;
|
|
10809
|
+
switch (value.__typename) {
|
|
10810
|
+
case "FeedArtifactData":
|
|
10811
|
+
return new FeedArtifactData(request, value, syncEngine, baseUrl);
|
|
10812
|
+
case "FeedDatabaseData":
|
|
10813
|
+
return new FeedDatabaseData(request, value, syncEngine, baseUrl);
|
|
10814
|
+
case "FeedDocumentData":
|
|
10815
|
+
return new FeedDocumentData(request, value, syncEngine, baseUrl);
|
|
10816
|
+
case "FeedIntegrationData":
|
|
10817
|
+
return new FeedIntegrationData(request, value, syncEngine, baseUrl);
|
|
10818
|
+
case "FeedPulseData":
|
|
10819
|
+
return new FeedPulseData(request, value, syncEngine, baseUrl);
|
|
10820
|
+
default:
|
|
10821
|
+
throw new Error("Unknown FeedItemData member for FeedItem.data.");
|
|
10822
|
+
}
|
|
10823
|
+
})();
|
|
10824
|
+
}
|
|
10825
|
+
/** Query the action relation for this FeedItem. Call .fetch() or .watch() to execute. */
|
|
10826
|
+
action(variables) {
|
|
10827
|
+
return new FeedItem_ActionQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
|
|
10828
|
+
}
|
|
10829
|
+
};
|
|
10830
|
+
var FeedItemGenerated = class extends DvinaModel {
|
|
10831
|
+
action;
|
|
10832
|
+
actionType;
|
|
10833
|
+
createdAt;
|
|
10834
|
+
data;
|
|
10835
|
+
id;
|
|
10836
|
+
kind;
|
|
10837
|
+
sourceRef;
|
|
10838
|
+
title;
|
|
10839
|
+
updatedAt;
|
|
10840
|
+
userId;
|
|
10841
|
+
workspaceId;
|
|
10842
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
10843
|
+
super(request, syncEngine, baseUrl);
|
|
10844
|
+
this.action = data.action ?? void 0;
|
|
10845
|
+
this.actionType = data.actionType ?? void 0;
|
|
10846
|
+
this.createdAt = new Date(data.createdAt);
|
|
10847
|
+
this.data = data.data;
|
|
10848
|
+
this.id = data.id;
|
|
10849
|
+
this.kind = data.kind;
|
|
10850
|
+
this.sourceRef = data.sourceRef ?? void 0;
|
|
10851
|
+
this.title = data.title;
|
|
10852
|
+
this.updatedAt = new Date(data.updatedAt);
|
|
10853
|
+
this.userId = data.userId;
|
|
10854
|
+
this.workspaceId = data.workspaceId;
|
|
10855
|
+
}
|
|
10856
|
+
};
|
|
10857
|
+
var FeedPulseData = class extends DvinaModel {
|
|
10858
|
+
kind;
|
|
10859
|
+
priority;
|
|
10860
|
+
providerKey;
|
|
10861
|
+
summary;
|
|
10862
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
10863
|
+
super(request, syncEngine, baseUrl);
|
|
10864
|
+
this.kind = data.kind;
|
|
10865
|
+
this.priority = data.priority ?? void 0;
|
|
10866
|
+
this.providerKey = data.providerKey ?? void 0;
|
|
10867
|
+
this.summary = data.summary ?? void 0;
|
|
10868
|
+
}
|
|
10869
|
+
};
|
|
10870
|
+
var FeedSendMessageAction = class extends DvinaModel {
|
|
10871
|
+
prompt;
|
|
10872
|
+
type;
|
|
10873
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
10874
|
+
super(request, syncEngine, baseUrl);
|
|
10875
|
+
this.prompt = data.prompt;
|
|
10876
|
+
this.type = data.type;
|
|
10877
|
+
}
|
|
10878
|
+
};
|
|
10645
10879
|
var Feedback = class extends DvinaModel {
|
|
10646
10880
|
chatMessageId;
|
|
10647
10881
|
comment;
|
|
@@ -10839,6 +11073,7 @@ var Integration = class extends DvinaModel {
|
|
|
10839
11073
|
id;
|
|
10840
11074
|
providerKey;
|
|
10841
11075
|
status;
|
|
11076
|
+
unreadPulseCount;
|
|
10842
11077
|
updatedAt;
|
|
10843
11078
|
constructor(request, data, syncEngine, baseUrl) {
|
|
10844
11079
|
super(request, syncEngine, baseUrl);
|
|
@@ -10847,6 +11082,7 @@ var Integration = class extends DvinaModel {
|
|
|
10847
11082
|
this.id = data.id;
|
|
10848
11083
|
this.providerKey = data.providerKey;
|
|
10849
11084
|
this.status = data.status;
|
|
11085
|
+
this.unreadPulseCount = data.unreadPulseCount;
|
|
10850
11086
|
this.updatedAt = new Date(data.updatedAt);
|
|
10851
11087
|
}
|
|
10852
11088
|
/** Query the provider relation for this Integration. Call .fetch() or .watch() to execute. */
|
|
@@ -11141,10 +11377,8 @@ var PulseAppSummaryModel = class extends DvinaModel {
|
|
|
11141
11377
|
}
|
|
11142
11378
|
};
|
|
11143
11379
|
var PulseEvent = class extends DvinaModel {
|
|
11144
|
-
acknowledgedAt;
|
|
11145
11380
|
actions;
|
|
11146
11381
|
createdAt;
|
|
11147
|
-
dedupeKey;
|
|
11148
11382
|
dismissedAt;
|
|
11149
11383
|
id;
|
|
11150
11384
|
integrationId;
|
|
@@ -11157,18 +11391,13 @@ var PulseEvent = class extends DvinaModel {
|
|
|
11157
11391
|
remoteLogId;
|
|
11158
11392
|
remoteTriggerId;
|
|
11159
11393
|
resolvedAt;
|
|
11160
|
-
seenAt;
|
|
11161
|
-
status;
|
|
11162
|
-
summary;
|
|
11163
11394
|
title;
|
|
11164
11395
|
triggerSlug;
|
|
11165
11396
|
updatedAt;
|
|
11166
11397
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11167
11398
|
super(request, syncEngine, baseUrl);
|
|
11168
|
-
this.acknowledgedAt = data.acknowledgedAt ? new Date(data.acknowledgedAt) : void 0;
|
|
11169
11399
|
this.actions = data.actions ?? void 0;
|
|
11170
11400
|
this.createdAt = new Date(data.createdAt);
|
|
11171
|
-
this.dedupeKey = data.dedupeKey ?? void 0;
|
|
11172
11401
|
this.dismissedAt = data.dismissedAt ? new Date(data.dismissedAt) : void 0;
|
|
11173
11402
|
this.id = data.id;
|
|
11174
11403
|
this.integrationId = data.integrationId;
|
|
@@ -11181,9 +11410,6 @@ var PulseEvent = class extends DvinaModel {
|
|
|
11181
11410
|
this.remoteLogId = data.remoteLogId ?? void 0;
|
|
11182
11411
|
this.remoteTriggerId = data.remoteTriggerId ?? void 0;
|
|
11183
11412
|
this.resolvedAt = data.resolvedAt ? new Date(data.resolvedAt) : void 0;
|
|
11184
|
-
this.seenAt = data.seenAt ? new Date(data.seenAt) : void 0;
|
|
11185
|
-
this.status = data.status;
|
|
11186
|
-
this.summary = data.summary ?? void 0;
|
|
11187
11413
|
this.title = data.title;
|
|
11188
11414
|
this.triggerSlug = data.triggerSlug;
|
|
11189
11415
|
this.updatedAt = new Date(data.updatedAt);
|
|
@@ -11193,17 +11419,6 @@ var PulseEvent = class extends DvinaModel {
|
|
|
11193
11419
|
return new PulseEvent_IntegrationQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
|
|
11194
11420
|
}
|
|
11195
11421
|
};
|
|
11196
|
-
var PulseEventStatsModel = class extends DvinaModel {
|
|
11197
|
-
highPriorityCount;
|
|
11198
|
-
needsActionCount;
|
|
11199
|
-
unreadCount;
|
|
11200
|
-
constructor(request, data, syncEngine, baseUrl) {
|
|
11201
|
-
super(request, syncEngine, baseUrl);
|
|
11202
|
-
this.highPriorityCount = data.highPriorityCount;
|
|
11203
|
-
this.needsActionCount = data.needsActionCount;
|
|
11204
|
-
this.unreadCount = data.unreadCount;
|
|
11205
|
-
}
|
|
11206
|
-
};
|
|
11207
11422
|
var PulseTriggerSettingModel = class extends DvinaModel {
|
|
11208
11423
|
integrationId;
|
|
11209
11424
|
isEnabled;
|
|
@@ -11760,6 +11975,17 @@ var DocumentConnection = class extends chunk4QKWHQT2_cjs.Connection {
|
|
|
11760
11975
|
);
|
|
11761
11976
|
}
|
|
11762
11977
|
};
|
|
11978
|
+
var FeedConnection = class extends chunk4QKWHQT2_cjs.Connection {
|
|
11979
|
+
constructor(request, fetch2, data, syncEngine, baseUrl) {
|
|
11980
|
+
super(
|
|
11981
|
+
request,
|
|
11982
|
+
fetch2,
|
|
11983
|
+
data.nodes?.map((node) => new FeedItem(request, node, syncEngine, baseUrl)) ?? [],
|
|
11984
|
+
new chunk4QKWHQT2_cjs.PageInfo(data.pageInfo),
|
|
11985
|
+
data.totalCount ?? void 0
|
|
11986
|
+
);
|
|
11987
|
+
}
|
|
11988
|
+
};
|
|
11763
11989
|
var FolderConnection = class extends chunk4QKWHQT2_cjs.Connection {
|
|
11764
11990
|
constructor(request, fetch2, data, syncEngine, baseUrl) {
|
|
11765
11991
|
super(
|
|
@@ -11864,7 +12090,7 @@ var AgentSubBuilder = class {
|
|
|
11864
12090
|
_includes = [];
|
|
11865
12091
|
/** Include chats in the parent query. */
|
|
11866
12092
|
chats(variables, builder) {
|
|
11867
|
-
const info = extractIncludeInfo(
|
|
12093
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
11868
12094
|
let children;
|
|
11869
12095
|
if (builder) {
|
|
11870
12096
|
const sub = new ChatSubBuilder();
|
|
@@ -11873,7 +12099,7 @@ var AgentSubBuilder = class {
|
|
|
11873
12099
|
}
|
|
11874
12100
|
this._includes.push({
|
|
11875
12101
|
fieldName: "chats",
|
|
11876
|
-
fragmentDoc:
|
|
12102
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatConnectionFragmentDoc,
|
|
11877
12103
|
variables,
|
|
11878
12104
|
isConnection: true,
|
|
11879
12105
|
isList: false,
|
|
@@ -11895,7 +12121,7 @@ var ArtifactSubBuilder = class {
|
|
|
11895
12121
|
_includes = [];
|
|
11896
12122
|
/** Include chat in the parent query. */
|
|
11897
12123
|
chat(variables, builder) {
|
|
11898
|
-
const info = extractIncludeInfo(
|
|
12124
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
11899
12125
|
let children;
|
|
11900
12126
|
if (builder) {
|
|
11901
12127
|
const sub = new ChatSubBuilder();
|
|
@@ -11904,7 +12130,7 @@ var ArtifactSubBuilder = class {
|
|
|
11904
12130
|
}
|
|
11905
12131
|
this._includes.push({
|
|
11906
12132
|
fieldName: "chat",
|
|
11907
|
-
fragmentDoc:
|
|
12133
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatFragmentDoc,
|
|
11908
12134
|
variables,
|
|
11909
12135
|
isConnection: false,
|
|
11910
12136
|
isList: false,
|
|
@@ -11921,10 +12147,10 @@ var ArtifactSubBuilder = class {
|
|
|
11921
12147
|
}
|
|
11922
12148
|
/** Include file in the parent query. */
|
|
11923
12149
|
file(variables) {
|
|
11924
|
-
const info = extractIncludeInfo(
|
|
12150
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
11925
12151
|
this._includes.push({
|
|
11926
12152
|
fieldName: "file",
|
|
11927
|
-
fragmentDoc:
|
|
12153
|
+
fragmentDoc: chunkL7HABILC_cjs.FileFragmentDoc,
|
|
11928
12154
|
variables,
|
|
11929
12155
|
isConnection: false,
|
|
11930
12156
|
isList: false,
|
|
@@ -11940,7 +12166,7 @@ var ArtifactSubBuilder = class {
|
|
|
11940
12166
|
}
|
|
11941
12167
|
/** Include message in the parent query. */
|
|
11942
12168
|
message(variables, builder) {
|
|
11943
|
-
const info = extractIncludeInfo(
|
|
12169
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
11944
12170
|
let children;
|
|
11945
12171
|
if (builder) {
|
|
11946
12172
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -11949,7 +12175,7 @@ var ArtifactSubBuilder = class {
|
|
|
11949
12175
|
}
|
|
11950
12176
|
this._includes.push({
|
|
11951
12177
|
fieldName: "message",
|
|
11952
|
-
fragmentDoc:
|
|
12178
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatMessageFragmentDoc,
|
|
11953
12179
|
variables,
|
|
11954
12180
|
isConnection: false,
|
|
11955
12181
|
isList: false,
|
|
@@ -11970,7 +12196,7 @@ var ChatSubBuilder = class {
|
|
|
11970
12196
|
_includes = [];
|
|
11971
12197
|
/** Include agents in the parent query. */
|
|
11972
12198
|
agents(variables, builder) {
|
|
11973
|
-
const info = extractIncludeInfo(
|
|
12199
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
11974
12200
|
let children;
|
|
11975
12201
|
if (builder) {
|
|
11976
12202
|
const sub = new AgentSubBuilder();
|
|
@@ -11979,7 +12205,7 @@ var ChatSubBuilder = class {
|
|
|
11979
12205
|
}
|
|
11980
12206
|
this._includes.push({
|
|
11981
12207
|
fieldName: "agents",
|
|
11982
|
-
fragmentDoc:
|
|
12208
|
+
fragmentDoc: chunkL7HABILC_cjs.AgentConnectionFragmentDoc,
|
|
11983
12209
|
variables,
|
|
11984
12210
|
isConnection: true,
|
|
11985
12211
|
isList: false,
|
|
@@ -11997,7 +12223,7 @@ var ChatSubBuilder = class {
|
|
|
11997
12223
|
}
|
|
11998
12224
|
/** Include artifacts in the parent query. */
|
|
11999
12225
|
artifacts(variables, builder) {
|
|
12000
|
-
const info = extractIncludeInfo(
|
|
12226
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
12001
12227
|
let children;
|
|
12002
12228
|
if (builder) {
|
|
12003
12229
|
const sub = new ArtifactSubBuilder();
|
|
@@ -12006,7 +12232,7 @@ var ChatSubBuilder = class {
|
|
|
12006
12232
|
}
|
|
12007
12233
|
this._includes.push({
|
|
12008
12234
|
fieldName: "artifacts",
|
|
12009
|
-
fragmentDoc:
|
|
12235
|
+
fragmentDoc: chunkL7HABILC_cjs.ArtifactConnectionFragmentDoc,
|
|
12010
12236
|
variables,
|
|
12011
12237
|
isConnection: true,
|
|
12012
12238
|
isList: false,
|
|
@@ -12024,7 +12250,7 @@ var ChatSubBuilder = class {
|
|
|
12024
12250
|
}
|
|
12025
12251
|
/** Include insight in the parent query. */
|
|
12026
12252
|
insight(variables, builder) {
|
|
12027
|
-
const info = extractIncludeInfo(
|
|
12253
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
12028
12254
|
let children;
|
|
12029
12255
|
if (builder) {
|
|
12030
12256
|
const sub = new InsightSubBuilder();
|
|
@@ -12033,7 +12259,7 @@ var ChatSubBuilder = class {
|
|
|
12033
12259
|
}
|
|
12034
12260
|
this._includes.push({
|
|
12035
12261
|
fieldName: "insight",
|
|
12036
|
-
fragmentDoc:
|
|
12262
|
+
fragmentDoc: chunkL7HABILC_cjs.InsightFragmentDoc,
|
|
12037
12263
|
variables,
|
|
12038
12264
|
isConnection: false,
|
|
12039
12265
|
isList: false,
|
|
@@ -12050,7 +12276,7 @@ var ChatSubBuilder = class {
|
|
|
12050
12276
|
}
|
|
12051
12277
|
/** Include messages in the parent query. */
|
|
12052
12278
|
messages(variables, builder) {
|
|
12053
|
-
const info = extractIncludeInfo(
|
|
12279
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
12054
12280
|
let children;
|
|
12055
12281
|
if (builder) {
|
|
12056
12282
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -12059,7 +12285,7 @@ var ChatSubBuilder = class {
|
|
|
12059
12285
|
}
|
|
12060
12286
|
this._includes.push({
|
|
12061
12287
|
fieldName: "messages",
|
|
12062
|
-
fragmentDoc:
|
|
12288
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatMessageConnectionFragmentDoc,
|
|
12063
12289
|
variables,
|
|
12064
12290
|
isConnection: true,
|
|
12065
12291
|
isList: false,
|
|
@@ -12081,7 +12307,7 @@ var ChatMessageSubBuilder = class {
|
|
|
12081
12307
|
_includes = [];
|
|
12082
12308
|
/** Include artifacts in the parent query. */
|
|
12083
12309
|
artifacts(variables, builder) {
|
|
12084
|
-
const info = extractIncludeInfo(
|
|
12310
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
12085
12311
|
let children;
|
|
12086
12312
|
if (builder) {
|
|
12087
12313
|
const sub = new ArtifactSubBuilder();
|
|
@@ -12090,7 +12316,7 @@ var ChatMessageSubBuilder = class {
|
|
|
12090
12316
|
}
|
|
12091
12317
|
this._includes.push({
|
|
12092
12318
|
fieldName: "artifacts",
|
|
12093
|
-
fragmentDoc:
|
|
12319
|
+
fragmentDoc: chunkL7HABILC_cjs.ArtifactConnectionFragmentDoc,
|
|
12094
12320
|
variables,
|
|
12095
12321
|
isConnection: true,
|
|
12096
12322
|
isList: false,
|
|
@@ -12108,7 +12334,7 @@ var ChatMessageSubBuilder = class {
|
|
|
12108
12334
|
}
|
|
12109
12335
|
/** Include chat in the parent query. */
|
|
12110
12336
|
chat(variables, builder) {
|
|
12111
|
-
const info = extractIncludeInfo(
|
|
12337
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
12112
12338
|
let children;
|
|
12113
12339
|
if (builder) {
|
|
12114
12340
|
const sub = new ChatSubBuilder();
|
|
@@ -12117,7 +12343,7 @@ var ChatMessageSubBuilder = class {
|
|
|
12117
12343
|
}
|
|
12118
12344
|
this._includes.push({
|
|
12119
12345
|
fieldName: "chat",
|
|
12120
|
-
fragmentDoc:
|
|
12346
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatFragmentDoc,
|
|
12121
12347
|
variables,
|
|
12122
12348
|
isConnection: false,
|
|
12123
12349
|
isList: false,
|
|
@@ -12134,10 +12360,10 @@ var ChatMessageSubBuilder = class {
|
|
|
12134
12360
|
}
|
|
12135
12361
|
/** Include contents in the parent query. */
|
|
12136
12362
|
contents(variables) {
|
|
12137
|
-
const info = extractIncludeInfo(
|
|
12363
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
12138
12364
|
this._includes.push({
|
|
12139
12365
|
fieldName: "contents",
|
|
12140
|
-
fragmentDoc:
|
|
12366
|
+
fragmentDoc: chunkL7HABILC_cjs.ContentBlockFragmentDoc,
|
|
12141
12367
|
variables,
|
|
12142
12368
|
isConnection: false,
|
|
12143
12369
|
isList: true,
|
|
@@ -12153,10 +12379,10 @@ var ChatMessageSubBuilder = class {
|
|
|
12153
12379
|
}
|
|
12154
12380
|
/** Include feedback in the parent query. */
|
|
12155
12381
|
feedback(variables) {
|
|
12156
|
-
const info = extractIncludeInfo(
|
|
12382
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
12157
12383
|
this._includes.push({
|
|
12158
12384
|
fieldName: "feedback",
|
|
12159
|
-
fragmentDoc:
|
|
12385
|
+
fragmentDoc: chunkL7HABILC_cjs.FeedbackFragmentDoc,
|
|
12160
12386
|
variables,
|
|
12161
12387
|
isConnection: false,
|
|
12162
12388
|
isList: false,
|
|
@@ -12176,10 +12402,10 @@ var DatabaseSubBuilder = class {
|
|
|
12176
12402
|
_includes = [];
|
|
12177
12403
|
/** Include engine in the parent query. */
|
|
12178
12404
|
engine(variables) {
|
|
12179
|
-
const info = extractIncludeInfo(
|
|
12405
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
12180
12406
|
this._includes.push({
|
|
12181
12407
|
fieldName: "engine",
|
|
12182
|
-
fragmentDoc:
|
|
12408
|
+
fragmentDoc: chunkL7HABILC_cjs.DatabaseEngineFragmentDoc,
|
|
12183
12409
|
variables,
|
|
12184
12410
|
isConnection: false,
|
|
12185
12411
|
isList: false,
|
|
@@ -12195,7 +12421,7 @@ var DatabaseSubBuilder = class {
|
|
|
12195
12421
|
}
|
|
12196
12422
|
/** Include tables in the parent query. */
|
|
12197
12423
|
tables(variables, builder) {
|
|
12198
|
-
const info = extractIncludeInfo(
|
|
12424
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
12199
12425
|
let children;
|
|
12200
12426
|
if (builder) {
|
|
12201
12427
|
const sub = new TableSubBuilder();
|
|
@@ -12204,7 +12430,7 @@ var DatabaseSubBuilder = class {
|
|
|
12204
12430
|
}
|
|
12205
12431
|
this._includes.push({
|
|
12206
12432
|
fieldName: "tables",
|
|
12207
|
-
fragmentDoc:
|
|
12433
|
+
fragmentDoc: chunkL7HABILC_cjs.TableConnectionFragmentDoc,
|
|
12208
12434
|
variables,
|
|
12209
12435
|
isConnection: true,
|
|
12210
12436
|
isList: false,
|
|
@@ -12226,10 +12452,10 @@ var DatabaseCatalogSubBuilder = class {
|
|
|
12226
12452
|
_includes = [];
|
|
12227
12453
|
/** Include engine in the parent query. */
|
|
12228
12454
|
engine(variables) {
|
|
12229
|
-
const info = extractIncludeInfo(
|
|
12455
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
12230
12456
|
this._includes.push({
|
|
12231
12457
|
fieldName: "engine",
|
|
12232
|
-
fragmentDoc:
|
|
12458
|
+
fragmentDoc: chunkL7HABILC_cjs.DatabaseEngineFragmentDoc,
|
|
12233
12459
|
variables,
|
|
12234
12460
|
isConnection: false,
|
|
12235
12461
|
isList: false,
|
|
@@ -12249,10 +12475,10 @@ var DocumentSubBuilder = class {
|
|
|
12249
12475
|
_includes = [];
|
|
12250
12476
|
/** Include contents in the parent query. */
|
|
12251
12477
|
contents(variables) {
|
|
12252
|
-
const info = extractIncludeInfo(
|
|
12478
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
12253
12479
|
this._includes.push({
|
|
12254
12480
|
fieldName: "contents",
|
|
12255
|
-
fragmentDoc:
|
|
12481
|
+
fragmentDoc: chunkL7HABILC_cjs.DocumentContentFragmentDoc,
|
|
12256
12482
|
variables,
|
|
12257
12483
|
isConnection: false,
|
|
12258
12484
|
isList: true,
|
|
@@ -12268,10 +12494,10 @@ var DocumentSubBuilder = class {
|
|
|
12268
12494
|
}
|
|
12269
12495
|
/** Include file in the parent query. */
|
|
12270
12496
|
file(variables) {
|
|
12271
|
-
const info = extractIncludeInfo(
|
|
12497
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Document_FileDocument, "file", ["id"]);
|
|
12272
12498
|
this._includes.push({
|
|
12273
12499
|
fieldName: "file",
|
|
12274
|
-
fragmentDoc:
|
|
12500
|
+
fragmentDoc: chunkL7HABILC_cjs.FileFragmentDoc,
|
|
12275
12501
|
variables,
|
|
12276
12502
|
isConnection: false,
|
|
12277
12503
|
isList: false,
|
|
@@ -12287,10 +12513,10 @@ var DocumentSubBuilder = class {
|
|
|
12287
12513
|
}
|
|
12288
12514
|
/** Include format in the parent query. */
|
|
12289
12515
|
format(variables) {
|
|
12290
|
-
const info = extractIncludeInfo(
|
|
12516
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Document_FormatDocument, "format", ["id"]);
|
|
12291
12517
|
this._includes.push({
|
|
12292
12518
|
fieldName: "format",
|
|
12293
|
-
fragmentDoc:
|
|
12519
|
+
fragmentDoc: chunkL7HABILC_cjs.DocumentFormatFragmentDoc,
|
|
12294
12520
|
variables,
|
|
12295
12521
|
isConnection: false,
|
|
12296
12522
|
isList: false,
|
|
@@ -12306,7 +12532,7 @@ var DocumentSubBuilder = class {
|
|
|
12306
12532
|
}
|
|
12307
12533
|
/** Include tables in the parent query. */
|
|
12308
12534
|
tables(variables, builder) {
|
|
12309
|
-
const info = extractIncludeInfo(
|
|
12535
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
12310
12536
|
let children;
|
|
12311
12537
|
if (builder) {
|
|
12312
12538
|
const sub = new TableSubBuilder();
|
|
@@ -12315,7 +12541,7 @@ var DocumentSubBuilder = class {
|
|
|
12315
12541
|
}
|
|
12316
12542
|
this._includes.push({
|
|
12317
12543
|
fieldName: "tables",
|
|
12318
|
-
fragmentDoc:
|
|
12544
|
+
fragmentDoc: chunkL7HABILC_cjs.TableConnectionFragmentDoc,
|
|
12319
12545
|
variables,
|
|
12320
12546
|
isConnection: true,
|
|
12321
12547
|
isList: false,
|
|
@@ -12337,10 +12563,10 @@ var DocumentCatalogSubBuilder = class {
|
|
|
12337
12563
|
_includes = [];
|
|
12338
12564
|
/** Include format in the parent query. */
|
|
12339
12565
|
format(variables) {
|
|
12340
|
-
const info = extractIncludeInfo(
|
|
12566
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
12341
12567
|
this._includes.push({
|
|
12342
12568
|
fieldName: "format",
|
|
12343
|
-
fragmentDoc:
|
|
12569
|
+
fragmentDoc: chunkL7HABILC_cjs.DocumentFormatFragmentDoc,
|
|
12344
12570
|
variables,
|
|
12345
12571
|
isConnection: false,
|
|
12346
12572
|
isList: false,
|
|
@@ -12355,12 +12581,54 @@ var DocumentCatalogSubBuilder = class {
|
|
|
12355
12581
|
return this;
|
|
12356
12582
|
}
|
|
12357
12583
|
};
|
|
12584
|
+
var FeedItemSubBuilder = class {
|
|
12585
|
+
/** @internal */
|
|
12586
|
+
_includes = [];
|
|
12587
|
+
/** Include action in the parent query. */
|
|
12588
|
+
action(variables) {
|
|
12589
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.FeedItem_ActionDocument, "action", ["id"]);
|
|
12590
|
+
this._includes.push({
|
|
12591
|
+
fieldName: "action",
|
|
12592
|
+
fragmentDoc: chunkL7HABILC_cjs.FeedSendMessageActionFragmentDoc,
|
|
12593
|
+
variables,
|
|
12594
|
+
isConnection: false,
|
|
12595
|
+
isList: false,
|
|
12596
|
+
variableDefinitions: info.variableDefinitions,
|
|
12597
|
+
fieldArguments: info.fieldArguments,
|
|
12598
|
+
syncMetadata: {
|
|
12599
|
+
entityType: "feedSendMessageActions",
|
|
12600
|
+
requiredFields: ["prompt", "type"]
|
|
12601
|
+
},
|
|
12602
|
+
modelFactory: (req, data, se, bu) => new FeedSendMessageAction(req, data, se, bu)
|
|
12603
|
+
});
|
|
12604
|
+
return this;
|
|
12605
|
+
}
|
|
12606
|
+
/** Include data in the parent query. */
|
|
12607
|
+
data(variables) {
|
|
12608
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.FeedItem_DataDocument, "data", ["id"]);
|
|
12609
|
+
this._includes.push({
|
|
12610
|
+
fieldName: "data",
|
|
12611
|
+
fragmentDoc: chunkL7HABILC_cjs.FeedArtifactDataFragmentDoc,
|
|
12612
|
+
variables,
|
|
12613
|
+
isConnection: false,
|
|
12614
|
+
isList: true,
|
|
12615
|
+
variableDefinitions: info.variableDefinitions,
|
|
12616
|
+
fieldArguments: info.fieldArguments,
|
|
12617
|
+
syncMetadata: {
|
|
12618
|
+
entityType: "feedArtifactDatas",
|
|
12619
|
+
requiredFields: ["kind"]
|
|
12620
|
+
},
|
|
12621
|
+
modelFactory: (req, data, se, bu) => new FeedArtifactData(req, data, se, bu)
|
|
12622
|
+
});
|
|
12623
|
+
return this;
|
|
12624
|
+
}
|
|
12625
|
+
};
|
|
12358
12626
|
var InsightSubBuilder = class {
|
|
12359
12627
|
/** @internal */
|
|
12360
12628
|
_includes = [];
|
|
12361
12629
|
/** Include chat in the parent query. */
|
|
12362
12630
|
chat(variables, builder) {
|
|
12363
|
-
const info = extractIncludeInfo(
|
|
12631
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
12364
12632
|
let children;
|
|
12365
12633
|
if (builder) {
|
|
12366
12634
|
const sub = new ChatSubBuilder();
|
|
@@ -12369,7 +12637,7 @@ var InsightSubBuilder = class {
|
|
|
12369
12637
|
}
|
|
12370
12638
|
this._includes.push({
|
|
12371
12639
|
fieldName: "chat",
|
|
12372
|
-
fragmentDoc:
|
|
12640
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatFragmentDoc,
|
|
12373
12641
|
variables,
|
|
12374
12642
|
isConnection: false,
|
|
12375
12643
|
isList: false,
|
|
@@ -12386,10 +12654,10 @@ var InsightSubBuilder = class {
|
|
|
12386
12654
|
}
|
|
12387
12655
|
/** Include reportMembers in the parent query. */
|
|
12388
12656
|
reportMembers(variables) {
|
|
12389
|
-
const info = extractIncludeInfo(
|
|
12657
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
12390
12658
|
this._includes.push({
|
|
12391
12659
|
fieldName: "reportMembers",
|
|
12392
|
-
fragmentDoc:
|
|
12660
|
+
fragmentDoc: chunkL7HABILC_cjs.ReportMemberFragmentDoc,
|
|
12393
12661
|
variables,
|
|
12394
12662
|
isConnection: false,
|
|
12395
12663
|
isList: true,
|
|
@@ -12405,7 +12673,7 @@ var InsightSubBuilder = class {
|
|
|
12405
12673
|
}
|
|
12406
12674
|
/** Include reports in the parent query. */
|
|
12407
12675
|
reports(variables, builder) {
|
|
12408
|
-
const info = extractIncludeInfo(
|
|
12676
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
12409
12677
|
let children;
|
|
12410
12678
|
if (builder) {
|
|
12411
12679
|
const sub = new ReportSubBuilder();
|
|
@@ -12414,7 +12682,7 @@ var InsightSubBuilder = class {
|
|
|
12414
12682
|
}
|
|
12415
12683
|
this._includes.push({
|
|
12416
12684
|
fieldName: "reports",
|
|
12417
|
-
fragmentDoc:
|
|
12685
|
+
fragmentDoc: chunkL7HABILC_cjs.ReportConnectionFragmentDoc,
|
|
12418
12686
|
variables,
|
|
12419
12687
|
isConnection: true,
|
|
12420
12688
|
isList: false,
|
|
@@ -12436,10 +12704,10 @@ var IntegrationSubBuilder = class {
|
|
|
12436
12704
|
_includes = [];
|
|
12437
12705
|
/** Include provider in the parent query. */
|
|
12438
12706
|
provider(variables) {
|
|
12439
|
-
const info = extractIncludeInfo(
|
|
12707
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
12440
12708
|
this._includes.push({
|
|
12441
12709
|
fieldName: "provider",
|
|
12442
|
-
fragmentDoc:
|
|
12710
|
+
fragmentDoc: chunkL7HABILC_cjs.IntegrationProviderFragmentDoc,
|
|
12443
12711
|
variables,
|
|
12444
12712
|
isConnection: false,
|
|
12445
12713
|
isList: false,
|
|
@@ -12459,10 +12727,10 @@ var IntegrationCatalogSubBuilder = class {
|
|
|
12459
12727
|
_includes = [];
|
|
12460
12728
|
/** Include provider in the parent query. */
|
|
12461
12729
|
provider(variables) {
|
|
12462
|
-
const info = extractIncludeInfo(
|
|
12730
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
12463
12731
|
this._includes.push({
|
|
12464
12732
|
fieldName: "provider",
|
|
12465
|
-
fragmentDoc:
|
|
12733
|
+
fragmentDoc: chunkL7HABILC_cjs.IntegrationProviderFragmentDoc,
|
|
12466
12734
|
variables,
|
|
12467
12735
|
isConnection: false,
|
|
12468
12736
|
isList: false,
|
|
@@ -12482,7 +12750,7 @@ var PulseEventSubBuilder = class {
|
|
|
12482
12750
|
_includes = [];
|
|
12483
12751
|
/** Include integration in the parent query. */
|
|
12484
12752
|
integration(variables, builder) {
|
|
12485
|
-
const info = extractIncludeInfo(
|
|
12753
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
12486
12754
|
let children;
|
|
12487
12755
|
if (builder) {
|
|
12488
12756
|
const sub = new IntegrationSubBuilder();
|
|
@@ -12491,7 +12759,7 @@ var PulseEventSubBuilder = class {
|
|
|
12491
12759
|
}
|
|
12492
12760
|
this._includes.push({
|
|
12493
12761
|
fieldName: "integration",
|
|
12494
|
-
fragmentDoc:
|
|
12762
|
+
fragmentDoc: chunkL7HABILC_cjs.IntegrationFragmentDoc,
|
|
12495
12763
|
variables,
|
|
12496
12764
|
isConnection: false,
|
|
12497
12765
|
isList: false,
|
|
@@ -12499,7 +12767,7 @@ var PulseEventSubBuilder = class {
|
|
|
12499
12767
|
fieldArguments: info.fieldArguments,
|
|
12500
12768
|
syncMetadata: {
|
|
12501
12769
|
entityType: "integrations",
|
|
12502
|
-
requiredFields: ["createdAt", "id", "providerKey", "status", "updatedAt"]
|
|
12770
|
+
requiredFields: ["createdAt", "id", "providerKey", "status", "unreadPulseCount", "updatedAt"]
|
|
12503
12771
|
},
|
|
12504
12772
|
children,
|
|
12505
12773
|
modelFactory: (req, data, se, bu) => new Integration(req, data, se, bu)
|
|
@@ -12512,7 +12780,7 @@ var ReportSubBuilder = class {
|
|
|
12512
12780
|
_includes = [];
|
|
12513
12781
|
/** Include insights in the parent query. */
|
|
12514
12782
|
insights(variables, builder) {
|
|
12515
|
-
const info = extractIncludeInfo(
|
|
12783
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
12516
12784
|
let children;
|
|
12517
12785
|
if (builder) {
|
|
12518
12786
|
const sub = new InsightSubBuilder();
|
|
@@ -12521,7 +12789,7 @@ var ReportSubBuilder = class {
|
|
|
12521
12789
|
}
|
|
12522
12790
|
this._includes.push({
|
|
12523
12791
|
fieldName: "insights",
|
|
12524
|
-
fragmentDoc:
|
|
12792
|
+
fragmentDoc: chunkL7HABILC_cjs.InsightConnectionFragmentDoc,
|
|
12525
12793
|
variables,
|
|
12526
12794
|
isConnection: true,
|
|
12527
12795
|
isList: false,
|
|
@@ -12539,10 +12807,10 @@ var ReportSubBuilder = class {
|
|
|
12539
12807
|
}
|
|
12540
12808
|
/** Include layout in the parent query. */
|
|
12541
12809
|
layout(variables) {
|
|
12542
|
-
const info = extractIncludeInfo(
|
|
12810
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
12543
12811
|
this._includes.push({
|
|
12544
12812
|
fieldName: "layout",
|
|
12545
|
-
fragmentDoc:
|
|
12813
|
+
fragmentDoc: chunkL7HABILC_cjs.ReportMemberFragmentDoc,
|
|
12546
12814
|
variables,
|
|
12547
12815
|
isConnection: false,
|
|
12548
12816
|
isList: true,
|
|
@@ -12562,7 +12830,7 @@ var TableSubBuilder = class {
|
|
|
12562
12830
|
_includes = [];
|
|
12563
12831
|
/** Include database in the parent query. */
|
|
12564
12832
|
database(variables, builder) {
|
|
12565
|
-
const info = extractIncludeInfo(
|
|
12833
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
12566
12834
|
let children;
|
|
12567
12835
|
if (builder) {
|
|
12568
12836
|
const sub = new DatabaseSubBuilder();
|
|
@@ -12571,7 +12839,7 @@ var TableSubBuilder = class {
|
|
|
12571
12839
|
}
|
|
12572
12840
|
this._includes.push({
|
|
12573
12841
|
fieldName: "database",
|
|
12574
|
-
fragmentDoc:
|
|
12842
|
+
fragmentDoc: chunkL7HABILC_cjs.DatabaseFragmentDoc,
|
|
12575
12843
|
variables,
|
|
12576
12844
|
isConnection: false,
|
|
12577
12845
|
isList: false,
|
|
@@ -12588,7 +12856,7 @@ var TableSubBuilder = class {
|
|
|
12588
12856
|
}
|
|
12589
12857
|
/** Include document in the parent query. */
|
|
12590
12858
|
document(variables, builder) {
|
|
12591
|
-
const info = extractIncludeInfo(
|
|
12859
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
12592
12860
|
let children;
|
|
12593
12861
|
if (builder) {
|
|
12594
12862
|
const sub = new DocumentSubBuilder();
|
|
@@ -12597,7 +12865,7 @@ var TableSubBuilder = class {
|
|
|
12597
12865
|
}
|
|
12598
12866
|
this._includes.push({
|
|
12599
12867
|
fieldName: "document",
|
|
12600
|
-
fragmentDoc:
|
|
12868
|
+
fragmentDoc: chunkL7HABILC_cjs.DocumentFragmentDoc,
|
|
12601
12869
|
variables,
|
|
12602
12870
|
isConnection: false,
|
|
12603
12871
|
isList: false,
|
|
@@ -12614,10 +12882,10 @@ var TableSubBuilder = class {
|
|
|
12614
12882
|
}
|
|
12615
12883
|
/** Include fromRelations in the parent query. */
|
|
12616
12884
|
fromRelations(variables) {
|
|
12617
|
-
const info = extractIncludeInfo(
|
|
12885
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
12618
12886
|
this._includes.push({
|
|
12619
12887
|
fieldName: "fromRelations",
|
|
12620
|
-
fragmentDoc:
|
|
12888
|
+
fragmentDoc: chunkL7HABILC_cjs.RelationFragmentDoc,
|
|
12621
12889
|
variables,
|
|
12622
12890
|
isConnection: false,
|
|
12623
12891
|
isList: true,
|
|
@@ -12633,10 +12901,10 @@ var TableSubBuilder = class {
|
|
|
12633
12901
|
}
|
|
12634
12902
|
/** Include toRelations in the parent query. */
|
|
12635
12903
|
toRelations(variables) {
|
|
12636
|
-
const info = extractIncludeInfo(
|
|
12904
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
12637
12905
|
this._includes.push({
|
|
12638
12906
|
fieldName: "toRelations",
|
|
12639
|
-
fragmentDoc:
|
|
12907
|
+
fragmentDoc: chunkL7HABILC_cjs.RelationFragmentDoc,
|
|
12640
12908
|
variables,
|
|
12641
12909
|
isConnection: false,
|
|
12642
12910
|
isList: true,
|
|
@@ -12651,424 +12919,416 @@ var TableSubBuilder = class {
|
|
|
12651
12919
|
return this;
|
|
12652
12920
|
}
|
|
12653
12921
|
};
|
|
12654
|
-
var AcknowledgePulseEventMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12655
|
-
async fetch(variables, options) {
|
|
12656
|
-
const response = await this._syncEngine.mutate(chunkYMIRF4SC_cjs.AcknowledgePulseEventDocument, variables, MUTATION_CACHE_RULES["acknowledgePulseEvent"]);
|
|
12657
|
-
const data = response.acknowledgePulseEvent;
|
|
12658
|
-
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12659
|
-
}
|
|
12660
|
-
};
|
|
12661
12922
|
var AddInsightToReportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12662
12923
|
async fetch(variables, options) {
|
|
12663
|
-
const response = await this._syncEngine.mutate(
|
|
12924
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.AddInsightToReportDocument, variables, MUTATION_CACHE_RULES["addInsightToReport"]);
|
|
12664
12925
|
const data = response.addInsightToReport;
|
|
12665
12926
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
12666
12927
|
}
|
|
12667
12928
|
};
|
|
12668
12929
|
var CancelOauthFlowMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12669
12930
|
async fetch(variables) {
|
|
12670
|
-
const response = await this._syncEngine.mutate(
|
|
12931
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CancelOauthFlowDocument, variables, MUTATION_CACHE_RULES["cancelOauthFlow"]);
|
|
12671
12932
|
return response.cancelOauthFlow;
|
|
12672
12933
|
}
|
|
12673
12934
|
};
|
|
12674
12935
|
var CancelWorkspaceDeletionMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12675
12936
|
async fetch(variables) {
|
|
12676
|
-
const response = await this._syncEngine.mutate(
|
|
12937
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CancelWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["cancelWorkspaceDeletion"]);
|
|
12677
12938
|
return response.cancelWorkspaceDeletion;
|
|
12678
12939
|
}
|
|
12679
12940
|
};
|
|
12680
12941
|
var ConnectIntegrationMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12681
12942
|
async fetch(variables, options) {
|
|
12682
|
-
const response = await this._syncEngine.mutate(
|
|
12943
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.ConnectIntegrationDocument, variables, MUTATION_CACHE_RULES["connectIntegration"]);
|
|
12683
12944
|
const data = response.connectIntegration;
|
|
12684
12945
|
return new CreateIntegrationOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
12685
12946
|
}
|
|
12686
12947
|
};
|
|
12948
|
+
var ConsumePulseEventsMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12949
|
+
async fetch(variables) {
|
|
12950
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.ConsumePulseEventsDocument, variables, MUTATION_CACHE_RULES["consumePulseEvents"]);
|
|
12951
|
+
return response.consumePulseEvents;
|
|
12952
|
+
}
|
|
12953
|
+
};
|
|
12687
12954
|
var ContinueImportedChatMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12688
12955
|
async fetch(variables) {
|
|
12689
|
-
const response = await this._syncEngine.mutate(
|
|
12956
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.ContinueImportedChatDocument, variables, MUTATION_CACHE_RULES["continueImportedChat"]);
|
|
12690
12957
|
return response.continueImportedChat;
|
|
12691
12958
|
}
|
|
12692
12959
|
};
|
|
12693
12960
|
var ContinueInterpretationMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12694
12961
|
async fetch(variables) {
|
|
12695
|
-
const response = await this._syncEngine.mutate(
|
|
12962
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.ContinueInterpretationDocument, variables, MUTATION_CACHE_RULES["continueInterpretation"]);
|
|
12696
12963
|
return response.continueInterpretation;
|
|
12697
12964
|
}
|
|
12698
12965
|
};
|
|
12699
12966
|
var CreateAgentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12700
12967
|
async fetch(variables, options) {
|
|
12701
|
-
const response = await this._syncEngine.mutate(
|
|
12968
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CreateAgentDocument, variables, MUTATION_CACHE_RULES["createAgent"]);
|
|
12702
12969
|
const data = response.createAgent;
|
|
12703
12970
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12704
12971
|
}
|
|
12705
12972
|
};
|
|
12706
12973
|
var CreateChatMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12707
12974
|
async fetch(variables, options) {
|
|
12708
|
-
const response = await this._syncEngine.mutate(
|
|
12975
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CreateChatDocument, variables, MUTATION_CACHE_RULES["createChat"]);
|
|
12709
12976
|
const data = response.createChat;
|
|
12710
12977
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
12711
12978
|
}
|
|
12712
12979
|
};
|
|
12713
12980
|
var CreateDatabaseMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12714
12981
|
async fetch(variables, options) {
|
|
12715
|
-
const response = await this._syncEngine.mutate(
|
|
12982
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CreateDatabaseDocument, variables, MUTATION_CACHE_RULES["createDatabase"]);
|
|
12716
12983
|
const data = response.createDatabase;
|
|
12717
12984
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
12718
12985
|
}
|
|
12719
12986
|
};
|
|
12720
12987
|
var CreateDocumentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12721
12988
|
async fetch(variables, options) {
|
|
12722
|
-
const response = await this._syncEngine.mutate(
|
|
12989
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CreateDocumentDocument, variables, MUTATION_CACHE_RULES["createDocument"]);
|
|
12723
12990
|
const data = response.createDocument;
|
|
12724
12991
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
12725
12992
|
}
|
|
12726
12993
|
};
|
|
12727
12994
|
var CreateFeedbackMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12728
12995
|
async fetch(variables, options) {
|
|
12729
|
-
const response = await this._syncEngine.mutate(
|
|
12996
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CreateFeedbackDocument, variables, MUTATION_CACHE_RULES["createFeedback"]);
|
|
12730
12997
|
const data = response.createFeedback;
|
|
12731
12998
|
return new Feedback(this._request, data, this._syncEngine, this._baseUrl);
|
|
12732
12999
|
}
|
|
12733
13000
|
};
|
|
12734
13001
|
var CreateFolderMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12735
13002
|
async fetch(variables, options) {
|
|
12736
|
-
const response = await this._syncEngine.mutate(
|
|
13003
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CreateFolderDocument, variables, MUTATION_CACHE_RULES["createFolder"]);
|
|
12737
13004
|
const data = response.createFolder;
|
|
12738
13005
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
12739
13006
|
}
|
|
12740
13007
|
};
|
|
12741
13008
|
var CreateInsightMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12742
13009
|
async fetch(variables, options) {
|
|
12743
|
-
const response = await this._syncEngine.mutate(
|
|
13010
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CreateInsightDocument, variables, MUTATION_CACHE_RULES["createInsight"]);
|
|
12744
13011
|
const data = response.createInsight;
|
|
12745
13012
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
12746
13013
|
}
|
|
12747
13014
|
};
|
|
12748
13015
|
var CreateIntegrationMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12749
13016
|
async fetch(variables, options) {
|
|
12750
|
-
const response = await this._syncEngine.mutate(
|
|
13017
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CreateIntegrationDocument, variables, MUTATION_CACHE_RULES["createIntegration"]);
|
|
12751
13018
|
const data = response.createIntegration;
|
|
12752
13019
|
return new CreateIntegrationOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
12753
13020
|
}
|
|
12754
13021
|
};
|
|
12755
13022
|
var CreateReportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12756
13023
|
async fetch(variables, options) {
|
|
12757
|
-
const response = await this._syncEngine.mutate(
|
|
13024
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CreateReportDocument, variables, MUTATION_CACHE_RULES["createReport"]);
|
|
12758
13025
|
const data = response.createReport;
|
|
12759
13026
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
12760
13027
|
}
|
|
12761
13028
|
};
|
|
12762
13029
|
var CreateTableMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12763
13030
|
async fetch(variables, options) {
|
|
12764
|
-
const response = await this._syncEngine.mutate(
|
|
13031
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CreateTableDocument, variables, MUTATION_CACHE_RULES["createTable"]);
|
|
12765
13032
|
const data = response.createTable;
|
|
12766
13033
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
12767
13034
|
}
|
|
12768
13035
|
};
|
|
12769
13036
|
var CreateUserSkillFileMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12770
13037
|
async fetch(variables, options) {
|
|
12771
|
-
const response = await this._syncEngine.mutate(
|
|
13038
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CreateUserSkillFileDocument, variables, MUTATION_CACHE_RULES["createUserSkillFile"]);
|
|
12772
13039
|
const data = response.createUserSkillFile;
|
|
12773
13040
|
return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
12774
13041
|
}
|
|
12775
13042
|
};
|
|
12776
13043
|
var CreateUserSkillFolderMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12777
13044
|
async fetch(variables, options) {
|
|
12778
|
-
const response = await this._syncEngine.mutate(
|
|
13045
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.CreateUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["createUserSkillFolder"]);
|
|
12779
13046
|
const data = response.createUserSkillFolder;
|
|
12780
13047
|
return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
12781
13048
|
}
|
|
12782
13049
|
};
|
|
12783
13050
|
var DeleteAgentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12784
13051
|
async fetch(variables, options) {
|
|
12785
|
-
const response = await this._syncEngine.mutate(
|
|
13052
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DeleteAgentDocument, variables, MUTATION_CACHE_RULES["deleteAgent"]);
|
|
12786
13053
|
const data = response.deleteAgent;
|
|
12787
13054
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12788
13055
|
}
|
|
12789
13056
|
};
|
|
12790
13057
|
var DeleteArtifactMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12791
13058
|
async fetch(variables, options) {
|
|
12792
|
-
const response = await this._syncEngine.mutate(
|
|
13059
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DeleteArtifactDocument, variables, MUTATION_CACHE_RULES["deleteArtifact"]);
|
|
12793
13060
|
const data = response.deleteArtifact;
|
|
12794
13061
|
return new Artifact(this._request, data, this._syncEngine, this._baseUrl);
|
|
12795
13062
|
}
|
|
12796
13063
|
};
|
|
12797
13064
|
var DeleteChatMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12798
13065
|
async fetch(variables, options) {
|
|
12799
|
-
const response = await this._syncEngine.mutate(
|
|
13066
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DeleteChatDocument, variables, MUTATION_CACHE_RULES["deleteChat"]);
|
|
12800
13067
|
const data = response.deleteChat;
|
|
12801
13068
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
12802
13069
|
}
|
|
12803
13070
|
};
|
|
12804
13071
|
var DeleteDatabaseMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12805
13072
|
async fetch(variables, options) {
|
|
12806
|
-
const response = await this._syncEngine.mutate(
|
|
13073
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DeleteDatabaseDocument, variables, MUTATION_CACHE_RULES["deleteDatabase"]);
|
|
12807
13074
|
const data = response.deleteDatabase;
|
|
12808
13075
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
12809
13076
|
}
|
|
12810
13077
|
};
|
|
12811
13078
|
var DeleteDocumentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12812
13079
|
async fetch(variables, options) {
|
|
12813
|
-
const response = await this._syncEngine.mutate(
|
|
13080
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DeleteDocumentDocument, variables, MUTATION_CACHE_RULES["deleteDocument"]);
|
|
12814
13081
|
const data = response.deleteDocument;
|
|
12815
13082
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
12816
13083
|
}
|
|
12817
13084
|
};
|
|
12818
13085
|
var DeleteFolderMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12819
13086
|
async fetch(variables, options) {
|
|
12820
|
-
const response = await this._syncEngine.mutate(
|
|
13087
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DeleteFolderDocument, variables, MUTATION_CACHE_RULES["deleteFolder"]);
|
|
12821
13088
|
const data = response.deleteFolder;
|
|
12822
13089
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
12823
13090
|
}
|
|
12824
13091
|
};
|
|
12825
13092
|
var DeleteInsightMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12826
13093
|
async fetch(variables, options) {
|
|
12827
|
-
const response = await this._syncEngine.mutate(
|
|
13094
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DeleteInsightDocument, variables, MUTATION_CACHE_RULES["deleteInsight"]);
|
|
12828
13095
|
const data = response.deleteInsight;
|
|
12829
13096
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
12830
13097
|
}
|
|
12831
13098
|
};
|
|
12832
13099
|
var DeleteInsightsMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12833
13100
|
async fetch(variables, options) {
|
|
12834
|
-
const response = await this._syncEngine.mutate(
|
|
13101
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DeleteInsightsDocument, variables, MUTATION_CACHE_RULES["deleteInsights"]);
|
|
12835
13102
|
const data = response.deleteInsights;
|
|
12836
13103
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
12837
13104
|
}
|
|
12838
13105
|
};
|
|
12839
13106
|
var DeleteIntegrationMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12840
13107
|
async fetch(variables) {
|
|
12841
|
-
const response = await this._syncEngine.mutate(
|
|
13108
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DeleteIntegrationDocument, variables, MUTATION_CACHE_RULES["deleteIntegration"]);
|
|
12842
13109
|
return response.deleteIntegration;
|
|
12843
13110
|
}
|
|
12844
13111
|
};
|
|
12845
13112
|
var DeleteReportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12846
13113
|
async fetch(variables, options) {
|
|
12847
|
-
const response = await this._syncEngine.mutate(
|
|
13114
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DeleteReportDocument, variables, MUTATION_CACHE_RULES["deleteReport"]);
|
|
12848
13115
|
const data = response.deleteReport;
|
|
12849
13116
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
12850
13117
|
}
|
|
12851
13118
|
};
|
|
12852
13119
|
var DeleteTableMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12853
13120
|
async fetch(variables, options) {
|
|
12854
|
-
const response = await this._syncEngine.mutate(
|
|
13121
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DeleteTableDocument, variables, MUTATION_CACHE_RULES["deleteTable"]);
|
|
12855
13122
|
const data = response.deleteTable;
|
|
12856
13123
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
12857
13124
|
}
|
|
12858
13125
|
};
|
|
12859
13126
|
var DeleteUserSkillFileMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12860
13127
|
async fetch(variables, options) {
|
|
12861
|
-
const response = await this._syncEngine.mutate(
|
|
13128
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DeleteUserSkillFileDocument, variables, MUTATION_CACHE_RULES["deleteUserSkillFile"]);
|
|
12862
13129
|
const data = response.deleteUserSkillFile;
|
|
12863
13130
|
return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
12864
13131
|
}
|
|
12865
13132
|
};
|
|
12866
13133
|
var DeleteUserSkillFolderMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12867
13134
|
async fetch(variables, options) {
|
|
12868
|
-
const response = await this._syncEngine.mutate(
|
|
13135
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DeleteUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["deleteUserSkillFolder"]);
|
|
12869
13136
|
const data = response.deleteUserSkillFolder;
|
|
12870
13137
|
return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
12871
13138
|
}
|
|
12872
13139
|
};
|
|
12873
13140
|
var DisconnectIntegrationMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12874
13141
|
async fetch(variables) {
|
|
12875
|
-
const response = await this._syncEngine.mutate(
|
|
13142
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DisconnectIntegrationDocument, variables, MUTATION_CACHE_RULES["disconnectIntegration"]);
|
|
12876
13143
|
return response.disconnectIntegration;
|
|
12877
13144
|
}
|
|
12878
13145
|
};
|
|
12879
13146
|
var DismissPulseEventMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12880
13147
|
async fetch(variables, options) {
|
|
12881
|
-
const response = await this._syncEngine.mutate(
|
|
13148
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.DismissPulseEventDocument, variables, MUTATION_CACHE_RULES["dismissPulseEvent"]);
|
|
12882
13149
|
const data = response.dismissPulseEvent;
|
|
12883
13150
|
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12884
13151
|
}
|
|
12885
13152
|
};
|
|
12886
13153
|
var ExecuteChatImportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12887
13154
|
async fetch(variables, options) {
|
|
12888
|
-
const response = await this._syncEngine.mutate(
|
|
13155
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.ExecuteChatImportDocument, variables, MUTATION_CACHE_RULES["executeChatImport"]);
|
|
12889
13156
|
const data = response.executeChatImport;
|
|
12890
13157
|
return new ChatImportExecuteOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
12891
13158
|
}
|
|
12892
13159
|
};
|
|
12893
13160
|
var GenerateUploadUriMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12894
13161
|
async fetch(variables, options) {
|
|
12895
|
-
const response = await this._syncEngine.mutate(
|
|
13162
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.GenerateUploadUriDocument, variables, MUTATION_CACHE_RULES["generateUploadUri"]);
|
|
12896
13163
|
const data = response.generateUploadUri;
|
|
12897
13164
|
return new FileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
12898
13165
|
}
|
|
12899
13166
|
};
|
|
12900
|
-
var MarkPulseEventSeenMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12901
|
-
async fetch(variables, options) {
|
|
12902
|
-
const response = await this._syncEngine.mutate(chunkYMIRF4SC_cjs.MarkPulseEventSeenDocument, variables, MUTATION_CACHE_RULES["markPulseEventSeen"]);
|
|
12903
|
-
const data = response.markPulseEventSeen;
|
|
12904
|
-
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12905
|
-
}
|
|
12906
|
-
};
|
|
12907
13167
|
var PreviewChatImportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12908
13168
|
async fetch(variables, options) {
|
|
12909
|
-
const response = await this._syncEngine.mutate(
|
|
13169
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.PreviewChatImportDocument, variables, MUTATION_CACHE_RULES["previewChatImport"]);
|
|
12910
13170
|
const data = response.previewChatImport;
|
|
12911
13171
|
return new ChatImportPreviewOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
12912
13172
|
}
|
|
12913
13173
|
};
|
|
12914
13174
|
var ReanalyzeDocumentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12915
13175
|
async fetch(variables, options) {
|
|
12916
|
-
const response = await this._syncEngine.mutate(
|
|
13176
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.ReanalyzeDocumentDocument, variables, MUTATION_CACHE_RULES["reanalyzeDocument"]);
|
|
12917
13177
|
const data = response.reanalyzeDocument;
|
|
12918
13178
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
12919
13179
|
}
|
|
12920
13180
|
};
|
|
12921
13181
|
var RefineMindInstructionMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12922
13182
|
async fetch(variables) {
|
|
12923
|
-
const response = await this._syncEngine.mutate(
|
|
13183
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.RefineMindInstructionDocument, variables, MUTATION_CACHE_RULES["refineMindInstruction"]);
|
|
12924
13184
|
return response.refineMindInstruction;
|
|
12925
13185
|
}
|
|
12926
13186
|
};
|
|
12927
13187
|
var RefreshDatabaseSchemaMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12928
13188
|
async fetch(variables) {
|
|
12929
|
-
const response = await this._syncEngine.mutate(
|
|
13189
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.RefreshDatabaseSchemaDocument, variables, MUTATION_CACHE_RULES["refreshDatabaseSchema"]);
|
|
12930
13190
|
return response.refreshDatabaseSchema;
|
|
12931
13191
|
}
|
|
12932
13192
|
};
|
|
12933
13193
|
var ReinterpretSourceMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12934
13194
|
async fetch(variables) {
|
|
12935
|
-
const response = await this._syncEngine.mutate(
|
|
13195
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.ReinterpretSourceDocument, variables, MUTATION_CACHE_RULES["reinterpretSource"]);
|
|
12936
13196
|
return response.reinterpretSource;
|
|
12937
13197
|
}
|
|
12938
13198
|
};
|
|
12939
13199
|
var ReinterpretSourcesOfuserMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12940
13200
|
async fetch(variables) {
|
|
12941
|
-
const response = await this._syncEngine.mutate(
|
|
13201
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.ReinterpretSourcesOfuserDocument, variables, MUTATION_CACHE_RULES["reinterpretSourcesOfuser"]);
|
|
12942
13202
|
return response.reinterpretSourcesOfuser;
|
|
12943
13203
|
}
|
|
12944
13204
|
};
|
|
12945
13205
|
var RelocateInsightMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12946
13206
|
async fetch(variables, options) {
|
|
12947
|
-
const response = await this._syncEngine.mutate(
|
|
13207
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.RelocateInsightDocument, variables, MUTATION_CACHE_RULES["relocateInsight"]);
|
|
12948
13208
|
const data = response.relocateInsight;
|
|
12949
13209
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
12950
13210
|
}
|
|
12951
13211
|
};
|
|
12952
13212
|
var RemoveInsightFromReportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12953
13213
|
async fetch(variables, options) {
|
|
12954
|
-
const response = await this._syncEngine.mutate(
|
|
13214
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.RemoveInsightFromReportDocument, variables, MUTATION_CACHE_RULES["removeInsightFromReport"]);
|
|
12955
13215
|
const data = response.removeInsightFromReport;
|
|
12956
13216
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
12957
13217
|
}
|
|
12958
13218
|
};
|
|
12959
13219
|
var ResetWorkspaceMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12960
13220
|
async fetch(variables) {
|
|
12961
|
-
const response = await this._syncEngine.mutate(
|
|
13221
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.ResetWorkspaceDocument, variables, MUTATION_CACHE_RULES["resetWorkspace"]);
|
|
12962
13222
|
return response.resetWorkspace;
|
|
12963
13223
|
}
|
|
12964
13224
|
};
|
|
12965
13225
|
var ResolvePulseEventMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12966
13226
|
async fetch(variables, options) {
|
|
12967
|
-
const response = await this._syncEngine.mutate(
|
|
13227
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.ResolvePulseEventDocument, variables, MUTATION_CACHE_RULES["resolvePulseEvent"]);
|
|
12968
13228
|
const data = response.resolvePulseEvent;
|
|
12969
13229
|
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12970
13230
|
}
|
|
12971
13231
|
};
|
|
12972
13232
|
var ScheduleWorkspaceDeletionMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12973
13233
|
async fetch(variables, options) {
|
|
12974
|
-
const response = await this._syncEngine.mutate(
|
|
13234
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.ScheduleWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["scheduleWorkspaceDeletion"]);
|
|
12975
13235
|
const data = response.scheduleWorkspaceDeletion;
|
|
12976
13236
|
return new WorkspaceDeleteSchedule(this._request, data, this._syncEngine, this._baseUrl);
|
|
12977
13237
|
}
|
|
12978
13238
|
};
|
|
12979
13239
|
var SetDatabasePrimaryKeyMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12980
13240
|
async fetch(variables) {
|
|
12981
|
-
const response = await this._syncEngine.mutate(
|
|
13241
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.SetDatabasePrimaryKeyDocument, variables, MUTATION_CACHE_RULES["setDatabasePrimaryKey"]);
|
|
12982
13242
|
return response.setDatabasePrimaryKey;
|
|
12983
13243
|
}
|
|
12984
13244
|
};
|
|
12985
13245
|
var UpdateAgentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12986
13246
|
async fetch(variables, options) {
|
|
12987
|
-
const response = await this._syncEngine.mutate(
|
|
13247
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.UpdateAgentDocument, variables, MUTATION_CACHE_RULES["updateAgent"]);
|
|
12988
13248
|
const data = response.updateAgent;
|
|
12989
13249
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12990
13250
|
}
|
|
12991
13251
|
};
|
|
12992
13252
|
var UpdateChatMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12993
13253
|
async fetch(variables, options) {
|
|
12994
|
-
const response = await this._syncEngine.mutate(
|
|
13254
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.UpdateChatDocument, variables, MUTATION_CACHE_RULES["updateChat"]);
|
|
12995
13255
|
const data = response.updateChat;
|
|
12996
13256
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
12997
13257
|
}
|
|
12998
13258
|
};
|
|
12999
13259
|
var UpdateDatabaseMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
13000
13260
|
async fetch(variables, options) {
|
|
13001
|
-
const response = await this._syncEngine.mutate(
|
|
13261
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.UpdateDatabaseDocument, variables, MUTATION_CACHE_RULES["updateDatabase"]);
|
|
13002
13262
|
const data = response.updateDatabase;
|
|
13003
13263
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
13004
13264
|
}
|
|
13005
13265
|
};
|
|
13006
13266
|
var UpdateDocumentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
13007
13267
|
async fetch(variables, options) {
|
|
13008
|
-
const response = await this._syncEngine.mutate(
|
|
13268
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.UpdateDocumentDocument, variables, MUTATION_CACHE_RULES["updateDocument"]);
|
|
13009
13269
|
const data = response.updateDocument;
|
|
13010
13270
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
13011
13271
|
}
|
|
13012
13272
|
};
|
|
13013
13273
|
var UpdateFolderMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
13014
13274
|
async fetch(variables, options) {
|
|
13015
|
-
const response = await this._syncEngine.mutate(
|
|
13275
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.UpdateFolderDocument, variables, MUTATION_CACHE_RULES["updateFolder"]);
|
|
13016
13276
|
const data = response.updateFolder;
|
|
13017
13277
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
13018
13278
|
}
|
|
13019
13279
|
};
|
|
13020
13280
|
var UpdateInsightMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
13021
13281
|
async fetch(variables, options) {
|
|
13022
|
-
const response = await this._syncEngine.mutate(
|
|
13282
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.UpdateInsightDocument, variables, MUTATION_CACHE_RULES["updateInsight"]);
|
|
13023
13283
|
const data = response.updateInsight;
|
|
13024
13284
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
13025
13285
|
}
|
|
13026
13286
|
};
|
|
13027
13287
|
var UpdateInsightInReportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
13028
13288
|
async fetch(variables, options) {
|
|
13029
|
-
const response = await this._syncEngine.mutate(
|
|
13289
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.UpdateInsightInReportDocument, variables, MUTATION_CACHE_RULES["updateInsightInReport"]);
|
|
13030
13290
|
const data = response.updateInsightInReport;
|
|
13031
13291
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
13032
13292
|
}
|
|
13033
13293
|
};
|
|
13034
13294
|
var UpdateInterpMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
13035
13295
|
async fetch(variables, options) {
|
|
13036
|
-
const response = await this._syncEngine.mutate(
|
|
13296
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.UpdateInterpDocument, variables, MUTATION_CACHE_RULES["updateInterp"]);
|
|
13037
13297
|
const data = response.updateInterp;
|
|
13038
13298
|
return new Interpretation(this._request, data, this._syncEngine, this._baseUrl);
|
|
13039
13299
|
}
|
|
13040
13300
|
};
|
|
13041
13301
|
var UpdatePulseTriggerMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
13042
13302
|
async fetch(variables, options) {
|
|
13043
|
-
const response = await this._syncEngine.mutate(
|
|
13303
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.UpdatePulseTriggerDocument, variables, MUTATION_CACHE_RULES["updatePulseTrigger"]);
|
|
13044
13304
|
const data = response.updatePulseTrigger;
|
|
13045
13305
|
return new PulseTriggerSettingModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13046
13306
|
}
|
|
13047
13307
|
};
|
|
13048
13308
|
var UpdateReportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
13049
13309
|
async fetch(variables, options) {
|
|
13050
|
-
const response = await this._syncEngine.mutate(
|
|
13310
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.UpdateReportDocument, variables, MUTATION_CACHE_RULES["updateReport"]);
|
|
13051
13311
|
const data = response.updateReport;
|
|
13052
13312
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
13053
13313
|
}
|
|
13054
13314
|
};
|
|
13055
13315
|
var UpdateTableMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
13056
13316
|
async fetch(variables, options) {
|
|
13057
|
-
const response = await this._syncEngine.mutate(
|
|
13317
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.UpdateTableDocument, variables, MUTATION_CACHE_RULES["updateTable"]);
|
|
13058
13318
|
const data = response.updateTable;
|
|
13059
13319
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
13060
13320
|
}
|
|
13061
13321
|
};
|
|
13062
13322
|
var UpdateUserSkillFileMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
13063
13323
|
async fetch(variables, options) {
|
|
13064
|
-
const response = await this._syncEngine.mutate(
|
|
13324
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.UpdateUserSkillFileDocument, variables, MUTATION_CACHE_RULES["updateUserSkillFile"]);
|
|
13065
13325
|
const data = response.updateUserSkillFile;
|
|
13066
13326
|
return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13067
13327
|
}
|
|
13068
13328
|
};
|
|
13069
13329
|
var UpdateUserSkillFolderMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
13070
13330
|
async fetch(variables, options) {
|
|
13071
|
-
const response = await this._syncEngine.mutate(
|
|
13331
|
+
const response = await this._syncEngine.mutate(chunkL7HABILC_cjs.UpdateUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["updateUserSkillFolder"]);
|
|
13072
13332
|
const data = response.updateUserSkillFolder;
|
|
13073
13333
|
return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13074
13334
|
}
|
|
@@ -13082,7 +13342,7 @@ var AgentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13082
13342
|
}
|
|
13083
13343
|
async fetch(options) {
|
|
13084
13344
|
const variables = this._variables;
|
|
13085
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13345
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.AgentDocument, "agent", this._includes, variables);
|
|
13086
13346
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "agent");
|
|
13087
13347
|
const data = response.agent;
|
|
13088
13348
|
const instance = new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -13094,7 +13354,7 @@ var AgentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13094
13354
|
watch(options) {
|
|
13095
13355
|
const variables = this._variables;
|
|
13096
13356
|
const includes = this._includes;
|
|
13097
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13357
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.AgentDocument, "agent", includes, variables);
|
|
13098
13358
|
const raw = this._syncEngine.watch(
|
|
13099
13359
|
queryDoc,
|
|
13100
13360
|
mergedVars,
|
|
@@ -13124,7 +13384,7 @@ var AgentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13124
13384
|
}
|
|
13125
13385
|
/** Include chats in this query (Smart Fetch — single HTTP request). */
|
|
13126
13386
|
chats(variables, builder) {
|
|
13127
|
-
const info = extractIncludeInfo(
|
|
13387
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
13128
13388
|
let children;
|
|
13129
13389
|
if (builder) {
|
|
13130
13390
|
const sub = new ChatSubBuilder();
|
|
@@ -13133,7 +13393,7 @@ var AgentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13133
13393
|
}
|
|
13134
13394
|
this._includes.push({
|
|
13135
13395
|
fieldName: "chats",
|
|
13136
|
-
fragmentDoc:
|
|
13396
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatConnectionFragmentDoc,
|
|
13137
13397
|
variables,
|
|
13138
13398
|
isConnection: true,
|
|
13139
13399
|
isList: false,
|
|
@@ -13158,18 +13418,18 @@ var Agent_ChatsQuery = class _Agent_ChatsQuery extends chunk4QKWHQT2_cjs.Request
|
|
|
13158
13418
|
}
|
|
13159
13419
|
async fetch(options) {
|
|
13160
13420
|
const variables = this._variables;
|
|
13161
|
-
const response = await this._syncEngine.query(
|
|
13421
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Agent_ChatsDocument, variables, "agent");
|
|
13162
13422
|
const data = response.agent?.chats;
|
|
13163
13423
|
return new ChatConnection(this._request, (conn, opts) => new _Agent_ChatsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
13164
13424
|
}
|
|
13165
13425
|
watch(options) {
|
|
13166
13426
|
const variables = this._variables;
|
|
13167
13427
|
const raw = this._syncEngine.watch(
|
|
13168
|
-
|
|
13428
|
+
chunkL7HABILC_cjs.Agent_ChatsDocument,
|
|
13169
13429
|
variables,
|
|
13170
13430
|
"agent",
|
|
13171
13431
|
async (db) => {
|
|
13172
|
-
const qr = await db._queryResults.get(buildQueryKey("agent", variables,
|
|
13432
|
+
const qr = await db._queryResults.get(buildQueryKey("agent", variables, chunkL7HABILC_cjs.Agent_ChatsDocument));
|
|
13173
13433
|
const nodes = qr ? await db.table("chats").bulkGet(qr.entityIds) : [];
|
|
13174
13434
|
return { agent: { chats: { __typename: "ChatConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
13175
13435
|
}
|
|
@@ -13189,7 +13449,7 @@ var AgentsQuery = class _AgentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13189
13449
|
}
|
|
13190
13450
|
async fetch(options) {
|
|
13191
13451
|
const variables = this._variables;
|
|
13192
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13452
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.AgentsDocument, "agents", this._includes, variables, true);
|
|
13193
13453
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "agents");
|
|
13194
13454
|
const data = response.agents;
|
|
13195
13455
|
const connection = new AgentConnection(this._request, (conn, opts) => new _AgentsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -13206,7 +13466,7 @@ var AgentsQuery = class _AgentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13206
13466
|
const subscriptionId = crypto.randomUUID();
|
|
13207
13467
|
const includes = this._includes;
|
|
13208
13468
|
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) }] : []);
|
|
13209
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13469
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.AgentsDocument, "agents", includes, variables, true);
|
|
13210
13470
|
const raw = this._syncEngine.watch(
|
|
13211
13471
|
queryDoc,
|
|
13212
13472
|
mergedVars,
|
|
@@ -13241,7 +13501,7 @@ var AgentsQuery = class _AgentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13241
13501
|
}
|
|
13242
13502
|
/** Include chats in this query (Smart Fetch — single HTTP request). */
|
|
13243
13503
|
chats(variables, builder) {
|
|
13244
|
-
const info = extractIncludeInfo(
|
|
13504
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
13245
13505
|
let children;
|
|
13246
13506
|
if (builder) {
|
|
13247
13507
|
const sub = new ChatSubBuilder();
|
|
@@ -13250,7 +13510,7 @@ var AgentsQuery = class _AgentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13250
13510
|
}
|
|
13251
13511
|
this._includes.push({
|
|
13252
13512
|
fieldName: "chats",
|
|
13253
|
-
fragmentDoc:
|
|
13513
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatConnectionFragmentDoc,
|
|
13254
13514
|
variables,
|
|
13255
13515
|
isConnection: true,
|
|
13256
13516
|
isList: false,
|
|
@@ -13276,7 +13536,7 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13276
13536
|
}
|
|
13277
13537
|
async fetch(options) {
|
|
13278
13538
|
const variables = this._variables;
|
|
13279
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13539
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ArtifactDocument, "artifact", this._includes, variables);
|
|
13280
13540
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "artifact");
|
|
13281
13541
|
const data = response.artifact;
|
|
13282
13542
|
const instance = new Artifact(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -13288,7 +13548,7 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13288
13548
|
watch(options) {
|
|
13289
13549
|
const variables = this._variables;
|
|
13290
13550
|
const includes = this._includes;
|
|
13291
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13551
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ArtifactDocument, "artifact", includes, variables);
|
|
13292
13552
|
const raw = this._syncEngine.watch(
|
|
13293
13553
|
queryDoc,
|
|
13294
13554
|
mergedVars,
|
|
@@ -13318,7 +13578,7 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13318
13578
|
}
|
|
13319
13579
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
13320
13580
|
chat(variables, builder) {
|
|
13321
|
-
const info = extractIncludeInfo(
|
|
13581
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
13322
13582
|
let children;
|
|
13323
13583
|
if (builder) {
|
|
13324
13584
|
const sub = new ChatSubBuilder();
|
|
@@ -13327,7 +13587,7 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13327
13587
|
}
|
|
13328
13588
|
this._includes.push({
|
|
13329
13589
|
fieldName: "chat",
|
|
13330
|
-
fragmentDoc:
|
|
13590
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatFragmentDoc,
|
|
13331
13591
|
variables,
|
|
13332
13592
|
isConnection: false,
|
|
13333
13593
|
isList: false,
|
|
@@ -13344,10 +13604,10 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13344
13604
|
}
|
|
13345
13605
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
13346
13606
|
file(variables) {
|
|
13347
|
-
const info = extractIncludeInfo(
|
|
13607
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
13348
13608
|
this._includes.push({
|
|
13349
13609
|
fieldName: "file",
|
|
13350
|
-
fragmentDoc:
|
|
13610
|
+
fragmentDoc: chunkL7HABILC_cjs.FileFragmentDoc,
|
|
13351
13611
|
variables,
|
|
13352
13612
|
isConnection: false,
|
|
13353
13613
|
isList: false,
|
|
@@ -13363,7 +13623,7 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13363
13623
|
}
|
|
13364
13624
|
/** Include message in this query (Smart Fetch — single HTTP request). */
|
|
13365
13625
|
message(variables, builder) {
|
|
13366
|
-
const info = extractIncludeInfo(
|
|
13626
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
13367
13627
|
let children;
|
|
13368
13628
|
if (builder) {
|
|
13369
13629
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -13372,7 +13632,7 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13372
13632
|
}
|
|
13373
13633
|
this._includes.push({
|
|
13374
13634
|
fieldName: "message",
|
|
13375
|
-
fragmentDoc:
|
|
13635
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatMessageFragmentDoc,
|
|
13376
13636
|
variables,
|
|
13377
13637
|
isConnection: false,
|
|
13378
13638
|
isList: false,
|
|
@@ -13396,14 +13656,14 @@ var Artifact_ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13396
13656
|
}
|
|
13397
13657
|
async fetch(options) {
|
|
13398
13658
|
const variables = this._variables;
|
|
13399
|
-
const response = await this._syncEngine.query(
|
|
13659
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Artifact_ChatDocument, variables, "artifact");
|
|
13400
13660
|
const data = response.artifact?.chat;
|
|
13401
13661
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13402
13662
|
}
|
|
13403
13663
|
watch(options) {
|
|
13404
13664
|
const variables = this._variables;
|
|
13405
13665
|
const raw = this._syncEngine.watch(
|
|
13406
|
-
|
|
13666
|
+
chunkL7HABILC_cjs.Artifact_ChatDocument,
|
|
13407
13667
|
variables,
|
|
13408
13668
|
"artifact",
|
|
13409
13669
|
async (db) => {
|
|
@@ -13426,14 +13686,14 @@ var Artifact_Chat_InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13426
13686
|
}
|
|
13427
13687
|
async fetch(options) {
|
|
13428
13688
|
const variables = this._variables;
|
|
13429
|
-
const response = await this._syncEngine.query(
|
|
13689
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Artifact_Chat_InsightDocument, variables, "artifact");
|
|
13430
13690
|
const data = response.artifact?.chat?.insight;
|
|
13431
13691
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13432
13692
|
}
|
|
13433
13693
|
watch(options) {
|
|
13434
13694
|
const variables = this._variables;
|
|
13435
13695
|
const raw = this._syncEngine.watch(
|
|
13436
|
-
|
|
13696
|
+
chunkL7HABILC_cjs.Artifact_Chat_InsightDocument,
|
|
13437
13697
|
variables,
|
|
13438
13698
|
"artifact",
|
|
13439
13699
|
async (db) => {
|
|
@@ -13456,14 +13716,14 @@ var Artifact_FileQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13456
13716
|
}
|
|
13457
13717
|
async fetch(options) {
|
|
13458
13718
|
const variables = this._variables;
|
|
13459
|
-
const response = await this._syncEngine.query(
|
|
13719
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Artifact_FileDocument, variables, "artifact");
|
|
13460
13720
|
const data = response.artifact?.file;
|
|
13461
13721
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13462
13722
|
}
|
|
13463
13723
|
watch(options) {
|
|
13464
13724
|
const variables = this._variables;
|
|
13465
13725
|
const raw = this._syncEngine.watch(
|
|
13466
|
-
|
|
13726
|
+
chunkL7HABILC_cjs.Artifact_FileDocument,
|
|
13467
13727
|
variables,
|
|
13468
13728
|
"artifact",
|
|
13469
13729
|
async (db) => {
|
|
@@ -13486,14 +13746,14 @@ var Artifact_MessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13486
13746
|
}
|
|
13487
13747
|
async fetch(options) {
|
|
13488
13748
|
const variables = this._variables;
|
|
13489
|
-
const response = await this._syncEngine.query(
|
|
13749
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Artifact_MessageDocument, variables, "artifact");
|
|
13490
13750
|
const data = response.artifact?.message;
|
|
13491
13751
|
return data ? new ChatMessage(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13492
13752
|
}
|
|
13493
13753
|
watch(options) {
|
|
13494
13754
|
const variables = this._variables;
|
|
13495
13755
|
const raw = this._syncEngine.watch(
|
|
13496
|
-
|
|
13756
|
+
chunkL7HABILC_cjs.Artifact_MessageDocument,
|
|
13497
13757
|
variables,
|
|
13498
13758
|
"artifact",
|
|
13499
13759
|
async (db) => {
|
|
@@ -13516,14 +13776,14 @@ var Artifact_Message_ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13516
13776
|
}
|
|
13517
13777
|
async fetch(options) {
|
|
13518
13778
|
const variables = this._variables;
|
|
13519
|
-
const response = await this._syncEngine.query(
|
|
13779
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Artifact_Message_ChatDocument, variables, "artifact");
|
|
13520
13780
|
const data = response.artifact?.message?.chat;
|
|
13521
13781
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13522
13782
|
}
|
|
13523
13783
|
watch(options) {
|
|
13524
13784
|
const variables = this._variables;
|
|
13525
13785
|
const raw = this._syncEngine.watch(
|
|
13526
|
-
|
|
13786
|
+
chunkL7HABILC_cjs.Artifact_Message_ChatDocument,
|
|
13527
13787
|
variables,
|
|
13528
13788
|
"artifact",
|
|
13529
13789
|
async (db) => {
|
|
@@ -13545,7 +13805,7 @@ var Artifact_Message_ContentsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13545
13805
|
this._variables = variables;
|
|
13546
13806
|
}
|
|
13547
13807
|
async fetch(options) {
|
|
13548
|
-
const response = await this._syncEngine.query(
|
|
13808
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Artifact_Message_ContentsDocument, this._variables, "artifact");
|
|
13549
13809
|
const data = response.artifact?.message?.contents;
|
|
13550
13810
|
if (!Array.isArray(data)) return [];
|
|
13551
13811
|
return data.map((item) => new ContentBlock(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -13559,14 +13819,14 @@ var Artifact_Message_FeedbackQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13559
13819
|
}
|
|
13560
13820
|
async fetch(options) {
|
|
13561
13821
|
const variables = this._variables;
|
|
13562
|
-
const response = await this._syncEngine.query(
|
|
13822
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Artifact_Message_FeedbackDocument, variables, "artifact");
|
|
13563
13823
|
const data = response.artifact?.message?.feedback;
|
|
13564
13824
|
return data ? new Feedback(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13565
13825
|
}
|
|
13566
13826
|
watch(options) {
|
|
13567
13827
|
const variables = this._variables;
|
|
13568
13828
|
const raw = this._syncEngine.watch(
|
|
13569
|
-
|
|
13829
|
+
chunkL7HABILC_cjs.Artifact_Message_FeedbackDocument,
|
|
13570
13830
|
variables,
|
|
13571
13831
|
"artifact",
|
|
13572
13832
|
async (db) => {
|
|
@@ -13590,7 +13850,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13590
13850
|
}
|
|
13591
13851
|
async fetch(options) {
|
|
13592
13852
|
const variables = this._variables;
|
|
13593
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13853
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ArtifactsDocument, "artifacts", this._includes, variables, true);
|
|
13594
13854
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "artifacts");
|
|
13595
13855
|
const data = response.artifacts;
|
|
13596
13856
|
const connection = new ArtifactConnection(this._request, (conn, opts) => new _ArtifactsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -13607,7 +13867,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13607
13867
|
const subscriptionId = crypto.randomUUID();
|
|
13608
13868
|
const includes = this._includes;
|
|
13609
13869
|
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) }] : []);
|
|
13610
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13870
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ArtifactsDocument, "artifacts", includes, variables, true);
|
|
13611
13871
|
const raw = this._syncEngine.watch(
|
|
13612
13872
|
queryDoc,
|
|
13613
13873
|
mergedVars,
|
|
@@ -13642,7 +13902,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13642
13902
|
}
|
|
13643
13903
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
13644
13904
|
chat(variables, builder) {
|
|
13645
|
-
const info = extractIncludeInfo(
|
|
13905
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
13646
13906
|
let children;
|
|
13647
13907
|
if (builder) {
|
|
13648
13908
|
const sub = new ChatSubBuilder();
|
|
@@ -13651,7 +13911,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13651
13911
|
}
|
|
13652
13912
|
this._includes.push({
|
|
13653
13913
|
fieldName: "chat",
|
|
13654
|
-
fragmentDoc:
|
|
13914
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatFragmentDoc,
|
|
13655
13915
|
variables,
|
|
13656
13916
|
isConnection: false,
|
|
13657
13917
|
isList: false,
|
|
@@ -13668,10 +13928,10 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13668
13928
|
}
|
|
13669
13929
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
13670
13930
|
file(variables) {
|
|
13671
|
-
const info = extractIncludeInfo(
|
|
13931
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
13672
13932
|
this._includes.push({
|
|
13673
13933
|
fieldName: "file",
|
|
13674
|
-
fragmentDoc:
|
|
13934
|
+
fragmentDoc: chunkL7HABILC_cjs.FileFragmentDoc,
|
|
13675
13935
|
variables,
|
|
13676
13936
|
isConnection: false,
|
|
13677
13937
|
isList: false,
|
|
@@ -13687,7 +13947,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13687
13947
|
}
|
|
13688
13948
|
/** Include message in this query (Smart Fetch — single HTTP request). */
|
|
13689
13949
|
message(variables, builder) {
|
|
13690
|
-
const info = extractIncludeInfo(
|
|
13950
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
13691
13951
|
let children;
|
|
13692
13952
|
if (builder) {
|
|
13693
13953
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -13696,7 +13956,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13696
13956
|
}
|
|
13697
13957
|
this._includes.push({
|
|
13698
13958
|
fieldName: "message",
|
|
13699
|
-
fragmentDoc:
|
|
13959
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatMessageFragmentDoc,
|
|
13700
13960
|
variables,
|
|
13701
13961
|
isConnection: false,
|
|
13702
13962
|
isList: false,
|
|
@@ -13721,7 +13981,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13721
13981
|
}
|
|
13722
13982
|
async fetch(options) {
|
|
13723
13983
|
const variables = this._variables;
|
|
13724
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13984
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ChatDocument, "chat", this._includes, variables);
|
|
13725
13985
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chat");
|
|
13726
13986
|
const data = response.chat;
|
|
13727
13987
|
const instance = new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -13733,7 +13993,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13733
13993
|
watch(options) {
|
|
13734
13994
|
const variables = this._variables;
|
|
13735
13995
|
const includes = this._includes;
|
|
13736
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13996
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ChatDocument, "chat", includes, variables);
|
|
13737
13997
|
const raw = this._syncEngine.watch(
|
|
13738
13998
|
queryDoc,
|
|
13739
13999
|
mergedVars,
|
|
@@ -13763,7 +14023,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13763
14023
|
}
|
|
13764
14024
|
/** Include agents in this query (Smart Fetch — single HTTP request). */
|
|
13765
14025
|
agents(variables, builder) {
|
|
13766
|
-
const info = extractIncludeInfo(
|
|
14026
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
13767
14027
|
let children;
|
|
13768
14028
|
if (builder) {
|
|
13769
14029
|
const sub = new AgentSubBuilder();
|
|
@@ -13772,7 +14032,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13772
14032
|
}
|
|
13773
14033
|
this._includes.push({
|
|
13774
14034
|
fieldName: "agents",
|
|
13775
|
-
fragmentDoc:
|
|
14035
|
+
fragmentDoc: chunkL7HABILC_cjs.AgentConnectionFragmentDoc,
|
|
13776
14036
|
variables,
|
|
13777
14037
|
isConnection: true,
|
|
13778
14038
|
isList: false,
|
|
@@ -13790,7 +14050,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13790
14050
|
}
|
|
13791
14051
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
13792
14052
|
artifacts(variables, builder) {
|
|
13793
|
-
const info = extractIncludeInfo(
|
|
14053
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
13794
14054
|
let children;
|
|
13795
14055
|
if (builder) {
|
|
13796
14056
|
const sub = new ArtifactSubBuilder();
|
|
@@ -13799,7 +14059,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13799
14059
|
}
|
|
13800
14060
|
this._includes.push({
|
|
13801
14061
|
fieldName: "artifacts",
|
|
13802
|
-
fragmentDoc:
|
|
14062
|
+
fragmentDoc: chunkL7HABILC_cjs.ArtifactConnectionFragmentDoc,
|
|
13803
14063
|
variables,
|
|
13804
14064
|
isConnection: true,
|
|
13805
14065
|
isList: false,
|
|
@@ -13817,7 +14077,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13817
14077
|
}
|
|
13818
14078
|
/** Include insight in this query (Smart Fetch — single HTTP request). */
|
|
13819
14079
|
insight(variables, builder) {
|
|
13820
|
-
const info = extractIncludeInfo(
|
|
14080
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
13821
14081
|
let children;
|
|
13822
14082
|
if (builder) {
|
|
13823
14083
|
const sub = new InsightSubBuilder();
|
|
@@ -13826,7 +14086,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13826
14086
|
}
|
|
13827
14087
|
this._includes.push({
|
|
13828
14088
|
fieldName: "insight",
|
|
13829
|
-
fragmentDoc:
|
|
14089
|
+
fragmentDoc: chunkL7HABILC_cjs.InsightFragmentDoc,
|
|
13830
14090
|
variables,
|
|
13831
14091
|
isConnection: false,
|
|
13832
14092
|
isList: false,
|
|
@@ -13843,7 +14103,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13843
14103
|
}
|
|
13844
14104
|
/** Include messages in this query (Smart Fetch — single HTTP request). */
|
|
13845
14105
|
messages(variables, builder) {
|
|
13846
|
-
const info = extractIncludeInfo(
|
|
14106
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
13847
14107
|
let children;
|
|
13848
14108
|
if (builder) {
|
|
13849
14109
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -13852,7 +14112,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13852
14112
|
}
|
|
13853
14113
|
this._includes.push({
|
|
13854
14114
|
fieldName: "messages",
|
|
13855
|
-
fragmentDoc:
|
|
14115
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatMessageConnectionFragmentDoc,
|
|
13856
14116
|
variables,
|
|
13857
14117
|
isConnection: true,
|
|
13858
14118
|
isList: false,
|
|
@@ -13877,18 +14137,18 @@ var Chat_AgentsQuery = class _Chat_AgentsQuery extends chunk4QKWHQT2_cjs.Request
|
|
|
13877
14137
|
}
|
|
13878
14138
|
async fetch(options) {
|
|
13879
14139
|
const variables = this._variables;
|
|
13880
|
-
const response = await this._syncEngine.query(
|
|
14140
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Chat_AgentsDocument, variables, "chat");
|
|
13881
14141
|
const data = response.chat?.agents;
|
|
13882
14142
|
return new AgentConnection(this._request, (conn, opts) => new _Chat_AgentsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
13883
14143
|
}
|
|
13884
14144
|
watch(options) {
|
|
13885
14145
|
const variables = this._variables;
|
|
13886
14146
|
const raw = this._syncEngine.watch(
|
|
13887
|
-
|
|
14147
|
+
chunkL7HABILC_cjs.Chat_AgentsDocument,
|
|
13888
14148
|
variables,
|
|
13889
14149
|
"chat",
|
|
13890
14150
|
async (db) => {
|
|
13891
|
-
const qr = await db._queryResults.get(buildQueryKey("chat", variables,
|
|
14151
|
+
const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunkL7HABILC_cjs.Chat_AgentsDocument));
|
|
13892
14152
|
const nodes = qr ? await db.table("agents").bulkGet(qr.entityIds) : [];
|
|
13893
14153
|
return { chat: { agents: { __typename: "AgentConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
13894
14154
|
}
|
|
@@ -13907,18 +14167,18 @@ var Chat_ArtifactsQuery = class _Chat_ArtifactsQuery extends chunk4QKWHQT2_cjs.R
|
|
|
13907
14167
|
}
|
|
13908
14168
|
async fetch(options) {
|
|
13909
14169
|
const variables = this._variables;
|
|
13910
|
-
const response = await this._syncEngine.query(
|
|
14170
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Chat_ArtifactsDocument, variables, "chat");
|
|
13911
14171
|
const data = response.chat?.artifacts;
|
|
13912
14172
|
return new ArtifactConnection(this._request, (conn, opts) => new _Chat_ArtifactsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
13913
14173
|
}
|
|
13914
14174
|
watch(options) {
|
|
13915
14175
|
const variables = this._variables;
|
|
13916
14176
|
const raw = this._syncEngine.watch(
|
|
13917
|
-
|
|
14177
|
+
chunkL7HABILC_cjs.Chat_ArtifactsDocument,
|
|
13918
14178
|
variables,
|
|
13919
14179
|
"chat",
|
|
13920
14180
|
async (db) => {
|
|
13921
|
-
const qr = await db._queryResults.get(buildQueryKey("chat", variables,
|
|
14181
|
+
const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunkL7HABILC_cjs.Chat_ArtifactsDocument));
|
|
13922
14182
|
const nodes = qr ? await db.table("artifacts").bulkGet(qr.entityIds) : [];
|
|
13923
14183
|
return { chat: { artifacts: { __typename: "ArtifactConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
13924
14184
|
}
|
|
@@ -13937,14 +14197,14 @@ var Chat_InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13937
14197
|
}
|
|
13938
14198
|
async fetch(options) {
|
|
13939
14199
|
const variables = this._variables;
|
|
13940
|
-
const response = await this._syncEngine.query(
|
|
14200
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Chat_InsightDocument, variables, "chat");
|
|
13941
14201
|
const data = response.chat?.insight;
|
|
13942
14202
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13943
14203
|
}
|
|
13944
14204
|
watch(options) {
|
|
13945
14205
|
const variables = this._variables;
|
|
13946
14206
|
const raw = this._syncEngine.watch(
|
|
13947
|
-
|
|
14207
|
+
chunkL7HABILC_cjs.Chat_InsightDocument,
|
|
13948
14208
|
variables,
|
|
13949
14209
|
"chat",
|
|
13950
14210
|
async (db) => {
|
|
@@ -13966,7 +14226,7 @@ var Chat_Insight_ReportMembersQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13966
14226
|
this._variables = variables;
|
|
13967
14227
|
}
|
|
13968
14228
|
async fetch(options) {
|
|
13969
|
-
const response = await this._syncEngine.query(
|
|
14229
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Chat_Insight_ReportMembersDocument, this._variables, "chat");
|
|
13970
14230
|
const data = response.chat?.insight?.reportMembers;
|
|
13971
14231
|
if (!Array.isArray(data)) return [];
|
|
13972
14232
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -13980,18 +14240,18 @@ var Chat_MessagesQuery = class _Chat_MessagesQuery extends chunk4QKWHQT2_cjs.Req
|
|
|
13980
14240
|
}
|
|
13981
14241
|
async fetch(options) {
|
|
13982
14242
|
const variables = this._variables;
|
|
13983
|
-
const response = await this._syncEngine.query(
|
|
14243
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Chat_MessagesDocument, variables, "chat");
|
|
13984
14244
|
const data = response.chat?.messages;
|
|
13985
14245
|
return new ChatMessageConnection(this._request, (conn, opts) => new _Chat_MessagesQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
13986
14246
|
}
|
|
13987
14247
|
watch(options) {
|
|
13988
14248
|
const variables = this._variables;
|
|
13989
14249
|
const raw = this._syncEngine.watch(
|
|
13990
|
-
|
|
14250
|
+
chunkL7HABILC_cjs.Chat_MessagesDocument,
|
|
13991
14251
|
variables,
|
|
13992
14252
|
"chat",
|
|
13993
14253
|
async (db) => {
|
|
13994
|
-
const qr = await db._queryResults.get(buildQueryKey("chat", variables,
|
|
14254
|
+
const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunkL7HABILC_cjs.Chat_MessagesDocument));
|
|
13995
14255
|
const nodes = qr ? await db.table("chatMessages").bulkGet(qr.entityIds) : [];
|
|
13996
14256
|
return { chat: { messages: { __typename: "ChatMessageConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
13997
14257
|
}
|
|
@@ -14011,7 +14271,7 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14011
14271
|
}
|
|
14012
14272
|
async fetch(options) {
|
|
14013
14273
|
const variables = this._variables;
|
|
14014
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14274
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ChatMessageDocument, "chatMessage", this._includes, variables);
|
|
14015
14275
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessage");
|
|
14016
14276
|
const data = response.chatMessage;
|
|
14017
14277
|
const instance = new ChatMessage(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14023,7 +14283,7 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14023
14283
|
watch(options) {
|
|
14024
14284
|
const variables = this._variables;
|
|
14025
14285
|
const includes = this._includes;
|
|
14026
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14286
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ChatMessageDocument, "chatMessage", includes, variables);
|
|
14027
14287
|
const raw = this._syncEngine.watch(
|
|
14028
14288
|
queryDoc,
|
|
14029
14289
|
mergedVars,
|
|
@@ -14053,7 +14313,7 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14053
14313
|
}
|
|
14054
14314
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
14055
14315
|
artifacts(variables, builder) {
|
|
14056
|
-
const info = extractIncludeInfo(
|
|
14316
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
14057
14317
|
let children;
|
|
14058
14318
|
if (builder) {
|
|
14059
14319
|
const sub = new ArtifactSubBuilder();
|
|
@@ -14062,7 +14322,7 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14062
14322
|
}
|
|
14063
14323
|
this._includes.push({
|
|
14064
14324
|
fieldName: "artifacts",
|
|
14065
|
-
fragmentDoc:
|
|
14325
|
+
fragmentDoc: chunkL7HABILC_cjs.ArtifactConnectionFragmentDoc,
|
|
14066
14326
|
variables,
|
|
14067
14327
|
isConnection: true,
|
|
14068
14328
|
isList: false,
|
|
@@ -14080,7 +14340,7 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14080
14340
|
}
|
|
14081
14341
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
14082
14342
|
chat(variables, builder) {
|
|
14083
|
-
const info = extractIncludeInfo(
|
|
14343
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
14084
14344
|
let children;
|
|
14085
14345
|
if (builder) {
|
|
14086
14346
|
const sub = new ChatSubBuilder();
|
|
@@ -14089,7 +14349,7 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14089
14349
|
}
|
|
14090
14350
|
this._includes.push({
|
|
14091
14351
|
fieldName: "chat",
|
|
14092
|
-
fragmentDoc:
|
|
14352
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatFragmentDoc,
|
|
14093
14353
|
variables,
|
|
14094
14354
|
isConnection: false,
|
|
14095
14355
|
isList: false,
|
|
@@ -14106,10 +14366,10 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14106
14366
|
}
|
|
14107
14367
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
14108
14368
|
contents(variables) {
|
|
14109
|
-
const info = extractIncludeInfo(
|
|
14369
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
14110
14370
|
this._includes.push({
|
|
14111
14371
|
fieldName: "contents",
|
|
14112
|
-
fragmentDoc:
|
|
14372
|
+
fragmentDoc: chunkL7HABILC_cjs.ContentBlockFragmentDoc,
|
|
14113
14373
|
variables,
|
|
14114
14374
|
isConnection: false,
|
|
14115
14375
|
isList: true,
|
|
@@ -14125,10 +14385,10 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14125
14385
|
}
|
|
14126
14386
|
/** Include feedback in this query (Smart Fetch — single HTTP request). */
|
|
14127
14387
|
feedback(variables) {
|
|
14128
|
-
const info = extractIncludeInfo(
|
|
14388
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
14129
14389
|
this._includes.push({
|
|
14130
14390
|
fieldName: "feedback",
|
|
14131
|
-
fragmentDoc:
|
|
14391
|
+
fragmentDoc: chunkL7HABILC_cjs.FeedbackFragmentDoc,
|
|
14132
14392
|
variables,
|
|
14133
14393
|
isConnection: false,
|
|
14134
14394
|
isList: false,
|
|
@@ -14151,18 +14411,18 @@ var ChatMessage_ArtifactsQuery = class _ChatMessage_ArtifactsQuery extends chunk
|
|
|
14151
14411
|
}
|
|
14152
14412
|
async fetch(options) {
|
|
14153
14413
|
const variables = this._variables;
|
|
14154
|
-
const response = await this._syncEngine.query(
|
|
14414
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.ChatMessage_ArtifactsDocument, variables, "chatMessage");
|
|
14155
14415
|
const data = response.chatMessage?.artifacts;
|
|
14156
14416
|
return new ArtifactConnection(this._request, (conn, opts) => new _ChatMessage_ArtifactsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
14157
14417
|
}
|
|
14158
14418
|
watch(options) {
|
|
14159
14419
|
const variables = this._variables;
|
|
14160
14420
|
const raw = this._syncEngine.watch(
|
|
14161
|
-
|
|
14421
|
+
chunkL7HABILC_cjs.ChatMessage_ArtifactsDocument,
|
|
14162
14422
|
variables,
|
|
14163
14423
|
"chatMessage",
|
|
14164
14424
|
async (db) => {
|
|
14165
|
-
const qr = await db._queryResults.get(buildQueryKey("chatMessage", variables,
|
|
14425
|
+
const qr = await db._queryResults.get(buildQueryKey("chatMessage", variables, chunkL7HABILC_cjs.ChatMessage_ArtifactsDocument));
|
|
14166
14426
|
const nodes = qr ? await db.table("artifacts").bulkGet(qr.entityIds) : [];
|
|
14167
14427
|
return { chatMessage: { artifacts: { __typename: "ArtifactConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
14168
14428
|
}
|
|
@@ -14181,14 +14441,14 @@ var ChatMessage_ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14181
14441
|
}
|
|
14182
14442
|
async fetch(options) {
|
|
14183
14443
|
const variables = this._variables;
|
|
14184
|
-
const response = await this._syncEngine.query(
|
|
14444
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.ChatMessage_ChatDocument, variables, "chatMessage");
|
|
14185
14445
|
const data = response.chatMessage?.chat;
|
|
14186
14446
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14187
14447
|
}
|
|
14188
14448
|
watch(options) {
|
|
14189
14449
|
const variables = this._variables;
|
|
14190
14450
|
const raw = this._syncEngine.watch(
|
|
14191
|
-
|
|
14451
|
+
chunkL7HABILC_cjs.ChatMessage_ChatDocument,
|
|
14192
14452
|
variables,
|
|
14193
14453
|
"chatMessage",
|
|
14194
14454
|
async (db) => {
|
|
@@ -14211,14 +14471,14 @@ var ChatMessage_Chat_InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14211
14471
|
}
|
|
14212
14472
|
async fetch(options) {
|
|
14213
14473
|
const variables = this._variables;
|
|
14214
|
-
const response = await this._syncEngine.query(
|
|
14474
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.ChatMessage_Chat_InsightDocument, variables, "chatMessage");
|
|
14215
14475
|
const data = response.chatMessage?.chat?.insight;
|
|
14216
14476
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14217
14477
|
}
|
|
14218
14478
|
watch(options) {
|
|
14219
14479
|
const variables = this._variables;
|
|
14220
14480
|
const raw = this._syncEngine.watch(
|
|
14221
|
-
|
|
14481
|
+
chunkL7HABILC_cjs.ChatMessage_Chat_InsightDocument,
|
|
14222
14482
|
variables,
|
|
14223
14483
|
"chatMessage",
|
|
14224
14484
|
async (db) => {
|
|
@@ -14240,7 +14500,7 @@ var ChatMessage_ContentsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14240
14500
|
this._variables = variables;
|
|
14241
14501
|
}
|
|
14242
14502
|
async fetch(options) {
|
|
14243
|
-
const response = await this._syncEngine.query(
|
|
14503
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.ChatMessage_ContentsDocument, this._variables, "chatMessage");
|
|
14244
14504
|
const data = response.chatMessage?.contents;
|
|
14245
14505
|
if (!Array.isArray(data)) return [];
|
|
14246
14506
|
return data.map((item) => new ContentBlock(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -14254,14 +14514,14 @@ var ChatMessage_FeedbackQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14254
14514
|
}
|
|
14255
14515
|
async fetch(options) {
|
|
14256
14516
|
const variables = this._variables;
|
|
14257
|
-
const response = await this._syncEngine.query(
|
|
14517
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.ChatMessage_FeedbackDocument, variables, "chatMessage");
|
|
14258
14518
|
const data = response.chatMessage?.feedback;
|
|
14259
14519
|
return data ? new Feedback(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14260
14520
|
}
|
|
14261
14521
|
watch(options) {
|
|
14262
14522
|
const variables = this._variables;
|
|
14263
14523
|
const raw = this._syncEngine.watch(
|
|
14264
|
-
|
|
14524
|
+
chunkL7HABILC_cjs.ChatMessage_FeedbackDocument,
|
|
14265
14525
|
variables,
|
|
14266
14526
|
"chatMessage",
|
|
14267
14527
|
async (db) => {
|
|
@@ -14285,7 +14545,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
14285
14545
|
}
|
|
14286
14546
|
async fetch(options) {
|
|
14287
14547
|
const variables = this._variables;
|
|
14288
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14548
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ChatMessagesDocument, "chatMessages", this._includes, variables, true);
|
|
14289
14549
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessages");
|
|
14290
14550
|
const data = response.chatMessages;
|
|
14291
14551
|
const connection = new ChatMessageConnection(this._request, (conn, opts) => new _ChatMessagesQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -14302,7 +14562,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
14302
14562
|
const subscriptionId = crypto.randomUUID();
|
|
14303
14563
|
const includes = this._includes;
|
|
14304
14564
|
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) }] : []);
|
|
14305
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14565
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ChatMessagesDocument, "chatMessages", includes, variables, true);
|
|
14306
14566
|
const raw = this._syncEngine.watch(
|
|
14307
14567
|
queryDoc,
|
|
14308
14568
|
mergedVars,
|
|
@@ -14337,7 +14597,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
14337
14597
|
}
|
|
14338
14598
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
14339
14599
|
artifacts(variables, builder) {
|
|
14340
|
-
const info = extractIncludeInfo(
|
|
14600
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
14341
14601
|
let children;
|
|
14342
14602
|
if (builder) {
|
|
14343
14603
|
const sub = new ArtifactSubBuilder();
|
|
@@ -14346,7 +14606,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
14346
14606
|
}
|
|
14347
14607
|
this._includes.push({
|
|
14348
14608
|
fieldName: "artifacts",
|
|
14349
|
-
fragmentDoc:
|
|
14609
|
+
fragmentDoc: chunkL7HABILC_cjs.ArtifactConnectionFragmentDoc,
|
|
14350
14610
|
variables,
|
|
14351
14611
|
isConnection: true,
|
|
14352
14612
|
isList: false,
|
|
@@ -14364,7 +14624,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
14364
14624
|
}
|
|
14365
14625
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
14366
14626
|
chat(variables, builder) {
|
|
14367
|
-
const info = extractIncludeInfo(
|
|
14627
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
14368
14628
|
let children;
|
|
14369
14629
|
if (builder) {
|
|
14370
14630
|
const sub = new ChatSubBuilder();
|
|
@@ -14373,7 +14633,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
14373
14633
|
}
|
|
14374
14634
|
this._includes.push({
|
|
14375
14635
|
fieldName: "chat",
|
|
14376
|
-
fragmentDoc:
|
|
14636
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatFragmentDoc,
|
|
14377
14637
|
variables,
|
|
14378
14638
|
isConnection: false,
|
|
14379
14639
|
isList: false,
|
|
@@ -14390,10 +14650,10 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
14390
14650
|
}
|
|
14391
14651
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
14392
14652
|
contents(variables) {
|
|
14393
|
-
const info = extractIncludeInfo(
|
|
14653
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
14394
14654
|
this._includes.push({
|
|
14395
14655
|
fieldName: "contents",
|
|
14396
|
-
fragmentDoc:
|
|
14656
|
+
fragmentDoc: chunkL7HABILC_cjs.ContentBlockFragmentDoc,
|
|
14397
14657
|
variables,
|
|
14398
14658
|
isConnection: false,
|
|
14399
14659
|
isList: true,
|
|
@@ -14409,10 +14669,10 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
14409
14669
|
}
|
|
14410
14670
|
/** Include feedback in this query (Smart Fetch — single HTTP request). */
|
|
14411
14671
|
feedback(variables) {
|
|
14412
|
-
const info = extractIncludeInfo(
|
|
14672
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
14413
14673
|
this._includes.push({
|
|
14414
14674
|
fieldName: "feedback",
|
|
14415
|
-
fragmentDoc:
|
|
14675
|
+
fragmentDoc: chunkL7HABILC_cjs.FeedbackFragmentDoc,
|
|
14416
14676
|
variables,
|
|
14417
14677
|
isConnection: false,
|
|
14418
14678
|
isList: false,
|
|
@@ -14436,7 +14696,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14436
14696
|
}
|
|
14437
14697
|
async fetch(options) {
|
|
14438
14698
|
const variables = this._variables;
|
|
14439
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14699
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ChatsDocument, "chats", this._includes, variables, true);
|
|
14440
14700
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chats");
|
|
14441
14701
|
const data = response.chats;
|
|
14442
14702
|
const connection = new ChatConnection(this._request, (conn, opts) => new _ChatsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -14453,7 +14713,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14453
14713
|
const subscriptionId = crypto.randomUUID();
|
|
14454
14714
|
const includes = this._includes;
|
|
14455
14715
|
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) }] : []);
|
|
14456
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14716
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ChatsDocument, "chats", includes, variables, true);
|
|
14457
14717
|
const raw = this._syncEngine.watch(
|
|
14458
14718
|
queryDoc,
|
|
14459
14719
|
mergedVars,
|
|
@@ -14488,7 +14748,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14488
14748
|
}
|
|
14489
14749
|
/** Include agents in this query (Smart Fetch — single HTTP request). */
|
|
14490
14750
|
agents(variables, builder) {
|
|
14491
|
-
const info = extractIncludeInfo(
|
|
14751
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
14492
14752
|
let children;
|
|
14493
14753
|
if (builder) {
|
|
14494
14754
|
const sub = new AgentSubBuilder();
|
|
@@ -14497,7 +14757,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14497
14757
|
}
|
|
14498
14758
|
this._includes.push({
|
|
14499
14759
|
fieldName: "agents",
|
|
14500
|
-
fragmentDoc:
|
|
14760
|
+
fragmentDoc: chunkL7HABILC_cjs.AgentConnectionFragmentDoc,
|
|
14501
14761
|
variables,
|
|
14502
14762
|
isConnection: true,
|
|
14503
14763
|
isList: false,
|
|
@@ -14515,7 +14775,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14515
14775
|
}
|
|
14516
14776
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
14517
14777
|
artifacts(variables, builder) {
|
|
14518
|
-
const info = extractIncludeInfo(
|
|
14778
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
14519
14779
|
let children;
|
|
14520
14780
|
if (builder) {
|
|
14521
14781
|
const sub = new ArtifactSubBuilder();
|
|
@@ -14524,7 +14784,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14524
14784
|
}
|
|
14525
14785
|
this._includes.push({
|
|
14526
14786
|
fieldName: "artifacts",
|
|
14527
|
-
fragmentDoc:
|
|
14787
|
+
fragmentDoc: chunkL7HABILC_cjs.ArtifactConnectionFragmentDoc,
|
|
14528
14788
|
variables,
|
|
14529
14789
|
isConnection: true,
|
|
14530
14790
|
isList: false,
|
|
@@ -14542,7 +14802,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14542
14802
|
}
|
|
14543
14803
|
/** Include insight in this query (Smart Fetch — single HTTP request). */
|
|
14544
14804
|
insight(variables, builder) {
|
|
14545
|
-
const info = extractIncludeInfo(
|
|
14805
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
14546
14806
|
let children;
|
|
14547
14807
|
if (builder) {
|
|
14548
14808
|
const sub = new InsightSubBuilder();
|
|
@@ -14551,7 +14811,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14551
14811
|
}
|
|
14552
14812
|
this._includes.push({
|
|
14553
14813
|
fieldName: "insight",
|
|
14554
|
-
fragmentDoc:
|
|
14814
|
+
fragmentDoc: chunkL7HABILC_cjs.InsightFragmentDoc,
|
|
14555
14815
|
variables,
|
|
14556
14816
|
isConnection: false,
|
|
14557
14817
|
isList: false,
|
|
@@ -14568,7 +14828,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14568
14828
|
}
|
|
14569
14829
|
/** Include messages in this query (Smart Fetch — single HTTP request). */
|
|
14570
14830
|
messages(variables, builder) {
|
|
14571
|
-
const info = extractIncludeInfo(
|
|
14831
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
14572
14832
|
let children;
|
|
14573
14833
|
if (builder) {
|
|
14574
14834
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -14577,7 +14837,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14577
14837
|
}
|
|
14578
14838
|
this._includes.push({
|
|
14579
14839
|
fieldName: "messages",
|
|
14580
|
-
fragmentDoc:
|
|
14840
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatMessageConnectionFragmentDoc,
|
|
14581
14841
|
variables,
|
|
14582
14842
|
isConnection: true,
|
|
14583
14843
|
isList: false,
|
|
@@ -14603,7 +14863,7 @@ var DatabaseQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14603
14863
|
}
|
|
14604
14864
|
async fetch(options) {
|
|
14605
14865
|
const variables = this._variables;
|
|
14606
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14866
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DatabaseDocument, "database", this._includes, variables);
|
|
14607
14867
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "database");
|
|
14608
14868
|
const data = response.database;
|
|
14609
14869
|
const instance = new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14615,7 +14875,7 @@ var DatabaseQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14615
14875
|
watch(options) {
|
|
14616
14876
|
const variables = this._variables;
|
|
14617
14877
|
const includes = this._includes;
|
|
14618
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14878
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DatabaseDocument, "database", includes, variables);
|
|
14619
14879
|
const raw = this._syncEngine.watch(
|
|
14620
14880
|
queryDoc,
|
|
14621
14881
|
mergedVars,
|
|
@@ -14645,10 +14905,10 @@ var DatabaseQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14645
14905
|
}
|
|
14646
14906
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
14647
14907
|
engine(variables) {
|
|
14648
|
-
const info = extractIncludeInfo(
|
|
14908
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
14649
14909
|
this._includes.push({
|
|
14650
14910
|
fieldName: "engine",
|
|
14651
|
-
fragmentDoc:
|
|
14911
|
+
fragmentDoc: chunkL7HABILC_cjs.DatabaseEngineFragmentDoc,
|
|
14652
14912
|
variables,
|
|
14653
14913
|
isConnection: false,
|
|
14654
14914
|
isList: false,
|
|
@@ -14664,7 +14924,7 @@ var DatabaseQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14664
14924
|
}
|
|
14665
14925
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
14666
14926
|
tables(variables, builder) {
|
|
14667
|
-
const info = extractIncludeInfo(
|
|
14927
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
14668
14928
|
let children;
|
|
14669
14929
|
if (builder) {
|
|
14670
14930
|
const sub = new TableSubBuilder();
|
|
@@ -14673,7 +14933,7 @@ var DatabaseQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14673
14933
|
}
|
|
14674
14934
|
this._includes.push({
|
|
14675
14935
|
fieldName: "tables",
|
|
14676
|
-
fragmentDoc:
|
|
14936
|
+
fragmentDoc: chunkL7HABILC_cjs.TableConnectionFragmentDoc,
|
|
14677
14937
|
variables,
|
|
14678
14938
|
isConnection: true,
|
|
14679
14939
|
isList: false,
|
|
@@ -14698,14 +14958,14 @@ var Database_EngineQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14698
14958
|
}
|
|
14699
14959
|
async fetch(options) {
|
|
14700
14960
|
const variables = this._variables;
|
|
14701
|
-
const response = await this._syncEngine.query(
|
|
14961
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Database_EngineDocument, variables, "database");
|
|
14702
14962
|
const data = response.database?.engine;
|
|
14703
14963
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14704
14964
|
}
|
|
14705
14965
|
watch(options) {
|
|
14706
14966
|
const variables = this._variables;
|
|
14707
14967
|
const raw = this._syncEngine.watch(
|
|
14708
|
-
|
|
14968
|
+
chunkL7HABILC_cjs.Database_EngineDocument,
|
|
14709
14969
|
variables,
|
|
14710
14970
|
"database",
|
|
14711
14971
|
async (db) => {
|
|
@@ -14728,14 +14988,14 @@ var Database_Engine_CatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14728
14988
|
}
|
|
14729
14989
|
async fetch(options) {
|
|
14730
14990
|
const variables = this._variables;
|
|
14731
|
-
const response = await this._syncEngine.query(
|
|
14991
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Database_Engine_CatalogDocument, variables, "database");
|
|
14732
14992
|
const data = response.database?.engine?.catalog;
|
|
14733
14993
|
return data ? new DatabaseCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14734
14994
|
}
|
|
14735
14995
|
watch(options) {
|
|
14736
14996
|
const variables = this._variables;
|
|
14737
14997
|
const raw = this._syncEngine.watch(
|
|
14738
|
-
|
|
14998
|
+
chunkL7HABILC_cjs.Database_Engine_CatalogDocument,
|
|
14739
14999
|
variables,
|
|
14740
15000
|
"database",
|
|
14741
15001
|
async (db) => {
|
|
@@ -14758,18 +15018,18 @@ var Database_TablesQuery = class _Database_TablesQuery extends chunk4QKWHQT2_cjs
|
|
|
14758
15018
|
}
|
|
14759
15019
|
async fetch(options) {
|
|
14760
15020
|
const variables = this._variables;
|
|
14761
|
-
const response = await this._syncEngine.query(
|
|
15021
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Database_TablesDocument, variables, "database");
|
|
14762
15022
|
const data = response.database?.tables;
|
|
14763
15023
|
return new TableConnection(this._request, (conn, opts) => new _Database_TablesQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
14764
15024
|
}
|
|
14765
15025
|
watch(options) {
|
|
14766
15026
|
const variables = this._variables;
|
|
14767
15027
|
const raw = this._syncEngine.watch(
|
|
14768
|
-
|
|
15028
|
+
chunkL7HABILC_cjs.Database_TablesDocument,
|
|
14769
15029
|
variables,
|
|
14770
15030
|
"database",
|
|
14771
15031
|
async (db) => {
|
|
14772
|
-
const qr = await db._queryResults.get(buildQueryKey("database", variables,
|
|
15032
|
+
const qr = await db._queryResults.get(buildQueryKey("database", variables, chunkL7HABILC_cjs.Database_TablesDocument));
|
|
14773
15033
|
const nodes = qr ? await db.table("tables").bulkGet(qr.entityIds) : [];
|
|
14774
15034
|
return { database: { tables: { __typename: "TableConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
14775
15035
|
}
|
|
@@ -14789,7 +15049,7 @@ var DatabaseCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14789
15049
|
}
|
|
14790
15050
|
async fetch(options) {
|
|
14791
15051
|
const variables = this._variables;
|
|
14792
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15052
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DatabaseCatalogDocument, "databaseCatalog", this._includes, variables);
|
|
14793
15053
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databaseCatalog");
|
|
14794
15054
|
const data = response.databaseCatalog;
|
|
14795
15055
|
const instance = new DatabaseCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14801,7 +15061,7 @@ var DatabaseCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14801
15061
|
watch(options) {
|
|
14802
15062
|
const variables = this._variables;
|
|
14803
15063
|
const includes = this._includes;
|
|
14804
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15064
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DatabaseCatalogDocument, "databaseCatalog", includes, variables);
|
|
14805
15065
|
const raw = this._syncEngine.watch(
|
|
14806
15066
|
queryDoc,
|
|
14807
15067
|
mergedVars,
|
|
@@ -14831,10 +15091,10 @@ var DatabaseCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14831
15091
|
}
|
|
14832
15092
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
14833
15093
|
engine(variables) {
|
|
14834
|
-
const info = extractIncludeInfo(
|
|
15094
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
14835
15095
|
this._includes.push({
|
|
14836
15096
|
fieldName: "engine",
|
|
14837
|
-
fragmentDoc:
|
|
15097
|
+
fragmentDoc: chunkL7HABILC_cjs.DatabaseEngineFragmentDoc,
|
|
14838
15098
|
variables,
|
|
14839
15099
|
isConnection: false,
|
|
14840
15100
|
isList: false,
|
|
@@ -14857,14 +15117,14 @@ var DatabaseCatalog_EngineQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14857
15117
|
}
|
|
14858
15118
|
async fetch(options) {
|
|
14859
15119
|
const variables = this._variables;
|
|
14860
|
-
const response = await this._syncEngine.query(
|
|
15120
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.DatabaseCatalog_EngineDocument, variables, "databaseCatalog");
|
|
14861
15121
|
const data = response.databaseCatalog?.engine;
|
|
14862
15122
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14863
15123
|
}
|
|
14864
15124
|
watch(options) {
|
|
14865
15125
|
const variables = this._variables;
|
|
14866
15126
|
const raw = this._syncEngine.watch(
|
|
14867
|
-
|
|
15127
|
+
chunkL7HABILC_cjs.DatabaseCatalog_EngineDocument,
|
|
14868
15128
|
variables,
|
|
14869
15129
|
"databaseCatalog",
|
|
14870
15130
|
async (db) => {
|
|
@@ -14888,7 +15148,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
14888
15148
|
}
|
|
14889
15149
|
async fetch(options) {
|
|
14890
15150
|
const variables = this._variables;
|
|
14891
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15151
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DatabaseCatalogsDocument, "databaseCatalogs", this._includes, variables, true);
|
|
14892
15152
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databaseCatalogs");
|
|
14893
15153
|
const data = response.databaseCatalogs;
|
|
14894
15154
|
const connection = new DatabaseCatalogConnection(this._request, (conn, opts) => new _DatabaseCatalogsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -14905,7 +15165,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
14905
15165
|
const subscriptionId = crypto.randomUUID();
|
|
14906
15166
|
const includes = this._includes;
|
|
14907
15167
|
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) }] : []);
|
|
14908
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15168
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DatabaseCatalogsDocument, "databaseCatalogs", includes, variables, true);
|
|
14909
15169
|
const raw = this._syncEngine.watch(
|
|
14910
15170
|
queryDoc,
|
|
14911
15171
|
mergedVars,
|
|
@@ -14940,10 +15200,10 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
14940
15200
|
}
|
|
14941
15201
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
14942
15202
|
engine(variables) {
|
|
14943
|
-
const info = extractIncludeInfo(
|
|
15203
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
14944
15204
|
this._includes.push({
|
|
14945
15205
|
fieldName: "engine",
|
|
14946
|
-
fragmentDoc:
|
|
15206
|
+
fragmentDoc: chunkL7HABILC_cjs.DatabaseEngineFragmentDoc,
|
|
14947
15207
|
variables,
|
|
14948
15208
|
isConnection: false,
|
|
14949
15209
|
isList: false,
|
|
@@ -14960,7 +15220,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
14960
15220
|
};
|
|
14961
15221
|
var DatabaseSchemaQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
14962
15222
|
async fetch(variables) {
|
|
14963
|
-
const response = await this._request(
|
|
15223
|
+
const response = await this._request(chunkL7HABILC_cjs.DatabaseSchemaDocument, variables);
|
|
14964
15224
|
return response.databaseSchema;
|
|
14965
15225
|
}
|
|
14966
15226
|
};
|
|
@@ -14973,7 +15233,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14973
15233
|
}
|
|
14974
15234
|
async fetch(options) {
|
|
14975
15235
|
const variables = this._variables;
|
|
14976
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15236
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DatabasesDocument, "databases", this._includes, variables, true);
|
|
14977
15237
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databases");
|
|
14978
15238
|
const data = response.databases;
|
|
14979
15239
|
const connection = new DatabaseConnection(this._request, (conn, opts) => new _DatabasesQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -14990,7 +15250,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14990
15250
|
const subscriptionId = crypto.randomUUID();
|
|
14991
15251
|
const includes = this._includes;
|
|
14992
15252
|
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) }] : []);
|
|
14993
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15253
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DatabasesDocument, "databases", includes, variables, true);
|
|
14994
15254
|
const raw = this._syncEngine.watch(
|
|
14995
15255
|
queryDoc,
|
|
14996
15256
|
mergedVars,
|
|
@@ -15025,10 +15285,10 @@ var DatabasesQuery = class _DatabasesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15025
15285
|
}
|
|
15026
15286
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
15027
15287
|
engine(variables) {
|
|
15028
|
-
const info = extractIncludeInfo(
|
|
15288
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
15029
15289
|
this._includes.push({
|
|
15030
15290
|
fieldName: "engine",
|
|
15031
|
-
fragmentDoc:
|
|
15291
|
+
fragmentDoc: chunkL7HABILC_cjs.DatabaseEngineFragmentDoc,
|
|
15032
15292
|
variables,
|
|
15033
15293
|
isConnection: false,
|
|
15034
15294
|
isList: false,
|
|
@@ -15044,7 +15304,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15044
15304
|
}
|
|
15045
15305
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
15046
15306
|
tables(variables, builder) {
|
|
15047
|
-
const info = extractIncludeInfo(
|
|
15307
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
15048
15308
|
let children;
|
|
15049
15309
|
if (builder) {
|
|
15050
15310
|
const sub = new TableSubBuilder();
|
|
@@ -15053,7 +15313,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15053
15313
|
}
|
|
15054
15314
|
this._includes.push({
|
|
15055
15315
|
fieldName: "tables",
|
|
15056
|
-
fragmentDoc:
|
|
15316
|
+
fragmentDoc: chunkL7HABILC_cjs.TableConnectionFragmentDoc,
|
|
15057
15317
|
variables,
|
|
15058
15318
|
isConnection: true,
|
|
15059
15319
|
isList: false,
|
|
@@ -15079,7 +15339,7 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15079
15339
|
}
|
|
15080
15340
|
async fetch(options) {
|
|
15081
15341
|
const variables = this._variables;
|
|
15082
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15342
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DocumentDocument, "document", this._includes, variables);
|
|
15083
15343
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "document");
|
|
15084
15344
|
const data = response.document;
|
|
15085
15345
|
const instance = new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15091,7 +15351,7 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15091
15351
|
watch(options) {
|
|
15092
15352
|
const variables = this._variables;
|
|
15093
15353
|
const includes = this._includes;
|
|
15094
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15354
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DocumentDocument, "document", includes, variables);
|
|
15095
15355
|
const raw = this._syncEngine.watch(
|
|
15096
15356
|
queryDoc,
|
|
15097
15357
|
mergedVars,
|
|
@@ -15121,10 +15381,10 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15121
15381
|
}
|
|
15122
15382
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
15123
15383
|
contents(variables) {
|
|
15124
|
-
const info = extractIncludeInfo(
|
|
15384
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
15125
15385
|
this._includes.push({
|
|
15126
15386
|
fieldName: "contents",
|
|
15127
|
-
fragmentDoc:
|
|
15387
|
+
fragmentDoc: chunkL7HABILC_cjs.DocumentContentFragmentDoc,
|
|
15128
15388
|
variables,
|
|
15129
15389
|
isConnection: false,
|
|
15130
15390
|
isList: true,
|
|
@@ -15140,10 +15400,10 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15140
15400
|
}
|
|
15141
15401
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
15142
15402
|
file(variables) {
|
|
15143
|
-
const info = extractIncludeInfo(
|
|
15403
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Document_FileDocument, "file", ["id"]);
|
|
15144
15404
|
this._includes.push({
|
|
15145
15405
|
fieldName: "file",
|
|
15146
|
-
fragmentDoc:
|
|
15406
|
+
fragmentDoc: chunkL7HABILC_cjs.FileFragmentDoc,
|
|
15147
15407
|
variables,
|
|
15148
15408
|
isConnection: false,
|
|
15149
15409
|
isList: false,
|
|
@@ -15159,10 +15419,10 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15159
15419
|
}
|
|
15160
15420
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
15161
15421
|
format(variables) {
|
|
15162
|
-
const info = extractIncludeInfo(
|
|
15422
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Document_FormatDocument, "format", ["id"]);
|
|
15163
15423
|
this._includes.push({
|
|
15164
15424
|
fieldName: "format",
|
|
15165
|
-
fragmentDoc:
|
|
15425
|
+
fragmentDoc: chunkL7HABILC_cjs.DocumentFormatFragmentDoc,
|
|
15166
15426
|
variables,
|
|
15167
15427
|
isConnection: false,
|
|
15168
15428
|
isList: false,
|
|
@@ -15178,7 +15438,7 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15178
15438
|
}
|
|
15179
15439
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
15180
15440
|
tables(variables, builder) {
|
|
15181
|
-
const info = extractIncludeInfo(
|
|
15441
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
15182
15442
|
let children;
|
|
15183
15443
|
if (builder) {
|
|
15184
15444
|
const sub = new TableSubBuilder();
|
|
@@ -15187,7 +15447,7 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15187
15447
|
}
|
|
15188
15448
|
this._includes.push({
|
|
15189
15449
|
fieldName: "tables",
|
|
15190
|
-
fragmentDoc:
|
|
15450
|
+
fragmentDoc: chunkL7HABILC_cjs.TableConnectionFragmentDoc,
|
|
15191
15451
|
variables,
|
|
15192
15452
|
isConnection: true,
|
|
15193
15453
|
isList: false,
|
|
@@ -15211,7 +15471,7 @@ var Document_ContentsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15211
15471
|
this._variables = variables;
|
|
15212
15472
|
}
|
|
15213
15473
|
async fetch(options) {
|
|
15214
|
-
const response = await this._syncEngine.query(
|
|
15474
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Document_ContentsDocument, this._variables, "document");
|
|
15215
15475
|
const data = response.document?.contents;
|
|
15216
15476
|
if (!Array.isArray(data)) return [];
|
|
15217
15477
|
return data.map((item) => new DocumentContent(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -15225,14 +15485,14 @@ var Document_FileQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15225
15485
|
}
|
|
15226
15486
|
async fetch(options) {
|
|
15227
15487
|
const variables = this._variables;
|
|
15228
|
-
const response = await this._syncEngine.query(
|
|
15488
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Document_FileDocument, variables, "document");
|
|
15229
15489
|
const data = response.document?.file;
|
|
15230
15490
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15231
15491
|
}
|
|
15232
15492
|
watch(options) {
|
|
15233
15493
|
const variables = this._variables;
|
|
15234
15494
|
const raw = this._syncEngine.watch(
|
|
15235
|
-
|
|
15495
|
+
chunkL7HABILC_cjs.Document_FileDocument,
|
|
15236
15496
|
variables,
|
|
15237
15497
|
"document",
|
|
15238
15498
|
async (db) => {
|
|
@@ -15255,14 +15515,14 @@ var Document_FormatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15255
15515
|
}
|
|
15256
15516
|
async fetch(options) {
|
|
15257
15517
|
const variables = this._variables;
|
|
15258
|
-
const response = await this._syncEngine.query(
|
|
15518
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Document_FormatDocument, variables, "document");
|
|
15259
15519
|
const data = response.document?.format;
|
|
15260
15520
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15261
15521
|
}
|
|
15262
15522
|
watch(options) {
|
|
15263
15523
|
const variables = this._variables;
|
|
15264
15524
|
const raw = this._syncEngine.watch(
|
|
15265
|
-
|
|
15525
|
+
chunkL7HABILC_cjs.Document_FormatDocument,
|
|
15266
15526
|
variables,
|
|
15267
15527
|
"document",
|
|
15268
15528
|
async (db) => {
|
|
@@ -15285,14 +15545,14 @@ var Document_Format_CatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15285
15545
|
}
|
|
15286
15546
|
async fetch(options) {
|
|
15287
15547
|
const variables = this._variables;
|
|
15288
|
-
const response = await this._syncEngine.query(
|
|
15548
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Document_Format_CatalogDocument, variables, "document");
|
|
15289
15549
|
const data = response.document?.format?.catalog;
|
|
15290
15550
|
return data ? new DocumentCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15291
15551
|
}
|
|
15292
15552
|
watch(options) {
|
|
15293
15553
|
const variables = this._variables;
|
|
15294
15554
|
const raw = this._syncEngine.watch(
|
|
15295
|
-
|
|
15555
|
+
chunkL7HABILC_cjs.Document_Format_CatalogDocument,
|
|
15296
15556
|
variables,
|
|
15297
15557
|
"document",
|
|
15298
15558
|
async (db) => {
|
|
@@ -15315,18 +15575,18 @@ var Document_TablesQuery = class _Document_TablesQuery extends chunk4QKWHQT2_cjs
|
|
|
15315
15575
|
}
|
|
15316
15576
|
async fetch(options) {
|
|
15317
15577
|
const variables = this._variables;
|
|
15318
|
-
const response = await this._syncEngine.query(
|
|
15578
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Document_TablesDocument, variables, "document");
|
|
15319
15579
|
const data = response.document?.tables;
|
|
15320
15580
|
return new TableConnection(this._request, (conn, opts) => new _Document_TablesQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
15321
15581
|
}
|
|
15322
15582
|
watch(options) {
|
|
15323
15583
|
const variables = this._variables;
|
|
15324
15584
|
const raw = this._syncEngine.watch(
|
|
15325
|
-
|
|
15585
|
+
chunkL7HABILC_cjs.Document_TablesDocument,
|
|
15326
15586
|
variables,
|
|
15327
15587
|
"document",
|
|
15328
15588
|
async (db) => {
|
|
15329
|
-
const qr = await db._queryResults.get(buildQueryKey("document", variables,
|
|
15589
|
+
const qr = await db._queryResults.get(buildQueryKey("document", variables, chunkL7HABILC_cjs.Document_TablesDocument));
|
|
15330
15590
|
const nodes = qr ? await db.table("tables").bulkGet(qr.entityIds) : [];
|
|
15331
15591
|
return { document: { tables: { __typename: "TableConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15332
15592
|
}
|
|
@@ -15346,7 +15606,7 @@ var DocumentCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15346
15606
|
}
|
|
15347
15607
|
async fetch(options) {
|
|
15348
15608
|
const variables = this._variables;
|
|
15349
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15609
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DocumentCatalogDocument, "documentCatalog", this._includes, variables);
|
|
15350
15610
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documentCatalog");
|
|
15351
15611
|
const data = response.documentCatalog;
|
|
15352
15612
|
const instance = new DocumentCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15358,7 +15618,7 @@ var DocumentCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15358
15618
|
watch(options) {
|
|
15359
15619
|
const variables = this._variables;
|
|
15360
15620
|
const includes = this._includes;
|
|
15361
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15621
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DocumentCatalogDocument, "documentCatalog", includes, variables);
|
|
15362
15622
|
const raw = this._syncEngine.watch(
|
|
15363
15623
|
queryDoc,
|
|
15364
15624
|
mergedVars,
|
|
@@ -15388,10 +15648,10 @@ var DocumentCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15388
15648
|
}
|
|
15389
15649
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
15390
15650
|
format(variables) {
|
|
15391
|
-
const info = extractIncludeInfo(
|
|
15651
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
15392
15652
|
this._includes.push({
|
|
15393
15653
|
fieldName: "format",
|
|
15394
|
-
fragmentDoc:
|
|
15654
|
+
fragmentDoc: chunkL7HABILC_cjs.DocumentFormatFragmentDoc,
|
|
15395
15655
|
variables,
|
|
15396
15656
|
isConnection: false,
|
|
15397
15657
|
isList: false,
|
|
@@ -15414,14 +15674,14 @@ var DocumentCatalog_FormatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15414
15674
|
}
|
|
15415
15675
|
async fetch(options) {
|
|
15416
15676
|
const variables = this._variables;
|
|
15417
|
-
const response = await this._syncEngine.query(
|
|
15677
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.DocumentCatalog_FormatDocument, variables, "documentCatalog");
|
|
15418
15678
|
const data = response.documentCatalog?.format;
|
|
15419
15679
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15420
15680
|
}
|
|
15421
15681
|
watch(options) {
|
|
15422
15682
|
const variables = this._variables;
|
|
15423
15683
|
const raw = this._syncEngine.watch(
|
|
15424
|
-
|
|
15684
|
+
chunkL7HABILC_cjs.DocumentCatalog_FormatDocument,
|
|
15425
15685
|
variables,
|
|
15426
15686
|
"documentCatalog",
|
|
15427
15687
|
async (db) => {
|
|
@@ -15445,7 +15705,7 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
15445
15705
|
}
|
|
15446
15706
|
async fetch(options) {
|
|
15447
15707
|
const variables = this._variables;
|
|
15448
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15708
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DocumentCatalogsDocument, "documentCatalogs", this._includes, variables, true);
|
|
15449
15709
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documentCatalogs");
|
|
15450
15710
|
const data = response.documentCatalogs;
|
|
15451
15711
|
const connection = new DocumentCatalogConnection(this._request, (conn, opts) => new _DocumentCatalogsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -15462,7 +15722,7 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
15462
15722
|
const subscriptionId = crypto.randomUUID();
|
|
15463
15723
|
const includes = this._includes;
|
|
15464
15724
|
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) }] : []);
|
|
15465
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15725
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DocumentCatalogsDocument, "documentCatalogs", includes, variables, true);
|
|
15466
15726
|
const raw = this._syncEngine.watch(
|
|
15467
15727
|
queryDoc,
|
|
15468
15728
|
mergedVars,
|
|
@@ -15497,10 +15757,10 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
15497
15757
|
}
|
|
15498
15758
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
15499
15759
|
format(variables) {
|
|
15500
|
-
const info = extractIncludeInfo(
|
|
15760
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
15501
15761
|
this._includes.push({
|
|
15502
15762
|
fieldName: "format",
|
|
15503
|
-
fragmentDoc:
|
|
15763
|
+
fragmentDoc: chunkL7HABILC_cjs.DocumentFormatFragmentDoc,
|
|
15504
15764
|
variables,
|
|
15505
15765
|
isConnection: false,
|
|
15506
15766
|
isList: false,
|
|
@@ -15524,7 +15784,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15524
15784
|
}
|
|
15525
15785
|
async fetch(options) {
|
|
15526
15786
|
const variables = this._variables;
|
|
15527
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15787
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DocumentsDocument, "documents", this._includes, variables, true);
|
|
15528
15788
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documents");
|
|
15529
15789
|
const data = response.documents;
|
|
15530
15790
|
const connection = new DocumentConnection(this._request, (conn, opts) => new _DocumentsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -15541,7 +15801,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15541
15801
|
const subscriptionId = crypto.randomUUID();
|
|
15542
15802
|
const includes = this._includes;
|
|
15543
15803
|
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) }] : []);
|
|
15544
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15804
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.DocumentsDocument, "documents", includes, variables, true);
|
|
15545
15805
|
const raw = this._syncEngine.watch(
|
|
15546
15806
|
queryDoc,
|
|
15547
15807
|
mergedVars,
|
|
@@ -15576,10 +15836,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15576
15836
|
}
|
|
15577
15837
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
15578
15838
|
contents(variables) {
|
|
15579
|
-
const info = extractIncludeInfo(
|
|
15839
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
15580
15840
|
this._includes.push({
|
|
15581
15841
|
fieldName: "contents",
|
|
15582
|
-
fragmentDoc:
|
|
15842
|
+
fragmentDoc: chunkL7HABILC_cjs.DocumentContentFragmentDoc,
|
|
15583
15843
|
variables,
|
|
15584
15844
|
isConnection: false,
|
|
15585
15845
|
isList: true,
|
|
@@ -15595,10 +15855,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15595
15855
|
}
|
|
15596
15856
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
15597
15857
|
file(variables) {
|
|
15598
|
-
const info = extractIncludeInfo(
|
|
15858
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Document_FileDocument, "file", ["id"]);
|
|
15599
15859
|
this._includes.push({
|
|
15600
15860
|
fieldName: "file",
|
|
15601
|
-
fragmentDoc:
|
|
15861
|
+
fragmentDoc: chunkL7HABILC_cjs.FileFragmentDoc,
|
|
15602
15862
|
variables,
|
|
15603
15863
|
isConnection: false,
|
|
15604
15864
|
isList: false,
|
|
@@ -15614,10 +15874,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15614
15874
|
}
|
|
15615
15875
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
15616
15876
|
format(variables) {
|
|
15617
|
-
const info = extractIncludeInfo(
|
|
15877
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Document_FormatDocument, "format", ["id"]);
|
|
15618
15878
|
this._includes.push({
|
|
15619
15879
|
fieldName: "format",
|
|
15620
|
-
fragmentDoc:
|
|
15880
|
+
fragmentDoc: chunkL7HABILC_cjs.DocumentFormatFragmentDoc,
|
|
15621
15881
|
variables,
|
|
15622
15882
|
isConnection: false,
|
|
15623
15883
|
isList: false,
|
|
@@ -15633,7 +15893,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15633
15893
|
}
|
|
15634
15894
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
15635
15895
|
tables(variables, builder) {
|
|
15636
|
-
const info = extractIncludeInfo(
|
|
15896
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
15637
15897
|
let children;
|
|
15638
15898
|
if (builder) {
|
|
15639
15899
|
const sub = new TableSubBuilder();
|
|
@@ -15642,7 +15902,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15642
15902
|
}
|
|
15643
15903
|
this._includes.push({
|
|
15644
15904
|
fieldName: "tables",
|
|
15645
|
-
fragmentDoc:
|
|
15905
|
+
fragmentDoc: chunkL7HABILC_cjs.TableConnectionFragmentDoc,
|
|
15646
15906
|
variables,
|
|
15647
15907
|
isConnection: true,
|
|
15648
15908
|
isList: false,
|
|
@@ -15661,19 +15921,250 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15661
15921
|
};
|
|
15662
15922
|
var ExportQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15663
15923
|
async fetch(variables) {
|
|
15664
|
-
const response = await this._request(
|
|
15924
|
+
const response = await this._request(chunkL7HABILC_cjs.ExportDocument, variables);
|
|
15665
15925
|
return response.export;
|
|
15666
15926
|
}
|
|
15667
15927
|
};
|
|
15668
15928
|
var ExportWithInsightIdQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15669
15929
|
async fetch(variables) {
|
|
15670
|
-
const response = await this._request(
|
|
15930
|
+
const response = await this._request(chunkL7HABILC_cjs.ExportWithInsightIdDocument, variables);
|
|
15671
15931
|
return response.exportWithInsightId;
|
|
15672
15932
|
}
|
|
15673
15933
|
};
|
|
15934
|
+
var FeedItemQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15935
|
+
_variables;
|
|
15936
|
+
_includes = [];
|
|
15937
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
15938
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
15939
|
+
this._variables = variables;
|
|
15940
|
+
}
|
|
15941
|
+
async fetch(options) {
|
|
15942
|
+
const variables = this._variables;
|
|
15943
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.FeedItemDocument, "feedItem", this._includes, variables);
|
|
15944
|
+
const response = await this._syncEngine.query(queryDoc, mergedVars, "feedItem");
|
|
15945
|
+
const data = response.feedItem;
|
|
15946
|
+
if (!data) return void 0;
|
|
15947
|
+
const instance = new FeedItem(this._request, data, this._syncEngine, this._baseUrl);
|
|
15948
|
+
if (this._includes.length > 0) {
|
|
15949
|
+
hydrateIncludes(instance, data, this._includes, this._request, this._syncEngine, this._baseUrl);
|
|
15950
|
+
}
|
|
15951
|
+
return instance;
|
|
15952
|
+
}
|
|
15953
|
+
watch(options) {
|
|
15954
|
+
const variables = this._variables;
|
|
15955
|
+
const includes = this._includes;
|
|
15956
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.FeedItemDocument, "feedItem", includes, variables);
|
|
15957
|
+
const raw = this._syncEngine.watch(
|
|
15958
|
+
queryDoc,
|
|
15959
|
+
mergedVars,
|
|
15960
|
+
"feedItem",
|
|
15961
|
+
async (db) => {
|
|
15962
|
+
const vars = variables;
|
|
15963
|
+
const pkField = getPrimaryKeyField("feedItems");
|
|
15964
|
+
const entityKey = Array.isArray(pkField) ? pkField.map((field) => vars?.[field]) : vars?.[pkField];
|
|
15965
|
+
const hasEntityKey = Array.isArray(entityKey) ? entityKey.every((part) => part !== void 0 && part !== null) : entityKey !== void 0 && entityKey !== null;
|
|
15966
|
+
const entity = hasEntityKey ? await db.table("feedItems").get(entityKey) : void 0;
|
|
15967
|
+
if (includes.length > 0 && entity) {
|
|
15968
|
+
const parentId = Array.isArray(entityKey) ? entityKey.map((part) => String(part)).join(":") : String(entityKey);
|
|
15969
|
+
const result = await reconstructEntity(db, "feedItems", parentId, includes);
|
|
15970
|
+
return { feedItem: result };
|
|
15971
|
+
}
|
|
15972
|
+
return { feedItem: entity ?? null };
|
|
15973
|
+
}
|
|
15974
|
+
);
|
|
15975
|
+
return new MappedDvinaQueryRef(raw, (response) => {
|
|
15976
|
+
const data = response.feedItem;
|
|
15977
|
+
if (!data) return void 0;
|
|
15978
|
+
const instance = new FeedItem(this._request, data, this._syncEngine, this._baseUrl);
|
|
15979
|
+
if (includes.length > 0) {
|
|
15980
|
+
hydrateIncludes(instance, data, includes, this._request, this._syncEngine, this._baseUrl);
|
|
15981
|
+
}
|
|
15982
|
+
return instance;
|
|
15983
|
+
});
|
|
15984
|
+
}
|
|
15985
|
+
/** Include action in this query (Smart Fetch — single HTTP request). */
|
|
15986
|
+
action(variables) {
|
|
15987
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.FeedItem_ActionDocument, "action", ["id"]);
|
|
15988
|
+
this._includes.push({
|
|
15989
|
+
fieldName: "action",
|
|
15990
|
+
fragmentDoc: chunkL7HABILC_cjs.FeedSendMessageActionFragmentDoc,
|
|
15991
|
+
variables,
|
|
15992
|
+
isConnection: false,
|
|
15993
|
+
isList: false,
|
|
15994
|
+
variableDefinitions: info.variableDefinitions,
|
|
15995
|
+
fieldArguments: info.fieldArguments,
|
|
15996
|
+
syncMetadata: {
|
|
15997
|
+
entityType: "feedSendMessageActions",
|
|
15998
|
+
requiredFields: ["prompt", "type"]
|
|
15999
|
+
},
|
|
16000
|
+
modelFactory: (req, data, se, bu) => new FeedSendMessageAction(req, data, se, bu)
|
|
16001
|
+
});
|
|
16002
|
+
return this;
|
|
16003
|
+
}
|
|
16004
|
+
/** Include data in this query (Smart Fetch — single HTTP request). */
|
|
16005
|
+
data(variables) {
|
|
16006
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.FeedItem_DataDocument, "data", ["id"]);
|
|
16007
|
+
this._includes.push({
|
|
16008
|
+
fieldName: "data",
|
|
16009
|
+
fragmentDoc: chunkL7HABILC_cjs.FeedArtifactDataFragmentDoc,
|
|
16010
|
+
variables,
|
|
16011
|
+
isConnection: false,
|
|
16012
|
+
isList: true,
|
|
16013
|
+
variableDefinitions: info.variableDefinitions,
|
|
16014
|
+
fieldArguments: info.fieldArguments,
|
|
16015
|
+
syncMetadata: {
|
|
16016
|
+
entityType: "feedArtifactDatas",
|
|
16017
|
+
requiredFields: ["kind"]
|
|
16018
|
+
},
|
|
16019
|
+
modelFactory: (req, data, se, bu) => new FeedArtifactData(req, data, se, bu)
|
|
16020
|
+
});
|
|
16021
|
+
return this;
|
|
16022
|
+
}
|
|
16023
|
+
};
|
|
16024
|
+
var FeedItem_ActionQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
16025
|
+
_variables;
|
|
16026
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
16027
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
16028
|
+
this._variables = variables;
|
|
16029
|
+
}
|
|
16030
|
+
async fetch(options) {
|
|
16031
|
+
const variables = this._variables;
|
|
16032
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.FeedItem_ActionDocument, variables, "feedItem");
|
|
16033
|
+
const data = response.feedItem?.action;
|
|
16034
|
+
return data ? new FeedSendMessageAction(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16035
|
+
}
|
|
16036
|
+
watch(options) {
|
|
16037
|
+
const variables = this._variables;
|
|
16038
|
+
const raw = this._syncEngine.watch(
|
|
16039
|
+
chunkL7HABILC_cjs.FeedItem_ActionDocument,
|
|
16040
|
+
variables,
|
|
16041
|
+
"feedItem",
|
|
16042
|
+
async (db) => {
|
|
16043
|
+
const vars = variables;
|
|
16044
|
+
const entity = vars?.id ? await db.table("feedSendMessageActions").get(vars.id) : void 0;
|
|
16045
|
+
return { feedItem: { action: entity ?? null } };
|
|
16046
|
+
}
|
|
16047
|
+
);
|
|
16048
|
+
return new MappedDvinaQueryRef(raw, (response) => {
|
|
16049
|
+
const data = response.feedItem?.action;
|
|
16050
|
+
return data ? new FeedSendMessageAction(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16051
|
+
});
|
|
16052
|
+
}
|
|
16053
|
+
};
|
|
16054
|
+
var FeedItem_DataQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
16055
|
+
_variables;
|
|
16056
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
16057
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
16058
|
+
this._variables = variables;
|
|
16059
|
+
}
|
|
16060
|
+
async fetch(options) {
|
|
16061
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.FeedItem_DataDocument, this._variables, "feedItem");
|
|
16062
|
+
const data = response.feedItem?.data;
|
|
16063
|
+
if (!Array.isArray(data)) return [];
|
|
16064
|
+
return data.map((item) => new FeedArtifactData(this._request, item, this._syncEngine, this._baseUrl));
|
|
16065
|
+
}
|
|
16066
|
+
};
|
|
16067
|
+
var FeedItemsQuery = class _FeedItemsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
16068
|
+
_variables;
|
|
16069
|
+
_includes = [];
|
|
16070
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
16071
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
16072
|
+
this._variables = variables;
|
|
16073
|
+
}
|
|
16074
|
+
async fetch(options) {
|
|
16075
|
+
const variables = this._variables;
|
|
16076
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.FeedItemsDocument, "feedItems", this._includes, variables, true);
|
|
16077
|
+
const response = await this._syncEngine.query(queryDoc, mergedVars, "feedItems");
|
|
16078
|
+
const data = response.feedItems;
|
|
16079
|
+
const connection = new FeedConnection(this._request, (conn, opts) => new _FeedItemsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
16080
|
+
if (this._includes.length > 0) {
|
|
16081
|
+
const rawNodes = data.nodes ?? [];
|
|
16082
|
+
for (let i = 0; i < connection.nodes.length; i++) {
|
|
16083
|
+
hydrateIncludes(connection.nodes[i], rawNodes[i] ?? {}, this._includes, this._request, this._syncEngine, this._baseUrl);
|
|
16084
|
+
}
|
|
16085
|
+
}
|
|
16086
|
+
return connection;
|
|
16087
|
+
}
|
|
16088
|
+
watch(options) {
|
|
16089
|
+
const variables = this._variables;
|
|
16090
|
+
const subscriptionId = crypto.randomUUID();
|
|
16091
|
+
const includes = this._includes;
|
|
16092
|
+
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) }] : []);
|
|
16093
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.FeedItemsDocument, "feedItems", includes, variables, true);
|
|
16094
|
+
const raw = this._syncEngine.watch(
|
|
16095
|
+
queryDoc,
|
|
16096
|
+
mergedVars,
|
|
16097
|
+
"feedItems",
|
|
16098
|
+
async (db) => {
|
|
16099
|
+
const qr = await db._queryResults.get(buildQueryKey("feedItems", mergedVars, queryDoc));
|
|
16100
|
+
const nodes = qr ? await db.table("feedItems").bulkGet(qr.entityIds) : [];
|
|
16101
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
16102
|
+
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "feedItems", filteredNodes, includes) : filteredNodes;
|
|
16103
|
+
return { feedItems: { __typename: "FeedConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
16104
|
+
},
|
|
16105
|
+
{
|
|
16106
|
+
id: subscriptionId,
|
|
16107
|
+
entityType: "feedItems",
|
|
16108
|
+
operationName: "feedItems",
|
|
16109
|
+
modelName: "FeedItem",
|
|
16110
|
+
filter: variables?.filter
|
|
16111
|
+
},
|
|
16112
|
+
watchedRelations
|
|
16113
|
+
);
|
|
16114
|
+
return new MappedDvinaQueryRef(raw, (response) => {
|
|
16115
|
+
const data = response.feedItems;
|
|
16116
|
+
const connection = new FeedConnection(this._request, (conn, opts) => new _FeedItemsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
16117
|
+
if (includes.length > 0) {
|
|
16118
|
+
const rawNodes = data.nodes ?? [];
|
|
16119
|
+
for (let i = 0; i < connection.nodes.length; i++) {
|
|
16120
|
+
hydrateIncludes(connection.nodes[i], rawNodes[i] ?? {}, includes, this._request, this._syncEngine, this._baseUrl);
|
|
16121
|
+
}
|
|
16122
|
+
}
|
|
16123
|
+
return connection;
|
|
16124
|
+
});
|
|
16125
|
+
}
|
|
16126
|
+
/** Include action in this query (Smart Fetch — single HTTP request). */
|
|
16127
|
+
action(variables) {
|
|
16128
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.FeedItem_ActionDocument, "action", ["id"]);
|
|
16129
|
+
this._includes.push({
|
|
16130
|
+
fieldName: "action",
|
|
16131
|
+
fragmentDoc: chunkL7HABILC_cjs.FeedSendMessageActionFragmentDoc,
|
|
16132
|
+
variables,
|
|
16133
|
+
isConnection: false,
|
|
16134
|
+
isList: false,
|
|
16135
|
+
variableDefinitions: info.variableDefinitions,
|
|
16136
|
+
fieldArguments: info.fieldArguments,
|
|
16137
|
+
syncMetadata: {
|
|
16138
|
+
entityType: "feedSendMessageActions",
|
|
16139
|
+
requiredFields: ["prompt", "type"]
|
|
16140
|
+
},
|
|
16141
|
+
modelFactory: (req, data, se, bu) => new FeedSendMessageAction(req, data, se, bu)
|
|
16142
|
+
});
|
|
16143
|
+
return this;
|
|
16144
|
+
}
|
|
16145
|
+
/** Include data in this query (Smart Fetch — single HTTP request). */
|
|
16146
|
+
data(variables) {
|
|
16147
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.FeedItem_DataDocument, "data", ["id"]);
|
|
16148
|
+
this._includes.push({
|
|
16149
|
+
fieldName: "data",
|
|
16150
|
+
fragmentDoc: chunkL7HABILC_cjs.FeedArtifactDataFragmentDoc,
|
|
16151
|
+
variables,
|
|
16152
|
+
isConnection: false,
|
|
16153
|
+
isList: true,
|
|
16154
|
+
variableDefinitions: info.variableDefinitions,
|
|
16155
|
+
fieldArguments: info.fieldArguments,
|
|
16156
|
+
syncMetadata: {
|
|
16157
|
+
entityType: "feedArtifactDatas",
|
|
16158
|
+
requiredFields: ["kind"]
|
|
16159
|
+
},
|
|
16160
|
+
modelFactory: (req, data, se, bu) => new FeedArtifactData(req, data, se, bu)
|
|
16161
|
+
});
|
|
16162
|
+
return this;
|
|
16163
|
+
}
|
|
16164
|
+
};
|
|
15674
16165
|
var FileQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15675
16166
|
async fetch(variables) {
|
|
15676
|
-
const response = await this._request(
|
|
16167
|
+
const response = await this._request(chunkL7HABILC_cjs.FileDocument, variables);
|
|
15677
16168
|
return response.file;
|
|
15678
16169
|
}
|
|
15679
16170
|
};
|
|
@@ -15686,7 +16177,7 @@ var FileMetaQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15686
16177
|
}
|
|
15687
16178
|
async fetch(options) {
|
|
15688
16179
|
const variables = this._variables;
|
|
15689
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16180
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.FileMetaDocument, "fileMeta", this._includes, variables);
|
|
15690
16181
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "fileMeta");
|
|
15691
16182
|
const data = response.fileMeta;
|
|
15692
16183
|
if (!data) return void 0;
|
|
@@ -15699,7 +16190,7 @@ var FileMetaQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15699
16190
|
watch(options) {
|
|
15700
16191
|
const variables = this._variables;
|
|
15701
16192
|
const includes = this._includes;
|
|
15702
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16193
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.FileMetaDocument, "fileMeta", includes, variables);
|
|
15703
16194
|
const raw = this._syncEngine.watch(
|
|
15704
16195
|
queryDoc,
|
|
15705
16196
|
mergedVars,
|
|
@@ -15737,7 +16228,7 @@ var FileUrlsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15737
16228
|
this._variables = variables;
|
|
15738
16229
|
}
|
|
15739
16230
|
async fetch(options) {
|
|
15740
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16231
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.FileUrlsDocument, "fileUrls", this._includes, this._variables);
|
|
15741
16232
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "fileUrls");
|
|
15742
16233
|
const data = response.fileUrls;
|
|
15743
16234
|
if (!Array.isArray(data)) return [];
|
|
@@ -15746,7 +16237,7 @@ var FileUrlsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15746
16237
|
};
|
|
15747
16238
|
var FindFitTierQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15748
16239
|
async fetch(variables) {
|
|
15749
|
-
const response = await this._request(
|
|
16240
|
+
const response = await this._request(chunkL7HABILC_cjs.FindFitTierDocument, variables);
|
|
15750
16241
|
return response.findFitTier ?? void 0;
|
|
15751
16242
|
}
|
|
15752
16243
|
};
|
|
@@ -15759,7 +16250,7 @@ var FolderQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15759
16250
|
}
|
|
15760
16251
|
async fetch(options) {
|
|
15761
16252
|
const variables = this._variables;
|
|
15762
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16253
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.FolderDocument, "folder", this._includes, variables);
|
|
15763
16254
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "folder");
|
|
15764
16255
|
const data = response.folder;
|
|
15765
16256
|
const instance = new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15771,7 +16262,7 @@ var FolderQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15771
16262
|
watch(options) {
|
|
15772
16263
|
const variables = this._variables;
|
|
15773
16264
|
const includes = this._includes;
|
|
15774
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16265
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.FolderDocument, "folder", includes, variables);
|
|
15775
16266
|
const raw = this._syncEngine.watch(
|
|
15776
16267
|
queryDoc,
|
|
15777
16268
|
mergedVars,
|
|
@@ -15809,7 +16300,7 @@ var FoldersQuery = class _FoldersQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15809
16300
|
}
|
|
15810
16301
|
async fetch(options) {
|
|
15811
16302
|
const variables = this._variables;
|
|
15812
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16303
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.FoldersDocument, "folders", this._includes, variables, true);
|
|
15813
16304
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "folders");
|
|
15814
16305
|
const data = response.folders;
|
|
15815
16306
|
const connection = new FolderConnection(this._request, (conn, opts) => new _FoldersQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -15826,7 +16317,7 @@ var FoldersQuery = class _FoldersQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15826
16317
|
const subscriptionId = crypto.randomUUID();
|
|
15827
16318
|
const includes = this._includes;
|
|
15828
16319
|
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) }] : []);
|
|
15829
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16320
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.FoldersDocument, "folders", includes, variables, true);
|
|
15830
16321
|
const raw = this._syncEngine.watch(
|
|
15831
16322
|
queryDoc,
|
|
15832
16323
|
mergedVars,
|
|
@@ -15862,7 +16353,7 @@ var FoldersQuery = class _FoldersQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15862
16353
|
};
|
|
15863
16354
|
var GetCapabilityQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15864
16355
|
async fetch(variables) {
|
|
15865
|
-
const response = await this._request(
|
|
16356
|
+
const response = await this._request(chunkL7HABILC_cjs.GetCapabilityDocument, variables);
|
|
15866
16357
|
return response.getCapability;
|
|
15867
16358
|
}
|
|
15868
16359
|
};
|
|
@@ -15875,7 +16366,7 @@ var GetDevAccessTokenQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15875
16366
|
}
|
|
15876
16367
|
async fetch(options) {
|
|
15877
16368
|
const variables = this._variables;
|
|
15878
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16369
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.GetDevAccessTokenDocument, "getDevAccessToken", this._includes, variables);
|
|
15879
16370
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getDevAccessToken");
|
|
15880
16371
|
const data = response.getDevAccessToken;
|
|
15881
16372
|
const instance = new DevAccessTokenOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15887,7 +16378,7 @@ var GetDevAccessTokenQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15887
16378
|
watch(options) {
|
|
15888
16379
|
const variables = this._variables;
|
|
15889
16380
|
const includes = this._includes;
|
|
15890
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16381
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.GetDevAccessTokenDocument, "getDevAccessToken", includes, variables);
|
|
15891
16382
|
const raw = this._syncEngine.watch(
|
|
15892
16383
|
queryDoc,
|
|
15893
16384
|
mergedVars,
|
|
@@ -15918,13 +16409,13 @@ var GetDevAccessTokenQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15918
16409
|
};
|
|
15919
16410
|
var GetLimitQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15920
16411
|
async fetch(variables) {
|
|
15921
|
-
const response = await this._request(
|
|
16412
|
+
const response = await this._request(chunkL7HABILC_cjs.GetLimitDocument, variables);
|
|
15922
16413
|
return response.getLimit ?? void 0;
|
|
15923
16414
|
}
|
|
15924
16415
|
};
|
|
15925
16416
|
var GetRemainingQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15926
16417
|
async fetch(variables) {
|
|
15927
|
-
const response = await this._request(
|
|
16418
|
+
const response = await this._request(chunkL7HABILC_cjs.GetRemainingDocument, variables);
|
|
15928
16419
|
return response.getRemaining ?? void 0;
|
|
15929
16420
|
}
|
|
15930
16421
|
};
|
|
@@ -15936,7 +16427,7 @@ var GetTokenUsageByModelQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15936
16427
|
this._variables = variables;
|
|
15937
16428
|
}
|
|
15938
16429
|
async fetch(options) {
|
|
15939
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16430
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.GetTokenUsageByModelDocument, "getTokenUsageByModel", this._includes, this._variables);
|
|
15940
16431
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageByModel");
|
|
15941
16432
|
const data = response.getTokenUsageByModel;
|
|
15942
16433
|
if (!Array.isArray(data)) return [];
|
|
@@ -15951,7 +16442,7 @@ var GetTokenUsageHistoryQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15951
16442
|
this._variables = variables;
|
|
15952
16443
|
}
|
|
15953
16444
|
async fetch(options) {
|
|
15954
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16445
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.GetTokenUsageHistoryDocument, "getTokenUsageHistory", this._includes, this._variables);
|
|
15955
16446
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageHistory");
|
|
15956
16447
|
const data = response.getTokenUsageHistory;
|
|
15957
16448
|
if (!Array.isArray(data)) return [];
|
|
@@ -15967,7 +16458,7 @@ var GetTokenUsageStatusQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15967
16458
|
}
|
|
15968
16459
|
async fetch(options) {
|
|
15969
16460
|
const variables = this._variables;
|
|
15970
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16461
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", this._includes, variables);
|
|
15971
16462
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageStatus");
|
|
15972
16463
|
const data = response.getTokenUsageStatus;
|
|
15973
16464
|
const instance = new UsageStatus(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15979,7 +16470,7 @@ var GetTokenUsageStatusQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15979
16470
|
watch(options) {
|
|
15980
16471
|
const variables = this._variables;
|
|
15981
16472
|
const includes = this._includes;
|
|
15982
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16473
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", includes, variables);
|
|
15983
16474
|
const raw = this._syncEngine.watch(
|
|
15984
16475
|
queryDoc,
|
|
15985
16476
|
mergedVars,
|
|
@@ -16009,10 +16500,10 @@ var GetTokenUsageStatusQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16009
16500
|
}
|
|
16010
16501
|
/** Include windows in this query (Smart Fetch — single HTTP request). */
|
|
16011
16502
|
windows(variables) {
|
|
16012
|
-
const info = extractIncludeInfo(
|
|
16503
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.GetTokenUsageStatus_WindowsDocument, "windows", []);
|
|
16013
16504
|
this._includes.push({
|
|
16014
16505
|
fieldName: "windows",
|
|
16015
|
-
fragmentDoc:
|
|
16506
|
+
fragmentDoc: chunkL7HABILC_cjs.UsageWindowsStatusTypeFragmentDoc,
|
|
16016
16507
|
variables,
|
|
16017
16508
|
isConnection: false,
|
|
16018
16509
|
isList: false,
|
|
@@ -16035,14 +16526,14 @@ var GetTokenUsageStatus_WindowsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16035
16526
|
}
|
|
16036
16527
|
async fetch(options) {
|
|
16037
16528
|
const variables = this._variables;
|
|
16038
|
-
const response = await this._syncEngine.query(
|
|
16529
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.GetTokenUsageStatus_WindowsDocument, variables, "getTokenUsageStatus");
|
|
16039
16530
|
const data = response.getTokenUsageStatus?.windows;
|
|
16040
16531
|
return data ? new UsageWindowsStatusType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16041
16532
|
}
|
|
16042
16533
|
watch(options) {
|
|
16043
16534
|
const variables = this._variables;
|
|
16044
16535
|
const raw = this._syncEngine.watch(
|
|
16045
|
-
|
|
16536
|
+
chunkL7HABILC_cjs.GetTokenUsageStatus_WindowsDocument,
|
|
16046
16537
|
variables,
|
|
16047
16538
|
"getTokenUsageStatus",
|
|
16048
16539
|
async (db) => {
|
|
@@ -16065,14 +16556,14 @@ var GetTokenUsageStatus_Windows_DayQuery = class extends chunk4QKWHQT2_cjs.Reque
|
|
|
16065
16556
|
}
|
|
16066
16557
|
async fetch(options) {
|
|
16067
16558
|
const variables = this._variables;
|
|
16068
|
-
const response = await this._syncEngine.query(
|
|
16559
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.GetTokenUsageStatus_Windows_DayDocument, variables, "getTokenUsageStatus");
|
|
16069
16560
|
const data = response.getTokenUsageStatus?.windows?.day;
|
|
16070
16561
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16071
16562
|
}
|
|
16072
16563
|
watch(options) {
|
|
16073
16564
|
const variables = this._variables;
|
|
16074
16565
|
const raw = this._syncEngine.watch(
|
|
16075
|
-
|
|
16566
|
+
chunkL7HABILC_cjs.GetTokenUsageStatus_Windows_DayDocument,
|
|
16076
16567
|
variables,
|
|
16077
16568
|
"getTokenUsageStatus",
|
|
16078
16569
|
async (db) => {
|
|
@@ -16095,14 +16586,14 @@ var GetTokenUsageStatus_Windows_FiveHourQuery = class extends chunk4QKWHQT2_cjs.
|
|
|
16095
16586
|
}
|
|
16096
16587
|
async fetch(options) {
|
|
16097
16588
|
const variables = this._variables;
|
|
16098
|
-
const response = await this._syncEngine.query(
|
|
16589
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.GetTokenUsageStatus_Windows_FiveHourDocument, variables, "getTokenUsageStatus");
|
|
16099
16590
|
const data = response.getTokenUsageStatus?.windows?.fiveHour;
|
|
16100
16591
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16101
16592
|
}
|
|
16102
16593
|
watch(options) {
|
|
16103
16594
|
const variables = this._variables;
|
|
16104
16595
|
const raw = this._syncEngine.watch(
|
|
16105
|
-
|
|
16596
|
+
chunkL7HABILC_cjs.GetTokenUsageStatus_Windows_FiveHourDocument,
|
|
16106
16597
|
variables,
|
|
16107
16598
|
"getTokenUsageStatus",
|
|
16108
16599
|
async (db) => {
|
|
@@ -16125,14 +16616,14 @@ var GetTokenUsageStatus_Windows_WeekQuery = class extends chunk4QKWHQT2_cjs.Requ
|
|
|
16125
16616
|
}
|
|
16126
16617
|
async fetch(options) {
|
|
16127
16618
|
const variables = this._variables;
|
|
16128
|
-
const response = await this._syncEngine.query(
|
|
16619
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.GetTokenUsageStatus_Windows_WeekDocument, variables, "getTokenUsageStatus");
|
|
16129
16620
|
const data = response.getTokenUsageStatus?.windows?.week;
|
|
16130
16621
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16131
16622
|
}
|
|
16132
16623
|
watch(options) {
|
|
16133
16624
|
const variables = this._variables;
|
|
16134
16625
|
const raw = this._syncEngine.watch(
|
|
16135
|
-
|
|
16626
|
+
chunkL7HABILC_cjs.GetTokenUsageStatus_Windows_WeekDocument,
|
|
16136
16627
|
variables,
|
|
16137
16628
|
"getTokenUsageStatus",
|
|
16138
16629
|
async (db) => {
|
|
@@ -16149,7 +16640,7 @@ var GetTokenUsageStatus_Windows_WeekQuery = class extends chunk4QKWHQT2_cjs.Requ
|
|
|
16149
16640
|
};
|
|
16150
16641
|
var GetUsageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
16151
16642
|
async fetch(variables) {
|
|
16152
|
-
const response = await this._request(
|
|
16643
|
+
const response = await this._request(chunkL7HABILC_cjs.GetUsageDocument, variables);
|
|
16153
16644
|
return response.getUsage ?? void 0;
|
|
16154
16645
|
}
|
|
16155
16646
|
};
|
|
@@ -16162,7 +16653,7 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16162
16653
|
}
|
|
16163
16654
|
async fetch(options) {
|
|
16164
16655
|
const variables = this._variables;
|
|
16165
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16656
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.InsightDocument, "insight", this._includes, variables);
|
|
16166
16657
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "insight");
|
|
16167
16658
|
const data = response.insight;
|
|
16168
16659
|
const instance = new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16174,7 +16665,7 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16174
16665
|
watch(options) {
|
|
16175
16666
|
const variables = this._variables;
|
|
16176
16667
|
const includes = this._includes;
|
|
16177
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16668
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.InsightDocument, "insight", includes, variables);
|
|
16178
16669
|
const raw = this._syncEngine.watch(
|
|
16179
16670
|
queryDoc,
|
|
16180
16671
|
mergedVars,
|
|
@@ -16204,7 +16695,7 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16204
16695
|
}
|
|
16205
16696
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
16206
16697
|
chat(variables, builder) {
|
|
16207
|
-
const info = extractIncludeInfo(
|
|
16698
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
16208
16699
|
let children;
|
|
16209
16700
|
if (builder) {
|
|
16210
16701
|
const sub = new ChatSubBuilder();
|
|
@@ -16213,7 +16704,7 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16213
16704
|
}
|
|
16214
16705
|
this._includes.push({
|
|
16215
16706
|
fieldName: "chat",
|
|
16216
|
-
fragmentDoc:
|
|
16707
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatFragmentDoc,
|
|
16217
16708
|
variables,
|
|
16218
16709
|
isConnection: false,
|
|
16219
16710
|
isList: false,
|
|
@@ -16230,10 +16721,10 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16230
16721
|
}
|
|
16231
16722
|
/** Include reportMembers in this query (Smart Fetch — single HTTP request). */
|
|
16232
16723
|
reportMembers(variables) {
|
|
16233
|
-
const info = extractIncludeInfo(
|
|
16724
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
16234
16725
|
this._includes.push({
|
|
16235
16726
|
fieldName: "reportMembers",
|
|
16236
|
-
fragmentDoc:
|
|
16727
|
+
fragmentDoc: chunkL7HABILC_cjs.ReportMemberFragmentDoc,
|
|
16237
16728
|
variables,
|
|
16238
16729
|
isConnection: false,
|
|
16239
16730
|
isList: true,
|
|
@@ -16249,7 +16740,7 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16249
16740
|
}
|
|
16250
16741
|
/** Include reports in this query (Smart Fetch — single HTTP request). */
|
|
16251
16742
|
reports(variables, builder) {
|
|
16252
|
-
const info = extractIncludeInfo(
|
|
16743
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
16253
16744
|
let children;
|
|
16254
16745
|
if (builder) {
|
|
16255
16746
|
const sub = new ReportSubBuilder();
|
|
@@ -16258,7 +16749,7 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16258
16749
|
}
|
|
16259
16750
|
this._includes.push({
|
|
16260
16751
|
fieldName: "reports",
|
|
16261
|
-
fragmentDoc:
|
|
16752
|
+
fragmentDoc: chunkL7HABILC_cjs.ReportConnectionFragmentDoc,
|
|
16262
16753
|
variables,
|
|
16263
16754
|
isConnection: true,
|
|
16264
16755
|
isList: false,
|
|
@@ -16283,14 +16774,14 @@ var Insight_ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16283
16774
|
}
|
|
16284
16775
|
async fetch(options) {
|
|
16285
16776
|
const variables = this._variables;
|
|
16286
|
-
const response = await this._syncEngine.query(
|
|
16777
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Insight_ChatDocument, variables, "insight");
|
|
16287
16778
|
const data = response.insight?.chat;
|
|
16288
16779
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16289
16780
|
}
|
|
16290
16781
|
watch(options) {
|
|
16291
16782
|
const variables = this._variables;
|
|
16292
16783
|
const raw = this._syncEngine.watch(
|
|
16293
|
-
|
|
16784
|
+
chunkL7HABILC_cjs.Insight_ChatDocument,
|
|
16294
16785
|
variables,
|
|
16295
16786
|
"insight",
|
|
16296
16787
|
async (db) => {
|
|
@@ -16312,7 +16803,7 @@ var Insight_ReportMembersQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16312
16803
|
this._variables = variables;
|
|
16313
16804
|
}
|
|
16314
16805
|
async fetch(options) {
|
|
16315
|
-
const response = await this._syncEngine.query(
|
|
16806
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Insight_ReportMembersDocument, this._variables, "insight");
|
|
16316
16807
|
const data = response.insight?.reportMembers;
|
|
16317
16808
|
if (!Array.isArray(data)) return [];
|
|
16318
16809
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -16326,18 +16817,18 @@ var Insight_ReportsQuery = class _Insight_ReportsQuery extends chunk4QKWHQT2_cjs
|
|
|
16326
16817
|
}
|
|
16327
16818
|
async fetch(options) {
|
|
16328
16819
|
const variables = this._variables;
|
|
16329
|
-
const response = await this._syncEngine.query(
|
|
16820
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Insight_ReportsDocument, variables, "insight");
|
|
16330
16821
|
const data = response.insight?.reports;
|
|
16331
16822
|
return new ReportConnection(this._request, (conn, opts) => new _Insight_ReportsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
16332
16823
|
}
|
|
16333
16824
|
watch(options) {
|
|
16334
16825
|
const variables = this._variables;
|
|
16335
16826
|
const raw = this._syncEngine.watch(
|
|
16336
|
-
|
|
16827
|
+
chunkL7HABILC_cjs.Insight_ReportsDocument,
|
|
16337
16828
|
variables,
|
|
16338
16829
|
"insight",
|
|
16339
16830
|
async (db) => {
|
|
16340
|
-
const qr = await db._queryResults.get(buildQueryKey("insight", variables,
|
|
16831
|
+
const qr = await db._queryResults.get(buildQueryKey("insight", variables, chunkL7HABILC_cjs.Insight_ReportsDocument));
|
|
16341
16832
|
const nodes = qr ? await db.table("reports").bulkGet(qr.entityIds) : [];
|
|
16342
16833
|
return { insight: { reports: { __typename: "ReportConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
16343
16834
|
}
|
|
@@ -16357,7 +16848,7 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
16357
16848
|
}
|
|
16358
16849
|
async fetch(options) {
|
|
16359
16850
|
const variables = this._variables;
|
|
16360
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16851
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.InsightsDocument, "insights", this._includes, variables, true);
|
|
16361
16852
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "insights");
|
|
16362
16853
|
const data = response.insights;
|
|
16363
16854
|
const connection = new InsightConnection(this._request, (conn, opts) => new _InsightsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16374,7 +16865,7 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
16374
16865
|
const subscriptionId = crypto.randomUUID();
|
|
16375
16866
|
const includes = this._includes;
|
|
16376
16867
|
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) }] : []);
|
|
16377
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16868
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.InsightsDocument, "insights", includes, variables, true);
|
|
16378
16869
|
const raw = this._syncEngine.watch(
|
|
16379
16870
|
queryDoc,
|
|
16380
16871
|
mergedVars,
|
|
@@ -16409,7 +16900,7 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
16409
16900
|
}
|
|
16410
16901
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
16411
16902
|
chat(variables, builder) {
|
|
16412
|
-
const info = extractIncludeInfo(
|
|
16903
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
16413
16904
|
let children;
|
|
16414
16905
|
if (builder) {
|
|
16415
16906
|
const sub = new ChatSubBuilder();
|
|
@@ -16418,7 +16909,7 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
16418
16909
|
}
|
|
16419
16910
|
this._includes.push({
|
|
16420
16911
|
fieldName: "chat",
|
|
16421
|
-
fragmentDoc:
|
|
16912
|
+
fragmentDoc: chunkL7HABILC_cjs.ChatFragmentDoc,
|
|
16422
16913
|
variables,
|
|
16423
16914
|
isConnection: false,
|
|
16424
16915
|
isList: false,
|
|
@@ -16435,10 +16926,10 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
16435
16926
|
}
|
|
16436
16927
|
/** Include reportMembers in this query (Smart Fetch — single HTTP request). */
|
|
16437
16928
|
reportMembers(variables) {
|
|
16438
|
-
const info = extractIncludeInfo(
|
|
16929
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
16439
16930
|
this._includes.push({
|
|
16440
16931
|
fieldName: "reportMembers",
|
|
16441
|
-
fragmentDoc:
|
|
16932
|
+
fragmentDoc: chunkL7HABILC_cjs.ReportMemberFragmentDoc,
|
|
16442
16933
|
variables,
|
|
16443
16934
|
isConnection: false,
|
|
16444
16935
|
isList: true,
|
|
@@ -16454,7 +16945,7 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
16454
16945
|
}
|
|
16455
16946
|
/** Include reports in this query (Smart Fetch — single HTTP request). */
|
|
16456
16947
|
reports(variables, builder) {
|
|
16457
|
-
const info = extractIncludeInfo(
|
|
16948
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
16458
16949
|
let children;
|
|
16459
16950
|
if (builder) {
|
|
16460
16951
|
const sub = new ReportSubBuilder();
|
|
@@ -16463,7 +16954,7 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
16463
16954
|
}
|
|
16464
16955
|
this._includes.push({
|
|
16465
16956
|
fieldName: "reports",
|
|
16466
|
-
fragmentDoc:
|
|
16957
|
+
fragmentDoc: chunkL7HABILC_cjs.ReportConnectionFragmentDoc,
|
|
16467
16958
|
variables,
|
|
16468
16959
|
isConnection: true,
|
|
16469
16960
|
isList: false,
|
|
@@ -16489,7 +16980,7 @@ var IntegrationQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16489
16980
|
}
|
|
16490
16981
|
async fetch(options) {
|
|
16491
16982
|
const variables = this._variables;
|
|
16492
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16983
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.IntegrationDocument, "integration", this._includes, variables);
|
|
16493
16984
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integration");
|
|
16494
16985
|
const data = response.integration;
|
|
16495
16986
|
const instance = new Integration(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16501,7 +16992,7 @@ var IntegrationQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16501
16992
|
watch(options) {
|
|
16502
16993
|
const variables = this._variables;
|
|
16503
16994
|
const includes = this._includes;
|
|
16504
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16995
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.IntegrationDocument, "integration", includes, variables);
|
|
16505
16996
|
const raw = this._syncEngine.watch(
|
|
16506
16997
|
queryDoc,
|
|
16507
16998
|
mergedVars,
|
|
@@ -16531,10 +17022,10 @@ var IntegrationQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16531
17022
|
}
|
|
16532
17023
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
16533
17024
|
provider(variables) {
|
|
16534
|
-
const info = extractIncludeInfo(
|
|
17025
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
16535
17026
|
this._includes.push({
|
|
16536
17027
|
fieldName: "provider",
|
|
16537
|
-
fragmentDoc:
|
|
17028
|
+
fragmentDoc: chunkL7HABILC_cjs.IntegrationProviderFragmentDoc,
|
|
16538
17029
|
variables,
|
|
16539
17030
|
isConnection: false,
|
|
16540
17031
|
isList: false,
|
|
@@ -16557,14 +17048,14 @@ var Integration_ProviderQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16557
17048
|
}
|
|
16558
17049
|
async fetch(options) {
|
|
16559
17050
|
const variables = this._variables;
|
|
16560
|
-
const response = await this._syncEngine.query(
|
|
17051
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Integration_ProviderDocument, variables, "integration");
|
|
16561
17052
|
const data = response.integration?.provider;
|
|
16562
17053
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16563
17054
|
}
|
|
16564
17055
|
watch(options) {
|
|
16565
17056
|
const variables = this._variables;
|
|
16566
17057
|
const raw = this._syncEngine.watch(
|
|
16567
|
-
|
|
17058
|
+
chunkL7HABILC_cjs.Integration_ProviderDocument,
|
|
16568
17059
|
variables,
|
|
16569
17060
|
"integration",
|
|
16570
17061
|
async (db) => {
|
|
@@ -16587,14 +17078,14 @@ var Integration_Provider_CatalogQuery = class extends chunk4QKWHQT2_cjs.Request
|
|
|
16587
17078
|
}
|
|
16588
17079
|
async fetch(options) {
|
|
16589
17080
|
const variables = this._variables;
|
|
16590
|
-
const response = await this._syncEngine.query(
|
|
17081
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Integration_Provider_CatalogDocument, variables, "integration");
|
|
16591
17082
|
const data = response.integration?.provider?.catalog;
|
|
16592
17083
|
return data ? new IntegrationCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16593
17084
|
}
|
|
16594
17085
|
watch(options) {
|
|
16595
17086
|
const variables = this._variables;
|
|
16596
17087
|
const raw = this._syncEngine.watch(
|
|
16597
|
-
|
|
17088
|
+
chunkL7HABILC_cjs.Integration_Provider_CatalogDocument,
|
|
16598
17089
|
variables,
|
|
16599
17090
|
"integration",
|
|
16600
17091
|
async (db) => {
|
|
@@ -16618,7 +17109,7 @@ var IntegrationCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16618
17109
|
}
|
|
16619
17110
|
async fetch(options) {
|
|
16620
17111
|
const variables = this._variables;
|
|
16621
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17112
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.IntegrationCatalogDocument, "integrationCatalog", this._includes, variables);
|
|
16622
17113
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrationCatalog");
|
|
16623
17114
|
const data = response.integrationCatalog;
|
|
16624
17115
|
const instance = new IntegrationCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16630,7 +17121,7 @@ var IntegrationCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16630
17121
|
watch(options) {
|
|
16631
17122
|
const variables = this._variables;
|
|
16632
17123
|
const includes = this._includes;
|
|
16633
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17124
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.IntegrationCatalogDocument, "integrationCatalog", includes, variables);
|
|
16634
17125
|
const raw = this._syncEngine.watch(
|
|
16635
17126
|
queryDoc,
|
|
16636
17127
|
mergedVars,
|
|
@@ -16660,10 +17151,10 @@ var IntegrationCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16660
17151
|
}
|
|
16661
17152
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
16662
17153
|
provider(variables) {
|
|
16663
|
-
const info = extractIncludeInfo(
|
|
17154
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
16664
17155
|
this._includes.push({
|
|
16665
17156
|
fieldName: "provider",
|
|
16666
|
-
fragmentDoc:
|
|
17157
|
+
fragmentDoc: chunkL7HABILC_cjs.IntegrationProviderFragmentDoc,
|
|
16667
17158
|
variables,
|
|
16668
17159
|
isConnection: false,
|
|
16669
17160
|
isList: false,
|
|
@@ -16686,14 +17177,14 @@ var IntegrationCatalog_ProviderQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16686
17177
|
}
|
|
16687
17178
|
async fetch(options) {
|
|
16688
17179
|
const variables = this._variables;
|
|
16689
|
-
const response = await this._syncEngine.query(
|
|
17180
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.IntegrationCatalog_ProviderDocument, variables, "integrationCatalog");
|
|
16690
17181
|
const data = response.integrationCatalog?.provider;
|
|
16691
17182
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16692
17183
|
}
|
|
16693
17184
|
watch(options) {
|
|
16694
17185
|
const variables = this._variables;
|
|
16695
17186
|
const raw = this._syncEngine.watch(
|
|
16696
|
-
|
|
17187
|
+
chunkL7HABILC_cjs.IntegrationCatalog_ProviderDocument,
|
|
16697
17188
|
variables,
|
|
16698
17189
|
"integrationCatalog",
|
|
16699
17190
|
async (db) => {
|
|
@@ -16710,7 +17201,7 @@ var IntegrationCatalog_ProviderQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16710
17201
|
};
|
|
16711
17202
|
var IntegrationCatalogToolsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
16712
17203
|
async fetch(variables) {
|
|
16713
|
-
const response = await this._request(
|
|
17204
|
+
const response = await this._request(chunkL7HABILC_cjs.IntegrationCatalogToolsDocument, variables);
|
|
16714
17205
|
return response.integrationCatalogTools;
|
|
16715
17206
|
}
|
|
16716
17207
|
};
|
|
@@ -16723,7 +17214,7 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk4QKW
|
|
|
16723
17214
|
}
|
|
16724
17215
|
async fetch(options) {
|
|
16725
17216
|
const variables = this._variables;
|
|
16726
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17217
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.IntegrationCatalogsDocument, "integrationCatalogs", this._includes, variables, true);
|
|
16727
17218
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrationCatalogs");
|
|
16728
17219
|
const data = response.integrationCatalogs;
|
|
16729
17220
|
const connection = new IntegrationCatalogConnection(this._request, (conn, opts) => new _IntegrationCatalogsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16740,7 +17231,7 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk4QKW
|
|
|
16740
17231
|
const subscriptionId = crypto.randomUUID();
|
|
16741
17232
|
const includes = this._includes;
|
|
16742
17233
|
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) }] : []);
|
|
16743
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17234
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.IntegrationCatalogsDocument, "integrationCatalogs", includes, variables, true);
|
|
16744
17235
|
const raw = this._syncEngine.watch(
|
|
16745
17236
|
queryDoc,
|
|
16746
17237
|
mergedVars,
|
|
@@ -16775,10 +17266,10 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk4QKW
|
|
|
16775
17266
|
}
|
|
16776
17267
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
16777
17268
|
provider(variables) {
|
|
16778
|
-
const info = extractIncludeInfo(
|
|
17269
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
16779
17270
|
this._includes.push({
|
|
16780
17271
|
fieldName: "provider",
|
|
16781
|
-
fragmentDoc:
|
|
17272
|
+
fragmentDoc: chunkL7HABILC_cjs.IntegrationProviderFragmentDoc,
|
|
16782
17273
|
variables,
|
|
16783
17274
|
isConnection: false,
|
|
16784
17275
|
isList: false,
|
|
@@ -16802,7 +17293,7 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
16802
17293
|
}
|
|
16803
17294
|
async fetch(options) {
|
|
16804
17295
|
const variables = this._variables;
|
|
16805
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17296
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.IntegrationsDocument, "integrations", this._includes, variables, true);
|
|
16806
17297
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrations");
|
|
16807
17298
|
const data = response.integrations;
|
|
16808
17299
|
const connection = new IntegrationConnection(this._request, (conn, opts) => new _IntegrationsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16819,7 +17310,7 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
16819
17310
|
const subscriptionId = crypto.randomUUID();
|
|
16820
17311
|
const includes = this._includes;
|
|
16821
17312
|
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) }] : []);
|
|
16822
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17313
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.IntegrationsDocument, "integrations", includes, variables, true);
|
|
16823
17314
|
const raw = this._syncEngine.watch(
|
|
16824
17315
|
queryDoc,
|
|
16825
17316
|
mergedVars,
|
|
@@ -16854,10 +17345,10 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
16854
17345
|
}
|
|
16855
17346
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
16856
17347
|
provider(variables) {
|
|
16857
|
-
const info = extractIncludeInfo(
|
|
17348
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
16858
17349
|
this._includes.push({
|
|
16859
17350
|
fieldName: "provider",
|
|
16860
|
-
fragmentDoc:
|
|
17351
|
+
fragmentDoc: chunkL7HABILC_cjs.IntegrationProviderFragmentDoc,
|
|
16861
17352
|
variables,
|
|
16862
17353
|
isConnection: false,
|
|
16863
17354
|
isList: false,
|
|
@@ -16881,7 +17372,7 @@ var InterpretationsQuery = class _InterpretationsQuery extends chunk4QKWHQT2_cjs
|
|
|
16881
17372
|
}
|
|
16882
17373
|
async fetch(options) {
|
|
16883
17374
|
const variables = this._variables;
|
|
16884
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17375
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.InterpretationsDocument, "interpretations", this._includes, variables, true);
|
|
16885
17376
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "interpretations");
|
|
16886
17377
|
const data = response.interpretations;
|
|
16887
17378
|
const connection = new InterpretationConnection(this._request, (conn, opts) => new _InterpretationsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16898,7 +17389,7 @@ var InterpretationsQuery = class _InterpretationsQuery extends chunk4QKWHQT2_cjs
|
|
|
16898
17389
|
const subscriptionId = crypto.randomUUID();
|
|
16899
17390
|
const includes = this._includes;
|
|
16900
17391
|
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) }] : []);
|
|
16901
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17392
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.InterpretationsDocument, "interpretations", includes, variables, true);
|
|
16902
17393
|
const raw = this._syncEngine.watch(
|
|
16903
17394
|
queryDoc,
|
|
16904
17395
|
mergedVars,
|
|
@@ -16941,7 +17432,7 @@ var NotificationQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16941
17432
|
}
|
|
16942
17433
|
async fetch(options) {
|
|
16943
17434
|
const variables = this._variables;
|
|
16944
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17435
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.NotificationDocument, "notification", this._includes, variables);
|
|
16945
17436
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notification");
|
|
16946
17437
|
const data = response.notification;
|
|
16947
17438
|
const instance = new Notification(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16953,7 +17444,7 @@ var NotificationQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16953
17444
|
watch(options) {
|
|
16954
17445
|
const variables = this._variables;
|
|
16955
17446
|
const includes = this._includes;
|
|
16956
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17447
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.NotificationDocument, "notification", includes, variables);
|
|
16957
17448
|
const raw = this._syncEngine.watch(
|
|
16958
17449
|
queryDoc,
|
|
16959
17450
|
mergedVars,
|
|
@@ -16991,7 +17482,7 @@ var NotificationsQuery = class _NotificationsQuery extends chunk4QKWHQT2_cjs.Req
|
|
|
16991
17482
|
}
|
|
16992
17483
|
async fetch(options) {
|
|
16993
17484
|
const variables = this._variables;
|
|
16994
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17485
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.NotificationsDocument, "notifications", this._includes, variables, true);
|
|
16995
17486
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notifications");
|
|
16996
17487
|
const data = response.notifications;
|
|
16997
17488
|
const connection = new NotificationConnection(this._request, (conn, opts) => new _NotificationsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -17008,7 +17499,7 @@ var NotificationsQuery = class _NotificationsQuery extends chunk4QKWHQT2_cjs.Req
|
|
|
17008
17499
|
const subscriptionId = crypto.randomUUID();
|
|
17009
17500
|
const includes = this._includes;
|
|
17010
17501
|
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) }] : []);
|
|
17011
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17502
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.NotificationsDocument, "notifications", includes, variables, true);
|
|
17012
17503
|
const raw = this._syncEngine.watch(
|
|
17013
17504
|
queryDoc,
|
|
17014
17505
|
mergedVars,
|
|
@@ -17050,7 +17541,7 @@ var NotificationsByReferenceQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17050
17541
|
this._variables = variables;
|
|
17051
17542
|
}
|
|
17052
17543
|
async fetch(options) {
|
|
17053
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17544
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.NotificationsByReferenceDocument, "notificationsByReference", this._includes, this._variables);
|
|
17054
17545
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notificationsByReference");
|
|
17055
17546
|
const data = response.notificationsByReference;
|
|
17056
17547
|
if (!Array.isArray(data)) return [];
|
|
@@ -17066,7 +17557,7 @@ var PrivacyStatsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17066
17557
|
}
|
|
17067
17558
|
async fetch(options) {
|
|
17068
17559
|
const variables = this._variables;
|
|
17069
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17560
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.PrivacyStatsDocument, "privacyStats", this._includes, variables);
|
|
17070
17561
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "privacyStats");
|
|
17071
17562
|
const data = response.privacyStats;
|
|
17072
17563
|
const instance = new PrivacyStats(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17078,7 +17569,7 @@ var PrivacyStatsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17078
17569
|
watch(options) {
|
|
17079
17570
|
const variables = this._variables;
|
|
17080
17571
|
const includes = this._includes;
|
|
17081
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17572
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.PrivacyStatsDocument, "privacyStats", includes, variables);
|
|
17082
17573
|
const raw = this._syncEngine.watch(
|
|
17083
17574
|
queryDoc,
|
|
17084
17575
|
mergedVars,
|
|
@@ -17116,7 +17607,7 @@ var PulseAppSummaryQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17116
17607
|
}
|
|
17117
17608
|
async fetch(options) {
|
|
17118
17609
|
const variables = this._variables;
|
|
17119
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17610
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.PulseAppSummaryDocument, "pulseAppSummary", this._includes, variables);
|
|
17120
17611
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseAppSummary");
|
|
17121
17612
|
const data = response.pulseAppSummary;
|
|
17122
17613
|
if (!data) return void 0;
|
|
@@ -17129,7 +17620,7 @@ var PulseAppSummaryQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17129
17620
|
watch(options) {
|
|
17130
17621
|
const variables = this._variables;
|
|
17131
17622
|
const includes = this._includes;
|
|
17132
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17623
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.PulseAppSummaryDocument, "pulseAppSummary", includes, variables);
|
|
17133
17624
|
const raw = this._syncEngine.watch(
|
|
17134
17625
|
queryDoc,
|
|
17135
17626
|
mergedVars,
|
|
@@ -17168,7 +17659,7 @@ var PulseEventQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17168
17659
|
}
|
|
17169
17660
|
async fetch(options) {
|
|
17170
17661
|
const variables = this._variables;
|
|
17171
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17662
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.PulseEventDocument, "pulseEvent", this._includes, variables);
|
|
17172
17663
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEvent");
|
|
17173
17664
|
const data = response.pulseEvent;
|
|
17174
17665
|
const instance = new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17180,7 +17671,7 @@ var PulseEventQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17180
17671
|
watch(options) {
|
|
17181
17672
|
const variables = this._variables;
|
|
17182
17673
|
const includes = this._includes;
|
|
17183
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17674
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.PulseEventDocument, "pulseEvent", includes, variables);
|
|
17184
17675
|
const raw = this._syncEngine.watch(
|
|
17185
17676
|
queryDoc,
|
|
17186
17677
|
mergedVars,
|
|
@@ -17210,7 +17701,7 @@ var PulseEventQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17210
17701
|
}
|
|
17211
17702
|
/** Include integration in this query (Smart Fetch — single HTTP request). */
|
|
17212
17703
|
integration(variables, builder) {
|
|
17213
|
-
const info = extractIncludeInfo(
|
|
17704
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
17214
17705
|
let children;
|
|
17215
17706
|
if (builder) {
|
|
17216
17707
|
const sub = new IntegrationSubBuilder();
|
|
@@ -17219,7 +17710,7 @@ var PulseEventQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17219
17710
|
}
|
|
17220
17711
|
this._includes.push({
|
|
17221
17712
|
fieldName: "integration",
|
|
17222
|
-
fragmentDoc:
|
|
17713
|
+
fragmentDoc: chunkL7HABILC_cjs.IntegrationFragmentDoc,
|
|
17223
17714
|
variables,
|
|
17224
17715
|
isConnection: false,
|
|
17225
17716
|
isList: false,
|
|
@@ -17227,7 +17718,7 @@ var PulseEventQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17227
17718
|
fieldArguments: info.fieldArguments,
|
|
17228
17719
|
syncMetadata: {
|
|
17229
17720
|
entityType: "integrations",
|
|
17230
|
-
requiredFields: ["createdAt", "id", "providerKey", "status", "updatedAt"]
|
|
17721
|
+
requiredFields: ["createdAt", "id", "providerKey", "status", "unreadPulseCount", "updatedAt"]
|
|
17231
17722
|
},
|
|
17232
17723
|
children,
|
|
17233
17724
|
modelFactory: (req, data, se, bu) => new Integration(req, data, se, bu)
|
|
@@ -17243,14 +17734,14 @@ var PulseEvent_IntegrationQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17243
17734
|
}
|
|
17244
17735
|
async fetch(options) {
|
|
17245
17736
|
const variables = this._variables;
|
|
17246
|
-
const response = await this._syncEngine.query(
|
|
17737
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.PulseEvent_IntegrationDocument, variables, "pulseEvent");
|
|
17247
17738
|
const data = response.pulseEvent?.integration;
|
|
17248
17739
|
return data ? new Integration(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17249
17740
|
}
|
|
17250
17741
|
watch(options) {
|
|
17251
17742
|
const variables = this._variables;
|
|
17252
17743
|
const raw = this._syncEngine.watch(
|
|
17253
|
-
|
|
17744
|
+
chunkL7HABILC_cjs.PulseEvent_IntegrationDocument,
|
|
17254
17745
|
variables,
|
|
17255
17746
|
"pulseEvent",
|
|
17256
17747
|
async (db) => {
|
|
@@ -17273,14 +17764,14 @@ var PulseEvent_Integration_ProviderQuery = class extends chunk4QKWHQT2_cjs.Reque
|
|
|
17273
17764
|
}
|
|
17274
17765
|
async fetch(options) {
|
|
17275
17766
|
const variables = this._variables;
|
|
17276
|
-
const response = await this._syncEngine.query(
|
|
17767
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.PulseEvent_Integration_ProviderDocument, variables, "pulseEvent");
|
|
17277
17768
|
const data = response.pulseEvent?.integration?.provider;
|
|
17278
17769
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17279
17770
|
}
|
|
17280
17771
|
watch(options) {
|
|
17281
17772
|
const variables = this._variables;
|
|
17282
17773
|
const raw = this._syncEngine.watch(
|
|
17283
|
-
|
|
17774
|
+
chunkL7HABILC_cjs.PulseEvent_Integration_ProviderDocument,
|
|
17284
17775
|
variables,
|
|
17285
17776
|
"pulseEvent",
|
|
17286
17777
|
async (db) => {
|
|
@@ -17295,56 +17786,6 @@ var PulseEvent_Integration_ProviderQuery = class extends chunk4QKWHQT2_cjs.Reque
|
|
|
17295
17786
|
});
|
|
17296
17787
|
}
|
|
17297
17788
|
};
|
|
17298
|
-
var PulseEventStatsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
17299
|
-
_variables;
|
|
17300
|
-
_includes = [];
|
|
17301
|
-
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
17302
|
-
super(request, syncEngine, void 0, baseUrl);
|
|
17303
|
-
this._variables = variables;
|
|
17304
|
-
}
|
|
17305
|
-
async fetch(options) {
|
|
17306
|
-
const variables = this._variables;
|
|
17307
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkYMIRF4SC_cjs.PulseEventStatsDocument, "pulseEventStats", this._includes, variables);
|
|
17308
|
-
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEventStats");
|
|
17309
|
-
const data = response.pulseEventStats;
|
|
17310
|
-
const instance = new PulseEventStatsModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
17311
|
-
if (this._includes.length > 0) {
|
|
17312
|
-
hydrateIncludes(instance, data, this._includes, this._request, this._syncEngine, this._baseUrl);
|
|
17313
|
-
}
|
|
17314
|
-
return instance;
|
|
17315
|
-
}
|
|
17316
|
-
watch(options) {
|
|
17317
|
-
const variables = this._variables;
|
|
17318
|
-
const includes = this._includes;
|
|
17319
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkYMIRF4SC_cjs.PulseEventStatsDocument, "pulseEventStats", includes, variables);
|
|
17320
|
-
const raw = this._syncEngine.watch(
|
|
17321
|
-
queryDoc,
|
|
17322
|
-
mergedVars,
|
|
17323
|
-
"pulseEventStats",
|
|
17324
|
-
async (db) => {
|
|
17325
|
-
const vars = variables;
|
|
17326
|
-
const pkField = getPrimaryKeyField("pulseEventStatsModels");
|
|
17327
|
-
const entityKey = Array.isArray(pkField) ? pkField.map((field) => vars?.[field]) : vars?.[pkField];
|
|
17328
|
-
const hasEntityKey = Array.isArray(entityKey) ? entityKey.every((part) => part !== void 0 && part !== null) : entityKey !== void 0 && entityKey !== null;
|
|
17329
|
-
const entity = hasEntityKey ? await db.table("pulseEventStatsModels").get(entityKey) : void 0;
|
|
17330
|
-
if (includes.length > 0 && entity) {
|
|
17331
|
-
const parentId = Array.isArray(entityKey) ? entityKey.map((part) => String(part)).join(":") : String(entityKey);
|
|
17332
|
-
const result = await reconstructEntity(db, "pulseEventStatsModels", parentId, includes);
|
|
17333
|
-
return { pulseEventStats: result };
|
|
17334
|
-
}
|
|
17335
|
-
return { pulseEventStats: entity ?? null };
|
|
17336
|
-
}
|
|
17337
|
-
);
|
|
17338
|
-
return new MappedDvinaQueryRef(raw, (response) => {
|
|
17339
|
-
const data = response.pulseEventStats;
|
|
17340
|
-
const instance = new PulseEventStatsModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
17341
|
-
if (includes.length > 0) {
|
|
17342
|
-
hydrateIncludes(instance, data, includes, this._request, this._syncEngine, this._baseUrl);
|
|
17343
|
-
}
|
|
17344
|
-
return instance;
|
|
17345
|
-
});
|
|
17346
|
-
}
|
|
17347
|
-
};
|
|
17348
17789
|
var PulseEventsQuery = class _PulseEventsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
17349
17790
|
_variables;
|
|
17350
17791
|
_includes = [];
|
|
@@ -17354,7 +17795,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk4QKWHQT2_cjs.Request
|
|
|
17354
17795
|
}
|
|
17355
17796
|
async fetch(options) {
|
|
17356
17797
|
const variables = this._variables;
|
|
17357
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17798
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.PulseEventsDocument, "pulseEvents", this._includes, variables, true);
|
|
17358
17799
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEvents");
|
|
17359
17800
|
const data = response.pulseEvents;
|
|
17360
17801
|
const connection = new PulseEventConnection(this._request, (conn, opts) => new _PulseEventsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -17371,7 +17812,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk4QKWHQT2_cjs.Request
|
|
|
17371
17812
|
const subscriptionId = crypto.randomUUID();
|
|
17372
17813
|
const includes = this._includes;
|
|
17373
17814
|
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) }] : []);
|
|
17374
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17815
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.PulseEventsDocument, "pulseEvents", includes, variables, true);
|
|
17375
17816
|
const raw = this._syncEngine.watch(
|
|
17376
17817
|
queryDoc,
|
|
17377
17818
|
mergedVars,
|
|
@@ -17406,7 +17847,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk4QKWHQT2_cjs.Request
|
|
|
17406
17847
|
}
|
|
17407
17848
|
/** Include integration in this query (Smart Fetch — single HTTP request). */
|
|
17408
17849
|
integration(variables, builder) {
|
|
17409
|
-
const info = extractIncludeInfo(
|
|
17850
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
17410
17851
|
let children;
|
|
17411
17852
|
if (builder) {
|
|
17412
17853
|
const sub = new IntegrationSubBuilder();
|
|
@@ -17415,7 +17856,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk4QKWHQT2_cjs.Request
|
|
|
17415
17856
|
}
|
|
17416
17857
|
this._includes.push({
|
|
17417
17858
|
fieldName: "integration",
|
|
17418
|
-
fragmentDoc:
|
|
17859
|
+
fragmentDoc: chunkL7HABILC_cjs.IntegrationFragmentDoc,
|
|
17419
17860
|
variables,
|
|
17420
17861
|
isConnection: false,
|
|
17421
17862
|
isList: false,
|
|
@@ -17423,7 +17864,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk4QKWHQT2_cjs.Request
|
|
|
17423
17864
|
fieldArguments: info.fieldArguments,
|
|
17424
17865
|
syncMetadata: {
|
|
17425
17866
|
entityType: "integrations",
|
|
17426
|
-
requiredFields: ["createdAt", "id", "providerKey", "status", "updatedAt"]
|
|
17867
|
+
requiredFields: ["createdAt", "id", "providerKey", "status", "unreadPulseCount", "updatedAt"]
|
|
17427
17868
|
},
|
|
17428
17869
|
children,
|
|
17429
17870
|
modelFactory: (req, data, se, bu) => new Integration(req, data, se, bu)
|
|
@@ -17439,7 +17880,7 @@ var PulseTriggerSettingsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17439
17880
|
this._variables = variables;
|
|
17440
17881
|
}
|
|
17441
17882
|
async fetch(options) {
|
|
17442
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17883
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.PulseTriggerSettingsDocument, "pulseTriggerSettings", this._includes, this._variables);
|
|
17443
17884
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseTriggerSettings");
|
|
17444
17885
|
const data = response.pulseTriggerSettings;
|
|
17445
17886
|
if (!Array.isArray(data)) return [];
|
|
@@ -17448,19 +17889,19 @@ var PulseTriggerSettingsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17448
17889
|
};
|
|
17449
17890
|
var QueryQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
17450
17891
|
async fetch(variables) {
|
|
17451
|
-
const response = await this._request(
|
|
17892
|
+
const response = await this._request(chunkL7HABILC_cjs.QueryDocument, variables);
|
|
17452
17893
|
return response.query;
|
|
17453
17894
|
}
|
|
17454
17895
|
};
|
|
17455
17896
|
var QueryWithInsightIdQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
17456
17897
|
async fetch(variables) {
|
|
17457
|
-
const response = await this._request(
|
|
17898
|
+
const response = await this._request(chunkL7HABILC_cjs.QueryWithInsightIdDocument, variables);
|
|
17458
17899
|
return response.queryWithInsightId;
|
|
17459
17900
|
}
|
|
17460
17901
|
};
|
|
17461
17902
|
var QueryWithMessageIdQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
17462
17903
|
async fetch(variables) {
|
|
17463
|
-
const response = await this._request(
|
|
17904
|
+
const response = await this._request(chunkL7HABILC_cjs.QueryWithMessageIdDocument, variables);
|
|
17464
17905
|
return response.queryWithMessageId;
|
|
17465
17906
|
}
|
|
17466
17907
|
};
|
|
@@ -17473,7 +17914,7 @@ var ReportQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17473
17914
|
}
|
|
17474
17915
|
async fetch(options) {
|
|
17475
17916
|
const variables = this._variables;
|
|
17476
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17917
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ReportDocument, "report", this._includes, variables);
|
|
17477
17918
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "report");
|
|
17478
17919
|
const data = response.report;
|
|
17479
17920
|
const instance = new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17485,7 +17926,7 @@ var ReportQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17485
17926
|
watch(options) {
|
|
17486
17927
|
const variables = this._variables;
|
|
17487
17928
|
const includes = this._includes;
|
|
17488
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17929
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ReportDocument, "report", includes, variables);
|
|
17489
17930
|
const raw = this._syncEngine.watch(
|
|
17490
17931
|
queryDoc,
|
|
17491
17932
|
mergedVars,
|
|
@@ -17515,7 +17956,7 @@ var ReportQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17515
17956
|
}
|
|
17516
17957
|
/** Include insights in this query (Smart Fetch — single HTTP request). */
|
|
17517
17958
|
insights(variables, builder) {
|
|
17518
|
-
const info = extractIncludeInfo(
|
|
17959
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
17519
17960
|
let children;
|
|
17520
17961
|
if (builder) {
|
|
17521
17962
|
const sub = new InsightSubBuilder();
|
|
@@ -17524,7 +17965,7 @@ var ReportQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17524
17965
|
}
|
|
17525
17966
|
this._includes.push({
|
|
17526
17967
|
fieldName: "insights",
|
|
17527
|
-
fragmentDoc:
|
|
17968
|
+
fragmentDoc: chunkL7HABILC_cjs.InsightConnectionFragmentDoc,
|
|
17528
17969
|
variables,
|
|
17529
17970
|
isConnection: true,
|
|
17530
17971
|
isList: false,
|
|
@@ -17542,10 +17983,10 @@ var ReportQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17542
17983
|
}
|
|
17543
17984
|
/** Include layout in this query (Smart Fetch — single HTTP request). */
|
|
17544
17985
|
layout(variables) {
|
|
17545
|
-
const info = extractIncludeInfo(
|
|
17986
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
17546
17987
|
this._includes.push({
|
|
17547
17988
|
fieldName: "layout",
|
|
17548
|
-
fragmentDoc:
|
|
17989
|
+
fragmentDoc: chunkL7HABILC_cjs.ReportMemberFragmentDoc,
|
|
17549
17990
|
variables,
|
|
17550
17991
|
isConnection: false,
|
|
17551
17992
|
isList: true,
|
|
@@ -17568,18 +18009,18 @@ var Report_InsightsQuery = class _Report_InsightsQuery extends chunk4QKWHQT2_cjs
|
|
|
17568
18009
|
}
|
|
17569
18010
|
async fetch(options) {
|
|
17570
18011
|
const variables = this._variables;
|
|
17571
|
-
const response = await this._syncEngine.query(
|
|
18012
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Report_InsightsDocument, variables, "report");
|
|
17572
18013
|
const data = response.report?.insights;
|
|
17573
18014
|
return new InsightConnection(this._request, (conn, opts) => new _Report_InsightsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
17574
18015
|
}
|
|
17575
18016
|
watch(options) {
|
|
17576
18017
|
const variables = this._variables;
|
|
17577
18018
|
const raw = this._syncEngine.watch(
|
|
17578
|
-
|
|
18019
|
+
chunkL7HABILC_cjs.Report_InsightsDocument,
|
|
17579
18020
|
variables,
|
|
17580
18021
|
"report",
|
|
17581
18022
|
async (db) => {
|
|
17582
|
-
const qr = await db._queryResults.get(buildQueryKey("report", variables,
|
|
18023
|
+
const qr = await db._queryResults.get(buildQueryKey("report", variables, chunkL7HABILC_cjs.Report_InsightsDocument));
|
|
17583
18024
|
const nodes = qr ? await db.table("insights").bulkGet(qr.entityIds) : [];
|
|
17584
18025
|
return { report: { insights: { __typename: "InsightConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
17585
18026
|
}
|
|
@@ -17597,7 +18038,7 @@ var Report_LayoutQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17597
18038
|
this._variables = variables;
|
|
17598
18039
|
}
|
|
17599
18040
|
async fetch(options) {
|
|
17600
|
-
const response = await this._syncEngine.query(
|
|
18041
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Report_LayoutDocument, this._variables, "report");
|
|
17601
18042
|
const data = response.report?.layout;
|
|
17602
18043
|
if (!Array.isArray(data)) return [];
|
|
17603
18044
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -17612,7 +18053,7 @@ var ReportsQuery = class _ReportsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
17612
18053
|
}
|
|
17613
18054
|
async fetch(options) {
|
|
17614
18055
|
const variables = this._variables;
|
|
17615
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18056
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ReportsDocument, "reports", this._includes, variables, true);
|
|
17616
18057
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "reports");
|
|
17617
18058
|
const data = response.reports;
|
|
17618
18059
|
const connection = new ReportConnection(this._request, (conn, opts) => new _ReportsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -17629,7 +18070,7 @@ var ReportsQuery = class _ReportsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
17629
18070
|
const subscriptionId = crypto.randomUUID();
|
|
17630
18071
|
const includes = this._includes;
|
|
17631
18072
|
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) }] : []);
|
|
17632
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18073
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.ReportsDocument, "reports", includes, variables, true);
|
|
17633
18074
|
const raw = this._syncEngine.watch(
|
|
17634
18075
|
queryDoc,
|
|
17635
18076
|
mergedVars,
|
|
@@ -17664,7 +18105,7 @@ var ReportsQuery = class _ReportsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
17664
18105
|
}
|
|
17665
18106
|
/** Include insights in this query (Smart Fetch — single HTTP request). */
|
|
17666
18107
|
insights(variables, builder) {
|
|
17667
|
-
const info = extractIncludeInfo(
|
|
18108
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
17668
18109
|
let children;
|
|
17669
18110
|
if (builder) {
|
|
17670
18111
|
const sub = new InsightSubBuilder();
|
|
@@ -17673,7 +18114,7 @@ var ReportsQuery = class _ReportsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
17673
18114
|
}
|
|
17674
18115
|
this._includes.push({
|
|
17675
18116
|
fieldName: "insights",
|
|
17676
|
-
fragmentDoc:
|
|
18117
|
+
fragmentDoc: chunkL7HABILC_cjs.InsightConnectionFragmentDoc,
|
|
17677
18118
|
variables,
|
|
17678
18119
|
isConnection: true,
|
|
17679
18120
|
isList: false,
|
|
@@ -17691,10 +18132,10 @@ var ReportsQuery = class _ReportsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
17691
18132
|
}
|
|
17692
18133
|
/** Include layout in this query (Smart Fetch — single HTTP request). */
|
|
17693
18134
|
layout(variables) {
|
|
17694
|
-
const info = extractIncludeInfo(
|
|
18135
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
17695
18136
|
this._includes.push({
|
|
17696
18137
|
fieldName: "layout",
|
|
17697
|
-
fragmentDoc:
|
|
18138
|
+
fragmentDoc: chunkL7HABILC_cjs.ReportMemberFragmentDoc,
|
|
17698
18139
|
variables,
|
|
17699
18140
|
isConnection: false,
|
|
17700
18141
|
isList: true,
|
|
@@ -17717,7 +18158,7 @@ var SearchQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17717
18158
|
this._variables = variables;
|
|
17718
18159
|
}
|
|
17719
18160
|
async fetch(options) {
|
|
17720
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18161
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.SearchDocument, "search", this._includes, this._variables);
|
|
17721
18162
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "search");
|
|
17722
18163
|
const data = response.search;
|
|
17723
18164
|
if (!Array.isArray(data)) return [];
|
|
@@ -17733,7 +18174,7 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17733
18174
|
}
|
|
17734
18175
|
async fetch(options) {
|
|
17735
18176
|
const variables = this._variables;
|
|
17736
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18177
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.TableDocument, "table", this._includes, variables);
|
|
17737
18178
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "table");
|
|
17738
18179
|
const data = response.table;
|
|
17739
18180
|
const instance = new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17745,7 +18186,7 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17745
18186
|
watch(options) {
|
|
17746
18187
|
const variables = this._variables;
|
|
17747
18188
|
const includes = this._includes;
|
|
17748
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18189
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.TableDocument, "table", includes, variables);
|
|
17749
18190
|
const raw = this._syncEngine.watch(
|
|
17750
18191
|
queryDoc,
|
|
17751
18192
|
mergedVars,
|
|
@@ -17775,7 +18216,7 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17775
18216
|
}
|
|
17776
18217
|
/** Include database in this query (Smart Fetch — single HTTP request). */
|
|
17777
18218
|
database(variables, builder) {
|
|
17778
|
-
const info = extractIncludeInfo(
|
|
18219
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
17779
18220
|
let children;
|
|
17780
18221
|
if (builder) {
|
|
17781
18222
|
const sub = new DatabaseSubBuilder();
|
|
@@ -17784,7 +18225,7 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17784
18225
|
}
|
|
17785
18226
|
this._includes.push({
|
|
17786
18227
|
fieldName: "database",
|
|
17787
|
-
fragmentDoc:
|
|
18228
|
+
fragmentDoc: chunkL7HABILC_cjs.DatabaseFragmentDoc,
|
|
17788
18229
|
variables,
|
|
17789
18230
|
isConnection: false,
|
|
17790
18231
|
isList: false,
|
|
@@ -17801,7 +18242,7 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17801
18242
|
}
|
|
17802
18243
|
/** Include document in this query (Smart Fetch — single HTTP request). */
|
|
17803
18244
|
document(variables, builder) {
|
|
17804
|
-
const info = extractIncludeInfo(
|
|
18245
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
17805
18246
|
let children;
|
|
17806
18247
|
if (builder) {
|
|
17807
18248
|
const sub = new DocumentSubBuilder();
|
|
@@ -17810,7 +18251,7 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17810
18251
|
}
|
|
17811
18252
|
this._includes.push({
|
|
17812
18253
|
fieldName: "document",
|
|
17813
|
-
fragmentDoc:
|
|
18254
|
+
fragmentDoc: chunkL7HABILC_cjs.DocumentFragmentDoc,
|
|
17814
18255
|
variables,
|
|
17815
18256
|
isConnection: false,
|
|
17816
18257
|
isList: false,
|
|
@@ -17827,10 +18268,10 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17827
18268
|
}
|
|
17828
18269
|
/** Include fromRelations in this query (Smart Fetch — single HTTP request). */
|
|
17829
18270
|
fromRelations(variables) {
|
|
17830
|
-
const info = extractIncludeInfo(
|
|
18271
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
17831
18272
|
this._includes.push({
|
|
17832
18273
|
fieldName: "fromRelations",
|
|
17833
|
-
fragmentDoc:
|
|
18274
|
+
fragmentDoc: chunkL7HABILC_cjs.RelationFragmentDoc,
|
|
17834
18275
|
variables,
|
|
17835
18276
|
isConnection: false,
|
|
17836
18277
|
isList: true,
|
|
@@ -17846,10 +18287,10 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17846
18287
|
}
|
|
17847
18288
|
/** Include toRelations in this query (Smart Fetch — single HTTP request). */
|
|
17848
18289
|
toRelations(variables) {
|
|
17849
|
-
const info = extractIncludeInfo(
|
|
18290
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
17850
18291
|
this._includes.push({
|
|
17851
18292
|
fieldName: "toRelations",
|
|
17852
|
-
fragmentDoc:
|
|
18293
|
+
fragmentDoc: chunkL7HABILC_cjs.RelationFragmentDoc,
|
|
17853
18294
|
variables,
|
|
17854
18295
|
isConnection: false,
|
|
17855
18296
|
isList: true,
|
|
@@ -17872,14 +18313,14 @@ var Table_DatabaseQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17872
18313
|
}
|
|
17873
18314
|
async fetch(options) {
|
|
17874
18315
|
const variables = this._variables;
|
|
17875
|
-
const response = await this._syncEngine.query(
|
|
18316
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Table_DatabaseDocument, variables, "table");
|
|
17876
18317
|
const data = response.table?.database;
|
|
17877
18318
|
return data ? new Database(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17878
18319
|
}
|
|
17879
18320
|
watch(options) {
|
|
17880
18321
|
const variables = this._variables;
|
|
17881
18322
|
const raw = this._syncEngine.watch(
|
|
17882
|
-
|
|
18323
|
+
chunkL7HABILC_cjs.Table_DatabaseDocument,
|
|
17883
18324
|
variables,
|
|
17884
18325
|
"table",
|
|
17885
18326
|
async (db) => {
|
|
@@ -17902,14 +18343,14 @@ var Table_Database_EngineQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17902
18343
|
}
|
|
17903
18344
|
async fetch(options) {
|
|
17904
18345
|
const variables = this._variables;
|
|
17905
|
-
const response = await this._syncEngine.query(
|
|
18346
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Table_Database_EngineDocument, variables, "table");
|
|
17906
18347
|
const data = response.table?.database?.engine;
|
|
17907
18348
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17908
18349
|
}
|
|
17909
18350
|
watch(options) {
|
|
17910
18351
|
const variables = this._variables;
|
|
17911
18352
|
const raw = this._syncEngine.watch(
|
|
17912
|
-
|
|
18353
|
+
chunkL7HABILC_cjs.Table_Database_EngineDocument,
|
|
17913
18354
|
variables,
|
|
17914
18355
|
"table",
|
|
17915
18356
|
async (db) => {
|
|
@@ -17932,14 +18373,14 @@ var Table_DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17932
18373
|
}
|
|
17933
18374
|
async fetch(options) {
|
|
17934
18375
|
const variables = this._variables;
|
|
17935
|
-
const response = await this._syncEngine.query(
|
|
18376
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Table_DocumentDocument, variables, "table");
|
|
17936
18377
|
const data = response.table?.document;
|
|
17937
18378
|
return data ? new Document(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17938
18379
|
}
|
|
17939
18380
|
watch(options) {
|
|
17940
18381
|
const variables = this._variables;
|
|
17941
18382
|
const raw = this._syncEngine.watch(
|
|
17942
|
-
|
|
18383
|
+
chunkL7HABILC_cjs.Table_DocumentDocument,
|
|
17943
18384
|
variables,
|
|
17944
18385
|
"table",
|
|
17945
18386
|
async (db) => {
|
|
@@ -17961,7 +18402,7 @@ var Table_Document_ContentsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17961
18402
|
this._variables = variables;
|
|
17962
18403
|
}
|
|
17963
18404
|
async fetch(options) {
|
|
17964
|
-
const response = await this._syncEngine.query(
|
|
18405
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Table_Document_ContentsDocument, this._variables, "table");
|
|
17965
18406
|
const data = response.table?.document?.contents;
|
|
17966
18407
|
if (!Array.isArray(data)) return [];
|
|
17967
18408
|
return data.map((item) => new DocumentContent(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -17975,14 +18416,14 @@ var Table_Document_FileQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17975
18416
|
}
|
|
17976
18417
|
async fetch(options) {
|
|
17977
18418
|
const variables = this._variables;
|
|
17978
|
-
const response = await this._syncEngine.query(
|
|
18419
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Table_Document_FileDocument, variables, "table");
|
|
17979
18420
|
const data = response.table?.document?.file;
|
|
17980
18421
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17981
18422
|
}
|
|
17982
18423
|
watch(options) {
|
|
17983
18424
|
const variables = this._variables;
|
|
17984
18425
|
const raw = this._syncEngine.watch(
|
|
17985
|
-
|
|
18426
|
+
chunkL7HABILC_cjs.Table_Document_FileDocument,
|
|
17986
18427
|
variables,
|
|
17987
18428
|
"table",
|
|
17988
18429
|
async (db) => {
|
|
@@ -18005,14 +18446,14 @@ var Table_Document_FormatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18005
18446
|
}
|
|
18006
18447
|
async fetch(options) {
|
|
18007
18448
|
const variables = this._variables;
|
|
18008
|
-
const response = await this._syncEngine.query(
|
|
18449
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Table_Document_FormatDocument, variables, "table");
|
|
18009
18450
|
const data = response.table?.document?.format;
|
|
18010
18451
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18011
18452
|
}
|
|
18012
18453
|
watch(options) {
|
|
18013
18454
|
const variables = this._variables;
|
|
18014
18455
|
const raw = this._syncEngine.watch(
|
|
18015
|
-
|
|
18456
|
+
chunkL7HABILC_cjs.Table_Document_FormatDocument,
|
|
18016
18457
|
variables,
|
|
18017
18458
|
"table",
|
|
18018
18459
|
async (db) => {
|
|
@@ -18034,7 +18475,7 @@ var Table_FromRelationsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18034
18475
|
this._variables = variables;
|
|
18035
18476
|
}
|
|
18036
18477
|
async fetch(options) {
|
|
18037
|
-
const response = await this._syncEngine.query(
|
|
18478
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Table_FromRelationsDocument, this._variables, "table");
|
|
18038
18479
|
const data = response.table?.fromRelations;
|
|
18039
18480
|
if (!Array.isArray(data)) return [];
|
|
18040
18481
|
return data.map((item) => new Relation(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -18047,7 +18488,7 @@ var Table_ToRelationsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18047
18488
|
this._variables = variables;
|
|
18048
18489
|
}
|
|
18049
18490
|
async fetch(options) {
|
|
18050
|
-
const response = await this._syncEngine.query(
|
|
18491
|
+
const response = await this._syncEngine.query(chunkL7HABILC_cjs.Table_ToRelationsDocument, this._variables, "table");
|
|
18051
18492
|
const data = response.table?.toRelations;
|
|
18052
18493
|
if (!Array.isArray(data)) return [];
|
|
18053
18494
|
return data.map((item) => new Relation(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -18062,7 +18503,7 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
18062
18503
|
}
|
|
18063
18504
|
async fetch(options) {
|
|
18064
18505
|
const variables = this._variables;
|
|
18065
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18506
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.TablesDocument, "tables", this._includes, variables, true);
|
|
18066
18507
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "tables");
|
|
18067
18508
|
const data = response.tables;
|
|
18068
18509
|
const connection = new TableConnection(this._request, (conn, opts) => new _TablesQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -18079,7 +18520,7 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
18079
18520
|
const subscriptionId = crypto.randomUUID();
|
|
18080
18521
|
const includes = this._includes;
|
|
18081
18522
|
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) }] : []);
|
|
18082
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18523
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.TablesDocument, "tables", includes, variables, true);
|
|
18083
18524
|
const raw = this._syncEngine.watch(
|
|
18084
18525
|
queryDoc,
|
|
18085
18526
|
mergedVars,
|
|
@@ -18114,7 +18555,7 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
18114
18555
|
}
|
|
18115
18556
|
/** Include database in this query (Smart Fetch — single HTTP request). */
|
|
18116
18557
|
database(variables, builder) {
|
|
18117
|
-
const info = extractIncludeInfo(
|
|
18558
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
18118
18559
|
let children;
|
|
18119
18560
|
if (builder) {
|
|
18120
18561
|
const sub = new DatabaseSubBuilder();
|
|
@@ -18123,7 +18564,7 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
18123
18564
|
}
|
|
18124
18565
|
this._includes.push({
|
|
18125
18566
|
fieldName: "database",
|
|
18126
|
-
fragmentDoc:
|
|
18567
|
+
fragmentDoc: chunkL7HABILC_cjs.DatabaseFragmentDoc,
|
|
18127
18568
|
variables,
|
|
18128
18569
|
isConnection: false,
|
|
18129
18570
|
isList: false,
|
|
@@ -18140,7 +18581,7 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
18140
18581
|
}
|
|
18141
18582
|
/** Include document in this query (Smart Fetch — single HTTP request). */
|
|
18142
18583
|
document(variables, builder) {
|
|
18143
|
-
const info = extractIncludeInfo(
|
|
18584
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
18144
18585
|
let children;
|
|
18145
18586
|
if (builder) {
|
|
18146
18587
|
const sub = new DocumentSubBuilder();
|
|
@@ -18149,7 +18590,7 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
18149
18590
|
}
|
|
18150
18591
|
this._includes.push({
|
|
18151
18592
|
fieldName: "document",
|
|
18152
|
-
fragmentDoc:
|
|
18593
|
+
fragmentDoc: chunkL7HABILC_cjs.DocumentFragmentDoc,
|
|
18153
18594
|
variables,
|
|
18154
18595
|
isConnection: false,
|
|
18155
18596
|
isList: false,
|
|
@@ -18166,10 +18607,10 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
18166
18607
|
}
|
|
18167
18608
|
/** Include fromRelations in this query (Smart Fetch — single HTTP request). */
|
|
18168
18609
|
fromRelations(variables) {
|
|
18169
|
-
const info = extractIncludeInfo(
|
|
18610
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
18170
18611
|
this._includes.push({
|
|
18171
18612
|
fieldName: "fromRelations",
|
|
18172
|
-
fragmentDoc:
|
|
18613
|
+
fragmentDoc: chunkL7HABILC_cjs.RelationFragmentDoc,
|
|
18173
18614
|
variables,
|
|
18174
18615
|
isConnection: false,
|
|
18175
18616
|
isList: true,
|
|
@@ -18185,10 +18626,10 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
18185
18626
|
}
|
|
18186
18627
|
/** Include toRelations in this query (Smart Fetch — single HTTP request). */
|
|
18187
18628
|
toRelations(variables) {
|
|
18188
|
-
const info = extractIncludeInfo(
|
|
18629
|
+
const info = extractIncludeInfo(chunkL7HABILC_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
18189
18630
|
this._includes.push({
|
|
18190
18631
|
fieldName: "toRelations",
|
|
18191
|
-
fragmentDoc:
|
|
18632
|
+
fragmentDoc: chunkL7HABILC_cjs.RelationFragmentDoc,
|
|
18192
18633
|
variables,
|
|
18193
18634
|
isConnection: false,
|
|
18194
18635
|
isList: true,
|
|
@@ -18212,7 +18653,7 @@ var UserSkillFileQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18212
18653
|
}
|
|
18213
18654
|
async fetch(options) {
|
|
18214
18655
|
const variables = this._variables;
|
|
18215
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18656
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.UserSkillFileDocument, "userSkillFile", this._includes, variables);
|
|
18216
18657
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFile");
|
|
18217
18658
|
const data = response.userSkillFile;
|
|
18218
18659
|
const instance = new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18224,7 +18665,7 @@ var UserSkillFileQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18224
18665
|
watch(options) {
|
|
18225
18666
|
const variables = this._variables;
|
|
18226
18667
|
const includes = this._includes;
|
|
18227
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18668
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.UserSkillFileDocument, "userSkillFile", includes, variables);
|
|
18228
18669
|
const raw = this._syncEngine.watch(
|
|
18229
18670
|
queryDoc,
|
|
18230
18671
|
mergedVars,
|
|
@@ -18261,7 +18702,7 @@ var UserSkillFilesQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18261
18702
|
this._variables = variables;
|
|
18262
18703
|
}
|
|
18263
18704
|
async fetch(options) {
|
|
18264
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18705
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.UserSkillFilesDocument, "userSkillFiles", this._includes, this._variables);
|
|
18265
18706
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFiles");
|
|
18266
18707
|
const data = response.userSkillFiles;
|
|
18267
18708
|
if (!Array.isArray(data)) return [];
|
|
@@ -18277,7 +18718,7 @@ var UserSkillFolderQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18277
18718
|
}
|
|
18278
18719
|
async fetch(options) {
|
|
18279
18720
|
const variables = this._variables;
|
|
18280
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18721
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.UserSkillFolderDocument, "userSkillFolder", this._includes, variables);
|
|
18281
18722
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFolder");
|
|
18282
18723
|
const data = response.userSkillFolder;
|
|
18283
18724
|
const instance = new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18289,7 +18730,7 @@ var UserSkillFolderQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18289
18730
|
watch(options) {
|
|
18290
18731
|
const variables = this._variables;
|
|
18291
18732
|
const includes = this._includes;
|
|
18292
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18733
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.UserSkillFolderDocument, "userSkillFolder", includes, variables);
|
|
18293
18734
|
const raw = this._syncEngine.watch(
|
|
18294
18735
|
queryDoc,
|
|
18295
18736
|
mergedVars,
|
|
@@ -18326,7 +18767,7 @@ var UserSkillFoldersQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18326
18767
|
this._variables = variables;
|
|
18327
18768
|
}
|
|
18328
18769
|
async fetch(options) {
|
|
18329
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18770
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.UserSkillFoldersDocument, "userSkillFolders", this._includes, this._variables);
|
|
18330
18771
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFolders");
|
|
18331
18772
|
const data = response.userSkillFolders;
|
|
18332
18773
|
if (!Array.isArray(data)) return [];
|
|
@@ -18342,7 +18783,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18342
18783
|
}
|
|
18343
18784
|
async fetch(options) {
|
|
18344
18785
|
const variables = this._variables;
|
|
18345
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18786
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", this._includes, variables);
|
|
18346
18787
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "workspaceDeletionSchedule");
|
|
18347
18788
|
const data = response.workspaceDeletionSchedule;
|
|
18348
18789
|
if (!data) return void 0;
|
|
@@ -18355,7 +18796,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18355
18796
|
watch(options) {
|
|
18356
18797
|
const variables = this._variables;
|
|
18357
18798
|
const includes = this._includes;
|
|
18358
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18799
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkL7HABILC_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", includes, variables);
|
|
18359
18800
|
const raw = this._syncEngine.watch(
|
|
18360
18801
|
queryDoc,
|
|
18361
18802
|
mergedVars,
|
|
@@ -18387,7 +18828,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18387
18828
|
};
|
|
18388
18829
|
var McpAuthUpdatesSubscription = class extends chunk4QKWHQT2_cjs.Request {
|
|
18389
18830
|
async *subscribe(variables) {
|
|
18390
|
-
for await (const response of this._subscribe(
|
|
18831
|
+
for await (const response of this._subscribe(chunkL7HABILC_cjs.McpAuthUpdatesDocument, variables)) {
|
|
18391
18832
|
const data = response.mcpAuthUpdates;
|
|
18392
18833
|
yield new McpAuthUpdateModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
18393
18834
|
}
|
|
@@ -18395,12 +18836,12 @@ var McpAuthUpdatesSubscription = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18395
18836
|
};
|
|
18396
18837
|
var SendMessageStreamSubscription = class extends chunk4QKWHQT2_cjs.Request {
|
|
18397
18838
|
subscribe(variables) {
|
|
18398
|
-
return this._subscribe(
|
|
18839
|
+
return this._subscribe(chunkL7HABILC_cjs.SendMessageStreamDocument, variables);
|
|
18399
18840
|
}
|
|
18400
18841
|
};
|
|
18401
18842
|
var TokenUsageUpdatesSubscription = class extends chunk4QKWHQT2_cjs.Request {
|
|
18402
18843
|
async *subscribe(variables) {
|
|
18403
|
-
for await (const response of this._subscribe(
|
|
18844
|
+
for await (const response of this._subscribe(chunkL7HABILC_cjs.TokenUsageUpdatesDocument, variables)) {
|
|
18404
18845
|
const data = response.tokenUsageUpdates;
|
|
18405
18846
|
yield new UsageStatus(this._request, data, this._syncEngine, this._baseUrl);
|
|
18406
18847
|
}
|
|
@@ -18426,10 +18867,6 @@ var DvinaSdk = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18426
18867
|
this.inference = inference;
|
|
18427
18868
|
this.billing = billing;
|
|
18428
18869
|
}
|
|
18429
|
-
/** Mutation: acknowledgePulseEvent */
|
|
18430
|
-
acknowledgePulseEvent(variables) {
|
|
18431
|
-
return new AcknowledgePulseEventMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
18432
|
-
}
|
|
18433
18870
|
/** Mutation: addInsightToReport */
|
|
18434
18871
|
addInsightToReport(variables) {
|
|
18435
18872
|
return new AddInsightToReportMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
@@ -18446,6 +18883,10 @@ var DvinaSdk = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18446
18883
|
connectIntegration(variables) {
|
|
18447
18884
|
return new ConnectIntegrationMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
18448
18885
|
}
|
|
18886
|
+
/** Mutation: consumePulseEvents (scalar) */
|
|
18887
|
+
consumePulseEvents(variables) {
|
|
18888
|
+
return new ConsumePulseEventsMutation(this._request, this._syncEngine).fetch(variables);
|
|
18889
|
+
}
|
|
18449
18890
|
/** Mutation: continueImportedChat (scalar) */
|
|
18450
18891
|
continueImportedChat(variables) {
|
|
18451
18892
|
return new ContinueImportedChatMutation(this._request, this._syncEngine).fetch(variables);
|
|
@@ -18570,10 +19011,6 @@ var DvinaSdk = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18570
19011
|
generateUploadUri(variables) {
|
|
18571
19012
|
return new GenerateUploadUriMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
18572
19013
|
}
|
|
18573
|
-
/** Mutation: markPulseEventSeen */
|
|
18574
|
-
markPulseEventSeen(variables) {
|
|
18575
|
-
return new MarkPulseEventSeenMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
18576
|
-
}
|
|
18577
19014
|
/** Mutation: previewChatImport */
|
|
18578
19015
|
previewChatImport(variables) {
|
|
18579
19016
|
return new PreviewChatImportMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
@@ -18750,6 +19187,14 @@ var DvinaSdk = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18750
19187
|
exportWithInsightId(variables) {
|
|
18751
19188
|
return new ExportWithInsightIdQuery(this._request, this._syncEngine).fetch(variables);
|
|
18752
19189
|
}
|
|
19190
|
+
/** Query: feedItem — call .fetch() or .watch() to execute. */
|
|
19191
|
+
feedItem(variables) {
|
|
19192
|
+
return new FeedItemQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
19193
|
+
}
|
|
19194
|
+
/** Query: feedItems — call .fetch() or .watch() to execute. */
|
|
19195
|
+
feedItems(variables) {
|
|
19196
|
+
return new FeedItemsQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
19197
|
+
}
|
|
18753
19198
|
/** Query: file (scalar) */
|
|
18754
19199
|
file(variables) {
|
|
18755
19200
|
return new FileQuery(this._request, this._syncEngine).fetch(variables);
|
|
@@ -18862,10 +19307,6 @@ var DvinaSdk = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18862
19307
|
pulseEvent(variables) {
|
|
18863
19308
|
return new PulseEventQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
18864
19309
|
}
|
|
18865
|
-
/** Query: pulseEventStats — call .fetch() or .watch() to execute. */
|
|
18866
|
-
pulseEventStats(variables) {
|
|
18867
|
-
return new PulseEventStatsQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
18868
|
-
}
|
|
18869
19310
|
/** Query: pulseEvents — call .fetch() or .watch() to execute. */
|
|
18870
19311
|
pulseEvents(variables) {
|
|
18871
19312
|
return new PulseEventsQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
@@ -18984,7 +19425,6 @@ var DvinaSdk = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
18984
19425
|
}
|
|
18985
19426
|
};
|
|
18986
19427
|
|
|
18987
|
-
exports.AcknowledgePulseEventMutation = AcknowledgePulseEventMutation;
|
|
18988
19428
|
exports.Action = Action;
|
|
18989
19429
|
exports.AddInsightToReportMutation = AddInsightToReportMutation;
|
|
18990
19430
|
exports.Agent = Agent;
|
|
@@ -19032,6 +19472,7 @@ exports.Chat_Insight_ReportMembersQuery = Chat_Insight_ReportMembersQuery;
|
|
|
19032
19472
|
exports.Chat_MessagesQuery = Chat_MessagesQuery;
|
|
19033
19473
|
exports.ChatsQuery = ChatsQuery;
|
|
19034
19474
|
exports.ConnectIntegrationMutation = ConnectIntegrationMutation;
|
|
19475
|
+
exports.ConsumePulseEventsMutation = ConsumePulseEventsMutation;
|
|
19035
19476
|
exports.ContentBlock = ContentBlock;
|
|
19036
19477
|
exports.ContentMask = ContentMask;
|
|
19037
19478
|
exports.ContinueImportedChatMutation = ContinueImportedChatMutation;
|
|
@@ -19110,6 +19551,20 @@ exports.DvinaSdk = DvinaSdk;
|
|
|
19110
19551
|
exports.ExecuteChatImportMutation = ExecuteChatImportMutation;
|
|
19111
19552
|
exports.ExportQuery = ExportQuery;
|
|
19112
19553
|
exports.ExportWithInsightIdQuery = ExportWithInsightIdQuery;
|
|
19554
|
+
exports.FeedArtifactData = FeedArtifactData;
|
|
19555
|
+
exports.FeedConnection = FeedConnection;
|
|
19556
|
+
exports.FeedDatabaseData = FeedDatabaseData;
|
|
19557
|
+
exports.FeedDocumentData = FeedDocumentData;
|
|
19558
|
+
exports.FeedIntegrationData = FeedIntegrationData;
|
|
19559
|
+
exports.FeedItem = FeedItem;
|
|
19560
|
+
exports.FeedItemGenerated = FeedItemGenerated;
|
|
19561
|
+
exports.FeedItemQuery = FeedItemQuery;
|
|
19562
|
+
exports.FeedItemSubBuilder = FeedItemSubBuilder;
|
|
19563
|
+
exports.FeedItem_ActionQuery = FeedItem_ActionQuery;
|
|
19564
|
+
exports.FeedItem_DataQuery = FeedItem_DataQuery;
|
|
19565
|
+
exports.FeedItemsQuery = FeedItemsQuery;
|
|
19566
|
+
exports.FeedPulseData = FeedPulseData;
|
|
19567
|
+
exports.FeedSendMessageAction = FeedSendMessageAction;
|
|
19113
19568
|
exports.Feedback = Feedback;
|
|
19114
19569
|
exports.File = File;
|
|
19115
19570
|
exports.FileMetaQuery = FileMetaQuery;
|
|
@@ -19167,7 +19622,6 @@ exports.InterpretationsQuery = InterpretationsQuery;
|
|
|
19167
19622
|
exports.Invocation = Invocation;
|
|
19168
19623
|
exports.MUTATION_CACHE_RULES = MUTATION_CACHE_RULES;
|
|
19169
19624
|
exports.MappedDvinaQueryRef = MappedDvinaQueryRef;
|
|
19170
|
-
exports.MarkPulseEventSeenMutation = MarkPulseEventSeenMutation;
|
|
19171
19625
|
exports.McpAuthUpdateModel = McpAuthUpdateModel;
|
|
19172
19626
|
exports.McpAuthUpdatesSubscription = McpAuthUpdatesSubscription;
|
|
19173
19627
|
exports.McpClientInformation = McpClientInformation;
|
|
@@ -19192,8 +19646,6 @@ exports.PulseAppSummaryQuery = PulseAppSummaryQuery;
|
|
|
19192
19646
|
exports.PulseEvent = PulseEvent;
|
|
19193
19647
|
exports.PulseEventConnection = PulseEventConnection;
|
|
19194
19648
|
exports.PulseEventQuery = PulseEventQuery;
|
|
19195
|
-
exports.PulseEventStatsModel = PulseEventStatsModel;
|
|
19196
|
-
exports.PulseEventStatsQuery = PulseEventStatsQuery;
|
|
19197
19649
|
exports.PulseEventSubBuilder = PulseEventSubBuilder;
|
|
19198
19650
|
exports.PulseEvent_IntegrationQuery = PulseEvent_IntegrationQuery;
|
|
19199
19651
|
exports.PulseEvent_Integration_ProviderQuery = PulseEvent_Integration_ProviderQuery;
|
|
@@ -19291,5 +19743,5 @@ exports.getOrCreateDatabase = getOrCreateDatabase;
|
|
|
19291
19743
|
exports.reconstructConnectionNodes = reconstructConnectionNodes;
|
|
19292
19744
|
exports.reconstructEntity = reconstructEntity;
|
|
19293
19745
|
exports.uploadFile = uploadFile;
|
|
19294
|
-
//# sourceMappingURL=chunk-
|
|
19295
|
-
//# sourceMappingURL=chunk-
|
|
19746
|
+
//# sourceMappingURL=chunk-Z3RDE7GG.cjs.map
|
|
19747
|
+
//# sourceMappingURL=chunk-Z3RDE7GG.cjs.map
|