@dvina/sdk 4.0.160 → 4.0.164
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-GO2SFQK3.cjs → _generated_documents-IE5IF5IW.cjs} +546 -542
- package/dist/{_generated_documents-GO2SFQK3.cjs.map → _generated_documents-IE5IF5IW.cjs.map} +1 -1
- package/dist/{_generated_documents-ARBWVGVI.js → _generated_documents-V7CTH7KN.js} +3 -3
- package/dist/{_generated_documents-ARBWVGVI.js.map → _generated_documents-V7CTH7KN.js.map} +1 -1
- package/dist/adapters/angular/index.cjs +4 -4
- package/dist/adapters/angular/index.d.cts +1 -1
- package/dist/adapters/angular/index.d.ts +1 -1
- package/dist/adapters/angular/index.js +2 -2
- package/dist/{chunk-GT77UAEG.js → chunk-LGL7YZFQ.js} +5 -4
- package/dist/chunk-LGL7YZFQ.js.map +1 -0
- package/dist/{chunk-YZOCWEFU.cjs → chunk-MMZOIZLF.cjs} +6 -4
- package/dist/chunk-MMZOIZLF.cjs.map +1 -0
- package/dist/{chunk-3I3SFD7O.cjs → chunk-QVVRL7UD.cjs} +793 -564
- package/dist/chunk-QVVRL7UD.cjs.map +1 -0
- package/dist/{chunk-ZVME5CNQ.js → chunk-ZCPWKQH5.js} +306 -78
- package/dist/chunk-ZCPWKQH5.js.map +1 -0
- package/dist/{client-CnDwhx8_.d.cts → client-MbSVtLLD.d.cts} +6 -3
- package/dist/{client-DyBMomqg.d.ts → client-zPKTFhKA.d.ts} +6 -3
- package/dist/index.cjs +400 -396
- package/dist/index.d.cts +13 -8
- package/dist/index.d.ts +13 -8
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-3I3SFD7O.cjs.map +0 -1
- package/dist/chunk-GT77UAEG.js.map +0 -1
- package/dist/chunk-YZOCWEFU.cjs.map +0 -1
- package/dist/chunk-ZVME5CNQ.js.map +0 -1
|
@@ -4,7 +4,7 @@ var chunk342BFYZZ_cjs = require('./chunk-342BFYZZ.cjs');
|
|
|
4
4
|
var chunkUELAE75E_cjs = require('./chunk-UELAE75E.cjs');
|
|
5
5
|
var chunkBL3GFOZR_cjs = require('./chunk-BL3GFOZR.cjs');
|
|
6
6
|
var chunkKV5SP7RP_cjs = require('./chunk-KV5SP7RP.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkMMZOIZLF_cjs = require('./chunk-MMZOIZLF.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
|
|
@@ -9096,6 +9096,15 @@ function isMissingDexieTableError(error) {
|
|
|
9096
9096
|
}
|
|
9097
9097
|
return /table\s+.+\s+does not exist/i.test(error.message);
|
|
9098
9098
|
}
|
|
9099
|
+
var DvinaCacheMissError = class extends Error {
|
|
9100
|
+
constructor(queryKey) {
|
|
9101
|
+
super(`Cache miss for watch query: ${queryKey}`);
|
|
9102
|
+
this.name = "DvinaCacheMissError";
|
|
9103
|
+
}
|
|
9104
|
+
};
|
|
9105
|
+
function isDvinaCacheMissError(error) {
|
|
9106
|
+
return error instanceof DvinaCacheMissError;
|
|
9107
|
+
}
|
|
9099
9108
|
var QueryExecutor = class {
|
|
9100
9109
|
constructor(_db, _http, _cache) {
|
|
9101
9110
|
this._db = _db;
|
|
@@ -9182,6 +9191,13 @@ var QueryExecutor = class {
|
|
|
9182
9191
|
try {
|
|
9183
9192
|
return await buildResult(this._db);
|
|
9184
9193
|
} catch (error) {
|
|
9194
|
+
if (isDvinaCacheMissError(error)) {
|
|
9195
|
+
try {
|
|
9196
|
+
return await this.query(document2, variables, operationName);
|
|
9197
|
+
} catch {
|
|
9198
|
+
return ref.current;
|
|
9199
|
+
}
|
|
9200
|
+
}
|
|
9185
9201
|
if (isMissingDexieTableError(error)) {
|
|
9186
9202
|
return ref.current;
|
|
9187
9203
|
}
|
|
@@ -9236,7 +9252,7 @@ var QueryExecutor = class {
|
|
|
9236
9252
|
}
|
|
9237
9253
|
return;
|
|
9238
9254
|
} catch (cacheReadError) {
|
|
9239
|
-
if (!isMissingDexieTableError(cacheReadError)) {
|
|
9255
|
+
if (!isMissingDexieTableError(cacheReadError) && !isDvinaCacheMissError(cacheReadError)) {
|
|
9240
9256
|
throw cacheReadError;
|
|
9241
9257
|
}
|
|
9242
9258
|
}
|
|
@@ -9246,7 +9262,7 @@ var QueryExecutor = class {
|
|
|
9246
9262
|
const result = await buildResult(this._db);
|
|
9247
9263
|
ref._markInitialized(result);
|
|
9248
9264
|
} catch (storeReadError) {
|
|
9249
|
-
if (isMissingDexieTableError(storeReadError)) {
|
|
9265
|
+
if (isMissingDexieTableError(storeReadError) || isDvinaCacheMissError(storeReadError)) {
|
|
9250
9266
|
ref._markInitialized(networkResult);
|
|
9251
9267
|
return;
|
|
9252
9268
|
}
|
|
@@ -9256,7 +9272,11 @@ var QueryExecutor = class {
|
|
|
9256
9272
|
try {
|
|
9257
9273
|
const result = await buildResult(this._db);
|
|
9258
9274
|
ref._markInitialized(result);
|
|
9259
|
-
} catch {
|
|
9275
|
+
} catch (cacheReadError) {
|
|
9276
|
+
if (isDvinaCacheMissError(cacheReadError)) {
|
|
9277
|
+
ref._markFailed(fetchError);
|
|
9278
|
+
return;
|
|
9279
|
+
}
|
|
9260
9280
|
ref._markFailed(fetchError);
|
|
9261
9281
|
}
|
|
9262
9282
|
}
|
|
@@ -10321,7 +10341,7 @@ function createLazySyncEngine(httpTransport, sseUrl, syncPolicyUrl, getToken, ge
|
|
|
10321
10341
|
var DEFAULT_UPLOAD_CONTENT_TYPE = "application/octet-stream";
|
|
10322
10342
|
var AZURE_BLOCK_BLOB_TYPE = "BlockBlob";
|
|
10323
10343
|
async function uploadFile(request, getToken, file, name, options) {
|
|
10324
|
-
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-
|
|
10344
|
+
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-IE5IF5IW.cjs');
|
|
10325
10345
|
const key = `upload_${Date.now()}`;
|
|
10326
10346
|
const response = await request(
|
|
10327
10347
|
GenerateUploadUriDocument2,
|
|
@@ -12522,7 +12542,7 @@ var ResolvedFileUrl = class extends DvinaModel {
|
|
|
12522
12542
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12523
12543
|
super(request, syncEngine, baseUrl);
|
|
12524
12544
|
this.id = data.id;
|
|
12525
|
-
this.url = data.url;
|
|
12545
|
+
this.url = data.url ?? void 0;
|
|
12526
12546
|
}
|
|
12527
12547
|
};
|
|
12528
12548
|
var StreamEventSchemaAnchor = class extends DvinaModel {
|
|
@@ -13198,7 +13218,7 @@ var AgentSubBuilder = class {
|
|
|
13198
13218
|
_includes = [];
|
|
13199
13219
|
/** Include chats in the parent query. */
|
|
13200
13220
|
chats(variables, builder) {
|
|
13201
|
-
const info = extractIncludeInfo(
|
|
13221
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
13202
13222
|
let children;
|
|
13203
13223
|
if (builder) {
|
|
13204
13224
|
const sub = new ChatSubBuilder();
|
|
@@ -13207,7 +13227,7 @@ var AgentSubBuilder = class {
|
|
|
13207
13227
|
}
|
|
13208
13228
|
this._includes.push({
|
|
13209
13229
|
fieldName: "chats",
|
|
13210
|
-
fragmentDoc:
|
|
13230
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatConnectionFragmentDoc,
|
|
13211
13231
|
variables,
|
|
13212
13232
|
isConnection: true,
|
|
13213
13233
|
isList: false,
|
|
@@ -13229,7 +13249,7 @@ var ArtifactSubBuilder = class {
|
|
|
13229
13249
|
_includes = [];
|
|
13230
13250
|
/** Include chat in the parent query. */
|
|
13231
13251
|
chat(variables, builder) {
|
|
13232
|
-
const info = extractIncludeInfo(
|
|
13252
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
13233
13253
|
let children;
|
|
13234
13254
|
if (builder) {
|
|
13235
13255
|
const sub = new ChatSubBuilder();
|
|
@@ -13238,7 +13258,7 @@ var ArtifactSubBuilder = class {
|
|
|
13238
13258
|
}
|
|
13239
13259
|
this._includes.push({
|
|
13240
13260
|
fieldName: "chat",
|
|
13241
|
-
fragmentDoc:
|
|
13261
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatFragmentDoc,
|
|
13242
13262
|
variables,
|
|
13243
13263
|
isConnection: false,
|
|
13244
13264
|
isList: false,
|
|
@@ -13255,10 +13275,10 @@ var ArtifactSubBuilder = class {
|
|
|
13255
13275
|
}
|
|
13256
13276
|
/** Include file in the parent query. */
|
|
13257
13277
|
file(variables) {
|
|
13258
|
-
const info = extractIncludeInfo(
|
|
13278
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
13259
13279
|
this._includes.push({
|
|
13260
13280
|
fieldName: "file",
|
|
13261
|
-
fragmentDoc:
|
|
13281
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FileFragmentDoc,
|
|
13262
13282
|
variables,
|
|
13263
13283
|
isConnection: false,
|
|
13264
13284
|
isList: false,
|
|
@@ -13274,7 +13294,7 @@ var ArtifactSubBuilder = class {
|
|
|
13274
13294
|
}
|
|
13275
13295
|
/** Include message in the parent query. */
|
|
13276
13296
|
message(variables, builder) {
|
|
13277
|
-
const info = extractIncludeInfo(
|
|
13297
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
13278
13298
|
let children;
|
|
13279
13299
|
if (builder) {
|
|
13280
13300
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -13283,7 +13303,7 @@ var ArtifactSubBuilder = class {
|
|
|
13283
13303
|
}
|
|
13284
13304
|
this._includes.push({
|
|
13285
13305
|
fieldName: "message",
|
|
13286
|
-
fragmentDoc:
|
|
13306
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatMessageFragmentDoc,
|
|
13287
13307
|
variables,
|
|
13288
13308
|
isConnection: false,
|
|
13289
13309
|
isList: false,
|
|
@@ -13304,7 +13324,7 @@ var ChatSubBuilder = class {
|
|
|
13304
13324
|
_includes = [];
|
|
13305
13325
|
/** Include agents in the parent query. */
|
|
13306
13326
|
agents(variables, builder) {
|
|
13307
|
-
const info = extractIncludeInfo(
|
|
13327
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
13308
13328
|
let children;
|
|
13309
13329
|
if (builder) {
|
|
13310
13330
|
const sub = new AgentSubBuilder();
|
|
@@ -13313,7 +13333,7 @@ var ChatSubBuilder = class {
|
|
|
13313
13333
|
}
|
|
13314
13334
|
this._includes.push({
|
|
13315
13335
|
fieldName: "agents",
|
|
13316
|
-
fragmentDoc:
|
|
13336
|
+
fragmentDoc: chunkMMZOIZLF_cjs.AgentConnectionFragmentDoc,
|
|
13317
13337
|
variables,
|
|
13318
13338
|
isConnection: true,
|
|
13319
13339
|
isList: false,
|
|
@@ -13331,7 +13351,7 @@ var ChatSubBuilder = class {
|
|
|
13331
13351
|
}
|
|
13332
13352
|
/** Include artifacts in the parent query. */
|
|
13333
13353
|
artifacts(variables, builder) {
|
|
13334
|
-
const info = extractIncludeInfo(
|
|
13354
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
13335
13355
|
let children;
|
|
13336
13356
|
if (builder) {
|
|
13337
13357
|
const sub = new ArtifactSubBuilder();
|
|
@@ -13340,7 +13360,7 @@ var ChatSubBuilder = class {
|
|
|
13340
13360
|
}
|
|
13341
13361
|
this._includes.push({
|
|
13342
13362
|
fieldName: "artifacts",
|
|
13343
|
-
fragmentDoc:
|
|
13363
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ArtifactConnectionFragmentDoc,
|
|
13344
13364
|
variables,
|
|
13345
13365
|
isConnection: true,
|
|
13346
13366
|
isList: false,
|
|
@@ -13358,7 +13378,7 @@ var ChatSubBuilder = class {
|
|
|
13358
13378
|
}
|
|
13359
13379
|
/** Include insight in the parent query. */
|
|
13360
13380
|
insight(variables, builder) {
|
|
13361
|
-
const info = extractIncludeInfo(
|
|
13381
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
13362
13382
|
let children;
|
|
13363
13383
|
if (builder) {
|
|
13364
13384
|
const sub = new InsightSubBuilder();
|
|
@@ -13367,7 +13387,7 @@ var ChatSubBuilder = class {
|
|
|
13367
13387
|
}
|
|
13368
13388
|
this._includes.push({
|
|
13369
13389
|
fieldName: "insight",
|
|
13370
|
-
fragmentDoc:
|
|
13390
|
+
fragmentDoc: chunkMMZOIZLF_cjs.InsightFragmentDoc,
|
|
13371
13391
|
variables,
|
|
13372
13392
|
isConnection: false,
|
|
13373
13393
|
isList: false,
|
|
@@ -13384,7 +13404,7 @@ var ChatSubBuilder = class {
|
|
|
13384
13404
|
}
|
|
13385
13405
|
/** Include messages in the parent query. */
|
|
13386
13406
|
messages(variables, builder) {
|
|
13387
|
-
const info = extractIncludeInfo(
|
|
13407
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
13388
13408
|
let children;
|
|
13389
13409
|
if (builder) {
|
|
13390
13410
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -13393,7 +13413,7 @@ var ChatSubBuilder = class {
|
|
|
13393
13413
|
}
|
|
13394
13414
|
this._includes.push({
|
|
13395
13415
|
fieldName: "messages",
|
|
13396
|
-
fragmentDoc:
|
|
13416
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatMessageConnectionFragmentDoc,
|
|
13397
13417
|
variables,
|
|
13398
13418
|
isConnection: true,
|
|
13399
13419
|
isList: false,
|
|
@@ -13415,7 +13435,7 @@ var ChatMessageSubBuilder = class {
|
|
|
13415
13435
|
_includes = [];
|
|
13416
13436
|
/** Include artifacts in the parent query. */
|
|
13417
13437
|
artifacts(variables, builder) {
|
|
13418
|
-
const info = extractIncludeInfo(
|
|
13438
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
13419
13439
|
let children;
|
|
13420
13440
|
if (builder) {
|
|
13421
13441
|
const sub = new ArtifactSubBuilder();
|
|
@@ -13424,7 +13444,7 @@ var ChatMessageSubBuilder = class {
|
|
|
13424
13444
|
}
|
|
13425
13445
|
this._includes.push({
|
|
13426
13446
|
fieldName: "artifacts",
|
|
13427
|
-
fragmentDoc:
|
|
13447
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ArtifactConnectionFragmentDoc,
|
|
13428
13448
|
variables,
|
|
13429
13449
|
isConnection: true,
|
|
13430
13450
|
isList: false,
|
|
@@ -13442,7 +13462,7 @@ var ChatMessageSubBuilder = class {
|
|
|
13442
13462
|
}
|
|
13443
13463
|
/** Include chat in the parent query. */
|
|
13444
13464
|
chat(variables, builder) {
|
|
13445
|
-
const info = extractIncludeInfo(
|
|
13465
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
13446
13466
|
let children;
|
|
13447
13467
|
if (builder) {
|
|
13448
13468
|
const sub = new ChatSubBuilder();
|
|
@@ -13451,7 +13471,7 @@ var ChatMessageSubBuilder = class {
|
|
|
13451
13471
|
}
|
|
13452
13472
|
this._includes.push({
|
|
13453
13473
|
fieldName: "chat",
|
|
13454
|
-
fragmentDoc:
|
|
13474
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatFragmentDoc,
|
|
13455
13475
|
variables,
|
|
13456
13476
|
isConnection: false,
|
|
13457
13477
|
isList: false,
|
|
@@ -13468,10 +13488,10 @@ var ChatMessageSubBuilder = class {
|
|
|
13468
13488
|
}
|
|
13469
13489
|
/** Include contents in the parent query. */
|
|
13470
13490
|
contents(variables) {
|
|
13471
|
-
const info = extractIncludeInfo(
|
|
13491
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
13472
13492
|
this._includes.push({
|
|
13473
13493
|
fieldName: "contents",
|
|
13474
|
-
fragmentDoc:
|
|
13494
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ContentBlockFragmentDoc,
|
|
13475
13495
|
variables,
|
|
13476
13496
|
isConnection: false,
|
|
13477
13497
|
isList: true,
|
|
@@ -13487,10 +13507,10 @@ var ChatMessageSubBuilder = class {
|
|
|
13487
13507
|
}
|
|
13488
13508
|
/** Include feedback in the parent query. */
|
|
13489
13509
|
feedback(variables) {
|
|
13490
|
-
const info = extractIncludeInfo(
|
|
13510
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
13491
13511
|
this._includes.push({
|
|
13492
13512
|
fieldName: "feedback",
|
|
13493
|
-
fragmentDoc:
|
|
13513
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FeedbackFragmentDoc,
|
|
13494
13514
|
variables,
|
|
13495
13515
|
isConnection: false,
|
|
13496
13516
|
isList: false,
|
|
@@ -13510,10 +13530,10 @@ var DatabaseSubBuilder = class {
|
|
|
13510
13530
|
_includes = [];
|
|
13511
13531
|
/** Include engine in the parent query. */
|
|
13512
13532
|
engine(variables) {
|
|
13513
|
-
const info = extractIncludeInfo(
|
|
13533
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
13514
13534
|
this._includes.push({
|
|
13515
13535
|
fieldName: "engine",
|
|
13516
|
-
fragmentDoc:
|
|
13536
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DatabaseEngineFragmentDoc,
|
|
13517
13537
|
variables,
|
|
13518
13538
|
isConnection: false,
|
|
13519
13539
|
isList: false,
|
|
@@ -13529,7 +13549,7 @@ var DatabaseSubBuilder = class {
|
|
|
13529
13549
|
}
|
|
13530
13550
|
/** Include tables in the parent query. */
|
|
13531
13551
|
tables(variables, builder) {
|
|
13532
|
-
const info = extractIncludeInfo(
|
|
13552
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
13533
13553
|
let children;
|
|
13534
13554
|
if (builder) {
|
|
13535
13555
|
const sub = new TableSubBuilder();
|
|
@@ -13538,7 +13558,7 @@ var DatabaseSubBuilder = class {
|
|
|
13538
13558
|
}
|
|
13539
13559
|
this._includes.push({
|
|
13540
13560
|
fieldName: "tables",
|
|
13541
|
-
fragmentDoc:
|
|
13561
|
+
fragmentDoc: chunkMMZOIZLF_cjs.TableConnectionFragmentDoc,
|
|
13542
13562
|
variables,
|
|
13543
13563
|
isConnection: true,
|
|
13544
13564
|
isList: false,
|
|
@@ -13560,10 +13580,10 @@ var DatabaseCatalogSubBuilder = class {
|
|
|
13560
13580
|
_includes = [];
|
|
13561
13581
|
/** Include engine in the parent query. */
|
|
13562
13582
|
engine(variables) {
|
|
13563
|
-
const info = extractIncludeInfo(
|
|
13583
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
13564
13584
|
this._includes.push({
|
|
13565
13585
|
fieldName: "engine",
|
|
13566
|
-
fragmentDoc:
|
|
13586
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DatabaseEngineFragmentDoc,
|
|
13567
13587
|
variables,
|
|
13568
13588
|
isConnection: false,
|
|
13569
13589
|
isList: false,
|
|
@@ -13583,10 +13603,10 @@ var DocumentSubBuilder = class {
|
|
|
13583
13603
|
_includes = [];
|
|
13584
13604
|
/** Include contents in the parent query. */
|
|
13585
13605
|
contents(variables) {
|
|
13586
|
-
const info = extractIncludeInfo(
|
|
13606
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
13587
13607
|
this._includes.push({
|
|
13588
13608
|
fieldName: "contents",
|
|
13589
|
-
fragmentDoc:
|
|
13609
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DocumentContentFragmentDoc,
|
|
13590
13610
|
variables,
|
|
13591
13611
|
isConnection: false,
|
|
13592
13612
|
isList: true,
|
|
@@ -13602,10 +13622,10 @@ var DocumentSubBuilder = class {
|
|
|
13602
13622
|
}
|
|
13603
13623
|
/** Include file in the parent query. */
|
|
13604
13624
|
file(variables) {
|
|
13605
|
-
const info = extractIncludeInfo(
|
|
13625
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Document_FileDocument, "file", ["id"]);
|
|
13606
13626
|
this._includes.push({
|
|
13607
13627
|
fieldName: "file",
|
|
13608
|
-
fragmentDoc:
|
|
13628
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FileFragmentDoc,
|
|
13609
13629
|
variables,
|
|
13610
13630
|
isConnection: false,
|
|
13611
13631
|
isList: false,
|
|
@@ -13621,10 +13641,10 @@ var DocumentSubBuilder = class {
|
|
|
13621
13641
|
}
|
|
13622
13642
|
/** Include format in the parent query. */
|
|
13623
13643
|
format(variables) {
|
|
13624
|
-
const info = extractIncludeInfo(
|
|
13644
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Document_FormatDocument, "format", ["id"]);
|
|
13625
13645
|
this._includes.push({
|
|
13626
13646
|
fieldName: "format",
|
|
13627
|
-
fragmentDoc:
|
|
13647
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DocumentFormatFragmentDoc,
|
|
13628
13648
|
variables,
|
|
13629
13649
|
isConnection: false,
|
|
13630
13650
|
isList: false,
|
|
@@ -13640,7 +13660,7 @@ var DocumentSubBuilder = class {
|
|
|
13640
13660
|
}
|
|
13641
13661
|
/** Include tables in the parent query. */
|
|
13642
13662
|
tables(variables, builder) {
|
|
13643
|
-
const info = extractIncludeInfo(
|
|
13663
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
13644
13664
|
let children;
|
|
13645
13665
|
if (builder) {
|
|
13646
13666
|
const sub = new TableSubBuilder();
|
|
@@ -13649,7 +13669,7 @@ var DocumentSubBuilder = class {
|
|
|
13649
13669
|
}
|
|
13650
13670
|
this._includes.push({
|
|
13651
13671
|
fieldName: "tables",
|
|
13652
|
-
fragmentDoc:
|
|
13672
|
+
fragmentDoc: chunkMMZOIZLF_cjs.TableConnectionFragmentDoc,
|
|
13653
13673
|
variables,
|
|
13654
13674
|
isConnection: true,
|
|
13655
13675
|
isList: false,
|
|
@@ -13671,10 +13691,10 @@ var DocumentCatalogSubBuilder = class {
|
|
|
13671
13691
|
_includes = [];
|
|
13672
13692
|
/** Include format in the parent query. */
|
|
13673
13693
|
format(variables) {
|
|
13674
|
-
const info = extractIncludeInfo(
|
|
13694
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
13675
13695
|
this._includes.push({
|
|
13676
13696
|
fieldName: "format",
|
|
13677
|
-
fragmentDoc:
|
|
13697
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DocumentFormatFragmentDoc,
|
|
13678
13698
|
variables,
|
|
13679
13699
|
isConnection: false,
|
|
13680
13700
|
isList: false,
|
|
@@ -13694,10 +13714,10 @@ var FeedItemSubBuilder = class {
|
|
|
13694
13714
|
_includes = [];
|
|
13695
13715
|
/** Include action in the parent query. */
|
|
13696
13716
|
action(variables) {
|
|
13697
|
-
const info = extractIncludeInfo(
|
|
13717
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.FeedItem_ActionDocument, "action", ["id"]);
|
|
13698
13718
|
this._includes.push({
|
|
13699
13719
|
fieldName: "action",
|
|
13700
|
-
fragmentDoc:
|
|
13720
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FeedSendMessageActionFragmentDoc,
|
|
13701
13721
|
variables,
|
|
13702
13722
|
isConnection: false,
|
|
13703
13723
|
isList: false,
|
|
@@ -13713,10 +13733,10 @@ var FeedItemSubBuilder = class {
|
|
|
13713
13733
|
}
|
|
13714
13734
|
/** Include data in the parent query. */
|
|
13715
13735
|
data(variables) {
|
|
13716
|
-
const info = extractIncludeInfo(
|
|
13736
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.FeedItem_DataDocument, "data", ["id"]);
|
|
13717
13737
|
this._includes.push({
|
|
13718
13738
|
fieldName: "data",
|
|
13719
|
-
fragmentDoc:
|
|
13739
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FeedArtifactDataFragmentDoc,
|
|
13720
13740
|
variables,
|
|
13721
13741
|
isConnection: false,
|
|
13722
13742
|
isList: true,
|
|
@@ -13736,7 +13756,7 @@ var InsightSubBuilder = class {
|
|
|
13736
13756
|
_includes = [];
|
|
13737
13757
|
/** Include chat in the parent query. */
|
|
13738
13758
|
chat(variables, builder) {
|
|
13739
|
-
const info = extractIncludeInfo(
|
|
13759
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
13740
13760
|
let children;
|
|
13741
13761
|
if (builder) {
|
|
13742
13762
|
const sub = new ChatSubBuilder();
|
|
@@ -13745,7 +13765,7 @@ var InsightSubBuilder = class {
|
|
|
13745
13765
|
}
|
|
13746
13766
|
this._includes.push({
|
|
13747
13767
|
fieldName: "chat",
|
|
13748
|
-
fragmentDoc:
|
|
13768
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatFragmentDoc,
|
|
13749
13769
|
variables,
|
|
13750
13770
|
isConnection: false,
|
|
13751
13771
|
isList: false,
|
|
@@ -13762,10 +13782,10 @@ var InsightSubBuilder = class {
|
|
|
13762
13782
|
}
|
|
13763
13783
|
/** Include reportMembers in the parent query. */
|
|
13764
13784
|
reportMembers(variables) {
|
|
13765
|
-
const info = extractIncludeInfo(
|
|
13785
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
13766
13786
|
this._includes.push({
|
|
13767
13787
|
fieldName: "reportMembers",
|
|
13768
|
-
fragmentDoc:
|
|
13788
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ReportMemberFragmentDoc,
|
|
13769
13789
|
variables,
|
|
13770
13790
|
isConnection: false,
|
|
13771
13791
|
isList: true,
|
|
@@ -13781,7 +13801,7 @@ var InsightSubBuilder = class {
|
|
|
13781
13801
|
}
|
|
13782
13802
|
/** Include reports in the parent query. */
|
|
13783
13803
|
reports(variables, builder) {
|
|
13784
|
-
const info = extractIncludeInfo(
|
|
13804
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
13785
13805
|
let children;
|
|
13786
13806
|
if (builder) {
|
|
13787
13807
|
const sub = new ReportSubBuilder();
|
|
@@ -13790,7 +13810,7 @@ var InsightSubBuilder = class {
|
|
|
13790
13810
|
}
|
|
13791
13811
|
this._includes.push({
|
|
13792
13812
|
fieldName: "reports",
|
|
13793
|
-
fragmentDoc:
|
|
13813
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ReportConnectionFragmentDoc,
|
|
13794
13814
|
variables,
|
|
13795
13815
|
isConnection: true,
|
|
13796
13816
|
isList: false,
|
|
@@ -13808,10 +13828,10 @@ var InsightSubBuilder = class {
|
|
|
13808
13828
|
}
|
|
13809
13829
|
/** Include thumbnailFile in the parent query. */
|
|
13810
13830
|
thumbnailFile(variables) {
|
|
13811
|
-
const info = extractIncludeInfo(
|
|
13831
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
|
|
13812
13832
|
this._includes.push({
|
|
13813
13833
|
fieldName: "thumbnailFile",
|
|
13814
|
-
fragmentDoc:
|
|
13834
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FileFragmentDoc,
|
|
13815
13835
|
variables,
|
|
13816
13836
|
isConnection: false,
|
|
13817
13837
|
isList: false,
|
|
@@ -13831,10 +13851,10 @@ var IntegrationSubBuilder = class {
|
|
|
13831
13851
|
_includes = [];
|
|
13832
13852
|
/** Include provider in the parent query. */
|
|
13833
13853
|
provider(variables) {
|
|
13834
|
-
const info = extractIncludeInfo(
|
|
13854
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
13835
13855
|
this._includes.push({
|
|
13836
13856
|
fieldName: "provider",
|
|
13837
|
-
fragmentDoc:
|
|
13857
|
+
fragmentDoc: chunkMMZOIZLF_cjs.IntegrationProviderFragmentDoc,
|
|
13838
13858
|
variables,
|
|
13839
13859
|
isConnection: false,
|
|
13840
13860
|
isList: false,
|
|
@@ -13854,10 +13874,10 @@ var IntegrationCatalogSubBuilder = class {
|
|
|
13854
13874
|
_includes = [];
|
|
13855
13875
|
/** Include provider in the parent query. */
|
|
13856
13876
|
provider(variables) {
|
|
13857
|
-
const info = extractIncludeInfo(
|
|
13877
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
13858
13878
|
this._includes.push({
|
|
13859
13879
|
fieldName: "provider",
|
|
13860
|
-
fragmentDoc:
|
|
13880
|
+
fragmentDoc: chunkMMZOIZLF_cjs.IntegrationProviderFragmentDoc,
|
|
13861
13881
|
variables,
|
|
13862
13882
|
isConnection: false,
|
|
13863
13883
|
isList: false,
|
|
@@ -13877,7 +13897,7 @@ var PulseEventSubBuilder = class {
|
|
|
13877
13897
|
_includes = [];
|
|
13878
13898
|
/** Include integration in the parent query. */
|
|
13879
13899
|
integration(variables, builder) {
|
|
13880
|
-
const info = extractIncludeInfo(
|
|
13900
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
13881
13901
|
let children;
|
|
13882
13902
|
if (builder) {
|
|
13883
13903
|
const sub = new IntegrationSubBuilder();
|
|
@@ -13886,7 +13906,7 @@ var PulseEventSubBuilder = class {
|
|
|
13886
13906
|
}
|
|
13887
13907
|
this._includes.push({
|
|
13888
13908
|
fieldName: "integration",
|
|
13889
|
-
fragmentDoc:
|
|
13909
|
+
fragmentDoc: chunkMMZOIZLF_cjs.IntegrationFragmentDoc,
|
|
13890
13910
|
variables,
|
|
13891
13911
|
isConnection: false,
|
|
13892
13912
|
isList: false,
|
|
@@ -13907,7 +13927,7 @@ var ReportSubBuilder = class {
|
|
|
13907
13927
|
_includes = [];
|
|
13908
13928
|
/** Include insights in the parent query. */
|
|
13909
13929
|
insights(variables, builder) {
|
|
13910
|
-
const info = extractIncludeInfo(
|
|
13930
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
13911
13931
|
let children;
|
|
13912
13932
|
if (builder) {
|
|
13913
13933
|
const sub = new InsightSubBuilder();
|
|
@@ -13916,7 +13936,7 @@ var ReportSubBuilder = class {
|
|
|
13916
13936
|
}
|
|
13917
13937
|
this._includes.push({
|
|
13918
13938
|
fieldName: "insights",
|
|
13919
|
-
fragmentDoc:
|
|
13939
|
+
fragmentDoc: chunkMMZOIZLF_cjs.InsightConnectionFragmentDoc,
|
|
13920
13940
|
variables,
|
|
13921
13941
|
isConnection: true,
|
|
13922
13942
|
isList: false,
|
|
@@ -13934,10 +13954,10 @@ var ReportSubBuilder = class {
|
|
|
13934
13954
|
}
|
|
13935
13955
|
/** Include layout in the parent query. */
|
|
13936
13956
|
layout(variables) {
|
|
13937
|
-
const info = extractIncludeInfo(
|
|
13957
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
13938
13958
|
this._includes.push({
|
|
13939
13959
|
fieldName: "layout",
|
|
13940
|
-
fragmentDoc:
|
|
13960
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ReportMemberFragmentDoc,
|
|
13941
13961
|
variables,
|
|
13942
13962
|
isConnection: false,
|
|
13943
13963
|
isList: true,
|
|
@@ -13957,7 +13977,7 @@ var TableSubBuilder = class {
|
|
|
13957
13977
|
_includes = [];
|
|
13958
13978
|
/** Include database in the parent query. */
|
|
13959
13979
|
database(variables, builder) {
|
|
13960
|
-
const info = extractIncludeInfo(
|
|
13980
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
13961
13981
|
let children;
|
|
13962
13982
|
if (builder) {
|
|
13963
13983
|
const sub = new DatabaseSubBuilder();
|
|
@@ -13966,7 +13986,7 @@ var TableSubBuilder = class {
|
|
|
13966
13986
|
}
|
|
13967
13987
|
this._includes.push({
|
|
13968
13988
|
fieldName: "database",
|
|
13969
|
-
fragmentDoc:
|
|
13989
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DatabaseFragmentDoc,
|
|
13970
13990
|
variables,
|
|
13971
13991
|
isConnection: false,
|
|
13972
13992
|
isList: false,
|
|
@@ -13983,7 +14003,7 @@ var TableSubBuilder = class {
|
|
|
13983
14003
|
}
|
|
13984
14004
|
/** Include document in the parent query. */
|
|
13985
14005
|
document(variables, builder) {
|
|
13986
|
-
const info = extractIncludeInfo(
|
|
14006
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
13987
14007
|
let children;
|
|
13988
14008
|
if (builder) {
|
|
13989
14009
|
const sub = new DocumentSubBuilder();
|
|
@@ -13992,7 +14012,7 @@ var TableSubBuilder = class {
|
|
|
13992
14012
|
}
|
|
13993
14013
|
this._includes.push({
|
|
13994
14014
|
fieldName: "document",
|
|
13995
|
-
fragmentDoc:
|
|
14015
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DocumentFragmentDoc,
|
|
13996
14016
|
variables,
|
|
13997
14017
|
isConnection: false,
|
|
13998
14018
|
isList: false,
|
|
@@ -14009,10 +14029,10 @@ var TableSubBuilder = class {
|
|
|
14009
14029
|
}
|
|
14010
14030
|
/** Include fromRelations in the parent query. */
|
|
14011
14031
|
fromRelations(variables) {
|
|
14012
|
-
const info = extractIncludeInfo(
|
|
14032
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
14013
14033
|
this._includes.push({
|
|
14014
14034
|
fieldName: "fromRelations",
|
|
14015
|
-
fragmentDoc:
|
|
14035
|
+
fragmentDoc: chunkMMZOIZLF_cjs.RelationFragmentDoc,
|
|
14016
14036
|
variables,
|
|
14017
14037
|
isConnection: false,
|
|
14018
14038
|
isList: true,
|
|
@@ -14028,10 +14048,10 @@ var TableSubBuilder = class {
|
|
|
14028
14048
|
}
|
|
14029
14049
|
/** Include toRelations in the parent query. */
|
|
14030
14050
|
toRelations(variables) {
|
|
14031
|
-
const info = extractIncludeInfo(
|
|
14051
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
14032
14052
|
this._includes.push({
|
|
14033
14053
|
fieldName: "toRelations",
|
|
14034
|
-
fragmentDoc:
|
|
14054
|
+
fragmentDoc: chunkMMZOIZLF_cjs.RelationFragmentDoc,
|
|
14035
14055
|
variables,
|
|
14036
14056
|
isConnection: false,
|
|
14037
14057
|
isList: true,
|
|
@@ -14048,454 +14068,460 @@ var TableSubBuilder = class {
|
|
|
14048
14068
|
};
|
|
14049
14069
|
var AbortChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14050
14070
|
async fetch(variables) {
|
|
14051
|
-
const response = await this._syncEngine.mutate(
|
|
14071
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.AbortChatDocument, variables, MUTATION_CACHE_RULES["abortChat"]);
|
|
14052
14072
|
return response.abortChat;
|
|
14053
14073
|
}
|
|
14054
14074
|
};
|
|
14055
14075
|
var AddInsightToReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14056
14076
|
async fetch(variables, options) {
|
|
14057
|
-
const response = await this._syncEngine.mutate(
|
|
14077
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.AddInsightToReportDocument, variables, MUTATION_CACHE_RULES["addInsightToReport"]);
|
|
14058
14078
|
const data = response.addInsightToReport;
|
|
14059
14079
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
14060
14080
|
}
|
|
14061
14081
|
};
|
|
14062
14082
|
var CancelOauthFlowMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14063
14083
|
async fetch(variables) {
|
|
14064
|
-
const response = await this._syncEngine.mutate(
|
|
14084
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CancelOauthFlowDocument, variables, MUTATION_CACHE_RULES["cancelOauthFlow"]);
|
|
14065
14085
|
return response.cancelOauthFlow;
|
|
14066
14086
|
}
|
|
14067
14087
|
};
|
|
14068
14088
|
var CancelWorkspaceDeletionMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14069
14089
|
async fetch(variables) {
|
|
14070
|
-
const response = await this._syncEngine.mutate(
|
|
14090
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CancelWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["cancelWorkspaceDeletion"]);
|
|
14071
14091
|
return response.cancelWorkspaceDeletion;
|
|
14072
14092
|
}
|
|
14073
14093
|
};
|
|
14074
14094
|
var ConnectIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14075
14095
|
async fetch(variables, options) {
|
|
14076
|
-
const response = await this._syncEngine.mutate(
|
|
14096
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.ConnectIntegrationDocument, variables, MUTATION_CACHE_RULES["connectIntegration"]);
|
|
14077
14097
|
const data = response.connectIntegration;
|
|
14078
14098
|
return new CreateIntegrationOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
14079
14099
|
}
|
|
14080
14100
|
};
|
|
14081
14101
|
var ConsumePulseEventsMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14082
14102
|
async fetch(variables) {
|
|
14083
|
-
const response = await this._syncEngine.mutate(
|
|
14103
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.ConsumePulseEventsDocument, variables, MUTATION_CACHE_RULES["consumePulseEvents"]);
|
|
14084
14104
|
return response.consumePulseEvents;
|
|
14085
14105
|
}
|
|
14086
14106
|
};
|
|
14087
14107
|
var ContinueImportedChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14088
14108
|
async fetch(variables) {
|
|
14089
|
-
const response = await this._syncEngine.mutate(
|
|
14109
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.ContinueImportedChatDocument, variables, MUTATION_CACHE_RULES["continueImportedChat"]);
|
|
14090
14110
|
return response.continueImportedChat;
|
|
14091
14111
|
}
|
|
14092
14112
|
};
|
|
14093
14113
|
var ContinueInterpretationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14094
14114
|
async fetch(variables) {
|
|
14095
|
-
const response = await this._syncEngine.mutate(
|
|
14115
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.ContinueInterpretationDocument, variables, MUTATION_CACHE_RULES["continueInterpretation"]);
|
|
14096
14116
|
return response.continueInterpretation;
|
|
14097
14117
|
}
|
|
14098
14118
|
};
|
|
14099
14119
|
var CreateAgentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14100
14120
|
async fetch(variables, options) {
|
|
14101
|
-
const response = await this._syncEngine.mutate(
|
|
14121
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CreateAgentDocument, variables, MUTATION_CACHE_RULES["createAgent"]);
|
|
14102
14122
|
const data = response.createAgent;
|
|
14103
14123
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
14104
14124
|
}
|
|
14105
14125
|
};
|
|
14106
14126
|
var CreateChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14107
14127
|
async fetch(variables, options) {
|
|
14108
|
-
const response = await this._syncEngine.mutate(
|
|
14128
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CreateChatDocument, variables, MUTATION_CACHE_RULES["createChat"]);
|
|
14109
14129
|
const data = response.createChat;
|
|
14110
14130
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
14111
14131
|
}
|
|
14112
14132
|
};
|
|
14113
14133
|
var CreateDatabaseMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14114
14134
|
async fetch(variables, options) {
|
|
14115
|
-
const response = await this._syncEngine.mutate(
|
|
14135
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CreateDatabaseDocument, variables, MUTATION_CACHE_RULES["createDatabase"]);
|
|
14116
14136
|
const data = response.createDatabase;
|
|
14117
14137
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
14118
14138
|
}
|
|
14119
14139
|
};
|
|
14120
14140
|
var CreateDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14121
14141
|
async fetch(variables, options) {
|
|
14122
|
-
const response = await this._syncEngine.mutate(
|
|
14142
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CreateDocumentDocument, variables, MUTATION_CACHE_RULES["createDocument"]);
|
|
14123
14143
|
const data = response.createDocument;
|
|
14124
14144
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
14125
14145
|
}
|
|
14126
14146
|
};
|
|
14127
14147
|
var CreateFeedbackMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14128
14148
|
async fetch(variables, options) {
|
|
14129
|
-
const response = await this._syncEngine.mutate(
|
|
14149
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CreateFeedbackDocument, variables, MUTATION_CACHE_RULES["createFeedback"]);
|
|
14130
14150
|
const data = response.createFeedback;
|
|
14131
14151
|
return new Feedback(this._request, data, this._syncEngine, this._baseUrl);
|
|
14132
14152
|
}
|
|
14133
14153
|
};
|
|
14134
14154
|
var CreateFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14135
14155
|
async fetch(variables, options) {
|
|
14136
|
-
const response = await this._syncEngine.mutate(
|
|
14156
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CreateFolderDocument, variables, MUTATION_CACHE_RULES["createFolder"]);
|
|
14137
14157
|
const data = response.createFolder;
|
|
14138
14158
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
14139
14159
|
}
|
|
14140
14160
|
};
|
|
14141
14161
|
var CreateInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14142
14162
|
async fetch(variables, options) {
|
|
14143
|
-
const response = await this._syncEngine.mutate(
|
|
14163
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CreateInsightDocument, variables, MUTATION_CACHE_RULES["createInsight"]);
|
|
14144
14164
|
const data = response.createInsight;
|
|
14145
14165
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
14146
14166
|
}
|
|
14147
14167
|
};
|
|
14148
14168
|
var CreateIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14149
14169
|
async fetch(variables, options) {
|
|
14150
|
-
const response = await this._syncEngine.mutate(
|
|
14170
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CreateIntegrationDocument, variables, MUTATION_CACHE_RULES["createIntegration"]);
|
|
14151
14171
|
const data = response.createIntegration;
|
|
14152
14172
|
return new CreateIntegrationOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
14153
14173
|
}
|
|
14154
14174
|
};
|
|
14155
14175
|
var CreateReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14156
14176
|
async fetch(variables, options) {
|
|
14157
|
-
const response = await this._syncEngine.mutate(
|
|
14177
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CreateReportDocument, variables, MUTATION_CACHE_RULES["createReport"]);
|
|
14158
14178
|
const data = response.createReport;
|
|
14159
14179
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
14160
14180
|
}
|
|
14161
14181
|
};
|
|
14162
14182
|
var CreateTableMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14163
14183
|
async fetch(variables, options) {
|
|
14164
|
-
const response = await this._syncEngine.mutate(
|
|
14184
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CreateTableDocument, variables, MUTATION_CACHE_RULES["createTable"]);
|
|
14165
14185
|
const data = response.createTable;
|
|
14166
14186
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
14167
14187
|
}
|
|
14168
14188
|
};
|
|
14169
14189
|
var CreateUserSkillFileMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14170
14190
|
async fetch(variables, options) {
|
|
14171
|
-
const response = await this._syncEngine.mutate(
|
|
14191
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CreateUserSkillFileDocument, variables, MUTATION_CACHE_RULES["createUserSkillFile"]);
|
|
14172
14192
|
const data = response.createUserSkillFile;
|
|
14173
14193
|
return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
14174
14194
|
}
|
|
14175
14195
|
};
|
|
14176
14196
|
var CreateUserSkillFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14177
14197
|
async fetch(variables, options) {
|
|
14178
|
-
const response = await this._syncEngine.mutate(
|
|
14198
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.CreateUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["createUserSkillFolder"]);
|
|
14179
14199
|
const data = response.createUserSkillFolder;
|
|
14180
14200
|
return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
14181
14201
|
}
|
|
14182
14202
|
};
|
|
14183
14203
|
var DeleteAgentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14184
14204
|
async fetch(variables, options) {
|
|
14185
|
-
const response = await this._syncEngine.mutate(
|
|
14205
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DeleteAgentDocument, variables, MUTATION_CACHE_RULES["deleteAgent"]);
|
|
14186
14206
|
const data = response.deleteAgent;
|
|
14187
14207
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
14188
14208
|
}
|
|
14189
14209
|
};
|
|
14190
14210
|
var DeleteArtifactMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14191
14211
|
async fetch(variables, options) {
|
|
14192
|
-
const response = await this._syncEngine.mutate(
|
|
14212
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DeleteArtifactDocument, variables, MUTATION_CACHE_RULES["deleteArtifact"]);
|
|
14193
14213
|
const data = response.deleteArtifact;
|
|
14194
14214
|
return new Artifact(this._request, data, this._syncEngine, this._baseUrl);
|
|
14195
14215
|
}
|
|
14196
14216
|
};
|
|
14197
14217
|
var DeleteChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14198
14218
|
async fetch(variables, options) {
|
|
14199
|
-
const response = await this._syncEngine.mutate(
|
|
14219
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DeleteChatDocument, variables, MUTATION_CACHE_RULES["deleteChat"]);
|
|
14200
14220
|
const data = response.deleteChat;
|
|
14201
14221
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
14202
14222
|
}
|
|
14203
14223
|
};
|
|
14204
14224
|
var DeleteDatabaseMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14205
14225
|
async fetch(variables, options) {
|
|
14206
|
-
const response = await this._syncEngine.mutate(
|
|
14226
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DeleteDatabaseDocument, variables, MUTATION_CACHE_RULES["deleteDatabase"]);
|
|
14207
14227
|
const data = response.deleteDatabase;
|
|
14208
14228
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
14209
14229
|
}
|
|
14210
14230
|
};
|
|
14211
14231
|
var DeleteDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14212
14232
|
async fetch(variables, options) {
|
|
14213
|
-
const response = await this._syncEngine.mutate(
|
|
14233
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DeleteDocumentDocument, variables, MUTATION_CACHE_RULES["deleteDocument"]);
|
|
14214
14234
|
const data = response.deleteDocument;
|
|
14215
14235
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
14216
14236
|
}
|
|
14217
14237
|
};
|
|
14218
14238
|
var DeleteFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14219
14239
|
async fetch(variables, options) {
|
|
14220
|
-
const response = await this._syncEngine.mutate(
|
|
14240
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DeleteFolderDocument, variables, MUTATION_CACHE_RULES["deleteFolder"]);
|
|
14221
14241
|
const data = response.deleteFolder;
|
|
14222
14242
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
14223
14243
|
}
|
|
14224
14244
|
};
|
|
14225
14245
|
var DeleteInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14226
14246
|
async fetch(variables, options) {
|
|
14227
|
-
const response = await this._syncEngine.mutate(
|
|
14247
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DeleteInsightDocument, variables, MUTATION_CACHE_RULES["deleteInsight"]);
|
|
14228
14248
|
const data = response.deleteInsight;
|
|
14229
14249
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
14230
14250
|
}
|
|
14231
14251
|
};
|
|
14232
14252
|
var DeleteInsightsMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14233
14253
|
async fetch(variables, options) {
|
|
14234
|
-
const response = await this._syncEngine.mutate(
|
|
14254
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DeleteInsightsDocument, variables, MUTATION_CACHE_RULES["deleteInsights"]);
|
|
14235
14255
|
const data = response.deleteInsights;
|
|
14236
14256
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
14237
14257
|
}
|
|
14238
14258
|
};
|
|
14239
14259
|
var DeleteIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14240
14260
|
async fetch(variables) {
|
|
14241
|
-
const response = await this._syncEngine.mutate(
|
|
14261
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DeleteIntegrationDocument, variables, MUTATION_CACHE_RULES["deleteIntegration"]);
|
|
14242
14262
|
return response.deleteIntegration;
|
|
14243
14263
|
}
|
|
14244
14264
|
};
|
|
14245
14265
|
var DeleteReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14246
14266
|
async fetch(variables, options) {
|
|
14247
|
-
const response = await this._syncEngine.mutate(
|
|
14267
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DeleteReportDocument, variables, MUTATION_CACHE_RULES["deleteReport"]);
|
|
14248
14268
|
const data = response.deleteReport;
|
|
14249
14269
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
14250
14270
|
}
|
|
14251
14271
|
};
|
|
14252
14272
|
var DeleteTableMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14253
14273
|
async fetch(variables, options) {
|
|
14254
|
-
const response = await this._syncEngine.mutate(
|
|
14274
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DeleteTableDocument, variables, MUTATION_CACHE_RULES["deleteTable"]);
|
|
14255
14275
|
const data = response.deleteTable;
|
|
14256
14276
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
14257
14277
|
}
|
|
14258
14278
|
};
|
|
14259
14279
|
var DeleteUserSkillFileMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14260
14280
|
async fetch(variables, options) {
|
|
14261
|
-
const response = await this._syncEngine.mutate(
|
|
14281
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DeleteUserSkillFileDocument, variables, MUTATION_CACHE_RULES["deleteUserSkillFile"]);
|
|
14262
14282
|
const data = response.deleteUserSkillFile;
|
|
14263
14283
|
return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
14264
14284
|
}
|
|
14265
14285
|
};
|
|
14266
14286
|
var DeleteUserSkillFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14267
14287
|
async fetch(variables, options) {
|
|
14268
|
-
const response = await this._syncEngine.mutate(
|
|
14288
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DeleteUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["deleteUserSkillFolder"]);
|
|
14269
14289
|
const data = response.deleteUserSkillFolder;
|
|
14270
14290
|
return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
14271
14291
|
}
|
|
14272
14292
|
};
|
|
14273
14293
|
var DisconnectIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14274
14294
|
async fetch(variables) {
|
|
14275
|
-
const response = await this._syncEngine.mutate(
|
|
14295
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DisconnectIntegrationDocument, variables, MUTATION_CACHE_RULES["disconnectIntegration"]);
|
|
14276
14296
|
return response.disconnectIntegration;
|
|
14277
14297
|
}
|
|
14278
14298
|
};
|
|
14279
14299
|
var DismissPulseEventMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14280
14300
|
async fetch(variables, options) {
|
|
14281
|
-
const response = await this._syncEngine.mutate(
|
|
14301
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.DismissPulseEventDocument, variables, MUTATION_CACHE_RULES["dismissPulseEvent"]);
|
|
14282
14302
|
const data = response.dismissPulseEvent;
|
|
14283
14303
|
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
14284
14304
|
}
|
|
14285
14305
|
};
|
|
14286
14306
|
var ExecuteChatImportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14287
14307
|
async fetch(variables, options) {
|
|
14288
|
-
const response = await this._syncEngine.mutate(
|
|
14308
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.ExecuteChatImportDocument, variables, MUTATION_CACHE_RULES["executeChatImport"]);
|
|
14289
14309
|
const data = response.executeChatImport;
|
|
14290
14310
|
return new ChatImportExecuteOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
14291
14311
|
}
|
|
14292
14312
|
};
|
|
14293
14313
|
var GenerateUploadUriMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14294
14314
|
async fetch(variables, options) {
|
|
14295
|
-
const response = await this._syncEngine.mutate(
|
|
14315
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.GenerateUploadUriDocument, variables, MUTATION_CACHE_RULES["generateUploadUri"]);
|
|
14296
14316
|
const data = response.generateUploadUri;
|
|
14297
14317
|
return new FileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
14298
14318
|
}
|
|
14299
14319
|
};
|
|
14300
14320
|
var PreviewChatImportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14301
14321
|
async fetch(variables, options) {
|
|
14302
|
-
const response = await this._syncEngine.mutate(
|
|
14322
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.PreviewChatImportDocument, variables, MUTATION_CACHE_RULES["previewChatImport"]);
|
|
14303
14323
|
const data = response.previewChatImport;
|
|
14304
14324
|
return new ChatImportPreviewOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
14305
14325
|
}
|
|
14306
14326
|
};
|
|
14307
14327
|
var ReanalyzeDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14308
14328
|
async fetch(variables, options) {
|
|
14309
|
-
const response = await this._syncEngine.mutate(
|
|
14329
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.ReanalyzeDocumentDocument, variables, MUTATION_CACHE_RULES["reanalyzeDocument"]);
|
|
14310
14330
|
const data = response.reanalyzeDocument;
|
|
14311
14331
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
14312
14332
|
}
|
|
14313
14333
|
};
|
|
14314
|
-
var
|
|
14334
|
+
var RefineAgentInstructionMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14315
14335
|
async fetch(variables) {
|
|
14316
|
-
const response = await this._syncEngine.mutate(
|
|
14317
|
-
return response.
|
|
14336
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.RefineAgentInstructionDocument, variables, MUTATION_CACHE_RULES["refineAgentInstruction"]);
|
|
14337
|
+
return response.refineAgentInstruction;
|
|
14338
|
+
}
|
|
14339
|
+
};
|
|
14340
|
+
var RefineSkillInstructionMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14341
|
+
async fetch(variables) {
|
|
14342
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.RefineSkillInstructionDocument, variables, MUTATION_CACHE_RULES["refineSkillInstruction"]);
|
|
14343
|
+
return response.refineSkillInstruction;
|
|
14318
14344
|
}
|
|
14319
14345
|
};
|
|
14320
14346
|
var RefreshDatabaseSchemaMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14321
14347
|
async fetch(variables) {
|
|
14322
|
-
const response = await this._syncEngine.mutate(
|
|
14348
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.RefreshDatabaseSchemaDocument, variables, MUTATION_CACHE_RULES["refreshDatabaseSchema"]);
|
|
14323
14349
|
return response.refreshDatabaseSchema;
|
|
14324
14350
|
}
|
|
14325
14351
|
};
|
|
14326
14352
|
var RefreshInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14327
14353
|
async fetch(variables, options) {
|
|
14328
|
-
const response = await this._syncEngine.mutate(
|
|
14354
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.RefreshInsightDocument, variables, MUTATION_CACHE_RULES["refreshInsight"]);
|
|
14329
14355
|
const data = response.refreshInsight;
|
|
14330
14356
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
14331
14357
|
}
|
|
14332
14358
|
};
|
|
14333
14359
|
var ReinterpretSourceMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14334
14360
|
async fetch(variables) {
|
|
14335
|
-
const response = await this._syncEngine.mutate(
|
|
14361
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.ReinterpretSourceDocument, variables, MUTATION_CACHE_RULES["reinterpretSource"]);
|
|
14336
14362
|
return response.reinterpretSource;
|
|
14337
14363
|
}
|
|
14338
14364
|
};
|
|
14339
14365
|
var ReinterpretSourcesOfuserMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14340
14366
|
async fetch(variables) {
|
|
14341
|
-
const response = await this._syncEngine.mutate(
|
|
14367
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.ReinterpretSourcesOfuserDocument, variables, MUTATION_CACHE_RULES["reinterpretSourcesOfuser"]);
|
|
14342
14368
|
return response.reinterpretSourcesOfuser;
|
|
14343
14369
|
}
|
|
14344
14370
|
};
|
|
14345
14371
|
var RelocateInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14346
14372
|
async fetch(variables, options) {
|
|
14347
|
-
const response = await this._syncEngine.mutate(
|
|
14373
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.RelocateInsightDocument, variables, MUTATION_CACHE_RULES["relocateInsight"]);
|
|
14348
14374
|
const data = response.relocateInsight;
|
|
14349
14375
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
14350
14376
|
}
|
|
14351
14377
|
};
|
|
14352
14378
|
var RemoveInsightFromReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14353
14379
|
async fetch(variables, options) {
|
|
14354
|
-
const response = await this._syncEngine.mutate(
|
|
14380
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.RemoveInsightFromReportDocument, variables, MUTATION_CACHE_RULES["removeInsightFromReport"]);
|
|
14355
14381
|
const data = response.removeInsightFromReport;
|
|
14356
14382
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
14357
14383
|
}
|
|
14358
14384
|
};
|
|
14359
14385
|
var ResetWorkspaceMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14360
14386
|
async fetch(variables) {
|
|
14361
|
-
const response = await this._syncEngine.mutate(
|
|
14387
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.ResetWorkspaceDocument, variables, MUTATION_CACHE_RULES["resetWorkspace"]);
|
|
14362
14388
|
return response.resetWorkspace;
|
|
14363
14389
|
}
|
|
14364
14390
|
};
|
|
14365
14391
|
var ResolvePulseEventMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14366
14392
|
async fetch(variables, options) {
|
|
14367
|
-
const response = await this._syncEngine.mutate(
|
|
14393
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.ResolvePulseEventDocument, variables, MUTATION_CACHE_RULES["resolvePulseEvent"]);
|
|
14368
14394
|
const data = response.resolvePulseEvent;
|
|
14369
14395
|
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
14370
14396
|
}
|
|
14371
14397
|
};
|
|
14372
14398
|
var ScheduleWorkspaceDeletionMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14373
14399
|
async fetch(variables, options) {
|
|
14374
|
-
const response = await this._syncEngine.mutate(
|
|
14400
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.ScheduleWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["scheduleWorkspaceDeletion"]);
|
|
14375
14401
|
const data = response.scheduleWorkspaceDeletion;
|
|
14376
14402
|
return new WorkspaceDeleteSchedule(this._request, data, this._syncEngine, this._baseUrl);
|
|
14377
14403
|
}
|
|
14378
14404
|
};
|
|
14379
14405
|
var SendMessageMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14380
14406
|
async fetch(variables, options) {
|
|
14381
|
-
const response = await this._syncEngine.mutate(
|
|
14407
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.SendMessageDocument, variables, MUTATION_CACHE_RULES["sendMessage"]);
|
|
14382
14408
|
const data = response.sendMessage;
|
|
14383
14409
|
return new ChatMessage(this._request, data, this._syncEngine, this._baseUrl);
|
|
14384
14410
|
}
|
|
14385
14411
|
};
|
|
14386
14412
|
var SetDatabasePrimaryKeyMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14387
14413
|
async fetch(variables) {
|
|
14388
|
-
const response = await this._syncEngine.mutate(
|
|
14414
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.SetDatabasePrimaryKeyDocument, variables, MUTATION_CACHE_RULES["setDatabasePrimaryKey"]);
|
|
14389
14415
|
return response.setDatabasePrimaryKey;
|
|
14390
14416
|
}
|
|
14391
14417
|
};
|
|
14392
14418
|
var UpdateAgentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14393
14419
|
async fetch(variables, options) {
|
|
14394
|
-
const response = await this._syncEngine.mutate(
|
|
14420
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateAgentDocument, variables, MUTATION_CACHE_RULES["updateAgent"]);
|
|
14395
14421
|
const data = response.updateAgent;
|
|
14396
14422
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
14397
14423
|
}
|
|
14398
14424
|
};
|
|
14399
14425
|
var UpdateArtifactNameMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14400
14426
|
async fetch(variables, options) {
|
|
14401
|
-
const response = await this._syncEngine.mutate(
|
|
14427
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateArtifactNameDocument, variables, MUTATION_CACHE_RULES["updateArtifactName"]);
|
|
14402
14428
|
const data = response.updateArtifactName;
|
|
14403
14429
|
return new Artifact(this._request, data, this._syncEngine, this._baseUrl);
|
|
14404
14430
|
}
|
|
14405
14431
|
};
|
|
14406
14432
|
var UpdateChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14407
14433
|
async fetch(variables, options) {
|
|
14408
|
-
const response = await this._syncEngine.mutate(
|
|
14434
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateChatDocument, variables, MUTATION_CACHE_RULES["updateChat"]);
|
|
14409
14435
|
const data = response.updateChat;
|
|
14410
14436
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
14411
14437
|
}
|
|
14412
14438
|
};
|
|
14413
14439
|
var UpdateDatabaseMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14414
14440
|
async fetch(variables, options) {
|
|
14415
|
-
const response = await this._syncEngine.mutate(
|
|
14441
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateDatabaseDocument, variables, MUTATION_CACHE_RULES["updateDatabase"]);
|
|
14416
14442
|
const data = response.updateDatabase;
|
|
14417
14443
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
14418
14444
|
}
|
|
14419
14445
|
};
|
|
14420
14446
|
var UpdateDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14421
14447
|
async fetch(variables, options) {
|
|
14422
|
-
const response = await this._syncEngine.mutate(
|
|
14448
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateDocumentDocument, variables, MUTATION_CACHE_RULES["updateDocument"]);
|
|
14423
14449
|
const data = response.updateDocument;
|
|
14424
14450
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
14425
14451
|
}
|
|
14426
14452
|
};
|
|
14427
14453
|
var UpdateFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14428
14454
|
async fetch(variables, options) {
|
|
14429
|
-
const response = await this._syncEngine.mutate(
|
|
14455
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateFolderDocument, variables, MUTATION_CACHE_RULES["updateFolder"]);
|
|
14430
14456
|
const data = response.updateFolder;
|
|
14431
14457
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
14432
14458
|
}
|
|
14433
14459
|
};
|
|
14434
14460
|
var UpdateInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14435
14461
|
async fetch(variables, options) {
|
|
14436
|
-
const response = await this._syncEngine.mutate(
|
|
14462
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateInsightDocument, variables, MUTATION_CACHE_RULES["updateInsight"]);
|
|
14437
14463
|
const data = response.updateInsight;
|
|
14438
14464
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
14439
14465
|
}
|
|
14440
14466
|
};
|
|
14441
14467
|
var UpdateInsightInReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14442
14468
|
async fetch(variables, options) {
|
|
14443
|
-
const response = await this._syncEngine.mutate(
|
|
14469
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateInsightInReportDocument, variables, MUTATION_CACHE_RULES["updateInsightInReport"]);
|
|
14444
14470
|
const data = response.updateInsightInReport;
|
|
14445
14471
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
14446
14472
|
}
|
|
14447
14473
|
};
|
|
14448
14474
|
var UpdateInsightThumbnailMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14449
14475
|
async fetch(variables) {
|
|
14450
|
-
const response = await this._syncEngine.mutate(
|
|
14476
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateInsightThumbnailDocument, variables, MUTATION_CACHE_RULES["updateInsightThumbnail"]);
|
|
14451
14477
|
return response.updateInsightThumbnail;
|
|
14452
14478
|
}
|
|
14453
14479
|
};
|
|
14454
14480
|
var UpdateInterpMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14455
14481
|
async fetch(variables, options) {
|
|
14456
|
-
const response = await this._syncEngine.mutate(
|
|
14482
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateInterpDocument, variables, MUTATION_CACHE_RULES["updateInterp"]);
|
|
14457
14483
|
const data = response.updateInterp;
|
|
14458
14484
|
return new Interpretation(this._request, data, this._syncEngine, this._baseUrl);
|
|
14459
14485
|
}
|
|
14460
14486
|
};
|
|
14461
14487
|
var UpdateLiveContextMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14462
14488
|
async fetch(variables, options) {
|
|
14463
|
-
const response = await this._syncEngine.mutate(
|
|
14489
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateLiveContextDocument, variables, MUTATION_CACHE_RULES["updateLiveContext"]);
|
|
14464
14490
|
const data = response.updateLiveContext;
|
|
14465
14491
|
return new LiveContext(this._request, data, this._syncEngine, this._baseUrl);
|
|
14466
14492
|
}
|
|
14467
14493
|
};
|
|
14468
14494
|
var UpdatePulseTriggerMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14469
14495
|
async fetch(variables, options) {
|
|
14470
|
-
const response = await this._syncEngine.mutate(
|
|
14496
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdatePulseTriggerDocument, variables, MUTATION_CACHE_RULES["updatePulseTrigger"]);
|
|
14471
14497
|
const data = response.updatePulseTrigger;
|
|
14472
14498
|
return new PulseTriggerSettingModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
14473
14499
|
}
|
|
14474
14500
|
};
|
|
14475
14501
|
var UpdateReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14476
14502
|
async fetch(variables, options) {
|
|
14477
|
-
const response = await this._syncEngine.mutate(
|
|
14503
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateReportDocument, variables, MUTATION_CACHE_RULES["updateReport"]);
|
|
14478
14504
|
const data = response.updateReport;
|
|
14479
14505
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
14480
14506
|
}
|
|
14481
14507
|
};
|
|
14482
14508
|
var UpdateTableMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14483
14509
|
async fetch(variables, options) {
|
|
14484
|
-
const response = await this._syncEngine.mutate(
|
|
14510
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateTableDocument, variables, MUTATION_CACHE_RULES["updateTable"]);
|
|
14485
14511
|
const data = response.updateTable;
|
|
14486
14512
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
14487
14513
|
}
|
|
14488
14514
|
};
|
|
14489
14515
|
var UpdateUserSkillFileMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14490
14516
|
async fetch(variables, options) {
|
|
14491
|
-
const response = await this._syncEngine.mutate(
|
|
14517
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateUserSkillFileDocument, variables, MUTATION_CACHE_RULES["updateUserSkillFile"]);
|
|
14492
14518
|
const data = response.updateUserSkillFile;
|
|
14493
14519
|
return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
14494
14520
|
}
|
|
14495
14521
|
};
|
|
14496
14522
|
var UpdateUserSkillFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
14497
14523
|
async fetch(variables, options) {
|
|
14498
|
-
const response = await this._syncEngine.mutate(
|
|
14524
|
+
const response = await this._syncEngine.mutate(chunkMMZOIZLF_cjs.UpdateUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["updateUserSkillFolder"]);
|
|
14499
14525
|
const data = response.updateUserSkillFolder;
|
|
14500
14526
|
return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
14501
14527
|
}
|
|
@@ -14509,7 +14535,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14509
14535
|
}
|
|
14510
14536
|
async fetch(options) {
|
|
14511
14537
|
const variables = this._variables;
|
|
14512
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14538
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.AgentDocument, "agent", this._includes, variables);
|
|
14513
14539
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "agent");
|
|
14514
14540
|
const data = response.agent;
|
|
14515
14541
|
const instance = new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14521,7 +14547,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14521
14547
|
watch(options) {
|
|
14522
14548
|
const variables = this._variables;
|
|
14523
14549
|
const includes = this._includes;
|
|
14524
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14550
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.AgentDocument, "agent", includes, variables);
|
|
14525
14551
|
const raw = this._syncEngine.watch(
|
|
14526
14552
|
queryDoc,
|
|
14527
14553
|
mergedVars,
|
|
@@ -14551,7 +14577,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14551
14577
|
}
|
|
14552
14578
|
/** Include chats in this query (Smart Fetch — single HTTP request). */
|
|
14553
14579
|
chats(variables, builder) {
|
|
14554
|
-
const info = extractIncludeInfo(
|
|
14580
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
14555
14581
|
let children;
|
|
14556
14582
|
if (builder) {
|
|
14557
14583
|
const sub = new ChatSubBuilder();
|
|
@@ -14560,7 +14586,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14560
14586
|
}
|
|
14561
14587
|
this._includes.push({
|
|
14562
14588
|
fieldName: "chats",
|
|
14563
|
-
fragmentDoc:
|
|
14589
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatConnectionFragmentDoc,
|
|
14564
14590
|
variables,
|
|
14565
14591
|
isConnection: true,
|
|
14566
14592
|
isList: false,
|
|
@@ -14585,20 +14611,28 @@ var Agent_ChatsQuery = class _Agent_ChatsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
14585
14611
|
}
|
|
14586
14612
|
async fetch(options) {
|
|
14587
14613
|
const variables = this._variables;
|
|
14588
|
-
const response = await this._syncEngine.query(
|
|
14614
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Agent_ChatsDocument, variables, "agent");
|
|
14589
14615
|
const data = response.agent?.chats;
|
|
14590
14616
|
return new ChatConnection(this._request, (conn, opts) => new _Agent_ChatsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
14591
14617
|
}
|
|
14592
14618
|
watch(options) {
|
|
14593
14619
|
const variables = this._variables;
|
|
14594
14620
|
const raw = this._syncEngine.watch(
|
|
14595
|
-
|
|
14621
|
+
chunkMMZOIZLF_cjs.Agent_ChatsDocument,
|
|
14596
14622
|
variables,
|
|
14597
14623
|
"agent",
|
|
14598
14624
|
async (db) => {
|
|
14599
|
-
const
|
|
14600
|
-
const
|
|
14601
|
-
|
|
14625
|
+
const queryKey = buildQueryKey("agent", variables, chunkMMZOIZLF_cjs.Agent_ChatsDocument);
|
|
14626
|
+
const qr = await db._queryResults.get(queryKey);
|
|
14627
|
+
if (!qr) {
|
|
14628
|
+
throw new DvinaCacheMissError(queryKey);
|
|
14629
|
+
}
|
|
14630
|
+
const nodes = await db.table("chats").bulkGet(qr.entityIds);
|
|
14631
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
14632
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
14633
|
+
throw new DvinaCacheMissError(queryKey);
|
|
14634
|
+
}
|
|
14635
|
+
return { agent: { chats: { __typename: "ChatConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
14602
14636
|
}
|
|
14603
14637
|
);
|
|
14604
14638
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -14616,7 +14650,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14616
14650
|
}
|
|
14617
14651
|
async fetch(options) {
|
|
14618
14652
|
const variables = this._variables;
|
|
14619
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14653
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.AgentsDocument, "agents", this._includes, variables, true);
|
|
14620
14654
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "agents");
|
|
14621
14655
|
const data = response.agents;
|
|
14622
14656
|
const connection = new AgentConnection(this._request, (conn, opts) => new _AgentsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -14633,15 +14667,22 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14633
14667
|
const subscriptionId = crypto.randomUUID();
|
|
14634
14668
|
const includes = this._includes;
|
|
14635
14669
|
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) }] : []);
|
|
14636
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14670
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.AgentsDocument, "agents", includes, variables, true);
|
|
14637
14671
|
const raw = this._syncEngine.watch(
|
|
14638
14672
|
queryDoc,
|
|
14639
14673
|
mergedVars,
|
|
14640
14674
|
"agents",
|
|
14641
14675
|
async (db) => {
|
|
14642
|
-
const
|
|
14643
|
-
const
|
|
14676
|
+
const queryKey = buildQueryKey("agents", mergedVars, queryDoc);
|
|
14677
|
+
const qr = await db._queryResults.get(queryKey);
|
|
14678
|
+
if (!qr) {
|
|
14679
|
+
throw new DvinaCacheMissError(queryKey);
|
|
14680
|
+
}
|
|
14681
|
+
const nodes = await db.table("agents").bulkGet(qr.entityIds);
|
|
14644
14682
|
const filteredNodes = nodes.filter(Boolean);
|
|
14683
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
14684
|
+
throw new DvinaCacheMissError(queryKey);
|
|
14685
|
+
}
|
|
14645
14686
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "agents", filteredNodes, includes) : filteredNodes;
|
|
14646
14687
|
return { agents: { __typename: "AgentConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
14647
14688
|
},
|
|
@@ -14668,7 +14709,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14668
14709
|
}
|
|
14669
14710
|
/** Include chats in this query (Smart Fetch — single HTTP request). */
|
|
14670
14711
|
chats(variables, builder) {
|
|
14671
|
-
const info = extractIncludeInfo(
|
|
14712
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
14672
14713
|
let children;
|
|
14673
14714
|
if (builder) {
|
|
14674
14715
|
const sub = new ChatSubBuilder();
|
|
@@ -14677,7 +14718,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14677
14718
|
}
|
|
14678
14719
|
this._includes.push({
|
|
14679
14720
|
fieldName: "chats",
|
|
14680
|
-
fragmentDoc:
|
|
14721
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatConnectionFragmentDoc,
|
|
14681
14722
|
variables,
|
|
14682
14723
|
isConnection: true,
|
|
14683
14724
|
isList: false,
|
|
@@ -14703,7 +14744,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14703
14744
|
}
|
|
14704
14745
|
async fetch(options) {
|
|
14705
14746
|
const variables = this._variables;
|
|
14706
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14747
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ArtifactDocument, "artifact", this._includes, variables);
|
|
14707
14748
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "artifact");
|
|
14708
14749
|
const data = response.artifact;
|
|
14709
14750
|
const instance = new Artifact(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14715,7 +14756,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14715
14756
|
watch(options) {
|
|
14716
14757
|
const variables = this._variables;
|
|
14717
14758
|
const includes = this._includes;
|
|
14718
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14759
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ArtifactDocument, "artifact", includes, variables);
|
|
14719
14760
|
const raw = this._syncEngine.watch(
|
|
14720
14761
|
queryDoc,
|
|
14721
14762
|
mergedVars,
|
|
@@ -14745,7 +14786,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14745
14786
|
}
|
|
14746
14787
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
14747
14788
|
chat(variables, builder) {
|
|
14748
|
-
const info = extractIncludeInfo(
|
|
14789
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
14749
14790
|
let children;
|
|
14750
14791
|
if (builder) {
|
|
14751
14792
|
const sub = new ChatSubBuilder();
|
|
@@ -14754,7 +14795,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14754
14795
|
}
|
|
14755
14796
|
this._includes.push({
|
|
14756
14797
|
fieldName: "chat",
|
|
14757
|
-
fragmentDoc:
|
|
14798
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatFragmentDoc,
|
|
14758
14799
|
variables,
|
|
14759
14800
|
isConnection: false,
|
|
14760
14801
|
isList: false,
|
|
@@ -14771,10 +14812,10 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14771
14812
|
}
|
|
14772
14813
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
14773
14814
|
file(variables) {
|
|
14774
|
-
const info = extractIncludeInfo(
|
|
14815
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
14775
14816
|
this._includes.push({
|
|
14776
14817
|
fieldName: "file",
|
|
14777
|
-
fragmentDoc:
|
|
14818
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FileFragmentDoc,
|
|
14778
14819
|
variables,
|
|
14779
14820
|
isConnection: false,
|
|
14780
14821
|
isList: false,
|
|
@@ -14790,7 +14831,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14790
14831
|
}
|
|
14791
14832
|
/** Include message in this query (Smart Fetch — single HTTP request). */
|
|
14792
14833
|
message(variables, builder) {
|
|
14793
|
-
const info = extractIncludeInfo(
|
|
14834
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
14794
14835
|
let children;
|
|
14795
14836
|
if (builder) {
|
|
14796
14837
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -14799,7 +14840,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14799
14840
|
}
|
|
14800
14841
|
this._includes.push({
|
|
14801
14842
|
fieldName: "message",
|
|
14802
|
-
fragmentDoc:
|
|
14843
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatMessageFragmentDoc,
|
|
14803
14844
|
variables,
|
|
14804
14845
|
isConnection: false,
|
|
14805
14846
|
isList: false,
|
|
@@ -14823,14 +14864,14 @@ var Artifact_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14823
14864
|
}
|
|
14824
14865
|
async fetch(options) {
|
|
14825
14866
|
const variables = this._variables;
|
|
14826
|
-
const response = await this._syncEngine.query(
|
|
14867
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Artifact_ChatDocument, variables, "artifact");
|
|
14827
14868
|
const data = response.artifact?.chat;
|
|
14828
14869
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14829
14870
|
}
|
|
14830
14871
|
watch(options) {
|
|
14831
14872
|
const variables = this._variables;
|
|
14832
14873
|
const raw = this._syncEngine.watch(
|
|
14833
|
-
|
|
14874
|
+
chunkMMZOIZLF_cjs.Artifact_ChatDocument,
|
|
14834
14875
|
variables,
|
|
14835
14876
|
"artifact",
|
|
14836
14877
|
async (db) => {
|
|
@@ -14853,14 +14894,14 @@ var Artifact_Chat_InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14853
14894
|
}
|
|
14854
14895
|
async fetch(options) {
|
|
14855
14896
|
const variables = this._variables;
|
|
14856
|
-
const response = await this._syncEngine.query(
|
|
14897
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Artifact_Chat_InsightDocument, variables, "artifact");
|
|
14857
14898
|
const data = response.artifact?.chat?.insight;
|
|
14858
14899
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14859
14900
|
}
|
|
14860
14901
|
watch(options) {
|
|
14861
14902
|
const variables = this._variables;
|
|
14862
14903
|
const raw = this._syncEngine.watch(
|
|
14863
|
-
|
|
14904
|
+
chunkMMZOIZLF_cjs.Artifact_Chat_InsightDocument,
|
|
14864
14905
|
variables,
|
|
14865
14906
|
"artifact",
|
|
14866
14907
|
async (db) => {
|
|
@@ -14883,14 +14924,14 @@ var Artifact_FileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14883
14924
|
}
|
|
14884
14925
|
async fetch(options) {
|
|
14885
14926
|
const variables = this._variables;
|
|
14886
|
-
const response = await this._syncEngine.query(
|
|
14927
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Artifact_FileDocument, variables, "artifact");
|
|
14887
14928
|
const data = response.artifact?.file;
|
|
14888
14929
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14889
14930
|
}
|
|
14890
14931
|
watch(options) {
|
|
14891
14932
|
const variables = this._variables;
|
|
14892
14933
|
const raw = this._syncEngine.watch(
|
|
14893
|
-
|
|
14934
|
+
chunkMMZOIZLF_cjs.Artifact_FileDocument,
|
|
14894
14935
|
variables,
|
|
14895
14936
|
"artifact",
|
|
14896
14937
|
async (db) => {
|
|
@@ -14913,14 +14954,14 @@ var Artifact_MessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14913
14954
|
}
|
|
14914
14955
|
async fetch(options) {
|
|
14915
14956
|
const variables = this._variables;
|
|
14916
|
-
const response = await this._syncEngine.query(
|
|
14957
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Artifact_MessageDocument, variables, "artifact");
|
|
14917
14958
|
const data = response.artifact?.message;
|
|
14918
14959
|
return data ? new ChatMessage(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14919
14960
|
}
|
|
14920
14961
|
watch(options) {
|
|
14921
14962
|
const variables = this._variables;
|
|
14922
14963
|
const raw = this._syncEngine.watch(
|
|
14923
|
-
|
|
14964
|
+
chunkMMZOIZLF_cjs.Artifact_MessageDocument,
|
|
14924
14965
|
variables,
|
|
14925
14966
|
"artifact",
|
|
14926
14967
|
async (db) => {
|
|
@@ -14943,14 +14984,14 @@ var Artifact_Message_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14943
14984
|
}
|
|
14944
14985
|
async fetch(options) {
|
|
14945
14986
|
const variables = this._variables;
|
|
14946
|
-
const response = await this._syncEngine.query(
|
|
14987
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Artifact_Message_ChatDocument, variables, "artifact");
|
|
14947
14988
|
const data = response.artifact?.message?.chat;
|
|
14948
14989
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14949
14990
|
}
|
|
14950
14991
|
watch(options) {
|
|
14951
14992
|
const variables = this._variables;
|
|
14952
14993
|
const raw = this._syncEngine.watch(
|
|
14953
|
-
|
|
14994
|
+
chunkMMZOIZLF_cjs.Artifact_Message_ChatDocument,
|
|
14954
14995
|
variables,
|
|
14955
14996
|
"artifact",
|
|
14956
14997
|
async (db) => {
|
|
@@ -14972,7 +15013,7 @@ var Artifact_Message_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14972
15013
|
this._variables = variables;
|
|
14973
15014
|
}
|
|
14974
15015
|
async fetch(options) {
|
|
14975
|
-
const response = await this._syncEngine.query(
|
|
15016
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Artifact_Message_ContentsDocument, this._variables, "artifact");
|
|
14976
15017
|
const data = response.artifact?.message?.contents;
|
|
14977
15018
|
if (!Array.isArray(data)) return [];
|
|
14978
15019
|
return data.map((item) => new ContentBlock(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -14986,14 +15027,14 @@ var Artifact_Message_FeedbackQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14986
15027
|
}
|
|
14987
15028
|
async fetch(options) {
|
|
14988
15029
|
const variables = this._variables;
|
|
14989
|
-
const response = await this._syncEngine.query(
|
|
15030
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Artifact_Message_FeedbackDocument, variables, "artifact");
|
|
14990
15031
|
const data = response.artifact?.message?.feedback;
|
|
14991
15032
|
return data ? new Feedback(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14992
15033
|
}
|
|
14993
15034
|
watch(options) {
|
|
14994
15035
|
const variables = this._variables;
|
|
14995
15036
|
const raw = this._syncEngine.watch(
|
|
14996
|
-
|
|
15037
|
+
chunkMMZOIZLF_cjs.Artifact_Message_FeedbackDocument,
|
|
14997
15038
|
variables,
|
|
14998
15039
|
"artifact",
|
|
14999
15040
|
async (db) => {
|
|
@@ -15017,7 +15058,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15017
15058
|
}
|
|
15018
15059
|
async fetch(options) {
|
|
15019
15060
|
const variables = this._variables;
|
|
15020
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15061
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ArtifactsDocument, "artifacts", this._includes, variables, true);
|
|
15021
15062
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "artifacts");
|
|
15022
15063
|
const data = response.artifacts;
|
|
15023
15064
|
const connection = new ArtifactConnection(this._request, (conn, opts) => new _ArtifactsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -15034,15 +15075,22 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15034
15075
|
const subscriptionId = crypto.randomUUID();
|
|
15035
15076
|
const includes = this._includes;
|
|
15036
15077
|
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) }] : []);
|
|
15037
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15078
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ArtifactsDocument, "artifacts", includes, variables, true);
|
|
15038
15079
|
const raw = this._syncEngine.watch(
|
|
15039
15080
|
queryDoc,
|
|
15040
15081
|
mergedVars,
|
|
15041
15082
|
"artifacts",
|
|
15042
15083
|
async (db) => {
|
|
15043
|
-
const
|
|
15044
|
-
const
|
|
15084
|
+
const queryKey = buildQueryKey("artifacts", mergedVars, queryDoc);
|
|
15085
|
+
const qr = await db._queryResults.get(queryKey);
|
|
15086
|
+
if (!qr) {
|
|
15087
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15088
|
+
}
|
|
15089
|
+
const nodes = await db.table("artifacts").bulkGet(qr.entityIds);
|
|
15045
15090
|
const filteredNodes = nodes.filter(Boolean);
|
|
15091
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
15092
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15093
|
+
}
|
|
15046
15094
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "artifacts", filteredNodes, includes) : filteredNodes;
|
|
15047
15095
|
return { artifacts: { __typename: "ArtifactConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
15048
15096
|
},
|
|
@@ -15069,7 +15117,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15069
15117
|
}
|
|
15070
15118
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
15071
15119
|
chat(variables, builder) {
|
|
15072
|
-
const info = extractIncludeInfo(
|
|
15120
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
15073
15121
|
let children;
|
|
15074
15122
|
if (builder) {
|
|
15075
15123
|
const sub = new ChatSubBuilder();
|
|
@@ -15078,7 +15126,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15078
15126
|
}
|
|
15079
15127
|
this._includes.push({
|
|
15080
15128
|
fieldName: "chat",
|
|
15081
|
-
fragmentDoc:
|
|
15129
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatFragmentDoc,
|
|
15082
15130
|
variables,
|
|
15083
15131
|
isConnection: false,
|
|
15084
15132
|
isList: false,
|
|
@@ -15095,10 +15143,10 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15095
15143
|
}
|
|
15096
15144
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
15097
15145
|
file(variables) {
|
|
15098
|
-
const info = extractIncludeInfo(
|
|
15146
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
15099
15147
|
this._includes.push({
|
|
15100
15148
|
fieldName: "file",
|
|
15101
|
-
fragmentDoc:
|
|
15149
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FileFragmentDoc,
|
|
15102
15150
|
variables,
|
|
15103
15151
|
isConnection: false,
|
|
15104
15152
|
isList: false,
|
|
@@ -15114,7 +15162,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15114
15162
|
}
|
|
15115
15163
|
/** Include message in this query (Smart Fetch — single HTTP request). */
|
|
15116
15164
|
message(variables, builder) {
|
|
15117
|
-
const info = extractIncludeInfo(
|
|
15165
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
15118
15166
|
let children;
|
|
15119
15167
|
if (builder) {
|
|
15120
15168
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -15123,7 +15171,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15123
15171
|
}
|
|
15124
15172
|
this._includes.push({
|
|
15125
15173
|
fieldName: "message",
|
|
15126
|
-
fragmentDoc:
|
|
15174
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatMessageFragmentDoc,
|
|
15127
15175
|
variables,
|
|
15128
15176
|
isConnection: false,
|
|
15129
15177
|
isList: false,
|
|
@@ -15148,7 +15196,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15148
15196
|
}
|
|
15149
15197
|
async fetch(options) {
|
|
15150
15198
|
const variables = this._variables;
|
|
15151
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15199
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ChatDocument, "chat", this._includes, variables);
|
|
15152
15200
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chat");
|
|
15153
15201
|
const data = response.chat;
|
|
15154
15202
|
const instance = new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15160,7 +15208,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15160
15208
|
watch(options) {
|
|
15161
15209
|
const variables = this._variables;
|
|
15162
15210
|
const includes = this._includes;
|
|
15163
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15211
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ChatDocument, "chat", includes, variables);
|
|
15164
15212
|
const raw = this._syncEngine.watch(
|
|
15165
15213
|
queryDoc,
|
|
15166
15214
|
mergedVars,
|
|
@@ -15190,7 +15238,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15190
15238
|
}
|
|
15191
15239
|
/** Include agents in this query (Smart Fetch — single HTTP request). */
|
|
15192
15240
|
agents(variables, builder) {
|
|
15193
|
-
const info = extractIncludeInfo(
|
|
15241
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
15194
15242
|
let children;
|
|
15195
15243
|
if (builder) {
|
|
15196
15244
|
const sub = new AgentSubBuilder();
|
|
@@ -15199,7 +15247,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15199
15247
|
}
|
|
15200
15248
|
this._includes.push({
|
|
15201
15249
|
fieldName: "agents",
|
|
15202
|
-
fragmentDoc:
|
|
15250
|
+
fragmentDoc: chunkMMZOIZLF_cjs.AgentConnectionFragmentDoc,
|
|
15203
15251
|
variables,
|
|
15204
15252
|
isConnection: true,
|
|
15205
15253
|
isList: false,
|
|
@@ -15217,7 +15265,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15217
15265
|
}
|
|
15218
15266
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
15219
15267
|
artifacts(variables, builder) {
|
|
15220
|
-
const info = extractIncludeInfo(
|
|
15268
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
15221
15269
|
let children;
|
|
15222
15270
|
if (builder) {
|
|
15223
15271
|
const sub = new ArtifactSubBuilder();
|
|
@@ -15226,7 +15274,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15226
15274
|
}
|
|
15227
15275
|
this._includes.push({
|
|
15228
15276
|
fieldName: "artifacts",
|
|
15229
|
-
fragmentDoc:
|
|
15277
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ArtifactConnectionFragmentDoc,
|
|
15230
15278
|
variables,
|
|
15231
15279
|
isConnection: true,
|
|
15232
15280
|
isList: false,
|
|
@@ -15244,7 +15292,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15244
15292
|
}
|
|
15245
15293
|
/** Include insight in this query (Smart Fetch — single HTTP request). */
|
|
15246
15294
|
insight(variables, builder) {
|
|
15247
|
-
const info = extractIncludeInfo(
|
|
15295
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
15248
15296
|
let children;
|
|
15249
15297
|
if (builder) {
|
|
15250
15298
|
const sub = new InsightSubBuilder();
|
|
@@ -15253,7 +15301,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15253
15301
|
}
|
|
15254
15302
|
this._includes.push({
|
|
15255
15303
|
fieldName: "insight",
|
|
15256
|
-
fragmentDoc:
|
|
15304
|
+
fragmentDoc: chunkMMZOIZLF_cjs.InsightFragmentDoc,
|
|
15257
15305
|
variables,
|
|
15258
15306
|
isConnection: false,
|
|
15259
15307
|
isList: false,
|
|
@@ -15270,7 +15318,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15270
15318
|
}
|
|
15271
15319
|
/** Include messages in this query (Smart Fetch — single HTTP request). */
|
|
15272
15320
|
messages(variables, builder) {
|
|
15273
|
-
const info = extractIncludeInfo(
|
|
15321
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
15274
15322
|
let children;
|
|
15275
15323
|
if (builder) {
|
|
15276
15324
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -15279,7 +15327,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15279
15327
|
}
|
|
15280
15328
|
this._includes.push({
|
|
15281
15329
|
fieldName: "messages",
|
|
15282
|
-
fragmentDoc:
|
|
15330
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatMessageConnectionFragmentDoc,
|
|
15283
15331
|
variables,
|
|
15284
15332
|
isConnection: true,
|
|
15285
15333
|
isList: false,
|
|
@@ -15304,20 +15352,28 @@ var Chat_AgentsQuery = class _Chat_AgentsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
15304
15352
|
}
|
|
15305
15353
|
async fetch(options) {
|
|
15306
15354
|
const variables = this._variables;
|
|
15307
|
-
const response = await this._syncEngine.query(
|
|
15355
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Chat_AgentsDocument, variables, "chat");
|
|
15308
15356
|
const data = response.chat?.agents;
|
|
15309
15357
|
return new AgentConnection(this._request, (conn, opts) => new _Chat_AgentsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
15310
15358
|
}
|
|
15311
15359
|
watch(options) {
|
|
15312
15360
|
const variables = this._variables;
|
|
15313
15361
|
const raw = this._syncEngine.watch(
|
|
15314
|
-
|
|
15362
|
+
chunkMMZOIZLF_cjs.Chat_AgentsDocument,
|
|
15315
15363
|
variables,
|
|
15316
15364
|
"chat",
|
|
15317
15365
|
async (db) => {
|
|
15318
|
-
const
|
|
15319
|
-
const
|
|
15320
|
-
|
|
15366
|
+
const queryKey = buildQueryKey("chat", variables, chunkMMZOIZLF_cjs.Chat_AgentsDocument);
|
|
15367
|
+
const qr = await db._queryResults.get(queryKey);
|
|
15368
|
+
if (!qr) {
|
|
15369
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15370
|
+
}
|
|
15371
|
+
const nodes = await db.table("agents").bulkGet(qr.entityIds);
|
|
15372
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
15373
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
15374
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15375
|
+
}
|
|
15376
|
+
return { chat: { agents: { __typename: "AgentConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15321
15377
|
}
|
|
15322
15378
|
);
|
|
15323
15379
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -15334,20 +15390,28 @@ var Chat_ArtifactsQuery = class _Chat_ArtifactsQuery extends chunk342BFYZZ_cjs.R
|
|
|
15334
15390
|
}
|
|
15335
15391
|
async fetch(options) {
|
|
15336
15392
|
const variables = this._variables;
|
|
15337
|
-
const response = await this._syncEngine.query(
|
|
15393
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Chat_ArtifactsDocument, variables, "chat");
|
|
15338
15394
|
const data = response.chat?.artifacts;
|
|
15339
15395
|
return new ArtifactConnection(this._request, (conn, opts) => new _Chat_ArtifactsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
15340
15396
|
}
|
|
15341
15397
|
watch(options) {
|
|
15342
15398
|
const variables = this._variables;
|
|
15343
15399
|
const raw = this._syncEngine.watch(
|
|
15344
|
-
|
|
15400
|
+
chunkMMZOIZLF_cjs.Chat_ArtifactsDocument,
|
|
15345
15401
|
variables,
|
|
15346
15402
|
"chat",
|
|
15347
15403
|
async (db) => {
|
|
15348
|
-
const
|
|
15349
|
-
const
|
|
15350
|
-
|
|
15404
|
+
const queryKey = buildQueryKey("chat", variables, chunkMMZOIZLF_cjs.Chat_ArtifactsDocument);
|
|
15405
|
+
const qr = await db._queryResults.get(queryKey);
|
|
15406
|
+
if (!qr) {
|
|
15407
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15408
|
+
}
|
|
15409
|
+
const nodes = await db.table("artifacts").bulkGet(qr.entityIds);
|
|
15410
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
15411
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
15412
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15413
|
+
}
|
|
15414
|
+
return { chat: { artifacts: { __typename: "ArtifactConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15351
15415
|
}
|
|
15352
15416
|
);
|
|
15353
15417
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -15364,14 +15428,14 @@ var Chat_InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15364
15428
|
}
|
|
15365
15429
|
async fetch(options) {
|
|
15366
15430
|
const variables = this._variables;
|
|
15367
|
-
const response = await this._syncEngine.query(
|
|
15431
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Chat_InsightDocument, variables, "chat");
|
|
15368
15432
|
const data = response.chat?.insight;
|
|
15369
15433
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15370
15434
|
}
|
|
15371
15435
|
watch(options) {
|
|
15372
15436
|
const variables = this._variables;
|
|
15373
15437
|
const raw = this._syncEngine.watch(
|
|
15374
|
-
|
|
15438
|
+
chunkMMZOIZLF_cjs.Chat_InsightDocument,
|
|
15375
15439
|
variables,
|
|
15376
15440
|
"chat",
|
|
15377
15441
|
async (db) => {
|
|
@@ -15393,7 +15457,7 @@ var Chat_Insight_ReportMembersQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15393
15457
|
this._variables = variables;
|
|
15394
15458
|
}
|
|
15395
15459
|
async fetch(options) {
|
|
15396
|
-
const response = await this._syncEngine.query(
|
|
15460
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Chat_Insight_ReportMembersDocument, this._variables, "chat");
|
|
15397
15461
|
const data = response.chat?.insight?.reportMembers;
|
|
15398
15462
|
if (!Array.isArray(data)) return [];
|
|
15399
15463
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -15407,14 +15471,14 @@ var Chat_Insight_ThumbnailFileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15407
15471
|
}
|
|
15408
15472
|
async fetch(options) {
|
|
15409
15473
|
const variables = this._variables;
|
|
15410
|
-
const response = await this._syncEngine.query(
|
|
15474
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Chat_Insight_ThumbnailFileDocument, variables, "chat");
|
|
15411
15475
|
const data = response.chat?.insight?.thumbnailFile;
|
|
15412
15476
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15413
15477
|
}
|
|
15414
15478
|
watch(options) {
|
|
15415
15479
|
const variables = this._variables;
|
|
15416
15480
|
const raw = this._syncEngine.watch(
|
|
15417
|
-
|
|
15481
|
+
chunkMMZOIZLF_cjs.Chat_Insight_ThumbnailFileDocument,
|
|
15418
15482
|
variables,
|
|
15419
15483
|
"chat",
|
|
15420
15484
|
async (db) => {
|
|
@@ -15437,20 +15501,28 @@ var Chat_MessagesQuery = class _Chat_MessagesQuery extends chunk342BFYZZ_cjs.Req
|
|
|
15437
15501
|
}
|
|
15438
15502
|
async fetch(options) {
|
|
15439
15503
|
const variables = this._variables;
|
|
15440
|
-
const response = await this._syncEngine.query(
|
|
15504
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Chat_MessagesDocument, variables, "chat");
|
|
15441
15505
|
const data = response.chat?.messages;
|
|
15442
15506
|
return new ChatMessageConnection(this._request, (conn, opts) => new _Chat_MessagesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
15443
15507
|
}
|
|
15444
15508
|
watch(options) {
|
|
15445
15509
|
const variables = this._variables;
|
|
15446
15510
|
const raw = this._syncEngine.watch(
|
|
15447
|
-
|
|
15511
|
+
chunkMMZOIZLF_cjs.Chat_MessagesDocument,
|
|
15448
15512
|
variables,
|
|
15449
15513
|
"chat",
|
|
15450
15514
|
async (db) => {
|
|
15451
|
-
const
|
|
15452
|
-
const
|
|
15453
|
-
|
|
15515
|
+
const queryKey = buildQueryKey("chat", variables, chunkMMZOIZLF_cjs.Chat_MessagesDocument);
|
|
15516
|
+
const qr = await db._queryResults.get(queryKey);
|
|
15517
|
+
if (!qr) {
|
|
15518
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15519
|
+
}
|
|
15520
|
+
const nodes = await db.table("chatMessages").bulkGet(qr.entityIds);
|
|
15521
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
15522
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
15523
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15524
|
+
}
|
|
15525
|
+
return { chat: { messages: { __typename: "ChatMessageConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15454
15526
|
}
|
|
15455
15527
|
);
|
|
15456
15528
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -15468,7 +15540,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15468
15540
|
}
|
|
15469
15541
|
async fetch(options) {
|
|
15470
15542
|
const variables = this._variables;
|
|
15471
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15543
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ChatMessageDocument, "chatMessage", this._includes, variables);
|
|
15472
15544
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessage");
|
|
15473
15545
|
const data = response.chatMessage;
|
|
15474
15546
|
const instance = new ChatMessage(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15480,7 +15552,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15480
15552
|
watch(options) {
|
|
15481
15553
|
const variables = this._variables;
|
|
15482
15554
|
const includes = this._includes;
|
|
15483
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15555
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ChatMessageDocument, "chatMessage", includes, variables);
|
|
15484
15556
|
const raw = this._syncEngine.watch(
|
|
15485
15557
|
queryDoc,
|
|
15486
15558
|
mergedVars,
|
|
@@ -15510,7 +15582,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15510
15582
|
}
|
|
15511
15583
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
15512
15584
|
artifacts(variables, builder) {
|
|
15513
|
-
const info = extractIncludeInfo(
|
|
15585
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
15514
15586
|
let children;
|
|
15515
15587
|
if (builder) {
|
|
15516
15588
|
const sub = new ArtifactSubBuilder();
|
|
@@ -15519,7 +15591,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15519
15591
|
}
|
|
15520
15592
|
this._includes.push({
|
|
15521
15593
|
fieldName: "artifacts",
|
|
15522
|
-
fragmentDoc:
|
|
15594
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ArtifactConnectionFragmentDoc,
|
|
15523
15595
|
variables,
|
|
15524
15596
|
isConnection: true,
|
|
15525
15597
|
isList: false,
|
|
@@ -15537,7 +15609,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15537
15609
|
}
|
|
15538
15610
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
15539
15611
|
chat(variables, builder) {
|
|
15540
|
-
const info = extractIncludeInfo(
|
|
15612
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
15541
15613
|
let children;
|
|
15542
15614
|
if (builder) {
|
|
15543
15615
|
const sub = new ChatSubBuilder();
|
|
@@ -15546,7 +15618,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15546
15618
|
}
|
|
15547
15619
|
this._includes.push({
|
|
15548
15620
|
fieldName: "chat",
|
|
15549
|
-
fragmentDoc:
|
|
15621
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatFragmentDoc,
|
|
15550
15622
|
variables,
|
|
15551
15623
|
isConnection: false,
|
|
15552
15624
|
isList: false,
|
|
@@ -15563,10 +15635,10 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15563
15635
|
}
|
|
15564
15636
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
15565
15637
|
contents(variables) {
|
|
15566
|
-
const info = extractIncludeInfo(
|
|
15638
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
15567
15639
|
this._includes.push({
|
|
15568
15640
|
fieldName: "contents",
|
|
15569
|
-
fragmentDoc:
|
|
15641
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ContentBlockFragmentDoc,
|
|
15570
15642
|
variables,
|
|
15571
15643
|
isConnection: false,
|
|
15572
15644
|
isList: true,
|
|
@@ -15582,10 +15654,10 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15582
15654
|
}
|
|
15583
15655
|
/** Include feedback in this query (Smart Fetch — single HTTP request). */
|
|
15584
15656
|
feedback(variables) {
|
|
15585
|
-
const info = extractIncludeInfo(
|
|
15657
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
15586
15658
|
this._includes.push({
|
|
15587
15659
|
fieldName: "feedback",
|
|
15588
|
-
fragmentDoc:
|
|
15660
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FeedbackFragmentDoc,
|
|
15589
15661
|
variables,
|
|
15590
15662
|
isConnection: false,
|
|
15591
15663
|
isList: false,
|
|
@@ -15608,20 +15680,28 @@ var ChatMessage_ArtifactsQuery = class _ChatMessage_ArtifactsQuery extends chunk
|
|
|
15608
15680
|
}
|
|
15609
15681
|
async fetch(options) {
|
|
15610
15682
|
const variables = this._variables;
|
|
15611
|
-
const response = await this._syncEngine.query(
|
|
15683
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.ChatMessage_ArtifactsDocument, variables, "chatMessage");
|
|
15612
15684
|
const data = response.chatMessage?.artifacts;
|
|
15613
15685
|
return new ArtifactConnection(this._request, (conn, opts) => new _ChatMessage_ArtifactsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
15614
15686
|
}
|
|
15615
15687
|
watch(options) {
|
|
15616
15688
|
const variables = this._variables;
|
|
15617
15689
|
const raw = this._syncEngine.watch(
|
|
15618
|
-
|
|
15690
|
+
chunkMMZOIZLF_cjs.ChatMessage_ArtifactsDocument,
|
|
15619
15691
|
variables,
|
|
15620
15692
|
"chatMessage",
|
|
15621
15693
|
async (db) => {
|
|
15622
|
-
const
|
|
15623
|
-
const
|
|
15624
|
-
|
|
15694
|
+
const queryKey = buildQueryKey("chatMessage", variables, chunkMMZOIZLF_cjs.ChatMessage_ArtifactsDocument);
|
|
15695
|
+
const qr = await db._queryResults.get(queryKey);
|
|
15696
|
+
if (!qr) {
|
|
15697
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15698
|
+
}
|
|
15699
|
+
const nodes = await db.table("artifacts").bulkGet(qr.entityIds);
|
|
15700
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
15701
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
15702
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15703
|
+
}
|
|
15704
|
+
return { chatMessage: { artifacts: { __typename: "ArtifactConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15625
15705
|
}
|
|
15626
15706
|
);
|
|
15627
15707
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -15638,14 +15718,14 @@ var ChatMessage_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15638
15718
|
}
|
|
15639
15719
|
async fetch(options) {
|
|
15640
15720
|
const variables = this._variables;
|
|
15641
|
-
const response = await this._syncEngine.query(
|
|
15721
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.ChatMessage_ChatDocument, variables, "chatMessage");
|
|
15642
15722
|
const data = response.chatMessage?.chat;
|
|
15643
15723
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15644
15724
|
}
|
|
15645
15725
|
watch(options) {
|
|
15646
15726
|
const variables = this._variables;
|
|
15647
15727
|
const raw = this._syncEngine.watch(
|
|
15648
|
-
|
|
15728
|
+
chunkMMZOIZLF_cjs.ChatMessage_ChatDocument,
|
|
15649
15729
|
variables,
|
|
15650
15730
|
"chatMessage",
|
|
15651
15731
|
async (db) => {
|
|
@@ -15668,14 +15748,14 @@ var ChatMessage_Chat_InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15668
15748
|
}
|
|
15669
15749
|
async fetch(options) {
|
|
15670
15750
|
const variables = this._variables;
|
|
15671
|
-
const response = await this._syncEngine.query(
|
|
15751
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.ChatMessage_Chat_InsightDocument, variables, "chatMessage");
|
|
15672
15752
|
const data = response.chatMessage?.chat?.insight;
|
|
15673
15753
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15674
15754
|
}
|
|
15675
15755
|
watch(options) {
|
|
15676
15756
|
const variables = this._variables;
|
|
15677
15757
|
const raw = this._syncEngine.watch(
|
|
15678
|
-
|
|
15758
|
+
chunkMMZOIZLF_cjs.ChatMessage_Chat_InsightDocument,
|
|
15679
15759
|
variables,
|
|
15680
15760
|
"chatMessage",
|
|
15681
15761
|
async (db) => {
|
|
@@ -15697,7 +15777,7 @@ var ChatMessage_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15697
15777
|
this._variables = variables;
|
|
15698
15778
|
}
|
|
15699
15779
|
async fetch(options) {
|
|
15700
|
-
const response = await this._syncEngine.query(
|
|
15780
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.ChatMessage_ContentsDocument, this._variables, "chatMessage");
|
|
15701
15781
|
const data = response.chatMessage?.contents;
|
|
15702
15782
|
if (!Array.isArray(data)) return [];
|
|
15703
15783
|
return data.map((item) => new ContentBlock(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -15711,14 +15791,14 @@ var ChatMessage_FeedbackQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15711
15791
|
}
|
|
15712
15792
|
async fetch(options) {
|
|
15713
15793
|
const variables = this._variables;
|
|
15714
|
-
const response = await this._syncEngine.query(
|
|
15794
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.ChatMessage_FeedbackDocument, variables, "chatMessage");
|
|
15715
15795
|
const data = response.chatMessage?.feedback;
|
|
15716
15796
|
return data ? new Feedback(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15717
15797
|
}
|
|
15718
15798
|
watch(options) {
|
|
15719
15799
|
const variables = this._variables;
|
|
15720
15800
|
const raw = this._syncEngine.watch(
|
|
15721
|
-
|
|
15801
|
+
chunkMMZOIZLF_cjs.ChatMessage_FeedbackDocument,
|
|
15722
15802
|
variables,
|
|
15723
15803
|
"chatMessage",
|
|
15724
15804
|
async (db) => {
|
|
@@ -15742,7 +15822,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15742
15822
|
}
|
|
15743
15823
|
async fetch(options) {
|
|
15744
15824
|
const variables = this._variables;
|
|
15745
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15825
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ChatMessagesDocument, "chatMessages", this._includes, variables, true);
|
|
15746
15826
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessages");
|
|
15747
15827
|
const data = response.chatMessages;
|
|
15748
15828
|
const connection = new ChatMessageConnection(this._request, (conn, opts) => new _ChatMessagesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -15759,15 +15839,22 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15759
15839
|
const subscriptionId = crypto.randomUUID();
|
|
15760
15840
|
const includes = this._includes;
|
|
15761
15841
|
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) }] : []);
|
|
15762
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15842
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ChatMessagesDocument, "chatMessages", includes, variables, true);
|
|
15763
15843
|
const raw = this._syncEngine.watch(
|
|
15764
15844
|
queryDoc,
|
|
15765
15845
|
mergedVars,
|
|
15766
15846
|
"chatMessages",
|
|
15767
15847
|
async (db) => {
|
|
15768
|
-
const
|
|
15769
|
-
const
|
|
15848
|
+
const queryKey = buildQueryKey("chatMessages", mergedVars, queryDoc);
|
|
15849
|
+
const qr = await db._queryResults.get(queryKey);
|
|
15850
|
+
if (!qr) {
|
|
15851
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15852
|
+
}
|
|
15853
|
+
const nodes = await db.table("chatMessages").bulkGet(qr.entityIds);
|
|
15770
15854
|
const filteredNodes = nodes.filter(Boolean);
|
|
15855
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
15856
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15857
|
+
}
|
|
15771
15858
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "chatMessages", filteredNodes, includes) : filteredNodes;
|
|
15772
15859
|
return { chatMessages: { __typename: "ChatMessageConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
15773
15860
|
},
|
|
@@ -15794,7 +15881,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15794
15881
|
}
|
|
15795
15882
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
15796
15883
|
artifacts(variables, builder) {
|
|
15797
|
-
const info = extractIncludeInfo(
|
|
15884
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
15798
15885
|
let children;
|
|
15799
15886
|
if (builder) {
|
|
15800
15887
|
const sub = new ArtifactSubBuilder();
|
|
@@ -15803,7 +15890,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15803
15890
|
}
|
|
15804
15891
|
this._includes.push({
|
|
15805
15892
|
fieldName: "artifacts",
|
|
15806
|
-
fragmentDoc:
|
|
15893
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ArtifactConnectionFragmentDoc,
|
|
15807
15894
|
variables,
|
|
15808
15895
|
isConnection: true,
|
|
15809
15896
|
isList: false,
|
|
@@ -15821,7 +15908,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15821
15908
|
}
|
|
15822
15909
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
15823
15910
|
chat(variables, builder) {
|
|
15824
|
-
const info = extractIncludeInfo(
|
|
15911
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
15825
15912
|
let children;
|
|
15826
15913
|
if (builder) {
|
|
15827
15914
|
const sub = new ChatSubBuilder();
|
|
@@ -15830,7 +15917,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15830
15917
|
}
|
|
15831
15918
|
this._includes.push({
|
|
15832
15919
|
fieldName: "chat",
|
|
15833
|
-
fragmentDoc:
|
|
15920
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatFragmentDoc,
|
|
15834
15921
|
variables,
|
|
15835
15922
|
isConnection: false,
|
|
15836
15923
|
isList: false,
|
|
@@ -15847,10 +15934,10 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15847
15934
|
}
|
|
15848
15935
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
15849
15936
|
contents(variables) {
|
|
15850
|
-
const info = extractIncludeInfo(
|
|
15937
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
15851
15938
|
this._includes.push({
|
|
15852
15939
|
fieldName: "contents",
|
|
15853
|
-
fragmentDoc:
|
|
15940
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ContentBlockFragmentDoc,
|
|
15854
15941
|
variables,
|
|
15855
15942
|
isConnection: false,
|
|
15856
15943
|
isList: true,
|
|
@@ -15866,10 +15953,10 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
15866
15953
|
}
|
|
15867
15954
|
/** Include feedback in this query (Smart Fetch — single HTTP request). */
|
|
15868
15955
|
feedback(variables) {
|
|
15869
|
-
const info = extractIncludeInfo(
|
|
15956
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
15870
15957
|
this._includes.push({
|
|
15871
15958
|
fieldName: "feedback",
|
|
15872
|
-
fragmentDoc:
|
|
15959
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FeedbackFragmentDoc,
|
|
15873
15960
|
variables,
|
|
15874
15961
|
isConnection: false,
|
|
15875
15962
|
isList: false,
|
|
@@ -15893,7 +15980,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15893
15980
|
}
|
|
15894
15981
|
async fetch(options) {
|
|
15895
15982
|
const variables = this._variables;
|
|
15896
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15983
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ChatsDocument, "chats", this._includes, variables, true);
|
|
15897
15984
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chats");
|
|
15898
15985
|
const data = response.chats;
|
|
15899
15986
|
const connection = new ChatConnection(this._request, (conn, opts) => new _ChatsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -15910,15 +15997,22 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15910
15997
|
const subscriptionId = crypto.randomUUID();
|
|
15911
15998
|
const includes = this._includes;
|
|
15912
15999
|
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) }] : []);
|
|
15913
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16000
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ChatsDocument, "chats", includes, variables, true);
|
|
15914
16001
|
const raw = this._syncEngine.watch(
|
|
15915
16002
|
queryDoc,
|
|
15916
16003
|
mergedVars,
|
|
15917
16004
|
"chats",
|
|
15918
16005
|
async (db) => {
|
|
15919
|
-
const
|
|
15920
|
-
const
|
|
16006
|
+
const queryKey = buildQueryKey("chats", mergedVars, queryDoc);
|
|
16007
|
+
const qr = await db._queryResults.get(queryKey);
|
|
16008
|
+
if (!qr) {
|
|
16009
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16010
|
+
}
|
|
16011
|
+
const nodes = await db.table("chats").bulkGet(qr.entityIds);
|
|
15921
16012
|
const filteredNodes = nodes.filter(Boolean);
|
|
16013
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
16014
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16015
|
+
}
|
|
15922
16016
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "chats", filteredNodes, includes) : filteredNodes;
|
|
15923
16017
|
return { chats: { __typename: "ChatConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
15924
16018
|
},
|
|
@@ -15945,7 +16039,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15945
16039
|
}
|
|
15946
16040
|
/** Include agents in this query (Smart Fetch — single HTTP request). */
|
|
15947
16041
|
agents(variables, builder) {
|
|
15948
|
-
const info = extractIncludeInfo(
|
|
16042
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
15949
16043
|
let children;
|
|
15950
16044
|
if (builder) {
|
|
15951
16045
|
const sub = new AgentSubBuilder();
|
|
@@ -15954,7 +16048,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15954
16048
|
}
|
|
15955
16049
|
this._includes.push({
|
|
15956
16050
|
fieldName: "agents",
|
|
15957
|
-
fragmentDoc:
|
|
16051
|
+
fragmentDoc: chunkMMZOIZLF_cjs.AgentConnectionFragmentDoc,
|
|
15958
16052
|
variables,
|
|
15959
16053
|
isConnection: true,
|
|
15960
16054
|
isList: false,
|
|
@@ -15972,7 +16066,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15972
16066
|
}
|
|
15973
16067
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
15974
16068
|
artifacts(variables, builder) {
|
|
15975
|
-
const info = extractIncludeInfo(
|
|
16069
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
15976
16070
|
let children;
|
|
15977
16071
|
if (builder) {
|
|
15978
16072
|
const sub = new ArtifactSubBuilder();
|
|
@@ -15981,7 +16075,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15981
16075
|
}
|
|
15982
16076
|
this._includes.push({
|
|
15983
16077
|
fieldName: "artifacts",
|
|
15984
|
-
fragmentDoc:
|
|
16078
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ArtifactConnectionFragmentDoc,
|
|
15985
16079
|
variables,
|
|
15986
16080
|
isConnection: true,
|
|
15987
16081
|
isList: false,
|
|
@@ -15999,7 +16093,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15999
16093
|
}
|
|
16000
16094
|
/** Include insight in this query (Smart Fetch — single HTTP request). */
|
|
16001
16095
|
insight(variables, builder) {
|
|
16002
|
-
const info = extractIncludeInfo(
|
|
16096
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
16003
16097
|
let children;
|
|
16004
16098
|
if (builder) {
|
|
16005
16099
|
const sub = new InsightSubBuilder();
|
|
@@ -16008,7 +16102,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16008
16102
|
}
|
|
16009
16103
|
this._includes.push({
|
|
16010
16104
|
fieldName: "insight",
|
|
16011
|
-
fragmentDoc:
|
|
16105
|
+
fragmentDoc: chunkMMZOIZLF_cjs.InsightFragmentDoc,
|
|
16012
16106
|
variables,
|
|
16013
16107
|
isConnection: false,
|
|
16014
16108
|
isList: false,
|
|
@@ -16025,7 +16119,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16025
16119
|
}
|
|
16026
16120
|
/** Include messages in this query (Smart Fetch — single HTTP request). */
|
|
16027
16121
|
messages(variables, builder) {
|
|
16028
|
-
const info = extractIncludeInfo(
|
|
16122
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
16029
16123
|
let children;
|
|
16030
16124
|
if (builder) {
|
|
16031
16125
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -16034,7 +16128,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16034
16128
|
}
|
|
16035
16129
|
this._includes.push({
|
|
16036
16130
|
fieldName: "messages",
|
|
16037
|
-
fragmentDoc:
|
|
16131
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatMessageConnectionFragmentDoc,
|
|
16038
16132
|
variables,
|
|
16039
16133
|
isConnection: true,
|
|
16040
16134
|
isList: false,
|
|
@@ -16060,7 +16154,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16060
16154
|
}
|
|
16061
16155
|
async fetch(options) {
|
|
16062
16156
|
const variables = this._variables;
|
|
16063
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16157
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DatabaseDocument, "database", this._includes, variables);
|
|
16064
16158
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "database");
|
|
16065
16159
|
const data = response.database;
|
|
16066
16160
|
const instance = new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16072,7 +16166,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16072
16166
|
watch(options) {
|
|
16073
16167
|
const variables = this._variables;
|
|
16074
16168
|
const includes = this._includes;
|
|
16075
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16169
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DatabaseDocument, "database", includes, variables);
|
|
16076
16170
|
const raw = this._syncEngine.watch(
|
|
16077
16171
|
queryDoc,
|
|
16078
16172
|
mergedVars,
|
|
@@ -16102,10 +16196,10 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16102
16196
|
}
|
|
16103
16197
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
16104
16198
|
engine(variables) {
|
|
16105
|
-
const info = extractIncludeInfo(
|
|
16199
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
16106
16200
|
this._includes.push({
|
|
16107
16201
|
fieldName: "engine",
|
|
16108
|
-
fragmentDoc:
|
|
16202
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DatabaseEngineFragmentDoc,
|
|
16109
16203
|
variables,
|
|
16110
16204
|
isConnection: false,
|
|
16111
16205
|
isList: false,
|
|
@@ -16121,7 +16215,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16121
16215
|
}
|
|
16122
16216
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
16123
16217
|
tables(variables, builder) {
|
|
16124
|
-
const info = extractIncludeInfo(
|
|
16218
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
16125
16219
|
let children;
|
|
16126
16220
|
if (builder) {
|
|
16127
16221
|
const sub = new TableSubBuilder();
|
|
@@ -16130,7 +16224,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16130
16224
|
}
|
|
16131
16225
|
this._includes.push({
|
|
16132
16226
|
fieldName: "tables",
|
|
16133
|
-
fragmentDoc:
|
|
16227
|
+
fragmentDoc: chunkMMZOIZLF_cjs.TableConnectionFragmentDoc,
|
|
16134
16228
|
variables,
|
|
16135
16229
|
isConnection: true,
|
|
16136
16230
|
isList: false,
|
|
@@ -16155,14 +16249,14 @@ var Database_EngineQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16155
16249
|
}
|
|
16156
16250
|
async fetch(options) {
|
|
16157
16251
|
const variables = this._variables;
|
|
16158
|
-
const response = await this._syncEngine.query(
|
|
16252
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Database_EngineDocument, variables, "database");
|
|
16159
16253
|
const data = response.database?.engine;
|
|
16160
16254
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16161
16255
|
}
|
|
16162
16256
|
watch(options) {
|
|
16163
16257
|
const variables = this._variables;
|
|
16164
16258
|
const raw = this._syncEngine.watch(
|
|
16165
|
-
|
|
16259
|
+
chunkMMZOIZLF_cjs.Database_EngineDocument,
|
|
16166
16260
|
variables,
|
|
16167
16261
|
"database",
|
|
16168
16262
|
async (db) => {
|
|
@@ -16185,14 +16279,14 @@ var Database_Engine_CatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16185
16279
|
}
|
|
16186
16280
|
async fetch(options) {
|
|
16187
16281
|
const variables = this._variables;
|
|
16188
|
-
const response = await this._syncEngine.query(
|
|
16282
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Database_Engine_CatalogDocument, variables, "database");
|
|
16189
16283
|
const data = response.database?.engine?.catalog;
|
|
16190
16284
|
return data ? new DatabaseCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16191
16285
|
}
|
|
16192
16286
|
watch(options) {
|
|
16193
16287
|
const variables = this._variables;
|
|
16194
16288
|
const raw = this._syncEngine.watch(
|
|
16195
|
-
|
|
16289
|
+
chunkMMZOIZLF_cjs.Database_Engine_CatalogDocument,
|
|
16196
16290
|
variables,
|
|
16197
16291
|
"database",
|
|
16198
16292
|
async (db) => {
|
|
@@ -16215,20 +16309,28 @@ var Database_TablesQuery = class _Database_TablesQuery extends chunk342BFYZZ_cjs
|
|
|
16215
16309
|
}
|
|
16216
16310
|
async fetch(options) {
|
|
16217
16311
|
const variables = this._variables;
|
|
16218
|
-
const response = await this._syncEngine.query(
|
|
16312
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Database_TablesDocument, variables, "database");
|
|
16219
16313
|
const data = response.database?.tables;
|
|
16220
16314
|
return new TableConnection(this._request, (conn, opts) => new _Database_TablesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
16221
16315
|
}
|
|
16222
16316
|
watch(options) {
|
|
16223
16317
|
const variables = this._variables;
|
|
16224
16318
|
const raw = this._syncEngine.watch(
|
|
16225
|
-
|
|
16319
|
+
chunkMMZOIZLF_cjs.Database_TablesDocument,
|
|
16226
16320
|
variables,
|
|
16227
16321
|
"database",
|
|
16228
16322
|
async (db) => {
|
|
16229
|
-
const
|
|
16230
|
-
const
|
|
16231
|
-
|
|
16323
|
+
const queryKey = buildQueryKey("database", variables, chunkMMZOIZLF_cjs.Database_TablesDocument);
|
|
16324
|
+
const qr = await db._queryResults.get(queryKey);
|
|
16325
|
+
if (!qr) {
|
|
16326
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16327
|
+
}
|
|
16328
|
+
const nodes = await db.table("tables").bulkGet(qr.entityIds);
|
|
16329
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
16330
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
16331
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16332
|
+
}
|
|
16333
|
+
return { database: { tables: { __typename: "TableConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
16232
16334
|
}
|
|
16233
16335
|
);
|
|
16234
16336
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -16246,7 +16348,7 @@ var DatabaseCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16246
16348
|
}
|
|
16247
16349
|
async fetch(options) {
|
|
16248
16350
|
const variables = this._variables;
|
|
16249
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16351
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DatabaseCatalogDocument, "databaseCatalog", this._includes, variables);
|
|
16250
16352
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databaseCatalog");
|
|
16251
16353
|
const data = response.databaseCatalog;
|
|
16252
16354
|
const instance = new DatabaseCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16258,7 +16360,7 @@ var DatabaseCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16258
16360
|
watch(options) {
|
|
16259
16361
|
const variables = this._variables;
|
|
16260
16362
|
const includes = this._includes;
|
|
16261
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16363
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DatabaseCatalogDocument, "databaseCatalog", includes, variables);
|
|
16262
16364
|
const raw = this._syncEngine.watch(
|
|
16263
16365
|
queryDoc,
|
|
16264
16366
|
mergedVars,
|
|
@@ -16288,10 +16390,10 @@ var DatabaseCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16288
16390
|
}
|
|
16289
16391
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
16290
16392
|
engine(variables) {
|
|
16291
|
-
const info = extractIncludeInfo(
|
|
16393
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
16292
16394
|
this._includes.push({
|
|
16293
16395
|
fieldName: "engine",
|
|
16294
|
-
fragmentDoc:
|
|
16396
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DatabaseEngineFragmentDoc,
|
|
16295
16397
|
variables,
|
|
16296
16398
|
isConnection: false,
|
|
16297
16399
|
isList: false,
|
|
@@ -16314,14 +16416,14 @@ var DatabaseCatalog_EngineQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16314
16416
|
}
|
|
16315
16417
|
async fetch(options) {
|
|
16316
16418
|
const variables = this._variables;
|
|
16317
|
-
const response = await this._syncEngine.query(
|
|
16419
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.DatabaseCatalog_EngineDocument, variables, "databaseCatalog");
|
|
16318
16420
|
const data = response.databaseCatalog?.engine;
|
|
16319
16421
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16320
16422
|
}
|
|
16321
16423
|
watch(options) {
|
|
16322
16424
|
const variables = this._variables;
|
|
16323
16425
|
const raw = this._syncEngine.watch(
|
|
16324
|
-
|
|
16426
|
+
chunkMMZOIZLF_cjs.DatabaseCatalog_EngineDocument,
|
|
16325
16427
|
variables,
|
|
16326
16428
|
"databaseCatalog",
|
|
16327
16429
|
async (db) => {
|
|
@@ -16345,7 +16447,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16345
16447
|
}
|
|
16346
16448
|
async fetch(options) {
|
|
16347
16449
|
const variables = this._variables;
|
|
16348
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16450
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DatabaseCatalogsDocument, "databaseCatalogs", this._includes, variables, true);
|
|
16349
16451
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databaseCatalogs");
|
|
16350
16452
|
const data = response.databaseCatalogs;
|
|
16351
16453
|
const connection = new DatabaseCatalogConnection(this._request, (conn, opts) => new _DatabaseCatalogsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16362,15 +16464,22 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16362
16464
|
const subscriptionId = crypto.randomUUID();
|
|
16363
16465
|
const includes = this._includes;
|
|
16364
16466
|
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) }] : []);
|
|
16365
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16467
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DatabaseCatalogsDocument, "databaseCatalogs", includes, variables, true);
|
|
16366
16468
|
const raw = this._syncEngine.watch(
|
|
16367
16469
|
queryDoc,
|
|
16368
16470
|
mergedVars,
|
|
16369
16471
|
"databaseCatalogs",
|
|
16370
16472
|
async (db) => {
|
|
16371
|
-
const
|
|
16372
|
-
const
|
|
16473
|
+
const queryKey = buildQueryKey("databaseCatalogs", mergedVars, queryDoc);
|
|
16474
|
+
const qr = await db._queryResults.get(queryKey);
|
|
16475
|
+
if (!qr) {
|
|
16476
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16477
|
+
}
|
|
16478
|
+
const nodes = await db.table("databaseCatalogs").bulkGet(qr.entityIds);
|
|
16373
16479
|
const filteredNodes = nodes.filter(Boolean);
|
|
16480
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
16481
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16482
|
+
}
|
|
16374
16483
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "databaseCatalogs", filteredNodes, includes) : filteredNodes;
|
|
16375
16484
|
return { databaseCatalogs: { __typename: "DatabaseCatalogConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
16376
16485
|
},
|
|
@@ -16397,10 +16506,10 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16397
16506
|
}
|
|
16398
16507
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
16399
16508
|
engine(variables) {
|
|
16400
|
-
const info = extractIncludeInfo(
|
|
16509
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
16401
16510
|
this._includes.push({
|
|
16402
16511
|
fieldName: "engine",
|
|
16403
|
-
fragmentDoc:
|
|
16512
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DatabaseEngineFragmentDoc,
|
|
16404
16513
|
variables,
|
|
16405
16514
|
isConnection: false,
|
|
16406
16515
|
isList: false,
|
|
@@ -16417,7 +16526,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16417
16526
|
};
|
|
16418
16527
|
var DatabaseSchemaQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
16419
16528
|
async fetch(variables) {
|
|
16420
|
-
const response = await this._request(
|
|
16529
|
+
const response = await this._request(chunkMMZOIZLF_cjs.DatabaseSchemaDocument, variables);
|
|
16421
16530
|
return response.databaseSchema;
|
|
16422
16531
|
}
|
|
16423
16532
|
};
|
|
@@ -16430,7 +16539,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16430
16539
|
}
|
|
16431
16540
|
async fetch(options) {
|
|
16432
16541
|
const variables = this._variables;
|
|
16433
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16542
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DatabasesDocument, "databases", this._includes, variables, true);
|
|
16434
16543
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databases");
|
|
16435
16544
|
const data = response.databases;
|
|
16436
16545
|
const connection = new DatabaseConnection(this._request, (conn, opts) => new _DatabasesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16447,15 +16556,22 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16447
16556
|
const subscriptionId = crypto.randomUUID();
|
|
16448
16557
|
const includes = this._includes;
|
|
16449
16558
|
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) }] : []);
|
|
16450
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16559
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DatabasesDocument, "databases", includes, variables, true);
|
|
16451
16560
|
const raw = this._syncEngine.watch(
|
|
16452
16561
|
queryDoc,
|
|
16453
16562
|
mergedVars,
|
|
16454
16563
|
"databases",
|
|
16455
16564
|
async (db) => {
|
|
16456
|
-
const
|
|
16457
|
-
const
|
|
16565
|
+
const queryKey = buildQueryKey("databases", mergedVars, queryDoc);
|
|
16566
|
+
const qr = await db._queryResults.get(queryKey);
|
|
16567
|
+
if (!qr) {
|
|
16568
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16569
|
+
}
|
|
16570
|
+
const nodes = await db.table("databases").bulkGet(qr.entityIds);
|
|
16458
16571
|
const filteredNodes = nodes.filter(Boolean);
|
|
16572
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
16573
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16574
|
+
}
|
|
16459
16575
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "databases", filteredNodes, includes) : filteredNodes;
|
|
16460
16576
|
return { databases: { __typename: "DatabaseConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
16461
16577
|
},
|
|
@@ -16482,10 +16598,10 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16482
16598
|
}
|
|
16483
16599
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
16484
16600
|
engine(variables) {
|
|
16485
|
-
const info = extractIncludeInfo(
|
|
16601
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
16486
16602
|
this._includes.push({
|
|
16487
16603
|
fieldName: "engine",
|
|
16488
|
-
fragmentDoc:
|
|
16604
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DatabaseEngineFragmentDoc,
|
|
16489
16605
|
variables,
|
|
16490
16606
|
isConnection: false,
|
|
16491
16607
|
isList: false,
|
|
@@ -16501,7 +16617,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16501
16617
|
}
|
|
16502
16618
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
16503
16619
|
tables(variables, builder) {
|
|
16504
|
-
const info = extractIncludeInfo(
|
|
16620
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
16505
16621
|
let children;
|
|
16506
16622
|
if (builder) {
|
|
16507
16623
|
const sub = new TableSubBuilder();
|
|
@@ -16510,7 +16626,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16510
16626
|
}
|
|
16511
16627
|
this._includes.push({
|
|
16512
16628
|
fieldName: "tables",
|
|
16513
|
-
fragmentDoc:
|
|
16629
|
+
fragmentDoc: chunkMMZOIZLF_cjs.TableConnectionFragmentDoc,
|
|
16514
16630
|
variables,
|
|
16515
16631
|
isConnection: true,
|
|
16516
16632
|
isList: false,
|
|
@@ -16536,7 +16652,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16536
16652
|
}
|
|
16537
16653
|
async fetch(options) {
|
|
16538
16654
|
const variables = this._variables;
|
|
16539
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16655
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DocumentDocument, "document", this._includes, variables);
|
|
16540
16656
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "document");
|
|
16541
16657
|
const data = response.document;
|
|
16542
16658
|
const instance = new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16548,7 +16664,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16548
16664
|
watch(options) {
|
|
16549
16665
|
const variables = this._variables;
|
|
16550
16666
|
const includes = this._includes;
|
|
16551
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16667
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DocumentDocument, "document", includes, variables);
|
|
16552
16668
|
const raw = this._syncEngine.watch(
|
|
16553
16669
|
queryDoc,
|
|
16554
16670
|
mergedVars,
|
|
@@ -16578,10 +16694,10 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16578
16694
|
}
|
|
16579
16695
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
16580
16696
|
contents(variables) {
|
|
16581
|
-
const info = extractIncludeInfo(
|
|
16697
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
16582
16698
|
this._includes.push({
|
|
16583
16699
|
fieldName: "contents",
|
|
16584
|
-
fragmentDoc:
|
|
16700
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DocumentContentFragmentDoc,
|
|
16585
16701
|
variables,
|
|
16586
16702
|
isConnection: false,
|
|
16587
16703
|
isList: true,
|
|
@@ -16597,10 +16713,10 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16597
16713
|
}
|
|
16598
16714
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
16599
16715
|
file(variables) {
|
|
16600
|
-
const info = extractIncludeInfo(
|
|
16716
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Document_FileDocument, "file", ["id"]);
|
|
16601
16717
|
this._includes.push({
|
|
16602
16718
|
fieldName: "file",
|
|
16603
|
-
fragmentDoc:
|
|
16719
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FileFragmentDoc,
|
|
16604
16720
|
variables,
|
|
16605
16721
|
isConnection: false,
|
|
16606
16722
|
isList: false,
|
|
@@ -16616,10 +16732,10 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16616
16732
|
}
|
|
16617
16733
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
16618
16734
|
format(variables) {
|
|
16619
|
-
const info = extractIncludeInfo(
|
|
16735
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Document_FormatDocument, "format", ["id"]);
|
|
16620
16736
|
this._includes.push({
|
|
16621
16737
|
fieldName: "format",
|
|
16622
|
-
fragmentDoc:
|
|
16738
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DocumentFormatFragmentDoc,
|
|
16623
16739
|
variables,
|
|
16624
16740
|
isConnection: false,
|
|
16625
16741
|
isList: false,
|
|
@@ -16635,7 +16751,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16635
16751
|
}
|
|
16636
16752
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
16637
16753
|
tables(variables, builder) {
|
|
16638
|
-
const info = extractIncludeInfo(
|
|
16754
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
16639
16755
|
let children;
|
|
16640
16756
|
if (builder) {
|
|
16641
16757
|
const sub = new TableSubBuilder();
|
|
@@ -16644,7 +16760,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16644
16760
|
}
|
|
16645
16761
|
this._includes.push({
|
|
16646
16762
|
fieldName: "tables",
|
|
16647
|
-
fragmentDoc:
|
|
16763
|
+
fragmentDoc: chunkMMZOIZLF_cjs.TableConnectionFragmentDoc,
|
|
16648
16764
|
variables,
|
|
16649
16765
|
isConnection: true,
|
|
16650
16766
|
isList: false,
|
|
@@ -16668,7 +16784,7 @@ var Document_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16668
16784
|
this._variables = variables;
|
|
16669
16785
|
}
|
|
16670
16786
|
async fetch(options) {
|
|
16671
|
-
const response = await this._syncEngine.query(
|
|
16787
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Document_ContentsDocument, this._variables, "document");
|
|
16672
16788
|
const data = response.document?.contents;
|
|
16673
16789
|
if (!Array.isArray(data)) return [];
|
|
16674
16790
|
return data.map((item) => new DocumentContent(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -16682,14 +16798,14 @@ var Document_FileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16682
16798
|
}
|
|
16683
16799
|
async fetch(options) {
|
|
16684
16800
|
const variables = this._variables;
|
|
16685
|
-
const response = await this._syncEngine.query(
|
|
16801
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Document_FileDocument, variables, "document");
|
|
16686
16802
|
const data = response.document?.file;
|
|
16687
16803
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16688
16804
|
}
|
|
16689
16805
|
watch(options) {
|
|
16690
16806
|
const variables = this._variables;
|
|
16691
16807
|
const raw = this._syncEngine.watch(
|
|
16692
|
-
|
|
16808
|
+
chunkMMZOIZLF_cjs.Document_FileDocument,
|
|
16693
16809
|
variables,
|
|
16694
16810
|
"document",
|
|
16695
16811
|
async (db) => {
|
|
@@ -16712,14 +16828,14 @@ var Document_FormatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16712
16828
|
}
|
|
16713
16829
|
async fetch(options) {
|
|
16714
16830
|
const variables = this._variables;
|
|
16715
|
-
const response = await this._syncEngine.query(
|
|
16831
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Document_FormatDocument, variables, "document");
|
|
16716
16832
|
const data = response.document?.format;
|
|
16717
16833
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16718
16834
|
}
|
|
16719
16835
|
watch(options) {
|
|
16720
16836
|
const variables = this._variables;
|
|
16721
16837
|
const raw = this._syncEngine.watch(
|
|
16722
|
-
|
|
16838
|
+
chunkMMZOIZLF_cjs.Document_FormatDocument,
|
|
16723
16839
|
variables,
|
|
16724
16840
|
"document",
|
|
16725
16841
|
async (db) => {
|
|
@@ -16742,14 +16858,14 @@ var Document_Format_CatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16742
16858
|
}
|
|
16743
16859
|
async fetch(options) {
|
|
16744
16860
|
const variables = this._variables;
|
|
16745
|
-
const response = await this._syncEngine.query(
|
|
16861
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Document_Format_CatalogDocument, variables, "document");
|
|
16746
16862
|
const data = response.document?.format?.catalog;
|
|
16747
16863
|
return data ? new DocumentCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16748
16864
|
}
|
|
16749
16865
|
watch(options) {
|
|
16750
16866
|
const variables = this._variables;
|
|
16751
16867
|
const raw = this._syncEngine.watch(
|
|
16752
|
-
|
|
16868
|
+
chunkMMZOIZLF_cjs.Document_Format_CatalogDocument,
|
|
16753
16869
|
variables,
|
|
16754
16870
|
"document",
|
|
16755
16871
|
async (db) => {
|
|
@@ -16772,20 +16888,28 @@ var Document_TablesQuery = class _Document_TablesQuery extends chunk342BFYZZ_cjs
|
|
|
16772
16888
|
}
|
|
16773
16889
|
async fetch(options) {
|
|
16774
16890
|
const variables = this._variables;
|
|
16775
|
-
const response = await this._syncEngine.query(
|
|
16891
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Document_TablesDocument, variables, "document");
|
|
16776
16892
|
const data = response.document?.tables;
|
|
16777
16893
|
return new TableConnection(this._request, (conn, opts) => new _Document_TablesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
16778
16894
|
}
|
|
16779
16895
|
watch(options) {
|
|
16780
16896
|
const variables = this._variables;
|
|
16781
16897
|
const raw = this._syncEngine.watch(
|
|
16782
|
-
|
|
16898
|
+
chunkMMZOIZLF_cjs.Document_TablesDocument,
|
|
16783
16899
|
variables,
|
|
16784
16900
|
"document",
|
|
16785
16901
|
async (db) => {
|
|
16786
|
-
const
|
|
16787
|
-
const
|
|
16788
|
-
|
|
16902
|
+
const queryKey = buildQueryKey("document", variables, chunkMMZOIZLF_cjs.Document_TablesDocument);
|
|
16903
|
+
const qr = await db._queryResults.get(queryKey);
|
|
16904
|
+
if (!qr) {
|
|
16905
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16906
|
+
}
|
|
16907
|
+
const nodes = await db.table("tables").bulkGet(qr.entityIds);
|
|
16908
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
16909
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
16910
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16911
|
+
}
|
|
16912
|
+
return { document: { tables: { __typename: "TableConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
16789
16913
|
}
|
|
16790
16914
|
);
|
|
16791
16915
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -16803,7 +16927,7 @@ var DocumentCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16803
16927
|
}
|
|
16804
16928
|
async fetch(options) {
|
|
16805
16929
|
const variables = this._variables;
|
|
16806
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16930
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DocumentCatalogDocument, "documentCatalog", this._includes, variables);
|
|
16807
16931
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documentCatalog");
|
|
16808
16932
|
const data = response.documentCatalog;
|
|
16809
16933
|
const instance = new DocumentCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16815,7 +16939,7 @@ var DocumentCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16815
16939
|
watch(options) {
|
|
16816
16940
|
const variables = this._variables;
|
|
16817
16941
|
const includes = this._includes;
|
|
16818
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16942
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DocumentCatalogDocument, "documentCatalog", includes, variables);
|
|
16819
16943
|
const raw = this._syncEngine.watch(
|
|
16820
16944
|
queryDoc,
|
|
16821
16945
|
mergedVars,
|
|
@@ -16845,10 +16969,10 @@ var DocumentCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16845
16969
|
}
|
|
16846
16970
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
16847
16971
|
format(variables) {
|
|
16848
|
-
const info = extractIncludeInfo(
|
|
16972
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
16849
16973
|
this._includes.push({
|
|
16850
16974
|
fieldName: "format",
|
|
16851
|
-
fragmentDoc:
|
|
16975
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DocumentFormatFragmentDoc,
|
|
16852
16976
|
variables,
|
|
16853
16977
|
isConnection: false,
|
|
16854
16978
|
isList: false,
|
|
@@ -16871,14 +16995,14 @@ var DocumentCatalog_FormatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16871
16995
|
}
|
|
16872
16996
|
async fetch(options) {
|
|
16873
16997
|
const variables = this._variables;
|
|
16874
|
-
const response = await this._syncEngine.query(
|
|
16998
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.DocumentCatalog_FormatDocument, variables, "documentCatalog");
|
|
16875
16999
|
const data = response.documentCatalog?.format;
|
|
16876
17000
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16877
17001
|
}
|
|
16878
17002
|
watch(options) {
|
|
16879
17003
|
const variables = this._variables;
|
|
16880
17004
|
const raw = this._syncEngine.watch(
|
|
16881
|
-
|
|
17005
|
+
chunkMMZOIZLF_cjs.DocumentCatalog_FormatDocument,
|
|
16882
17006
|
variables,
|
|
16883
17007
|
"documentCatalog",
|
|
16884
17008
|
async (db) => {
|
|
@@ -16902,7 +17026,7 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16902
17026
|
}
|
|
16903
17027
|
async fetch(options) {
|
|
16904
17028
|
const variables = this._variables;
|
|
16905
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17029
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DocumentCatalogsDocument, "documentCatalogs", this._includes, variables, true);
|
|
16906
17030
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documentCatalogs");
|
|
16907
17031
|
const data = response.documentCatalogs;
|
|
16908
17032
|
const connection = new DocumentCatalogConnection(this._request, (conn, opts) => new _DocumentCatalogsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16919,15 +17043,22 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16919
17043
|
const subscriptionId = crypto.randomUUID();
|
|
16920
17044
|
const includes = this._includes;
|
|
16921
17045
|
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) }] : []);
|
|
16922
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17046
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DocumentCatalogsDocument, "documentCatalogs", includes, variables, true);
|
|
16923
17047
|
const raw = this._syncEngine.watch(
|
|
16924
17048
|
queryDoc,
|
|
16925
17049
|
mergedVars,
|
|
16926
17050
|
"documentCatalogs",
|
|
16927
17051
|
async (db) => {
|
|
16928
|
-
const
|
|
16929
|
-
const
|
|
17052
|
+
const queryKey = buildQueryKey("documentCatalogs", mergedVars, queryDoc);
|
|
17053
|
+
const qr = await db._queryResults.get(queryKey);
|
|
17054
|
+
if (!qr) {
|
|
17055
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17056
|
+
}
|
|
17057
|
+
const nodes = await db.table("documentCatalogs").bulkGet(qr.entityIds);
|
|
16930
17058
|
const filteredNodes = nodes.filter(Boolean);
|
|
17059
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
17060
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17061
|
+
}
|
|
16931
17062
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "documentCatalogs", filteredNodes, includes) : filteredNodes;
|
|
16932
17063
|
return { documentCatalogs: { __typename: "DocumentCatalogConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
16933
17064
|
},
|
|
@@ -16954,10 +17085,10 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk342BFYZZ_c
|
|
|
16954
17085
|
}
|
|
16955
17086
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
16956
17087
|
format(variables) {
|
|
16957
|
-
const info = extractIncludeInfo(
|
|
17088
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
16958
17089
|
this._includes.push({
|
|
16959
17090
|
fieldName: "format",
|
|
16960
|
-
fragmentDoc:
|
|
17091
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DocumentFormatFragmentDoc,
|
|
16961
17092
|
variables,
|
|
16962
17093
|
isConnection: false,
|
|
16963
17094
|
isList: false,
|
|
@@ -16981,7 +17112,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16981
17112
|
}
|
|
16982
17113
|
async fetch(options) {
|
|
16983
17114
|
const variables = this._variables;
|
|
16984
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17115
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DocumentsDocument, "documents", this._includes, variables, true);
|
|
16985
17116
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documents");
|
|
16986
17117
|
const data = response.documents;
|
|
16987
17118
|
const connection = new DocumentConnection(this._request, (conn, opts) => new _DocumentsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16998,15 +17129,22 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16998
17129
|
const subscriptionId = crypto.randomUUID();
|
|
16999
17130
|
const includes = this._includes;
|
|
17000
17131
|
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) }] : []);
|
|
17001
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17132
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.DocumentsDocument, "documents", includes, variables, true);
|
|
17002
17133
|
const raw = this._syncEngine.watch(
|
|
17003
17134
|
queryDoc,
|
|
17004
17135
|
mergedVars,
|
|
17005
17136
|
"documents",
|
|
17006
17137
|
async (db) => {
|
|
17007
|
-
const
|
|
17008
|
-
const
|
|
17138
|
+
const queryKey = buildQueryKey("documents", mergedVars, queryDoc);
|
|
17139
|
+
const qr = await db._queryResults.get(queryKey);
|
|
17140
|
+
if (!qr) {
|
|
17141
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17142
|
+
}
|
|
17143
|
+
const nodes = await db.table("documents").bulkGet(qr.entityIds);
|
|
17009
17144
|
const filteredNodes = nodes.filter(Boolean);
|
|
17145
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
17146
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17147
|
+
}
|
|
17010
17148
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "documents", filteredNodes, includes) : filteredNodes;
|
|
17011
17149
|
return { documents: { __typename: "DocumentConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
17012
17150
|
},
|
|
@@ -17033,10 +17171,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17033
17171
|
}
|
|
17034
17172
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
17035
17173
|
contents(variables) {
|
|
17036
|
-
const info = extractIncludeInfo(
|
|
17174
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
17037
17175
|
this._includes.push({
|
|
17038
17176
|
fieldName: "contents",
|
|
17039
|
-
fragmentDoc:
|
|
17177
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DocumentContentFragmentDoc,
|
|
17040
17178
|
variables,
|
|
17041
17179
|
isConnection: false,
|
|
17042
17180
|
isList: true,
|
|
@@ -17052,10 +17190,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17052
17190
|
}
|
|
17053
17191
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
17054
17192
|
file(variables) {
|
|
17055
|
-
const info = extractIncludeInfo(
|
|
17193
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Document_FileDocument, "file", ["id"]);
|
|
17056
17194
|
this._includes.push({
|
|
17057
17195
|
fieldName: "file",
|
|
17058
|
-
fragmentDoc:
|
|
17196
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FileFragmentDoc,
|
|
17059
17197
|
variables,
|
|
17060
17198
|
isConnection: false,
|
|
17061
17199
|
isList: false,
|
|
@@ -17071,10 +17209,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17071
17209
|
}
|
|
17072
17210
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
17073
17211
|
format(variables) {
|
|
17074
|
-
const info = extractIncludeInfo(
|
|
17212
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Document_FormatDocument, "format", ["id"]);
|
|
17075
17213
|
this._includes.push({
|
|
17076
17214
|
fieldName: "format",
|
|
17077
|
-
fragmentDoc:
|
|
17215
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DocumentFormatFragmentDoc,
|
|
17078
17216
|
variables,
|
|
17079
17217
|
isConnection: false,
|
|
17080
17218
|
isList: false,
|
|
@@ -17090,7 +17228,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17090
17228
|
}
|
|
17091
17229
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
17092
17230
|
tables(variables, builder) {
|
|
17093
|
-
const info = extractIncludeInfo(
|
|
17231
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
17094
17232
|
let children;
|
|
17095
17233
|
if (builder) {
|
|
17096
17234
|
const sub = new TableSubBuilder();
|
|
@@ -17099,7 +17237,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17099
17237
|
}
|
|
17100
17238
|
this._includes.push({
|
|
17101
17239
|
fieldName: "tables",
|
|
17102
|
-
fragmentDoc:
|
|
17240
|
+
fragmentDoc: chunkMMZOIZLF_cjs.TableConnectionFragmentDoc,
|
|
17103
17241
|
variables,
|
|
17104
17242
|
isConnection: true,
|
|
17105
17243
|
isList: false,
|
|
@@ -17118,13 +17256,13 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17118
17256
|
};
|
|
17119
17257
|
var ExportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17120
17258
|
async fetch(variables) {
|
|
17121
|
-
const response = await this._request(
|
|
17259
|
+
const response = await this._request(chunkMMZOIZLF_cjs.ExportDocument, variables);
|
|
17122
17260
|
return response.export;
|
|
17123
17261
|
}
|
|
17124
17262
|
};
|
|
17125
17263
|
var ExportWithInsightIdQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17126
17264
|
async fetch(variables) {
|
|
17127
|
-
const response = await this._request(
|
|
17265
|
+
const response = await this._request(chunkMMZOIZLF_cjs.ExportWithInsightIdDocument, variables);
|
|
17128
17266
|
return response.exportWithInsightId;
|
|
17129
17267
|
}
|
|
17130
17268
|
};
|
|
@@ -17137,7 +17275,7 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17137
17275
|
}
|
|
17138
17276
|
async fetch(options) {
|
|
17139
17277
|
const variables = this._variables;
|
|
17140
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17278
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.FeedItemDocument, "feedItem", this._includes, variables);
|
|
17141
17279
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "feedItem");
|
|
17142
17280
|
const data = response.feedItem;
|
|
17143
17281
|
if (!data) return void 0;
|
|
@@ -17150,7 +17288,7 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17150
17288
|
watch(options) {
|
|
17151
17289
|
const variables = this._variables;
|
|
17152
17290
|
const includes = this._includes;
|
|
17153
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17291
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.FeedItemDocument, "feedItem", includes, variables);
|
|
17154
17292
|
const raw = this._syncEngine.watch(
|
|
17155
17293
|
queryDoc,
|
|
17156
17294
|
mergedVars,
|
|
@@ -17181,10 +17319,10 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17181
17319
|
}
|
|
17182
17320
|
/** Include action in this query (Smart Fetch — single HTTP request). */
|
|
17183
17321
|
action(variables) {
|
|
17184
|
-
const info = extractIncludeInfo(
|
|
17322
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.FeedItem_ActionDocument, "action", ["id"]);
|
|
17185
17323
|
this._includes.push({
|
|
17186
17324
|
fieldName: "action",
|
|
17187
|
-
fragmentDoc:
|
|
17325
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FeedSendMessageActionFragmentDoc,
|
|
17188
17326
|
variables,
|
|
17189
17327
|
isConnection: false,
|
|
17190
17328
|
isList: false,
|
|
@@ -17200,10 +17338,10 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17200
17338
|
}
|
|
17201
17339
|
/** Include data in this query (Smart Fetch — single HTTP request). */
|
|
17202
17340
|
data(variables) {
|
|
17203
|
-
const info = extractIncludeInfo(
|
|
17341
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.FeedItem_DataDocument, "data", ["id"]);
|
|
17204
17342
|
this._includes.push({
|
|
17205
17343
|
fieldName: "data",
|
|
17206
|
-
fragmentDoc:
|
|
17344
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FeedArtifactDataFragmentDoc,
|
|
17207
17345
|
variables,
|
|
17208
17346
|
isConnection: false,
|
|
17209
17347
|
isList: true,
|
|
@@ -17226,14 +17364,14 @@ var FeedItem_ActionQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17226
17364
|
}
|
|
17227
17365
|
async fetch(options) {
|
|
17228
17366
|
const variables = this._variables;
|
|
17229
|
-
const response = await this._syncEngine.query(
|
|
17367
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.FeedItem_ActionDocument, variables, "feedItem");
|
|
17230
17368
|
const data = response.feedItem?.action;
|
|
17231
17369
|
return data ? new FeedSendMessageAction(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17232
17370
|
}
|
|
17233
17371
|
watch(options) {
|
|
17234
17372
|
const variables = this._variables;
|
|
17235
17373
|
const raw = this._syncEngine.watch(
|
|
17236
|
-
|
|
17374
|
+
chunkMMZOIZLF_cjs.FeedItem_ActionDocument,
|
|
17237
17375
|
variables,
|
|
17238
17376
|
"feedItem",
|
|
17239
17377
|
async (db) => {
|
|
@@ -17255,7 +17393,7 @@ var FeedItem_DataQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17255
17393
|
this._variables = variables;
|
|
17256
17394
|
}
|
|
17257
17395
|
async fetch(options) {
|
|
17258
|
-
const response = await this._syncEngine.query(
|
|
17396
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.FeedItem_DataDocument, this._variables, "feedItem");
|
|
17259
17397
|
const data = response.feedItem?.data;
|
|
17260
17398
|
if (!Array.isArray(data)) return [];
|
|
17261
17399
|
return data.map((item) => new FeedArtifactData(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -17270,7 +17408,7 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17270
17408
|
}
|
|
17271
17409
|
async fetch(options) {
|
|
17272
17410
|
const variables = this._variables;
|
|
17273
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17411
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.FeedItemsDocument, "feedItems", this._includes, variables, true);
|
|
17274
17412
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "feedItems");
|
|
17275
17413
|
const data = response.feedItems;
|
|
17276
17414
|
const connection = new FeedConnection(this._request, (conn, opts) => new _FeedItemsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -17287,15 +17425,22 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17287
17425
|
const subscriptionId = crypto.randomUUID();
|
|
17288
17426
|
const includes = this._includes;
|
|
17289
17427
|
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) }] : []);
|
|
17290
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17428
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.FeedItemsDocument, "feedItems", includes, variables, true);
|
|
17291
17429
|
const raw = this._syncEngine.watch(
|
|
17292
17430
|
queryDoc,
|
|
17293
17431
|
mergedVars,
|
|
17294
17432
|
"feedItems",
|
|
17295
17433
|
async (db) => {
|
|
17296
|
-
const
|
|
17297
|
-
const
|
|
17434
|
+
const queryKey = buildQueryKey("feedItems", mergedVars, queryDoc);
|
|
17435
|
+
const qr = await db._queryResults.get(queryKey);
|
|
17436
|
+
if (!qr) {
|
|
17437
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17438
|
+
}
|
|
17439
|
+
const nodes = await db.table("feedItems").bulkGet(qr.entityIds);
|
|
17298
17440
|
const filteredNodes = nodes.filter(Boolean);
|
|
17441
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
17442
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17443
|
+
}
|
|
17299
17444
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "feedItems", filteredNodes, includes) : filteredNodes;
|
|
17300
17445
|
return { feedItems: { __typename: "FeedConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
17301
17446
|
},
|
|
@@ -17322,10 +17467,10 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17322
17467
|
}
|
|
17323
17468
|
/** Include action in this query (Smart Fetch — single HTTP request). */
|
|
17324
17469
|
action(variables) {
|
|
17325
|
-
const info = extractIncludeInfo(
|
|
17470
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.FeedItem_ActionDocument, "action", ["id"]);
|
|
17326
17471
|
this._includes.push({
|
|
17327
17472
|
fieldName: "action",
|
|
17328
|
-
fragmentDoc:
|
|
17473
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FeedSendMessageActionFragmentDoc,
|
|
17329
17474
|
variables,
|
|
17330
17475
|
isConnection: false,
|
|
17331
17476
|
isList: false,
|
|
@@ -17341,10 +17486,10 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17341
17486
|
}
|
|
17342
17487
|
/** Include data in this query (Smart Fetch — single HTTP request). */
|
|
17343
17488
|
data(variables) {
|
|
17344
|
-
const info = extractIncludeInfo(
|
|
17489
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.FeedItem_DataDocument, "data", ["id"]);
|
|
17345
17490
|
this._includes.push({
|
|
17346
17491
|
fieldName: "data",
|
|
17347
|
-
fragmentDoc:
|
|
17492
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FeedArtifactDataFragmentDoc,
|
|
17348
17493
|
variables,
|
|
17349
17494
|
isConnection: false,
|
|
17350
17495
|
isList: true,
|
|
@@ -17361,7 +17506,7 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17361
17506
|
};
|
|
17362
17507
|
var FileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17363
17508
|
async fetch(variables) {
|
|
17364
|
-
const response = await this._request(
|
|
17509
|
+
const response = await this._request(chunkMMZOIZLF_cjs.FileDocument, variables);
|
|
17365
17510
|
return response.file;
|
|
17366
17511
|
}
|
|
17367
17512
|
};
|
|
@@ -17374,7 +17519,7 @@ var FileMetaQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17374
17519
|
}
|
|
17375
17520
|
async fetch(options) {
|
|
17376
17521
|
const variables = this._variables;
|
|
17377
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17522
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.FileMetaDocument, "fileMeta", this._includes, variables);
|
|
17378
17523
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "fileMeta");
|
|
17379
17524
|
const data = response.fileMeta;
|
|
17380
17525
|
if (!data) return void 0;
|
|
@@ -17387,7 +17532,7 @@ var FileMetaQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17387
17532
|
watch(options) {
|
|
17388
17533
|
const variables = this._variables;
|
|
17389
17534
|
const includes = this._includes;
|
|
17390
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17535
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.FileMetaDocument, "fileMeta", includes, variables);
|
|
17391
17536
|
const raw = this._syncEngine.watch(
|
|
17392
17537
|
queryDoc,
|
|
17393
17538
|
mergedVars,
|
|
@@ -17425,7 +17570,7 @@ var FileUrlsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17425
17570
|
this._variables = variables;
|
|
17426
17571
|
}
|
|
17427
17572
|
async fetch(options) {
|
|
17428
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17573
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.FileUrlsDocument, "fileUrls", this._includes, this._variables);
|
|
17429
17574
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "fileUrls");
|
|
17430
17575
|
const data = response.fileUrls;
|
|
17431
17576
|
if (!Array.isArray(data)) return [];
|
|
@@ -17434,7 +17579,7 @@ var FileUrlsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17434
17579
|
};
|
|
17435
17580
|
var FindFitTierQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17436
17581
|
async fetch(variables) {
|
|
17437
|
-
const response = await this._request(
|
|
17582
|
+
const response = await this._request(chunkMMZOIZLF_cjs.FindFitTierDocument, variables);
|
|
17438
17583
|
return response.findFitTier ?? void 0;
|
|
17439
17584
|
}
|
|
17440
17585
|
};
|
|
@@ -17447,7 +17592,7 @@ var FolderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17447
17592
|
}
|
|
17448
17593
|
async fetch(options) {
|
|
17449
17594
|
const variables = this._variables;
|
|
17450
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17595
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.FolderDocument, "folder", this._includes, variables);
|
|
17451
17596
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "folder");
|
|
17452
17597
|
const data = response.folder;
|
|
17453
17598
|
const instance = new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17459,7 +17604,7 @@ var FolderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17459
17604
|
watch(options) {
|
|
17460
17605
|
const variables = this._variables;
|
|
17461
17606
|
const includes = this._includes;
|
|
17462
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17607
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.FolderDocument, "folder", includes, variables);
|
|
17463
17608
|
const raw = this._syncEngine.watch(
|
|
17464
17609
|
queryDoc,
|
|
17465
17610
|
mergedVars,
|
|
@@ -17497,7 +17642,7 @@ var FoldersQuery = class _FoldersQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17497
17642
|
}
|
|
17498
17643
|
async fetch(options) {
|
|
17499
17644
|
const variables = this._variables;
|
|
17500
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17645
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.FoldersDocument, "folders", this._includes, variables, true);
|
|
17501
17646
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "folders");
|
|
17502
17647
|
const data = response.folders;
|
|
17503
17648
|
const connection = new FolderConnection(this._request, (conn, opts) => new _FoldersQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -17514,15 +17659,22 @@ var FoldersQuery = class _FoldersQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17514
17659
|
const subscriptionId = crypto.randomUUID();
|
|
17515
17660
|
const includes = this._includes;
|
|
17516
17661
|
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) }] : []);
|
|
17517
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17662
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.FoldersDocument, "folders", includes, variables, true);
|
|
17518
17663
|
const raw = this._syncEngine.watch(
|
|
17519
17664
|
queryDoc,
|
|
17520
17665
|
mergedVars,
|
|
17521
17666
|
"folders",
|
|
17522
17667
|
async (db) => {
|
|
17523
|
-
const
|
|
17524
|
-
const
|
|
17668
|
+
const queryKey = buildQueryKey("folders", mergedVars, queryDoc);
|
|
17669
|
+
const qr = await db._queryResults.get(queryKey);
|
|
17670
|
+
if (!qr) {
|
|
17671
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17672
|
+
}
|
|
17673
|
+
const nodes = await db.table("folders").bulkGet(qr.entityIds);
|
|
17525
17674
|
const filteredNodes = nodes.filter(Boolean);
|
|
17675
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
17676
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17677
|
+
}
|
|
17526
17678
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "folders", filteredNodes, includes) : filteredNodes;
|
|
17527
17679
|
return { folders: { __typename: "FolderConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
17528
17680
|
},
|
|
@@ -17550,7 +17702,7 @@ var FoldersQuery = class _FoldersQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
17550
17702
|
};
|
|
17551
17703
|
var GetCapabilityQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17552
17704
|
async fetch(variables) {
|
|
17553
|
-
const response = await this._request(
|
|
17705
|
+
const response = await this._request(chunkMMZOIZLF_cjs.GetCapabilityDocument, variables);
|
|
17554
17706
|
return response.getCapability;
|
|
17555
17707
|
}
|
|
17556
17708
|
};
|
|
@@ -17563,7 +17715,7 @@ var GetDevAccessTokenQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17563
17715
|
}
|
|
17564
17716
|
async fetch(options) {
|
|
17565
17717
|
const variables = this._variables;
|
|
17566
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17718
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.GetDevAccessTokenDocument, "getDevAccessToken", this._includes, variables);
|
|
17567
17719
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getDevAccessToken");
|
|
17568
17720
|
const data = response.getDevAccessToken;
|
|
17569
17721
|
const instance = new DevAccessTokenOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17575,7 +17727,7 @@ var GetDevAccessTokenQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17575
17727
|
watch(options) {
|
|
17576
17728
|
const variables = this._variables;
|
|
17577
17729
|
const includes = this._includes;
|
|
17578
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17730
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.GetDevAccessTokenDocument, "getDevAccessToken", includes, variables);
|
|
17579
17731
|
const raw = this._syncEngine.watch(
|
|
17580
17732
|
queryDoc,
|
|
17581
17733
|
mergedVars,
|
|
@@ -17606,13 +17758,13 @@ var GetDevAccessTokenQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17606
17758
|
};
|
|
17607
17759
|
var GetLimitQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17608
17760
|
async fetch(variables) {
|
|
17609
|
-
const response = await this._request(
|
|
17761
|
+
const response = await this._request(chunkMMZOIZLF_cjs.GetLimitDocument, variables);
|
|
17610
17762
|
return response.getLimit ?? void 0;
|
|
17611
17763
|
}
|
|
17612
17764
|
};
|
|
17613
17765
|
var GetRemainingQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17614
17766
|
async fetch(variables) {
|
|
17615
|
-
const response = await this._request(
|
|
17767
|
+
const response = await this._request(chunkMMZOIZLF_cjs.GetRemainingDocument, variables);
|
|
17616
17768
|
return response.getRemaining ?? void 0;
|
|
17617
17769
|
}
|
|
17618
17770
|
};
|
|
@@ -17624,7 +17776,7 @@ var GetTokenUsageByModelQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17624
17776
|
this._variables = variables;
|
|
17625
17777
|
}
|
|
17626
17778
|
async fetch(options) {
|
|
17627
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17779
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.GetTokenUsageByModelDocument, "getTokenUsageByModel", this._includes, this._variables);
|
|
17628
17780
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageByModel");
|
|
17629
17781
|
const data = response.getTokenUsageByModel;
|
|
17630
17782
|
if (!Array.isArray(data)) return [];
|
|
@@ -17639,7 +17791,7 @@ var GetTokenUsageHistoryQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17639
17791
|
this._variables = variables;
|
|
17640
17792
|
}
|
|
17641
17793
|
async fetch(options) {
|
|
17642
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17794
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.GetTokenUsageHistoryDocument, "getTokenUsageHistory", this._includes, this._variables);
|
|
17643
17795
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageHistory");
|
|
17644
17796
|
const data = response.getTokenUsageHistory;
|
|
17645
17797
|
if (!Array.isArray(data)) return [];
|
|
@@ -17655,7 +17807,7 @@ var GetTokenUsageStatusQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17655
17807
|
}
|
|
17656
17808
|
async fetch(options) {
|
|
17657
17809
|
const variables = this._variables;
|
|
17658
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17810
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", this._includes, variables);
|
|
17659
17811
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageStatus");
|
|
17660
17812
|
const data = response.getTokenUsageStatus;
|
|
17661
17813
|
const instance = new UsageStatus(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17667,7 +17819,7 @@ var GetTokenUsageStatusQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17667
17819
|
watch(options) {
|
|
17668
17820
|
const variables = this._variables;
|
|
17669
17821
|
const includes = this._includes;
|
|
17670
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17822
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", includes, variables);
|
|
17671
17823
|
const raw = this._syncEngine.watch(
|
|
17672
17824
|
queryDoc,
|
|
17673
17825
|
mergedVars,
|
|
@@ -17697,10 +17849,10 @@ var GetTokenUsageStatusQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17697
17849
|
}
|
|
17698
17850
|
/** Include windows in this query (Smart Fetch — single HTTP request). */
|
|
17699
17851
|
windows(variables) {
|
|
17700
|
-
const info = extractIncludeInfo(
|
|
17852
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.GetTokenUsageStatus_WindowsDocument, "windows", []);
|
|
17701
17853
|
this._includes.push({
|
|
17702
17854
|
fieldName: "windows",
|
|
17703
|
-
fragmentDoc:
|
|
17855
|
+
fragmentDoc: chunkMMZOIZLF_cjs.UsageWindowsStatusTypeFragmentDoc,
|
|
17704
17856
|
variables,
|
|
17705
17857
|
isConnection: false,
|
|
17706
17858
|
isList: false,
|
|
@@ -17723,14 +17875,14 @@ var GetTokenUsageStatus_WindowsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17723
17875
|
}
|
|
17724
17876
|
async fetch(options) {
|
|
17725
17877
|
const variables = this._variables;
|
|
17726
|
-
const response = await this._syncEngine.query(
|
|
17878
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.GetTokenUsageStatus_WindowsDocument, variables, "getTokenUsageStatus");
|
|
17727
17879
|
const data = response.getTokenUsageStatus?.windows;
|
|
17728
17880
|
return data ? new UsageWindowsStatusType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17729
17881
|
}
|
|
17730
17882
|
watch(options) {
|
|
17731
17883
|
const variables = this._variables;
|
|
17732
17884
|
const raw = this._syncEngine.watch(
|
|
17733
|
-
|
|
17885
|
+
chunkMMZOIZLF_cjs.GetTokenUsageStatus_WindowsDocument,
|
|
17734
17886
|
variables,
|
|
17735
17887
|
"getTokenUsageStatus",
|
|
17736
17888
|
async (db) => {
|
|
@@ -17753,14 +17905,14 @@ var GetTokenUsageStatus_Windows_DayQuery = class extends chunk342BFYZZ_cjs.Reque
|
|
|
17753
17905
|
}
|
|
17754
17906
|
async fetch(options) {
|
|
17755
17907
|
const variables = this._variables;
|
|
17756
|
-
const response = await this._syncEngine.query(
|
|
17908
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.GetTokenUsageStatus_Windows_DayDocument, variables, "getTokenUsageStatus");
|
|
17757
17909
|
const data = response.getTokenUsageStatus?.windows?.day;
|
|
17758
17910
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17759
17911
|
}
|
|
17760
17912
|
watch(options) {
|
|
17761
17913
|
const variables = this._variables;
|
|
17762
17914
|
const raw = this._syncEngine.watch(
|
|
17763
|
-
|
|
17915
|
+
chunkMMZOIZLF_cjs.GetTokenUsageStatus_Windows_DayDocument,
|
|
17764
17916
|
variables,
|
|
17765
17917
|
"getTokenUsageStatus",
|
|
17766
17918
|
async (db) => {
|
|
@@ -17783,14 +17935,14 @@ var GetTokenUsageStatus_Windows_FiveHourQuery = class extends chunk342BFYZZ_cjs.
|
|
|
17783
17935
|
}
|
|
17784
17936
|
async fetch(options) {
|
|
17785
17937
|
const variables = this._variables;
|
|
17786
|
-
const response = await this._syncEngine.query(
|
|
17938
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.GetTokenUsageStatus_Windows_FiveHourDocument, variables, "getTokenUsageStatus");
|
|
17787
17939
|
const data = response.getTokenUsageStatus?.windows?.fiveHour;
|
|
17788
17940
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17789
17941
|
}
|
|
17790
17942
|
watch(options) {
|
|
17791
17943
|
const variables = this._variables;
|
|
17792
17944
|
const raw = this._syncEngine.watch(
|
|
17793
|
-
|
|
17945
|
+
chunkMMZOIZLF_cjs.GetTokenUsageStatus_Windows_FiveHourDocument,
|
|
17794
17946
|
variables,
|
|
17795
17947
|
"getTokenUsageStatus",
|
|
17796
17948
|
async (db) => {
|
|
@@ -17813,14 +17965,14 @@ var GetTokenUsageStatus_Windows_MonthQuery = class extends chunk342BFYZZ_cjs.Req
|
|
|
17813
17965
|
}
|
|
17814
17966
|
async fetch(options) {
|
|
17815
17967
|
const variables = this._variables;
|
|
17816
|
-
const response = await this._syncEngine.query(
|
|
17968
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.GetTokenUsageStatus_Windows_MonthDocument, variables, "getTokenUsageStatus");
|
|
17817
17969
|
const data = response.getTokenUsageStatus?.windows?.month;
|
|
17818
17970
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17819
17971
|
}
|
|
17820
17972
|
watch(options) {
|
|
17821
17973
|
const variables = this._variables;
|
|
17822
17974
|
const raw = this._syncEngine.watch(
|
|
17823
|
-
|
|
17975
|
+
chunkMMZOIZLF_cjs.GetTokenUsageStatus_Windows_MonthDocument,
|
|
17824
17976
|
variables,
|
|
17825
17977
|
"getTokenUsageStatus",
|
|
17826
17978
|
async (db) => {
|
|
@@ -17843,14 +17995,14 @@ var GetTokenUsageStatus_Windows_WeekQuery = class extends chunk342BFYZZ_cjs.Requ
|
|
|
17843
17995
|
}
|
|
17844
17996
|
async fetch(options) {
|
|
17845
17997
|
const variables = this._variables;
|
|
17846
|
-
const response = await this._syncEngine.query(
|
|
17998
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.GetTokenUsageStatus_Windows_WeekDocument, variables, "getTokenUsageStatus");
|
|
17847
17999
|
const data = response.getTokenUsageStatus?.windows?.week;
|
|
17848
18000
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17849
18001
|
}
|
|
17850
18002
|
watch(options) {
|
|
17851
18003
|
const variables = this._variables;
|
|
17852
18004
|
const raw = this._syncEngine.watch(
|
|
17853
|
-
|
|
18005
|
+
chunkMMZOIZLF_cjs.GetTokenUsageStatus_Windows_WeekDocument,
|
|
17854
18006
|
variables,
|
|
17855
18007
|
"getTokenUsageStatus",
|
|
17856
18008
|
async (db) => {
|
|
@@ -17867,7 +18019,7 @@ var GetTokenUsageStatus_Windows_WeekQuery = class extends chunk342BFYZZ_cjs.Requ
|
|
|
17867
18019
|
};
|
|
17868
18020
|
var GetUsageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17869
18021
|
async fetch(variables) {
|
|
17870
|
-
const response = await this._request(
|
|
18022
|
+
const response = await this._request(chunkMMZOIZLF_cjs.GetUsageDocument, variables);
|
|
17871
18023
|
return response.getUsage ?? void 0;
|
|
17872
18024
|
}
|
|
17873
18025
|
};
|
|
@@ -17880,7 +18032,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17880
18032
|
}
|
|
17881
18033
|
async fetch(options) {
|
|
17882
18034
|
const variables = this._variables;
|
|
17883
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18035
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.InsightDocument, "insight", this._includes, variables);
|
|
17884
18036
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "insight");
|
|
17885
18037
|
const data = response.insight;
|
|
17886
18038
|
const instance = new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17892,7 +18044,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17892
18044
|
watch(options) {
|
|
17893
18045
|
const variables = this._variables;
|
|
17894
18046
|
const includes = this._includes;
|
|
17895
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18047
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.InsightDocument, "insight", includes, variables);
|
|
17896
18048
|
const raw = this._syncEngine.watch(
|
|
17897
18049
|
queryDoc,
|
|
17898
18050
|
mergedVars,
|
|
@@ -17922,7 +18074,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17922
18074
|
}
|
|
17923
18075
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
17924
18076
|
chat(variables, builder) {
|
|
17925
|
-
const info = extractIncludeInfo(
|
|
18077
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
17926
18078
|
let children;
|
|
17927
18079
|
if (builder) {
|
|
17928
18080
|
const sub = new ChatSubBuilder();
|
|
@@ -17931,7 +18083,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17931
18083
|
}
|
|
17932
18084
|
this._includes.push({
|
|
17933
18085
|
fieldName: "chat",
|
|
17934
|
-
fragmentDoc:
|
|
18086
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatFragmentDoc,
|
|
17935
18087
|
variables,
|
|
17936
18088
|
isConnection: false,
|
|
17937
18089
|
isList: false,
|
|
@@ -17948,10 +18100,10 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17948
18100
|
}
|
|
17949
18101
|
/** Include reportMembers in this query (Smart Fetch — single HTTP request). */
|
|
17950
18102
|
reportMembers(variables) {
|
|
17951
|
-
const info = extractIncludeInfo(
|
|
18103
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
17952
18104
|
this._includes.push({
|
|
17953
18105
|
fieldName: "reportMembers",
|
|
17954
|
-
fragmentDoc:
|
|
18106
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ReportMemberFragmentDoc,
|
|
17955
18107
|
variables,
|
|
17956
18108
|
isConnection: false,
|
|
17957
18109
|
isList: true,
|
|
@@ -17967,7 +18119,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17967
18119
|
}
|
|
17968
18120
|
/** Include reports in this query (Smart Fetch — single HTTP request). */
|
|
17969
18121
|
reports(variables, builder) {
|
|
17970
|
-
const info = extractIncludeInfo(
|
|
18122
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
17971
18123
|
let children;
|
|
17972
18124
|
if (builder) {
|
|
17973
18125
|
const sub = new ReportSubBuilder();
|
|
@@ -17976,7 +18128,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17976
18128
|
}
|
|
17977
18129
|
this._includes.push({
|
|
17978
18130
|
fieldName: "reports",
|
|
17979
|
-
fragmentDoc:
|
|
18131
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ReportConnectionFragmentDoc,
|
|
17980
18132
|
variables,
|
|
17981
18133
|
isConnection: true,
|
|
17982
18134
|
isList: false,
|
|
@@ -17994,10 +18146,10 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17994
18146
|
}
|
|
17995
18147
|
/** Include thumbnailFile in this query (Smart Fetch — single HTTP request). */
|
|
17996
18148
|
thumbnailFile(variables) {
|
|
17997
|
-
const info = extractIncludeInfo(
|
|
18149
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
|
|
17998
18150
|
this._includes.push({
|
|
17999
18151
|
fieldName: "thumbnailFile",
|
|
18000
|
-
fragmentDoc:
|
|
18152
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FileFragmentDoc,
|
|
18001
18153
|
variables,
|
|
18002
18154
|
isConnection: false,
|
|
18003
18155
|
isList: false,
|
|
@@ -18020,14 +18172,14 @@ var Insight_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18020
18172
|
}
|
|
18021
18173
|
async fetch(options) {
|
|
18022
18174
|
const variables = this._variables;
|
|
18023
|
-
const response = await this._syncEngine.query(
|
|
18175
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Insight_ChatDocument, variables, "insight");
|
|
18024
18176
|
const data = response.insight?.chat;
|
|
18025
18177
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18026
18178
|
}
|
|
18027
18179
|
watch(options) {
|
|
18028
18180
|
const variables = this._variables;
|
|
18029
18181
|
const raw = this._syncEngine.watch(
|
|
18030
|
-
|
|
18182
|
+
chunkMMZOIZLF_cjs.Insight_ChatDocument,
|
|
18031
18183
|
variables,
|
|
18032
18184
|
"insight",
|
|
18033
18185
|
async (db) => {
|
|
@@ -18049,7 +18201,7 @@ var Insight_ReportMembersQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18049
18201
|
this._variables = variables;
|
|
18050
18202
|
}
|
|
18051
18203
|
async fetch(options) {
|
|
18052
|
-
const response = await this._syncEngine.query(
|
|
18204
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Insight_ReportMembersDocument, this._variables, "insight");
|
|
18053
18205
|
const data = response.insight?.reportMembers;
|
|
18054
18206
|
if (!Array.isArray(data)) return [];
|
|
18055
18207
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -18063,20 +18215,28 @@ var Insight_ReportsQuery = class _Insight_ReportsQuery extends chunk342BFYZZ_cjs
|
|
|
18063
18215
|
}
|
|
18064
18216
|
async fetch(options) {
|
|
18065
18217
|
const variables = this._variables;
|
|
18066
|
-
const response = await this._syncEngine.query(
|
|
18218
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Insight_ReportsDocument, variables, "insight");
|
|
18067
18219
|
const data = response.insight?.reports;
|
|
18068
18220
|
return new ReportConnection(this._request, (conn, opts) => new _Insight_ReportsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
18069
18221
|
}
|
|
18070
18222
|
watch(options) {
|
|
18071
18223
|
const variables = this._variables;
|
|
18072
18224
|
const raw = this._syncEngine.watch(
|
|
18073
|
-
|
|
18225
|
+
chunkMMZOIZLF_cjs.Insight_ReportsDocument,
|
|
18074
18226
|
variables,
|
|
18075
18227
|
"insight",
|
|
18076
18228
|
async (db) => {
|
|
18077
|
-
const
|
|
18078
|
-
const
|
|
18079
|
-
|
|
18229
|
+
const queryKey = buildQueryKey("insight", variables, chunkMMZOIZLF_cjs.Insight_ReportsDocument);
|
|
18230
|
+
const qr = await db._queryResults.get(queryKey);
|
|
18231
|
+
if (!qr) {
|
|
18232
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18233
|
+
}
|
|
18234
|
+
const nodes = await db.table("reports").bulkGet(qr.entityIds);
|
|
18235
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
18236
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
18237
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18238
|
+
}
|
|
18239
|
+
return { insight: { reports: { __typename: "ReportConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
18080
18240
|
}
|
|
18081
18241
|
);
|
|
18082
18242
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -18093,14 +18253,14 @@ var Insight_ThumbnailFileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18093
18253
|
}
|
|
18094
18254
|
async fetch(options) {
|
|
18095
18255
|
const variables = this._variables;
|
|
18096
|
-
const response = await this._syncEngine.query(
|
|
18256
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Insight_ThumbnailFileDocument, variables, "insight");
|
|
18097
18257
|
const data = response.insight?.thumbnailFile;
|
|
18098
18258
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18099
18259
|
}
|
|
18100
18260
|
watch(options) {
|
|
18101
18261
|
const variables = this._variables;
|
|
18102
18262
|
const raw = this._syncEngine.watch(
|
|
18103
|
-
|
|
18263
|
+
chunkMMZOIZLF_cjs.Insight_ThumbnailFileDocument,
|
|
18104
18264
|
variables,
|
|
18105
18265
|
"insight",
|
|
18106
18266
|
async (db) => {
|
|
@@ -18124,7 +18284,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18124
18284
|
}
|
|
18125
18285
|
async fetch(options) {
|
|
18126
18286
|
const variables = this._variables;
|
|
18127
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18287
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.InsightsDocument, "insights", this._includes, variables, true);
|
|
18128
18288
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "insights");
|
|
18129
18289
|
const data = response.insights;
|
|
18130
18290
|
const connection = new InsightConnection(this._request, (conn, opts) => new _InsightsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -18141,15 +18301,22 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18141
18301
|
const subscriptionId = crypto.randomUUID();
|
|
18142
18302
|
const includes = this._includes;
|
|
18143
18303
|
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) }] : []);
|
|
18144
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18304
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.InsightsDocument, "insights", includes, variables, true);
|
|
18145
18305
|
const raw = this._syncEngine.watch(
|
|
18146
18306
|
queryDoc,
|
|
18147
18307
|
mergedVars,
|
|
18148
18308
|
"insights",
|
|
18149
18309
|
async (db) => {
|
|
18150
|
-
const
|
|
18151
|
-
const
|
|
18310
|
+
const queryKey = buildQueryKey("insights", mergedVars, queryDoc);
|
|
18311
|
+
const qr = await db._queryResults.get(queryKey);
|
|
18312
|
+
if (!qr) {
|
|
18313
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18314
|
+
}
|
|
18315
|
+
const nodes = await db.table("insights").bulkGet(qr.entityIds);
|
|
18152
18316
|
const filteredNodes = nodes.filter(Boolean);
|
|
18317
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
18318
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18319
|
+
}
|
|
18153
18320
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "insights", filteredNodes, includes) : filteredNodes;
|
|
18154
18321
|
return { insights: { __typename: "InsightConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
18155
18322
|
},
|
|
@@ -18176,7 +18343,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18176
18343
|
}
|
|
18177
18344
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
18178
18345
|
chat(variables, builder) {
|
|
18179
|
-
const info = extractIncludeInfo(
|
|
18346
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
18180
18347
|
let children;
|
|
18181
18348
|
if (builder) {
|
|
18182
18349
|
const sub = new ChatSubBuilder();
|
|
@@ -18185,7 +18352,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18185
18352
|
}
|
|
18186
18353
|
this._includes.push({
|
|
18187
18354
|
fieldName: "chat",
|
|
18188
|
-
fragmentDoc:
|
|
18355
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ChatFragmentDoc,
|
|
18189
18356
|
variables,
|
|
18190
18357
|
isConnection: false,
|
|
18191
18358
|
isList: false,
|
|
@@ -18202,10 +18369,10 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18202
18369
|
}
|
|
18203
18370
|
/** Include reportMembers in this query (Smart Fetch — single HTTP request). */
|
|
18204
18371
|
reportMembers(variables) {
|
|
18205
|
-
const info = extractIncludeInfo(
|
|
18372
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
18206
18373
|
this._includes.push({
|
|
18207
18374
|
fieldName: "reportMembers",
|
|
18208
|
-
fragmentDoc:
|
|
18375
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ReportMemberFragmentDoc,
|
|
18209
18376
|
variables,
|
|
18210
18377
|
isConnection: false,
|
|
18211
18378
|
isList: true,
|
|
@@ -18221,7 +18388,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18221
18388
|
}
|
|
18222
18389
|
/** Include reports in this query (Smart Fetch — single HTTP request). */
|
|
18223
18390
|
reports(variables, builder) {
|
|
18224
|
-
const info = extractIncludeInfo(
|
|
18391
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
18225
18392
|
let children;
|
|
18226
18393
|
if (builder) {
|
|
18227
18394
|
const sub = new ReportSubBuilder();
|
|
@@ -18230,7 +18397,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18230
18397
|
}
|
|
18231
18398
|
this._includes.push({
|
|
18232
18399
|
fieldName: "reports",
|
|
18233
|
-
fragmentDoc:
|
|
18400
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ReportConnectionFragmentDoc,
|
|
18234
18401
|
variables,
|
|
18235
18402
|
isConnection: true,
|
|
18236
18403
|
isList: false,
|
|
@@ -18248,10 +18415,10 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18248
18415
|
}
|
|
18249
18416
|
/** Include thumbnailFile in this query (Smart Fetch — single HTTP request). */
|
|
18250
18417
|
thumbnailFile(variables) {
|
|
18251
|
-
const info = extractIncludeInfo(
|
|
18418
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
|
|
18252
18419
|
this._includes.push({
|
|
18253
18420
|
fieldName: "thumbnailFile",
|
|
18254
|
-
fragmentDoc:
|
|
18421
|
+
fragmentDoc: chunkMMZOIZLF_cjs.FileFragmentDoc,
|
|
18255
18422
|
variables,
|
|
18256
18423
|
isConnection: false,
|
|
18257
18424
|
isList: false,
|
|
@@ -18275,7 +18442,7 @@ var IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18275
18442
|
}
|
|
18276
18443
|
async fetch(options) {
|
|
18277
18444
|
const variables = this._variables;
|
|
18278
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18445
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.IntegrationDocument, "integration", this._includes, variables);
|
|
18279
18446
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integration");
|
|
18280
18447
|
const data = response.integration;
|
|
18281
18448
|
const instance = new Integration(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18287,7 +18454,7 @@ var IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18287
18454
|
watch(options) {
|
|
18288
18455
|
const variables = this._variables;
|
|
18289
18456
|
const includes = this._includes;
|
|
18290
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18457
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.IntegrationDocument, "integration", includes, variables);
|
|
18291
18458
|
const raw = this._syncEngine.watch(
|
|
18292
18459
|
queryDoc,
|
|
18293
18460
|
mergedVars,
|
|
@@ -18317,10 +18484,10 @@ var IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18317
18484
|
}
|
|
18318
18485
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
18319
18486
|
provider(variables) {
|
|
18320
|
-
const info = extractIncludeInfo(
|
|
18487
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
18321
18488
|
this._includes.push({
|
|
18322
18489
|
fieldName: "provider",
|
|
18323
|
-
fragmentDoc:
|
|
18490
|
+
fragmentDoc: chunkMMZOIZLF_cjs.IntegrationProviderFragmentDoc,
|
|
18324
18491
|
variables,
|
|
18325
18492
|
isConnection: false,
|
|
18326
18493
|
isList: false,
|
|
@@ -18343,14 +18510,14 @@ var Integration_ProviderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18343
18510
|
}
|
|
18344
18511
|
async fetch(options) {
|
|
18345
18512
|
const variables = this._variables;
|
|
18346
|
-
const response = await this._syncEngine.query(
|
|
18513
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Integration_ProviderDocument, variables, "integration");
|
|
18347
18514
|
const data = response.integration?.provider;
|
|
18348
18515
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18349
18516
|
}
|
|
18350
18517
|
watch(options) {
|
|
18351
18518
|
const variables = this._variables;
|
|
18352
18519
|
const raw = this._syncEngine.watch(
|
|
18353
|
-
|
|
18520
|
+
chunkMMZOIZLF_cjs.Integration_ProviderDocument,
|
|
18354
18521
|
variables,
|
|
18355
18522
|
"integration",
|
|
18356
18523
|
async (db) => {
|
|
@@ -18373,14 +18540,14 @@ var Integration_Provider_CatalogQuery = class extends chunk342BFYZZ_cjs.Request
|
|
|
18373
18540
|
}
|
|
18374
18541
|
async fetch(options) {
|
|
18375
18542
|
const variables = this._variables;
|
|
18376
|
-
const response = await this._syncEngine.query(
|
|
18543
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Integration_Provider_CatalogDocument, variables, "integration");
|
|
18377
18544
|
const data = response.integration?.provider?.catalog;
|
|
18378
18545
|
return data ? new IntegrationCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18379
18546
|
}
|
|
18380
18547
|
watch(options) {
|
|
18381
18548
|
const variables = this._variables;
|
|
18382
18549
|
const raw = this._syncEngine.watch(
|
|
18383
|
-
|
|
18550
|
+
chunkMMZOIZLF_cjs.Integration_Provider_CatalogDocument,
|
|
18384
18551
|
variables,
|
|
18385
18552
|
"integration",
|
|
18386
18553
|
async (db) => {
|
|
@@ -18404,7 +18571,7 @@ var IntegrationCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18404
18571
|
}
|
|
18405
18572
|
async fetch(options) {
|
|
18406
18573
|
const variables = this._variables;
|
|
18407
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18574
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.IntegrationCatalogDocument, "integrationCatalog", this._includes, variables);
|
|
18408
18575
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrationCatalog");
|
|
18409
18576
|
const data = response.integrationCatalog;
|
|
18410
18577
|
const instance = new IntegrationCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18416,7 +18583,7 @@ var IntegrationCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18416
18583
|
watch(options) {
|
|
18417
18584
|
const variables = this._variables;
|
|
18418
18585
|
const includes = this._includes;
|
|
18419
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18586
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.IntegrationCatalogDocument, "integrationCatalog", includes, variables);
|
|
18420
18587
|
const raw = this._syncEngine.watch(
|
|
18421
18588
|
queryDoc,
|
|
18422
18589
|
mergedVars,
|
|
@@ -18446,10 +18613,10 @@ var IntegrationCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18446
18613
|
}
|
|
18447
18614
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
18448
18615
|
provider(variables) {
|
|
18449
|
-
const info = extractIncludeInfo(
|
|
18616
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
18450
18617
|
this._includes.push({
|
|
18451
18618
|
fieldName: "provider",
|
|
18452
|
-
fragmentDoc:
|
|
18619
|
+
fragmentDoc: chunkMMZOIZLF_cjs.IntegrationProviderFragmentDoc,
|
|
18453
18620
|
variables,
|
|
18454
18621
|
isConnection: false,
|
|
18455
18622
|
isList: false,
|
|
@@ -18472,14 +18639,14 @@ var IntegrationCatalog_ProviderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18472
18639
|
}
|
|
18473
18640
|
async fetch(options) {
|
|
18474
18641
|
const variables = this._variables;
|
|
18475
|
-
const response = await this._syncEngine.query(
|
|
18642
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.IntegrationCatalog_ProviderDocument, variables, "integrationCatalog");
|
|
18476
18643
|
const data = response.integrationCatalog?.provider;
|
|
18477
18644
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18478
18645
|
}
|
|
18479
18646
|
watch(options) {
|
|
18480
18647
|
const variables = this._variables;
|
|
18481
18648
|
const raw = this._syncEngine.watch(
|
|
18482
|
-
|
|
18649
|
+
chunkMMZOIZLF_cjs.IntegrationCatalog_ProviderDocument,
|
|
18483
18650
|
variables,
|
|
18484
18651
|
"integrationCatalog",
|
|
18485
18652
|
async (db) => {
|
|
@@ -18496,7 +18663,7 @@ var IntegrationCatalog_ProviderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18496
18663
|
};
|
|
18497
18664
|
var IntegrationCatalogToolsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
18498
18665
|
async fetch(variables) {
|
|
18499
|
-
const response = await this._request(
|
|
18666
|
+
const response = await this._request(chunkMMZOIZLF_cjs.IntegrationCatalogToolsDocument, variables);
|
|
18500
18667
|
return response.integrationCatalogTools;
|
|
18501
18668
|
}
|
|
18502
18669
|
};
|
|
@@ -18509,7 +18676,7 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk342B
|
|
|
18509
18676
|
}
|
|
18510
18677
|
async fetch(options) {
|
|
18511
18678
|
const variables = this._variables;
|
|
18512
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18679
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.IntegrationCatalogsDocument, "integrationCatalogs", this._includes, variables, true);
|
|
18513
18680
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrationCatalogs");
|
|
18514
18681
|
const data = response.integrationCatalogs;
|
|
18515
18682
|
const connection = new IntegrationCatalogConnection(this._request, (conn, opts) => new _IntegrationCatalogsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -18526,15 +18693,22 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk342B
|
|
|
18526
18693
|
const subscriptionId = crypto.randomUUID();
|
|
18527
18694
|
const includes = this._includes;
|
|
18528
18695
|
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) }] : []);
|
|
18529
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18696
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.IntegrationCatalogsDocument, "integrationCatalogs", includes, variables, true);
|
|
18530
18697
|
const raw = this._syncEngine.watch(
|
|
18531
18698
|
queryDoc,
|
|
18532
18699
|
mergedVars,
|
|
18533
18700
|
"integrationCatalogs",
|
|
18534
18701
|
async (db) => {
|
|
18535
|
-
const
|
|
18536
|
-
const
|
|
18702
|
+
const queryKey = buildQueryKey("integrationCatalogs", mergedVars, queryDoc);
|
|
18703
|
+
const qr = await db._queryResults.get(queryKey);
|
|
18704
|
+
if (!qr) {
|
|
18705
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18706
|
+
}
|
|
18707
|
+
const nodes = await db.table("integrationCatalogs").bulkGet(qr.entityIds);
|
|
18537
18708
|
const filteredNodes = nodes.filter(Boolean);
|
|
18709
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
18710
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18711
|
+
}
|
|
18538
18712
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "integrationCatalogs", filteredNodes, includes) : filteredNodes;
|
|
18539
18713
|
return { integrationCatalogs: { __typename: "IntegrationCatalogConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
18540
18714
|
},
|
|
@@ -18561,10 +18735,10 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk342B
|
|
|
18561
18735
|
}
|
|
18562
18736
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
18563
18737
|
provider(variables) {
|
|
18564
|
-
const info = extractIncludeInfo(
|
|
18738
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
18565
18739
|
this._includes.push({
|
|
18566
18740
|
fieldName: "provider",
|
|
18567
|
-
fragmentDoc:
|
|
18741
|
+
fragmentDoc: chunkMMZOIZLF_cjs.IntegrationProviderFragmentDoc,
|
|
18568
18742
|
variables,
|
|
18569
18743
|
isConnection: false,
|
|
18570
18744
|
isList: false,
|
|
@@ -18588,7 +18762,7 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
18588
18762
|
}
|
|
18589
18763
|
async fetch(options) {
|
|
18590
18764
|
const variables = this._variables;
|
|
18591
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18765
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.IntegrationsDocument, "integrations", this._includes, variables, true);
|
|
18592
18766
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrations");
|
|
18593
18767
|
const data = response.integrations;
|
|
18594
18768
|
const connection = new IntegrationConnection(this._request, (conn, opts) => new _IntegrationsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -18605,15 +18779,22 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
18605
18779
|
const subscriptionId = crypto.randomUUID();
|
|
18606
18780
|
const includes = this._includes;
|
|
18607
18781
|
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) }] : []);
|
|
18608
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18782
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.IntegrationsDocument, "integrations", includes, variables, true);
|
|
18609
18783
|
const raw = this._syncEngine.watch(
|
|
18610
18784
|
queryDoc,
|
|
18611
18785
|
mergedVars,
|
|
18612
18786
|
"integrations",
|
|
18613
18787
|
async (db) => {
|
|
18614
|
-
const
|
|
18615
|
-
const
|
|
18788
|
+
const queryKey = buildQueryKey("integrations", mergedVars, queryDoc);
|
|
18789
|
+
const qr = await db._queryResults.get(queryKey);
|
|
18790
|
+
if (!qr) {
|
|
18791
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18792
|
+
}
|
|
18793
|
+
const nodes = await db.table("integrations").bulkGet(qr.entityIds);
|
|
18616
18794
|
const filteredNodes = nodes.filter(Boolean);
|
|
18795
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
18796
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18797
|
+
}
|
|
18617
18798
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "integrations", filteredNodes, includes) : filteredNodes;
|
|
18618
18799
|
return { integrations: { __typename: "IntegrationConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
18619
18800
|
},
|
|
@@ -18640,10 +18821,10 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
18640
18821
|
}
|
|
18641
18822
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
18642
18823
|
provider(variables) {
|
|
18643
|
-
const info = extractIncludeInfo(
|
|
18824
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
18644
18825
|
this._includes.push({
|
|
18645
18826
|
fieldName: "provider",
|
|
18646
|
-
fragmentDoc:
|
|
18827
|
+
fragmentDoc: chunkMMZOIZLF_cjs.IntegrationProviderFragmentDoc,
|
|
18647
18828
|
variables,
|
|
18648
18829
|
isConnection: false,
|
|
18649
18830
|
isList: false,
|
|
@@ -18667,7 +18848,7 @@ var InterpretationsQuery = class _InterpretationsQuery extends chunk342BFYZZ_cjs
|
|
|
18667
18848
|
}
|
|
18668
18849
|
async fetch(options) {
|
|
18669
18850
|
const variables = this._variables;
|
|
18670
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18851
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.InterpretationsDocument, "interpretations", this._includes, variables, true);
|
|
18671
18852
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "interpretations");
|
|
18672
18853
|
const data = response.interpretations;
|
|
18673
18854
|
const connection = new InterpretationConnection(this._request, (conn, opts) => new _InterpretationsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -18684,15 +18865,22 @@ var InterpretationsQuery = class _InterpretationsQuery extends chunk342BFYZZ_cjs
|
|
|
18684
18865
|
const subscriptionId = crypto.randomUUID();
|
|
18685
18866
|
const includes = this._includes;
|
|
18686
18867
|
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) }] : []);
|
|
18687
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18868
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.InterpretationsDocument, "interpretations", includes, variables, true);
|
|
18688
18869
|
const raw = this._syncEngine.watch(
|
|
18689
18870
|
queryDoc,
|
|
18690
18871
|
mergedVars,
|
|
18691
18872
|
"interpretations",
|
|
18692
18873
|
async (db) => {
|
|
18693
|
-
const
|
|
18694
|
-
const
|
|
18874
|
+
const queryKey = buildQueryKey("interpretations", mergedVars, queryDoc);
|
|
18875
|
+
const qr = await db._queryResults.get(queryKey);
|
|
18876
|
+
if (!qr) {
|
|
18877
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18878
|
+
}
|
|
18879
|
+
const nodes = await db.table("interpretations").bulkGet(qr.entityIds);
|
|
18695
18880
|
const filteredNodes = nodes.filter(Boolean);
|
|
18881
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
18882
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18883
|
+
}
|
|
18696
18884
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "interpretations", filteredNodes, includes) : filteredNodes;
|
|
18697
18885
|
return { interpretations: { __typename: "InterpretationConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
18698
18886
|
},
|
|
@@ -18727,7 +18915,7 @@ var NotificationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18727
18915
|
}
|
|
18728
18916
|
async fetch(options) {
|
|
18729
18917
|
const variables = this._variables;
|
|
18730
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18918
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.NotificationDocument, "notification", this._includes, variables);
|
|
18731
18919
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notification");
|
|
18732
18920
|
const data = response.notification;
|
|
18733
18921
|
const instance = new Notification(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18739,7 +18927,7 @@ var NotificationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18739
18927
|
watch(options) {
|
|
18740
18928
|
const variables = this._variables;
|
|
18741
18929
|
const includes = this._includes;
|
|
18742
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18930
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.NotificationDocument, "notification", includes, variables);
|
|
18743
18931
|
const raw = this._syncEngine.watch(
|
|
18744
18932
|
queryDoc,
|
|
18745
18933
|
mergedVars,
|
|
@@ -18777,7 +18965,7 @@ var NotificationsQuery = class _NotificationsQuery extends chunk342BFYZZ_cjs.Req
|
|
|
18777
18965
|
}
|
|
18778
18966
|
async fetch(options) {
|
|
18779
18967
|
const variables = this._variables;
|
|
18780
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18968
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.NotificationsDocument, "notifications", this._includes, variables, true);
|
|
18781
18969
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notifications");
|
|
18782
18970
|
const data = response.notifications;
|
|
18783
18971
|
const connection = new NotificationConnection(this._request, (conn, opts) => new _NotificationsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -18794,15 +18982,22 @@ var NotificationsQuery = class _NotificationsQuery extends chunk342BFYZZ_cjs.Req
|
|
|
18794
18982
|
const subscriptionId = crypto.randomUUID();
|
|
18795
18983
|
const includes = this._includes;
|
|
18796
18984
|
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) }] : []);
|
|
18797
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18985
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.NotificationsDocument, "notifications", includes, variables, true);
|
|
18798
18986
|
const raw = this._syncEngine.watch(
|
|
18799
18987
|
queryDoc,
|
|
18800
18988
|
mergedVars,
|
|
18801
18989
|
"notifications",
|
|
18802
18990
|
async (db) => {
|
|
18803
|
-
const
|
|
18804
|
-
const
|
|
18991
|
+
const queryKey = buildQueryKey("notifications", mergedVars, queryDoc);
|
|
18992
|
+
const qr = await db._queryResults.get(queryKey);
|
|
18993
|
+
if (!qr) {
|
|
18994
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18995
|
+
}
|
|
18996
|
+
const nodes = await db.table("notifications").bulkGet(qr.entityIds);
|
|
18805
18997
|
const filteredNodes = nodes.filter(Boolean);
|
|
18998
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
18999
|
+
throw new DvinaCacheMissError(queryKey);
|
|
19000
|
+
}
|
|
18806
19001
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "notifications", filteredNodes, includes) : filteredNodes;
|
|
18807
19002
|
return { notifications: { __typename: "NotificationConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
18808
19003
|
},
|
|
@@ -18836,7 +19031,7 @@ var NotificationsByReferenceQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18836
19031
|
this._variables = variables;
|
|
18837
19032
|
}
|
|
18838
19033
|
async fetch(options) {
|
|
18839
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19034
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.NotificationsByReferenceDocument, "notificationsByReference", this._includes, this._variables);
|
|
18840
19035
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notificationsByReference");
|
|
18841
19036
|
const data = response.notificationsByReference;
|
|
18842
19037
|
if (!Array.isArray(data)) return [];
|
|
@@ -18852,7 +19047,7 @@ var PrivacyStatsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18852
19047
|
}
|
|
18853
19048
|
async fetch(options) {
|
|
18854
19049
|
const variables = this._variables;
|
|
18855
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19050
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.PrivacyStatsDocument, "privacyStats", this._includes, variables);
|
|
18856
19051
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "privacyStats");
|
|
18857
19052
|
const data = response.privacyStats;
|
|
18858
19053
|
const instance = new PrivacyStats(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18864,7 +19059,7 @@ var PrivacyStatsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18864
19059
|
watch(options) {
|
|
18865
19060
|
const variables = this._variables;
|
|
18866
19061
|
const includes = this._includes;
|
|
18867
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19062
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.PrivacyStatsDocument, "privacyStats", includes, variables);
|
|
18868
19063
|
const raw = this._syncEngine.watch(
|
|
18869
19064
|
queryDoc,
|
|
18870
19065
|
mergedVars,
|
|
@@ -18902,7 +19097,7 @@ var PulseAppSummaryQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18902
19097
|
}
|
|
18903
19098
|
async fetch(options) {
|
|
18904
19099
|
const variables = this._variables;
|
|
18905
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19100
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.PulseAppSummaryDocument, "pulseAppSummary", this._includes, variables);
|
|
18906
19101
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseAppSummary");
|
|
18907
19102
|
const data = response.pulseAppSummary;
|
|
18908
19103
|
if (!data) return void 0;
|
|
@@ -18915,7 +19110,7 @@ var PulseAppSummaryQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18915
19110
|
watch(options) {
|
|
18916
19111
|
const variables = this._variables;
|
|
18917
19112
|
const includes = this._includes;
|
|
18918
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19113
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.PulseAppSummaryDocument, "pulseAppSummary", includes, variables);
|
|
18919
19114
|
const raw = this._syncEngine.watch(
|
|
18920
19115
|
queryDoc,
|
|
18921
19116
|
mergedVars,
|
|
@@ -18954,7 +19149,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18954
19149
|
}
|
|
18955
19150
|
async fetch(options) {
|
|
18956
19151
|
const variables = this._variables;
|
|
18957
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19152
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.PulseEventDocument, "pulseEvent", this._includes, variables);
|
|
18958
19153
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEvent");
|
|
18959
19154
|
const data = response.pulseEvent;
|
|
18960
19155
|
const instance = new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18966,7 +19161,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18966
19161
|
watch(options) {
|
|
18967
19162
|
const variables = this._variables;
|
|
18968
19163
|
const includes = this._includes;
|
|
18969
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19164
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.PulseEventDocument, "pulseEvent", includes, variables);
|
|
18970
19165
|
const raw = this._syncEngine.watch(
|
|
18971
19166
|
queryDoc,
|
|
18972
19167
|
mergedVars,
|
|
@@ -18996,7 +19191,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18996
19191
|
}
|
|
18997
19192
|
/** Include integration in this query (Smart Fetch — single HTTP request). */
|
|
18998
19193
|
integration(variables, builder) {
|
|
18999
|
-
const info = extractIncludeInfo(
|
|
19194
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
19000
19195
|
let children;
|
|
19001
19196
|
if (builder) {
|
|
19002
19197
|
const sub = new IntegrationSubBuilder();
|
|
@@ -19005,7 +19200,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19005
19200
|
}
|
|
19006
19201
|
this._includes.push({
|
|
19007
19202
|
fieldName: "integration",
|
|
19008
|
-
fragmentDoc:
|
|
19203
|
+
fragmentDoc: chunkMMZOIZLF_cjs.IntegrationFragmentDoc,
|
|
19009
19204
|
variables,
|
|
19010
19205
|
isConnection: false,
|
|
19011
19206
|
isList: false,
|
|
@@ -19029,14 +19224,14 @@ var PulseEvent_IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19029
19224
|
}
|
|
19030
19225
|
async fetch(options) {
|
|
19031
19226
|
const variables = this._variables;
|
|
19032
|
-
const response = await this._syncEngine.query(
|
|
19227
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.PulseEvent_IntegrationDocument, variables, "pulseEvent");
|
|
19033
19228
|
const data = response.pulseEvent?.integration;
|
|
19034
19229
|
return data ? new Integration(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
19035
19230
|
}
|
|
19036
19231
|
watch(options) {
|
|
19037
19232
|
const variables = this._variables;
|
|
19038
19233
|
const raw = this._syncEngine.watch(
|
|
19039
|
-
|
|
19234
|
+
chunkMMZOIZLF_cjs.PulseEvent_IntegrationDocument,
|
|
19040
19235
|
variables,
|
|
19041
19236
|
"pulseEvent",
|
|
19042
19237
|
async (db) => {
|
|
@@ -19059,14 +19254,14 @@ var PulseEvent_Integration_ProviderQuery = class extends chunk342BFYZZ_cjs.Reque
|
|
|
19059
19254
|
}
|
|
19060
19255
|
async fetch(options) {
|
|
19061
19256
|
const variables = this._variables;
|
|
19062
|
-
const response = await this._syncEngine.query(
|
|
19257
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.PulseEvent_Integration_ProviderDocument, variables, "pulseEvent");
|
|
19063
19258
|
const data = response.pulseEvent?.integration?.provider;
|
|
19064
19259
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
19065
19260
|
}
|
|
19066
19261
|
watch(options) {
|
|
19067
19262
|
const variables = this._variables;
|
|
19068
19263
|
const raw = this._syncEngine.watch(
|
|
19069
|
-
|
|
19264
|
+
chunkMMZOIZLF_cjs.PulseEvent_Integration_ProviderDocument,
|
|
19070
19265
|
variables,
|
|
19071
19266
|
"pulseEvent",
|
|
19072
19267
|
async (db) => {
|
|
@@ -19090,7 +19285,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
19090
19285
|
}
|
|
19091
19286
|
async fetch(options) {
|
|
19092
19287
|
const variables = this._variables;
|
|
19093
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19288
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.PulseEventsDocument, "pulseEvents", this._includes, variables, true);
|
|
19094
19289
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEvents");
|
|
19095
19290
|
const data = response.pulseEvents;
|
|
19096
19291
|
const connection = new PulseEventConnection(this._request, (conn, opts) => new _PulseEventsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -19107,15 +19302,22 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
19107
19302
|
const subscriptionId = crypto.randomUUID();
|
|
19108
19303
|
const includes = this._includes;
|
|
19109
19304
|
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) }] : []);
|
|
19110
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19305
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.PulseEventsDocument, "pulseEvents", includes, variables, true);
|
|
19111
19306
|
const raw = this._syncEngine.watch(
|
|
19112
19307
|
queryDoc,
|
|
19113
19308
|
mergedVars,
|
|
19114
19309
|
"pulseEvents",
|
|
19115
19310
|
async (db) => {
|
|
19116
|
-
const
|
|
19117
|
-
const
|
|
19311
|
+
const queryKey = buildQueryKey("pulseEvents", mergedVars, queryDoc);
|
|
19312
|
+
const qr = await db._queryResults.get(queryKey);
|
|
19313
|
+
if (!qr) {
|
|
19314
|
+
throw new DvinaCacheMissError(queryKey);
|
|
19315
|
+
}
|
|
19316
|
+
const nodes = await db.table("pulseEvents").bulkGet(qr.entityIds);
|
|
19118
19317
|
const filteredNodes = nodes.filter(Boolean);
|
|
19318
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
19319
|
+
throw new DvinaCacheMissError(queryKey);
|
|
19320
|
+
}
|
|
19119
19321
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "pulseEvents", filteredNodes, includes) : filteredNodes;
|
|
19120
19322
|
return { pulseEvents: { __typename: "PulseEventConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
19121
19323
|
},
|
|
@@ -19142,7 +19344,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
19142
19344
|
}
|
|
19143
19345
|
/** Include integration in this query (Smart Fetch — single HTTP request). */
|
|
19144
19346
|
integration(variables, builder) {
|
|
19145
|
-
const info = extractIncludeInfo(
|
|
19347
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
19146
19348
|
let children;
|
|
19147
19349
|
if (builder) {
|
|
19148
19350
|
const sub = new IntegrationSubBuilder();
|
|
@@ -19151,7 +19353,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
19151
19353
|
}
|
|
19152
19354
|
this._includes.push({
|
|
19153
19355
|
fieldName: "integration",
|
|
19154
|
-
fragmentDoc:
|
|
19356
|
+
fragmentDoc: chunkMMZOIZLF_cjs.IntegrationFragmentDoc,
|
|
19155
19357
|
variables,
|
|
19156
19358
|
isConnection: false,
|
|
19157
19359
|
isList: false,
|
|
@@ -19175,7 +19377,7 @@ var PulseTriggerSettingsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19175
19377
|
this._variables = variables;
|
|
19176
19378
|
}
|
|
19177
19379
|
async fetch(options) {
|
|
19178
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19380
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.PulseTriggerSettingsDocument, "pulseTriggerSettings", this._includes, this._variables);
|
|
19179
19381
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseTriggerSettings");
|
|
19180
19382
|
const data = response.pulseTriggerSettings;
|
|
19181
19383
|
if (!Array.isArray(data)) return [];
|
|
@@ -19184,19 +19386,19 @@ var PulseTriggerSettingsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19184
19386
|
};
|
|
19185
19387
|
var QueryQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
19186
19388
|
async fetch(variables) {
|
|
19187
|
-
const response = await this._request(
|
|
19389
|
+
const response = await this._request(chunkMMZOIZLF_cjs.QueryDocument, variables);
|
|
19188
19390
|
return response.query;
|
|
19189
19391
|
}
|
|
19190
19392
|
};
|
|
19191
19393
|
var QueryWithInsightIdQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
19192
19394
|
async fetch(variables) {
|
|
19193
|
-
const response = await this._request(
|
|
19395
|
+
const response = await this._request(chunkMMZOIZLF_cjs.QueryWithInsightIdDocument, variables);
|
|
19194
19396
|
return response.queryWithInsightId;
|
|
19195
19397
|
}
|
|
19196
19398
|
};
|
|
19197
19399
|
var QueryWithMessageIdQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
19198
19400
|
async fetch(variables) {
|
|
19199
|
-
const response = await this._request(
|
|
19401
|
+
const response = await this._request(chunkMMZOIZLF_cjs.QueryWithMessageIdDocument, variables);
|
|
19200
19402
|
return response.queryWithMessageId;
|
|
19201
19403
|
}
|
|
19202
19404
|
};
|
|
@@ -19209,7 +19411,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19209
19411
|
}
|
|
19210
19412
|
async fetch(options) {
|
|
19211
19413
|
const variables = this._variables;
|
|
19212
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19414
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ReportDocument, "report", this._includes, variables);
|
|
19213
19415
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "report");
|
|
19214
19416
|
const data = response.report;
|
|
19215
19417
|
const instance = new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -19221,7 +19423,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19221
19423
|
watch(options) {
|
|
19222
19424
|
const variables = this._variables;
|
|
19223
19425
|
const includes = this._includes;
|
|
19224
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19426
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ReportDocument, "report", includes, variables);
|
|
19225
19427
|
const raw = this._syncEngine.watch(
|
|
19226
19428
|
queryDoc,
|
|
19227
19429
|
mergedVars,
|
|
@@ -19251,7 +19453,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19251
19453
|
}
|
|
19252
19454
|
/** Include insights in this query (Smart Fetch — single HTTP request). */
|
|
19253
19455
|
insights(variables, builder) {
|
|
19254
|
-
const info = extractIncludeInfo(
|
|
19456
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
19255
19457
|
let children;
|
|
19256
19458
|
if (builder) {
|
|
19257
19459
|
const sub = new InsightSubBuilder();
|
|
@@ -19260,7 +19462,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19260
19462
|
}
|
|
19261
19463
|
this._includes.push({
|
|
19262
19464
|
fieldName: "insights",
|
|
19263
|
-
fragmentDoc:
|
|
19465
|
+
fragmentDoc: chunkMMZOIZLF_cjs.InsightConnectionFragmentDoc,
|
|
19264
19466
|
variables,
|
|
19265
19467
|
isConnection: true,
|
|
19266
19468
|
isList: false,
|
|
@@ -19278,10 +19480,10 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19278
19480
|
}
|
|
19279
19481
|
/** Include layout in this query (Smart Fetch — single HTTP request). */
|
|
19280
19482
|
layout(variables) {
|
|
19281
|
-
const info = extractIncludeInfo(
|
|
19483
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
19282
19484
|
this._includes.push({
|
|
19283
19485
|
fieldName: "layout",
|
|
19284
|
-
fragmentDoc:
|
|
19486
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ReportMemberFragmentDoc,
|
|
19285
19487
|
variables,
|
|
19286
19488
|
isConnection: false,
|
|
19287
19489
|
isList: true,
|
|
@@ -19304,20 +19506,28 @@ var Report_InsightsQuery = class _Report_InsightsQuery extends chunk342BFYZZ_cjs
|
|
|
19304
19506
|
}
|
|
19305
19507
|
async fetch(options) {
|
|
19306
19508
|
const variables = this._variables;
|
|
19307
|
-
const response = await this._syncEngine.query(
|
|
19509
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Report_InsightsDocument, variables, "report");
|
|
19308
19510
|
const data = response.report?.insights;
|
|
19309
19511
|
return new InsightConnection(this._request, (conn, opts) => new _Report_InsightsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
19310
19512
|
}
|
|
19311
19513
|
watch(options) {
|
|
19312
19514
|
const variables = this._variables;
|
|
19313
19515
|
const raw = this._syncEngine.watch(
|
|
19314
|
-
|
|
19516
|
+
chunkMMZOIZLF_cjs.Report_InsightsDocument,
|
|
19315
19517
|
variables,
|
|
19316
19518
|
"report",
|
|
19317
19519
|
async (db) => {
|
|
19318
|
-
const
|
|
19319
|
-
const
|
|
19320
|
-
|
|
19520
|
+
const queryKey = buildQueryKey("report", variables, chunkMMZOIZLF_cjs.Report_InsightsDocument);
|
|
19521
|
+
const qr = await db._queryResults.get(queryKey);
|
|
19522
|
+
if (!qr) {
|
|
19523
|
+
throw new DvinaCacheMissError(queryKey);
|
|
19524
|
+
}
|
|
19525
|
+
const nodes = await db.table("insights").bulkGet(qr.entityIds);
|
|
19526
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
19527
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
19528
|
+
throw new DvinaCacheMissError(queryKey);
|
|
19529
|
+
}
|
|
19530
|
+
return { report: { insights: { __typename: "InsightConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
19321
19531
|
}
|
|
19322
19532
|
);
|
|
19323
19533
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -19333,7 +19543,7 @@ var Report_LayoutQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19333
19543
|
this._variables = variables;
|
|
19334
19544
|
}
|
|
19335
19545
|
async fetch(options) {
|
|
19336
|
-
const response = await this._syncEngine.query(
|
|
19546
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Report_LayoutDocument, this._variables, "report");
|
|
19337
19547
|
const data = response.report?.layout;
|
|
19338
19548
|
if (!Array.isArray(data)) return [];
|
|
19339
19549
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -19348,7 +19558,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19348
19558
|
}
|
|
19349
19559
|
async fetch(options) {
|
|
19350
19560
|
const variables = this._variables;
|
|
19351
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19561
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ReportsDocument, "reports", this._includes, variables, true);
|
|
19352
19562
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "reports");
|
|
19353
19563
|
const data = response.reports;
|
|
19354
19564
|
const connection = new ReportConnection(this._request, (conn, opts) => new _ReportsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -19365,15 +19575,22 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19365
19575
|
const subscriptionId = crypto.randomUUID();
|
|
19366
19576
|
const includes = this._includes;
|
|
19367
19577
|
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) }] : []);
|
|
19368
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19578
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.ReportsDocument, "reports", includes, variables, true);
|
|
19369
19579
|
const raw = this._syncEngine.watch(
|
|
19370
19580
|
queryDoc,
|
|
19371
19581
|
mergedVars,
|
|
19372
19582
|
"reports",
|
|
19373
19583
|
async (db) => {
|
|
19374
|
-
const
|
|
19375
|
-
const
|
|
19584
|
+
const queryKey = buildQueryKey("reports", mergedVars, queryDoc);
|
|
19585
|
+
const qr = await db._queryResults.get(queryKey);
|
|
19586
|
+
if (!qr) {
|
|
19587
|
+
throw new DvinaCacheMissError(queryKey);
|
|
19588
|
+
}
|
|
19589
|
+
const nodes = await db.table("reports").bulkGet(qr.entityIds);
|
|
19376
19590
|
const filteredNodes = nodes.filter(Boolean);
|
|
19591
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
19592
|
+
throw new DvinaCacheMissError(queryKey);
|
|
19593
|
+
}
|
|
19377
19594
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "reports", filteredNodes, includes) : filteredNodes;
|
|
19378
19595
|
return { reports: { __typename: "ReportConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
19379
19596
|
},
|
|
@@ -19400,7 +19617,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19400
19617
|
}
|
|
19401
19618
|
/** Include insights in this query (Smart Fetch — single HTTP request). */
|
|
19402
19619
|
insights(variables, builder) {
|
|
19403
|
-
const info = extractIncludeInfo(
|
|
19620
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
19404
19621
|
let children;
|
|
19405
19622
|
if (builder) {
|
|
19406
19623
|
const sub = new InsightSubBuilder();
|
|
@@ -19409,7 +19626,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19409
19626
|
}
|
|
19410
19627
|
this._includes.push({
|
|
19411
19628
|
fieldName: "insights",
|
|
19412
|
-
fragmentDoc:
|
|
19629
|
+
fragmentDoc: chunkMMZOIZLF_cjs.InsightConnectionFragmentDoc,
|
|
19413
19630
|
variables,
|
|
19414
19631
|
isConnection: true,
|
|
19415
19632
|
isList: false,
|
|
@@ -19427,10 +19644,10 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19427
19644
|
}
|
|
19428
19645
|
/** Include layout in this query (Smart Fetch — single HTTP request). */
|
|
19429
19646
|
layout(variables) {
|
|
19430
|
-
const info = extractIncludeInfo(
|
|
19647
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
19431
19648
|
this._includes.push({
|
|
19432
19649
|
fieldName: "layout",
|
|
19433
|
-
fragmentDoc:
|
|
19650
|
+
fragmentDoc: chunkMMZOIZLF_cjs.ReportMemberFragmentDoc,
|
|
19434
19651
|
variables,
|
|
19435
19652
|
isConnection: false,
|
|
19436
19653
|
isList: true,
|
|
@@ -19454,7 +19671,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19454
19671
|
}
|
|
19455
19672
|
async fetch(options) {
|
|
19456
19673
|
const variables = this._variables;
|
|
19457
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19674
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.TableDocument, "table", this._includes, variables);
|
|
19458
19675
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "table");
|
|
19459
19676
|
const data = response.table;
|
|
19460
19677
|
const instance = new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -19466,7 +19683,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19466
19683
|
watch(options) {
|
|
19467
19684
|
const variables = this._variables;
|
|
19468
19685
|
const includes = this._includes;
|
|
19469
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
19686
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.TableDocument, "table", includes, variables);
|
|
19470
19687
|
const raw = this._syncEngine.watch(
|
|
19471
19688
|
queryDoc,
|
|
19472
19689
|
mergedVars,
|
|
@@ -19496,7 +19713,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19496
19713
|
}
|
|
19497
19714
|
/** Include database in this query (Smart Fetch — single HTTP request). */
|
|
19498
19715
|
database(variables, builder) {
|
|
19499
|
-
const info = extractIncludeInfo(
|
|
19716
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
19500
19717
|
let children;
|
|
19501
19718
|
if (builder) {
|
|
19502
19719
|
const sub = new DatabaseSubBuilder();
|
|
@@ -19505,7 +19722,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19505
19722
|
}
|
|
19506
19723
|
this._includes.push({
|
|
19507
19724
|
fieldName: "database",
|
|
19508
|
-
fragmentDoc:
|
|
19725
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DatabaseFragmentDoc,
|
|
19509
19726
|
variables,
|
|
19510
19727
|
isConnection: false,
|
|
19511
19728
|
isList: false,
|
|
@@ -19522,7 +19739,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19522
19739
|
}
|
|
19523
19740
|
/** Include document in this query (Smart Fetch — single HTTP request). */
|
|
19524
19741
|
document(variables, builder) {
|
|
19525
|
-
const info = extractIncludeInfo(
|
|
19742
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
19526
19743
|
let children;
|
|
19527
19744
|
if (builder) {
|
|
19528
19745
|
const sub = new DocumentSubBuilder();
|
|
@@ -19531,7 +19748,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19531
19748
|
}
|
|
19532
19749
|
this._includes.push({
|
|
19533
19750
|
fieldName: "document",
|
|
19534
|
-
fragmentDoc:
|
|
19751
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DocumentFragmentDoc,
|
|
19535
19752
|
variables,
|
|
19536
19753
|
isConnection: false,
|
|
19537
19754
|
isList: false,
|
|
@@ -19548,10 +19765,10 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19548
19765
|
}
|
|
19549
19766
|
/** Include fromRelations in this query (Smart Fetch — single HTTP request). */
|
|
19550
19767
|
fromRelations(variables) {
|
|
19551
|
-
const info = extractIncludeInfo(
|
|
19768
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
19552
19769
|
this._includes.push({
|
|
19553
19770
|
fieldName: "fromRelations",
|
|
19554
|
-
fragmentDoc:
|
|
19771
|
+
fragmentDoc: chunkMMZOIZLF_cjs.RelationFragmentDoc,
|
|
19555
19772
|
variables,
|
|
19556
19773
|
isConnection: false,
|
|
19557
19774
|
isList: true,
|
|
@@ -19567,10 +19784,10 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19567
19784
|
}
|
|
19568
19785
|
/** Include toRelations in this query (Smart Fetch — single HTTP request). */
|
|
19569
19786
|
toRelations(variables) {
|
|
19570
|
-
const info = extractIncludeInfo(
|
|
19787
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
19571
19788
|
this._includes.push({
|
|
19572
19789
|
fieldName: "toRelations",
|
|
19573
|
-
fragmentDoc:
|
|
19790
|
+
fragmentDoc: chunkMMZOIZLF_cjs.RelationFragmentDoc,
|
|
19574
19791
|
variables,
|
|
19575
19792
|
isConnection: false,
|
|
19576
19793
|
isList: true,
|
|
@@ -19593,14 +19810,14 @@ var Table_DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19593
19810
|
}
|
|
19594
19811
|
async fetch(options) {
|
|
19595
19812
|
const variables = this._variables;
|
|
19596
|
-
const response = await this._syncEngine.query(
|
|
19813
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Table_DatabaseDocument, variables, "table");
|
|
19597
19814
|
const data = response.table?.database;
|
|
19598
19815
|
return data ? new Database(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
19599
19816
|
}
|
|
19600
19817
|
watch(options) {
|
|
19601
19818
|
const variables = this._variables;
|
|
19602
19819
|
const raw = this._syncEngine.watch(
|
|
19603
|
-
|
|
19820
|
+
chunkMMZOIZLF_cjs.Table_DatabaseDocument,
|
|
19604
19821
|
variables,
|
|
19605
19822
|
"table",
|
|
19606
19823
|
async (db) => {
|
|
@@ -19623,14 +19840,14 @@ var Table_Database_EngineQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19623
19840
|
}
|
|
19624
19841
|
async fetch(options) {
|
|
19625
19842
|
const variables = this._variables;
|
|
19626
|
-
const response = await this._syncEngine.query(
|
|
19843
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Table_Database_EngineDocument, variables, "table");
|
|
19627
19844
|
const data = response.table?.database?.engine;
|
|
19628
19845
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
19629
19846
|
}
|
|
19630
19847
|
watch(options) {
|
|
19631
19848
|
const variables = this._variables;
|
|
19632
19849
|
const raw = this._syncEngine.watch(
|
|
19633
|
-
|
|
19850
|
+
chunkMMZOIZLF_cjs.Table_Database_EngineDocument,
|
|
19634
19851
|
variables,
|
|
19635
19852
|
"table",
|
|
19636
19853
|
async (db) => {
|
|
@@ -19653,14 +19870,14 @@ var Table_DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19653
19870
|
}
|
|
19654
19871
|
async fetch(options) {
|
|
19655
19872
|
const variables = this._variables;
|
|
19656
|
-
const response = await this._syncEngine.query(
|
|
19873
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Table_DocumentDocument, variables, "table");
|
|
19657
19874
|
const data = response.table?.document;
|
|
19658
19875
|
return data ? new Document(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
19659
19876
|
}
|
|
19660
19877
|
watch(options) {
|
|
19661
19878
|
const variables = this._variables;
|
|
19662
19879
|
const raw = this._syncEngine.watch(
|
|
19663
|
-
|
|
19880
|
+
chunkMMZOIZLF_cjs.Table_DocumentDocument,
|
|
19664
19881
|
variables,
|
|
19665
19882
|
"table",
|
|
19666
19883
|
async (db) => {
|
|
@@ -19682,7 +19899,7 @@ var Table_Document_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19682
19899
|
this._variables = variables;
|
|
19683
19900
|
}
|
|
19684
19901
|
async fetch(options) {
|
|
19685
|
-
const response = await this._syncEngine.query(
|
|
19902
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Table_Document_ContentsDocument, this._variables, "table");
|
|
19686
19903
|
const data = response.table?.document?.contents;
|
|
19687
19904
|
if (!Array.isArray(data)) return [];
|
|
19688
19905
|
return data.map((item) => new DocumentContent(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -19696,14 +19913,14 @@ var Table_Document_FileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19696
19913
|
}
|
|
19697
19914
|
async fetch(options) {
|
|
19698
19915
|
const variables = this._variables;
|
|
19699
|
-
const response = await this._syncEngine.query(
|
|
19916
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Table_Document_FileDocument, variables, "table");
|
|
19700
19917
|
const data = response.table?.document?.file;
|
|
19701
19918
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
19702
19919
|
}
|
|
19703
19920
|
watch(options) {
|
|
19704
19921
|
const variables = this._variables;
|
|
19705
19922
|
const raw = this._syncEngine.watch(
|
|
19706
|
-
|
|
19923
|
+
chunkMMZOIZLF_cjs.Table_Document_FileDocument,
|
|
19707
19924
|
variables,
|
|
19708
19925
|
"table",
|
|
19709
19926
|
async (db) => {
|
|
@@ -19726,14 +19943,14 @@ var Table_Document_FormatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19726
19943
|
}
|
|
19727
19944
|
async fetch(options) {
|
|
19728
19945
|
const variables = this._variables;
|
|
19729
|
-
const response = await this._syncEngine.query(
|
|
19946
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Table_Document_FormatDocument, variables, "table");
|
|
19730
19947
|
const data = response.table?.document?.format;
|
|
19731
19948
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
19732
19949
|
}
|
|
19733
19950
|
watch(options) {
|
|
19734
19951
|
const variables = this._variables;
|
|
19735
19952
|
const raw = this._syncEngine.watch(
|
|
19736
|
-
|
|
19953
|
+
chunkMMZOIZLF_cjs.Table_Document_FormatDocument,
|
|
19737
19954
|
variables,
|
|
19738
19955
|
"table",
|
|
19739
19956
|
async (db) => {
|
|
@@ -19755,7 +19972,7 @@ var Table_FromRelationsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19755
19972
|
this._variables = variables;
|
|
19756
19973
|
}
|
|
19757
19974
|
async fetch(options) {
|
|
19758
|
-
const response = await this._syncEngine.query(
|
|
19975
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Table_FromRelationsDocument, this._variables, "table");
|
|
19759
19976
|
const data = response.table?.fromRelations;
|
|
19760
19977
|
if (!Array.isArray(data)) return [];
|
|
19761
19978
|
return data.map((item) => new Relation(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -19768,7 +19985,7 @@ var Table_ToRelationsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19768
19985
|
this._variables = variables;
|
|
19769
19986
|
}
|
|
19770
19987
|
async fetch(options) {
|
|
19771
|
-
const response = await this._syncEngine.query(
|
|
19988
|
+
const response = await this._syncEngine.query(chunkMMZOIZLF_cjs.Table_ToRelationsDocument, this._variables, "table");
|
|
19772
19989
|
const data = response.table?.toRelations;
|
|
19773
19990
|
if (!Array.isArray(data)) return [];
|
|
19774
19991
|
return data.map((item) => new Relation(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -19783,7 +20000,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19783
20000
|
}
|
|
19784
20001
|
async fetch(options) {
|
|
19785
20002
|
const variables = this._variables;
|
|
19786
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
20003
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.TablesDocument, "tables", this._includes, variables, true);
|
|
19787
20004
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "tables");
|
|
19788
20005
|
const data = response.tables;
|
|
19789
20006
|
const connection = new TableConnection(this._request, (conn, opts) => new _TablesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -19800,15 +20017,22 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19800
20017
|
const subscriptionId = crypto.randomUUID();
|
|
19801
20018
|
const includes = this._includes;
|
|
19802
20019
|
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) }] : []);
|
|
19803
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
20020
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.TablesDocument, "tables", includes, variables, true);
|
|
19804
20021
|
const raw = this._syncEngine.watch(
|
|
19805
20022
|
queryDoc,
|
|
19806
20023
|
mergedVars,
|
|
19807
20024
|
"tables",
|
|
19808
20025
|
async (db) => {
|
|
19809
|
-
const
|
|
19810
|
-
const
|
|
20026
|
+
const queryKey = buildQueryKey("tables", mergedVars, queryDoc);
|
|
20027
|
+
const qr = await db._queryResults.get(queryKey);
|
|
20028
|
+
if (!qr) {
|
|
20029
|
+
throw new DvinaCacheMissError(queryKey);
|
|
20030
|
+
}
|
|
20031
|
+
const nodes = await db.table("tables").bulkGet(qr.entityIds);
|
|
19811
20032
|
const filteredNodes = nodes.filter(Boolean);
|
|
20033
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
20034
|
+
throw new DvinaCacheMissError(queryKey);
|
|
20035
|
+
}
|
|
19812
20036
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "tables", filteredNodes, includes) : filteredNodes;
|
|
19813
20037
|
return { tables: { __typename: "TableConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
19814
20038
|
},
|
|
@@ -19835,7 +20059,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19835
20059
|
}
|
|
19836
20060
|
/** Include database in this query (Smart Fetch — single HTTP request). */
|
|
19837
20061
|
database(variables, builder) {
|
|
19838
|
-
const info = extractIncludeInfo(
|
|
20062
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
19839
20063
|
let children;
|
|
19840
20064
|
if (builder) {
|
|
19841
20065
|
const sub = new DatabaseSubBuilder();
|
|
@@ -19844,7 +20068,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19844
20068
|
}
|
|
19845
20069
|
this._includes.push({
|
|
19846
20070
|
fieldName: "database",
|
|
19847
|
-
fragmentDoc:
|
|
20071
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DatabaseFragmentDoc,
|
|
19848
20072
|
variables,
|
|
19849
20073
|
isConnection: false,
|
|
19850
20074
|
isList: false,
|
|
@@ -19861,7 +20085,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19861
20085
|
}
|
|
19862
20086
|
/** Include document in this query (Smart Fetch — single HTTP request). */
|
|
19863
20087
|
document(variables, builder) {
|
|
19864
|
-
const info = extractIncludeInfo(
|
|
20088
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
19865
20089
|
let children;
|
|
19866
20090
|
if (builder) {
|
|
19867
20091
|
const sub = new DocumentSubBuilder();
|
|
@@ -19870,7 +20094,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19870
20094
|
}
|
|
19871
20095
|
this._includes.push({
|
|
19872
20096
|
fieldName: "document",
|
|
19873
|
-
fragmentDoc:
|
|
20097
|
+
fragmentDoc: chunkMMZOIZLF_cjs.DocumentFragmentDoc,
|
|
19874
20098
|
variables,
|
|
19875
20099
|
isConnection: false,
|
|
19876
20100
|
isList: false,
|
|
@@ -19887,10 +20111,10 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19887
20111
|
}
|
|
19888
20112
|
/** Include fromRelations in this query (Smart Fetch — single HTTP request). */
|
|
19889
20113
|
fromRelations(variables) {
|
|
19890
|
-
const info = extractIncludeInfo(
|
|
20114
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
19891
20115
|
this._includes.push({
|
|
19892
20116
|
fieldName: "fromRelations",
|
|
19893
|
-
fragmentDoc:
|
|
20117
|
+
fragmentDoc: chunkMMZOIZLF_cjs.RelationFragmentDoc,
|
|
19894
20118
|
variables,
|
|
19895
20119
|
isConnection: false,
|
|
19896
20120
|
isList: true,
|
|
@@ -19906,10 +20130,10 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
19906
20130
|
}
|
|
19907
20131
|
/** Include toRelations in this query (Smart Fetch — single HTTP request). */
|
|
19908
20132
|
toRelations(variables) {
|
|
19909
|
-
const info = extractIncludeInfo(
|
|
20133
|
+
const info = extractIncludeInfo(chunkMMZOIZLF_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
19910
20134
|
this._includes.push({
|
|
19911
20135
|
fieldName: "toRelations",
|
|
19912
|
-
fragmentDoc:
|
|
20136
|
+
fragmentDoc: chunkMMZOIZLF_cjs.RelationFragmentDoc,
|
|
19913
20137
|
variables,
|
|
19914
20138
|
isConnection: false,
|
|
19915
20139
|
isList: true,
|
|
@@ -19933,7 +20157,7 @@ var UserSkillFileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19933
20157
|
}
|
|
19934
20158
|
async fetch(options) {
|
|
19935
20159
|
const variables = this._variables;
|
|
19936
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
20160
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.UserSkillFileDocument, "userSkillFile", this._includes, variables);
|
|
19937
20161
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFile");
|
|
19938
20162
|
const data = response.userSkillFile;
|
|
19939
20163
|
const instance = new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -19945,7 +20169,7 @@ var UserSkillFileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19945
20169
|
watch(options) {
|
|
19946
20170
|
const variables = this._variables;
|
|
19947
20171
|
const includes = this._includes;
|
|
19948
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
20172
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.UserSkillFileDocument, "userSkillFile", includes, variables);
|
|
19949
20173
|
const raw = this._syncEngine.watch(
|
|
19950
20174
|
queryDoc,
|
|
19951
20175
|
mergedVars,
|
|
@@ -19982,7 +20206,7 @@ var UserSkillFilesQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19982
20206
|
this._variables = variables;
|
|
19983
20207
|
}
|
|
19984
20208
|
async fetch(options) {
|
|
19985
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
20209
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.UserSkillFilesDocument, "userSkillFiles", this._includes, this._variables);
|
|
19986
20210
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFiles");
|
|
19987
20211
|
const data = response.userSkillFiles;
|
|
19988
20212
|
if (!Array.isArray(data)) return [];
|
|
@@ -19998,7 +20222,7 @@ var UserSkillFolderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19998
20222
|
}
|
|
19999
20223
|
async fetch(options) {
|
|
20000
20224
|
const variables = this._variables;
|
|
20001
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
20225
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.UserSkillFolderDocument, "userSkillFolder", this._includes, variables);
|
|
20002
20226
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFolder");
|
|
20003
20227
|
const data = response.userSkillFolder;
|
|
20004
20228
|
const instance = new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -20010,7 +20234,7 @@ var UserSkillFolderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
20010
20234
|
watch(options) {
|
|
20011
20235
|
const variables = this._variables;
|
|
20012
20236
|
const includes = this._includes;
|
|
20013
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
20237
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.UserSkillFolderDocument, "userSkillFolder", includes, variables);
|
|
20014
20238
|
const raw = this._syncEngine.watch(
|
|
20015
20239
|
queryDoc,
|
|
20016
20240
|
mergedVars,
|
|
@@ -20047,7 +20271,7 @@ var UserSkillFoldersQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
20047
20271
|
this._variables = variables;
|
|
20048
20272
|
}
|
|
20049
20273
|
async fetch(options) {
|
|
20050
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
20274
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.UserSkillFoldersDocument, "userSkillFolders", this._includes, this._variables);
|
|
20051
20275
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFolders");
|
|
20052
20276
|
const data = response.userSkillFolders;
|
|
20053
20277
|
if (!Array.isArray(data)) return [];
|
|
@@ -20063,7 +20287,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
20063
20287
|
}
|
|
20064
20288
|
async fetch(options) {
|
|
20065
20289
|
const variables = this._variables;
|
|
20066
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
20290
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", this._includes, variables);
|
|
20067
20291
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "workspaceDeletionSchedule");
|
|
20068
20292
|
const data = response.workspaceDeletionSchedule;
|
|
20069
20293
|
if (!data) return void 0;
|
|
@@ -20076,7 +20300,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
20076
20300
|
watch(options) {
|
|
20077
20301
|
const variables = this._variables;
|
|
20078
20302
|
const includes = this._includes;
|
|
20079
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
20303
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkMMZOIZLF_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", includes, variables);
|
|
20080
20304
|
const raw = this._syncEngine.watch(
|
|
20081
20305
|
queryDoc,
|
|
20082
20306
|
mergedVars,
|
|
@@ -20108,7 +20332,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
20108
20332
|
};
|
|
20109
20333
|
var McpAuthUpdatesSubscription = class extends chunk342BFYZZ_cjs.Request {
|
|
20110
20334
|
async *subscribe(variables) {
|
|
20111
|
-
for await (const response of this._subscribe(
|
|
20335
|
+
for await (const response of this._subscribe(chunkMMZOIZLF_cjs.McpAuthUpdatesDocument, variables)) {
|
|
20112
20336
|
const data = response.mcpAuthUpdates;
|
|
20113
20337
|
yield new McpAuthUpdateModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
20114
20338
|
}
|
|
@@ -20116,7 +20340,7 @@ var McpAuthUpdatesSubscription = class extends chunk342BFYZZ_cjs.Request {
|
|
|
20116
20340
|
};
|
|
20117
20341
|
var TokenUsageUpdatesSubscription = class extends chunk342BFYZZ_cjs.Request {
|
|
20118
20342
|
async *subscribe(variables) {
|
|
20119
|
-
for await (const response of this._subscribe(
|
|
20343
|
+
for await (const response of this._subscribe(chunkMMZOIZLF_cjs.TokenUsageUpdatesDocument, variables)) {
|
|
20120
20344
|
const data = response.tokenUsageUpdates;
|
|
20121
20345
|
yield new UsageStatus(this._request, data, this._syncEngine, this._baseUrl);
|
|
20122
20346
|
}
|
|
@@ -20301,9 +20525,13 @@ var DvinaSdk = class extends chunk342BFYZZ_cjs.Request {
|
|
|
20301
20525
|
reanalyzeDocument(variables) {
|
|
20302
20526
|
return new ReanalyzeDocumentMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
20303
20527
|
}
|
|
20304
|
-
/** Mutation:
|
|
20305
|
-
|
|
20306
|
-
return new
|
|
20528
|
+
/** Mutation: refineAgentInstruction (scalar) */
|
|
20529
|
+
refineAgentInstruction(variables) {
|
|
20530
|
+
return new RefineAgentInstructionMutation(this._request, this._syncEngine).fetch(variables);
|
|
20531
|
+
}
|
|
20532
|
+
/** Mutation: refineSkillInstruction (scalar) */
|
|
20533
|
+
refineSkillInstruction(variables) {
|
|
20534
|
+
return new RefineSkillInstructionMutation(this._request, this._syncEngine).fetch(variables);
|
|
20307
20535
|
}
|
|
20308
20536
|
/** Mutation: refreshDatabaseSchema (scalar) */
|
|
20309
20537
|
refreshDatabaseSchema(variables) {
|
|
@@ -20962,7 +21190,8 @@ exports.QueryWithInsightIdQuery = QueryWithInsightIdQuery;
|
|
|
20962
21190
|
exports.QueryWithMessageIdQuery = QueryWithMessageIdQuery;
|
|
20963
21191
|
exports.ReanalyzeDocumentMutation = ReanalyzeDocumentMutation;
|
|
20964
21192
|
exports.ReasoningEventOutput = ReasoningEventOutput;
|
|
20965
|
-
exports.
|
|
21193
|
+
exports.RefineAgentInstructionMutation = RefineAgentInstructionMutation;
|
|
21194
|
+
exports.RefineSkillInstructionMutation = RefineSkillInstructionMutation;
|
|
20966
21195
|
exports.RefreshDatabaseSchemaMutation = RefreshDatabaseSchemaMutation;
|
|
20967
21196
|
exports.RefreshInsightMutation = RefreshInsightMutation;
|
|
20968
21197
|
exports.ReinterpretSourceMutation = ReinterpretSourceMutation;
|
|
@@ -21058,5 +21287,5 @@ exports.getOrCreateDatabase = getOrCreateDatabase;
|
|
|
21058
21287
|
exports.reconstructConnectionNodes = reconstructConnectionNodes;
|
|
21059
21288
|
exports.reconstructEntity = reconstructEntity;
|
|
21060
21289
|
exports.uploadFile = uploadFile;
|
|
21061
|
-
//# sourceMappingURL=chunk-
|
|
21062
|
-
//# sourceMappingURL=chunk-
|
|
21290
|
+
//# sourceMappingURL=chunk-QVVRL7UD.cjs.map
|
|
21291
|
+
//# sourceMappingURL=chunk-QVVRL7UD.cjs.map
|