@dvina/sdk 4.0.105 → 4.0.106
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-7IV3BIIO.cjs → _generated_documents-BIPMKLWN.cjs} +512 -500
- package/dist/{_generated_documents-7IV3BIIO.cjs.map → _generated_documents-BIPMKLWN.cjs.map} +1 -1
- package/dist/_generated_documents-L5HBBN2K.js +4 -0
- package/dist/{_generated_documents-4D2QSLVK.js.map → _generated_documents-L5HBBN2K.js.map} +1 -1
- package/dist/adapters/angular/index.cjs +4 -4
- package/dist/adapters/angular/index.js +2 -2
- package/dist/{chunk-E45DZR4J.cjs → chunk-5IUEWNZ6.cjs} +25 -18
- package/dist/chunk-5IUEWNZ6.cjs.map +1 -0
- package/dist/{chunk-Q66BI4MQ.cjs → chunk-KH5LMKKK.cjs} +620 -484
- package/dist/chunk-KH5LMKKK.cjs.map +1 -0
- package/dist/{chunk-PJ34OU4B.js → chunk-V26674F2.js} +138 -5
- package/dist/chunk-V26674F2.js.map +1 -0
- package/dist/{chunk-MCS45C4J.js → chunk-YWW3KUXV.js} +23 -19
- package/dist/chunk-YWW3KUXV.js.map +1 -0
- package/dist/index.cjs +387 -375
- package/dist/index.d.cts +58 -1
- package/dist/index.d.ts +58 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/_generated_documents-4D2QSLVK.js +0 -4
- package/dist/chunk-E45DZR4J.cjs.map +0 -1
- package/dist/chunk-MCS45C4J.js.map +0 -1
- package/dist/chunk-PJ34OU4B.js.map +0 -1
- package/dist/chunk-Q66BI4MQ.cjs.map +0 -1
|
@@ -4,7 +4,7 @@ var chunk342BFYZZ_cjs = require('./chunk-342BFYZZ.cjs');
|
|
|
4
4
|
var chunkUELAE75E_cjs = require('./chunk-UELAE75E.cjs');
|
|
5
5
|
var chunkBL3GFOZR_cjs = require('./chunk-BL3GFOZR.cjs');
|
|
6
6
|
var chunkKV5SP7RP_cjs = require('./chunk-KV5SP7RP.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunk5IUEWNZ6_cjs = require('./chunk-5IUEWNZ6.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
|
|
@@ -9586,7 +9586,7 @@ function createLazySyncEngine(httpTransport, sseUrl, syncPolicyUrl, getToken, ge
|
|
|
9586
9586
|
var DEFAULT_UPLOAD_CONTENT_TYPE = "application/octet-stream";
|
|
9587
9587
|
var AZURE_BLOCK_BLOB_TYPE = "BlockBlob";
|
|
9588
9588
|
async function uploadFile(request, getToken, file, name, options) {
|
|
9589
|
-
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-
|
|
9589
|
+
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-BIPMKLWN.cjs');
|
|
9590
9590
|
const key = `upload_${Date.now()}`;
|
|
9591
9591
|
const response = await request(
|
|
9592
9592
|
GenerateUploadUriDocument2,
|
|
@@ -11035,6 +11035,7 @@ var Insight = class extends DvinaModel {
|
|
|
11035
11035
|
pivotConfig;
|
|
11036
11036
|
presentation;
|
|
11037
11037
|
query;
|
|
11038
|
+
thumbnailFileId;
|
|
11038
11039
|
updatedAt;
|
|
11039
11040
|
_chat;
|
|
11040
11041
|
constructor(request, data, syncEngine, baseUrl) {
|
|
@@ -11047,6 +11048,7 @@ var Insight = class extends DvinaModel {
|
|
|
11047
11048
|
this.pivotConfig = data.pivotConfig ?? void 0;
|
|
11048
11049
|
this.presentation = data.presentation;
|
|
11049
11050
|
this.query = data.query;
|
|
11051
|
+
this.thumbnailFileId = data.thumbnailFileId ?? void 0;
|
|
11050
11052
|
this.updatedAt = new Date(data.updatedAt);
|
|
11051
11053
|
this._chat = data.chat ?? void 0;
|
|
11052
11054
|
}
|
|
@@ -11066,6 +11068,10 @@ var Insight = class extends DvinaModel {
|
|
|
11066
11068
|
reports(variables) {
|
|
11067
11069
|
return new Insight_ReportsQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
|
|
11068
11070
|
}
|
|
11071
|
+
/** Query the thumbnailFile relation for this Insight. Call .fetch() or .watch() to execute. */
|
|
11072
|
+
thumbnailFile(variables) {
|
|
11073
|
+
return new Insight_ThumbnailFileQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
|
|
11074
|
+
}
|
|
11069
11075
|
};
|
|
11070
11076
|
var Integration = class extends DvinaModel {
|
|
11071
11077
|
connectedAt;
|
|
@@ -12103,7 +12109,7 @@ var AgentSubBuilder = class {
|
|
|
12103
12109
|
_includes = [];
|
|
12104
12110
|
/** Include chats in the parent query. */
|
|
12105
12111
|
chats(variables, builder) {
|
|
12106
|
-
const info = extractIncludeInfo(
|
|
12112
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
12107
12113
|
let children;
|
|
12108
12114
|
if (builder) {
|
|
12109
12115
|
const sub = new ChatSubBuilder();
|
|
@@ -12112,7 +12118,7 @@ var AgentSubBuilder = class {
|
|
|
12112
12118
|
}
|
|
12113
12119
|
this._includes.push({
|
|
12114
12120
|
fieldName: "chats",
|
|
12115
|
-
fragmentDoc:
|
|
12121
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatConnectionFragmentDoc,
|
|
12116
12122
|
variables,
|
|
12117
12123
|
isConnection: true,
|
|
12118
12124
|
isList: false,
|
|
@@ -12134,7 +12140,7 @@ var ArtifactSubBuilder = class {
|
|
|
12134
12140
|
_includes = [];
|
|
12135
12141
|
/** Include chat in the parent query. */
|
|
12136
12142
|
chat(variables, builder) {
|
|
12137
|
-
const info = extractIncludeInfo(
|
|
12143
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
12138
12144
|
let children;
|
|
12139
12145
|
if (builder) {
|
|
12140
12146
|
const sub = new ChatSubBuilder();
|
|
@@ -12143,7 +12149,7 @@ var ArtifactSubBuilder = class {
|
|
|
12143
12149
|
}
|
|
12144
12150
|
this._includes.push({
|
|
12145
12151
|
fieldName: "chat",
|
|
12146
|
-
fragmentDoc:
|
|
12152
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
|
|
12147
12153
|
variables,
|
|
12148
12154
|
isConnection: false,
|
|
12149
12155
|
isList: false,
|
|
@@ -12160,10 +12166,10 @@ var ArtifactSubBuilder = class {
|
|
|
12160
12166
|
}
|
|
12161
12167
|
/** Include file in the parent query. */
|
|
12162
12168
|
file(variables) {
|
|
12163
|
-
const info = extractIncludeInfo(
|
|
12169
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
12164
12170
|
this._includes.push({
|
|
12165
12171
|
fieldName: "file",
|
|
12166
|
-
fragmentDoc:
|
|
12172
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
|
|
12167
12173
|
variables,
|
|
12168
12174
|
isConnection: false,
|
|
12169
12175
|
isList: false,
|
|
@@ -12179,7 +12185,7 @@ var ArtifactSubBuilder = class {
|
|
|
12179
12185
|
}
|
|
12180
12186
|
/** Include message in the parent query. */
|
|
12181
12187
|
message(variables, builder) {
|
|
12182
|
-
const info = extractIncludeInfo(
|
|
12188
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
12183
12189
|
let children;
|
|
12184
12190
|
if (builder) {
|
|
12185
12191
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -12188,7 +12194,7 @@ var ArtifactSubBuilder = class {
|
|
|
12188
12194
|
}
|
|
12189
12195
|
this._includes.push({
|
|
12190
12196
|
fieldName: "message",
|
|
12191
|
-
fragmentDoc:
|
|
12197
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatMessageFragmentDoc,
|
|
12192
12198
|
variables,
|
|
12193
12199
|
isConnection: false,
|
|
12194
12200
|
isList: false,
|
|
@@ -12209,7 +12215,7 @@ var ChatSubBuilder = class {
|
|
|
12209
12215
|
_includes = [];
|
|
12210
12216
|
/** Include agents in the parent query. */
|
|
12211
12217
|
agents(variables, builder) {
|
|
12212
|
-
const info = extractIncludeInfo(
|
|
12218
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
12213
12219
|
let children;
|
|
12214
12220
|
if (builder) {
|
|
12215
12221
|
const sub = new AgentSubBuilder();
|
|
@@ -12218,7 +12224,7 @@ var ChatSubBuilder = class {
|
|
|
12218
12224
|
}
|
|
12219
12225
|
this._includes.push({
|
|
12220
12226
|
fieldName: "agents",
|
|
12221
|
-
fragmentDoc:
|
|
12227
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.AgentConnectionFragmentDoc,
|
|
12222
12228
|
variables,
|
|
12223
12229
|
isConnection: true,
|
|
12224
12230
|
isList: false,
|
|
@@ -12236,7 +12242,7 @@ var ChatSubBuilder = class {
|
|
|
12236
12242
|
}
|
|
12237
12243
|
/** Include artifacts in the parent query. */
|
|
12238
12244
|
artifacts(variables, builder) {
|
|
12239
|
-
const info = extractIncludeInfo(
|
|
12245
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
12240
12246
|
let children;
|
|
12241
12247
|
if (builder) {
|
|
12242
12248
|
const sub = new ArtifactSubBuilder();
|
|
@@ -12245,7 +12251,7 @@ var ChatSubBuilder = class {
|
|
|
12245
12251
|
}
|
|
12246
12252
|
this._includes.push({
|
|
12247
12253
|
fieldName: "artifacts",
|
|
12248
|
-
fragmentDoc:
|
|
12254
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ArtifactConnectionFragmentDoc,
|
|
12249
12255
|
variables,
|
|
12250
12256
|
isConnection: true,
|
|
12251
12257
|
isList: false,
|
|
@@ -12263,7 +12269,7 @@ var ChatSubBuilder = class {
|
|
|
12263
12269
|
}
|
|
12264
12270
|
/** Include insight in the parent query. */
|
|
12265
12271
|
insight(variables, builder) {
|
|
12266
|
-
const info = extractIncludeInfo(
|
|
12272
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
12267
12273
|
let children;
|
|
12268
12274
|
if (builder) {
|
|
12269
12275
|
const sub = new InsightSubBuilder();
|
|
@@ -12272,7 +12278,7 @@ var ChatSubBuilder = class {
|
|
|
12272
12278
|
}
|
|
12273
12279
|
this._includes.push({
|
|
12274
12280
|
fieldName: "insight",
|
|
12275
|
-
fragmentDoc:
|
|
12281
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.InsightFragmentDoc,
|
|
12276
12282
|
variables,
|
|
12277
12283
|
isConnection: false,
|
|
12278
12284
|
isList: false,
|
|
@@ -12289,7 +12295,7 @@ var ChatSubBuilder = class {
|
|
|
12289
12295
|
}
|
|
12290
12296
|
/** Include messages in the parent query. */
|
|
12291
12297
|
messages(variables, builder) {
|
|
12292
|
-
const info = extractIncludeInfo(
|
|
12298
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
12293
12299
|
let children;
|
|
12294
12300
|
if (builder) {
|
|
12295
12301
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -12298,7 +12304,7 @@ var ChatSubBuilder = class {
|
|
|
12298
12304
|
}
|
|
12299
12305
|
this._includes.push({
|
|
12300
12306
|
fieldName: "messages",
|
|
12301
|
-
fragmentDoc:
|
|
12307
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatMessageConnectionFragmentDoc,
|
|
12302
12308
|
variables,
|
|
12303
12309
|
isConnection: true,
|
|
12304
12310
|
isList: false,
|
|
@@ -12320,7 +12326,7 @@ var ChatMessageSubBuilder = class {
|
|
|
12320
12326
|
_includes = [];
|
|
12321
12327
|
/** Include artifacts in the parent query. */
|
|
12322
12328
|
artifacts(variables, builder) {
|
|
12323
|
-
const info = extractIncludeInfo(
|
|
12329
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
12324
12330
|
let children;
|
|
12325
12331
|
if (builder) {
|
|
12326
12332
|
const sub = new ArtifactSubBuilder();
|
|
@@ -12329,7 +12335,7 @@ var ChatMessageSubBuilder = class {
|
|
|
12329
12335
|
}
|
|
12330
12336
|
this._includes.push({
|
|
12331
12337
|
fieldName: "artifacts",
|
|
12332
|
-
fragmentDoc:
|
|
12338
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ArtifactConnectionFragmentDoc,
|
|
12333
12339
|
variables,
|
|
12334
12340
|
isConnection: true,
|
|
12335
12341
|
isList: false,
|
|
@@ -12347,7 +12353,7 @@ var ChatMessageSubBuilder = class {
|
|
|
12347
12353
|
}
|
|
12348
12354
|
/** Include chat in the parent query. */
|
|
12349
12355
|
chat(variables, builder) {
|
|
12350
|
-
const info = extractIncludeInfo(
|
|
12356
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
12351
12357
|
let children;
|
|
12352
12358
|
if (builder) {
|
|
12353
12359
|
const sub = new ChatSubBuilder();
|
|
@@ -12356,7 +12362,7 @@ var ChatMessageSubBuilder = class {
|
|
|
12356
12362
|
}
|
|
12357
12363
|
this._includes.push({
|
|
12358
12364
|
fieldName: "chat",
|
|
12359
|
-
fragmentDoc:
|
|
12365
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
|
|
12360
12366
|
variables,
|
|
12361
12367
|
isConnection: false,
|
|
12362
12368
|
isList: false,
|
|
@@ -12373,10 +12379,10 @@ var ChatMessageSubBuilder = class {
|
|
|
12373
12379
|
}
|
|
12374
12380
|
/** Include contents in the parent query. */
|
|
12375
12381
|
contents(variables) {
|
|
12376
|
-
const info = extractIncludeInfo(
|
|
12382
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
12377
12383
|
this._includes.push({
|
|
12378
12384
|
fieldName: "contents",
|
|
12379
|
-
fragmentDoc:
|
|
12385
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ContentBlockFragmentDoc,
|
|
12380
12386
|
variables,
|
|
12381
12387
|
isConnection: false,
|
|
12382
12388
|
isList: true,
|
|
@@ -12392,10 +12398,10 @@ var ChatMessageSubBuilder = class {
|
|
|
12392
12398
|
}
|
|
12393
12399
|
/** Include feedback in the parent query. */
|
|
12394
12400
|
feedback(variables) {
|
|
12395
|
-
const info = extractIncludeInfo(
|
|
12401
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
12396
12402
|
this._includes.push({
|
|
12397
12403
|
fieldName: "feedback",
|
|
12398
|
-
fragmentDoc:
|
|
12404
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FeedbackFragmentDoc,
|
|
12399
12405
|
variables,
|
|
12400
12406
|
isConnection: false,
|
|
12401
12407
|
isList: false,
|
|
@@ -12415,10 +12421,10 @@ var DatabaseSubBuilder = class {
|
|
|
12415
12421
|
_includes = [];
|
|
12416
12422
|
/** Include engine in the parent query. */
|
|
12417
12423
|
engine(variables) {
|
|
12418
|
-
const info = extractIncludeInfo(
|
|
12424
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
12419
12425
|
this._includes.push({
|
|
12420
12426
|
fieldName: "engine",
|
|
12421
|
-
fragmentDoc:
|
|
12427
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseEngineFragmentDoc,
|
|
12422
12428
|
variables,
|
|
12423
12429
|
isConnection: false,
|
|
12424
12430
|
isList: false,
|
|
@@ -12434,7 +12440,7 @@ var DatabaseSubBuilder = class {
|
|
|
12434
12440
|
}
|
|
12435
12441
|
/** Include tables in the parent query. */
|
|
12436
12442
|
tables(variables, builder) {
|
|
12437
|
-
const info = extractIncludeInfo(
|
|
12443
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
12438
12444
|
let children;
|
|
12439
12445
|
if (builder) {
|
|
12440
12446
|
const sub = new TableSubBuilder();
|
|
@@ -12443,7 +12449,7 @@ var DatabaseSubBuilder = class {
|
|
|
12443
12449
|
}
|
|
12444
12450
|
this._includes.push({
|
|
12445
12451
|
fieldName: "tables",
|
|
12446
|
-
fragmentDoc:
|
|
12452
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.TableConnectionFragmentDoc,
|
|
12447
12453
|
variables,
|
|
12448
12454
|
isConnection: true,
|
|
12449
12455
|
isList: false,
|
|
@@ -12465,10 +12471,10 @@ var DatabaseCatalogSubBuilder = class {
|
|
|
12465
12471
|
_includes = [];
|
|
12466
12472
|
/** Include engine in the parent query. */
|
|
12467
12473
|
engine(variables) {
|
|
12468
|
-
const info = extractIncludeInfo(
|
|
12474
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
12469
12475
|
this._includes.push({
|
|
12470
12476
|
fieldName: "engine",
|
|
12471
|
-
fragmentDoc:
|
|
12477
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseEngineFragmentDoc,
|
|
12472
12478
|
variables,
|
|
12473
12479
|
isConnection: false,
|
|
12474
12480
|
isList: false,
|
|
@@ -12488,10 +12494,10 @@ var DocumentSubBuilder = class {
|
|
|
12488
12494
|
_includes = [];
|
|
12489
12495
|
/** Include contents in the parent query. */
|
|
12490
12496
|
contents(variables) {
|
|
12491
|
-
const info = extractIncludeInfo(
|
|
12497
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
12492
12498
|
this._includes.push({
|
|
12493
12499
|
fieldName: "contents",
|
|
12494
|
-
fragmentDoc:
|
|
12500
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DocumentContentFragmentDoc,
|
|
12495
12501
|
variables,
|
|
12496
12502
|
isConnection: false,
|
|
12497
12503
|
isList: true,
|
|
@@ -12507,10 +12513,10 @@ var DocumentSubBuilder = class {
|
|
|
12507
12513
|
}
|
|
12508
12514
|
/** Include file in the parent query. */
|
|
12509
12515
|
file(variables) {
|
|
12510
|
-
const info = extractIncludeInfo(
|
|
12516
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_FileDocument, "file", ["id"]);
|
|
12511
12517
|
this._includes.push({
|
|
12512
12518
|
fieldName: "file",
|
|
12513
|
-
fragmentDoc:
|
|
12519
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
|
|
12514
12520
|
variables,
|
|
12515
12521
|
isConnection: false,
|
|
12516
12522
|
isList: false,
|
|
@@ -12526,10 +12532,10 @@ var DocumentSubBuilder = class {
|
|
|
12526
12532
|
}
|
|
12527
12533
|
/** Include format in the parent query. */
|
|
12528
12534
|
format(variables) {
|
|
12529
|
-
const info = extractIncludeInfo(
|
|
12535
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_FormatDocument, "format", ["id"]);
|
|
12530
12536
|
this._includes.push({
|
|
12531
12537
|
fieldName: "format",
|
|
12532
|
-
fragmentDoc:
|
|
12538
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFormatFragmentDoc,
|
|
12533
12539
|
variables,
|
|
12534
12540
|
isConnection: false,
|
|
12535
12541
|
isList: false,
|
|
@@ -12545,7 +12551,7 @@ var DocumentSubBuilder = class {
|
|
|
12545
12551
|
}
|
|
12546
12552
|
/** Include tables in the parent query. */
|
|
12547
12553
|
tables(variables, builder) {
|
|
12548
|
-
const info = extractIncludeInfo(
|
|
12554
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
12549
12555
|
let children;
|
|
12550
12556
|
if (builder) {
|
|
12551
12557
|
const sub = new TableSubBuilder();
|
|
@@ -12554,7 +12560,7 @@ var DocumentSubBuilder = class {
|
|
|
12554
12560
|
}
|
|
12555
12561
|
this._includes.push({
|
|
12556
12562
|
fieldName: "tables",
|
|
12557
|
-
fragmentDoc:
|
|
12563
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.TableConnectionFragmentDoc,
|
|
12558
12564
|
variables,
|
|
12559
12565
|
isConnection: true,
|
|
12560
12566
|
isList: false,
|
|
@@ -12576,10 +12582,10 @@ var DocumentCatalogSubBuilder = class {
|
|
|
12576
12582
|
_includes = [];
|
|
12577
12583
|
/** Include format in the parent query. */
|
|
12578
12584
|
format(variables) {
|
|
12579
|
-
const info = extractIncludeInfo(
|
|
12585
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
12580
12586
|
this._includes.push({
|
|
12581
12587
|
fieldName: "format",
|
|
12582
|
-
fragmentDoc:
|
|
12588
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFormatFragmentDoc,
|
|
12583
12589
|
variables,
|
|
12584
12590
|
isConnection: false,
|
|
12585
12591
|
isList: false,
|
|
@@ -12599,10 +12605,10 @@ var FeedItemSubBuilder = class {
|
|
|
12599
12605
|
_includes = [];
|
|
12600
12606
|
/** Include action in the parent query. */
|
|
12601
12607
|
action(variables) {
|
|
12602
|
-
const info = extractIncludeInfo(
|
|
12608
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.FeedItem_ActionDocument, "action", ["id"]);
|
|
12603
12609
|
this._includes.push({
|
|
12604
12610
|
fieldName: "action",
|
|
12605
|
-
fragmentDoc:
|
|
12611
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FeedSendMessageActionFragmentDoc,
|
|
12606
12612
|
variables,
|
|
12607
12613
|
isConnection: false,
|
|
12608
12614
|
isList: false,
|
|
@@ -12618,10 +12624,10 @@ var FeedItemSubBuilder = class {
|
|
|
12618
12624
|
}
|
|
12619
12625
|
/** Include data in the parent query. */
|
|
12620
12626
|
data(variables) {
|
|
12621
|
-
const info = extractIncludeInfo(
|
|
12627
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.FeedItem_DataDocument, "data", ["id"]);
|
|
12622
12628
|
this._includes.push({
|
|
12623
12629
|
fieldName: "data",
|
|
12624
|
-
fragmentDoc:
|
|
12630
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FeedArtifactDataFragmentDoc,
|
|
12625
12631
|
variables,
|
|
12626
12632
|
isConnection: false,
|
|
12627
12633
|
isList: true,
|
|
@@ -12641,7 +12647,7 @@ var InsightSubBuilder = class {
|
|
|
12641
12647
|
_includes = [];
|
|
12642
12648
|
/** Include chat in the parent query. */
|
|
12643
12649
|
chat(variables, builder) {
|
|
12644
|
-
const info = extractIncludeInfo(
|
|
12650
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
12645
12651
|
let children;
|
|
12646
12652
|
if (builder) {
|
|
12647
12653
|
const sub = new ChatSubBuilder();
|
|
@@ -12650,7 +12656,7 @@ var InsightSubBuilder = class {
|
|
|
12650
12656
|
}
|
|
12651
12657
|
this._includes.push({
|
|
12652
12658
|
fieldName: "chat",
|
|
12653
|
-
fragmentDoc:
|
|
12659
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
|
|
12654
12660
|
variables,
|
|
12655
12661
|
isConnection: false,
|
|
12656
12662
|
isList: false,
|
|
@@ -12667,10 +12673,10 @@ var InsightSubBuilder = class {
|
|
|
12667
12673
|
}
|
|
12668
12674
|
/** Include reportMembers in the parent query. */
|
|
12669
12675
|
reportMembers(variables) {
|
|
12670
|
-
const info = extractIncludeInfo(
|
|
12676
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
12671
12677
|
this._includes.push({
|
|
12672
12678
|
fieldName: "reportMembers",
|
|
12673
|
-
fragmentDoc:
|
|
12679
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ReportMemberFragmentDoc,
|
|
12674
12680
|
variables,
|
|
12675
12681
|
isConnection: false,
|
|
12676
12682
|
isList: true,
|
|
@@ -12686,7 +12692,7 @@ var InsightSubBuilder = class {
|
|
|
12686
12692
|
}
|
|
12687
12693
|
/** Include reports in the parent query. */
|
|
12688
12694
|
reports(variables, builder) {
|
|
12689
|
-
const info = extractIncludeInfo(
|
|
12695
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
12690
12696
|
let children;
|
|
12691
12697
|
if (builder) {
|
|
12692
12698
|
const sub = new ReportSubBuilder();
|
|
@@ -12695,7 +12701,7 @@ var InsightSubBuilder = class {
|
|
|
12695
12701
|
}
|
|
12696
12702
|
this._includes.push({
|
|
12697
12703
|
fieldName: "reports",
|
|
12698
|
-
fragmentDoc:
|
|
12704
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ReportConnectionFragmentDoc,
|
|
12699
12705
|
variables,
|
|
12700
12706
|
isConnection: true,
|
|
12701
12707
|
isList: false,
|
|
@@ -12711,16 +12717,35 @@ var InsightSubBuilder = class {
|
|
|
12711
12717
|
});
|
|
12712
12718
|
return this;
|
|
12713
12719
|
}
|
|
12720
|
+
/** Include thumbnailFile in the parent query. */
|
|
12721
|
+
thumbnailFile(variables) {
|
|
12722
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
|
|
12723
|
+
this._includes.push({
|
|
12724
|
+
fieldName: "thumbnailFile",
|
|
12725
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
|
|
12726
|
+
variables,
|
|
12727
|
+
isConnection: false,
|
|
12728
|
+
isList: false,
|
|
12729
|
+
variableDefinitions: info.variableDefinitions,
|
|
12730
|
+
fieldArguments: info.fieldArguments,
|
|
12731
|
+
syncMetadata: {
|
|
12732
|
+
entityType: "files",
|
|
12733
|
+
requiredFields: ["createdAt", "id", "path", "updatedAt"]
|
|
12734
|
+
},
|
|
12735
|
+
modelFactory: (req, data, se, bu) => new File(req, data, se, bu)
|
|
12736
|
+
});
|
|
12737
|
+
return this;
|
|
12738
|
+
}
|
|
12714
12739
|
};
|
|
12715
12740
|
var IntegrationSubBuilder = class {
|
|
12716
12741
|
/** @internal */
|
|
12717
12742
|
_includes = [];
|
|
12718
12743
|
/** Include provider in the parent query. */
|
|
12719
12744
|
provider(variables) {
|
|
12720
|
-
const info = extractIncludeInfo(
|
|
12745
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
12721
12746
|
this._includes.push({
|
|
12722
12747
|
fieldName: "provider",
|
|
12723
|
-
fragmentDoc:
|
|
12748
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationProviderFragmentDoc,
|
|
12724
12749
|
variables,
|
|
12725
12750
|
isConnection: false,
|
|
12726
12751
|
isList: false,
|
|
@@ -12740,10 +12765,10 @@ var IntegrationCatalogSubBuilder = class {
|
|
|
12740
12765
|
_includes = [];
|
|
12741
12766
|
/** Include provider in the parent query. */
|
|
12742
12767
|
provider(variables) {
|
|
12743
|
-
const info = extractIncludeInfo(
|
|
12768
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
12744
12769
|
this._includes.push({
|
|
12745
12770
|
fieldName: "provider",
|
|
12746
|
-
fragmentDoc:
|
|
12771
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationProviderFragmentDoc,
|
|
12747
12772
|
variables,
|
|
12748
12773
|
isConnection: false,
|
|
12749
12774
|
isList: false,
|
|
@@ -12763,7 +12788,7 @@ var PulseEventSubBuilder = class {
|
|
|
12763
12788
|
_includes = [];
|
|
12764
12789
|
/** Include integration in the parent query. */
|
|
12765
12790
|
integration(variables, builder) {
|
|
12766
|
-
const info = extractIncludeInfo(
|
|
12791
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
12767
12792
|
let children;
|
|
12768
12793
|
if (builder) {
|
|
12769
12794
|
const sub = new IntegrationSubBuilder();
|
|
@@ -12772,7 +12797,7 @@ var PulseEventSubBuilder = class {
|
|
|
12772
12797
|
}
|
|
12773
12798
|
this._includes.push({
|
|
12774
12799
|
fieldName: "integration",
|
|
12775
|
-
fragmentDoc:
|
|
12800
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationFragmentDoc,
|
|
12776
12801
|
variables,
|
|
12777
12802
|
isConnection: false,
|
|
12778
12803
|
isList: false,
|
|
@@ -12793,7 +12818,7 @@ var ReportSubBuilder = class {
|
|
|
12793
12818
|
_includes = [];
|
|
12794
12819
|
/** Include insights in the parent query. */
|
|
12795
12820
|
insights(variables, builder) {
|
|
12796
|
-
const info = extractIncludeInfo(
|
|
12821
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
12797
12822
|
let children;
|
|
12798
12823
|
if (builder) {
|
|
12799
12824
|
const sub = new InsightSubBuilder();
|
|
@@ -12802,7 +12827,7 @@ var ReportSubBuilder = class {
|
|
|
12802
12827
|
}
|
|
12803
12828
|
this._includes.push({
|
|
12804
12829
|
fieldName: "insights",
|
|
12805
|
-
fragmentDoc:
|
|
12830
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.InsightConnectionFragmentDoc,
|
|
12806
12831
|
variables,
|
|
12807
12832
|
isConnection: true,
|
|
12808
12833
|
isList: false,
|
|
@@ -12820,10 +12845,10 @@ var ReportSubBuilder = class {
|
|
|
12820
12845
|
}
|
|
12821
12846
|
/** Include layout in the parent query. */
|
|
12822
12847
|
layout(variables) {
|
|
12823
|
-
const info = extractIncludeInfo(
|
|
12848
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
12824
12849
|
this._includes.push({
|
|
12825
12850
|
fieldName: "layout",
|
|
12826
|
-
fragmentDoc:
|
|
12851
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ReportMemberFragmentDoc,
|
|
12827
12852
|
variables,
|
|
12828
12853
|
isConnection: false,
|
|
12829
12854
|
isList: true,
|
|
@@ -12843,7 +12868,7 @@ var TableSubBuilder = class {
|
|
|
12843
12868
|
_includes = [];
|
|
12844
12869
|
/** Include database in the parent query. */
|
|
12845
12870
|
database(variables, builder) {
|
|
12846
|
-
const info = extractIncludeInfo(
|
|
12871
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
12847
12872
|
let children;
|
|
12848
12873
|
if (builder) {
|
|
12849
12874
|
const sub = new DatabaseSubBuilder();
|
|
@@ -12852,7 +12877,7 @@ var TableSubBuilder = class {
|
|
|
12852
12877
|
}
|
|
12853
12878
|
this._includes.push({
|
|
12854
12879
|
fieldName: "database",
|
|
12855
|
-
fragmentDoc:
|
|
12880
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseFragmentDoc,
|
|
12856
12881
|
variables,
|
|
12857
12882
|
isConnection: false,
|
|
12858
12883
|
isList: false,
|
|
@@ -12869,7 +12894,7 @@ var TableSubBuilder = class {
|
|
|
12869
12894
|
}
|
|
12870
12895
|
/** Include document in the parent query. */
|
|
12871
12896
|
document(variables, builder) {
|
|
12872
|
-
const info = extractIncludeInfo(
|
|
12897
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
12873
12898
|
let children;
|
|
12874
12899
|
if (builder) {
|
|
12875
12900
|
const sub = new DocumentSubBuilder();
|
|
@@ -12878,7 +12903,7 @@ var TableSubBuilder = class {
|
|
|
12878
12903
|
}
|
|
12879
12904
|
this._includes.push({
|
|
12880
12905
|
fieldName: "document",
|
|
12881
|
-
fragmentDoc:
|
|
12906
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFragmentDoc,
|
|
12882
12907
|
variables,
|
|
12883
12908
|
isConnection: false,
|
|
12884
12909
|
isList: false,
|
|
@@ -12895,10 +12920,10 @@ var TableSubBuilder = class {
|
|
|
12895
12920
|
}
|
|
12896
12921
|
/** Include fromRelations in the parent query. */
|
|
12897
12922
|
fromRelations(variables) {
|
|
12898
|
-
const info = extractIncludeInfo(
|
|
12923
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
12899
12924
|
this._includes.push({
|
|
12900
12925
|
fieldName: "fromRelations",
|
|
12901
|
-
fragmentDoc:
|
|
12926
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.RelationFragmentDoc,
|
|
12902
12927
|
variables,
|
|
12903
12928
|
isConnection: false,
|
|
12904
12929
|
isList: true,
|
|
@@ -12914,10 +12939,10 @@ var TableSubBuilder = class {
|
|
|
12914
12939
|
}
|
|
12915
12940
|
/** Include toRelations in the parent query. */
|
|
12916
12941
|
toRelations(variables) {
|
|
12917
|
-
const info = extractIncludeInfo(
|
|
12942
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
12918
12943
|
this._includes.push({
|
|
12919
12944
|
fieldName: "toRelations",
|
|
12920
|
-
fragmentDoc:
|
|
12945
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.RelationFragmentDoc,
|
|
12921
12946
|
variables,
|
|
12922
12947
|
isConnection: false,
|
|
12923
12948
|
isList: true,
|
|
@@ -12934,414 +12959,420 @@ var TableSubBuilder = class {
|
|
|
12934
12959
|
};
|
|
12935
12960
|
var AddInsightToReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
12936
12961
|
async fetch(variables, options) {
|
|
12937
|
-
const response = await this._syncEngine.mutate(
|
|
12962
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.AddInsightToReportDocument, variables, MUTATION_CACHE_RULES["addInsightToReport"]);
|
|
12938
12963
|
const data = response.addInsightToReport;
|
|
12939
12964
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
12940
12965
|
}
|
|
12941
12966
|
};
|
|
12942
12967
|
var CancelOauthFlowMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
12943
12968
|
async fetch(variables) {
|
|
12944
|
-
const response = await this._syncEngine.mutate(
|
|
12969
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CancelOauthFlowDocument, variables, MUTATION_CACHE_RULES["cancelOauthFlow"]);
|
|
12945
12970
|
return response.cancelOauthFlow;
|
|
12946
12971
|
}
|
|
12947
12972
|
};
|
|
12948
12973
|
var CancelWorkspaceDeletionMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
12949
12974
|
async fetch(variables) {
|
|
12950
|
-
const response = await this._syncEngine.mutate(
|
|
12975
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CancelWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["cancelWorkspaceDeletion"]);
|
|
12951
12976
|
return response.cancelWorkspaceDeletion;
|
|
12952
12977
|
}
|
|
12953
12978
|
};
|
|
12954
12979
|
var ConnectIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
12955
12980
|
async fetch(variables, options) {
|
|
12956
|
-
const response = await this._syncEngine.mutate(
|
|
12981
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ConnectIntegrationDocument, variables, MUTATION_CACHE_RULES["connectIntegration"]);
|
|
12957
12982
|
const data = response.connectIntegration;
|
|
12958
12983
|
return new CreateIntegrationOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
12959
12984
|
}
|
|
12960
12985
|
};
|
|
12961
12986
|
var ConsumePulseEventsMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
12962
12987
|
async fetch(variables) {
|
|
12963
|
-
const response = await this._syncEngine.mutate(
|
|
12988
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ConsumePulseEventsDocument, variables, MUTATION_CACHE_RULES["consumePulseEvents"]);
|
|
12964
12989
|
return response.consumePulseEvents;
|
|
12965
12990
|
}
|
|
12966
12991
|
};
|
|
12967
12992
|
var ContinueImportedChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
12968
12993
|
async fetch(variables) {
|
|
12969
|
-
const response = await this._syncEngine.mutate(
|
|
12994
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ContinueImportedChatDocument, variables, MUTATION_CACHE_RULES["continueImportedChat"]);
|
|
12970
12995
|
return response.continueImportedChat;
|
|
12971
12996
|
}
|
|
12972
12997
|
};
|
|
12973
12998
|
var ContinueInterpretationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
12974
12999
|
async fetch(variables) {
|
|
12975
|
-
const response = await this._syncEngine.mutate(
|
|
13000
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ContinueInterpretationDocument, variables, MUTATION_CACHE_RULES["continueInterpretation"]);
|
|
12976
13001
|
return response.continueInterpretation;
|
|
12977
13002
|
}
|
|
12978
13003
|
};
|
|
12979
13004
|
var CreateAgentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
12980
13005
|
async fetch(variables, options) {
|
|
12981
|
-
const response = await this._syncEngine.mutate(
|
|
13006
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateAgentDocument, variables, MUTATION_CACHE_RULES["createAgent"]);
|
|
12982
13007
|
const data = response.createAgent;
|
|
12983
13008
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12984
13009
|
}
|
|
12985
13010
|
};
|
|
12986
13011
|
var CreateChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
12987
13012
|
async fetch(variables, options) {
|
|
12988
|
-
const response = await this._syncEngine.mutate(
|
|
13013
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateChatDocument, variables, MUTATION_CACHE_RULES["createChat"]);
|
|
12989
13014
|
const data = response.createChat;
|
|
12990
13015
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
12991
13016
|
}
|
|
12992
13017
|
};
|
|
12993
13018
|
var CreateDatabaseMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
12994
13019
|
async fetch(variables, options) {
|
|
12995
|
-
const response = await this._syncEngine.mutate(
|
|
13020
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateDatabaseDocument, variables, MUTATION_CACHE_RULES["createDatabase"]);
|
|
12996
13021
|
const data = response.createDatabase;
|
|
12997
13022
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
12998
13023
|
}
|
|
12999
13024
|
};
|
|
13000
13025
|
var CreateDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13001
13026
|
async fetch(variables, options) {
|
|
13002
|
-
const response = await this._syncEngine.mutate(
|
|
13027
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateDocumentDocument, variables, MUTATION_CACHE_RULES["createDocument"]);
|
|
13003
13028
|
const data = response.createDocument;
|
|
13004
13029
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
13005
13030
|
}
|
|
13006
13031
|
};
|
|
13007
13032
|
var CreateFeedbackMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13008
13033
|
async fetch(variables, options) {
|
|
13009
|
-
const response = await this._syncEngine.mutate(
|
|
13034
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateFeedbackDocument, variables, MUTATION_CACHE_RULES["createFeedback"]);
|
|
13010
13035
|
const data = response.createFeedback;
|
|
13011
13036
|
return new Feedback(this._request, data, this._syncEngine, this._baseUrl);
|
|
13012
13037
|
}
|
|
13013
13038
|
};
|
|
13014
13039
|
var CreateFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13015
13040
|
async fetch(variables, options) {
|
|
13016
|
-
const response = await this._syncEngine.mutate(
|
|
13041
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateFolderDocument, variables, MUTATION_CACHE_RULES["createFolder"]);
|
|
13017
13042
|
const data = response.createFolder;
|
|
13018
13043
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
13019
13044
|
}
|
|
13020
13045
|
};
|
|
13021
13046
|
var CreateInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13022
13047
|
async fetch(variables, options) {
|
|
13023
|
-
const response = await this._syncEngine.mutate(
|
|
13048
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateInsightDocument, variables, MUTATION_CACHE_RULES["createInsight"]);
|
|
13024
13049
|
const data = response.createInsight;
|
|
13025
13050
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
13026
13051
|
}
|
|
13027
13052
|
};
|
|
13028
13053
|
var CreateIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13029
13054
|
async fetch(variables, options) {
|
|
13030
|
-
const response = await this._syncEngine.mutate(
|
|
13055
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateIntegrationDocument, variables, MUTATION_CACHE_RULES["createIntegration"]);
|
|
13031
13056
|
const data = response.createIntegration;
|
|
13032
13057
|
return new CreateIntegrationOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
13033
13058
|
}
|
|
13034
13059
|
};
|
|
13035
13060
|
var CreateReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13036
13061
|
async fetch(variables, options) {
|
|
13037
|
-
const response = await this._syncEngine.mutate(
|
|
13062
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateReportDocument, variables, MUTATION_CACHE_RULES["createReport"]);
|
|
13038
13063
|
const data = response.createReport;
|
|
13039
13064
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
13040
13065
|
}
|
|
13041
13066
|
};
|
|
13042
13067
|
var CreateTableMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13043
13068
|
async fetch(variables, options) {
|
|
13044
|
-
const response = await this._syncEngine.mutate(
|
|
13069
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateTableDocument, variables, MUTATION_CACHE_RULES["createTable"]);
|
|
13045
13070
|
const data = response.createTable;
|
|
13046
13071
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
13047
13072
|
}
|
|
13048
13073
|
};
|
|
13049
13074
|
var CreateUserSkillFileMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13050
13075
|
async fetch(variables, options) {
|
|
13051
|
-
const response = await this._syncEngine.mutate(
|
|
13076
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateUserSkillFileDocument, variables, MUTATION_CACHE_RULES["createUserSkillFile"]);
|
|
13052
13077
|
const data = response.createUserSkillFile;
|
|
13053
13078
|
return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13054
13079
|
}
|
|
13055
13080
|
};
|
|
13056
13081
|
var CreateUserSkillFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13057
13082
|
async fetch(variables, options) {
|
|
13058
|
-
const response = await this._syncEngine.mutate(
|
|
13083
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["createUserSkillFolder"]);
|
|
13059
13084
|
const data = response.createUserSkillFolder;
|
|
13060
13085
|
return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13061
13086
|
}
|
|
13062
13087
|
};
|
|
13063
13088
|
var DeleteAgentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13064
13089
|
async fetch(variables, options) {
|
|
13065
|
-
const response = await this._syncEngine.mutate(
|
|
13090
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteAgentDocument, variables, MUTATION_CACHE_RULES["deleteAgent"]);
|
|
13066
13091
|
const data = response.deleteAgent;
|
|
13067
13092
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
13068
13093
|
}
|
|
13069
13094
|
};
|
|
13070
13095
|
var DeleteArtifactMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13071
13096
|
async fetch(variables, options) {
|
|
13072
|
-
const response = await this._syncEngine.mutate(
|
|
13097
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteArtifactDocument, variables, MUTATION_CACHE_RULES["deleteArtifact"]);
|
|
13073
13098
|
const data = response.deleteArtifact;
|
|
13074
13099
|
return new Artifact(this._request, data, this._syncEngine, this._baseUrl);
|
|
13075
13100
|
}
|
|
13076
13101
|
};
|
|
13077
13102
|
var DeleteChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13078
13103
|
async fetch(variables, options) {
|
|
13079
|
-
const response = await this._syncEngine.mutate(
|
|
13104
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteChatDocument, variables, MUTATION_CACHE_RULES["deleteChat"]);
|
|
13080
13105
|
const data = response.deleteChat;
|
|
13081
13106
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
13082
13107
|
}
|
|
13083
13108
|
};
|
|
13084
13109
|
var DeleteDatabaseMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13085
13110
|
async fetch(variables, options) {
|
|
13086
|
-
const response = await this._syncEngine.mutate(
|
|
13111
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteDatabaseDocument, variables, MUTATION_CACHE_RULES["deleteDatabase"]);
|
|
13087
13112
|
const data = response.deleteDatabase;
|
|
13088
13113
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
13089
13114
|
}
|
|
13090
13115
|
};
|
|
13091
13116
|
var DeleteDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13092
13117
|
async fetch(variables, options) {
|
|
13093
|
-
const response = await this._syncEngine.mutate(
|
|
13118
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteDocumentDocument, variables, MUTATION_CACHE_RULES["deleteDocument"]);
|
|
13094
13119
|
const data = response.deleteDocument;
|
|
13095
13120
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
13096
13121
|
}
|
|
13097
13122
|
};
|
|
13098
13123
|
var DeleteFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13099
13124
|
async fetch(variables, options) {
|
|
13100
|
-
const response = await this._syncEngine.mutate(
|
|
13125
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteFolderDocument, variables, MUTATION_CACHE_RULES["deleteFolder"]);
|
|
13101
13126
|
const data = response.deleteFolder;
|
|
13102
13127
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
13103
13128
|
}
|
|
13104
13129
|
};
|
|
13105
13130
|
var DeleteInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13106
13131
|
async fetch(variables, options) {
|
|
13107
|
-
const response = await this._syncEngine.mutate(
|
|
13132
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteInsightDocument, variables, MUTATION_CACHE_RULES["deleteInsight"]);
|
|
13108
13133
|
const data = response.deleteInsight;
|
|
13109
13134
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
13110
13135
|
}
|
|
13111
13136
|
};
|
|
13112
13137
|
var DeleteInsightsMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13113
13138
|
async fetch(variables, options) {
|
|
13114
|
-
const response = await this._syncEngine.mutate(
|
|
13139
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteInsightsDocument, variables, MUTATION_CACHE_RULES["deleteInsights"]);
|
|
13115
13140
|
const data = response.deleteInsights;
|
|
13116
13141
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
13117
13142
|
}
|
|
13118
13143
|
};
|
|
13119
13144
|
var DeleteIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13120
13145
|
async fetch(variables) {
|
|
13121
|
-
const response = await this._syncEngine.mutate(
|
|
13146
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteIntegrationDocument, variables, MUTATION_CACHE_RULES["deleteIntegration"]);
|
|
13122
13147
|
return response.deleteIntegration;
|
|
13123
13148
|
}
|
|
13124
13149
|
};
|
|
13125
13150
|
var DeleteReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13126
13151
|
async fetch(variables, options) {
|
|
13127
|
-
const response = await this._syncEngine.mutate(
|
|
13152
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteReportDocument, variables, MUTATION_CACHE_RULES["deleteReport"]);
|
|
13128
13153
|
const data = response.deleteReport;
|
|
13129
13154
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
13130
13155
|
}
|
|
13131
13156
|
};
|
|
13132
13157
|
var DeleteTableMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13133
13158
|
async fetch(variables, options) {
|
|
13134
|
-
const response = await this._syncEngine.mutate(
|
|
13159
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteTableDocument, variables, MUTATION_CACHE_RULES["deleteTable"]);
|
|
13135
13160
|
const data = response.deleteTable;
|
|
13136
13161
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
13137
13162
|
}
|
|
13138
13163
|
};
|
|
13139
13164
|
var DeleteUserSkillFileMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13140
13165
|
async fetch(variables, options) {
|
|
13141
|
-
const response = await this._syncEngine.mutate(
|
|
13166
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteUserSkillFileDocument, variables, MUTATION_CACHE_RULES["deleteUserSkillFile"]);
|
|
13142
13167
|
const data = response.deleteUserSkillFile;
|
|
13143
13168
|
return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13144
13169
|
}
|
|
13145
13170
|
};
|
|
13146
13171
|
var DeleteUserSkillFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13147
13172
|
async fetch(variables, options) {
|
|
13148
|
-
const response = await this._syncEngine.mutate(
|
|
13173
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["deleteUserSkillFolder"]);
|
|
13149
13174
|
const data = response.deleteUserSkillFolder;
|
|
13150
13175
|
return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13151
13176
|
}
|
|
13152
13177
|
};
|
|
13153
13178
|
var DisconnectIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13154
13179
|
async fetch(variables) {
|
|
13155
|
-
const response = await this._syncEngine.mutate(
|
|
13180
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DisconnectIntegrationDocument, variables, MUTATION_CACHE_RULES["disconnectIntegration"]);
|
|
13156
13181
|
return response.disconnectIntegration;
|
|
13157
13182
|
}
|
|
13158
13183
|
};
|
|
13159
13184
|
var DismissPulseEventMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13160
13185
|
async fetch(variables, options) {
|
|
13161
|
-
const response = await this._syncEngine.mutate(
|
|
13186
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DismissPulseEventDocument, variables, MUTATION_CACHE_RULES["dismissPulseEvent"]);
|
|
13162
13187
|
const data = response.dismissPulseEvent;
|
|
13163
13188
|
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
13164
13189
|
}
|
|
13165
13190
|
};
|
|
13166
13191
|
var ExecuteChatImportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13167
13192
|
async fetch(variables, options) {
|
|
13168
|
-
const response = await this._syncEngine.mutate(
|
|
13193
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ExecuteChatImportDocument, variables, MUTATION_CACHE_RULES["executeChatImport"]);
|
|
13169
13194
|
const data = response.executeChatImport;
|
|
13170
13195
|
return new ChatImportExecuteOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
13171
13196
|
}
|
|
13172
13197
|
};
|
|
13173
13198
|
var GenerateUploadUriMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13174
13199
|
async fetch(variables, options) {
|
|
13175
|
-
const response = await this._syncEngine.mutate(
|
|
13200
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.GenerateUploadUriDocument, variables, MUTATION_CACHE_RULES["generateUploadUri"]);
|
|
13176
13201
|
const data = response.generateUploadUri;
|
|
13177
13202
|
return new FileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13178
13203
|
}
|
|
13179
13204
|
};
|
|
13180
13205
|
var PreviewChatImportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13181
13206
|
async fetch(variables, options) {
|
|
13182
|
-
const response = await this._syncEngine.mutate(
|
|
13207
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.PreviewChatImportDocument, variables, MUTATION_CACHE_RULES["previewChatImport"]);
|
|
13183
13208
|
const data = response.previewChatImport;
|
|
13184
13209
|
return new ChatImportPreviewOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
13185
13210
|
}
|
|
13186
13211
|
};
|
|
13187
13212
|
var ReanalyzeDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13188
13213
|
async fetch(variables, options) {
|
|
13189
|
-
const response = await this._syncEngine.mutate(
|
|
13214
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ReanalyzeDocumentDocument, variables, MUTATION_CACHE_RULES["reanalyzeDocument"]);
|
|
13190
13215
|
const data = response.reanalyzeDocument;
|
|
13191
13216
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
13192
13217
|
}
|
|
13193
13218
|
};
|
|
13194
13219
|
var RefineMindInstructionMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13195
13220
|
async fetch(variables) {
|
|
13196
|
-
const response = await this._syncEngine.mutate(
|
|
13221
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.RefineMindInstructionDocument, variables, MUTATION_CACHE_RULES["refineMindInstruction"]);
|
|
13197
13222
|
return response.refineMindInstruction;
|
|
13198
13223
|
}
|
|
13199
13224
|
};
|
|
13200
13225
|
var RefreshDatabaseSchemaMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13201
13226
|
async fetch(variables) {
|
|
13202
|
-
const response = await this._syncEngine.mutate(
|
|
13227
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.RefreshDatabaseSchemaDocument, variables, MUTATION_CACHE_RULES["refreshDatabaseSchema"]);
|
|
13203
13228
|
return response.refreshDatabaseSchema;
|
|
13204
13229
|
}
|
|
13205
13230
|
};
|
|
13206
13231
|
var ReinterpretSourceMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13207
13232
|
async fetch(variables) {
|
|
13208
|
-
const response = await this._syncEngine.mutate(
|
|
13233
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ReinterpretSourceDocument, variables, MUTATION_CACHE_RULES["reinterpretSource"]);
|
|
13209
13234
|
return response.reinterpretSource;
|
|
13210
13235
|
}
|
|
13211
13236
|
};
|
|
13212
13237
|
var ReinterpretSourcesOfuserMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13213
13238
|
async fetch(variables) {
|
|
13214
|
-
const response = await this._syncEngine.mutate(
|
|
13239
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ReinterpretSourcesOfuserDocument, variables, MUTATION_CACHE_RULES["reinterpretSourcesOfuser"]);
|
|
13215
13240
|
return response.reinterpretSourcesOfuser;
|
|
13216
13241
|
}
|
|
13217
13242
|
};
|
|
13218
13243
|
var RelocateInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13219
13244
|
async fetch(variables, options) {
|
|
13220
|
-
const response = await this._syncEngine.mutate(
|
|
13245
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.RelocateInsightDocument, variables, MUTATION_CACHE_RULES["relocateInsight"]);
|
|
13221
13246
|
const data = response.relocateInsight;
|
|
13222
13247
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
13223
13248
|
}
|
|
13224
13249
|
};
|
|
13225
13250
|
var RemoveInsightFromReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13226
13251
|
async fetch(variables, options) {
|
|
13227
|
-
const response = await this._syncEngine.mutate(
|
|
13252
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.RemoveInsightFromReportDocument, variables, MUTATION_CACHE_RULES["removeInsightFromReport"]);
|
|
13228
13253
|
const data = response.removeInsightFromReport;
|
|
13229
13254
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
13230
13255
|
}
|
|
13231
13256
|
};
|
|
13232
13257
|
var ResetWorkspaceMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13233
13258
|
async fetch(variables) {
|
|
13234
|
-
const response = await this._syncEngine.mutate(
|
|
13259
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ResetWorkspaceDocument, variables, MUTATION_CACHE_RULES["resetWorkspace"]);
|
|
13235
13260
|
return response.resetWorkspace;
|
|
13236
13261
|
}
|
|
13237
13262
|
};
|
|
13238
13263
|
var ResolvePulseEventMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13239
13264
|
async fetch(variables, options) {
|
|
13240
|
-
const response = await this._syncEngine.mutate(
|
|
13265
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ResolvePulseEventDocument, variables, MUTATION_CACHE_RULES["resolvePulseEvent"]);
|
|
13241
13266
|
const data = response.resolvePulseEvent;
|
|
13242
13267
|
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
13243
13268
|
}
|
|
13244
13269
|
};
|
|
13245
13270
|
var ScheduleWorkspaceDeletionMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13246
13271
|
async fetch(variables, options) {
|
|
13247
|
-
const response = await this._syncEngine.mutate(
|
|
13272
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ScheduleWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["scheduleWorkspaceDeletion"]);
|
|
13248
13273
|
const data = response.scheduleWorkspaceDeletion;
|
|
13249
13274
|
return new WorkspaceDeleteSchedule(this._request, data, this._syncEngine, this._baseUrl);
|
|
13250
13275
|
}
|
|
13251
13276
|
};
|
|
13252
13277
|
var SetDatabasePrimaryKeyMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13253
13278
|
async fetch(variables) {
|
|
13254
|
-
const response = await this._syncEngine.mutate(
|
|
13279
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.SetDatabasePrimaryKeyDocument, variables, MUTATION_CACHE_RULES["setDatabasePrimaryKey"]);
|
|
13255
13280
|
return response.setDatabasePrimaryKey;
|
|
13256
13281
|
}
|
|
13257
13282
|
};
|
|
13258
13283
|
var UpdateAgentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13259
13284
|
async fetch(variables, options) {
|
|
13260
|
-
const response = await this._syncEngine.mutate(
|
|
13285
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateAgentDocument, variables, MUTATION_CACHE_RULES["updateAgent"]);
|
|
13261
13286
|
const data = response.updateAgent;
|
|
13262
13287
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
13263
13288
|
}
|
|
13264
13289
|
};
|
|
13265
13290
|
var UpdateChatMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13266
13291
|
async fetch(variables, options) {
|
|
13267
|
-
const response = await this._syncEngine.mutate(
|
|
13292
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateChatDocument, variables, MUTATION_CACHE_RULES["updateChat"]);
|
|
13268
13293
|
const data = response.updateChat;
|
|
13269
13294
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
13270
13295
|
}
|
|
13271
13296
|
};
|
|
13272
13297
|
var UpdateDatabaseMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13273
13298
|
async fetch(variables, options) {
|
|
13274
|
-
const response = await this._syncEngine.mutate(
|
|
13299
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateDatabaseDocument, variables, MUTATION_CACHE_RULES["updateDatabase"]);
|
|
13275
13300
|
const data = response.updateDatabase;
|
|
13276
13301
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
13277
13302
|
}
|
|
13278
13303
|
};
|
|
13279
13304
|
var UpdateDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13280
13305
|
async fetch(variables, options) {
|
|
13281
|
-
const response = await this._syncEngine.mutate(
|
|
13306
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateDocumentDocument, variables, MUTATION_CACHE_RULES["updateDocument"]);
|
|
13282
13307
|
const data = response.updateDocument;
|
|
13283
13308
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
13284
13309
|
}
|
|
13285
13310
|
};
|
|
13286
13311
|
var UpdateFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13287
13312
|
async fetch(variables, options) {
|
|
13288
|
-
const response = await this._syncEngine.mutate(
|
|
13313
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateFolderDocument, variables, MUTATION_CACHE_RULES["updateFolder"]);
|
|
13289
13314
|
const data = response.updateFolder;
|
|
13290
13315
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
13291
13316
|
}
|
|
13292
13317
|
};
|
|
13293
13318
|
var UpdateInsightMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13294
13319
|
async fetch(variables, options) {
|
|
13295
|
-
const response = await this._syncEngine.mutate(
|
|
13320
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateInsightDocument, variables, MUTATION_CACHE_RULES["updateInsight"]);
|
|
13296
13321
|
const data = response.updateInsight;
|
|
13297
13322
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
13298
13323
|
}
|
|
13299
13324
|
};
|
|
13300
13325
|
var UpdateInsightInReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13301
13326
|
async fetch(variables, options) {
|
|
13302
|
-
const response = await this._syncEngine.mutate(
|
|
13327
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateInsightInReportDocument, variables, MUTATION_CACHE_RULES["updateInsightInReport"]);
|
|
13303
13328
|
const data = response.updateInsightInReport;
|
|
13304
13329
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
13305
13330
|
}
|
|
13306
13331
|
};
|
|
13332
|
+
var UpdateInsightThumbnailMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13333
|
+
async fetch(variables) {
|
|
13334
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateInsightThumbnailDocument, variables, MUTATION_CACHE_RULES["updateInsightThumbnail"]);
|
|
13335
|
+
return response.updateInsightThumbnail;
|
|
13336
|
+
}
|
|
13337
|
+
};
|
|
13307
13338
|
var UpdateInterpMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13308
13339
|
async fetch(variables, options) {
|
|
13309
|
-
const response = await this._syncEngine.mutate(
|
|
13340
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateInterpDocument, variables, MUTATION_CACHE_RULES["updateInterp"]);
|
|
13310
13341
|
const data = response.updateInterp;
|
|
13311
13342
|
return new Interpretation(this._request, data, this._syncEngine, this._baseUrl);
|
|
13312
13343
|
}
|
|
13313
13344
|
};
|
|
13314
13345
|
var UpdatePulseTriggerMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13315
13346
|
async fetch(variables, options) {
|
|
13316
|
-
const response = await this._syncEngine.mutate(
|
|
13347
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdatePulseTriggerDocument, variables, MUTATION_CACHE_RULES["updatePulseTrigger"]);
|
|
13317
13348
|
const data = response.updatePulseTrigger;
|
|
13318
13349
|
return new PulseTriggerSettingModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13319
13350
|
}
|
|
13320
13351
|
};
|
|
13321
13352
|
var UpdateReportMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13322
13353
|
async fetch(variables, options) {
|
|
13323
|
-
const response = await this._syncEngine.mutate(
|
|
13354
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateReportDocument, variables, MUTATION_CACHE_RULES["updateReport"]);
|
|
13324
13355
|
const data = response.updateReport;
|
|
13325
13356
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
13326
13357
|
}
|
|
13327
13358
|
};
|
|
13328
13359
|
var UpdateTableMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13329
13360
|
async fetch(variables, options) {
|
|
13330
|
-
const response = await this._syncEngine.mutate(
|
|
13361
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateTableDocument, variables, MUTATION_CACHE_RULES["updateTable"]);
|
|
13331
13362
|
const data = response.updateTable;
|
|
13332
13363
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
13333
13364
|
}
|
|
13334
13365
|
};
|
|
13335
13366
|
var UpdateUserSkillFileMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13336
13367
|
async fetch(variables, options) {
|
|
13337
|
-
const response = await this._syncEngine.mutate(
|
|
13368
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateUserSkillFileDocument, variables, MUTATION_CACHE_RULES["updateUserSkillFile"]);
|
|
13338
13369
|
const data = response.updateUserSkillFile;
|
|
13339
13370
|
return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13340
13371
|
}
|
|
13341
13372
|
};
|
|
13342
13373
|
var UpdateUserSkillFolderMutation = class extends chunk342BFYZZ_cjs.Request {
|
|
13343
13374
|
async fetch(variables, options) {
|
|
13344
|
-
const response = await this._syncEngine.mutate(
|
|
13375
|
+
const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["updateUserSkillFolder"]);
|
|
13345
13376
|
const data = response.updateUserSkillFolder;
|
|
13346
13377
|
return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
13347
13378
|
}
|
|
@@ -13355,7 +13386,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13355
13386
|
}
|
|
13356
13387
|
async fetch(options) {
|
|
13357
13388
|
const variables = this._variables;
|
|
13358
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13389
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.AgentDocument, "agent", this._includes, variables);
|
|
13359
13390
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "agent");
|
|
13360
13391
|
const data = response.agent;
|
|
13361
13392
|
const instance = new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -13367,7 +13398,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13367
13398
|
watch(options) {
|
|
13368
13399
|
const variables = this._variables;
|
|
13369
13400
|
const includes = this._includes;
|
|
13370
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13401
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.AgentDocument, "agent", includes, variables);
|
|
13371
13402
|
const raw = this._syncEngine.watch(
|
|
13372
13403
|
queryDoc,
|
|
13373
13404
|
mergedVars,
|
|
@@ -13397,7 +13428,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13397
13428
|
}
|
|
13398
13429
|
/** Include chats in this query (Smart Fetch — single HTTP request). */
|
|
13399
13430
|
chats(variables, builder) {
|
|
13400
|
-
const info = extractIncludeInfo(
|
|
13431
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
13401
13432
|
let children;
|
|
13402
13433
|
if (builder) {
|
|
13403
13434
|
const sub = new ChatSubBuilder();
|
|
@@ -13406,7 +13437,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13406
13437
|
}
|
|
13407
13438
|
this._includes.push({
|
|
13408
13439
|
fieldName: "chats",
|
|
13409
|
-
fragmentDoc:
|
|
13440
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatConnectionFragmentDoc,
|
|
13410
13441
|
variables,
|
|
13411
13442
|
isConnection: true,
|
|
13412
13443
|
isList: false,
|
|
@@ -13431,18 +13462,18 @@ var Agent_ChatsQuery = class _Agent_ChatsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
13431
13462
|
}
|
|
13432
13463
|
async fetch(options) {
|
|
13433
13464
|
const variables = this._variables;
|
|
13434
|
-
const response = await this._syncEngine.query(
|
|
13465
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Agent_ChatsDocument, variables, "agent");
|
|
13435
13466
|
const data = response.agent?.chats;
|
|
13436
13467
|
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);
|
|
13437
13468
|
}
|
|
13438
13469
|
watch(options) {
|
|
13439
13470
|
const variables = this._variables;
|
|
13440
13471
|
const raw = this._syncEngine.watch(
|
|
13441
|
-
|
|
13472
|
+
chunk5IUEWNZ6_cjs.Agent_ChatsDocument,
|
|
13442
13473
|
variables,
|
|
13443
13474
|
"agent",
|
|
13444
13475
|
async (db) => {
|
|
13445
|
-
const qr = await db._queryResults.get(buildQueryKey("agent", variables,
|
|
13476
|
+
const qr = await db._queryResults.get(buildQueryKey("agent", variables, chunk5IUEWNZ6_cjs.Agent_ChatsDocument));
|
|
13446
13477
|
const nodes = qr ? await db.table("chats").bulkGet(qr.entityIds) : [];
|
|
13447
13478
|
return { agent: { chats: { __typename: "ChatConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
13448
13479
|
}
|
|
@@ -13462,7 +13493,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
13462
13493
|
}
|
|
13463
13494
|
async fetch(options) {
|
|
13464
13495
|
const variables = this._variables;
|
|
13465
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13496
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.AgentsDocument, "agents", this._includes, variables, true);
|
|
13466
13497
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "agents");
|
|
13467
13498
|
const data = response.agents;
|
|
13468
13499
|
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);
|
|
@@ -13479,7 +13510,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
13479
13510
|
const subscriptionId = crypto.randomUUID();
|
|
13480
13511
|
const includes = this._includes;
|
|
13481
13512
|
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) }] : []);
|
|
13482
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13513
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.AgentsDocument, "agents", includes, variables, true);
|
|
13483
13514
|
const raw = this._syncEngine.watch(
|
|
13484
13515
|
queryDoc,
|
|
13485
13516
|
mergedVars,
|
|
@@ -13514,7 +13545,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
13514
13545
|
}
|
|
13515
13546
|
/** Include chats in this query (Smart Fetch — single HTTP request). */
|
|
13516
13547
|
chats(variables, builder) {
|
|
13517
|
-
const info = extractIncludeInfo(
|
|
13548
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
13518
13549
|
let children;
|
|
13519
13550
|
if (builder) {
|
|
13520
13551
|
const sub = new ChatSubBuilder();
|
|
@@ -13523,7 +13554,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
13523
13554
|
}
|
|
13524
13555
|
this._includes.push({
|
|
13525
13556
|
fieldName: "chats",
|
|
13526
|
-
fragmentDoc:
|
|
13557
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatConnectionFragmentDoc,
|
|
13527
13558
|
variables,
|
|
13528
13559
|
isConnection: true,
|
|
13529
13560
|
isList: false,
|
|
@@ -13549,7 +13580,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13549
13580
|
}
|
|
13550
13581
|
async fetch(options) {
|
|
13551
13582
|
const variables = this._variables;
|
|
13552
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13583
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ArtifactDocument, "artifact", this._includes, variables);
|
|
13553
13584
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "artifact");
|
|
13554
13585
|
const data = response.artifact;
|
|
13555
13586
|
const instance = new Artifact(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -13561,7 +13592,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13561
13592
|
watch(options) {
|
|
13562
13593
|
const variables = this._variables;
|
|
13563
13594
|
const includes = this._includes;
|
|
13564
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13595
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ArtifactDocument, "artifact", includes, variables);
|
|
13565
13596
|
const raw = this._syncEngine.watch(
|
|
13566
13597
|
queryDoc,
|
|
13567
13598
|
mergedVars,
|
|
@@ -13591,7 +13622,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13591
13622
|
}
|
|
13592
13623
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
13593
13624
|
chat(variables, builder) {
|
|
13594
|
-
const info = extractIncludeInfo(
|
|
13625
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
13595
13626
|
let children;
|
|
13596
13627
|
if (builder) {
|
|
13597
13628
|
const sub = new ChatSubBuilder();
|
|
@@ -13600,7 +13631,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13600
13631
|
}
|
|
13601
13632
|
this._includes.push({
|
|
13602
13633
|
fieldName: "chat",
|
|
13603
|
-
fragmentDoc:
|
|
13634
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
|
|
13604
13635
|
variables,
|
|
13605
13636
|
isConnection: false,
|
|
13606
13637
|
isList: false,
|
|
@@ -13617,10 +13648,10 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13617
13648
|
}
|
|
13618
13649
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
13619
13650
|
file(variables) {
|
|
13620
|
-
const info = extractIncludeInfo(
|
|
13651
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
13621
13652
|
this._includes.push({
|
|
13622
13653
|
fieldName: "file",
|
|
13623
|
-
fragmentDoc:
|
|
13654
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
|
|
13624
13655
|
variables,
|
|
13625
13656
|
isConnection: false,
|
|
13626
13657
|
isList: false,
|
|
@@ -13636,7 +13667,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13636
13667
|
}
|
|
13637
13668
|
/** Include message in this query (Smart Fetch — single HTTP request). */
|
|
13638
13669
|
message(variables, builder) {
|
|
13639
|
-
const info = extractIncludeInfo(
|
|
13670
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
13640
13671
|
let children;
|
|
13641
13672
|
if (builder) {
|
|
13642
13673
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -13645,7 +13676,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13645
13676
|
}
|
|
13646
13677
|
this._includes.push({
|
|
13647
13678
|
fieldName: "message",
|
|
13648
|
-
fragmentDoc:
|
|
13679
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatMessageFragmentDoc,
|
|
13649
13680
|
variables,
|
|
13650
13681
|
isConnection: false,
|
|
13651
13682
|
isList: false,
|
|
@@ -13669,14 +13700,14 @@ var Artifact_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13669
13700
|
}
|
|
13670
13701
|
async fetch(options) {
|
|
13671
13702
|
const variables = this._variables;
|
|
13672
|
-
const response = await this._syncEngine.query(
|
|
13703
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_ChatDocument, variables, "artifact");
|
|
13673
13704
|
const data = response.artifact?.chat;
|
|
13674
13705
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13675
13706
|
}
|
|
13676
13707
|
watch(options) {
|
|
13677
13708
|
const variables = this._variables;
|
|
13678
13709
|
const raw = this._syncEngine.watch(
|
|
13679
|
-
|
|
13710
|
+
chunk5IUEWNZ6_cjs.Artifact_ChatDocument,
|
|
13680
13711
|
variables,
|
|
13681
13712
|
"artifact",
|
|
13682
13713
|
async (db) => {
|
|
@@ -13699,14 +13730,14 @@ var Artifact_Chat_InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13699
13730
|
}
|
|
13700
13731
|
async fetch(options) {
|
|
13701
13732
|
const variables = this._variables;
|
|
13702
|
-
const response = await this._syncEngine.query(
|
|
13733
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_Chat_InsightDocument, variables, "artifact");
|
|
13703
13734
|
const data = response.artifact?.chat?.insight;
|
|
13704
13735
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13705
13736
|
}
|
|
13706
13737
|
watch(options) {
|
|
13707
13738
|
const variables = this._variables;
|
|
13708
13739
|
const raw = this._syncEngine.watch(
|
|
13709
|
-
|
|
13740
|
+
chunk5IUEWNZ6_cjs.Artifact_Chat_InsightDocument,
|
|
13710
13741
|
variables,
|
|
13711
13742
|
"artifact",
|
|
13712
13743
|
async (db) => {
|
|
@@ -13729,14 +13760,14 @@ var Artifact_FileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13729
13760
|
}
|
|
13730
13761
|
async fetch(options) {
|
|
13731
13762
|
const variables = this._variables;
|
|
13732
|
-
const response = await this._syncEngine.query(
|
|
13763
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_FileDocument, variables, "artifact");
|
|
13733
13764
|
const data = response.artifact?.file;
|
|
13734
13765
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13735
13766
|
}
|
|
13736
13767
|
watch(options) {
|
|
13737
13768
|
const variables = this._variables;
|
|
13738
13769
|
const raw = this._syncEngine.watch(
|
|
13739
|
-
|
|
13770
|
+
chunk5IUEWNZ6_cjs.Artifact_FileDocument,
|
|
13740
13771
|
variables,
|
|
13741
13772
|
"artifact",
|
|
13742
13773
|
async (db) => {
|
|
@@ -13759,14 +13790,14 @@ var Artifact_MessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13759
13790
|
}
|
|
13760
13791
|
async fetch(options) {
|
|
13761
13792
|
const variables = this._variables;
|
|
13762
|
-
const response = await this._syncEngine.query(
|
|
13793
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_MessageDocument, variables, "artifact");
|
|
13763
13794
|
const data = response.artifact?.message;
|
|
13764
13795
|
return data ? new ChatMessage(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13765
13796
|
}
|
|
13766
13797
|
watch(options) {
|
|
13767
13798
|
const variables = this._variables;
|
|
13768
13799
|
const raw = this._syncEngine.watch(
|
|
13769
|
-
|
|
13800
|
+
chunk5IUEWNZ6_cjs.Artifact_MessageDocument,
|
|
13770
13801
|
variables,
|
|
13771
13802
|
"artifact",
|
|
13772
13803
|
async (db) => {
|
|
@@ -13789,14 +13820,14 @@ var Artifact_Message_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13789
13820
|
}
|
|
13790
13821
|
async fetch(options) {
|
|
13791
13822
|
const variables = this._variables;
|
|
13792
|
-
const response = await this._syncEngine.query(
|
|
13823
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_Message_ChatDocument, variables, "artifact");
|
|
13793
13824
|
const data = response.artifact?.message?.chat;
|
|
13794
13825
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13795
13826
|
}
|
|
13796
13827
|
watch(options) {
|
|
13797
13828
|
const variables = this._variables;
|
|
13798
13829
|
const raw = this._syncEngine.watch(
|
|
13799
|
-
|
|
13830
|
+
chunk5IUEWNZ6_cjs.Artifact_Message_ChatDocument,
|
|
13800
13831
|
variables,
|
|
13801
13832
|
"artifact",
|
|
13802
13833
|
async (db) => {
|
|
@@ -13818,7 +13849,7 @@ var Artifact_Message_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13818
13849
|
this._variables = variables;
|
|
13819
13850
|
}
|
|
13820
13851
|
async fetch(options) {
|
|
13821
|
-
const response = await this._syncEngine.query(
|
|
13852
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_Message_ContentsDocument, this._variables, "artifact");
|
|
13822
13853
|
const data = response.artifact?.message?.contents;
|
|
13823
13854
|
if (!Array.isArray(data)) return [];
|
|
13824
13855
|
return data.map((item) => new ContentBlock(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -13832,14 +13863,14 @@ var Artifact_Message_FeedbackQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13832
13863
|
}
|
|
13833
13864
|
async fetch(options) {
|
|
13834
13865
|
const variables = this._variables;
|
|
13835
|
-
const response = await this._syncEngine.query(
|
|
13866
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_Message_FeedbackDocument, variables, "artifact");
|
|
13836
13867
|
const data = response.artifact?.message?.feedback;
|
|
13837
13868
|
return data ? new Feedback(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13838
13869
|
}
|
|
13839
13870
|
watch(options) {
|
|
13840
13871
|
const variables = this._variables;
|
|
13841
13872
|
const raw = this._syncEngine.watch(
|
|
13842
|
-
|
|
13873
|
+
chunk5IUEWNZ6_cjs.Artifact_Message_FeedbackDocument,
|
|
13843
13874
|
variables,
|
|
13844
13875
|
"artifact",
|
|
13845
13876
|
async (db) => {
|
|
@@ -13863,7 +13894,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
13863
13894
|
}
|
|
13864
13895
|
async fetch(options) {
|
|
13865
13896
|
const variables = this._variables;
|
|
13866
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13897
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ArtifactsDocument, "artifacts", this._includes, variables, true);
|
|
13867
13898
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "artifacts");
|
|
13868
13899
|
const data = response.artifacts;
|
|
13869
13900
|
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);
|
|
@@ -13880,7 +13911,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
13880
13911
|
const subscriptionId = crypto.randomUUID();
|
|
13881
13912
|
const includes = this._includes;
|
|
13882
13913
|
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) }] : []);
|
|
13883
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13914
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ArtifactsDocument, "artifacts", includes, variables, true);
|
|
13884
13915
|
const raw = this._syncEngine.watch(
|
|
13885
13916
|
queryDoc,
|
|
13886
13917
|
mergedVars,
|
|
@@ -13915,7 +13946,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
13915
13946
|
}
|
|
13916
13947
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
13917
13948
|
chat(variables, builder) {
|
|
13918
|
-
const info = extractIncludeInfo(
|
|
13949
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
13919
13950
|
let children;
|
|
13920
13951
|
if (builder) {
|
|
13921
13952
|
const sub = new ChatSubBuilder();
|
|
@@ -13924,7 +13955,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
13924
13955
|
}
|
|
13925
13956
|
this._includes.push({
|
|
13926
13957
|
fieldName: "chat",
|
|
13927
|
-
fragmentDoc:
|
|
13958
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
|
|
13928
13959
|
variables,
|
|
13929
13960
|
isConnection: false,
|
|
13930
13961
|
isList: false,
|
|
@@ -13941,10 +13972,10 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
13941
13972
|
}
|
|
13942
13973
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
13943
13974
|
file(variables) {
|
|
13944
|
-
const info = extractIncludeInfo(
|
|
13975
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
13945
13976
|
this._includes.push({
|
|
13946
13977
|
fieldName: "file",
|
|
13947
|
-
fragmentDoc:
|
|
13978
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
|
|
13948
13979
|
variables,
|
|
13949
13980
|
isConnection: false,
|
|
13950
13981
|
isList: false,
|
|
@@ -13960,7 +13991,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
13960
13991
|
}
|
|
13961
13992
|
/** Include message in this query (Smart Fetch — single HTTP request). */
|
|
13962
13993
|
message(variables, builder) {
|
|
13963
|
-
const info = extractIncludeInfo(
|
|
13994
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
13964
13995
|
let children;
|
|
13965
13996
|
if (builder) {
|
|
13966
13997
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -13969,7 +14000,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
13969
14000
|
}
|
|
13970
14001
|
this._includes.push({
|
|
13971
14002
|
fieldName: "message",
|
|
13972
|
-
fragmentDoc:
|
|
14003
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatMessageFragmentDoc,
|
|
13973
14004
|
variables,
|
|
13974
14005
|
isConnection: false,
|
|
13975
14006
|
isList: false,
|
|
@@ -13994,7 +14025,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
13994
14025
|
}
|
|
13995
14026
|
async fetch(options) {
|
|
13996
14027
|
const variables = this._variables;
|
|
13997
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14028
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatDocument, "chat", this._includes, variables);
|
|
13998
14029
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chat");
|
|
13999
14030
|
const data = response.chat;
|
|
14000
14031
|
const instance = new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14006,7 +14037,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14006
14037
|
watch(options) {
|
|
14007
14038
|
const variables = this._variables;
|
|
14008
14039
|
const includes = this._includes;
|
|
14009
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14040
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatDocument, "chat", includes, variables);
|
|
14010
14041
|
const raw = this._syncEngine.watch(
|
|
14011
14042
|
queryDoc,
|
|
14012
14043
|
mergedVars,
|
|
@@ -14036,7 +14067,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14036
14067
|
}
|
|
14037
14068
|
/** Include agents in this query (Smart Fetch — single HTTP request). */
|
|
14038
14069
|
agents(variables, builder) {
|
|
14039
|
-
const info = extractIncludeInfo(
|
|
14070
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
14040
14071
|
let children;
|
|
14041
14072
|
if (builder) {
|
|
14042
14073
|
const sub = new AgentSubBuilder();
|
|
@@ -14045,7 +14076,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14045
14076
|
}
|
|
14046
14077
|
this._includes.push({
|
|
14047
14078
|
fieldName: "agents",
|
|
14048
|
-
fragmentDoc:
|
|
14079
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.AgentConnectionFragmentDoc,
|
|
14049
14080
|
variables,
|
|
14050
14081
|
isConnection: true,
|
|
14051
14082
|
isList: false,
|
|
@@ -14063,7 +14094,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14063
14094
|
}
|
|
14064
14095
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
14065
14096
|
artifacts(variables, builder) {
|
|
14066
|
-
const info = extractIncludeInfo(
|
|
14097
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
14067
14098
|
let children;
|
|
14068
14099
|
if (builder) {
|
|
14069
14100
|
const sub = new ArtifactSubBuilder();
|
|
@@ -14072,7 +14103,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14072
14103
|
}
|
|
14073
14104
|
this._includes.push({
|
|
14074
14105
|
fieldName: "artifacts",
|
|
14075
|
-
fragmentDoc:
|
|
14106
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ArtifactConnectionFragmentDoc,
|
|
14076
14107
|
variables,
|
|
14077
14108
|
isConnection: true,
|
|
14078
14109
|
isList: false,
|
|
@@ -14090,7 +14121,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14090
14121
|
}
|
|
14091
14122
|
/** Include insight in this query (Smart Fetch — single HTTP request). */
|
|
14092
14123
|
insight(variables, builder) {
|
|
14093
|
-
const info = extractIncludeInfo(
|
|
14124
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
14094
14125
|
let children;
|
|
14095
14126
|
if (builder) {
|
|
14096
14127
|
const sub = new InsightSubBuilder();
|
|
@@ -14099,7 +14130,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14099
14130
|
}
|
|
14100
14131
|
this._includes.push({
|
|
14101
14132
|
fieldName: "insight",
|
|
14102
|
-
fragmentDoc:
|
|
14133
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.InsightFragmentDoc,
|
|
14103
14134
|
variables,
|
|
14104
14135
|
isConnection: false,
|
|
14105
14136
|
isList: false,
|
|
@@ -14116,7 +14147,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14116
14147
|
}
|
|
14117
14148
|
/** Include messages in this query (Smart Fetch — single HTTP request). */
|
|
14118
14149
|
messages(variables, builder) {
|
|
14119
|
-
const info = extractIncludeInfo(
|
|
14150
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
14120
14151
|
let children;
|
|
14121
14152
|
if (builder) {
|
|
14122
14153
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -14125,7 +14156,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14125
14156
|
}
|
|
14126
14157
|
this._includes.push({
|
|
14127
14158
|
fieldName: "messages",
|
|
14128
|
-
fragmentDoc:
|
|
14159
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatMessageConnectionFragmentDoc,
|
|
14129
14160
|
variables,
|
|
14130
14161
|
isConnection: true,
|
|
14131
14162
|
isList: false,
|
|
@@ -14150,18 +14181,18 @@ var Chat_AgentsQuery = class _Chat_AgentsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
14150
14181
|
}
|
|
14151
14182
|
async fetch(options) {
|
|
14152
14183
|
const variables = this._variables;
|
|
14153
|
-
const response = await this._syncEngine.query(
|
|
14184
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Chat_AgentsDocument, variables, "chat");
|
|
14154
14185
|
const data = response.chat?.agents;
|
|
14155
14186
|
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);
|
|
14156
14187
|
}
|
|
14157
14188
|
watch(options) {
|
|
14158
14189
|
const variables = this._variables;
|
|
14159
14190
|
const raw = this._syncEngine.watch(
|
|
14160
|
-
|
|
14191
|
+
chunk5IUEWNZ6_cjs.Chat_AgentsDocument,
|
|
14161
14192
|
variables,
|
|
14162
14193
|
"chat",
|
|
14163
14194
|
async (db) => {
|
|
14164
|
-
const qr = await db._queryResults.get(buildQueryKey("chat", variables,
|
|
14195
|
+
const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunk5IUEWNZ6_cjs.Chat_AgentsDocument));
|
|
14165
14196
|
const nodes = qr ? await db.table("agents").bulkGet(qr.entityIds) : [];
|
|
14166
14197
|
return { chat: { agents: { __typename: "AgentConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
14167
14198
|
}
|
|
@@ -14180,18 +14211,18 @@ var Chat_ArtifactsQuery = class _Chat_ArtifactsQuery extends chunk342BFYZZ_cjs.R
|
|
|
14180
14211
|
}
|
|
14181
14212
|
async fetch(options) {
|
|
14182
14213
|
const variables = this._variables;
|
|
14183
|
-
const response = await this._syncEngine.query(
|
|
14214
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Chat_ArtifactsDocument, variables, "chat");
|
|
14184
14215
|
const data = response.chat?.artifacts;
|
|
14185
14216
|
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);
|
|
14186
14217
|
}
|
|
14187
14218
|
watch(options) {
|
|
14188
14219
|
const variables = this._variables;
|
|
14189
14220
|
const raw = this._syncEngine.watch(
|
|
14190
|
-
|
|
14221
|
+
chunk5IUEWNZ6_cjs.Chat_ArtifactsDocument,
|
|
14191
14222
|
variables,
|
|
14192
14223
|
"chat",
|
|
14193
14224
|
async (db) => {
|
|
14194
|
-
const qr = await db._queryResults.get(buildQueryKey("chat", variables,
|
|
14225
|
+
const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunk5IUEWNZ6_cjs.Chat_ArtifactsDocument));
|
|
14195
14226
|
const nodes = qr ? await db.table("artifacts").bulkGet(qr.entityIds) : [];
|
|
14196
14227
|
return { chat: { artifacts: { __typename: "ArtifactConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
14197
14228
|
}
|
|
@@ -14210,14 +14241,14 @@ var Chat_InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14210
14241
|
}
|
|
14211
14242
|
async fetch(options) {
|
|
14212
14243
|
const variables = this._variables;
|
|
14213
|
-
const response = await this._syncEngine.query(
|
|
14244
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Chat_InsightDocument, variables, "chat");
|
|
14214
14245
|
const data = response.chat?.insight;
|
|
14215
14246
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14216
14247
|
}
|
|
14217
14248
|
watch(options) {
|
|
14218
14249
|
const variables = this._variables;
|
|
14219
14250
|
const raw = this._syncEngine.watch(
|
|
14220
|
-
|
|
14251
|
+
chunk5IUEWNZ6_cjs.Chat_InsightDocument,
|
|
14221
14252
|
variables,
|
|
14222
14253
|
"chat",
|
|
14223
14254
|
async (db) => {
|
|
@@ -14239,12 +14270,42 @@ var Chat_Insight_ReportMembersQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14239
14270
|
this._variables = variables;
|
|
14240
14271
|
}
|
|
14241
14272
|
async fetch(options) {
|
|
14242
|
-
const response = await this._syncEngine.query(
|
|
14273
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Chat_Insight_ReportMembersDocument, this._variables, "chat");
|
|
14243
14274
|
const data = response.chat?.insight?.reportMembers;
|
|
14244
14275
|
if (!Array.isArray(data)) return [];
|
|
14245
14276
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
14246
14277
|
}
|
|
14247
14278
|
};
|
|
14279
|
+
var Chat_Insight_ThumbnailFileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
14280
|
+
_variables;
|
|
14281
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
14282
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
14283
|
+
this._variables = variables;
|
|
14284
|
+
}
|
|
14285
|
+
async fetch(options) {
|
|
14286
|
+
const variables = this._variables;
|
|
14287
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Chat_Insight_ThumbnailFileDocument, variables, "chat");
|
|
14288
|
+
const data = response.chat?.insight?.thumbnailFile;
|
|
14289
|
+
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14290
|
+
}
|
|
14291
|
+
watch(options) {
|
|
14292
|
+
const variables = this._variables;
|
|
14293
|
+
const raw = this._syncEngine.watch(
|
|
14294
|
+
chunk5IUEWNZ6_cjs.Chat_Insight_ThumbnailFileDocument,
|
|
14295
|
+
variables,
|
|
14296
|
+
"chat",
|
|
14297
|
+
async (db) => {
|
|
14298
|
+
const vars = variables;
|
|
14299
|
+
const entity = vars?.id ? await db.table("files").get(vars.id) : void 0;
|
|
14300
|
+
return { chat: { insight: { thumbnailFile: entity ?? null } } };
|
|
14301
|
+
}
|
|
14302
|
+
);
|
|
14303
|
+
return new MappedDvinaQueryRef(raw, (response) => {
|
|
14304
|
+
const data = response.chat?.insight?.thumbnailFile;
|
|
14305
|
+
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14306
|
+
});
|
|
14307
|
+
}
|
|
14308
|
+
};
|
|
14248
14309
|
var Chat_MessagesQuery = class _Chat_MessagesQuery extends chunk342BFYZZ_cjs.Request {
|
|
14249
14310
|
_variables;
|
|
14250
14311
|
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
@@ -14253,18 +14314,18 @@ var Chat_MessagesQuery = class _Chat_MessagesQuery extends chunk342BFYZZ_cjs.Req
|
|
|
14253
14314
|
}
|
|
14254
14315
|
async fetch(options) {
|
|
14255
14316
|
const variables = this._variables;
|
|
14256
|
-
const response = await this._syncEngine.query(
|
|
14317
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Chat_MessagesDocument, variables, "chat");
|
|
14257
14318
|
const data = response.chat?.messages;
|
|
14258
14319
|
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);
|
|
14259
14320
|
}
|
|
14260
14321
|
watch(options) {
|
|
14261
14322
|
const variables = this._variables;
|
|
14262
14323
|
const raw = this._syncEngine.watch(
|
|
14263
|
-
|
|
14324
|
+
chunk5IUEWNZ6_cjs.Chat_MessagesDocument,
|
|
14264
14325
|
variables,
|
|
14265
14326
|
"chat",
|
|
14266
14327
|
async (db) => {
|
|
14267
|
-
const qr = await db._queryResults.get(buildQueryKey("chat", variables,
|
|
14328
|
+
const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunk5IUEWNZ6_cjs.Chat_MessagesDocument));
|
|
14268
14329
|
const nodes = qr ? await db.table("chatMessages").bulkGet(qr.entityIds) : [];
|
|
14269
14330
|
return { chat: { messages: { __typename: "ChatMessageConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
14270
14331
|
}
|
|
@@ -14284,7 +14345,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14284
14345
|
}
|
|
14285
14346
|
async fetch(options) {
|
|
14286
14347
|
const variables = this._variables;
|
|
14287
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14348
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatMessageDocument, "chatMessage", this._includes, variables);
|
|
14288
14349
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessage");
|
|
14289
14350
|
const data = response.chatMessage;
|
|
14290
14351
|
const instance = new ChatMessage(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14296,7 +14357,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14296
14357
|
watch(options) {
|
|
14297
14358
|
const variables = this._variables;
|
|
14298
14359
|
const includes = this._includes;
|
|
14299
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14360
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatMessageDocument, "chatMessage", includes, variables);
|
|
14300
14361
|
const raw = this._syncEngine.watch(
|
|
14301
14362
|
queryDoc,
|
|
14302
14363
|
mergedVars,
|
|
@@ -14326,7 +14387,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14326
14387
|
}
|
|
14327
14388
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
14328
14389
|
artifacts(variables, builder) {
|
|
14329
|
-
const info = extractIncludeInfo(
|
|
14390
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
14330
14391
|
let children;
|
|
14331
14392
|
if (builder) {
|
|
14332
14393
|
const sub = new ArtifactSubBuilder();
|
|
@@ -14335,7 +14396,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14335
14396
|
}
|
|
14336
14397
|
this._includes.push({
|
|
14337
14398
|
fieldName: "artifacts",
|
|
14338
|
-
fragmentDoc:
|
|
14399
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ArtifactConnectionFragmentDoc,
|
|
14339
14400
|
variables,
|
|
14340
14401
|
isConnection: true,
|
|
14341
14402
|
isList: false,
|
|
@@ -14353,7 +14414,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14353
14414
|
}
|
|
14354
14415
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
14355
14416
|
chat(variables, builder) {
|
|
14356
|
-
const info = extractIncludeInfo(
|
|
14417
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
14357
14418
|
let children;
|
|
14358
14419
|
if (builder) {
|
|
14359
14420
|
const sub = new ChatSubBuilder();
|
|
@@ -14362,7 +14423,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14362
14423
|
}
|
|
14363
14424
|
this._includes.push({
|
|
14364
14425
|
fieldName: "chat",
|
|
14365
|
-
fragmentDoc:
|
|
14426
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
|
|
14366
14427
|
variables,
|
|
14367
14428
|
isConnection: false,
|
|
14368
14429
|
isList: false,
|
|
@@ -14379,10 +14440,10 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14379
14440
|
}
|
|
14380
14441
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
14381
14442
|
contents(variables) {
|
|
14382
|
-
const info = extractIncludeInfo(
|
|
14443
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
14383
14444
|
this._includes.push({
|
|
14384
14445
|
fieldName: "contents",
|
|
14385
|
-
fragmentDoc:
|
|
14446
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ContentBlockFragmentDoc,
|
|
14386
14447
|
variables,
|
|
14387
14448
|
isConnection: false,
|
|
14388
14449
|
isList: true,
|
|
@@ -14398,10 +14459,10 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14398
14459
|
}
|
|
14399
14460
|
/** Include feedback in this query (Smart Fetch — single HTTP request). */
|
|
14400
14461
|
feedback(variables) {
|
|
14401
|
-
const info = extractIncludeInfo(
|
|
14462
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
14402
14463
|
this._includes.push({
|
|
14403
14464
|
fieldName: "feedback",
|
|
14404
|
-
fragmentDoc:
|
|
14465
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FeedbackFragmentDoc,
|
|
14405
14466
|
variables,
|
|
14406
14467
|
isConnection: false,
|
|
14407
14468
|
isList: false,
|
|
@@ -14424,18 +14485,18 @@ var ChatMessage_ArtifactsQuery = class _ChatMessage_ArtifactsQuery extends chunk
|
|
|
14424
14485
|
}
|
|
14425
14486
|
async fetch(options) {
|
|
14426
14487
|
const variables = this._variables;
|
|
14427
|
-
const response = await this._syncEngine.query(
|
|
14488
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.ChatMessage_ArtifactsDocument, variables, "chatMessage");
|
|
14428
14489
|
const data = response.chatMessage?.artifacts;
|
|
14429
14490
|
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);
|
|
14430
14491
|
}
|
|
14431
14492
|
watch(options) {
|
|
14432
14493
|
const variables = this._variables;
|
|
14433
14494
|
const raw = this._syncEngine.watch(
|
|
14434
|
-
|
|
14495
|
+
chunk5IUEWNZ6_cjs.ChatMessage_ArtifactsDocument,
|
|
14435
14496
|
variables,
|
|
14436
14497
|
"chatMessage",
|
|
14437
14498
|
async (db) => {
|
|
14438
|
-
const qr = await db._queryResults.get(buildQueryKey("chatMessage", variables,
|
|
14499
|
+
const qr = await db._queryResults.get(buildQueryKey("chatMessage", variables, chunk5IUEWNZ6_cjs.ChatMessage_ArtifactsDocument));
|
|
14439
14500
|
const nodes = qr ? await db.table("artifacts").bulkGet(qr.entityIds) : [];
|
|
14440
14501
|
return { chatMessage: { artifacts: { __typename: "ArtifactConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
14441
14502
|
}
|
|
@@ -14454,14 +14515,14 @@ var ChatMessage_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14454
14515
|
}
|
|
14455
14516
|
async fetch(options) {
|
|
14456
14517
|
const variables = this._variables;
|
|
14457
|
-
const response = await this._syncEngine.query(
|
|
14518
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.ChatMessage_ChatDocument, variables, "chatMessage");
|
|
14458
14519
|
const data = response.chatMessage?.chat;
|
|
14459
14520
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14460
14521
|
}
|
|
14461
14522
|
watch(options) {
|
|
14462
14523
|
const variables = this._variables;
|
|
14463
14524
|
const raw = this._syncEngine.watch(
|
|
14464
|
-
|
|
14525
|
+
chunk5IUEWNZ6_cjs.ChatMessage_ChatDocument,
|
|
14465
14526
|
variables,
|
|
14466
14527
|
"chatMessage",
|
|
14467
14528
|
async (db) => {
|
|
@@ -14484,14 +14545,14 @@ var ChatMessage_Chat_InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14484
14545
|
}
|
|
14485
14546
|
async fetch(options) {
|
|
14486
14547
|
const variables = this._variables;
|
|
14487
|
-
const response = await this._syncEngine.query(
|
|
14548
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.ChatMessage_Chat_InsightDocument, variables, "chatMessage");
|
|
14488
14549
|
const data = response.chatMessage?.chat?.insight;
|
|
14489
14550
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14490
14551
|
}
|
|
14491
14552
|
watch(options) {
|
|
14492
14553
|
const variables = this._variables;
|
|
14493
14554
|
const raw = this._syncEngine.watch(
|
|
14494
|
-
|
|
14555
|
+
chunk5IUEWNZ6_cjs.ChatMessage_Chat_InsightDocument,
|
|
14495
14556
|
variables,
|
|
14496
14557
|
"chatMessage",
|
|
14497
14558
|
async (db) => {
|
|
@@ -14513,7 +14574,7 @@ var ChatMessage_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14513
14574
|
this._variables = variables;
|
|
14514
14575
|
}
|
|
14515
14576
|
async fetch(options) {
|
|
14516
|
-
const response = await this._syncEngine.query(
|
|
14577
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.ChatMessage_ContentsDocument, this._variables, "chatMessage");
|
|
14517
14578
|
const data = response.chatMessage?.contents;
|
|
14518
14579
|
if (!Array.isArray(data)) return [];
|
|
14519
14580
|
return data.map((item) => new ContentBlock(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -14527,14 +14588,14 @@ var ChatMessage_FeedbackQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14527
14588
|
}
|
|
14528
14589
|
async fetch(options) {
|
|
14529
14590
|
const variables = this._variables;
|
|
14530
|
-
const response = await this._syncEngine.query(
|
|
14591
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.ChatMessage_FeedbackDocument, variables, "chatMessage");
|
|
14531
14592
|
const data = response.chatMessage?.feedback;
|
|
14532
14593
|
return data ? new Feedback(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14533
14594
|
}
|
|
14534
14595
|
watch(options) {
|
|
14535
14596
|
const variables = this._variables;
|
|
14536
14597
|
const raw = this._syncEngine.watch(
|
|
14537
|
-
|
|
14598
|
+
chunk5IUEWNZ6_cjs.ChatMessage_FeedbackDocument,
|
|
14538
14599
|
variables,
|
|
14539
14600
|
"chatMessage",
|
|
14540
14601
|
async (db) => {
|
|
@@ -14558,7 +14619,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
14558
14619
|
}
|
|
14559
14620
|
async fetch(options) {
|
|
14560
14621
|
const variables = this._variables;
|
|
14561
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14622
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatMessagesDocument, "chatMessages", this._includes, variables, true);
|
|
14562
14623
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessages");
|
|
14563
14624
|
const data = response.chatMessages;
|
|
14564
14625
|
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);
|
|
@@ -14575,7 +14636,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
14575
14636
|
const subscriptionId = crypto.randomUUID();
|
|
14576
14637
|
const includes = this._includes;
|
|
14577
14638
|
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) }] : []);
|
|
14578
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14639
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatMessagesDocument, "chatMessages", includes, variables, true);
|
|
14579
14640
|
const raw = this._syncEngine.watch(
|
|
14580
14641
|
queryDoc,
|
|
14581
14642
|
mergedVars,
|
|
@@ -14610,7 +14671,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
14610
14671
|
}
|
|
14611
14672
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
14612
14673
|
artifacts(variables, builder) {
|
|
14613
|
-
const info = extractIncludeInfo(
|
|
14674
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
14614
14675
|
let children;
|
|
14615
14676
|
if (builder) {
|
|
14616
14677
|
const sub = new ArtifactSubBuilder();
|
|
@@ -14619,7 +14680,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
14619
14680
|
}
|
|
14620
14681
|
this._includes.push({
|
|
14621
14682
|
fieldName: "artifacts",
|
|
14622
|
-
fragmentDoc:
|
|
14683
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ArtifactConnectionFragmentDoc,
|
|
14623
14684
|
variables,
|
|
14624
14685
|
isConnection: true,
|
|
14625
14686
|
isList: false,
|
|
@@ -14637,7 +14698,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
14637
14698
|
}
|
|
14638
14699
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
14639
14700
|
chat(variables, builder) {
|
|
14640
|
-
const info = extractIncludeInfo(
|
|
14701
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
14641
14702
|
let children;
|
|
14642
14703
|
if (builder) {
|
|
14643
14704
|
const sub = new ChatSubBuilder();
|
|
@@ -14646,7 +14707,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
14646
14707
|
}
|
|
14647
14708
|
this._includes.push({
|
|
14648
14709
|
fieldName: "chat",
|
|
14649
|
-
fragmentDoc:
|
|
14710
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
|
|
14650
14711
|
variables,
|
|
14651
14712
|
isConnection: false,
|
|
14652
14713
|
isList: false,
|
|
@@ -14663,10 +14724,10 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
14663
14724
|
}
|
|
14664
14725
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
14665
14726
|
contents(variables) {
|
|
14666
|
-
const info = extractIncludeInfo(
|
|
14727
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
14667
14728
|
this._includes.push({
|
|
14668
14729
|
fieldName: "contents",
|
|
14669
|
-
fragmentDoc:
|
|
14730
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ContentBlockFragmentDoc,
|
|
14670
14731
|
variables,
|
|
14671
14732
|
isConnection: false,
|
|
14672
14733
|
isList: true,
|
|
@@ -14682,10 +14743,10 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
14682
14743
|
}
|
|
14683
14744
|
/** Include feedback in this query (Smart Fetch — single HTTP request). */
|
|
14684
14745
|
feedback(variables) {
|
|
14685
|
-
const info = extractIncludeInfo(
|
|
14746
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
14686
14747
|
this._includes.push({
|
|
14687
14748
|
fieldName: "feedback",
|
|
14688
|
-
fragmentDoc:
|
|
14749
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FeedbackFragmentDoc,
|
|
14689
14750
|
variables,
|
|
14690
14751
|
isConnection: false,
|
|
14691
14752
|
isList: false,
|
|
@@ -14709,7 +14770,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14709
14770
|
}
|
|
14710
14771
|
async fetch(options) {
|
|
14711
14772
|
const variables = this._variables;
|
|
14712
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14773
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatsDocument, "chats", this._includes, variables, true);
|
|
14713
14774
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chats");
|
|
14714
14775
|
const data = response.chats;
|
|
14715
14776
|
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);
|
|
@@ -14726,7 +14787,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14726
14787
|
const subscriptionId = crypto.randomUUID();
|
|
14727
14788
|
const includes = this._includes;
|
|
14728
14789
|
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) }] : []);
|
|
14729
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14790
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatsDocument, "chats", includes, variables, true);
|
|
14730
14791
|
const raw = this._syncEngine.watch(
|
|
14731
14792
|
queryDoc,
|
|
14732
14793
|
mergedVars,
|
|
@@ -14761,7 +14822,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14761
14822
|
}
|
|
14762
14823
|
/** Include agents in this query (Smart Fetch — single HTTP request). */
|
|
14763
14824
|
agents(variables, builder) {
|
|
14764
|
-
const info = extractIncludeInfo(
|
|
14825
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
14765
14826
|
let children;
|
|
14766
14827
|
if (builder) {
|
|
14767
14828
|
const sub = new AgentSubBuilder();
|
|
@@ -14770,7 +14831,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14770
14831
|
}
|
|
14771
14832
|
this._includes.push({
|
|
14772
14833
|
fieldName: "agents",
|
|
14773
|
-
fragmentDoc:
|
|
14834
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.AgentConnectionFragmentDoc,
|
|
14774
14835
|
variables,
|
|
14775
14836
|
isConnection: true,
|
|
14776
14837
|
isList: false,
|
|
@@ -14788,7 +14849,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14788
14849
|
}
|
|
14789
14850
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
14790
14851
|
artifacts(variables, builder) {
|
|
14791
|
-
const info = extractIncludeInfo(
|
|
14852
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
14792
14853
|
let children;
|
|
14793
14854
|
if (builder) {
|
|
14794
14855
|
const sub = new ArtifactSubBuilder();
|
|
@@ -14797,7 +14858,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14797
14858
|
}
|
|
14798
14859
|
this._includes.push({
|
|
14799
14860
|
fieldName: "artifacts",
|
|
14800
|
-
fragmentDoc:
|
|
14861
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ArtifactConnectionFragmentDoc,
|
|
14801
14862
|
variables,
|
|
14802
14863
|
isConnection: true,
|
|
14803
14864
|
isList: false,
|
|
@@ -14815,7 +14876,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14815
14876
|
}
|
|
14816
14877
|
/** Include insight in this query (Smart Fetch — single HTTP request). */
|
|
14817
14878
|
insight(variables, builder) {
|
|
14818
|
-
const info = extractIncludeInfo(
|
|
14879
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
14819
14880
|
let children;
|
|
14820
14881
|
if (builder) {
|
|
14821
14882
|
const sub = new InsightSubBuilder();
|
|
@@ -14824,7 +14885,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14824
14885
|
}
|
|
14825
14886
|
this._includes.push({
|
|
14826
14887
|
fieldName: "insight",
|
|
14827
|
-
fragmentDoc:
|
|
14888
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.InsightFragmentDoc,
|
|
14828
14889
|
variables,
|
|
14829
14890
|
isConnection: false,
|
|
14830
14891
|
isList: false,
|
|
@@ -14841,7 +14902,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14841
14902
|
}
|
|
14842
14903
|
/** Include messages in this query (Smart Fetch — single HTTP request). */
|
|
14843
14904
|
messages(variables, builder) {
|
|
14844
|
-
const info = extractIncludeInfo(
|
|
14905
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
14845
14906
|
let children;
|
|
14846
14907
|
if (builder) {
|
|
14847
14908
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -14850,7 +14911,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
14850
14911
|
}
|
|
14851
14912
|
this._includes.push({
|
|
14852
14913
|
fieldName: "messages",
|
|
14853
|
-
fragmentDoc:
|
|
14914
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatMessageConnectionFragmentDoc,
|
|
14854
14915
|
variables,
|
|
14855
14916
|
isConnection: true,
|
|
14856
14917
|
isList: false,
|
|
@@ -14876,7 +14937,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14876
14937
|
}
|
|
14877
14938
|
async fetch(options) {
|
|
14878
14939
|
const variables = this._variables;
|
|
14879
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14940
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabaseDocument, "database", this._includes, variables);
|
|
14880
14941
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "database");
|
|
14881
14942
|
const data = response.database;
|
|
14882
14943
|
const instance = new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14888,7 +14949,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14888
14949
|
watch(options) {
|
|
14889
14950
|
const variables = this._variables;
|
|
14890
14951
|
const includes = this._includes;
|
|
14891
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14952
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabaseDocument, "database", includes, variables);
|
|
14892
14953
|
const raw = this._syncEngine.watch(
|
|
14893
14954
|
queryDoc,
|
|
14894
14955
|
mergedVars,
|
|
@@ -14918,10 +14979,10 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14918
14979
|
}
|
|
14919
14980
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
14920
14981
|
engine(variables) {
|
|
14921
|
-
const info = extractIncludeInfo(
|
|
14982
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
14922
14983
|
this._includes.push({
|
|
14923
14984
|
fieldName: "engine",
|
|
14924
|
-
fragmentDoc:
|
|
14985
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseEngineFragmentDoc,
|
|
14925
14986
|
variables,
|
|
14926
14987
|
isConnection: false,
|
|
14927
14988
|
isList: false,
|
|
@@ -14937,7 +14998,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14937
14998
|
}
|
|
14938
14999
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
14939
15000
|
tables(variables, builder) {
|
|
14940
|
-
const info = extractIncludeInfo(
|
|
15001
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
14941
15002
|
let children;
|
|
14942
15003
|
if (builder) {
|
|
14943
15004
|
const sub = new TableSubBuilder();
|
|
@@ -14946,7 +15007,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14946
15007
|
}
|
|
14947
15008
|
this._includes.push({
|
|
14948
15009
|
fieldName: "tables",
|
|
14949
|
-
fragmentDoc:
|
|
15010
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.TableConnectionFragmentDoc,
|
|
14950
15011
|
variables,
|
|
14951
15012
|
isConnection: true,
|
|
14952
15013
|
isList: false,
|
|
@@ -14971,14 +15032,14 @@ var Database_EngineQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
14971
15032
|
}
|
|
14972
15033
|
async fetch(options) {
|
|
14973
15034
|
const variables = this._variables;
|
|
14974
|
-
const response = await this._syncEngine.query(
|
|
15035
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Database_EngineDocument, variables, "database");
|
|
14975
15036
|
const data = response.database?.engine;
|
|
14976
15037
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14977
15038
|
}
|
|
14978
15039
|
watch(options) {
|
|
14979
15040
|
const variables = this._variables;
|
|
14980
15041
|
const raw = this._syncEngine.watch(
|
|
14981
|
-
|
|
15042
|
+
chunk5IUEWNZ6_cjs.Database_EngineDocument,
|
|
14982
15043
|
variables,
|
|
14983
15044
|
"database",
|
|
14984
15045
|
async (db) => {
|
|
@@ -15001,14 +15062,14 @@ var Database_Engine_CatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15001
15062
|
}
|
|
15002
15063
|
async fetch(options) {
|
|
15003
15064
|
const variables = this._variables;
|
|
15004
|
-
const response = await this._syncEngine.query(
|
|
15065
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Database_Engine_CatalogDocument, variables, "database");
|
|
15005
15066
|
const data = response.database?.engine?.catalog;
|
|
15006
15067
|
return data ? new DatabaseCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15007
15068
|
}
|
|
15008
15069
|
watch(options) {
|
|
15009
15070
|
const variables = this._variables;
|
|
15010
15071
|
const raw = this._syncEngine.watch(
|
|
15011
|
-
|
|
15072
|
+
chunk5IUEWNZ6_cjs.Database_Engine_CatalogDocument,
|
|
15012
15073
|
variables,
|
|
15013
15074
|
"database",
|
|
15014
15075
|
async (db) => {
|
|
@@ -15031,18 +15092,18 @@ var Database_TablesQuery = class _Database_TablesQuery extends chunk342BFYZZ_cjs
|
|
|
15031
15092
|
}
|
|
15032
15093
|
async fetch(options) {
|
|
15033
15094
|
const variables = this._variables;
|
|
15034
|
-
const response = await this._syncEngine.query(
|
|
15095
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Database_TablesDocument, variables, "database");
|
|
15035
15096
|
const data = response.database?.tables;
|
|
15036
15097
|
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);
|
|
15037
15098
|
}
|
|
15038
15099
|
watch(options) {
|
|
15039
15100
|
const variables = this._variables;
|
|
15040
15101
|
const raw = this._syncEngine.watch(
|
|
15041
|
-
|
|
15102
|
+
chunk5IUEWNZ6_cjs.Database_TablesDocument,
|
|
15042
15103
|
variables,
|
|
15043
15104
|
"database",
|
|
15044
15105
|
async (db) => {
|
|
15045
|
-
const qr = await db._queryResults.get(buildQueryKey("database", variables,
|
|
15106
|
+
const qr = await db._queryResults.get(buildQueryKey("database", variables, chunk5IUEWNZ6_cjs.Database_TablesDocument));
|
|
15046
15107
|
const nodes = qr ? await db.table("tables").bulkGet(qr.entityIds) : [];
|
|
15047
15108
|
return { database: { tables: { __typename: "TableConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15048
15109
|
}
|
|
@@ -15062,7 +15123,7 @@ var DatabaseCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15062
15123
|
}
|
|
15063
15124
|
async fetch(options) {
|
|
15064
15125
|
const variables = this._variables;
|
|
15065
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15126
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabaseCatalogDocument, "databaseCatalog", this._includes, variables);
|
|
15066
15127
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databaseCatalog");
|
|
15067
15128
|
const data = response.databaseCatalog;
|
|
15068
15129
|
const instance = new DatabaseCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15074,7 +15135,7 @@ var DatabaseCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15074
15135
|
watch(options) {
|
|
15075
15136
|
const variables = this._variables;
|
|
15076
15137
|
const includes = this._includes;
|
|
15077
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15138
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabaseCatalogDocument, "databaseCatalog", includes, variables);
|
|
15078
15139
|
const raw = this._syncEngine.watch(
|
|
15079
15140
|
queryDoc,
|
|
15080
15141
|
mergedVars,
|
|
@@ -15104,10 +15165,10 @@ var DatabaseCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15104
15165
|
}
|
|
15105
15166
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
15106
15167
|
engine(variables) {
|
|
15107
|
-
const info = extractIncludeInfo(
|
|
15168
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
15108
15169
|
this._includes.push({
|
|
15109
15170
|
fieldName: "engine",
|
|
15110
|
-
fragmentDoc:
|
|
15171
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseEngineFragmentDoc,
|
|
15111
15172
|
variables,
|
|
15112
15173
|
isConnection: false,
|
|
15113
15174
|
isList: false,
|
|
@@ -15130,14 +15191,14 @@ var DatabaseCatalog_EngineQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15130
15191
|
}
|
|
15131
15192
|
async fetch(options) {
|
|
15132
15193
|
const variables = this._variables;
|
|
15133
|
-
const response = await this._syncEngine.query(
|
|
15194
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.DatabaseCatalog_EngineDocument, variables, "databaseCatalog");
|
|
15134
15195
|
const data = response.databaseCatalog?.engine;
|
|
15135
15196
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15136
15197
|
}
|
|
15137
15198
|
watch(options) {
|
|
15138
15199
|
const variables = this._variables;
|
|
15139
15200
|
const raw = this._syncEngine.watch(
|
|
15140
|
-
|
|
15201
|
+
chunk5IUEWNZ6_cjs.DatabaseCatalog_EngineDocument,
|
|
15141
15202
|
variables,
|
|
15142
15203
|
"databaseCatalog",
|
|
15143
15204
|
async (db) => {
|
|
@@ -15161,7 +15222,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
|
|
|
15161
15222
|
}
|
|
15162
15223
|
async fetch(options) {
|
|
15163
15224
|
const variables = this._variables;
|
|
15164
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15225
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabaseCatalogsDocument, "databaseCatalogs", this._includes, variables, true);
|
|
15165
15226
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databaseCatalogs");
|
|
15166
15227
|
const data = response.databaseCatalogs;
|
|
15167
15228
|
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);
|
|
@@ -15178,7 +15239,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
|
|
|
15178
15239
|
const subscriptionId = crypto.randomUUID();
|
|
15179
15240
|
const includes = this._includes;
|
|
15180
15241
|
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) }] : []);
|
|
15181
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15242
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabaseCatalogsDocument, "databaseCatalogs", includes, variables, true);
|
|
15182
15243
|
const raw = this._syncEngine.watch(
|
|
15183
15244
|
queryDoc,
|
|
15184
15245
|
mergedVars,
|
|
@@ -15213,10 +15274,10 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
|
|
|
15213
15274
|
}
|
|
15214
15275
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
15215
15276
|
engine(variables) {
|
|
15216
|
-
const info = extractIncludeInfo(
|
|
15277
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
15217
15278
|
this._includes.push({
|
|
15218
15279
|
fieldName: "engine",
|
|
15219
|
-
fragmentDoc:
|
|
15280
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseEngineFragmentDoc,
|
|
15220
15281
|
variables,
|
|
15221
15282
|
isConnection: false,
|
|
15222
15283
|
isList: false,
|
|
@@ -15233,7 +15294,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
|
|
|
15233
15294
|
};
|
|
15234
15295
|
var DatabaseSchemaQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
15235
15296
|
async fetch(variables) {
|
|
15236
|
-
const response = await this._request(
|
|
15297
|
+
const response = await this._request(chunk5IUEWNZ6_cjs.DatabaseSchemaDocument, variables);
|
|
15237
15298
|
return response.databaseSchema;
|
|
15238
15299
|
}
|
|
15239
15300
|
};
|
|
@@ -15246,7 +15307,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15246
15307
|
}
|
|
15247
15308
|
async fetch(options) {
|
|
15248
15309
|
const variables = this._variables;
|
|
15249
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15310
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabasesDocument, "databases", this._includes, variables, true);
|
|
15250
15311
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databases");
|
|
15251
15312
|
const data = response.databases;
|
|
15252
15313
|
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);
|
|
@@ -15263,7 +15324,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15263
15324
|
const subscriptionId = crypto.randomUUID();
|
|
15264
15325
|
const includes = this._includes;
|
|
15265
15326
|
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) }] : []);
|
|
15266
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15327
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabasesDocument, "databases", includes, variables, true);
|
|
15267
15328
|
const raw = this._syncEngine.watch(
|
|
15268
15329
|
queryDoc,
|
|
15269
15330
|
mergedVars,
|
|
@@ -15298,10 +15359,10 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15298
15359
|
}
|
|
15299
15360
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
15300
15361
|
engine(variables) {
|
|
15301
|
-
const info = extractIncludeInfo(
|
|
15362
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
15302
15363
|
this._includes.push({
|
|
15303
15364
|
fieldName: "engine",
|
|
15304
|
-
fragmentDoc:
|
|
15365
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseEngineFragmentDoc,
|
|
15305
15366
|
variables,
|
|
15306
15367
|
isConnection: false,
|
|
15307
15368
|
isList: false,
|
|
@@ -15317,7 +15378,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15317
15378
|
}
|
|
15318
15379
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
15319
15380
|
tables(variables, builder) {
|
|
15320
|
-
const info = extractIncludeInfo(
|
|
15381
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
15321
15382
|
let children;
|
|
15322
15383
|
if (builder) {
|
|
15323
15384
|
const sub = new TableSubBuilder();
|
|
@@ -15326,7 +15387,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15326
15387
|
}
|
|
15327
15388
|
this._includes.push({
|
|
15328
15389
|
fieldName: "tables",
|
|
15329
|
-
fragmentDoc:
|
|
15390
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.TableConnectionFragmentDoc,
|
|
15330
15391
|
variables,
|
|
15331
15392
|
isConnection: true,
|
|
15332
15393
|
isList: false,
|
|
@@ -15352,7 +15413,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15352
15413
|
}
|
|
15353
15414
|
async fetch(options) {
|
|
15354
15415
|
const variables = this._variables;
|
|
15355
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15416
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentDocument, "document", this._includes, variables);
|
|
15356
15417
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "document");
|
|
15357
15418
|
const data = response.document;
|
|
15358
15419
|
const instance = new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15364,7 +15425,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15364
15425
|
watch(options) {
|
|
15365
15426
|
const variables = this._variables;
|
|
15366
15427
|
const includes = this._includes;
|
|
15367
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15428
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentDocument, "document", includes, variables);
|
|
15368
15429
|
const raw = this._syncEngine.watch(
|
|
15369
15430
|
queryDoc,
|
|
15370
15431
|
mergedVars,
|
|
@@ -15394,10 +15455,10 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15394
15455
|
}
|
|
15395
15456
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
15396
15457
|
contents(variables) {
|
|
15397
|
-
const info = extractIncludeInfo(
|
|
15458
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
15398
15459
|
this._includes.push({
|
|
15399
15460
|
fieldName: "contents",
|
|
15400
|
-
fragmentDoc:
|
|
15461
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DocumentContentFragmentDoc,
|
|
15401
15462
|
variables,
|
|
15402
15463
|
isConnection: false,
|
|
15403
15464
|
isList: true,
|
|
@@ -15413,10 +15474,10 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15413
15474
|
}
|
|
15414
15475
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
15415
15476
|
file(variables) {
|
|
15416
|
-
const info = extractIncludeInfo(
|
|
15477
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_FileDocument, "file", ["id"]);
|
|
15417
15478
|
this._includes.push({
|
|
15418
15479
|
fieldName: "file",
|
|
15419
|
-
fragmentDoc:
|
|
15480
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
|
|
15420
15481
|
variables,
|
|
15421
15482
|
isConnection: false,
|
|
15422
15483
|
isList: false,
|
|
@@ -15432,10 +15493,10 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15432
15493
|
}
|
|
15433
15494
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
15434
15495
|
format(variables) {
|
|
15435
|
-
const info = extractIncludeInfo(
|
|
15496
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_FormatDocument, "format", ["id"]);
|
|
15436
15497
|
this._includes.push({
|
|
15437
15498
|
fieldName: "format",
|
|
15438
|
-
fragmentDoc:
|
|
15499
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFormatFragmentDoc,
|
|
15439
15500
|
variables,
|
|
15440
15501
|
isConnection: false,
|
|
15441
15502
|
isList: false,
|
|
@@ -15451,7 +15512,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15451
15512
|
}
|
|
15452
15513
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
15453
15514
|
tables(variables, builder) {
|
|
15454
|
-
const info = extractIncludeInfo(
|
|
15515
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
15455
15516
|
let children;
|
|
15456
15517
|
if (builder) {
|
|
15457
15518
|
const sub = new TableSubBuilder();
|
|
@@ -15460,7 +15521,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15460
15521
|
}
|
|
15461
15522
|
this._includes.push({
|
|
15462
15523
|
fieldName: "tables",
|
|
15463
|
-
fragmentDoc:
|
|
15524
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.TableConnectionFragmentDoc,
|
|
15464
15525
|
variables,
|
|
15465
15526
|
isConnection: true,
|
|
15466
15527
|
isList: false,
|
|
@@ -15484,7 +15545,7 @@ var Document_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15484
15545
|
this._variables = variables;
|
|
15485
15546
|
}
|
|
15486
15547
|
async fetch(options) {
|
|
15487
|
-
const response = await this._syncEngine.query(
|
|
15548
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Document_ContentsDocument, this._variables, "document");
|
|
15488
15549
|
const data = response.document?.contents;
|
|
15489
15550
|
if (!Array.isArray(data)) return [];
|
|
15490
15551
|
return data.map((item) => new DocumentContent(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -15498,14 +15559,14 @@ var Document_FileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15498
15559
|
}
|
|
15499
15560
|
async fetch(options) {
|
|
15500
15561
|
const variables = this._variables;
|
|
15501
|
-
const response = await this._syncEngine.query(
|
|
15562
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Document_FileDocument, variables, "document");
|
|
15502
15563
|
const data = response.document?.file;
|
|
15503
15564
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15504
15565
|
}
|
|
15505
15566
|
watch(options) {
|
|
15506
15567
|
const variables = this._variables;
|
|
15507
15568
|
const raw = this._syncEngine.watch(
|
|
15508
|
-
|
|
15569
|
+
chunk5IUEWNZ6_cjs.Document_FileDocument,
|
|
15509
15570
|
variables,
|
|
15510
15571
|
"document",
|
|
15511
15572
|
async (db) => {
|
|
@@ -15528,14 +15589,14 @@ var Document_FormatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15528
15589
|
}
|
|
15529
15590
|
async fetch(options) {
|
|
15530
15591
|
const variables = this._variables;
|
|
15531
|
-
const response = await this._syncEngine.query(
|
|
15592
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Document_FormatDocument, variables, "document");
|
|
15532
15593
|
const data = response.document?.format;
|
|
15533
15594
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15534
15595
|
}
|
|
15535
15596
|
watch(options) {
|
|
15536
15597
|
const variables = this._variables;
|
|
15537
15598
|
const raw = this._syncEngine.watch(
|
|
15538
|
-
|
|
15599
|
+
chunk5IUEWNZ6_cjs.Document_FormatDocument,
|
|
15539
15600
|
variables,
|
|
15540
15601
|
"document",
|
|
15541
15602
|
async (db) => {
|
|
@@ -15558,14 +15619,14 @@ var Document_Format_CatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15558
15619
|
}
|
|
15559
15620
|
async fetch(options) {
|
|
15560
15621
|
const variables = this._variables;
|
|
15561
|
-
const response = await this._syncEngine.query(
|
|
15622
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Document_Format_CatalogDocument, variables, "document");
|
|
15562
15623
|
const data = response.document?.format?.catalog;
|
|
15563
15624
|
return data ? new DocumentCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15564
15625
|
}
|
|
15565
15626
|
watch(options) {
|
|
15566
15627
|
const variables = this._variables;
|
|
15567
15628
|
const raw = this._syncEngine.watch(
|
|
15568
|
-
|
|
15629
|
+
chunk5IUEWNZ6_cjs.Document_Format_CatalogDocument,
|
|
15569
15630
|
variables,
|
|
15570
15631
|
"document",
|
|
15571
15632
|
async (db) => {
|
|
@@ -15588,18 +15649,18 @@ var Document_TablesQuery = class _Document_TablesQuery extends chunk342BFYZZ_cjs
|
|
|
15588
15649
|
}
|
|
15589
15650
|
async fetch(options) {
|
|
15590
15651
|
const variables = this._variables;
|
|
15591
|
-
const response = await this._syncEngine.query(
|
|
15652
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Document_TablesDocument, variables, "document");
|
|
15592
15653
|
const data = response.document?.tables;
|
|
15593
15654
|
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);
|
|
15594
15655
|
}
|
|
15595
15656
|
watch(options) {
|
|
15596
15657
|
const variables = this._variables;
|
|
15597
15658
|
const raw = this._syncEngine.watch(
|
|
15598
|
-
|
|
15659
|
+
chunk5IUEWNZ6_cjs.Document_TablesDocument,
|
|
15599
15660
|
variables,
|
|
15600
15661
|
"document",
|
|
15601
15662
|
async (db) => {
|
|
15602
|
-
const qr = await db._queryResults.get(buildQueryKey("document", variables,
|
|
15663
|
+
const qr = await db._queryResults.get(buildQueryKey("document", variables, chunk5IUEWNZ6_cjs.Document_TablesDocument));
|
|
15603
15664
|
const nodes = qr ? await db.table("tables").bulkGet(qr.entityIds) : [];
|
|
15604
15665
|
return { document: { tables: { __typename: "TableConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15605
15666
|
}
|
|
@@ -15619,7 +15680,7 @@ var DocumentCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15619
15680
|
}
|
|
15620
15681
|
async fetch(options) {
|
|
15621
15682
|
const variables = this._variables;
|
|
15622
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15683
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentCatalogDocument, "documentCatalog", this._includes, variables);
|
|
15623
15684
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documentCatalog");
|
|
15624
15685
|
const data = response.documentCatalog;
|
|
15625
15686
|
const instance = new DocumentCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15631,7 +15692,7 @@ var DocumentCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15631
15692
|
watch(options) {
|
|
15632
15693
|
const variables = this._variables;
|
|
15633
15694
|
const includes = this._includes;
|
|
15634
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15695
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentCatalogDocument, "documentCatalog", includes, variables);
|
|
15635
15696
|
const raw = this._syncEngine.watch(
|
|
15636
15697
|
queryDoc,
|
|
15637
15698
|
mergedVars,
|
|
@@ -15661,10 +15722,10 @@ var DocumentCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15661
15722
|
}
|
|
15662
15723
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
15663
15724
|
format(variables) {
|
|
15664
|
-
const info = extractIncludeInfo(
|
|
15725
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
15665
15726
|
this._includes.push({
|
|
15666
15727
|
fieldName: "format",
|
|
15667
|
-
fragmentDoc:
|
|
15728
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFormatFragmentDoc,
|
|
15668
15729
|
variables,
|
|
15669
15730
|
isConnection: false,
|
|
15670
15731
|
isList: false,
|
|
@@ -15687,14 +15748,14 @@ var DocumentCatalog_FormatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15687
15748
|
}
|
|
15688
15749
|
async fetch(options) {
|
|
15689
15750
|
const variables = this._variables;
|
|
15690
|
-
const response = await this._syncEngine.query(
|
|
15751
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.DocumentCatalog_FormatDocument, variables, "documentCatalog");
|
|
15691
15752
|
const data = response.documentCatalog?.format;
|
|
15692
15753
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15693
15754
|
}
|
|
15694
15755
|
watch(options) {
|
|
15695
15756
|
const variables = this._variables;
|
|
15696
15757
|
const raw = this._syncEngine.watch(
|
|
15697
|
-
|
|
15758
|
+
chunk5IUEWNZ6_cjs.DocumentCatalog_FormatDocument,
|
|
15698
15759
|
variables,
|
|
15699
15760
|
"documentCatalog",
|
|
15700
15761
|
async (db) => {
|
|
@@ -15718,7 +15779,7 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk342BFYZZ_c
|
|
|
15718
15779
|
}
|
|
15719
15780
|
async fetch(options) {
|
|
15720
15781
|
const variables = this._variables;
|
|
15721
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15782
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentCatalogsDocument, "documentCatalogs", this._includes, variables, true);
|
|
15722
15783
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documentCatalogs");
|
|
15723
15784
|
const data = response.documentCatalogs;
|
|
15724
15785
|
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);
|
|
@@ -15735,7 +15796,7 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk342BFYZZ_c
|
|
|
15735
15796
|
const subscriptionId = crypto.randomUUID();
|
|
15736
15797
|
const includes = this._includes;
|
|
15737
15798
|
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) }] : []);
|
|
15738
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15799
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentCatalogsDocument, "documentCatalogs", includes, variables, true);
|
|
15739
15800
|
const raw = this._syncEngine.watch(
|
|
15740
15801
|
queryDoc,
|
|
15741
15802
|
mergedVars,
|
|
@@ -15770,10 +15831,10 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk342BFYZZ_c
|
|
|
15770
15831
|
}
|
|
15771
15832
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
15772
15833
|
format(variables) {
|
|
15773
|
-
const info = extractIncludeInfo(
|
|
15834
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
15774
15835
|
this._includes.push({
|
|
15775
15836
|
fieldName: "format",
|
|
15776
|
-
fragmentDoc:
|
|
15837
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFormatFragmentDoc,
|
|
15777
15838
|
variables,
|
|
15778
15839
|
isConnection: false,
|
|
15779
15840
|
isList: false,
|
|
@@ -15797,7 +15858,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15797
15858
|
}
|
|
15798
15859
|
async fetch(options) {
|
|
15799
15860
|
const variables = this._variables;
|
|
15800
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15861
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentsDocument, "documents", this._includes, variables, true);
|
|
15801
15862
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documents");
|
|
15802
15863
|
const data = response.documents;
|
|
15803
15864
|
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);
|
|
@@ -15814,7 +15875,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15814
15875
|
const subscriptionId = crypto.randomUUID();
|
|
15815
15876
|
const includes = this._includes;
|
|
15816
15877
|
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) }] : []);
|
|
15817
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15878
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentsDocument, "documents", includes, variables, true);
|
|
15818
15879
|
const raw = this._syncEngine.watch(
|
|
15819
15880
|
queryDoc,
|
|
15820
15881
|
mergedVars,
|
|
@@ -15849,10 +15910,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15849
15910
|
}
|
|
15850
15911
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
15851
15912
|
contents(variables) {
|
|
15852
|
-
const info = extractIncludeInfo(
|
|
15913
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
15853
15914
|
this._includes.push({
|
|
15854
15915
|
fieldName: "contents",
|
|
15855
|
-
fragmentDoc:
|
|
15916
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DocumentContentFragmentDoc,
|
|
15856
15917
|
variables,
|
|
15857
15918
|
isConnection: false,
|
|
15858
15919
|
isList: true,
|
|
@@ -15868,10 +15929,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15868
15929
|
}
|
|
15869
15930
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
15870
15931
|
file(variables) {
|
|
15871
|
-
const info = extractIncludeInfo(
|
|
15932
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_FileDocument, "file", ["id"]);
|
|
15872
15933
|
this._includes.push({
|
|
15873
15934
|
fieldName: "file",
|
|
15874
|
-
fragmentDoc:
|
|
15935
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
|
|
15875
15936
|
variables,
|
|
15876
15937
|
isConnection: false,
|
|
15877
15938
|
isList: false,
|
|
@@ -15887,10 +15948,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15887
15948
|
}
|
|
15888
15949
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
15889
15950
|
format(variables) {
|
|
15890
|
-
const info = extractIncludeInfo(
|
|
15951
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_FormatDocument, "format", ["id"]);
|
|
15891
15952
|
this._includes.push({
|
|
15892
15953
|
fieldName: "format",
|
|
15893
|
-
fragmentDoc:
|
|
15954
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFormatFragmentDoc,
|
|
15894
15955
|
variables,
|
|
15895
15956
|
isConnection: false,
|
|
15896
15957
|
isList: false,
|
|
@@ -15906,7 +15967,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15906
15967
|
}
|
|
15907
15968
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
15908
15969
|
tables(variables, builder) {
|
|
15909
|
-
const info = extractIncludeInfo(
|
|
15970
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
15910
15971
|
let children;
|
|
15911
15972
|
if (builder) {
|
|
15912
15973
|
const sub = new TableSubBuilder();
|
|
@@ -15915,7 +15976,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15915
15976
|
}
|
|
15916
15977
|
this._includes.push({
|
|
15917
15978
|
fieldName: "tables",
|
|
15918
|
-
fragmentDoc:
|
|
15979
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.TableConnectionFragmentDoc,
|
|
15919
15980
|
variables,
|
|
15920
15981
|
isConnection: true,
|
|
15921
15982
|
isList: false,
|
|
@@ -15934,13 +15995,13 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
15934
15995
|
};
|
|
15935
15996
|
var ExportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
15936
15997
|
async fetch(variables) {
|
|
15937
|
-
const response = await this._request(
|
|
15998
|
+
const response = await this._request(chunk5IUEWNZ6_cjs.ExportDocument, variables);
|
|
15938
15999
|
return response.export;
|
|
15939
16000
|
}
|
|
15940
16001
|
};
|
|
15941
16002
|
var ExportWithInsightIdQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
15942
16003
|
async fetch(variables) {
|
|
15943
|
-
const response = await this._request(
|
|
16004
|
+
const response = await this._request(chunk5IUEWNZ6_cjs.ExportWithInsightIdDocument, variables);
|
|
15944
16005
|
return response.exportWithInsightId;
|
|
15945
16006
|
}
|
|
15946
16007
|
};
|
|
@@ -15953,7 +16014,7 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15953
16014
|
}
|
|
15954
16015
|
async fetch(options) {
|
|
15955
16016
|
const variables = this._variables;
|
|
15956
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16017
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FeedItemDocument, "feedItem", this._includes, variables);
|
|
15957
16018
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "feedItem");
|
|
15958
16019
|
const data = response.feedItem;
|
|
15959
16020
|
if (!data) return void 0;
|
|
@@ -15966,7 +16027,7 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15966
16027
|
watch(options) {
|
|
15967
16028
|
const variables = this._variables;
|
|
15968
16029
|
const includes = this._includes;
|
|
15969
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16030
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FeedItemDocument, "feedItem", includes, variables);
|
|
15970
16031
|
const raw = this._syncEngine.watch(
|
|
15971
16032
|
queryDoc,
|
|
15972
16033
|
mergedVars,
|
|
@@ -15997,10 +16058,10 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
15997
16058
|
}
|
|
15998
16059
|
/** Include action in this query (Smart Fetch — single HTTP request). */
|
|
15999
16060
|
action(variables) {
|
|
16000
|
-
const info = extractIncludeInfo(
|
|
16061
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.FeedItem_ActionDocument, "action", ["id"]);
|
|
16001
16062
|
this._includes.push({
|
|
16002
16063
|
fieldName: "action",
|
|
16003
|
-
fragmentDoc:
|
|
16064
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FeedSendMessageActionFragmentDoc,
|
|
16004
16065
|
variables,
|
|
16005
16066
|
isConnection: false,
|
|
16006
16067
|
isList: false,
|
|
@@ -16016,10 +16077,10 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16016
16077
|
}
|
|
16017
16078
|
/** Include data in this query (Smart Fetch — single HTTP request). */
|
|
16018
16079
|
data(variables) {
|
|
16019
|
-
const info = extractIncludeInfo(
|
|
16080
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.FeedItem_DataDocument, "data", ["id"]);
|
|
16020
16081
|
this._includes.push({
|
|
16021
16082
|
fieldName: "data",
|
|
16022
|
-
fragmentDoc:
|
|
16083
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FeedArtifactDataFragmentDoc,
|
|
16023
16084
|
variables,
|
|
16024
16085
|
isConnection: false,
|
|
16025
16086
|
isList: true,
|
|
@@ -16042,14 +16103,14 @@ var FeedItem_ActionQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16042
16103
|
}
|
|
16043
16104
|
async fetch(options) {
|
|
16044
16105
|
const variables = this._variables;
|
|
16045
|
-
const response = await this._syncEngine.query(
|
|
16106
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.FeedItem_ActionDocument, variables, "feedItem");
|
|
16046
16107
|
const data = response.feedItem?.action;
|
|
16047
16108
|
return data ? new FeedSendMessageAction(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16048
16109
|
}
|
|
16049
16110
|
watch(options) {
|
|
16050
16111
|
const variables = this._variables;
|
|
16051
16112
|
const raw = this._syncEngine.watch(
|
|
16052
|
-
|
|
16113
|
+
chunk5IUEWNZ6_cjs.FeedItem_ActionDocument,
|
|
16053
16114
|
variables,
|
|
16054
16115
|
"feedItem",
|
|
16055
16116
|
async (db) => {
|
|
@@ -16071,7 +16132,7 @@ var FeedItem_DataQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16071
16132
|
this._variables = variables;
|
|
16072
16133
|
}
|
|
16073
16134
|
async fetch(options) {
|
|
16074
|
-
const response = await this._syncEngine.query(
|
|
16135
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.FeedItem_DataDocument, this._variables, "feedItem");
|
|
16075
16136
|
const data = response.feedItem?.data;
|
|
16076
16137
|
if (!Array.isArray(data)) return [];
|
|
16077
16138
|
return data.map((item) => new FeedArtifactData(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -16086,7 +16147,7 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16086
16147
|
}
|
|
16087
16148
|
async fetch(options) {
|
|
16088
16149
|
const variables = this._variables;
|
|
16089
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16150
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FeedItemsDocument, "feedItems", this._includes, variables, true);
|
|
16090
16151
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "feedItems");
|
|
16091
16152
|
const data = response.feedItems;
|
|
16092
16153
|
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);
|
|
@@ -16103,7 +16164,7 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16103
16164
|
const subscriptionId = crypto.randomUUID();
|
|
16104
16165
|
const includes = this._includes;
|
|
16105
16166
|
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) }] : []);
|
|
16106
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16167
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FeedItemsDocument, "feedItems", includes, variables, true);
|
|
16107
16168
|
const raw = this._syncEngine.watch(
|
|
16108
16169
|
queryDoc,
|
|
16109
16170
|
mergedVars,
|
|
@@ -16138,10 +16199,10 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16138
16199
|
}
|
|
16139
16200
|
/** Include action in this query (Smart Fetch — single HTTP request). */
|
|
16140
16201
|
action(variables) {
|
|
16141
|
-
const info = extractIncludeInfo(
|
|
16202
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.FeedItem_ActionDocument, "action", ["id"]);
|
|
16142
16203
|
this._includes.push({
|
|
16143
16204
|
fieldName: "action",
|
|
16144
|
-
fragmentDoc:
|
|
16205
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FeedSendMessageActionFragmentDoc,
|
|
16145
16206
|
variables,
|
|
16146
16207
|
isConnection: false,
|
|
16147
16208
|
isList: false,
|
|
@@ -16157,10 +16218,10 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16157
16218
|
}
|
|
16158
16219
|
/** Include data in this query (Smart Fetch — single HTTP request). */
|
|
16159
16220
|
data(variables) {
|
|
16160
|
-
const info = extractIncludeInfo(
|
|
16221
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.FeedItem_DataDocument, "data", ["id"]);
|
|
16161
16222
|
this._includes.push({
|
|
16162
16223
|
fieldName: "data",
|
|
16163
|
-
fragmentDoc:
|
|
16224
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FeedArtifactDataFragmentDoc,
|
|
16164
16225
|
variables,
|
|
16165
16226
|
isConnection: false,
|
|
16166
16227
|
isList: true,
|
|
@@ -16177,7 +16238,7 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16177
16238
|
};
|
|
16178
16239
|
var FileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
16179
16240
|
async fetch(variables) {
|
|
16180
|
-
const response = await this._request(
|
|
16241
|
+
const response = await this._request(chunk5IUEWNZ6_cjs.FileDocument, variables);
|
|
16181
16242
|
return response.file;
|
|
16182
16243
|
}
|
|
16183
16244
|
};
|
|
@@ -16190,7 +16251,7 @@ var FileMetaQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16190
16251
|
}
|
|
16191
16252
|
async fetch(options) {
|
|
16192
16253
|
const variables = this._variables;
|
|
16193
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16254
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FileMetaDocument, "fileMeta", this._includes, variables);
|
|
16194
16255
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "fileMeta");
|
|
16195
16256
|
const data = response.fileMeta;
|
|
16196
16257
|
if (!data) return void 0;
|
|
@@ -16203,7 +16264,7 @@ var FileMetaQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16203
16264
|
watch(options) {
|
|
16204
16265
|
const variables = this._variables;
|
|
16205
16266
|
const includes = this._includes;
|
|
16206
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16267
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FileMetaDocument, "fileMeta", includes, variables);
|
|
16207
16268
|
const raw = this._syncEngine.watch(
|
|
16208
16269
|
queryDoc,
|
|
16209
16270
|
mergedVars,
|
|
@@ -16241,7 +16302,7 @@ var FileUrlsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16241
16302
|
this._variables = variables;
|
|
16242
16303
|
}
|
|
16243
16304
|
async fetch(options) {
|
|
16244
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16305
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FileUrlsDocument, "fileUrls", this._includes, this._variables);
|
|
16245
16306
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "fileUrls");
|
|
16246
16307
|
const data = response.fileUrls;
|
|
16247
16308
|
if (!Array.isArray(data)) return [];
|
|
@@ -16250,7 +16311,7 @@ var FileUrlsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16250
16311
|
};
|
|
16251
16312
|
var FindFitTierQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
16252
16313
|
async fetch(variables) {
|
|
16253
|
-
const response = await this._request(
|
|
16314
|
+
const response = await this._request(chunk5IUEWNZ6_cjs.FindFitTierDocument, variables);
|
|
16254
16315
|
return response.findFitTier ?? void 0;
|
|
16255
16316
|
}
|
|
16256
16317
|
};
|
|
@@ -16263,7 +16324,7 @@ var FolderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16263
16324
|
}
|
|
16264
16325
|
async fetch(options) {
|
|
16265
16326
|
const variables = this._variables;
|
|
16266
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16327
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FolderDocument, "folder", this._includes, variables);
|
|
16267
16328
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "folder");
|
|
16268
16329
|
const data = response.folder;
|
|
16269
16330
|
const instance = new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16275,7 +16336,7 @@ var FolderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16275
16336
|
watch(options) {
|
|
16276
16337
|
const variables = this._variables;
|
|
16277
16338
|
const includes = this._includes;
|
|
16278
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16339
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FolderDocument, "folder", includes, variables);
|
|
16279
16340
|
const raw = this._syncEngine.watch(
|
|
16280
16341
|
queryDoc,
|
|
16281
16342
|
mergedVars,
|
|
@@ -16313,7 +16374,7 @@ var FoldersQuery = class _FoldersQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16313
16374
|
}
|
|
16314
16375
|
async fetch(options) {
|
|
16315
16376
|
const variables = this._variables;
|
|
16316
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16377
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FoldersDocument, "folders", this._includes, variables, true);
|
|
16317
16378
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "folders");
|
|
16318
16379
|
const data = response.folders;
|
|
16319
16380
|
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);
|
|
@@ -16330,7 +16391,7 @@ var FoldersQuery = class _FoldersQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16330
16391
|
const subscriptionId = crypto.randomUUID();
|
|
16331
16392
|
const includes = this._includes;
|
|
16332
16393
|
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) }] : []);
|
|
16333
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16394
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FoldersDocument, "folders", includes, variables, true);
|
|
16334
16395
|
const raw = this._syncEngine.watch(
|
|
16335
16396
|
queryDoc,
|
|
16336
16397
|
mergedVars,
|
|
@@ -16366,7 +16427,7 @@ var FoldersQuery = class _FoldersQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16366
16427
|
};
|
|
16367
16428
|
var GetCapabilityQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
16368
16429
|
async fetch(variables) {
|
|
16369
|
-
const response = await this._request(
|
|
16430
|
+
const response = await this._request(chunk5IUEWNZ6_cjs.GetCapabilityDocument, variables);
|
|
16370
16431
|
return response.getCapability;
|
|
16371
16432
|
}
|
|
16372
16433
|
};
|
|
@@ -16379,7 +16440,7 @@ var GetDevAccessTokenQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16379
16440
|
}
|
|
16380
16441
|
async fetch(options) {
|
|
16381
16442
|
const variables = this._variables;
|
|
16382
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16443
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.GetDevAccessTokenDocument, "getDevAccessToken", this._includes, variables);
|
|
16383
16444
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getDevAccessToken");
|
|
16384
16445
|
const data = response.getDevAccessToken;
|
|
16385
16446
|
const instance = new DevAccessTokenOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16391,7 +16452,7 @@ var GetDevAccessTokenQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16391
16452
|
watch(options) {
|
|
16392
16453
|
const variables = this._variables;
|
|
16393
16454
|
const includes = this._includes;
|
|
16394
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16455
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.GetDevAccessTokenDocument, "getDevAccessToken", includes, variables);
|
|
16395
16456
|
const raw = this._syncEngine.watch(
|
|
16396
16457
|
queryDoc,
|
|
16397
16458
|
mergedVars,
|
|
@@ -16422,13 +16483,13 @@ var GetDevAccessTokenQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16422
16483
|
};
|
|
16423
16484
|
var GetLimitQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
16424
16485
|
async fetch(variables) {
|
|
16425
|
-
const response = await this._request(
|
|
16486
|
+
const response = await this._request(chunk5IUEWNZ6_cjs.GetLimitDocument, variables);
|
|
16426
16487
|
return response.getLimit ?? void 0;
|
|
16427
16488
|
}
|
|
16428
16489
|
};
|
|
16429
16490
|
var GetRemainingQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
16430
16491
|
async fetch(variables) {
|
|
16431
|
-
const response = await this._request(
|
|
16492
|
+
const response = await this._request(chunk5IUEWNZ6_cjs.GetRemainingDocument, variables);
|
|
16432
16493
|
return response.getRemaining ?? void 0;
|
|
16433
16494
|
}
|
|
16434
16495
|
};
|
|
@@ -16440,7 +16501,7 @@ var GetTokenUsageByModelQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16440
16501
|
this._variables = variables;
|
|
16441
16502
|
}
|
|
16442
16503
|
async fetch(options) {
|
|
16443
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16504
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.GetTokenUsageByModelDocument, "getTokenUsageByModel", this._includes, this._variables);
|
|
16444
16505
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageByModel");
|
|
16445
16506
|
const data = response.getTokenUsageByModel;
|
|
16446
16507
|
if (!Array.isArray(data)) return [];
|
|
@@ -16455,7 +16516,7 @@ var GetTokenUsageHistoryQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16455
16516
|
this._variables = variables;
|
|
16456
16517
|
}
|
|
16457
16518
|
async fetch(options) {
|
|
16458
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16519
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.GetTokenUsageHistoryDocument, "getTokenUsageHistory", this._includes, this._variables);
|
|
16459
16520
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageHistory");
|
|
16460
16521
|
const data = response.getTokenUsageHistory;
|
|
16461
16522
|
if (!Array.isArray(data)) return [];
|
|
@@ -16471,7 +16532,7 @@ var GetTokenUsageStatusQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16471
16532
|
}
|
|
16472
16533
|
async fetch(options) {
|
|
16473
16534
|
const variables = this._variables;
|
|
16474
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16535
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", this._includes, variables);
|
|
16475
16536
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageStatus");
|
|
16476
16537
|
const data = response.getTokenUsageStatus;
|
|
16477
16538
|
const instance = new UsageStatus(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16483,7 +16544,7 @@ var GetTokenUsageStatusQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16483
16544
|
watch(options) {
|
|
16484
16545
|
const variables = this._variables;
|
|
16485
16546
|
const includes = this._includes;
|
|
16486
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16547
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", includes, variables);
|
|
16487
16548
|
const raw = this._syncEngine.watch(
|
|
16488
16549
|
queryDoc,
|
|
16489
16550
|
mergedVars,
|
|
@@ -16513,10 +16574,10 @@ var GetTokenUsageStatusQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16513
16574
|
}
|
|
16514
16575
|
/** Include windows in this query (Smart Fetch — single HTTP request). */
|
|
16515
16576
|
windows(variables) {
|
|
16516
|
-
const info = extractIncludeInfo(
|
|
16577
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.GetTokenUsageStatus_WindowsDocument, "windows", []);
|
|
16517
16578
|
this._includes.push({
|
|
16518
16579
|
fieldName: "windows",
|
|
16519
|
-
fragmentDoc:
|
|
16580
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.UsageWindowsStatusTypeFragmentDoc,
|
|
16520
16581
|
variables,
|
|
16521
16582
|
isConnection: false,
|
|
16522
16583
|
isList: false,
|
|
@@ -16539,14 +16600,14 @@ var GetTokenUsageStatus_WindowsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16539
16600
|
}
|
|
16540
16601
|
async fetch(options) {
|
|
16541
16602
|
const variables = this._variables;
|
|
16542
|
-
const response = await this._syncEngine.query(
|
|
16603
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.GetTokenUsageStatus_WindowsDocument, variables, "getTokenUsageStatus");
|
|
16543
16604
|
const data = response.getTokenUsageStatus?.windows;
|
|
16544
16605
|
return data ? new UsageWindowsStatusType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16545
16606
|
}
|
|
16546
16607
|
watch(options) {
|
|
16547
16608
|
const variables = this._variables;
|
|
16548
16609
|
const raw = this._syncEngine.watch(
|
|
16549
|
-
|
|
16610
|
+
chunk5IUEWNZ6_cjs.GetTokenUsageStatus_WindowsDocument,
|
|
16550
16611
|
variables,
|
|
16551
16612
|
"getTokenUsageStatus",
|
|
16552
16613
|
async (db) => {
|
|
@@ -16569,14 +16630,14 @@ var GetTokenUsageStatus_Windows_DayQuery = class extends chunk342BFYZZ_cjs.Reque
|
|
|
16569
16630
|
}
|
|
16570
16631
|
async fetch(options) {
|
|
16571
16632
|
const variables = this._variables;
|
|
16572
|
-
const response = await this._syncEngine.query(
|
|
16633
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.GetTokenUsageStatus_Windows_DayDocument, variables, "getTokenUsageStatus");
|
|
16573
16634
|
const data = response.getTokenUsageStatus?.windows?.day;
|
|
16574
16635
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16575
16636
|
}
|
|
16576
16637
|
watch(options) {
|
|
16577
16638
|
const variables = this._variables;
|
|
16578
16639
|
const raw = this._syncEngine.watch(
|
|
16579
|
-
|
|
16640
|
+
chunk5IUEWNZ6_cjs.GetTokenUsageStatus_Windows_DayDocument,
|
|
16580
16641
|
variables,
|
|
16581
16642
|
"getTokenUsageStatus",
|
|
16582
16643
|
async (db) => {
|
|
@@ -16599,14 +16660,14 @@ var GetTokenUsageStatus_Windows_FiveHourQuery = class extends chunk342BFYZZ_cjs.
|
|
|
16599
16660
|
}
|
|
16600
16661
|
async fetch(options) {
|
|
16601
16662
|
const variables = this._variables;
|
|
16602
|
-
const response = await this._syncEngine.query(
|
|
16663
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.GetTokenUsageStatus_Windows_FiveHourDocument, variables, "getTokenUsageStatus");
|
|
16603
16664
|
const data = response.getTokenUsageStatus?.windows?.fiveHour;
|
|
16604
16665
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16605
16666
|
}
|
|
16606
16667
|
watch(options) {
|
|
16607
16668
|
const variables = this._variables;
|
|
16608
16669
|
const raw = this._syncEngine.watch(
|
|
16609
|
-
|
|
16670
|
+
chunk5IUEWNZ6_cjs.GetTokenUsageStatus_Windows_FiveHourDocument,
|
|
16610
16671
|
variables,
|
|
16611
16672
|
"getTokenUsageStatus",
|
|
16612
16673
|
async (db) => {
|
|
@@ -16629,14 +16690,14 @@ var GetTokenUsageStatus_Windows_WeekQuery = class extends chunk342BFYZZ_cjs.Requ
|
|
|
16629
16690
|
}
|
|
16630
16691
|
async fetch(options) {
|
|
16631
16692
|
const variables = this._variables;
|
|
16632
|
-
const response = await this._syncEngine.query(
|
|
16693
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.GetTokenUsageStatus_Windows_WeekDocument, variables, "getTokenUsageStatus");
|
|
16633
16694
|
const data = response.getTokenUsageStatus?.windows?.week;
|
|
16634
16695
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16635
16696
|
}
|
|
16636
16697
|
watch(options) {
|
|
16637
16698
|
const variables = this._variables;
|
|
16638
16699
|
const raw = this._syncEngine.watch(
|
|
16639
|
-
|
|
16700
|
+
chunk5IUEWNZ6_cjs.GetTokenUsageStatus_Windows_WeekDocument,
|
|
16640
16701
|
variables,
|
|
16641
16702
|
"getTokenUsageStatus",
|
|
16642
16703
|
async (db) => {
|
|
@@ -16653,7 +16714,7 @@ var GetTokenUsageStatus_Windows_WeekQuery = class extends chunk342BFYZZ_cjs.Requ
|
|
|
16653
16714
|
};
|
|
16654
16715
|
var GetUsageQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
16655
16716
|
async fetch(variables) {
|
|
16656
|
-
const response = await this._request(
|
|
16717
|
+
const response = await this._request(chunk5IUEWNZ6_cjs.GetUsageDocument, variables);
|
|
16657
16718
|
return response.getUsage ?? void 0;
|
|
16658
16719
|
}
|
|
16659
16720
|
};
|
|
@@ -16666,7 +16727,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16666
16727
|
}
|
|
16667
16728
|
async fetch(options) {
|
|
16668
16729
|
const variables = this._variables;
|
|
16669
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16730
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.InsightDocument, "insight", this._includes, variables);
|
|
16670
16731
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "insight");
|
|
16671
16732
|
const data = response.insight;
|
|
16672
16733
|
const instance = new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16678,7 +16739,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16678
16739
|
watch(options) {
|
|
16679
16740
|
const variables = this._variables;
|
|
16680
16741
|
const includes = this._includes;
|
|
16681
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16742
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.InsightDocument, "insight", includes, variables);
|
|
16682
16743
|
const raw = this._syncEngine.watch(
|
|
16683
16744
|
queryDoc,
|
|
16684
16745
|
mergedVars,
|
|
@@ -16708,7 +16769,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16708
16769
|
}
|
|
16709
16770
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
16710
16771
|
chat(variables, builder) {
|
|
16711
|
-
const info = extractIncludeInfo(
|
|
16772
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
16712
16773
|
let children;
|
|
16713
16774
|
if (builder) {
|
|
16714
16775
|
const sub = new ChatSubBuilder();
|
|
@@ -16717,7 +16778,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16717
16778
|
}
|
|
16718
16779
|
this._includes.push({
|
|
16719
16780
|
fieldName: "chat",
|
|
16720
|
-
fragmentDoc:
|
|
16781
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
|
|
16721
16782
|
variables,
|
|
16722
16783
|
isConnection: false,
|
|
16723
16784
|
isList: false,
|
|
@@ -16734,10 +16795,10 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16734
16795
|
}
|
|
16735
16796
|
/** Include reportMembers in this query (Smart Fetch — single HTTP request). */
|
|
16736
16797
|
reportMembers(variables) {
|
|
16737
|
-
const info = extractIncludeInfo(
|
|
16798
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
16738
16799
|
this._includes.push({
|
|
16739
16800
|
fieldName: "reportMembers",
|
|
16740
|
-
fragmentDoc:
|
|
16801
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ReportMemberFragmentDoc,
|
|
16741
16802
|
variables,
|
|
16742
16803
|
isConnection: false,
|
|
16743
16804
|
isList: true,
|
|
@@ -16753,7 +16814,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16753
16814
|
}
|
|
16754
16815
|
/** Include reports in this query (Smart Fetch — single HTTP request). */
|
|
16755
16816
|
reports(variables, builder) {
|
|
16756
|
-
const info = extractIncludeInfo(
|
|
16817
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
16757
16818
|
let children;
|
|
16758
16819
|
if (builder) {
|
|
16759
16820
|
const sub = new ReportSubBuilder();
|
|
@@ -16762,7 +16823,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16762
16823
|
}
|
|
16763
16824
|
this._includes.push({
|
|
16764
16825
|
fieldName: "reports",
|
|
16765
|
-
fragmentDoc:
|
|
16826
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ReportConnectionFragmentDoc,
|
|
16766
16827
|
variables,
|
|
16767
16828
|
isConnection: true,
|
|
16768
16829
|
isList: false,
|
|
@@ -16778,6 +16839,25 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16778
16839
|
});
|
|
16779
16840
|
return this;
|
|
16780
16841
|
}
|
|
16842
|
+
/** Include thumbnailFile in this query (Smart Fetch — single HTTP request). */
|
|
16843
|
+
thumbnailFile(variables) {
|
|
16844
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
|
|
16845
|
+
this._includes.push({
|
|
16846
|
+
fieldName: "thumbnailFile",
|
|
16847
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
|
|
16848
|
+
variables,
|
|
16849
|
+
isConnection: false,
|
|
16850
|
+
isList: false,
|
|
16851
|
+
variableDefinitions: info.variableDefinitions,
|
|
16852
|
+
fieldArguments: info.fieldArguments,
|
|
16853
|
+
syncMetadata: {
|
|
16854
|
+
entityType: "files",
|
|
16855
|
+
requiredFields: ["createdAt", "id", "path", "updatedAt"]
|
|
16856
|
+
},
|
|
16857
|
+
modelFactory: (req, data, se, bu) => new File(req, data, se, bu)
|
|
16858
|
+
});
|
|
16859
|
+
return this;
|
|
16860
|
+
}
|
|
16781
16861
|
};
|
|
16782
16862
|
var Insight_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
16783
16863
|
_variables;
|
|
@@ -16787,14 +16867,14 @@ var Insight_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16787
16867
|
}
|
|
16788
16868
|
async fetch(options) {
|
|
16789
16869
|
const variables = this._variables;
|
|
16790
|
-
const response = await this._syncEngine.query(
|
|
16870
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Insight_ChatDocument, variables, "insight");
|
|
16791
16871
|
const data = response.insight?.chat;
|
|
16792
16872
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16793
16873
|
}
|
|
16794
16874
|
watch(options) {
|
|
16795
16875
|
const variables = this._variables;
|
|
16796
16876
|
const raw = this._syncEngine.watch(
|
|
16797
|
-
|
|
16877
|
+
chunk5IUEWNZ6_cjs.Insight_ChatDocument,
|
|
16798
16878
|
variables,
|
|
16799
16879
|
"insight",
|
|
16800
16880
|
async (db) => {
|
|
@@ -16816,7 +16896,7 @@ var Insight_ReportMembersQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16816
16896
|
this._variables = variables;
|
|
16817
16897
|
}
|
|
16818
16898
|
async fetch(options) {
|
|
16819
|
-
const response = await this._syncEngine.query(
|
|
16899
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Insight_ReportMembersDocument, this._variables, "insight");
|
|
16820
16900
|
const data = response.insight?.reportMembers;
|
|
16821
16901
|
if (!Array.isArray(data)) return [];
|
|
16822
16902
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -16830,18 +16910,18 @@ var Insight_ReportsQuery = class _Insight_ReportsQuery extends chunk342BFYZZ_cjs
|
|
|
16830
16910
|
}
|
|
16831
16911
|
async fetch(options) {
|
|
16832
16912
|
const variables = this._variables;
|
|
16833
|
-
const response = await this._syncEngine.query(
|
|
16913
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Insight_ReportsDocument, variables, "insight");
|
|
16834
16914
|
const data = response.insight?.reports;
|
|
16835
16915
|
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);
|
|
16836
16916
|
}
|
|
16837
16917
|
watch(options) {
|
|
16838
16918
|
const variables = this._variables;
|
|
16839
16919
|
const raw = this._syncEngine.watch(
|
|
16840
|
-
|
|
16920
|
+
chunk5IUEWNZ6_cjs.Insight_ReportsDocument,
|
|
16841
16921
|
variables,
|
|
16842
16922
|
"insight",
|
|
16843
16923
|
async (db) => {
|
|
16844
|
-
const qr = await db._queryResults.get(buildQueryKey("insight", variables,
|
|
16924
|
+
const qr = await db._queryResults.get(buildQueryKey("insight", variables, chunk5IUEWNZ6_cjs.Insight_ReportsDocument));
|
|
16845
16925
|
const nodes = qr ? await db.table("reports").bulkGet(qr.entityIds) : [];
|
|
16846
16926
|
return { insight: { reports: { __typename: "ReportConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
16847
16927
|
}
|
|
@@ -16852,6 +16932,36 @@ var Insight_ReportsQuery = class _Insight_ReportsQuery extends chunk342BFYZZ_cjs
|
|
|
16852
16932
|
});
|
|
16853
16933
|
}
|
|
16854
16934
|
};
|
|
16935
|
+
var Insight_ThumbnailFileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
16936
|
+
_variables;
|
|
16937
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
16938
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
16939
|
+
this._variables = variables;
|
|
16940
|
+
}
|
|
16941
|
+
async fetch(options) {
|
|
16942
|
+
const variables = this._variables;
|
|
16943
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Insight_ThumbnailFileDocument, variables, "insight");
|
|
16944
|
+
const data = response.insight?.thumbnailFile;
|
|
16945
|
+
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16946
|
+
}
|
|
16947
|
+
watch(options) {
|
|
16948
|
+
const variables = this._variables;
|
|
16949
|
+
const raw = this._syncEngine.watch(
|
|
16950
|
+
chunk5IUEWNZ6_cjs.Insight_ThumbnailFileDocument,
|
|
16951
|
+
variables,
|
|
16952
|
+
"insight",
|
|
16953
|
+
async (db) => {
|
|
16954
|
+
const vars = variables;
|
|
16955
|
+
const entity = vars?.id ? await db.table("files").get(vars.id) : void 0;
|
|
16956
|
+
return { insight: { thumbnailFile: entity ?? null } };
|
|
16957
|
+
}
|
|
16958
|
+
);
|
|
16959
|
+
return new MappedDvinaQueryRef(raw, (response) => {
|
|
16960
|
+
const data = response.insight?.thumbnailFile;
|
|
16961
|
+
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16962
|
+
});
|
|
16963
|
+
}
|
|
16964
|
+
};
|
|
16855
16965
|
var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
16856
16966
|
_variables;
|
|
16857
16967
|
_includes = [];
|
|
@@ -16861,7 +16971,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16861
16971
|
}
|
|
16862
16972
|
async fetch(options) {
|
|
16863
16973
|
const variables = this._variables;
|
|
16864
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16974
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.InsightsDocument, "insights", this._includes, variables, true);
|
|
16865
16975
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "insights");
|
|
16866
16976
|
const data = response.insights;
|
|
16867
16977
|
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);
|
|
@@ -16878,7 +16988,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16878
16988
|
const subscriptionId = crypto.randomUUID();
|
|
16879
16989
|
const includes = this._includes;
|
|
16880
16990
|
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) }] : []);
|
|
16881
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16991
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.InsightsDocument, "insights", includes, variables, true);
|
|
16882
16992
|
const raw = this._syncEngine.watch(
|
|
16883
16993
|
queryDoc,
|
|
16884
16994
|
mergedVars,
|
|
@@ -16913,7 +17023,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16913
17023
|
}
|
|
16914
17024
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
16915
17025
|
chat(variables, builder) {
|
|
16916
|
-
const info = extractIncludeInfo(
|
|
17026
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
16917
17027
|
let children;
|
|
16918
17028
|
if (builder) {
|
|
16919
17029
|
const sub = new ChatSubBuilder();
|
|
@@ -16922,7 +17032,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16922
17032
|
}
|
|
16923
17033
|
this._includes.push({
|
|
16924
17034
|
fieldName: "chat",
|
|
16925
|
-
fragmentDoc:
|
|
17035
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
|
|
16926
17036
|
variables,
|
|
16927
17037
|
isConnection: false,
|
|
16928
17038
|
isList: false,
|
|
@@ -16939,10 +17049,10 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16939
17049
|
}
|
|
16940
17050
|
/** Include reportMembers in this query (Smart Fetch — single HTTP request). */
|
|
16941
17051
|
reportMembers(variables) {
|
|
16942
|
-
const info = extractIncludeInfo(
|
|
17052
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
16943
17053
|
this._includes.push({
|
|
16944
17054
|
fieldName: "reportMembers",
|
|
16945
|
-
fragmentDoc:
|
|
17055
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ReportMemberFragmentDoc,
|
|
16946
17056
|
variables,
|
|
16947
17057
|
isConnection: false,
|
|
16948
17058
|
isList: true,
|
|
@@ -16958,7 +17068,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16958
17068
|
}
|
|
16959
17069
|
/** Include reports in this query (Smart Fetch — single HTTP request). */
|
|
16960
17070
|
reports(variables, builder) {
|
|
16961
|
-
const info = extractIncludeInfo(
|
|
17071
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
16962
17072
|
let children;
|
|
16963
17073
|
if (builder) {
|
|
16964
17074
|
const sub = new ReportSubBuilder();
|
|
@@ -16967,7 +17077,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16967
17077
|
}
|
|
16968
17078
|
this._includes.push({
|
|
16969
17079
|
fieldName: "reports",
|
|
16970
|
-
fragmentDoc:
|
|
17080
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ReportConnectionFragmentDoc,
|
|
16971
17081
|
variables,
|
|
16972
17082
|
isConnection: true,
|
|
16973
17083
|
isList: false,
|
|
@@ -16983,6 +17093,25 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
16983
17093
|
});
|
|
16984
17094
|
return this;
|
|
16985
17095
|
}
|
|
17096
|
+
/** Include thumbnailFile in this query (Smart Fetch — single HTTP request). */
|
|
17097
|
+
thumbnailFile(variables) {
|
|
17098
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
|
|
17099
|
+
this._includes.push({
|
|
17100
|
+
fieldName: "thumbnailFile",
|
|
17101
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
|
|
17102
|
+
variables,
|
|
17103
|
+
isConnection: false,
|
|
17104
|
+
isList: false,
|
|
17105
|
+
variableDefinitions: info.variableDefinitions,
|
|
17106
|
+
fieldArguments: info.fieldArguments,
|
|
17107
|
+
syncMetadata: {
|
|
17108
|
+
entityType: "files",
|
|
17109
|
+
requiredFields: ["createdAt", "id", "path", "updatedAt"]
|
|
17110
|
+
},
|
|
17111
|
+
modelFactory: (req, data, se, bu) => new File(req, data, se, bu)
|
|
17112
|
+
});
|
|
17113
|
+
return this;
|
|
17114
|
+
}
|
|
16986
17115
|
};
|
|
16987
17116
|
var IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
16988
17117
|
_variables;
|
|
@@ -16993,7 +17122,7 @@ var IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
16993
17122
|
}
|
|
16994
17123
|
async fetch(options) {
|
|
16995
17124
|
const variables = this._variables;
|
|
16996
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17125
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationDocument, "integration", this._includes, variables);
|
|
16997
17126
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integration");
|
|
16998
17127
|
const data = response.integration;
|
|
16999
17128
|
const instance = new Integration(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17005,7 +17134,7 @@ var IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17005
17134
|
watch(options) {
|
|
17006
17135
|
const variables = this._variables;
|
|
17007
17136
|
const includes = this._includes;
|
|
17008
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17137
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationDocument, "integration", includes, variables);
|
|
17009
17138
|
const raw = this._syncEngine.watch(
|
|
17010
17139
|
queryDoc,
|
|
17011
17140
|
mergedVars,
|
|
@@ -17035,10 +17164,10 @@ var IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17035
17164
|
}
|
|
17036
17165
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
17037
17166
|
provider(variables) {
|
|
17038
|
-
const info = extractIncludeInfo(
|
|
17167
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
17039
17168
|
this._includes.push({
|
|
17040
17169
|
fieldName: "provider",
|
|
17041
|
-
fragmentDoc:
|
|
17170
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationProviderFragmentDoc,
|
|
17042
17171
|
variables,
|
|
17043
17172
|
isConnection: false,
|
|
17044
17173
|
isList: false,
|
|
@@ -17061,14 +17190,14 @@ var Integration_ProviderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17061
17190
|
}
|
|
17062
17191
|
async fetch(options) {
|
|
17063
17192
|
const variables = this._variables;
|
|
17064
|
-
const response = await this._syncEngine.query(
|
|
17193
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Integration_ProviderDocument, variables, "integration");
|
|
17065
17194
|
const data = response.integration?.provider;
|
|
17066
17195
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17067
17196
|
}
|
|
17068
17197
|
watch(options) {
|
|
17069
17198
|
const variables = this._variables;
|
|
17070
17199
|
const raw = this._syncEngine.watch(
|
|
17071
|
-
|
|
17200
|
+
chunk5IUEWNZ6_cjs.Integration_ProviderDocument,
|
|
17072
17201
|
variables,
|
|
17073
17202
|
"integration",
|
|
17074
17203
|
async (db) => {
|
|
@@ -17091,14 +17220,14 @@ var Integration_Provider_CatalogQuery = class extends chunk342BFYZZ_cjs.Request
|
|
|
17091
17220
|
}
|
|
17092
17221
|
async fetch(options) {
|
|
17093
17222
|
const variables = this._variables;
|
|
17094
|
-
const response = await this._syncEngine.query(
|
|
17223
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Integration_Provider_CatalogDocument, variables, "integration");
|
|
17095
17224
|
const data = response.integration?.provider?.catalog;
|
|
17096
17225
|
return data ? new IntegrationCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17097
17226
|
}
|
|
17098
17227
|
watch(options) {
|
|
17099
17228
|
const variables = this._variables;
|
|
17100
17229
|
const raw = this._syncEngine.watch(
|
|
17101
|
-
|
|
17230
|
+
chunk5IUEWNZ6_cjs.Integration_Provider_CatalogDocument,
|
|
17102
17231
|
variables,
|
|
17103
17232
|
"integration",
|
|
17104
17233
|
async (db) => {
|
|
@@ -17122,7 +17251,7 @@ var IntegrationCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17122
17251
|
}
|
|
17123
17252
|
async fetch(options) {
|
|
17124
17253
|
const variables = this._variables;
|
|
17125
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17254
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationCatalogDocument, "integrationCatalog", this._includes, variables);
|
|
17126
17255
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrationCatalog");
|
|
17127
17256
|
const data = response.integrationCatalog;
|
|
17128
17257
|
const instance = new IntegrationCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17134,7 +17263,7 @@ var IntegrationCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17134
17263
|
watch(options) {
|
|
17135
17264
|
const variables = this._variables;
|
|
17136
17265
|
const includes = this._includes;
|
|
17137
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17266
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationCatalogDocument, "integrationCatalog", includes, variables);
|
|
17138
17267
|
const raw = this._syncEngine.watch(
|
|
17139
17268
|
queryDoc,
|
|
17140
17269
|
mergedVars,
|
|
@@ -17164,10 +17293,10 @@ var IntegrationCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17164
17293
|
}
|
|
17165
17294
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
17166
17295
|
provider(variables) {
|
|
17167
|
-
const info = extractIncludeInfo(
|
|
17296
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
17168
17297
|
this._includes.push({
|
|
17169
17298
|
fieldName: "provider",
|
|
17170
|
-
fragmentDoc:
|
|
17299
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationProviderFragmentDoc,
|
|
17171
17300
|
variables,
|
|
17172
17301
|
isConnection: false,
|
|
17173
17302
|
isList: false,
|
|
@@ -17190,14 +17319,14 @@ var IntegrationCatalog_ProviderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17190
17319
|
}
|
|
17191
17320
|
async fetch(options) {
|
|
17192
17321
|
const variables = this._variables;
|
|
17193
|
-
const response = await this._syncEngine.query(
|
|
17322
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.IntegrationCatalog_ProviderDocument, variables, "integrationCatalog");
|
|
17194
17323
|
const data = response.integrationCatalog?.provider;
|
|
17195
17324
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17196
17325
|
}
|
|
17197
17326
|
watch(options) {
|
|
17198
17327
|
const variables = this._variables;
|
|
17199
17328
|
const raw = this._syncEngine.watch(
|
|
17200
|
-
|
|
17329
|
+
chunk5IUEWNZ6_cjs.IntegrationCatalog_ProviderDocument,
|
|
17201
17330
|
variables,
|
|
17202
17331
|
"integrationCatalog",
|
|
17203
17332
|
async (db) => {
|
|
@@ -17214,7 +17343,7 @@ var IntegrationCatalog_ProviderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17214
17343
|
};
|
|
17215
17344
|
var IntegrationCatalogToolsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17216
17345
|
async fetch(variables) {
|
|
17217
|
-
const response = await this._request(
|
|
17346
|
+
const response = await this._request(chunk5IUEWNZ6_cjs.IntegrationCatalogToolsDocument, variables);
|
|
17218
17347
|
return response.integrationCatalogTools;
|
|
17219
17348
|
}
|
|
17220
17349
|
};
|
|
@@ -17227,7 +17356,7 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk342B
|
|
|
17227
17356
|
}
|
|
17228
17357
|
async fetch(options) {
|
|
17229
17358
|
const variables = this._variables;
|
|
17230
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17359
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationCatalogsDocument, "integrationCatalogs", this._includes, variables, true);
|
|
17231
17360
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrationCatalogs");
|
|
17232
17361
|
const data = response.integrationCatalogs;
|
|
17233
17362
|
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);
|
|
@@ -17244,7 +17373,7 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk342B
|
|
|
17244
17373
|
const subscriptionId = crypto.randomUUID();
|
|
17245
17374
|
const includes = this._includes;
|
|
17246
17375
|
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) }] : []);
|
|
17247
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17376
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationCatalogsDocument, "integrationCatalogs", includes, variables, true);
|
|
17248
17377
|
const raw = this._syncEngine.watch(
|
|
17249
17378
|
queryDoc,
|
|
17250
17379
|
mergedVars,
|
|
@@ -17279,10 +17408,10 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk342B
|
|
|
17279
17408
|
}
|
|
17280
17409
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
17281
17410
|
provider(variables) {
|
|
17282
|
-
const info = extractIncludeInfo(
|
|
17411
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
17283
17412
|
this._includes.push({
|
|
17284
17413
|
fieldName: "provider",
|
|
17285
|
-
fragmentDoc:
|
|
17414
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationProviderFragmentDoc,
|
|
17286
17415
|
variables,
|
|
17287
17416
|
isConnection: false,
|
|
17288
17417
|
isList: false,
|
|
@@ -17306,7 +17435,7 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
17306
17435
|
}
|
|
17307
17436
|
async fetch(options) {
|
|
17308
17437
|
const variables = this._variables;
|
|
17309
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17438
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationsDocument, "integrations", this._includes, variables, true);
|
|
17310
17439
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrations");
|
|
17311
17440
|
const data = response.integrations;
|
|
17312
17441
|
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);
|
|
@@ -17323,7 +17452,7 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
17323
17452
|
const subscriptionId = crypto.randomUUID();
|
|
17324
17453
|
const includes = this._includes;
|
|
17325
17454
|
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) }] : []);
|
|
17326
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17455
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationsDocument, "integrations", includes, variables, true);
|
|
17327
17456
|
const raw = this._syncEngine.watch(
|
|
17328
17457
|
queryDoc,
|
|
17329
17458
|
mergedVars,
|
|
@@ -17358,10 +17487,10 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk342BFYZZ_cjs.Reque
|
|
|
17358
17487
|
}
|
|
17359
17488
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
17360
17489
|
provider(variables) {
|
|
17361
|
-
const info = extractIncludeInfo(
|
|
17490
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
17362
17491
|
this._includes.push({
|
|
17363
17492
|
fieldName: "provider",
|
|
17364
|
-
fragmentDoc:
|
|
17493
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationProviderFragmentDoc,
|
|
17365
17494
|
variables,
|
|
17366
17495
|
isConnection: false,
|
|
17367
17496
|
isList: false,
|
|
@@ -17385,7 +17514,7 @@ var InterpretationsQuery = class _InterpretationsQuery extends chunk342BFYZZ_cjs
|
|
|
17385
17514
|
}
|
|
17386
17515
|
async fetch(options) {
|
|
17387
17516
|
const variables = this._variables;
|
|
17388
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17517
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.InterpretationsDocument, "interpretations", this._includes, variables, true);
|
|
17389
17518
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "interpretations");
|
|
17390
17519
|
const data = response.interpretations;
|
|
17391
17520
|
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);
|
|
@@ -17402,7 +17531,7 @@ var InterpretationsQuery = class _InterpretationsQuery extends chunk342BFYZZ_cjs
|
|
|
17402
17531
|
const subscriptionId = crypto.randomUUID();
|
|
17403
17532
|
const includes = this._includes;
|
|
17404
17533
|
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) }] : []);
|
|
17405
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17534
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.InterpretationsDocument, "interpretations", includes, variables, true);
|
|
17406
17535
|
const raw = this._syncEngine.watch(
|
|
17407
17536
|
queryDoc,
|
|
17408
17537
|
mergedVars,
|
|
@@ -17445,7 +17574,7 @@ var NotificationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17445
17574
|
}
|
|
17446
17575
|
async fetch(options) {
|
|
17447
17576
|
const variables = this._variables;
|
|
17448
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17577
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.NotificationDocument, "notification", this._includes, variables);
|
|
17449
17578
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notification");
|
|
17450
17579
|
const data = response.notification;
|
|
17451
17580
|
const instance = new Notification(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17457,7 +17586,7 @@ var NotificationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17457
17586
|
watch(options) {
|
|
17458
17587
|
const variables = this._variables;
|
|
17459
17588
|
const includes = this._includes;
|
|
17460
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17589
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.NotificationDocument, "notification", includes, variables);
|
|
17461
17590
|
const raw = this._syncEngine.watch(
|
|
17462
17591
|
queryDoc,
|
|
17463
17592
|
mergedVars,
|
|
@@ -17495,7 +17624,7 @@ var NotificationsQuery = class _NotificationsQuery extends chunk342BFYZZ_cjs.Req
|
|
|
17495
17624
|
}
|
|
17496
17625
|
async fetch(options) {
|
|
17497
17626
|
const variables = this._variables;
|
|
17498
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17627
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.NotificationsDocument, "notifications", this._includes, variables, true);
|
|
17499
17628
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notifications");
|
|
17500
17629
|
const data = response.notifications;
|
|
17501
17630
|
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);
|
|
@@ -17512,7 +17641,7 @@ var NotificationsQuery = class _NotificationsQuery extends chunk342BFYZZ_cjs.Req
|
|
|
17512
17641
|
const subscriptionId = crypto.randomUUID();
|
|
17513
17642
|
const includes = this._includes;
|
|
17514
17643
|
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) }] : []);
|
|
17515
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17644
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.NotificationsDocument, "notifications", includes, variables, true);
|
|
17516
17645
|
const raw = this._syncEngine.watch(
|
|
17517
17646
|
queryDoc,
|
|
17518
17647
|
mergedVars,
|
|
@@ -17554,7 +17683,7 @@ var NotificationsByReferenceQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17554
17683
|
this._variables = variables;
|
|
17555
17684
|
}
|
|
17556
17685
|
async fetch(options) {
|
|
17557
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17686
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.NotificationsByReferenceDocument, "notificationsByReference", this._includes, this._variables);
|
|
17558
17687
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notificationsByReference");
|
|
17559
17688
|
const data = response.notificationsByReference;
|
|
17560
17689
|
if (!Array.isArray(data)) return [];
|
|
@@ -17570,7 +17699,7 @@ var PrivacyStatsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17570
17699
|
}
|
|
17571
17700
|
async fetch(options) {
|
|
17572
17701
|
const variables = this._variables;
|
|
17573
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17702
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PrivacyStatsDocument, "privacyStats", this._includes, variables);
|
|
17574
17703
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "privacyStats");
|
|
17575
17704
|
const data = response.privacyStats;
|
|
17576
17705
|
const instance = new PrivacyStats(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17582,7 +17711,7 @@ var PrivacyStatsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17582
17711
|
watch(options) {
|
|
17583
17712
|
const variables = this._variables;
|
|
17584
17713
|
const includes = this._includes;
|
|
17585
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17714
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PrivacyStatsDocument, "privacyStats", includes, variables);
|
|
17586
17715
|
const raw = this._syncEngine.watch(
|
|
17587
17716
|
queryDoc,
|
|
17588
17717
|
mergedVars,
|
|
@@ -17620,7 +17749,7 @@ var PulseAppSummaryQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17620
17749
|
}
|
|
17621
17750
|
async fetch(options) {
|
|
17622
17751
|
const variables = this._variables;
|
|
17623
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17752
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseAppSummaryDocument, "pulseAppSummary", this._includes, variables);
|
|
17624
17753
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseAppSummary");
|
|
17625
17754
|
const data = response.pulseAppSummary;
|
|
17626
17755
|
if (!data) return void 0;
|
|
@@ -17633,7 +17762,7 @@ var PulseAppSummaryQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17633
17762
|
watch(options) {
|
|
17634
17763
|
const variables = this._variables;
|
|
17635
17764
|
const includes = this._includes;
|
|
17636
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17765
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseAppSummaryDocument, "pulseAppSummary", includes, variables);
|
|
17637
17766
|
const raw = this._syncEngine.watch(
|
|
17638
17767
|
queryDoc,
|
|
17639
17768
|
mergedVars,
|
|
@@ -17672,7 +17801,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17672
17801
|
}
|
|
17673
17802
|
async fetch(options) {
|
|
17674
17803
|
const variables = this._variables;
|
|
17675
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17804
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseEventDocument, "pulseEvent", this._includes, variables);
|
|
17676
17805
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEvent");
|
|
17677
17806
|
const data = response.pulseEvent;
|
|
17678
17807
|
const instance = new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17684,7 +17813,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17684
17813
|
watch(options) {
|
|
17685
17814
|
const variables = this._variables;
|
|
17686
17815
|
const includes = this._includes;
|
|
17687
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17816
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseEventDocument, "pulseEvent", includes, variables);
|
|
17688
17817
|
const raw = this._syncEngine.watch(
|
|
17689
17818
|
queryDoc,
|
|
17690
17819
|
mergedVars,
|
|
@@ -17714,7 +17843,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17714
17843
|
}
|
|
17715
17844
|
/** Include integration in this query (Smart Fetch — single HTTP request). */
|
|
17716
17845
|
integration(variables, builder) {
|
|
17717
|
-
const info = extractIncludeInfo(
|
|
17846
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
17718
17847
|
let children;
|
|
17719
17848
|
if (builder) {
|
|
17720
17849
|
const sub = new IntegrationSubBuilder();
|
|
@@ -17723,7 +17852,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17723
17852
|
}
|
|
17724
17853
|
this._includes.push({
|
|
17725
17854
|
fieldName: "integration",
|
|
17726
|
-
fragmentDoc:
|
|
17855
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationFragmentDoc,
|
|
17727
17856
|
variables,
|
|
17728
17857
|
isConnection: false,
|
|
17729
17858
|
isList: false,
|
|
@@ -17747,14 +17876,14 @@ var PulseEvent_IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17747
17876
|
}
|
|
17748
17877
|
async fetch(options) {
|
|
17749
17878
|
const variables = this._variables;
|
|
17750
|
-
const response = await this._syncEngine.query(
|
|
17879
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.PulseEvent_IntegrationDocument, variables, "pulseEvent");
|
|
17751
17880
|
const data = response.pulseEvent?.integration;
|
|
17752
17881
|
return data ? new Integration(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17753
17882
|
}
|
|
17754
17883
|
watch(options) {
|
|
17755
17884
|
const variables = this._variables;
|
|
17756
17885
|
const raw = this._syncEngine.watch(
|
|
17757
|
-
|
|
17886
|
+
chunk5IUEWNZ6_cjs.PulseEvent_IntegrationDocument,
|
|
17758
17887
|
variables,
|
|
17759
17888
|
"pulseEvent",
|
|
17760
17889
|
async (db) => {
|
|
@@ -17777,14 +17906,14 @@ var PulseEvent_Integration_ProviderQuery = class extends chunk342BFYZZ_cjs.Reque
|
|
|
17777
17906
|
}
|
|
17778
17907
|
async fetch(options) {
|
|
17779
17908
|
const variables = this._variables;
|
|
17780
|
-
const response = await this._syncEngine.query(
|
|
17909
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.PulseEvent_Integration_ProviderDocument, variables, "pulseEvent");
|
|
17781
17910
|
const data = response.pulseEvent?.integration?.provider;
|
|
17782
17911
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17783
17912
|
}
|
|
17784
17913
|
watch(options) {
|
|
17785
17914
|
const variables = this._variables;
|
|
17786
17915
|
const raw = this._syncEngine.watch(
|
|
17787
|
-
|
|
17916
|
+
chunk5IUEWNZ6_cjs.PulseEvent_Integration_ProviderDocument,
|
|
17788
17917
|
variables,
|
|
17789
17918
|
"pulseEvent",
|
|
17790
17919
|
async (db) => {
|
|
@@ -17808,7 +17937,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
17808
17937
|
}
|
|
17809
17938
|
async fetch(options) {
|
|
17810
17939
|
const variables = this._variables;
|
|
17811
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17940
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseEventsDocument, "pulseEvents", this._includes, variables, true);
|
|
17812
17941
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEvents");
|
|
17813
17942
|
const data = response.pulseEvents;
|
|
17814
17943
|
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);
|
|
@@ -17825,7 +17954,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
17825
17954
|
const subscriptionId = crypto.randomUUID();
|
|
17826
17955
|
const includes = this._includes;
|
|
17827
17956
|
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) }] : []);
|
|
17828
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17957
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseEventsDocument, "pulseEvents", includes, variables, true);
|
|
17829
17958
|
const raw = this._syncEngine.watch(
|
|
17830
17959
|
queryDoc,
|
|
17831
17960
|
mergedVars,
|
|
@@ -17860,7 +17989,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
17860
17989
|
}
|
|
17861
17990
|
/** Include integration in this query (Smart Fetch — single HTTP request). */
|
|
17862
17991
|
integration(variables, builder) {
|
|
17863
|
-
const info = extractIncludeInfo(
|
|
17992
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
17864
17993
|
let children;
|
|
17865
17994
|
if (builder) {
|
|
17866
17995
|
const sub = new IntegrationSubBuilder();
|
|
@@ -17869,7 +17998,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
|
|
|
17869
17998
|
}
|
|
17870
17999
|
this._includes.push({
|
|
17871
18000
|
fieldName: "integration",
|
|
17872
|
-
fragmentDoc:
|
|
18001
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationFragmentDoc,
|
|
17873
18002
|
variables,
|
|
17874
18003
|
isConnection: false,
|
|
17875
18004
|
isList: false,
|
|
@@ -17893,7 +18022,7 @@ var PulseTriggerSettingsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17893
18022
|
this._variables = variables;
|
|
17894
18023
|
}
|
|
17895
18024
|
async fetch(options) {
|
|
17896
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18025
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseTriggerSettingsDocument, "pulseTriggerSettings", this._includes, this._variables);
|
|
17897
18026
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseTriggerSettings");
|
|
17898
18027
|
const data = response.pulseTriggerSettings;
|
|
17899
18028
|
if (!Array.isArray(data)) return [];
|
|
@@ -17902,19 +18031,19 @@ var PulseTriggerSettingsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17902
18031
|
};
|
|
17903
18032
|
var QueryQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17904
18033
|
async fetch(variables) {
|
|
17905
|
-
const response = await this._request(
|
|
18034
|
+
const response = await this._request(chunk5IUEWNZ6_cjs.QueryDocument, variables);
|
|
17906
18035
|
return response.query;
|
|
17907
18036
|
}
|
|
17908
18037
|
};
|
|
17909
18038
|
var QueryWithInsightIdQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17910
18039
|
async fetch(variables) {
|
|
17911
|
-
const response = await this._request(
|
|
18040
|
+
const response = await this._request(chunk5IUEWNZ6_cjs.QueryWithInsightIdDocument, variables);
|
|
17912
18041
|
return response.queryWithInsightId;
|
|
17913
18042
|
}
|
|
17914
18043
|
};
|
|
17915
18044
|
var QueryWithMessageIdQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
17916
18045
|
async fetch(variables) {
|
|
17917
|
-
const response = await this._request(
|
|
18046
|
+
const response = await this._request(chunk5IUEWNZ6_cjs.QueryWithMessageIdDocument, variables);
|
|
17918
18047
|
return response.queryWithMessageId;
|
|
17919
18048
|
}
|
|
17920
18049
|
};
|
|
@@ -17927,7 +18056,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17927
18056
|
}
|
|
17928
18057
|
async fetch(options) {
|
|
17929
18058
|
const variables = this._variables;
|
|
17930
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18059
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ReportDocument, "report", this._includes, variables);
|
|
17931
18060
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "report");
|
|
17932
18061
|
const data = response.report;
|
|
17933
18062
|
const instance = new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -17939,7 +18068,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17939
18068
|
watch(options) {
|
|
17940
18069
|
const variables = this._variables;
|
|
17941
18070
|
const includes = this._includes;
|
|
17942
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18071
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ReportDocument, "report", includes, variables);
|
|
17943
18072
|
const raw = this._syncEngine.watch(
|
|
17944
18073
|
queryDoc,
|
|
17945
18074
|
mergedVars,
|
|
@@ -17969,7 +18098,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17969
18098
|
}
|
|
17970
18099
|
/** Include insights in this query (Smart Fetch — single HTTP request). */
|
|
17971
18100
|
insights(variables, builder) {
|
|
17972
|
-
const info = extractIncludeInfo(
|
|
18101
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
17973
18102
|
let children;
|
|
17974
18103
|
if (builder) {
|
|
17975
18104
|
const sub = new InsightSubBuilder();
|
|
@@ -17978,7 +18107,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17978
18107
|
}
|
|
17979
18108
|
this._includes.push({
|
|
17980
18109
|
fieldName: "insights",
|
|
17981
|
-
fragmentDoc:
|
|
18110
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.InsightConnectionFragmentDoc,
|
|
17982
18111
|
variables,
|
|
17983
18112
|
isConnection: true,
|
|
17984
18113
|
isList: false,
|
|
@@ -17996,10 +18125,10 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
17996
18125
|
}
|
|
17997
18126
|
/** Include layout in this query (Smart Fetch — single HTTP request). */
|
|
17998
18127
|
layout(variables) {
|
|
17999
|
-
const info = extractIncludeInfo(
|
|
18128
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
18000
18129
|
this._includes.push({
|
|
18001
18130
|
fieldName: "layout",
|
|
18002
|
-
fragmentDoc:
|
|
18131
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ReportMemberFragmentDoc,
|
|
18003
18132
|
variables,
|
|
18004
18133
|
isConnection: false,
|
|
18005
18134
|
isList: true,
|
|
@@ -18022,18 +18151,18 @@ var Report_InsightsQuery = class _Report_InsightsQuery extends chunk342BFYZZ_cjs
|
|
|
18022
18151
|
}
|
|
18023
18152
|
async fetch(options) {
|
|
18024
18153
|
const variables = this._variables;
|
|
18025
|
-
const response = await this._syncEngine.query(
|
|
18154
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Report_InsightsDocument, variables, "report");
|
|
18026
18155
|
const data = response.report?.insights;
|
|
18027
18156
|
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);
|
|
18028
18157
|
}
|
|
18029
18158
|
watch(options) {
|
|
18030
18159
|
const variables = this._variables;
|
|
18031
18160
|
const raw = this._syncEngine.watch(
|
|
18032
|
-
|
|
18161
|
+
chunk5IUEWNZ6_cjs.Report_InsightsDocument,
|
|
18033
18162
|
variables,
|
|
18034
18163
|
"report",
|
|
18035
18164
|
async (db) => {
|
|
18036
|
-
const qr = await db._queryResults.get(buildQueryKey("report", variables,
|
|
18165
|
+
const qr = await db._queryResults.get(buildQueryKey("report", variables, chunk5IUEWNZ6_cjs.Report_InsightsDocument));
|
|
18037
18166
|
const nodes = qr ? await db.table("insights").bulkGet(qr.entityIds) : [];
|
|
18038
18167
|
return { report: { insights: { __typename: "InsightConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
18039
18168
|
}
|
|
@@ -18051,7 +18180,7 @@ var Report_LayoutQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18051
18180
|
this._variables = variables;
|
|
18052
18181
|
}
|
|
18053
18182
|
async fetch(options) {
|
|
18054
|
-
const response = await this._syncEngine.query(
|
|
18183
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Report_LayoutDocument, this._variables, "report");
|
|
18055
18184
|
const data = response.report?.layout;
|
|
18056
18185
|
if (!Array.isArray(data)) return [];
|
|
18057
18186
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -18066,7 +18195,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18066
18195
|
}
|
|
18067
18196
|
async fetch(options) {
|
|
18068
18197
|
const variables = this._variables;
|
|
18069
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18198
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ReportsDocument, "reports", this._includes, variables, true);
|
|
18070
18199
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "reports");
|
|
18071
18200
|
const data = response.reports;
|
|
18072
18201
|
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);
|
|
@@ -18083,7 +18212,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18083
18212
|
const subscriptionId = crypto.randomUUID();
|
|
18084
18213
|
const includes = this._includes;
|
|
18085
18214
|
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) }] : []);
|
|
18086
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18215
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ReportsDocument, "reports", includes, variables, true);
|
|
18087
18216
|
const raw = this._syncEngine.watch(
|
|
18088
18217
|
queryDoc,
|
|
18089
18218
|
mergedVars,
|
|
@@ -18118,7 +18247,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18118
18247
|
}
|
|
18119
18248
|
/** Include insights in this query (Smart Fetch — single HTTP request). */
|
|
18120
18249
|
insights(variables, builder) {
|
|
18121
|
-
const info = extractIncludeInfo(
|
|
18250
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
18122
18251
|
let children;
|
|
18123
18252
|
if (builder) {
|
|
18124
18253
|
const sub = new InsightSubBuilder();
|
|
@@ -18127,7 +18256,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18127
18256
|
}
|
|
18128
18257
|
this._includes.push({
|
|
18129
18258
|
fieldName: "insights",
|
|
18130
|
-
fragmentDoc:
|
|
18259
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.InsightConnectionFragmentDoc,
|
|
18131
18260
|
variables,
|
|
18132
18261
|
isConnection: true,
|
|
18133
18262
|
isList: false,
|
|
@@ -18145,10 +18274,10 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18145
18274
|
}
|
|
18146
18275
|
/** Include layout in this query (Smart Fetch — single HTTP request). */
|
|
18147
18276
|
layout(variables) {
|
|
18148
|
-
const info = extractIncludeInfo(
|
|
18277
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
18149
18278
|
this._includes.push({
|
|
18150
18279
|
fieldName: "layout",
|
|
18151
|
-
fragmentDoc:
|
|
18280
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.ReportMemberFragmentDoc,
|
|
18152
18281
|
variables,
|
|
18153
18282
|
isConnection: false,
|
|
18154
18283
|
isList: true,
|
|
@@ -18171,7 +18300,7 @@ var SearchQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18171
18300
|
this._variables = variables;
|
|
18172
18301
|
}
|
|
18173
18302
|
async fetch(options) {
|
|
18174
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18303
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.SearchDocument, "search", this._includes, this._variables);
|
|
18175
18304
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "search");
|
|
18176
18305
|
const data = response.search;
|
|
18177
18306
|
if (!Array.isArray(data)) return [];
|
|
@@ -18187,7 +18316,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18187
18316
|
}
|
|
18188
18317
|
async fetch(options) {
|
|
18189
18318
|
const variables = this._variables;
|
|
18190
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18319
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.TableDocument, "table", this._includes, variables);
|
|
18191
18320
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "table");
|
|
18192
18321
|
const data = response.table;
|
|
18193
18322
|
const instance = new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18199,7 +18328,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18199
18328
|
watch(options) {
|
|
18200
18329
|
const variables = this._variables;
|
|
18201
18330
|
const includes = this._includes;
|
|
18202
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18331
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.TableDocument, "table", includes, variables);
|
|
18203
18332
|
const raw = this._syncEngine.watch(
|
|
18204
18333
|
queryDoc,
|
|
18205
18334
|
mergedVars,
|
|
@@ -18229,7 +18358,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18229
18358
|
}
|
|
18230
18359
|
/** Include database in this query (Smart Fetch — single HTTP request). */
|
|
18231
18360
|
database(variables, builder) {
|
|
18232
|
-
const info = extractIncludeInfo(
|
|
18361
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
18233
18362
|
let children;
|
|
18234
18363
|
if (builder) {
|
|
18235
18364
|
const sub = new DatabaseSubBuilder();
|
|
@@ -18238,7 +18367,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18238
18367
|
}
|
|
18239
18368
|
this._includes.push({
|
|
18240
18369
|
fieldName: "database",
|
|
18241
|
-
fragmentDoc:
|
|
18370
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseFragmentDoc,
|
|
18242
18371
|
variables,
|
|
18243
18372
|
isConnection: false,
|
|
18244
18373
|
isList: false,
|
|
@@ -18255,7 +18384,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18255
18384
|
}
|
|
18256
18385
|
/** Include document in this query (Smart Fetch — single HTTP request). */
|
|
18257
18386
|
document(variables, builder) {
|
|
18258
|
-
const info = extractIncludeInfo(
|
|
18387
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
18259
18388
|
let children;
|
|
18260
18389
|
if (builder) {
|
|
18261
18390
|
const sub = new DocumentSubBuilder();
|
|
@@ -18264,7 +18393,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18264
18393
|
}
|
|
18265
18394
|
this._includes.push({
|
|
18266
18395
|
fieldName: "document",
|
|
18267
|
-
fragmentDoc:
|
|
18396
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFragmentDoc,
|
|
18268
18397
|
variables,
|
|
18269
18398
|
isConnection: false,
|
|
18270
18399
|
isList: false,
|
|
@@ -18281,10 +18410,10 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18281
18410
|
}
|
|
18282
18411
|
/** Include fromRelations in this query (Smart Fetch — single HTTP request). */
|
|
18283
18412
|
fromRelations(variables) {
|
|
18284
|
-
const info = extractIncludeInfo(
|
|
18413
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
18285
18414
|
this._includes.push({
|
|
18286
18415
|
fieldName: "fromRelations",
|
|
18287
|
-
fragmentDoc:
|
|
18416
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.RelationFragmentDoc,
|
|
18288
18417
|
variables,
|
|
18289
18418
|
isConnection: false,
|
|
18290
18419
|
isList: true,
|
|
@@ -18300,10 +18429,10 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18300
18429
|
}
|
|
18301
18430
|
/** Include toRelations in this query (Smart Fetch — single HTTP request). */
|
|
18302
18431
|
toRelations(variables) {
|
|
18303
|
-
const info = extractIncludeInfo(
|
|
18432
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
18304
18433
|
this._includes.push({
|
|
18305
18434
|
fieldName: "toRelations",
|
|
18306
|
-
fragmentDoc:
|
|
18435
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.RelationFragmentDoc,
|
|
18307
18436
|
variables,
|
|
18308
18437
|
isConnection: false,
|
|
18309
18438
|
isList: true,
|
|
@@ -18326,14 +18455,14 @@ var Table_DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18326
18455
|
}
|
|
18327
18456
|
async fetch(options) {
|
|
18328
18457
|
const variables = this._variables;
|
|
18329
|
-
const response = await this._syncEngine.query(
|
|
18458
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_DatabaseDocument, variables, "table");
|
|
18330
18459
|
const data = response.table?.database;
|
|
18331
18460
|
return data ? new Database(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18332
18461
|
}
|
|
18333
18462
|
watch(options) {
|
|
18334
18463
|
const variables = this._variables;
|
|
18335
18464
|
const raw = this._syncEngine.watch(
|
|
18336
|
-
|
|
18465
|
+
chunk5IUEWNZ6_cjs.Table_DatabaseDocument,
|
|
18337
18466
|
variables,
|
|
18338
18467
|
"table",
|
|
18339
18468
|
async (db) => {
|
|
@@ -18356,14 +18485,14 @@ var Table_Database_EngineQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18356
18485
|
}
|
|
18357
18486
|
async fetch(options) {
|
|
18358
18487
|
const variables = this._variables;
|
|
18359
|
-
const response = await this._syncEngine.query(
|
|
18488
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_Database_EngineDocument, variables, "table");
|
|
18360
18489
|
const data = response.table?.database?.engine;
|
|
18361
18490
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18362
18491
|
}
|
|
18363
18492
|
watch(options) {
|
|
18364
18493
|
const variables = this._variables;
|
|
18365
18494
|
const raw = this._syncEngine.watch(
|
|
18366
|
-
|
|
18495
|
+
chunk5IUEWNZ6_cjs.Table_Database_EngineDocument,
|
|
18367
18496
|
variables,
|
|
18368
18497
|
"table",
|
|
18369
18498
|
async (db) => {
|
|
@@ -18386,14 +18515,14 @@ var Table_DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18386
18515
|
}
|
|
18387
18516
|
async fetch(options) {
|
|
18388
18517
|
const variables = this._variables;
|
|
18389
|
-
const response = await this._syncEngine.query(
|
|
18518
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_DocumentDocument, variables, "table");
|
|
18390
18519
|
const data = response.table?.document;
|
|
18391
18520
|
return data ? new Document(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18392
18521
|
}
|
|
18393
18522
|
watch(options) {
|
|
18394
18523
|
const variables = this._variables;
|
|
18395
18524
|
const raw = this._syncEngine.watch(
|
|
18396
|
-
|
|
18525
|
+
chunk5IUEWNZ6_cjs.Table_DocumentDocument,
|
|
18397
18526
|
variables,
|
|
18398
18527
|
"table",
|
|
18399
18528
|
async (db) => {
|
|
@@ -18415,7 +18544,7 @@ var Table_Document_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18415
18544
|
this._variables = variables;
|
|
18416
18545
|
}
|
|
18417
18546
|
async fetch(options) {
|
|
18418
|
-
const response = await this._syncEngine.query(
|
|
18547
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_Document_ContentsDocument, this._variables, "table");
|
|
18419
18548
|
const data = response.table?.document?.contents;
|
|
18420
18549
|
if (!Array.isArray(data)) return [];
|
|
18421
18550
|
return data.map((item) => new DocumentContent(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -18429,14 +18558,14 @@ var Table_Document_FileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18429
18558
|
}
|
|
18430
18559
|
async fetch(options) {
|
|
18431
18560
|
const variables = this._variables;
|
|
18432
|
-
const response = await this._syncEngine.query(
|
|
18561
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_Document_FileDocument, variables, "table");
|
|
18433
18562
|
const data = response.table?.document?.file;
|
|
18434
18563
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18435
18564
|
}
|
|
18436
18565
|
watch(options) {
|
|
18437
18566
|
const variables = this._variables;
|
|
18438
18567
|
const raw = this._syncEngine.watch(
|
|
18439
|
-
|
|
18568
|
+
chunk5IUEWNZ6_cjs.Table_Document_FileDocument,
|
|
18440
18569
|
variables,
|
|
18441
18570
|
"table",
|
|
18442
18571
|
async (db) => {
|
|
@@ -18459,14 +18588,14 @@ var Table_Document_FormatQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18459
18588
|
}
|
|
18460
18589
|
async fetch(options) {
|
|
18461
18590
|
const variables = this._variables;
|
|
18462
|
-
const response = await this._syncEngine.query(
|
|
18591
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_Document_FormatDocument, variables, "table");
|
|
18463
18592
|
const data = response.table?.document?.format;
|
|
18464
18593
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
18465
18594
|
}
|
|
18466
18595
|
watch(options) {
|
|
18467
18596
|
const variables = this._variables;
|
|
18468
18597
|
const raw = this._syncEngine.watch(
|
|
18469
|
-
|
|
18598
|
+
chunk5IUEWNZ6_cjs.Table_Document_FormatDocument,
|
|
18470
18599
|
variables,
|
|
18471
18600
|
"table",
|
|
18472
18601
|
async (db) => {
|
|
@@ -18488,7 +18617,7 @@ var Table_FromRelationsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18488
18617
|
this._variables = variables;
|
|
18489
18618
|
}
|
|
18490
18619
|
async fetch(options) {
|
|
18491
|
-
const response = await this._syncEngine.query(
|
|
18620
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_FromRelationsDocument, this._variables, "table");
|
|
18492
18621
|
const data = response.table?.fromRelations;
|
|
18493
18622
|
if (!Array.isArray(data)) return [];
|
|
18494
18623
|
return data.map((item) => new Relation(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -18501,7 +18630,7 @@ var Table_ToRelationsQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18501
18630
|
this._variables = variables;
|
|
18502
18631
|
}
|
|
18503
18632
|
async fetch(options) {
|
|
18504
|
-
const response = await this._syncEngine.query(
|
|
18633
|
+
const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_ToRelationsDocument, this._variables, "table");
|
|
18505
18634
|
const data = response.table?.toRelations;
|
|
18506
18635
|
if (!Array.isArray(data)) return [];
|
|
18507
18636
|
return data.map((item) => new Relation(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -18516,7 +18645,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18516
18645
|
}
|
|
18517
18646
|
async fetch(options) {
|
|
18518
18647
|
const variables = this._variables;
|
|
18519
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18648
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.TablesDocument, "tables", this._includes, variables, true);
|
|
18520
18649
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "tables");
|
|
18521
18650
|
const data = response.tables;
|
|
18522
18651
|
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);
|
|
@@ -18533,7 +18662,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18533
18662
|
const subscriptionId = crypto.randomUUID();
|
|
18534
18663
|
const includes = this._includes;
|
|
18535
18664
|
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) }] : []);
|
|
18536
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18665
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.TablesDocument, "tables", includes, variables, true);
|
|
18537
18666
|
const raw = this._syncEngine.watch(
|
|
18538
18667
|
queryDoc,
|
|
18539
18668
|
mergedVars,
|
|
@@ -18568,7 +18697,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18568
18697
|
}
|
|
18569
18698
|
/** Include database in this query (Smart Fetch — single HTTP request). */
|
|
18570
18699
|
database(variables, builder) {
|
|
18571
|
-
const info = extractIncludeInfo(
|
|
18700
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
18572
18701
|
let children;
|
|
18573
18702
|
if (builder) {
|
|
18574
18703
|
const sub = new DatabaseSubBuilder();
|
|
@@ -18577,7 +18706,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18577
18706
|
}
|
|
18578
18707
|
this._includes.push({
|
|
18579
18708
|
fieldName: "database",
|
|
18580
|
-
fragmentDoc:
|
|
18709
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseFragmentDoc,
|
|
18581
18710
|
variables,
|
|
18582
18711
|
isConnection: false,
|
|
18583
18712
|
isList: false,
|
|
@@ -18594,7 +18723,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18594
18723
|
}
|
|
18595
18724
|
/** Include document in this query (Smart Fetch — single HTTP request). */
|
|
18596
18725
|
document(variables, builder) {
|
|
18597
|
-
const info = extractIncludeInfo(
|
|
18726
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
18598
18727
|
let children;
|
|
18599
18728
|
if (builder) {
|
|
18600
18729
|
const sub = new DocumentSubBuilder();
|
|
@@ -18603,7 +18732,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18603
18732
|
}
|
|
18604
18733
|
this._includes.push({
|
|
18605
18734
|
fieldName: "document",
|
|
18606
|
-
fragmentDoc:
|
|
18735
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFragmentDoc,
|
|
18607
18736
|
variables,
|
|
18608
18737
|
isConnection: false,
|
|
18609
18738
|
isList: false,
|
|
@@ -18620,10 +18749,10 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18620
18749
|
}
|
|
18621
18750
|
/** Include fromRelations in this query (Smart Fetch — single HTTP request). */
|
|
18622
18751
|
fromRelations(variables) {
|
|
18623
|
-
const info = extractIncludeInfo(
|
|
18752
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
18624
18753
|
this._includes.push({
|
|
18625
18754
|
fieldName: "fromRelations",
|
|
18626
|
-
fragmentDoc:
|
|
18755
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.RelationFragmentDoc,
|
|
18627
18756
|
variables,
|
|
18628
18757
|
isConnection: false,
|
|
18629
18758
|
isList: true,
|
|
@@ -18639,10 +18768,10 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
|
|
|
18639
18768
|
}
|
|
18640
18769
|
/** Include toRelations in this query (Smart Fetch — single HTTP request). */
|
|
18641
18770
|
toRelations(variables) {
|
|
18642
|
-
const info = extractIncludeInfo(
|
|
18771
|
+
const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
18643
18772
|
this._includes.push({
|
|
18644
18773
|
fieldName: "toRelations",
|
|
18645
|
-
fragmentDoc:
|
|
18774
|
+
fragmentDoc: chunk5IUEWNZ6_cjs.RelationFragmentDoc,
|
|
18646
18775
|
variables,
|
|
18647
18776
|
isConnection: false,
|
|
18648
18777
|
isList: true,
|
|
@@ -18666,7 +18795,7 @@ var UserSkillFileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18666
18795
|
}
|
|
18667
18796
|
async fetch(options) {
|
|
18668
18797
|
const variables = this._variables;
|
|
18669
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18798
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.UserSkillFileDocument, "userSkillFile", this._includes, variables);
|
|
18670
18799
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFile");
|
|
18671
18800
|
const data = response.userSkillFile;
|
|
18672
18801
|
const instance = new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18678,7 +18807,7 @@ var UserSkillFileQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18678
18807
|
watch(options) {
|
|
18679
18808
|
const variables = this._variables;
|
|
18680
18809
|
const includes = this._includes;
|
|
18681
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18810
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.UserSkillFileDocument, "userSkillFile", includes, variables);
|
|
18682
18811
|
const raw = this._syncEngine.watch(
|
|
18683
18812
|
queryDoc,
|
|
18684
18813
|
mergedVars,
|
|
@@ -18715,7 +18844,7 @@ var UserSkillFilesQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18715
18844
|
this._variables = variables;
|
|
18716
18845
|
}
|
|
18717
18846
|
async fetch(options) {
|
|
18718
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18847
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.UserSkillFilesDocument, "userSkillFiles", this._includes, this._variables);
|
|
18719
18848
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFiles");
|
|
18720
18849
|
const data = response.userSkillFiles;
|
|
18721
18850
|
if (!Array.isArray(data)) return [];
|
|
@@ -18731,7 +18860,7 @@ var UserSkillFolderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18731
18860
|
}
|
|
18732
18861
|
async fetch(options) {
|
|
18733
18862
|
const variables = this._variables;
|
|
18734
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18863
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.UserSkillFolderDocument, "userSkillFolder", this._includes, variables);
|
|
18735
18864
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFolder");
|
|
18736
18865
|
const data = response.userSkillFolder;
|
|
18737
18866
|
const instance = new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -18743,7 +18872,7 @@ var UserSkillFolderQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18743
18872
|
watch(options) {
|
|
18744
18873
|
const variables = this._variables;
|
|
18745
18874
|
const includes = this._includes;
|
|
18746
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18875
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.UserSkillFolderDocument, "userSkillFolder", includes, variables);
|
|
18747
18876
|
const raw = this._syncEngine.watch(
|
|
18748
18877
|
queryDoc,
|
|
18749
18878
|
mergedVars,
|
|
@@ -18780,7 +18909,7 @@ var UserSkillFoldersQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18780
18909
|
this._variables = variables;
|
|
18781
18910
|
}
|
|
18782
18911
|
async fetch(options) {
|
|
18783
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18912
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.UserSkillFoldersDocument, "userSkillFolders", this._includes, this._variables);
|
|
18784
18913
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFolders");
|
|
18785
18914
|
const data = response.userSkillFolders;
|
|
18786
18915
|
if (!Array.isArray(data)) return [];
|
|
@@ -18796,7 +18925,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18796
18925
|
}
|
|
18797
18926
|
async fetch(options) {
|
|
18798
18927
|
const variables = this._variables;
|
|
18799
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18928
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", this._includes, variables);
|
|
18800
18929
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "workspaceDeletionSchedule");
|
|
18801
18930
|
const data = response.workspaceDeletionSchedule;
|
|
18802
18931
|
if (!data) return void 0;
|
|
@@ -18809,7 +18938,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18809
18938
|
watch(options) {
|
|
18810
18939
|
const variables = this._variables;
|
|
18811
18940
|
const includes = this._includes;
|
|
18812
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
18941
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", includes, variables);
|
|
18813
18942
|
const raw = this._syncEngine.watch(
|
|
18814
18943
|
queryDoc,
|
|
18815
18944
|
mergedVars,
|
|
@@ -18841,7 +18970,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18841
18970
|
};
|
|
18842
18971
|
var McpAuthUpdatesSubscription = class extends chunk342BFYZZ_cjs.Request {
|
|
18843
18972
|
async *subscribe(variables) {
|
|
18844
|
-
for await (const response of this._subscribe(
|
|
18973
|
+
for await (const response of this._subscribe(chunk5IUEWNZ6_cjs.McpAuthUpdatesDocument, variables)) {
|
|
18845
18974
|
const data = response.mcpAuthUpdates;
|
|
18846
18975
|
yield new McpAuthUpdateModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
18847
18976
|
}
|
|
@@ -18849,12 +18978,12 @@ var McpAuthUpdatesSubscription = class extends chunk342BFYZZ_cjs.Request {
|
|
|
18849
18978
|
};
|
|
18850
18979
|
var SendMessageStreamSubscription = class extends chunk342BFYZZ_cjs.Request {
|
|
18851
18980
|
subscribe(variables) {
|
|
18852
|
-
return this._subscribe(
|
|
18981
|
+
return this._subscribe(chunk5IUEWNZ6_cjs.SendMessageStreamDocument, variables);
|
|
18853
18982
|
}
|
|
18854
18983
|
};
|
|
18855
18984
|
var TokenUsageUpdatesSubscription = class extends chunk342BFYZZ_cjs.Request {
|
|
18856
18985
|
async *subscribe(variables) {
|
|
18857
|
-
for await (const response of this._subscribe(
|
|
18986
|
+
for await (const response of this._subscribe(chunk5IUEWNZ6_cjs.TokenUsageUpdatesDocument, variables)) {
|
|
18858
18987
|
const data = response.tokenUsageUpdates;
|
|
18859
18988
|
yield new UsageStatus(this._request, data, this._syncEngine, this._baseUrl);
|
|
18860
18989
|
}
|
|
@@ -19100,6 +19229,10 @@ var DvinaSdk = class extends chunk342BFYZZ_cjs.Request {
|
|
|
19100
19229
|
updateInsightInReport(variables) {
|
|
19101
19230
|
return new UpdateInsightInReportMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
19102
19231
|
}
|
|
19232
|
+
/** Mutation: updateInsightThumbnail (scalar) */
|
|
19233
|
+
updateInsightThumbnail(variables) {
|
|
19234
|
+
return new UpdateInsightThumbnailMutation(this._request, this._syncEngine).fetch(variables);
|
|
19235
|
+
}
|
|
19103
19236
|
/** Mutation: updateInterp */
|
|
19104
19237
|
updateInterp(variables) {
|
|
19105
19238
|
return new UpdateInterpMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
@@ -19482,6 +19615,7 @@ exports.Chat_AgentsQuery = Chat_AgentsQuery;
|
|
|
19482
19615
|
exports.Chat_ArtifactsQuery = Chat_ArtifactsQuery;
|
|
19483
19616
|
exports.Chat_InsightQuery = Chat_InsightQuery;
|
|
19484
19617
|
exports.Chat_Insight_ReportMembersQuery = Chat_Insight_ReportMembersQuery;
|
|
19618
|
+
exports.Chat_Insight_ThumbnailFileQuery = Chat_Insight_ThumbnailFileQuery;
|
|
19485
19619
|
exports.Chat_MessagesQuery = Chat_MessagesQuery;
|
|
19486
19620
|
exports.ChatsQuery = ChatsQuery;
|
|
19487
19621
|
exports.ConnectIntegrationMutation = ConnectIntegrationMutation;
|
|
@@ -19613,6 +19747,7 @@ exports.InsightSubBuilder = InsightSubBuilder;
|
|
|
19613
19747
|
exports.Insight_ChatQuery = Insight_ChatQuery;
|
|
19614
19748
|
exports.Insight_ReportMembersQuery = Insight_ReportMembersQuery;
|
|
19615
19749
|
exports.Insight_ReportsQuery = Insight_ReportsQuery;
|
|
19750
|
+
exports.Insight_ThumbnailFileQuery = Insight_ThumbnailFileQuery;
|
|
19616
19751
|
exports.InsightsQuery = InsightsQuery;
|
|
19617
19752
|
exports.Integration = Integration;
|
|
19618
19753
|
exports.IntegrationCatalog = IntegrationCatalog;
|
|
@@ -19727,6 +19862,7 @@ exports.UpdateDocumentMutation = UpdateDocumentMutation;
|
|
|
19727
19862
|
exports.UpdateFolderMutation = UpdateFolderMutation;
|
|
19728
19863
|
exports.UpdateInsightInReportMutation = UpdateInsightInReportMutation;
|
|
19729
19864
|
exports.UpdateInsightMutation = UpdateInsightMutation;
|
|
19865
|
+
exports.UpdateInsightThumbnailMutation = UpdateInsightThumbnailMutation;
|
|
19730
19866
|
exports.UpdateInterpMutation = UpdateInterpMutation;
|
|
19731
19867
|
exports.UpdatePulseTriggerMutation = UpdatePulseTriggerMutation;
|
|
19732
19868
|
exports.UpdateReportMutation = UpdateReportMutation;
|
|
@@ -19757,5 +19893,5 @@ exports.getOrCreateDatabase = getOrCreateDatabase;
|
|
|
19757
19893
|
exports.reconstructConnectionNodes = reconstructConnectionNodes;
|
|
19758
19894
|
exports.reconstructEntity = reconstructEntity;
|
|
19759
19895
|
exports.uploadFile = uploadFile;
|
|
19760
|
-
//# sourceMappingURL=chunk-
|
|
19761
|
-
//# sourceMappingURL=chunk-
|
|
19896
|
+
//# sourceMappingURL=chunk-KH5LMKKK.cjs.map
|
|
19897
|
+
//# sourceMappingURL=chunk-KH5LMKKK.cjs.map
|