@dvina/sdk 4.0.5 → 4.0.31
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-BUDHKOOE.js +4 -0
- package/dist/{_generated_documents-AODD423G.js.map → _generated_documents-BUDHKOOE.js.map} +1 -1
- package/dist/{_generated_documents-HTHWTLGT.cjs → _generated_documents-YYWUEFO6.cjs} +522 -422
- package/dist/{_generated_documents-HTHWTLGT.cjs.map → _generated_documents-YYWUEFO6.cjs.map} +1 -1
- package/dist/adapters/angular/index.cjs +4 -4
- package/dist/adapters/angular/index.js +2 -2
- package/dist/{chunk-5HODZTE2.cjs → chunk-J4D5NNBG.cjs} +1033 -431
- package/dist/chunk-J4D5NNBG.cjs.map +1 -0
- package/dist/{chunk-HHR27PDE.js → chunk-KGSFT3KV.js} +591 -8
- package/dist/chunk-KGSFT3KV.js.map +1 -0
- package/dist/{chunk-57QJNKRV.cjs → chunk-NVBJ6NKK.cjs} +100 -13
- package/dist/chunk-NVBJ6NKK.cjs.map +1 -0
- package/dist/{chunk-2SDQPYT6.js → chunk-R25LNOGL.js} +76 -14
- package/dist/chunk-R25LNOGL.js.map +1 -0
- package/dist/index.cjs +406 -314
- package/dist/index.d.cts +432 -1
- package/dist/index.d.ts +432 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/dist/_generated_documents-AODD423G.js +0 -4
- package/dist/chunk-2SDQPYT6.js.map +0 -1
- package/dist/chunk-57QJNKRV.cjs.map +0 -1
- package/dist/chunk-5HODZTE2.cjs.map +0 -1
- package/dist/chunk-HHR27PDE.js.map +0 -1
|
@@ -4,7 +4,7 @@ var chunk4QKWHQT2_cjs = require('./chunk-4QKWHQT2.cjs');
|
|
|
4
4
|
var chunkUELAE75E_cjs = require('./chunk-UELAE75E.cjs');
|
|
5
5
|
var chunkBL3GFOZR_cjs = require('./chunk-BL3GFOZR.cjs');
|
|
6
6
|
var chunkKV5SP7RP_cjs = require('./chunk-KV5SP7RP.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkNVBJ6NKK_cjs = require('./chunk-NVBJ6NKK.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
|
|
@@ -6974,7 +6974,7 @@ function createWsTransport(options) {
|
|
|
6974
6974
|
}
|
|
6975
6975
|
|
|
6976
6976
|
// src/_generated_store.ts
|
|
6977
|
-
var SCHEMA_HASH = "
|
|
6977
|
+
var SCHEMA_HASH = "8f2a7503e7868d35";
|
|
6978
6978
|
var DB_ENTITY_SCHEMA = {
|
|
6979
6979
|
actions: "id",
|
|
6980
6980
|
agents: "id",
|
|
@@ -7008,6 +7008,10 @@ var DB_ENTITY_SCHEMA = {
|
|
|
7008
7008
|
mcpTools: "id",
|
|
7009
7009
|
modelTokenUsages: "id",
|
|
7010
7010
|
notifications: "id",
|
|
7011
|
+
pulseAppSummaryModels: "integrationId",
|
|
7012
|
+
pulseEvents: "id",
|
|
7013
|
+
pulseEventStatsModels: "id",
|
|
7014
|
+
pulseTriggerSettingModels: "[integrationId+slug]",
|
|
7011
7015
|
relations: "id",
|
|
7012
7016
|
reportMembers: "[reportId+insightId]",
|
|
7013
7017
|
reports: "id",
|
|
@@ -7051,6 +7055,10 @@ var TYPENAME_TO_TABLE = {
|
|
|
7051
7055
|
McpTool: "mcpTools",
|
|
7052
7056
|
ModelTokenUsage: "modelTokenUsages",
|
|
7053
7057
|
Notification: "notifications",
|
|
7058
|
+
PulseAppSummaryModel: "pulseAppSummaryModels",
|
|
7059
|
+
PulseEvent: "pulseEvents",
|
|
7060
|
+
PulseEventStatsModel: "pulseEventStatsModels",
|
|
7061
|
+
PulseTriggerSettingModel: "pulseTriggerSettingModels",
|
|
7054
7062
|
Relation: "relations",
|
|
7055
7063
|
Report: "reports",
|
|
7056
7064
|
ReportMember: "reportMembers",
|
|
@@ -7094,6 +7102,10 @@ var TABLE_TO_TYPENAME = {
|
|
|
7094
7102
|
mcpTools: "McpTool",
|
|
7095
7103
|
modelTokenUsages: "ModelTokenUsage",
|
|
7096
7104
|
notifications: "Notification",
|
|
7105
|
+
pulseAppSummaryModels: "PulseAppSummaryModel",
|
|
7106
|
+
pulseEvents: "PulseEvent",
|
|
7107
|
+
pulseEventStatsModels: "PulseEventStatsModel",
|
|
7108
|
+
pulseTriggerSettingModels: "PulseTriggerSettingModel",
|
|
7097
7109
|
relations: "Relation",
|
|
7098
7110
|
reportMembers: "ReportMember",
|
|
7099
7111
|
reports: "Report",
|
|
@@ -7111,6 +7123,8 @@ var PRIMARY_KEY_CONFIG = {
|
|
|
7111
7123
|
documentFormats: "key",
|
|
7112
7124
|
integrationCatalogs: "providerKey",
|
|
7113
7125
|
integrationProviders: "key",
|
|
7126
|
+
pulseAppSummaryModels: "integrationId",
|
|
7127
|
+
pulseTriggerSettingModels: ["integrationId", "slug"],
|
|
7114
7128
|
reportMembers: ["reportId", "insightId"]
|
|
7115
7129
|
};
|
|
7116
7130
|
var MUTATION_CACHE_RULES = {
|
|
@@ -8397,8 +8411,18 @@ var QueryExecutor = class {
|
|
|
8397
8411
|
* revalidation.
|
|
8398
8412
|
*/
|
|
8399
8413
|
watch(document2, variables, operationName, buildResult) {
|
|
8400
|
-
|
|
8401
|
-
|
|
8414
|
+
let ref;
|
|
8415
|
+
ref = new DexieLiveQueryRef(
|
|
8416
|
+
async () => {
|
|
8417
|
+
try {
|
|
8418
|
+
return await buildResult(this._db);
|
|
8419
|
+
} catch (error) {
|
|
8420
|
+
if (isMissingDexieTableError(error)) {
|
|
8421
|
+
return ref.current;
|
|
8422
|
+
}
|
|
8423
|
+
throw error;
|
|
8424
|
+
}
|
|
8425
|
+
},
|
|
8402
8426
|
async (refetchVars) => {
|
|
8403
8427
|
const merged = { ...variables, ...refetchVars };
|
|
8404
8428
|
const data = await this.query(document2, merged, operationName);
|
|
@@ -9429,7 +9453,7 @@ function createLazySyncEngine(httpTransport, sseUrl, syncPolicyUrl, getToken, ge
|
|
|
9429
9453
|
var DEFAULT_UPLOAD_CONTENT_TYPE = "application/octet-stream";
|
|
9430
9454
|
var AZURE_BLOCK_BLOB_TYPE = "BlockBlob";
|
|
9431
9455
|
async function uploadFile(request, getToken, file, name, options) {
|
|
9432
|
-
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-
|
|
9456
|
+
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-YYWUEFO6.cjs');
|
|
9433
9457
|
const key = `upload_${Date.now()}`;
|
|
9434
9458
|
const response = await request(
|
|
9435
9459
|
GenerateUploadUriDocument2,
|
|
@@ -10657,6 +10681,7 @@ var Insight = class extends DvinaModel {
|
|
|
10657
10681
|
}
|
|
10658
10682
|
};
|
|
10659
10683
|
var Integration = class extends DvinaModel {
|
|
10684
|
+
connectedAt;
|
|
10660
10685
|
createdAt;
|
|
10661
10686
|
id;
|
|
10662
10687
|
providerKey;
|
|
@@ -10664,6 +10689,7 @@ var Integration = class extends DvinaModel {
|
|
|
10664
10689
|
updatedAt;
|
|
10665
10690
|
constructor(request, data, syncEngine, baseUrl) {
|
|
10666
10691
|
super(request, syncEngine, baseUrl);
|
|
10692
|
+
this.connectedAt = data.connectedAt ? new Date(data.connectedAt) : void 0;
|
|
10667
10693
|
this.createdAt = new Date(data.createdAt);
|
|
10668
10694
|
this.id = data.id;
|
|
10669
10695
|
this.providerKey = data.providerKey;
|
|
@@ -10948,6 +10974,98 @@ var PrivacyStats = class extends DvinaModel {
|
|
|
10948
10974
|
this.messagesProtectedFromTraining = data.messagesProtectedFromTraining ?? void 0;
|
|
10949
10975
|
}
|
|
10950
10976
|
};
|
|
10977
|
+
var PulseAppSummaryModel = class extends DvinaModel {
|
|
10978
|
+
activeTriggerCount;
|
|
10979
|
+
integrationId;
|
|
10980
|
+
providerKey;
|
|
10981
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
10982
|
+
super(request, syncEngine, baseUrl);
|
|
10983
|
+
this.activeTriggerCount = data.activeTriggerCount;
|
|
10984
|
+
this.integrationId = data.integrationId;
|
|
10985
|
+
this.providerKey = data.providerKey ?? void 0;
|
|
10986
|
+
}
|
|
10987
|
+
};
|
|
10988
|
+
var PulseEvent = class extends DvinaModel {
|
|
10989
|
+
acknowledgedAt;
|
|
10990
|
+
actions;
|
|
10991
|
+
createdAt;
|
|
10992
|
+
dedupeKey;
|
|
10993
|
+
dismissedAt;
|
|
10994
|
+
id;
|
|
10995
|
+
integrationId;
|
|
10996
|
+
kind;
|
|
10997
|
+
message;
|
|
10998
|
+
payload;
|
|
10999
|
+
priority;
|
|
11000
|
+
providerKey;
|
|
11001
|
+
remoteEventId;
|
|
11002
|
+
remoteLogId;
|
|
11003
|
+
remoteTriggerId;
|
|
11004
|
+
resolvedAt;
|
|
11005
|
+
seenAt;
|
|
11006
|
+
status;
|
|
11007
|
+
summary;
|
|
11008
|
+
title;
|
|
11009
|
+
triggerSlug;
|
|
11010
|
+
updatedAt;
|
|
11011
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
11012
|
+
super(request, syncEngine, baseUrl);
|
|
11013
|
+
this.acknowledgedAt = data.acknowledgedAt ? new Date(data.acknowledgedAt) : void 0;
|
|
11014
|
+
this.actions = data.actions ?? void 0;
|
|
11015
|
+
this.createdAt = new Date(data.createdAt);
|
|
11016
|
+
this.dedupeKey = data.dedupeKey ?? void 0;
|
|
11017
|
+
this.dismissedAt = data.dismissedAt ? new Date(data.dismissedAt) : void 0;
|
|
11018
|
+
this.id = data.id;
|
|
11019
|
+
this.integrationId = data.integrationId;
|
|
11020
|
+
this.kind = data.kind;
|
|
11021
|
+
this.message = data.message ?? void 0;
|
|
11022
|
+
this.payload = data.payload ?? void 0;
|
|
11023
|
+
this.priority = data.priority;
|
|
11024
|
+
this.providerKey = data.providerKey;
|
|
11025
|
+
this.remoteEventId = data.remoteEventId;
|
|
11026
|
+
this.remoteLogId = data.remoteLogId ?? void 0;
|
|
11027
|
+
this.remoteTriggerId = data.remoteTriggerId ?? void 0;
|
|
11028
|
+
this.resolvedAt = data.resolvedAt ? new Date(data.resolvedAt) : void 0;
|
|
11029
|
+
this.seenAt = data.seenAt ? new Date(data.seenAt) : void 0;
|
|
11030
|
+
this.status = data.status;
|
|
11031
|
+
this.summary = data.summary ?? void 0;
|
|
11032
|
+
this.title = data.title;
|
|
11033
|
+
this.triggerSlug = data.triggerSlug;
|
|
11034
|
+
this.updatedAt = new Date(data.updatedAt);
|
|
11035
|
+
}
|
|
11036
|
+
/** Query the integration relation for this PulseEvent. Call .fetch() or .watch() to execute. */
|
|
11037
|
+
integration(variables) {
|
|
11038
|
+
return new PulseEvent_IntegrationQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
|
|
11039
|
+
}
|
|
11040
|
+
};
|
|
11041
|
+
var PulseEventStatsModel = class extends DvinaModel {
|
|
11042
|
+
highPriorityCount;
|
|
11043
|
+
needsActionCount;
|
|
11044
|
+
unreadCount;
|
|
11045
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
11046
|
+
super(request, syncEngine, baseUrl);
|
|
11047
|
+
this.highPriorityCount = data.highPriorityCount;
|
|
11048
|
+
this.needsActionCount = data.needsActionCount;
|
|
11049
|
+
this.unreadCount = data.unreadCount;
|
|
11050
|
+
}
|
|
11051
|
+
};
|
|
11052
|
+
var PulseTriggerSettingModel = class extends DvinaModel {
|
|
11053
|
+
integrationId;
|
|
11054
|
+
isEnabled;
|
|
11055
|
+
message;
|
|
11056
|
+
name;
|
|
11057
|
+
providerKey;
|
|
11058
|
+
slug;
|
|
11059
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
11060
|
+
super(request, syncEngine, baseUrl);
|
|
11061
|
+
this.integrationId = data.integrationId;
|
|
11062
|
+
this.isEnabled = data.isEnabled;
|
|
11063
|
+
this.message = data.message ?? void 0;
|
|
11064
|
+
this.name = data.name;
|
|
11065
|
+
this.providerKey = data.providerKey;
|
|
11066
|
+
this.slug = data.slug;
|
|
11067
|
+
}
|
|
11068
|
+
};
|
|
10951
11069
|
var ReasoningEventOutput = class extends DvinaModel {
|
|
10952
11070
|
delta;
|
|
10953
11071
|
type;
|
|
@@ -11477,6 +11595,17 @@ var NotificationConnection = class extends chunk4QKWHQT2_cjs.Connection {
|
|
|
11477
11595
|
);
|
|
11478
11596
|
}
|
|
11479
11597
|
};
|
|
11598
|
+
var PulseEventConnection = class extends chunk4QKWHQT2_cjs.Connection {
|
|
11599
|
+
constructor(request, fetch2, data, syncEngine, baseUrl) {
|
|
11600
|
+
super(
|
|
11601
|
+
request,
|
|
11602
|
+
fetch2,
|
|
11603
|
+
data.nodes?.map((node) => new PulseEvent(request, node, syncEngine, baseUrl)) ?? [],
|
|
11604
|
+
new chunk4QKWHQT2_cjs.PageInfo(data.pageInfo),
|
|
11605
|
+
data.totalCount ?? void 0
|
|
11606
|
+
);
|
|
11607
|
+
}
|
|
11608
|
+
};
|
|
11480
11609
|
var ReportConnection = class extends chunk4QKWHQT2_cjs.Connection {
|
|
11481
11610
|
constructor(request, fetch2, data, syncEngine, baseUrl) {
|
|
11482
11611
|
super(
|
|
@@ -11504,7 +11633,7 @@ var AgentSubBuilder = class {
|
|
|
11504
11633
|
_includes = [];
|
|
11505
11634
|
/** Include chats in the parent query. */
|
|
11506
11635
|
chats(variables, builder) {
|
|
11507
|
-
const info = extractIncludeInfo(
|
|
11636
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
11508
11637
|
let children;
|
|
11509
11638
|
if (builder) {
|
|
11510
11639
|
const sub = new ChatSubBuilder();
|
|
@@ -11513,7 +11642,7 @@ var AgentSubBuilder = class {
|
|
|
11513
11642
|
}
|
|
11514
11643
|
this._includes.push({
|
|
11515
11644
|
fieldName: "chats",
|
|
11516
|
-
fragmentDoc:
|
|
11645
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatConnectionFragmentDoc,
|
|
11517
11646
|
variables,
|
|
11518
11647
|
isConnection: true,
|
|
11519
11648
|
isList: false,
|
|
@@ -11535,7 +11664,7 @@ var ArtifactSubBuilder = class {
|
|
|
11535
11664
|
_includes = [];
|
|
11536
11665
|
/** Include chat in the parent query. */
|
|
11537
11666
|
chat(variables, builder) {
|
|
11538
|
-
const info = extractIncludeInfo(
|
|
11667
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
11539
11668
|
let children;
|
|
11540
11669
|
if (builder) {
|
|
11541
11670
|
const sub = new ChatSubBuilder();
|
|
@@ -11544,7 +11673,7 @@ var ArtifactSubBuilder = class {
|
|
|
11544
11673
|
}
|
|
11545
11674
|
this._includes.push({
|
|
11546
11675
|
fieldName: "chat",
|
|
11547
|
-
fragmentDoc:
|
|
11676
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatFragmentDoc,
|
|
11548
11677
|
variables,
|
|
11549
11678
|
isConnection: false,
|
|
11550
11679
|
isList: false,
|
|
@@ -11561,10 +11690,10 @@ var ArtifactSubBuilder = class {
|
|
|
11561
11690
|
}
|
|
11562
11691
|
/** Include file in the parent query. */
|
|
11563
11692
|
file(variables) {
|
|
11564
|
-
const info = extractIncludeInfo(
|
|
11693
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
11565
11694
|
this._includes.push({
|
|
11566
11695
|
fieldName: "file",
|
|
11567
|
-
fragmentDoc:
|
|
11696
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.FileFragmentDoc,
|
|
11568
11697
|
variables,
|
|
11569
11698
|
isConnection: false,
|
|
11570
11699
|
isList: false,
|
|
@@ -11580,7 +11709,7 @@ var ArtifactSubBuilder = class {
|
|
|
11580
11709
|
}
|
|
11581
11710
|
/** Include message in the parent query. */
|
|
11582
11711
|
message(variables, builder) {
|
|
11583
|
-
const info = extractIncludeInfo(
|
|
11712
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
11584
11713
|
let children;
|
|
11585
11714
|
if (builder) {
|
|
11586
11715
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -11589,7 +11718,7 @@ var ArtifactSubBuilder = class {
|
|
|
11589
11718
|
}
|
|
11590
11719
|
this._includes.push({
|
|
11591
11720
|
fieldName: "message",
|
|
11592
|
-
fragmentDoc:
|
|
11721
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatMessageFragmentDoc,
|
|
11593
11722
|
variables,
|
|
11594
11723
|
isConnection: false,
|
|
11595
11724
|
isList: false,
|
|
@@ -11610,7 +11739,7 @@ var ChatSubBuilder = class {
|
|
|
11610
11739
|
_includes = [];
|
|
11611
11740
|
/** Include agents in the parent query. */
|
|
11612
11741
|
agents(variables, builder) {
|
|
11613
|
-
const info = extractIncludeInfo(
|
|
11742
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
11614
11743
|
let children;
|
|
11615
11744
|
if (builder) {
|
|
11616
11745
|
const sub = new AgentSubBuilder();
|
|
@@ -11619,7 +11748,7 @@ var ChatSubBuilder = class {
|
|
|
11619
11748
|
}
|
|
11620
11749
|
this._includes.push({
|
|
11621
11750
|
fieldName: "agents",
|
|
11622
|
-
fragmentDoc:
|
|
11751
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.AgentConnectionFragmentDoc,
|
|
11623
11752
|
variables,
|
|
11624
11753
|
isConnection: true,
|
|
11625
11754
|
isList: false,
|
|
@@ -11637,7 +11766,7 @@ var ChatSubBuilder = class {
|
|
|
11637
11766
|
}
|
|
11638
11767
|
/** Include artifacts in the parent query. */
|
|
11639
11768
|
artifacts(variables, builder) {
|
|
11640
|
-
const info = extractIncludeInfo(
|
|
11769
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
11641
11770
|
let children;
|
|
11642
11771
|
if (builder) {
|
|
11643
11772
|
const sub = new ArtifactSubBuilder();
|
|
@@ -11646,7 +11775,7 @@ var ChatSubBuilder = class {
|
|
|
11646
11775
|
}
|
|
11647
11776
|
this._includes.push({
|
|
11648
11777
|
fieldName: "artifacts",
|
|
11649
|
-
fragmentDoc:
|
|
11778
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ArtifactConnectionFragmentDoc,
|
|
11650
11779
|
variables,
|
|
11651
11780
|
isConnection: true,
|
|
11652
11781
|
isList: false,
|
|
@@ -11664,7 +11793,7 @@ var ChatSubBuilder = class {
|
|
|
11664
11793
|
}
|
|
11665
11794
|
/** Include insight in the parent query. */
|
|
11666
11795
|
insight(variables, builder) {
|
|
11667
|
-
const info = extractIncludeInfo(
|
|
11796
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
11668
11797
|
let children;
|
|
11669
11798
|
if (builder) {
|
|
11670
11799
|
const sub = new InsightSubBuilder();
|
|
@@ -11673,7 +11802,7 @@ var ChatSubBuilder = class {
|
|
|
11673
11802
|
}
|
|
11674
11803
|
this._includes.push({
|
|
11675
11804
|
fieldName: "insight",
|
|
11676
|
-
fragmentDoc:
|
|
11805
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.InsightFragmentDoc,
|
|
11677
11806
|
variables,
|
|
11678
11807
|
isConnection: false,
|
|
11679
11808
|
isList: false,
|
|
@@ -11690,7 +11819,7 @@ var ChatSubBuilder = class {
|
|
|
11690
11819
|
}
|
|
11691
11820
|
/** Include messages in the parent query. */
|
|
11692
11821
|
messages(variables, builder) {
|
|
11693
|
-
const info = extractIncludeInfo(
|
|
11822
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
11694
11823
|
let children;
|
|
11695
11824
|
if (builder) {
|
|
11696
11825
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -11699,7 +11828,7 @@ var ChatSubBuilder = class {
|
|
|
11699
11828
|
}
|
|
11700
11829
|
this._includes.push({
|
|
11701
11830
|
fieldName: "messages",
|
|
11702
|
-
fragmentDoc:
|
|
11831
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatMessageConnectionFragmentDoc,
|
|
11703
11832
|
variables,
|
|
11704
11833
|
isConnection: true,
|
|
11705
11834
|
isList: false,
|
|
@@ -11721,7 +11850,7 @@ var ChatMessageSubBuilder = class {
|
|
|
11721
11850
|
_includes = [];
|
|
11722
11851
|
/** Include artifacts in the parent query. */
|
|
11723
11852
|
artifacts(variables, builder) {
|
|
11724
|
-
const info = extractIncludeInfo(
|
|
11853
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
11725
11854
|
let children;
|
|
11726
11855
|
if (builder) {
|
|
11727
11856
|
const sub = new ArtifactSubBuilder();
|
|
@@ -11730,7 +11859,7 @@ var ChatMessageSubBuilder = class {
|
|
|
11730
11859
|
}
|
|
11731
11860
|
this._includes.push({
|
|
11732
11861
|
fieldName: "artifacts",
|
|
11733
|
-
fragmentDoc:
|
|
11862
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ArtifactConnectionFragmentDoc,
|
|
11734
11863
|
variables,
|
|
11735
11864
|
isConnection: true,
|
|
11736
11865
|
isList: false,
|
|
@@ -11748,7 +11877,7 @@ var ChatMessageSubBuilder = class {
|
|
|
11748
11877
|
}
|
|
11749
11878
|
/** Include chat in the parent query. */
|
|
11750
11879
|
chat(variables, builder) {
|
|
11751
|
-
const info = extractIncludeInfo(
|
|
11880
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
11752
11881
|
let children;
|
|
11753
11882
|
if (builder) {
|
|
11754
11883
|
const sub = new ChatSubBuilder();
|
|
@@ -11757,7 +11886,7 @@ var ChatMessageSubBuilder = class {
|
|
|
11757
11886
|
}
|
|
11758
11887
|
this._includes.push({
|
|
11759
11888
|
fieldName: "chat",
|
|
11760
|
-
fragmentDoc:
|
|
11889
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatFragmentDoc,
|
|
11761
11890
|
variables,
|
|
11762
11891
|
isConnection: false,
|
|
11763
11892
|
isList: false,
|
|
@@ -11774,10 +11903,10 @@ var ChatMessageSubBuilder = class {
|
|
|
11774
11903
|
}
|
|
11775
11904
|
/** Include contents in the parent query. */
|
|
11776
11905
|
contents(variables) {
|
|
11777
|
-
const info = extractIncludeInfo(
|
|
11906
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
11778
11907
|
this._includes.push({
|
|
11779
11908
|
fieldName: "contents",
|
|
11780
|
-
fragmentDoc:
|
|
11909
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ContentBlockFragmentDoc,
|
|
11781
11910
|
variables,
|
|
11782
11911
|
isConnection: false,
|
|
11783
11912
|
isList: true,
|
|
@@ -11793,10 +11922,10 @@ var ChatMessageSubBuilder = class {
|
|
|
11793
11922
|
}
|
|
11794
11923
|
/** Include feedback in the parent query. */
|
|
11795
11924
|
feedback(variables) {
|
|
11796
|
-
const info = extractIncludeInfo(
|
|
11925
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
11797
11926
|
this._includes.push({
|
|
11798
11927
|
fieldName: "feedback",
|
|
11799
|
-
fragmentDoc:
|
|
11928
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.FeedbackFragmentDoc,
|
|
11800
11929
|
variables,
|
|
11801
11930
|
isConnection: false,
|
|
11802
11931
|
isList: false,
|
|
@@ -11816,10 +11945,10 @@ var DatabaseSubBuilder = class {
|
|
|
11816
11945
|
_includes = [];
|
|
11817
11946
|
/** Include engine in the parent query. */
|
|
11818
11947
|
engine(variables) {
|
|
11819
|
-
const info = extractIncludeInfo(
|
|
11948
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
11820
11949
|
this._includes.push({
|
|
11821
11950
|
fieldName: "engine",
|
|
11822
|
-
fragmentDoc:
|
|
11951
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DatabaseEngineFragmentDoc,
|
|
11823
11952
|
variables,
|
|
11824
11953
|
isConnection: false,
|
|
11825
11954
|
isList: false,
|
|
@@ -11835,7 +11964,7 @@ var DatabaseSubBuilder = class {
|
|
|
11835
11964
|
}
|
|
11836
11965
|
/** Include tables in the parent query. */
|
|
11837
11966
|
tables(variables, builder) {
|
|
11838
|
-
const info = extractIncludeInfo(
|
|
11967
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
11839
11968
|
let children;
|
|
11840
11969
|
if (builder) {
|
|
11841
11970
|
const sub = new TableSubBuilder();
|
|
@@ -11844,7 +11973,7 @@ var DatabaseSubBuilder = class {
|
|
|
11844
11973
|
}
|
|
11845
11974
|
this._includes.push({
|
|
11846
11975
|
fieldName: "tables",
|
|
11847
|
-
fragmentDoc:
|
|
11976
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.TableConnectionFragmentDoc,
|
|
11848
11977
|
variables,
|
|
11849
11978
|
isConnection: true,
|
|
11850
11979
|
isList: false,
|
|
@@ -11866,10 +11995,10 @@ var DatabaseCatalogSubBuilder = class {
|
|
|
11866
11995
|
_includes = [];
|
|
11867
11996
|
/** Include engine in the parent query. */
|
|
11868
11997
|
engine(variables) {
|
|
11869
|
-
const info = extractIncludeInfo(
|
|
11998
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
11870
11999
|
this._includes.push({
|
|
11871
12000
|
fieldName: "engine",
|
|
11872
|
-
fragmentDoc:
|
|
12001
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DatabaseEngineFragmentDoc,
|
|
11873
12002
|
variables,
|
|
11874
12003
|
isConnection: false,
|
|
11875
12004
|
isList: false,
|
|
@@ -11889,10 +12018,10 @@ var DocumentSubBuilder = class {
|
|
|
11889
12018
|
_includes = [];
|
|
11890
12019
|
/** Include contents in the parent query. */
|
|
11891
12020
|
contents(variables) {
|
|
11892
|
-
const info = extractIncludeInfo(
|
|
12021
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
11893
12022
|
this._includes.push({
|
|
11894
12023
|
fieldName: "contents",
|
|
11895
|
-
fragmentDoc:
|
|
12024
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DocumentContentFragmentDoc,
|
|
11896
12025
|
variables,
|
|
11897
12026
|
isConnection: false,
|
|
11898
12027
|
isList: true,
|
|
@@ -11908,10 +12037,10 @@ var DocumentSubBuilder = class {
|
|
|
11908
12037
|
}
|
|
11909
12038
|
/** Include file in the parent query. */
|
|
11910
12039
|
file(variables) {
|
|
11911
|
-
const info = extractIncludeInfo(
|
|
12040
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Document_FileDocument, "file", ["id"]);
|
|
11912
12041
|
this._includes.push({
|
|
11913
12042
|
fieldName: "file",
|
|
11914
|
-
fragmentDoc:
|
|
12043
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.FileFragmentDoc,
|
|
11915
12044
|
variables,
|
|
11916
12045
|
isConnection: false,
|
|
11917
12046
|
isList: false,
|
|
@@ -11927,10 +12056,10 @@ var DocumentSubBuilder = class {
|
|
|
11927
12056
|
}
|
|
11928
12057
|
/** Include format in the parent query. */
|
|
11929
12058
|
format(variables) {
|
|
11930
|
-
const info = extractIncludeInfo(
|
|
12059
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Document_FormatDocument, "format", ["id"]);
|
|
11931
12060
|
this._includes.push({
|
|
11932
12061
|
fieldName: "format",
|
|
11933
|
-
fragmentDoc:
|
|
12062
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DocumentFormatFragmentDoc,
|
|
11934
12063
|
variables,
|
|
11935
12064
|
isConnection: false,
|
|
11936
12065
|
isList: false,
|
|
@@ -11946,7 +12075,7 @@ var DocumentSubBuilder = class {
|
|
|
11946
12075
|
}
|
|
11947
12076
|
/** Include tables in the parent query. */
|
|
11948
12077
|
tables(variables, builder) {
|
|
11949
|
-
const info = extractIncludeInfo(
|
|
12078
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
11950
12079
|
let children;
|
|
11951
12080
|
if (builder) {
|
|
11952
12081
|
const sub = new TableSubBuilder();
|
|
@@ -11955,7 +12084,7 @@ var DocumentSubBuilder = class {
|
|
|
11955
12084
|
}
|
|
11956
12085
|
this._includes.push({
|
|
11957
12086
|
fieldName: "tables",
|
|
11958
|
-
fragmentDoc:
|
|
12087
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.TableConnectionFragmentDoc,
|
|
11959
12088
|
variables,
|
|
11960
12089
|
isConnection: true,
|
|
11961
12090
|
isList: false,
|
|
@@ -11977,10 +12106,10 @@ var DocumentCatalogSubBuilder = class {
|
|
|
11977
12106
|
_includes = [];
|
|
11978
12107
|
/** Include format in the parent query. */
|
|
11979
12108
|
format(variables) {
|
|
11980
|
-
const info = extractIncludeInfo(
|
|
12109
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
11981
12110
|
this._includes.push({
|
|
11982
12111
|
fieldName: "format",
|
|
11983
|
-
fragmentDoc:
|
|
12112
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DocumentFormatFragmentDoc,
|
|
11984
12113
|
variables,
|
|
11985
12114
|
isConnection: false,
|
|
11986
12115
|
isList: false,
|
|
@@ -12000,7 +12129,7 @@ var InsightSubBuilder = class {
|
|
|
12000
12129
|
_includes = [];
|
|
12001
12130
|
/** Include chat in the parent query. */
|
|
12002
12131
|
chat(variables, builder) {
|
|
12003
|
-
const info = extractIncludeInfo(
|
|
12132
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
12004
12133
|
let children;
|
|
12005
12134
|
if (builder) {
|
|
12006
12135
|
const sub = new ChatSubBuilder();
|
|
@@ -12009,7 +12138,7 @@ var InsightSubBuilder = class {
|
|
|
12009
12138
|
}
|
|
12010
12139
|
this._includes.push({
|
|
12011
12140
|
fieldName: "chat",
|
|
12012
|
-
fragmentDoc:
|
|
12141
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatFragmentDoc,
|
|
12013
12142
|
variables,
|
|
12014
12143
|
isConnection: false,
|
|
12015
12144
|
isList: false,
|
|
@@ -12026,10 +12155,10 @@ var InsightSubBuilder = class {
|
|
|
12026
12155
|
}
|
|
12027
12156
|
/** Include reportMembers in the parent query. */
|
|
12028
12157
|
reportMembers(variables) {
|
|
12029
|
-
const info = extractIncludeInfo(
|
|
12158
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
12030
12159
|
this._includes.push({
|
|
12031
12160
|
fieldName: "reportMembers",
|
|
12032
|
-
fragmentDoc:
|
|
12161
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ReportMemberFragmentDoc,
|
|
12033
12162
|
variables,
|
|
12034
12163
|
isConnection: false,
|
|
12035
12164
|
isList: true,
|
|
@@ -12045,7 +12174,7 @@ var InsightSubBuilder = class {
|
|
|
12045
12174
|
}
|
|
12046
12175
|
/** Include reports in the parent query. */
|
|
12047
12176
|
reports(variables, builder) {
|
|
12048
|
-
const info = extractIncludeInfo(
|
|
12177
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
12049
12178
|
let children;
|
|
12050
12179
|
if (builder) {
|
|
12051
12180
|
const sub = new ReportSubBuilder();
|
|
@@ -12054,7 +12183,7 @@ var InsightSubBuilder = class {
|
|
|
12054
12183
|
}
|
|
12055
12184
|
this._includes.push({
|
|
12056
12185
|
fieldName: "reports",
|
|
12057
|
-
fragmentDoc:
|
|
12186
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ReportConnectionFragmentDoc,
|
|
12058
12187
|
variables,
|
|
12059
12188
|
isConnection: true,
|
|
12060
12189
|
isList: false,
|
|
@@ -12076,10 +12205,10 @@ var IntegrationSubBuilder = class {
|
|
|
12076
12205
|
_includes = [];
|
|
12077
12206
|
/** Include provider in the parent query. */
|
|
12078
12207
|
provider(variables) {
|
|
12079
|
-
const info = extractIncludeInfo(
|
|
12208
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
12080
12209
|
this._includes.push({
|
|
12081
12210
|
fieldName: "provider",
|
|
12082
|
-
fragmentDoc:
|
|
12211
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.IntegrationProviderFragmentDoc,
|
|
12083
12212
|
variables,
|
|
12084
12213
|
isConnection: false,
|
|
12085
12214
|
isList: false,
|
|
@@ -12099,10 +12228,10 @@ var IntegrationCatalogSubBuilder = class {
|
|
|
12099
12228
|
_includes = [];
|
|
12100
12229
|
/** Include provider in the parent query. */
|
|
12101
12230
|
provider(variables) {
|
|
12102
|
-
const info = extractIncludeInfo(
|
|
12231
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
12103
12232
|
this._includes.push({
|
|
12104
12233
|
fieldName: "provider",
|
|
12105
|
-
fragmentDoc:
|
|
12234
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.IntegrationProviderFragmentDoc,
|
|
12106
12235
|
variables,
|
|
12107
12236
|
isConnection: false,
|
|
12108
12237
|
isList: false,
|
|
@@ -12117,12 +12246,42 @@ var IntegrationCatalogSubBuilder = class {
|
|
|
12117
12246
|
return this;
|
|
12118
12247
|
}
|
|
12119
12248
|
};
|
|
12249
|
+
var PulseEventSubBuilder = class {
|
|
12250
|
+
/** @internal */
|
|
12251
|
+
_includes = [];
|
|
12252
|
+
/** Include integration in the parent query. */
|
|
12253
|
+
integration(variables, builder) {
|
|
12254
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
12255
|
+
let children;
|
|
12256
|
+
if (builder) {
|
|
12257
|
+
const sub = new IntegrationSubBuilder();
|
|
12258
|
+
builder(sub);
|
|
12259
|
+
children = sub._includes;
|
|
12260
|
+
}
|
|
12261
|
+
this._includes.push({
|
|
12262
|
+
fieldName: "integration",
|
|
12263
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.IntegrationFragmentDoc,
|
|
12264
|
+
variables,
|
|
12265
|
+
isConnection: false,
|
|
12266
|
+
isList: false,
|
|
12267
|
+
variableDefinitions: info.variableDefinitions,
|
|
12268
|
+
fieldArguments: info.fieldArguments,
|
|
12269
|
+
syncMetadata: {
|
|
12270
|
+
entityType: "integrations",
|
|
12271
|
+
requiredFields: ["createdAt", "id", "providerKey", "status", "updatedAt"]
|
|
12272
|
+
},
|
|
12273
|
+
children,
|
|
12274
|
+
modelFactory: (req, data, se, bu) => new Integration(req, data, se, bu)
|
|
12275
|
+
});
|
|
12276
|
+
return this;
|
|
12277
|
+
}
|
|
12278
|
+
};
|
|
12120
12279
|
var ReportSubBuilder = class {
|
|
12121
12280
|
/** @internal */
|
|
12122
12281
|
_includes = [];
|
|
12123
12282
|
/** Include insights in the parent query. */
|
|
12124
12283
|
insights(variables, builder) {
|
|
12125
|
-
const info = extractIncludeInfo(
|
|
12284
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
12126
12285
|
let children;
|
|
12127
12286
|
if (builder) {
|
|
12128
12287
|
const sub = new InsightSubBuilder();
|
|
@@ -12131,7 +12290,7 @@ var ReportSubBuilder = class {
|
|
|
12131
12290
|
}
|
|
12132
12291
|
this._includes.push({
|
|
12133
12292
|
fieldName: "insights",
|
|
12134
|
-
fragmentDoc:
|
|
12293
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.InsightConnectionFragmentDoc,
|
|
12135
12294
|
variables,
|
|
12136
12295
|
isConnection: true,
|
|
12137
12296
|
isList: false,
|
|
@@ -12149,10 +12308,10 @@ var ReportSubBuilder = class {
|
|
|
12149
12308
|
}
|
|
12150
12309
|
/** Include layout in the parent query. */
|
|
12151
12310
|
layout(variables) {
|
|
12152
|
-
const info = extractIncludeInfo(
|
|
12311
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
12153
12312
|
this._includes.push({
|
|
12154
12313
|
fieldName: "layout",
|
|
12155
|
-
fragmentDoc:
|
|
12314
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ReportMemberFragmentDoc,
|
|
12156
12315
|
variables,
|
|
12157
12316
|
isConnection: false,
|
|
12158
12317
|
isList: true,
|
|
@@ -12172,7 +12331,7 @@ var TableSubBuilder = class {
|
|
|
12172
12331
|
_includes = [];
|
|
12173
12332
|
/** Include database in the parent query. */
|
|
12174
12333
|
database(variables, builder) {
|
|
12175
|
-
const info = extractIncludeInfo(
|
|
12334
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
12176
12335
|
let children;
|
|
12177
12336
|
if (builder) {
|
|
12178
12337
|
const sub = new DatabaseSubBuilder();
|
|
@@ -12181,7 +12340,7 @@ var TableSubBuilder = class {
|
|
|
12181
12340
|
}
|
|
12182
12341
|
this._includes.push({
|
|
12183
12342
|
fieldName: "database",
|
|
12184
|
-
fragmentDoc:
|
|
12343
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DatabaseFragmentDoc,
|
|
12185
12344
|
variables,
|
|
12186
12345
|
isConnection: false,
|
|
12187
12346
|
isList: false,
|
|
@@ -12198,7 +12357,7 @@ var TableSubBuilder = class {
|
|
|
12198
12357
|
}
|
|
12199
12358
|
/** Include document in the parent query. */
|
|
12200
12359
|
document(variables, builder) {
|
|
12201
|
-
const info = extractIncludeInfo(
|
|
12360
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
12202
12361
|
let children;
|
|
12203
12362
|
if (builder) {
|
|
12204
12363
|
const sub = new DocumentSubBuilder();
|
|
@@ -12207,7 +12366,7 @@ var TableSubBuilder = class {
|
|
|
12207
12366
|
}
|
|
12208
12367
|
this._includes.push({
|
|
12209
12368
|
fieldName: "document",
|
|
12210
|
-
fragmentDoc:
|
|
12369
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DocumentFragmentDoc,
|
|
12211
12370
|
variables,
|
|
12212
12371
|
isConnection: false,
|
|
12213
12372
|
isList: false,
|
|
@@ -12224,10 +12383,10 @@ var TableSubBuilder = class {
|
|
|
12224
12383
|
}
|
|
12225
12384
|
/** Include fromRelations in the parent query. */
|
|
12226
12385
|
fromRelations(variables) {
|
|
12227
|
-
const info = extractIncludeInfo(
|
|
12386
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
12228
12387
|
this._includes.push({
|
|
12229
12388
|
fieldName: "fromRelations",
|
|
12230
|
-
fragmentDoc:
|
|
12389
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.RelationFragmentDoc,
|
|
12231
12390
|
variables,
|
|
12232
12391
|
isConnection: false,
|
|
12233
12392
|
isList: true,
|
|
@@ -12243,10 +12402,10 @@ var TableSubBuilder = class {
|
|
|
12243
12402
|
}
|
|
12244
12403
|
/** Include toRelations in the parent query. */
|
|
12245
12404
|
toRelations(variables) {
|
|
12246
|
-
const info = extractIncludeInfo(
|
|
12405
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
12247
12406
|
this._includes.push({
|
|
12248
12407
|
fieldName: "toRelations",
|
|
12249
|
-
fragmentDoc:
|
|
12408
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.RelationFragmentDoc,
|
|
12250
12409
|
variables,
|
|
12251
12410
|
isConnection: false,
|
|
12252
12411
|
isList: true,
|
|
@@ -12261,327 +12420,362 @@ var TableSubBuilder = class {
|
|
|
12261
12420
|
return this;
|
|
12262
12421
|
}
|
|
12263
12422
|
};
|
|
12423
|
+
var AcknowledgePulseEventMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12424
|
+
async fetch(variables, options) {
|
|
12425
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.AcknowledgePulseEventDocument, variables, MUTATION_CACHE_RULES["acknowledgePulseEvent"]);
|
|
12426
|
+
const data = response.acknowledgePulseEvent;
|
|
12427
|
+
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12428
|
+
}
|
|
12429
|
+
};
|
|
12264
12430
|
var AddInsightToReportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12265
12431
|
async fetch(variables, options) {
|
|
12266
|
-
const response = await this._syncEngine.mutate(
|
|
12432
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.AddInsightToReportDocument, variables, MUTATION_CACHE_RULES["addInsightToReport"]);
|
|
12267
12433
|
const data = response.addInsightToReport;
|
|
12268
12434
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
12269
12435
|
}
|
|
12270
12436
|
};
|
|
12271
12437
|
var CancelOauthFlowMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12272
12438
|
async fetch(variables) {
|
|
12273
|
-
const response = await this._syncEngine.mutate(
|
|
12439
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.CancelOauthFlowDocument, variables, MUTATION_CACHE_RULES["cancelOauthFlow"]);
|
|
12274
12440
|
return response.cancelOauthFlow;
|
|
12275
12441
|
}
|
|
12276
12442
|
};
|
|
12277
12443
|
var CancelWorkspaceDeletionMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12278
12444
|
async fetch(variables) {
|
|
12279
|
-
const response = await this._syncEngine.mutate(
|
|
12445
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.CancelWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["cancelWorkspaceDeletion"]);
|
|
12280
12446
|
return response.cancelWorkspaceDeletion;
|
|
12281
12447
|
}
|
|
12282
12448
|
};
|
|
12283
12449
|
var ConnectIntegrationMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12284
12450
|
async fetch(variables, options) {
|
|
12285
|
-
const response = await this._syncEngine.mutate(
|
|
12451
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.ConnectIntegrationDocument, variables, MUTATION_CACHE_RULES["connectIntegration"]);
|
|
12286
12452
|
const data = response.connectIntegration;
|
|
12287
12453
|
return new CreateIntegrationOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
12288
12454
|
}
|
|
12289
12455
|
};
|
|
12290
12456
|
var ContinueInterpretationMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12291
12457
|
async fetch(variables) {
|
|
12292
|
-
const response = await this._syncEngine.mutate(
|
|
12458
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.ContinueInterpretationDocument, variables, MUTATION_CACHE_RULES["continueInterpretation"]);
|
|
12293
12459
|
return response.continueInterpretation;
|
|
12294
12460
|
}
|
|
12295
12461
|
};
|
|
12296
12462
|
var CreateAgentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12297
12463
|
async fetch(variables, options) {
|
|
12298
|
-
const response = await this._syncEngine.mutate(
|
|
12464
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.CreateAgentDocument, variables, MUTATION_CACHE_RULES["createAgent"]);
|
|
12299
12465
|
const data = response.createAgent;
|
|
12300
12466
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12301
12467
|
}
|
|
12302
12468
|
};
|
|
12303
12469
|
var CreateChatMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12304
12470
|
async fetch(variables, options) {
|
|
12305
|
-
const response = await this._syncEngine.mutate(
|
|
12471
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.CreateChatDocument, variables, MUTATION_CACHE_RULES["createChat"]);
|
|
12306
12472
|
const data = response.createChat;
|
|
12307
12473
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
12308
12474
|
}
|
|
12309
12475
|
};
|
|
12310
12476
|
var CreateDatabaseMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12311
12477
|
async fetch(variables, options) {
|
|
12312
|
-
const response = await this._syncEngine.mutate(
|
|
12478
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.CreateDatabaseDocument, variables, MUTATION_CACHE_RULES["createDatabase"]);
|
|
12313
12479
|
const data = response.createDatabase;
|
|
12314
12480
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
12315
12481
|
}
|
|
12316
12482
|
};
|
|
12317
12483
|
var CreateDocumentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12318
12484
|
async fetch(variables, options) {
|
|
12319
|
-
const response = await this._syncEngine.mutate(
|
|
12485
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.CreateDocumentDocument, variables, MUTATION_CACHE_RULES["createDocument"]);
|
|
12320
12486
|
const data = response.createDocument;
|
|
12321
12487
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
12322
12488
|
}
|
|
12323
12489
|
};
|
|
12324
12490
|
var CreateFeedbackMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12325
12491
|
async fetch(variables, options) {
|
|
12326
|
-
const response = await this._syncEngine.mutate(
|
|
12492
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.CreateFeedbackDocument, variables, MUTATION_CACHE_RULES["createFeedback"]);
|
|
12327
12493
|
const data = response.createFeedback;
|
|
12328
12494
|
return new Feedback(this._request, data, this._syncEngine, this._baseUrl);
|
|
12329
12495
|
}
|
|
12330
12496
|
};
|
|
12331
12497
|
var CreateFolderMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12332
12498
|
async fetch(variables, options) {
|
|
12333
|
-
const response = await this._syncEngine.mutate(
|
|
12499
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.CreateFolderDocument, variables, MUTATION_CACHE_RULES["createFolder"]);
|
|
12334
12500
|
const data = response.createFolder;
|
|
12335
12501
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
12336
12502
|
}
|
|
12337
12503
|
};
|
|
12338
12504
|
var CreateInsightMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12339
12505
|
async fetch(variables, options) {
|
|
12340
|
-
const response = await this._syncEngine.mutate(
|
|
12506
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.CreateInsightDocument, variables, MUTATION_CACHE_RULES["createInsight"]);
|
|
12341
12507
|
const data = response.createInsight;
|
|
12342
12508
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
12343
12509
|
}
|
|
12344
12510
|
};
|
|
12345
12511
|
var CreateIntegrationMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12346
12512
|
async fetch(variables, options) {
|
|
12347
|
-
const response = await this._syncEngine.mutate(
|
|
12513
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.CreateIntegrationDocument, variables, MUTATION_CACHE_RULES["createIntegration"]);
|
|
12348
12514
|
const data = response.createIntegration;
|
|
12349
12515
|
return new CreateIntegrationOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
12350
12516
|
}
|
|
12351
12517
|
};
|
|
12352
12518
|
var CreateReportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12353
12519
|
async fetch(variables, options) {
|
|
12354
|
-
const response = await this._syncEngine.mutate(
|
|
12520
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.CreateReportDocument, variables, MUTATION_CACHE_RULES["createReport"]);
|
|
12355
12521
|
const data = response.createReport;
|
|
12356
12522
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
12357
12523
|
}
|
|
12358
12524
|
};
|
|
12359
12525
|
var CreateTableMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12360
12526
|
async fetch(variables, options) {
|
|
12361
|
-
const response = await this._syncEngine.mutate(
|
|
12527
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.CreateTableDocument, variables, MUTATION_CACHE_RULES["createTable"]);
|
|
12362
12528
|
const data = response.createTable;
|
|
12363
12529
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
12364
12530
|
}
|
|
12365
12531
|
};
|
|
12366
12532
|
var DeleteAgentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12367
12533
|
async fetch(variables, options) {
|
|
12368
|
-
const response = await this._syncEngine.mutate(
|
|
12534
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.DeleteAgentDocument, variables, MUTATION_CACHE_RULES["deleteAgent"]);
|
|
12369
12535
|
const data = response.deleteAgent;
|
|
12370
12536
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12371
12537
|
}
|
|
12372
12538
|
};
|
|
12373
12539
|
var DeleteArtifactMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12374
12540
|
async fetch(variables, options) {
|
|
12375
|
-
const response = await this._syncEngine.mutate(
|
|
12541
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.DeleteArtifactDocument, variables, MUTATION_CACHE_RULES["deleteArtifact"]);
|
|
12376
12542
|
const data = response.deleteArtifact;
|
|
12377
12543
|
return new Artifact(this._request, data, this._syncEngine, this._baseUrl);
|
|
12378
12544
|
}
|
|
12379
12545
|
};
|
|
12380
12546
|
var DeleteChatMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12381
12547
|
async fetch(variables, options) {
|
|
12382
|
-
const response = await this._syncEngine.mutate(
|
|
12548
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.DeleteChatDocument, variables, MUTATION_CACHE_RULES["deleteChat"]);
|
|
12383
12549
|
const data = response.deleteChat;
|
|
12384
12550
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
12385
12551
|
}
|
|
12386
12552
|
};
|
|
12387
12553
|
var DeleteDatabaseMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12388
12554
|
async fetch(variables, options) {
|
|
12389
|
-
const response = await this._syncEngine.mutate(
|
|
12555
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.DeleteDatabaseDocument, variables, MUTATION_CACHE_RULES["deleteDatabase"]);
|
|
12390
12556
|
const data = response.deleteDatabase;
|
|
12391
12557
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
12392
12558
|
}
|
|
12393
12559
|
};
|
|
12394
12560
|
var DeleteDocumentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12395
12561
|
async fetch(variables, options) {
|
|
12396
|
-
const response = await this._syncEngine.mutate(
|
|
12562
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.DeleteDocumentDocument, variables, MUTATION_CACHE_RULES["deleteDocument"]);
|
|
12397
12563
|
const data = response.deleteDocument;
|
|
12398
12564
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
12399
12565
|
}
|
|
12400
12566
|
};
|
|
12401
12567
|
var DeleteFolderMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12402
12568
|
async fetch(variables, options) {
|
|
12403
|
-
const response = await this._syncEngine.mutate(
|
|
12569
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.DeleteFolderDocument, variables, MUTATION_CACHE_RULES["deleteFolder"]);
|
|
12404
12570
|
const data = response.deleteFolder;
|
|
12405
12571
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
12406
12572
|
}
|
|
12407
12573
|
};
|
|
12408
12574
|
var DeleteInsightMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12409
12575
|
async fetch(variables, options) {
|
|
12410
|
-
const response = await this._syncEngine.mutate(
|
|
12576
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.DeleteInsightDocument, variables, MUTATION_CACHE_RULES["deleteInsight"]);
|
|
12411
12577
|
const data = response.deleteInsight;
|
|
12412
12578
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
12413
12579
|
}
|
|
12414
12580
|
};
|
|
12415
12581
|
var DeleteInsightsMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12416
12582
|
async fetch(variables, options) {
|
|
12417
|
-
const response = await this._syncEngine.mutate(
|
|
12583
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.DeleteInsightsDocument, variables, MUTATION_CACHE_RULES["deleteInsights"]);
|
|
12418
12584
|
const data = response.deleteInsights;
|
|
12419
12585
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
12420
12586
|
}
|
|
12421
12587
|
};
|
|
12422
12588
|
var DeleteIntegrationMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12423
12589
|
async fetch(variables) {
|
|
12424
|
-
const response = await this._syncEngine.mutate(
|
|
12590
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.DeleteIntegrationDocument, variables, MUTATION_CACHE_RULES["deleteIntegration"]);
|
|
12425
12591
|
return response.deleteIntegration;
|
|
12426
12592
|
}
|
|
12427
12593
|
};
|
|
12428
12594
|
var DeleteReportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12429
12595
|
async fetch(variables, options) {
|
|
12430
|
-
const response = await this._syncEngine.mutate(
|
|
12596
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.DeleteReportDocument, variables, MUTATION_CACHE_RULES["deleteReport"]);
|
|
12431
12597
|
const data = response.deleteReport;
|
|
12432
12598
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
12433
12599
|
}
|
|
12434
12600
|
};
|
|
12435
12601
|
var DeleteTableMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12436
12602
|
async fetch(variables, options) {
|
|
12437
|
-
const response = await this._syncEngine.mutate(
|
|
12603
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.DeleteTableDocument, variables, MUTATION_CACHE_RULES["deleteTable"]);
|
|
12438
12604
|
const data = response.deleteTable;
|
|
12439
12605
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
12440
12606
|
}
|
|
12441
12607
|
};
|
|
12442
12608
|
var DisconnectIntegrationMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12443
12609
|
async fetch(variables) {
|
|
12444
|
-
const response = await this._syncEngine.mutate(
|
|
12610
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.DisconnectIntegrationDocument, variables, MUTATION_CACHE_RULES["disconnectIntegration"]);
|
|
12445
12611
|
return response.disconnectIntegration;
|
|
12446
12612
|
}
|
|
12447
12613
|
};
|
|
12614
|
+
var DismissPulseEventMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12615
|
+
async fetch(variables, options) {
|
|
12616
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.DismissPulseEventDocument, variables, MUTATION_CACHE_RULES["dismissPulseEvent"]);
|
|
12617
|
+
const data = response.dismissPulseEvent;
|
|
12618
|
+
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12619
|
+
}
|
|
12620
|
+
};
|
|
12448
12621
|
var GenerateUploadUriMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12449
12622
|
async fetch(variables, options) {
|
|
12450
|
-
const response = await this._syncEngine.mutate(
|
|
12623
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.GenerateUploadUriDocument, variables, MUTATION_CACHE_RULES["generateUploadUri"]);
|
|
12451
12624
|
const data = response.generateUploadUri;
|
|
12452
12625
|
return new FileModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
12453
12626
|
}
|
|
12454
12627
|
};
|
|
12628
|
+
var MarkPulseEventSeenMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12629
|
+
async fetch(variables, options) {
|
|
12630
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.MarkPulseEventSeenDocument, variables, MUTATION_CACHE_RULES["markPulseEventSeen"]);
|
|
12631
|
+
const data = response.markPulseEventSeen;
|
|
12632
|
+
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12633
|
+
}
|
|
12634
|
+
};
|
|
12455
12635
|
var ReanalyzeDocumentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12456
12636
|
async fetch(variables, options) {
|
|
12457
|
-
const response = await this._syncEngine.mutate(
|
|
12637
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.ReanalyzeDocumentDocument, variables, MUTATION_CACHE_RULES["reanalyzeDocument"]);
|
|
12458
12638
|
const data = response.reanalyzeDocument;
|
|
12459
12639
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
12460
12640
|
}
|
|
12461
12641
|
};
|
|
12462
12642
|
var RefineMindInstructionMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12463
12643
|
async fetch(variables) {
|
|
12464
|
-
const response = await this._syncEngine.mutate(
|
|
12644
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.RefineMindInstructionDocument, variables, MUTATION_CACHE_RULES["refineMindInstruction"]);
|
|
12465
12645
|
return response.refineMindInstruction;
|
|
12466
12646
|
}
|
|
12467
12647
|
};
|
|
12468
12648
|
var RefreshDatabaseSchemaMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12469
12649
|
async fetch(variables) {
|
|
12470
|
-
const response = await this._syncEngine.mutate(
|
|
12650
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.RefreshDatabaseSchemaDocument, variables, MUTATION_CACHE_RULES["refreshDatabaseSchema"]);
|
|
12471
12651
|
return response.refreshDatabaseSchema;
|
|
12472
12652
|
}
|
|
12473
12653
|
};
|
|
12474
12654
|
var ReinterpretSourceMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12475
12655
|
async fetch(variables) {
|
|
12476
|
-
const response = await this._syncEngine.mutate(
|
|
12656
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.ReinterpretSourceDocument, variables, MUTATION_CACHE_RULES["reinterpretSource"]);
|
|
12477
12657
|
return response.reinterpretSource;
|
|
12478
12658
|
}
|
|
12479
12659
|
};
|
|
12480
12660
|
var ReinterpretSourcesOfuserMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12481
12661
|
async fetch(variables) {
|
|
12482
|
-
const response = await this._syncEngine.mutate(
|
|
12662
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.ReinterpretSourcesOfuserDocument, variables, MUTATION_CACHE_RULES["reinterpretSourcesOfuser"]);
|
|
12483
12663
|
return response.reinterpretSourcesOfuser;
|
|
12484
12664
|
}
|
|
12485
12665
|
};
|
|
12486
12666
|
var RelocateInsightMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12487
12667
|
async fetch(variables, options) {
|
|
12488
|
-
const response = await this._syncEngine.mutate(
|
|
12668
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.RelocateInsightDocument, variables, MUTATION_CACHE_RULES["relocateInsight"]);
|
|
12489
12669
|
const data = response.relocateInsight;
|
|
12490
12670
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
12491
12671
|
}
|
|
12492
12672
|
};
|
|
12493
12673
|
var RemoveInsightFromReportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12494
12674
|
async fetch(variables, options) {
|
|
12495
|
-
const response = await this._syncEngine.mutate(
|
|
12675
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.RemoveInsightFromReportDocument, variables, MUTATION_CACHE_RULES["removeInsightFromReport"]);
|
|
12496
12676
|
const data = response.removeInsightFromReport;
|
|
12497
12677
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
12498
12678
|
}
|
|
12499
12679
|
};
|
|
12500
12680
|
var ResetWorkspaceMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12501
12681
|
async fetch(variables) {
|
|
12502
|
-
const response = await this._syncEngine.mutate(
|
|
12682
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.ResetWorkspaceDocument, variables, MUTATION_CACHE_RULES["resetWorkspace"]);
|
|
12503
12683
|
return response.resetWorkspace;
|
|
12504
12684
|
}
|
|
12505
12685
|
};
|
|
12686
|
+
var ResolvePulseEventMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12687
|
+
async fetch(variables, options) {
|
|
12688
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.ResolvePulseEventDocument, variables, MUTATION_CACHE_RULES["resolvePulseEvent"]);
|
|
12689
|
+
const data = response.resolvePulseEvent;
|
|
12690
|
+
return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12691
|
+
}
|
|
12692
|
+
};
|
|
12506
12693
|
var ScheduleWorkspaceDeletionMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12507
12694
|
async fetch(variables, options) {
|
|
12508
|
-
const response = await this._syncEngine.mutate(
|
|
12695
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.ScheduleWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["scheduleWorkspaceDeletion"]);
|
|
12509
12696
|
const data = response.scheduleWorkspaceDeletion;
|
|
12510
12697
|
return new WorkspaceDeleteSchedule(this._request, data, this._syncEngine, this._baseUrl);
|
|
12511
12698
|
}
|
|
12512
12699
|
};
|
|
12513
12700
|
var SetDatabasePrimaryKeyMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12514
12701
|
async fetch(variables) {
|
|
12515
|
-
const response = await this._syncEngine.mutate(
|
|
12702
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.SetDatabasePrimaryKeyDocument, variables, MUTATION_CACHE_RULES["setDatabasePrimaryKey"]);
|
|
12516
12703
|
return response.setDatabasePrimaryKey;
|
|
12517
12704
|
}
|
|
12518
12705
|
};
|
|
12519
12706
|
var UpdateAgentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12520
12707
|
async fetch(variables, options) {
|
|
12521
|
-
const response = await this._syncEngine.mutate(
|
|
12708
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.UpdateAgentDocument, variables, MUTATION_CACHE_RULES["updateAgent"]);
|
|
12522
12709
|
const data = response.updateAgent;
|
|
12523
12710
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
12524
12711
|
}
|
|
12525
12712
|
};
|
|
12526
12713
|
var UpdateChatMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12527
12714
|
async fetch(variables, options) {
|
|
12528
|
-
const response = await this._syncEngine.mutate(
|
|
12715
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.UpdateChatDocument, variables, MUTATION_CACHE_RULES["updateChat"]);
|
|
12529
12716
|
const data = response.updateChat;
|
|
12530
12717
|
return new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
12531
12718
|
}
|
|
12532
12719
|
};
|
|
12533
12720
|
var UpdateDatabaseMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12534
12721
|
async fetch(variables, options) {
|
|
12535
|
-
const response = await this._syncEngine.mutate(
|
|
12722
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.UpdateDatabaseDocument, variables, MUTATION_CACHE_RULES["updateDatabase"]);
|
|
12536
12723
|
const data = response.updateDatabase;
|
|
12537
12724
|
return new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
12538
12725
|
}
|
|
12539
12726
|
};
|
|
12540
12727
|
var UpdateDocumentMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12541
12728
|
async fetch(variables, options) {
|
|
12542
|
-
const response = await this._syncEngine.mutate(
|
|
12729
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.UpdateDocumentDocument, variables, MUTATION_CACHE_RULES["updateDocument"]);
|
|
12543
12730
|
const data = response.updateDocument;
|
|
12544
12731
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
12545
12732
|
}
|
|
12546
12733
|
};
|
|
12547
12734
|
var UpdateFolderMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12548
12735
|
async fetch(variables, options) {
|
|
12549
|
-
const response = await this._syncEngine.mutate(
|
|
12736
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.UpdateFolderDocument, variables, MUTATION_CACHE_RULES["updateFolder"]);
|
|
12550
12737
|
const data = response.updateFolder;
|
|
12551
12738
|
return new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
12552
12739
|
}
|
|
12553
12740
|
};
|
|
12554
12741
|
var UpdateInsightMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12555
12742
|
async fetch(variables, options) {
|
|
12556
|
-
const response = await this._syncEngine.mutate(
|
|
12743
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.UpdateInsightDocument, variables, MUTATION_CACHE_RULES["updateInsight"]);
|
|
12557
12744
|
const data = response.updateInsight;
|
|
12558
12745
|
return new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
12559
12746
|
}
|
|
12560
12747
|
};
|
|
12561
12748
|
var UpdateInsightInReportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12562
12749
|
async fetch(variables, options) {
|
|
12563
|
-
const response = await this._syncEngine.mutate(
|
|
12750
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.UpdateInsightInReportDocument, variables, MUTATION_CACHE_RULES["updateInsightInReport"]);
|
|
12564
12751
|
const data = response.updateInsightInReport;
|
|
12565
12752
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
12566
12753
|
}
|
|
12567
12754
|
};
|
|
12568
12755
|
var UpdateInterpMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12569
12756
|
async fetch(variables, options) {
|
|
12570
|
-
const response = await this._syncEngine.mutate(
|
|
12757
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.UpdateInterpDocument, variables, MUTATION_CACHE_RULES["updateInterp"]);
|
|
12571
12758
|
const data = response.updateInterp;
|
|
12572
12759
|
return new Interpretation(this._request, data, this._syncEngine, this._baseUrl);
|
|
12573
12760
|
}
|
|
12574
12761
|
};
|
|
12762
|
+
var UpdatePulseTriggerMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12763
|
+
async fetch(variables, options) {
|
|
12764
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.UpdatePulseTriggerDocument, variables, MUTATION_CACHE_RULES["updatePulseTrigger"]);
|
|
12765
|
+
const data = response.updatePulseTrigger;
|
|
12766
|
+
return new PulseTriggerSettingModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
12767
|
+
}
|
|
12768
|
+
};
|
|
12575
12769
|
var UpdateReportMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12576
12770
|
async fetch(variables, options) {
|
|
12577
|
-
const response = await this._syncEngine.mutate(
|
|
12771
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.UpdateReportDocument, variables, MUTATION_CACHE_RULES["updateReport"]);
|
|
12578
12772
|
const data = response.updateReport;
|
|
12579
12773
|
return new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
12580
12774
|
}
|
|
12581
12775
|
};
|
|
12582
12776
|
var UpdateTableMutation = class extends chunk4QKWHQT2_cjs.Request {
|
|
12583
12777
|
async fetch(variables, options) {
|
|
12584
|
-
const response = await this._syncEngine.mutate(
|
|
12778
|
+
const response = await this._syncEngine.mutate(chunkNVBJ6NKK_cjs.UpdateTableDocument, variables, MUTATION_CACHE_RULES["updateTable"]);
|
|
12585
12779
|
const data = response.updateTable;
|
|
12586
12780
|
return new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
12587
12781
|
}
|
|
@@ -12595,7 +12789,7 @@ var AgentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12595
12789
|
}
|
|
12596
12790
|
async fetch(options) {
|
|
12597
12791
|
const variables = this._variables;
|
|
12598
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
12792
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.AgentDocument, "agent", this._includes, variables);
|
|
12599
12793
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "agent");
|
|
12600
12794
|
const data = response.agent;
|
|
12601
12795
|
const instance = new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -12607,7 +12801,7 @@ var AgentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12607
12801
|
watch(options) {
|
|
12608
12802
|
const variables = this._variables;
|
|
12609
12803
|
const includes = this._includes;
|
|
12610
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
12804
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.AgentDocument, "agent", includes, variables);
|
|
12611
12805
|
const raw = this._syncEngine.watch(
|
|
12612
12806
|
queryDoc,
|
|
12613
12807
|
mergedVars,
|
|
@@ -12637,7 +12831,7 @@ var AgentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12637
12831
|
}
|
|
12638
12832
|
/** Include chats in this query (Smart Fetch — single HTTP request). */
|
|
12639
12833
|
chats(variables, builder) {
|
|
12640
|
-
const info = extractIncludeInfo(
|
|
12834
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
12641
12835
|
let children;
|
|
12642
12836
|
if (builder) {
|
|
12643
12837
|
const sub = new ChatSubBuilder();
|
|
@@ -12646,7 +12840,7 @@ var AgentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12646
12840
|
}
|
|
12647
12841
|
this._includes.push({
|
|
12648
12842
|
fieldName: "chats",
|
|
12649
|
-
fragmentDoc:
|
|
12843
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatConnectionFragmentDoc,
|
|
12650
12844
|
variables,
|
|
12651
12845
|
isConnection: true,
|
|
12652
12846
|
isList: false,
|
|
@@ -12671,18 +12865,18 @@ var Agent_ChatsQuery = class _Agent_ChatsQuery extends chunk4QKWHQT2_cjs.Request
|
|
|
12671
12865
|
}
|
|
12672
12866
|
async fetch(options) {
|
|
12673
12867
|
const variables = this._variables;
|
|
12674
|
-
const response = await this._syncEngine.query(
|
|
12868
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Agent_ChatsDocument, variables, "agent");
|
|
12675
12869
|
const data = response.agent?.chats;
|
|
12676
12870
|
return new ChatConnection(this._request, (conn, opts) => new _Agent_ChatsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
12677
12871
|
}
|
|
12678
12872
|
watch(options) {
|
|
12679
12873
|
const variables = this._variables;
|
|
12680
12874
|
const raw = this._syncEngine.watch(
|
|
12681
|
-
|
|
12875
|
+
chunkNVBJ6NKK_cjs.Agent_ChatsDocument,
|
|
12682
12876
|
variables,
|
|
12683
12877
|
"agent",
|
|
12684
12878
|
async (db) => {
|
|
12685
|
-
const qr = await db._queryResults.get(buildQueryKey("agent", variables,
|
|
12879
|
+
const qr = await db._queryResults.get(buildQueryKey("agent", variables, chunkNVBJ6NKK_cjs.Agent_ChatsDocument));
|
|
12686
12880
|
const nodes = qr ? await db.table("chats").bulkGet(qr.entityIds) : [];
|
|
12687
12881
|
return { agent: { chats: { __typename: "ChatConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
12688
12882
|
}
|
|
@@ -12702,7 +12896,7 @@ var AgentsQuery = class _AgentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
12702
12896
|
}
|
|
12703
12897
|
async fetch(options) {
|
|
12704
12898
|
const variables = this._variables;
|
|
12705
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
12899
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.AgentsDocument, "agents", this._includes, variables, true);
|
|
12706
12900
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "agents");
|
|
12707
12901
|
const data = response.agents;
|
|
12708
12902
|
const connection = new AgentConnection(this._request, (conn, opts) => new _AgentsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -12719,7 +12913,7 @@ var AgentsQuery = class _AgentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
12719
12913
|
const subscriptionId = crypto.randomUUID();
|
|
12720
12914
|
const includes = this._includes;
|
|
12721
12915
|
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) }] : []);
|
|
12722
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
12916
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.AgentsDocument, "agents", includes, variables, true);
|
|
12723
12917
|
const raw = this._syncEngine.watch(
|
|
12724
12918
|
queryDoc,
|
|
12725
12919
|
mergedVars,
|
|
@@ -12754,7 +12948,7 @@ var AgentsQuery = class _AgentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
12754
12948
|
}
|
|
12755
12949
|
/** Include chats in this query (Smart Fetch — single HTTP request). */
|
|
12756
12950
|
chats(variables, builder) {
|
|
12757
|
-
const info = extractIncludeInfo(
|
|
12951
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Agent_ChatsDocument, "chats", ["id"]);
|
|
12758
12952
|
let children;
|
|
12759
12953
|
if (builder) {
|
|
12760
12954
|
const sub = new ChatSubBuilder();
|
|
@@ -12763,7 +12957,7 @@ var AgentsQuery = class _AgentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
12763
12957
|
}
|
|
12764
12958
|
this._includes.push({
|
|
12765
12959
|
fieldName: "chats",
|
|
12766
|
-
fragmentDoc:
|
|
12960
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatConnectionFragmentDoc,
|
|
12767
12961
|
variables,
|
|
12768
12962
|
isConnection: true,
|
|
12769
12963
|
isList: false,
|
|
@@ -12789,7 +12983,7 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12789
12983
|
}
|
|
12790
12984
|
async fetch(options) {
|
|
12791
12985
|
const variables = this._variables;
|
|
12792
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
12986
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ArtifactDocument, "artifact", this._includes, variables);
|
|
12793
12987
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "artifact");
|
|
12794
12988
|
const data = response.artifact;
|
|
12795
12989
|
const instance = new Artifact(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -12801,7 +12995,7 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12801
12995
|
watch(options) {
|
|
12802
12996
|
const variables = this._variables;
|
|
12803
12997
|
const includes = this._includes;
|
|
12804
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
12998
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ArtifactDocument, "artifact", includes, variables);
|
|
12805
12999
|
const raw = this._syncEngine.watch(
|
|
12806
13000
|
queryDoc,
|
|
12807
13001
|
mergedVars,
|
|
@@ -12831,7 +13025,7 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12831
13025
|
}
|
|
12832
13026
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
12833
13027
|
chat(variables, builder) {
|
|
12834
|
-
const info = extractIncludeInfo(
|
|
13028
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
12835
13029
|
let children;
|
|
12836
13030
|
if (builder) {
|
|
12837
13031
|
const sub = new ChatSubBuilder();
|
|
@@ -12840,7 +13034,7 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12840
13034
|
}
|
|
12841
13035
|
this._includes.push({
|
|
12842
13036
|
fieldName: "chat",
|
|
12843
|
-
fragmentDoc:
|
|
13037
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatFragmentDoc,
|
|
12844
13038
|
variables,
|
|
12845
13039
|
isConnection: false,
|
|
12846
13040
|
isList: false,
|
|
@@ -12857,10 +13051,10 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12857
13051
|
}
|
|
12858
13052
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
12859
13053
|
file(variables) {
|
|
12860
|
-
const info = extractIncludeInfo(
|
|
13054
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
12861
13055
|
this._includes.push({
|
|
12862
13056
|
fieldName: "file",
|
|
12863
|
-
fragmentDoc:
|
|
13057
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.FileFragmentDoc,
|
|
12864
13058
|
variables,
|
|
12865
13059
|
isConnection: false,
|
|
12866
13060
|
isList: false,
|
|
@@ -12876,7 +13070,7 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12876
13070
|
}
|
|
12877
13071
|
/** Include message in this query (Smart Fetch — single HTTP request). */
|
|
12878
13072
|
message(variables, builder) {
|
|
12879
|
-
const info = extractIncludeInfo(
|
|
13073
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
12880
13074
|
let children;
|
|
12881
13075
|
if (builder) {
|
|
12882
13076
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -12885,7 +13079,7 @@ var ArtifactQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12885
13079
|
}
|
|
12886
13080
|
this._includes.push({
|
|
12887
13081
|
fieldName: "message",
|
|
12888
|
-
fragmentDoc:
|
|
13082
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatMessageFragmentDoc,
|
|
12889
13083
|
variables,
|
|
12890
13084
|
isConnection: false,
|
|
12891
13085
|
isList: false,
|
|
@@ -12909,14 +13103,14 @@ var Artifact_ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12909
13103
|
}
|
|
12910
13104
|
async fetch(options) {
|
|
12911
13105
|
const variables = this._variables;
|
|
12912
|
-
const response = await this._syncEngine.query(
|
|
13106
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Artifact_ChatDocument, variables, "artifact");
|
|
12913
13107
|
const data = response.artifact?.chat;
|
|
12914
13108
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
12915
13109
|
}
|
|
12916
13110
|
watch(options) {
|
|
12917
13111
|
const variables = this._variables;
|
|
12918
13112
|
const raw = this._syncEngine.watch(
|
|
12919
|
-
|
|
13113
|
+
chunkNVBJ6NKK_cjs.Artifact_ChatDocument,
|
|
12920
13114
|
variables,
|
|
12921
13115
|
"artifact",
|
|
12922
13116
|
async (db) => {
|
|
@@ -12939,14 +13133,14 @@ var Artifact_Chat_InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12939
13133
|
}
|
|
12940
13134
|
async fetch(options) {
|
|
12941
13135
|
const variables = this._variables;
|
|
12942
|
-
const response = await this._syncEngine.query(
|
|
13136
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Artifact_Chat_InsightDocument, variables, "artifact");
|
|
12943
13137
|
const data = response.artifact?.chat?.insight;
|
|
12944
13138
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
12945
13139
|
}
|
|
12946
13140
|
watch(options) {
|
|
12947
13141
|
const variables = this._variables;
|
|
12948
13142
|
const raw = this._syncEngine.watch(
|
|
12949
|
-
|
|
13143
|
+
chunkNVBJ6NKK_cjs.Artifact_Chat_InsightDocument,
|
|
12950
13144
|
variables,
|
|
12951
13145
|
"artifact",
|
|
12952
13146
|
async (db) => {
|
|
@@ -12969,14 +13163,14 @@ var Artifact_FileQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12969
13163
|
}
|
|
12970
13164
|
async fetch(options) {
|
|
12971
13165
|
const variables = this._variables;
|
|
12972
|
-
const response = await this._syncEngine.query(
|
|
13166
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Artifact_FileDocument, variables, "artifact");
|
|
12973
13167
|
const data = response.artifact?.file;
|
|
12974
13168
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
12975
13169
|
}
|
|
12976
13170
|
watch(options) {
|
|
12977
13171
|
const variables = this._variables;
|
|
12978
13172
|
const raw = this._syncEngine.watch(
|
|
12979
|
-
|
|
13173
|
+
chunkNVBJ6NKK_cjs.Artifact_FileDocument,
|
|
12980
13174
|
variables,
|
|
12981
13175
|
"artifact",
|
|
12982
13176
|
async (db) => {
|
|
@@ -12999,14 +13193,14 @@ var Artifact_MessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
12999
13193
|
}
|
|
13000
13194
|
async fetch(options) {
|
|
13001
13195
|
const variables = this._variables;
|
|
13002
|
-
const response = await this._syncEngine.query(
|
|
13196
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Artifact_MessageDocument, variables, "artifact");
|
|
13003
13197
|
const data = response.artifact?.message;
|
|
13004
13198
|
return data ? new ChatMessage(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13005
13199
|
}
|
|
13006
13200
|
watch(options) {
|
|
13007
13201
|
const variables = this._variables;
|
|
13008
13202
|
const raw = this._syncEngine.watch(
|
|
13009
|
-
|
|
13203
|
+
chunkNVBJ6NKK_cjs.Artifact_MessageDocument,
|
|
13010
13204
|
variables,
|
|
13011
13205
|
"artifact",
|
|
13012
13206
|
async (db) => {
|
|
@@ -13029,14 +13223,14 @@ var Artifact_Message_ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13029
13223
|
}
|
|
13030
13224
|
async fetch(options) {
|
|
13031
13225
|
const variables = this._variables;
|
|
13032
|
-
const response = await this._syncEngine.query(
|
|
13226
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Artifact_Message_ChatDocument, variables, "artifact");
|
|
13033
13227
|
const data = response.artifact?.message?.chat;
|
|
13034
13228
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13035
13229
|
}
|
|
13036
13230
|
watch(options) {
|
|
13037
13231
|
const variables = this._variables;
|
|
13038
13232
|
const raw = this._syncEngine.watch(
|
|
13039
|
-
|
|
13233
|
+
chunkNVBJ6NKK_cjs.Artifact_Message_ChatDocument,
|
|
13040
13234
|
variables,
|
|
13041
13235
|
"artifact",
|
|
13042
13236
|
async (db) => {
|
|
@@ -13058,7 +13252,7 @@ var Artifact_Message_ContentsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13058
13252
|
this._variables = variables;
|
|
13059
13253
|
}
|
|
13060
13254
|
async fetch(options) {
|
|
13061
|
-
const response = await this._syncEngine.query(
|
|
13255
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Artifact_Message_ContentsDocument, this._variables, "artifact");
|
|
13062
13256
|
const data = response.artifact?.message?.contents;
|
|
13063
13257
|
if (!Array.isArray(data)) return [];
|
|
13064
13258
|
return data.map((item) => new ContentBlock(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -13072,14 +13266,14 @@ var Artifact_Message_FeedbackQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13072
13266
|
}
|
|
13073
13267
|
async fetch(options) {
|
|
13074
13268
|
const variables = this._variables;
|
|
13075
|
-
const response = await this._syncEngine.query(
|
|
13269
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Artifact_Message_FeedbackDocument, variables, "artifact");
|
|
13076
13270
|
const data = response.artifact?.message?.feedback;
|
|
13077
13271
|
return data ? new Feedback(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13078
13272
|
}
|
|
13079
13273
|
watch(options) {
|
|
13080
13274
|
const variables = this._variables;
|
|
13081
13275
|
const raw = this._syncEngine.watch(
|
|
13082
|
-
|
|
13276
|
+
chunkNVBJ6NKK_cjs.Artifact_Message_FeedbackDocument,
|
|
13083
13277
|
variables,
|
|
13084
13278
|
"artifact",
|
|
13085
13279
|
async (db) => {
|
|
@@ -13103,7 +13297,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13103
13297
|
}
|
|
13104
13298
|
async fetch(options) {
|
|
13105
13299
|
const variables = this._variables;
|
|
13106
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13300
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ArtifactsDocument, "artifacts", this._includes, variables, true);
|
|
13107
13301
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "artifacts");
|
|
13108
13302
|
const data = response.artifacts;
|
|
13109
13303
|
const connection = new ArtifactConnection(this._request, (conn, opts) => new _ArtifactsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -13120,7 +13314,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13120
13314
|
const subscriptionId = crypto.randomUUID();
|
|
13121
13315
|
const includes = this._includes;
|
|
13122
13316
|
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) }] : []);
|
|
13123
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13317
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ArtifactsDocument, "artifacts", includes, variables, true);
|
|
13124
13318
|
const raw = this._syncEngine.watch(
|
|
13125
13319
|
queryDoc,
|
|
13126
13320
|
mergedVars,
|
|
@@ -13155,7 +13349,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13155
13349
|
}
|
|
13156
13350
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
13157
13351
|
chat(variables, builder) {
|
|
13158
|
-
const info = extractIncludeInfo(
|
|
13352
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Artifact_ChatDocument, "chat", ["id"]);
|
|
13159
13353
|
let children;
|
|
13160
13354
|
if (builder) {
|
|
13161
13355
|
const sub = new ChatSubBuilder();
|
|
@@ -13164,7 +13358,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13164
13358
|
}
|
|
13165
13359
|
this._includes.push({
|
|
13166
13360
|
fieldName: "chat",
|
|
13167
|
-
fragmentDoc:
|
|
13361
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatFragmentDoc,
|
|
13168
13362
|
variables,
|
|
13169
13363
|
isConnection: false,
|
|
13170
13364
|
isList: false,
|
|
@@ -13181,10 +13375,10 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13181
13375
|
}
|
|
13182
13376
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
13183
13377
|
file(variables) {
|
|
13184
|
-
const info = extractIncludeInfo(
|
|
13378
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Artifact_FileDocument, "file", ["id"]);
|
|
13185
13379
|
this._includes.push({
|
|
13186
13380
|
fieldName: "file",
|
|
13187
|
-
fragmentDoc:
|
|
13381
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.FileFragmentDoc,
|
|
13188
13382
|
variables,
|
|
13189
13383
|
isConnection: false,
|
|
13190
13384
|
isList: false,
|
|
@@ -13200,7 +13394,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13200
13394
|
}
|
|
13201
13395
|
/** Include message in this query (Smart Fetch — single HTTP request). */
|
|
13202
13396
|
message(variables, builder) {
|
|
13203
|
-
const info = extractIncludeInfo(
|
|
13397
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Artifact_MessageDocument, "message", ["id"]);
|
|
13204
13398
|
let children;
|
|
13205
13399
|
if (builder) {
|
|
13206
13400
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -13209,7 +13403,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13209
13403
|
}
|
|
13210
13404
|
this._includes.push({
|
|
13211
13405
|
fieldName: "message",
|
|
13212
|
-
fragmentDoc:
|
|
13406
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatMessageFragmentDoc,
|
|
13213
13407
|
variables,
|
|
13214
13408
|
isConnection: false,
|
|
13215
13409
|
isList: false,
|
|
@@ -13234,7 +13428,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13234
13428
|
}
|
|
13235
13429
|
async fetch(options) {
|
|
13236
13430
|
const variables = this._variables;
|
|
13237
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13431
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ChatDocument, "chat", this._includes, variables);
|
|
13238
13432
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chat");
|
|
13239
13433
|
const data = response.chat;
|
|
13240
13434
|
const instance = new Chat(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -13246,7 +13440,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13246
13440
|
watch(options) {
|
|
13247
13441
|
const variables = this._variables;
|
|
13248
13442
|
const includes = this._includes;
|
|
13249
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13443
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ChatDocument, "chat", includes, variables);
|
|
13250
13444
|
const raw = this._syncEngine.watch(
|
|
13251
13445
|
queryDoc,
|
|
13252
13446
|
mergedVars,
|
|
@@ -13276,7 +13470,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13276
13470
|
}
|
|
13277
13471
|
/** Include agents in this query (Smart Fetch — single HTTP request). */
|
|
13278
13472
|
agents(variables, builder) {
|
|
13279
|
-
const info = extractIncludeInfo(
|
|
13473
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
13280
13474
|
let children;
|
|
13281
13475
|
if (builder) {
|
|
13282
13476
|
const sub = new AgentSubBuilder();
|
|
@@ -13285,7 +13479,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13285
13479
|
}
|
|
13286
13480
|
this._includes.push({
|
|
13287
13481
|
fieldName: "agents",
|
|
13288
|
-
fragmentDoc:
|
|
13482
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.AgentConnectionFragmentDoc,
|
|
13289
13483
|
variables,
|
|
13290
13484
|
isConnection: true,
|
|
13291
13485
|
isList: false,
|
|
@@ -13303,7 +13497,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13303
13497
|
}
|
|
13304
13498
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
13305
13499
|
artifacts(variables, builder) {
|
|
13306
|
-
const info = extractIncludeInfo(
|
|
13500
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
13307
13501
|
let children;
|
|
13308
13502
|
if (builder) {
|
|
13309
13503
|
const sub = new ArtifactSubBuilder();
|
|
@@ -13312,7 +13506,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13312
13506
|
}
|
|
13313
13507
|
this._includes.push({
|
|
13314
13508
|
fieldName: "artifacts",
|
|
13315
|
-
fragmentDoc:
|
|
13509
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ArtifactConnectionFragmentDoc,
|
|
13316
13510
|
variables,
|
|
13317
13511
|
isConnection: true,
|
|
13318
13512
|
isList: false,
|
|
@@ -13330,7 +13524,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13330
13524
|
}
|
|
13331
13525
|
/** Include insight in this query (Smart Fetch — single HTTP request). */
|
|
13332
13526
|
insight(variables, builder) {
|
|
13333
|
-
const info = extractIncludeInfo(
|
|
13527
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
13334
13528
|
let children;
|
|
13335
13529
|
if (builder) {
|
|
13336
13530
|
const sub = new InsightSubBuilder();
|
|
@@ -13339,7 +13533,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13339
13533
|
}
|
|
13340
13534
|
this._includes.push({
|
|
13341
13535
|
fieldName: "insight",
|
|
13342
|
-
fragmentDoc:
|
|
13536
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.InsightFragmentDoc,
|
|
13343
13537
|
variables,
|
|
13344
13538
|
isConnection: false,
|
|
13345
13539
|
isList: false,
|
|
@@ -13356,7 +13550,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13356
13550
|
}
|
|
13357
13551
|
/** Include messages in this query (Smart Fetch — single HTTP request). */
|
|
13358
13552
|
messages(variables, builder) {
|
|
13359
|
-
const info = extractIncludeInfo(
|
|
13553
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
13360
13554
|
let children;
|
|
13361
13555
|
if (builder) {
|
|
13362
13556
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -13365,7 +13559,7 @@ var ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13365
13559
|
}
|
|
13366
13560
|
this._includes.push({
|
|
13367
13561
|
fieldName: "messages",
|
|
13368
|
-
fragmentDoc:
|
|
13562
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatMessageConnectionFragmentDoc,
|
|
13369
13563
|
variables,
|
|
13370
13564
|
isConnection: true,
|
|
13371
13565
|
isList: false,
|
|
@@ -13390,18 +13584,18 @@ var Chat_AgentsQuery = class _Chat_AgentsQuery extends chunk4QKWHQT2_cjs.Request
|
|
|
13390
13584
|
}
|
|
13391
13585
|
async fetch(options) {
|
|
13392
13586
|
const variables = this._variables;
|
|
13393
|
-
const response = await this._syncEngine.query(
|
|
13587
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Chat_AgentsDocument, variables, "chat");
|
|
13394
13588
|
const data = response.chat?.agents;
|
|
13395
13589
|
return new AgentConnection(this._request, (conn, opts) => new _Chat_AgentsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
13396
13590
|
}
|
|
13397
13591
|
watch(options) {
|
|
13398
13592
|
const variables = this._variables;
|
|
13399
13593
|
const raw = this._syncEngine.watch(
|
|
13400
|
-
|
|
13594
|
+
chunkNVBJ6NKK_cjs.Chat_AgentsDocument,
|
|
13401
13595
|
variables,
|
|
13402
13596
|
"chat",
|
|
13403
13597
|
async (db) => {
|
|
13404
|
-
const qr = await db._queryResults.get(buildQueryKey("chat", variables,
|
|
13598
|
+
const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunkNVBJ6NKK_cjs.Chat_AgentsDocument));
|
|
13405
13599
|
const nodes = qr ? await db.table("agents").bulkGet(qr.entityIds) : [];
|
|
13406
13600
|
return { chat: { agents: { __typename: "AgentConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
13407
13601
|
}
|
|
@@ -13420,18 +13614,18 @@ var Chat_ArtifactsQuery = class _Chat_ArtifactsQuery extends chunk4QKWHQT2_cjs.R
|
|
|
13420
13614
|
}
|
|
13421
13615
|
async fetch(options) {
|
|
13422
13616
|
const variables = this._variables;
|
|
13423
|
-
const response = await this._syncEngine.query(
|
|
13617
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Chat_ArtifactsDocument, variables, "chat");
|
|
13424
13618
|
const data = response.chat?.artifacts;
|
|
13425
13619
|
return new ArtifactConnection(this._request, (conn, opts) => new _Chat_ArtifactsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
13426
13620
|
}
|
|
13427
13621
|
watch(options) {
|
|
13428
13622
|
const variables = this._variables;
|
|
13429
13623
|
const raw = this._syncEngine.watch(
|
|
13430
|
-
|
|
13624
|
+
chunkNVBJ6NKK_cjs.Chat_ArtifactsDocument,
|
|
13431
13625
|
variables,
|
|
13432
13626
|
"chat",
|
|
13433
13627
|
async (db) => {
|
|
13434
|
-
const qr = await db._queryResults.get(buildQueryKey("chat", variables,
|
|
13628
|
+
const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunkNVBJ6NKK_cjs.Chat_ArtifactsDocument));
|
|
13435
13629
|
const nodes = qr ? await db.table("artifacts").bulkGet(qr.entityIds) : [];
|
|
13436
13630
|
return { chat: { artifacts: { __typename: "ArtifactConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
13437
13631
|
}
|
|
@@ -13450,14 +13644,14 @@ var Chat_InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13450
13644
|
}
|
|
13451
13645
|
async fetch(options) {
|
|
13452
13646
|
const variables = this._variables;
|
|
13453
|
-
const response = await this._syncEngine.query(
|
|
13647
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Chat_InsightDocument, variables, "chat");
|
|
13454
13648
|
const data = response.chat?.insight;
|
|
13455
13649
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13456
13650
|
}
|
|
13457
13651
|
watch(options) {
|
|
13458
13652
|
const variables = this._variables;
|
|
13459
13653
|
const raw = this._syncEngine.watch(
|
|
13460
|
-
|
|
13654
|
+
chunkNVBJ6NKK_cjs.Chat_InsightDocument,
|
|
13461
13655
|
variables,
|
|
13462
13656
|
"chat",
|
|
13463
13657
|
async (db) => {
|
|
@@ -13479,7 +13673,7 @@ var Chat_Insight_ReportMembersQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13479
13673
|
this._variables = variables;
|
|
13480
13674
|
}
|
|
13481
13675
|
async fetch(options) {
|
|
13482
|
-
const response = await this._syncEngine.query(
|
|
13676
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Chat_Insight_ReportMembersDocument, this._variables, "chat");
|
|
13483
13677
|
const data = response.chat?.insight?.reportMembers;
|
|
13484
13678
|
if (!Array.isArray(data)) return [];
|
|
13485
13679
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -13493,18 +13687,18 @@ var Chat_MessagesQuery = class _Chat_MessagesQuery extends chunk4QKWHQT2_cjs.Req
|
|
|
13493
13687
|
}
|
|
13494
13688
|
async fetch(options) {
|
|
13495
13689
|
const variables = this._variables;
|
|
13496
|
-
const response = await this._syncEngine.query(
|
|
13690
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Chat_MessagesDocument, variables, "chat");
|
|
13497
13691
|
const data = response.chat?.messages;
|
|
13498
13692
|
return new ChatMessageConnection(this._request, (conn, opts) => new _Chat_MessagesQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
13499
13693
|
}
|
|
13500
13694
|
watch(options) {
|
|
13501
13695
|
const variables = this._variables;
|
|
13502
13696
|
const raw = this._syncEngine.watch(
|
|
13503
|
-
|
|
13697
|
+
chunkNVBJ6NKK_cjs.Chat_MessagesDocument,
|
|
13504
13698
|
variables,
|
|
13505
13699
|
"chat",
|
|
13506
13700
|
async (db) => {
|
|
13507
|
-
const qr = await db._queryResults.get(buildQueryKey("chat", variables,
|
|
13701
|
+
const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunkNVBJ6NKK_cjs.Chat_MessagesDocument));
|
|
13508
13702
|
const nodes = qr ? await db.table("chatMessages").bulkGet(qr.entityIds) : [];
|
|
13509
13703
|
return { chat: { messages: { __typename: "ChatMessageConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
13510
13704
|
}
|
|
@@ -13524,7 +13718,7 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13524
13718
|
}
|
|
13525
13719
|
async fetch(options) {
|
|
13526
13720
|
const variables = this._variables;
|
|
13527
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13721
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ChatMessageDocument, "chatMessage", this._includes, variables);
|
|
13528
13722
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessage");
|
|
13529
13723
|
const data = response.chatMessage;
|
|
13530
13724
|
const instance = new ChatMessage(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -13536,7 +13730,7 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13536
13730
|
watch(options) {
|
|
13537
13731
|
const variables = this._variables;
|
|
13538
13732
|
const includes = this._includes;
|
|
13539
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13733
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ChatMessageDocument, "chatMessage", includes, variables);
|
|
13540
13734
|
const raw = this._syncEngine.watch(
|
|
13541
13735
|
queryDoc,
|
|
13542
13736
|
mergedVars,
|
|
@@ -13566,7 +13760,7 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13566
13760
|
}
|
|
13567
13761
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
13568
13762
|
artifacts(variables, builder) {
|
|
13569
|
-
const info = extractIncludeInfo(
|
|
13763
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
13570
13764
|
let children;
|
|
13571
13765
|
if (builder) {
|
|
13572
13766
|
const sub = new ArtifactSubBuilder();
|
|
@@ -13575,7 +13769,7 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13575
13769
|
}
|
|
13576
13770
|
this._includes.push({
|
|
13577
13771
|
fieldName: "artifacts",
|
|
13578
|
-
fragmentDoc:
|
|
13772
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ArtifactConnectionFragmentDoc,
|
|
13579
13773
|
variables,
|
|
13580
13774
|
isConnection: true,
|
|
13581
13775
|
isList: false,
|
|
@@ -13593,7 +13787,7 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13593
13787
|
}
|
|
13594
13788
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
13595
13789
|
chat(variables, builder) {
|
|
13596
|
-
const info = extractIncludeInfo(
|
|
13790
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
13597
13791
|
let children;
|
|
13598
13792
|
if (builder) {
|
|
13599
13793
|
const sub = new ChatSubBuilder();
|
|
@@ -13602,7 +13796,7 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13602
13796
|
}
|
|
13603
13797
|
this._includes.push({
|
|
13604
13798
|
fieldName: "chat",
|
|
13605
|
-
fragmentDoc:
|
|
13799
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatFragmentDoc,
|
|
13606
13800
|
variables,
|
|
13607
13801
|
isConnection: false,
|
|
13608
13802
|
isList: false,
|
|
@@ -13619,10 +13813,10 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13619
13813
|
}
|
|
13620
13814
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
13621
13815
|
contents(variables) {
|
|
13622
|
-
const info = extractIncludeInfo(
|
|
13816
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
13623
13817
|
this._includes.push({
|
|
13624
13818
|
fieldName: "contents",
|
|
13625
|
-
fragmentDoc:
|
|
13819
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ContentBlockFragmentDoc,
|
|
13626
13820
|
variables,
|
|
13627
13821
|
isConnection: false,
|
|
13628
13822
|
isList: true,
|
|
@@ -13638,10 +13832,10 @@ var ChatMessageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13638
13832
|
}
|
|
13639
13833
|
/** Include feedback in this query (Smart Fetch — single HTTP request). */
|
|
13640
13834
|
feedback(variables) {
|
|
13641
|
-
const info = extractIncludeInfo(
|
|
13835
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
13642
13836
|
this._includes.push({
|
|
13643
13837
|
fieldName: "feedback",
|
|
13644
|
-
fragmentDoc:
|
|
13838
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.FeedbackFragmentDoc,
|
|
13645
13839
|
variables,
|
|
13646
13840
|
isConnection: false,
|
|
13647
13841
|
isList: false,
|
|
@@ -13664,18 +13858,18 @@ var ChatMessage_ArtifactsQuery = class _ChatMessage_ArtifactsQuery extends chunk
|
|
|
13664
13858
|
}
|
|
13665
13859
|
async fetch(options) {
|
|
13666
13860
|
const variables = this._variables;
|
|
13667
|
-
const response = await this._syncEngine.query(
|
|
13861
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.ChatMessage_ArtifactsDocument, variables, "chatMessage");
|
|
13668
13862
|
const data = response.chatMessage?.artifacts;
|
|
13669
13863
|
return new ArtifactConnection(this._request, (conn, opts) => new _ChatMessage_ArtifactsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
13670
13864
|
}
|
|
13671
13865
|
watch(options) {
|
|
13672
13866
|
const variables = this._variables;
|
|
13673
13867
|
const raw = this._syncEngine.watch(
|
|
13674
|
-
|
|
13868
|
+
chunkNVBJ6NKK_cjs.ChatMessage_ArtifactsDocument,
|
|
13675
13869
|
variables,
|
|
13676
13870
|
"chatMessage",
|
|
13677
13871
|
async (db) => {
|
|
13678
|
-
const qr = await db._queryResults.get(buildQueryKey("chatMessage", variables,
|
|
13872
|
+
const qr = await db._queryResults.get(buildQueryKey("chatMessage", variables, chunkNVBJ6NKK_cjs.ChatMessage_ArtifactsDocument));
|
|
13679
13873
|
const nodes = qr ? await db.table("artifacts").bulkGet(qr.entityIds) : [];
|
|
13680
13874
|
return { chatMessage: { artifacts: { __typename: "ArtifactConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
13681
13875
|
}
|
|
@@ -13694,14 +13888,14 @@ var ChatMessage_ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13694
13888
|
}
|
|
13695
13889
|
async fetch(options) {
|
|
13696
13890
|
const variables = this._variables;
|
|
13697
|
-
const response = await this._syncEngine.query(
|
|
13891
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.ChatMessage_ChatDocument, variables, "chatMessage");
|
|
13698
13892
|
const data = response.chatMessage?.chat;
|
|
13699
13893
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13700
13894
|
}
|
|
13701
13895
|
watch(options) {
|
|
13702
13896
|
const variables = this._variables;
|
|
13703
13897
|
const raw = this._syncEngine.watch(
|
|
13704
|
-
|
|
13898
|
+
chunkNVBJ6NKK_cjs.ChatMessage_ChatDocument,
|
|
13705
13899
|
variables,
|
|
13706
13900
|
"chatMessage",
|
|
13707
13901
|
async (db) => {
|
|
@@ -13724,14 +13918,14 @@ var ChatMessage_Chat_InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13724
13918
|
}
|
|
13725
13919
|
async fetch(options) {
|
|
13726
13920
|
const variables = this._variables;
|
|
13727
|
-
const response = await this._syncEngine.query(
|
|
13921
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.ChatMessage_Chat_InsightDocument, variables, "chatMessage");
|
|
13728
13922
|
const data = response.chatMessage?.chat?.insight;
|
|
13729
13923
|
return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13730
13924
|
}
|
|
13731
13925
|
watch(options) {
|
|
13732
13926
|
const variables = this._variables;
|
|
13733
13927
|
const raw = this._syncEngine.watch(
|
|
13734
|
-
|
|
13928
|
+
chunkNVBJ6NKK_cjs.ChatMessage_Chat_InsightDocument,
|
|
13735
13929
|
variables,
|
|
13736
13930
|
"chatMessage",
|
|
13737
13931
|
async (db) => {
|
|
@@ -13753,7 +13947,7 @@ var ChatMessage_ContentsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13753
13947
|
this._variables = variables;
|
|
13754
13948
|
}
|
|
13755
13949
|
async fetch(options) {
|
|
13756
|
-
const response = await this._syncEngine.query(
|
|
13950
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.ChatMessage_ContentsDocument, this._variables, "chatMessage");
|
|
13757
13951
|
const data = response.chatMessage?.contents;
|
|
13758
13952
|
if (!Array.isArray(data)) return [];
|
|
13759
13953
|
return data.map((item) => new ContentBlock(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -13767,14 +13961,14 @@ var ChatMessage_FeedbackQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
13767
13961
|
}
|
|
13768
13962
|
async fetch(options) {
|
|
13769
13963
|
const variables = this._variables;
|
|
13770
|
-
const response = await this._syncEngine.query(
|
|
13964
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.ChatMessage_FeedbackDocument, variables, "chatMessage");
|
|
13771
13965
|
const data = response.chatMessage?.feedback;
|
|
13772
13966
|
return data ? new Feedback(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
13773
13967
|
}
|
|
13774
13968
|
watch(options) {
|
|
13775
13969
|
const variables = this._variables;
|
|
13776
13970
|
const raw = this._syncEngine.watch(
|
|
13777
|
-
|
|
13971
|
+
chunkNVBJ6NKK_cjs.ChatMessage_FeedbackDocument,
|
|
13778
13972
|
variables,
|
|
13779
13973
|
"chatMessage",
|
|
13780
13974
|
async (db) => {
|
|
@@ -13798,7 +13992,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
13798
13992
|
}
|
|
13799
13993
|
async fetch(options) {
|
|
13800
13994
|
const variables = this._variables;
|
|
13801
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
13995
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ChatMessagesDocument, "chatMessages", this._includes, variables, true);
|
|
13802
13996
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessages");
|
|
13803
13997
|
const data = response.chatMessages;
|
|
13804
13998
|
const connection = new ChatMessageConnection(this._request, (conn, opts) => new _ChatMessagesQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -13815,7 +14009,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
13815
14009
|
const subscriptionId = crypto.randomUUID();
|
|
13816
14010
|
const includes = this._includes;
|
|
13817
14011
|
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) }] : []);
|
|
13818
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14012
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ChatMessagesDocument, "chatMessages", includes, variables, true);
|
|
13819
14013
|
const raw = this._syncEngine.watch(
|
|
13820
14014
|
queryDoc,
|
|
13821
14015
|
mergedVars,
|
|
@@ -13850,7 +14044,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
13850
14044
|
}
|
|
13851
14045
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
13852
14046
|
artifacts(variables, builder) {
|
|
13853
|
-
const info = extractIncludeInfo(
|
|
14047
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
|
|
13854
14048
|
let children;
|
|
13855
14049
|
if (builder) {
|
|
13856
14050
|
const sub = new ArtifactSubBuilder();
|
|
@@ -13859,7 +14053,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
13859
14053
|
}
|
|
13860
14054
|
this._includes.push({
|
|
13861
14055
|
fieldName: "artifacts",
|
|
13862
|
-
fragmentDoc:
|
|
14056
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ArtifactConnectionFragmentDoc,
|
|
13863
14057
|
variables,
|
|
13864
14058
|
isConnection: true,
|
|
13865
14059
|
isList: false,
|
|
@@ -13877,7 +14071,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
13877
14071
|
}
|
|
13878
14072
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
13879
14073
|
chat(variables, builder) {
|
|
13880
|
-
const info = extractIncludeInfo(
|
|
14074
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
|
|
13881
14075
|
let children;
|
|
13882
14076
|
if (builder) {
|
|
13883
14077
|
const sub = new ChatSubBuilder();
|
|
@@ -13886,7 +14080,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
13886
14080
|
}
|
|
13887
14081
|
this._includes.push({
|
|
13888
14082
|
fieldName: "chat",
|
|
13889
|
-
fragmentDoc:
|
|
14083
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatFragmentDoc,
|
|
13890
14084
|
variables,
|
|
13891
14085
|
isConnection: false,
|
|
13892
14086
|
isList: false,
|
|
@@ -13903,10 +14097,10 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
13903
14097
|
}
|
|
13904
14098
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
13905
14099
|
contents(variables) {
|
|
13906
|
-
const info = extractIncludeInfo(
|
|
14100
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
|
|
13907
14101
|
this._includes.push({
|
|
13908
14102
|
fieldName: "contents",
|
|
13909
|
-
fragmentDoc:
|
|
14103
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ContentBlockFragmentDoc,
|
|
13910
14104
|
variables,
|
|
13911
14105
|
isConnection: false,
|
|
13912
14106
|
isList: true,
|
|
@@ -13922,10 +14116,10 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
13922
14116
|
}
|
|
13923
14117
|
/** Include feedback in this query (Smart Fetch — single HTTP request). */
|
|
13924
14118
|
feedback(variables) {
|
|
13925
|
-
const info = extractIncludeInfo(
|
|
14119
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
|
|
13926
14120
|
this._includes.push({
|
|
13927
14121
|
fieldName: "feedback",
|
|
13928
|
-
fragmentDoc:
|
|
14122
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.FeedbackFragmentDoc,
|
|
13929
14123
|
variables,
|
|
13930
14124
|
isConnection: false,
|
|
13931
14125
|
isList: false,
|
|
@@ -13949,7 +14143,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13949
14143
|
}
|
|
13950
14144
|
async fetch(options) {
|
|
13951
14145
|
const variables = this._variables;
|
|
13952
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14146
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ChatsDocument, "chats", this._includes, variables, true);
|
|
13953
14147
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "chats");
|
|
13954
14148
|
const data = response.chats;
|
|
13955
14149
|
const connection = new ChatConnection(this._request, (conn, opts) => new _ChatsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -13966,7 +14160,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
13966
14160
|
const subscriptionId = crypto.randomUUID();
|
|
13967
14161
|
const includes = this._includes;
|
|
13968
14162
|
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) }] : []);
|
|
13969
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14163
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ChatsDocument, "chats", includes, variables, true);
|
|
13970
14164
|
const raw = this._syncEngine.watch(
|
|
13971
14165
|
queryDoc,
|
|
13972
14166
|
mergedVars,
|
|
@@ -14001,7 +14195,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14001
14195
|
}
|
|
14002
14196
|
/** Include agents in this query (Smart Fetch — single HTTP request). */
|
|
14003
14197
|
agents(variables, builder) {
|
|
14004
|
-
const info = extractIncludeInfo(
|
|
14198
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Chat_AgentsDocument, "agents", ["id"]);
|
|
14005
14199
|
let children;
|
|
14006
14200
|
if (builder) {
|
|
14007
14201
|
const sub = new AgentSubBuilder();
|
|
@@ -14010,7 +14204,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14010
14204
|
}
|
|
14011
14205
|
this._includes.push({
|
|
14012
14206
|
fieldName: "agents",
|
|
14013
|
-
fragmentDoc:
|
|
14207
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.AgentConnectionFragmentDoc,
|
|
14014
14208
|
variables,
|
|
14015
14209
|
isConnection: true,
|
|
14016
14210
|
isList: false,
|
|
@@ -14028,7 +14222,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14028
14222
|
}
|
|
14029
14223
|
/** Include artifacts in this query (Smart Fetch — single HTTP request). */
|
|
14030
14224
|
artifacts(variables, builder) {
|
|
14031
|
-
const info = extractIncludeInfo(
|
|
14225
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
|
|
14032
14226
|
let children;
|
|
14033
14227
|
if (builder) {
|
|
14034
14228
|
const sub = new ArtifactSubBuilder();
|
|
@@ -14037,7 +14231,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14037
14231
|
}
|
|
14038
14232
|
this._includes.push({
|
|
14039
14233
|
fieldName: "artifacts",
|
|
14040
|
-
fragmentDoc:
|
|
14234
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ArtifactConnectionFragmentDoc,
|
|
14041
14235
|
variables,
|
|
14042
14236
|
isConnection: true,
|
|
14043
14237
|
isList: false,
|
|
@@ -14055,7 +14249,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14055
14249
|
}
|
|
14056
14250
|
/** Include insight in this query (Smart Fetch — single HTTP request). */
|
|
14057
14251
|
insight(variables, builder) {
|
|
14058
|
-
const info = extractIncludeInfo(
|
|
14252
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Chat_InsightDocument, "insight", ["id"]);
|
|
14059
14253
|
let children;
|
|
14060
14254
|
if (builder) {
|
|
14061
14255
|
const sub = new InsightSubBuilder();
|
|
@@ -14064,7 +14258,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14064
14258
|
}
|
|
14065
14259
|
this._includes.push({
|
|
14066
14260
|
fieldName: "insight",
|
|
14067
|
-
fragmentDoc:
|
|
14261
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.InsightFragmentDoc,
|
|
14068
14262
|
variables,
|
|
14069
14263
|
isConnection: false,
|
|
14070
14264
|
isList: false,
|
|
@@ -14081,7 +14275,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14081
14275
|
}
|
|
14082
14276
|
/** Include messages in this query (Smart Fetch — single HTTP request). */
|
|
14083
14277
|
messages(variables, builder) {
|
|
14084
|
-
const info = extractIncludeInfo(
|
|
14278
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Chat_MessagesDocument, "messages", ["id"]);
|
|
14085
14279
|
let children;
|
|
14086
14280
|
if (builder) {
|
|
14087
14281
|
const sub = new ChatMessageSubBuilder();
|
|
@@ -14090,7 +14284,7 @@ var ChatsQuery = class _ChatsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14090
14284
|
}
|
|
14091
14285
|
this._includes.push({
|
|
14092
14286
|
fieldName: "messages",
|
|
14093
|
-
fragmentDoc:
|
|
14287
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatMessageConnectionFragmentDoc,
|
|
14094
14288
|
variables,
|
|
14095
14289
|
isConnection: true,
|
|
14096
14290
|
isList: false,
|
|
@@ -14116,7 +14310,7 @@ var DatabaseQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14116
14310
|
}
|
|
14117
14311
|
async fetch(options) {
|
|
14118
14312
|
const variables = this._variables;
|
|
14119
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14313
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DatabaseDocument, "database", this._includes, variables);
|
|
14120
14314
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "database");
|
|
14121
14315
|
const data = response.database;
|
|
14122
14316
|
const instance = new Database(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14128,7 +14322,7 @@ var DatabaseQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14128
14322
|
watch(options) {
|
|
14129
14323
|
const variables = this._variables;
|
|
14130
14324
|
const includes = this._includes;
|
|
14131
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14325
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DatabaseDocument, "database", includes, variables);
|
|
14132
14326
|
const raw = this._syncEngine.watch(
|
|
14133
14327
|
queryDoc,
|
|
14134
14328
|
mergedVars,
|
|
@@ -14158,10 +14352,10 @@ var DatabaseQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14158
14352
|
}
|
|
14159
14353
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
14160
14354
|
engine(variables) {
|
|
14161
|
-
const info = extractIncludeInfo(
|
|
14355
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
14162
14356
|
this._includes.push({
|
|
14163
14357
|
fieldName: "engine",
|
|
14164
|
-
fragmentDoc:
|
|
14358
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DatabaseEngineFragmentDoc,
|
|
14165
14359
|
variables,
|
|
14166
14360
|
isConnection: false,
|
|
14167
14361
|
isList: false,
|
|
@@ -14177,7 +14371,7 @@ var DatabaseQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14177
14371
|
}
|
|
14178
14372
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
14179
14373
|
tables(variables, builder) {
|
|
14180
|
-
const info = extractIncludeInfo(
|
|
14374
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
14181
14375
|
let children;
|
|
14182
14376
|
if (builder) {
|
|
14183
14377
|
const sub = new TableSubBuilder();
|
|
@@ -14186,7 +14380,7 @@ var DatabaseQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14186
14380
|
}
|
|
14187
14381
|
this._includes.push({
|
|
14188
14382
|
fieldName: "tables",
|
|
14189
|
-
fragmentDoc:
|
|
14383
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.TableConnectionFragmentDoc,
|
|
14190
14384
|
variables,
|
|
14191
14385
|
isConnection: true,
|
|
14192
14386
|
isList: false,
|
|
@@ -14211,14 +14405,14 @@ var Database_EngineQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14211
14405
|
}
|
|
14212
14406
|
async fetch(options) {
|
|
14213
14407
|
const variables = this._variables;
|
|
14214
|
-
const response = await this._syncEngine.query(
|
|
14408
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Database_EngineDocument, variables, "database");
|
|
14215
14409
|
const data = response.database?.engine;
|
|
14216
14410
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14217
14411
|
}
|
|
14218
14412
|
watch(options) {
|
|
14219
14413
|
const variables = this._variables;
|
|
14220
14414
|
const raw = this._syncEngine.watch(
|
|
14221
|
-
|
|
14415
|
+
chunkNVBJ6NKK_cjs.Database_EngineDocument,
|
|
14222
14416
|
variables,
|
|
14223
14417
|
"database",
|
|
14224
14418
|
async (db) => {
|
|
@@ -14241,14 +14435,14 @@ var Database_Engine_CatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14241
14435
|
}
|
|
14242
14436
|
async fetch(options) {
|
|
14243
14437
|
const variables = this._variables;
|
|
14244
|
-
const response = await this._syncEngine.query(
|
|
14438
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Database_Engine_CatalogDocument, variables, "database");
|
|
14245
14439
|
const data = response.database?.engine?.catalog;
|
|
14246
14440
|
return data ? new DatabaseCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14247
14441
|
}
|
|
14248
14442
|
watch(options) {
|
|
14249
14443
|
const variables = this._variables;
|
|
14250
14444
|
const raw = this._syncEngine.watch(
|
|
14251
|
-
|
|
14445
|
+
chunkNVBJ6NKK_cjs.Database_Engine_CatalogDocument,
|
|
14252
14446
|
variables,
|
|
14253
14447
|
"database",
|
|
14254
14448
|
async (db) => {
|
|
@@ -14271,18 +14465,18 @@ var Database_TablesQuery = class _Database_TablesQuery extends chunk4QKWHQT2_cjs
|
|
|
14271
14465
|
}
|
|
14272
14466
|
async fetch(options) {
|
|
14273
14467
|
const variables = this._variables;
|
|
14274
|
-
const response = await this._syncEngine.query(
|
|
14468
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Database_TablesDocument, variables, "database");
|
|
14275
14469
|
const data = response.database?.tables;
|
|
14276
14470
|
return new TableConnection(this._request, (conn, opts) => new _Database_TablesQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
14277
14471
|
}
|
|
14278
14472
|
watch(options) {
|
|
14279
14473
|
const variables = this._variables;
|
|
14280
14474
|
const raw = this._syncEngine.watch(
|
|
14281
|
-
|
|
14475
|
+
chunkNVBJ6NKK_cjs.Database_TablesDocument,
|
|
14282
14476
|
variables,
|
|
14283
14477
|
"database",
|
|
14284
14478
|
async (db) => {
|
|
14285
|
-
const qr = await db._queryResults.get(buildQueryKey("database", variables,
|
|
14479
|
+
const qr = await db._queryResults.get(buildQueryKey("database", variables, chunkNVBJ6NKK_cjs.Database_TablesDocument));
|
|
14286
14480
|
const nodes = qr ? await db.table("tables").bulkGet(qr.entityIds) : [];
|
|
14287
14481
|
return { database: { tables: { __typename: "TableConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
14288
14482
|
}
|
|
@@ -14302,7 +14496,7 @@ var DatabaseCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14302
14496
|
}
|
|
14303
14497
|
async fetch(options) {
|
|
14304
14498
|
const variables = this._variables;
|
|
14305
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14499
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DatabaseCatalogDocument, "databaseCatalog", this._includes, variables);
|
|
14306
14500
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databaseCatalog");
|
|
14307
14501
|
const data = response.databaseCatalog;
|
|
14308
14502
|
const instance = new DatabaseCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14314,7 +14508,7 @@ var DatabaseCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14314
14508
|
watch(options) {
|
|
14315
14509
|
const variables = this._variables;
|
|
14316
14510
|
const includes = this._includes;
|
|
14317
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14511
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DatabaseCatalogDocument, "databaseCatalog", includes, variables);
|
|
14318
14512
|
const raw = this._syncEngine.watch(
|
|
14319
14513
|
queryDoc,
|
|
14320
14514
|
mergedVars,
|
|
@@ -14344,10 +14538,10 @@ var DatabaseCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14344
14538
|
}
|
|
14345
14539
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
14346
14540
|
engine(variables) {
|
|
14347
|
-
const info = extractIncludeInfo(
|
|
14541
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
14348
14542
|
this._includes.push({
|
|
14349
14543
|
fieldName: "engine",
|
|
14350
|
-
fragmentDoc:
|
|
14544
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DatabaseEngineFragmentDoc,
|
|
14351
14545
|
variables,
|
|
14352
14546
|
isConnection: false,
|
|
14353
14547
|
isList: false,
|
|
@@ -14370,14 +14564,14 @@ var DatabaseCatalog_EngineQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14370
14564
|
}
|
|
14371
14565
|
async fetch(options) {
|
|
14372
14566
|
const variables = this._variables;
|
|
14373
|
-
const response = await this._syncEngine.query(
|
|
14567
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.DatabaseCatalog_EngineDocument, variables, "databaseCatalog");
|
|
14374
14568
|
const data = response.databaseCatalog?.engine;
|
|
14375
14569
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14376
14570
|
}
|
|
14377
14571
|
watch(options) {
|
|
14378
14572
|
const variables = this._variables;
|
|
14379
14573
|
const raw = this._syncEngine.watch(
|
|
14380
|
-
|
|
14574
|
+
chunkNVBJ6NKK_cjs.DatabaseCatalog_EngineDocument,
|
|
14381
14575
|
variables,
|
|
14382
14576
|
"databaseCatalog",
|
|
14383
14577
|
async (db) => {
|
|
@@ -14401,7 +14595,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
14401
14595
|
}
|
|
14402
14596
|
async fetch(options) {
|
|
14403
14597
|
const variables = this._variables;
|
|
14404
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14598
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DatabaseCatalogsDocument, "databaseCatalogs", this._includes, variables, true);
|
|
14405
14599
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databaseCatalogs");
|
|
14406
14600
|
const data = response.databaseCatalogs;
|
|
14407
14601
|
const connection = new DatabaseCatalogConnection(this._request, (conn, opts) => new _DatabaseCatalogsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -14418,7 +14612,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
14418
14612
|
const subscriptionId = crypto.randomUUID();
|
|
14419
14613
|
const includes = this._includes;
|
|
14420
14614
|
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) }] : []);
|
|
14421
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14615
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DatabaseCatalogsDocument, "databaseCatalogs", includes, variables, true);
|
|
14422
14616
|
const raw = this._syncEngine.watch(
|
|
14423
14617
|
queryDoc,
|
|
14424
14618
|
mergedVars,
|
|
@@ -14453,10 +14647,10 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
14453
14647
|
}
|
|
14454
14648
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
14455
14649
|
engine(variables) {
|
|
14456
|
-
const info = extractIncludeInfo(
|
|
14650
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.DatabaseCatalog_EngineDocument, "engine", []);
|
|
14457
14651
|
this._includes.push({
|
|
14458
14652
|
fieldName: "engine",
|
|
14459
|
-
fragmentDoc:
|
|
14653
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DatabaseEngineFragmentDoc,
|
|
14460
14654
|
variables,
|
|
14461
14655
|
isConnection: false,
|
|
14462
14656
|
isList: false,
|
|
@@ -14473,7 +14667,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
14473
14667
|
};
|
|
14474
14668
|
var DatabaseSchemaQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
14475
14669
|
async fetch(variables) {
|
|
14476
|
-
const response = await this._request(
|
|
14670
|
+
const response = await this._request(chunkNVBJ6NKK_cjs.DatabaseSchemaDocument, variables);
|
|
14477
14671
|
return response.databaseSchema;
|
|
14478
14672
|
}
|
|
14479
14673
|
};
|
|
@@ -14486,7 +14680,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14486
14680
|
}
|
|
14487
14681
|
async fetch(options) {
|
|
14488
14682
|
const variables = this._variables;
|
|
14489
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14683
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DatabasesDocument, "databases", this._includes, variables, true);
|
|
14490
14684
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "databases");
|
|
14491
14685
|
const data = response.databases;
|
|
14492
14686
|
const connection = new DatabaseConnection(this._request, (conn, opts) => new _DatabasesQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -14503,7 +14697,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14503
14697
|
const subscriptionId = crypto.randomUUID();
|
|
14504
14698
|
const includes = this._includes;
|
|
14505
14699
|
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) }] : []);
|
|
14506
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14700
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DatabasesDocument, "databases", includes, variables, true);
|
|
14507
14701
|
const raw = this._syncEngine.watch(
|
|
14508
14702
|
queryDoc,
|
|
14509
14703
|
mergedVars,
|
|
@@ -14538,10 +14732,10 @@ var DatabasesQuery = class _DatabasesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14538
14732
|
}
|
|
14539
14733
|
/** Include engine in this query (Smart Fetch — single HTTP request). */
|
|
14540
14734
|
engine(variables) {
|
|
14541
|
-
const info = extractIncludeInfo(
|
|
14735
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Database_EngineDocument, "engine", ["id"]);
|
|
14542
14736
|
this._includes.push({
|
|
14543
14737
|
fieldName: "engine",
|
|
14544
|
-
fragmentDoc:
|
|
14738
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DatabaseEngineFragmentDoc,
|
|
14545
14739
|
variables,
|
|
14546
14740
|
isConnection: false,
|
|
14547
14741
|
isList: false,
|
|
@@ -14557,7 +14751,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14557
14751
|
}
|
|
14558
14752
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
14559
14753
|
tables(variables, builder) {
|
|
14560
|
-
const info = extractIncludeInfo(
|
|
14754
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Database_TablesDocument, "tables", ["id"]);
|
|
14561
14755
|
let children;
|
|
14562
14756
|
if (builder) {
|
|
14563
14757
|
const sub = new TableSubBuilder();
|
|
@@ -14566,7 +14760,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
14566
14760
|
}
|
|
14567
14761
|
this._includes.push({
|
|
14568
14762
|
fieldName: "tables",
|
|
14569
|
-
fragmentDoc:
|
|
14763
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.TableConnectionFragmentDoc,
|
|
14570
14764
|
variables,
|
|
14571
14765
|
isConnection: true,
|
|
14572
14766
|
isList: false,
|
|
@@ -14592,7 +14786,7 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14592
14786
|
}
|
|
14593
14787
|
async fetch(options) {
|
|
14594
14788
|
const variables = this._variables;
|
|
14595
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14789
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DocumentDocument, "document", this._includes, variables);
|
|
14596
14790
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "document");
|
|
14597
14791
|
const data = response.document;
|
|
14598
14792
|
const instance = new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14604,7 +14798,7 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14604
14798
|
watch(options) {
|
|
14605
14799
|
const variables = this._variables;
|
|
14606
14800
|
const includes = this._includes;
|
|
14607
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
14801
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DocumentDocument, "document", includes, variables);
|
|
14608
14802
|
const raw = this._syncEngine.watch(
|
|
14609
14803
|
queryDoc,
|
|
14610
14804
|
mergedVars,
|
|
@@ -14634,10 +14828,10 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14634
14828
|
}
|
|
14635
14829
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
14636
14830
|
contents(variables) {
|
|
14637
|
-
const info = extractIncludeInfo(
|
|
14831
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
14638
14832
|
this._includes.push({
|
|
14639
14833
|
fieldName: "contents",
|
|
14640
|
-
fragmentDoc:
|
|
14834
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DocumentContentFragmentDoc,
|
|
14641
14835
|
variables,
|
|
14642
14836
|
isConnection: false,
|
|
14643
14837
|
isList: true,
|
|
@@ -14653,10 +14847,10 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14653
14847
|
}
|
|
14654
14848
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
14655
14849
|
file(variables) {
|
|
14656
|
-
const info = extractIncludeInfo(
|
|
14850
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Document_FileDocument, "file", ["id"]);
|
|
14657
14851
|
this._includes.push({
|
|
14658
14852
|
fieldName: "file",
|
|
14659
|
-
fragmentDoc:
|
|
14853
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.FileFragmentDoc,
|
|
14660
14854
|
variables,
|
|
14661
14855
|
isConnection: false,
|
|
14662
14856
|
isList: false,
|
|
@@ -14672,10 +14866,10 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14672
14866
|
}
|
|
14673
14867
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
14674
14868
|
format(variables) {
|
|
14675
|
-
const info = extractIncludeInfo(
|
|
14869
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Document_FormatDocument, "format", ["id"]);
|
|
14676
14870
|
this._includes.push({
|
|
14677
14871
|
fieldName: "format",
|
|
14678
|
-
fragmentDoc:
|
|
14872
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DocumentFormatFragmentDoc,
|
|
14679
14873
|
variables,
|
|
14680
14874
|
isConnection: false,
|
|
14681
14875
|
isList: false,
|
|
@@ -14691,7 +14885,7 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14691
14885
|
}
|
|
14692
14886
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
14693
14887
|
tables(variables, builder) {
|
|
14694
|
-
const info = extractIncludeInfo(
|
|
14888
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
14695
14889
|
let children;
|
|
14696
14890
|
if (builder) {
|
|
14697
14891
|
const sub = new TableSubBuilder();
|
|
@@ -14700,7 +14894,7 @@ var DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14700
14894
|
}
|
|
14701
14895
|
this._includes.push({
|
|
14702
14896
|
fieldName: "tables",
|
|
14703
|
-
fragmentDoc:
|
|
14897
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.TableConnectionFragmentDoc,
|
|
14704
14898
|
variables,
|
|
14705
14899
|
isConnection: true,
|
|
14706
14900
|
isList: false,
|
|
@@ -14724,7 +14918,7 @@ var Document_ContentsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14724
14918
|
this._variables = variables;
|
|
14725
14919
|
}
|
|
14726
14920
|
async fetch(options) {
|
|
14727
|
-
const response = await this._syncEngine.query(
|
|
14921
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Document_ContentsDocument, this._variables, "document");
|
|
14728
14922
|
const data = response.document?.contents;
|
|
14729
14923
|
if (!Array.isArray(data)) return [];
|
|
14730
14924
|
return data.map((item) => new DocumentContent(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -14738,14 +14932,14 @@ var Document_FileQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14738
14932
|
}
|
|
14739
14933
|
async fetch(options) {
|
|
14740
14934
|
const variables = this._variables;
|
|
14741
|
-
const response = await this._syncEngine.query(
|
|
14935
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Document_FileDocument, variables, "document");
|
|
14742
14936
|
const data = response.document?.file;
|
|
14743
14937
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14744
14938
|
}
|
|
14745
14939
|
watch(options) {
|
|
14746
14940
|
const variables = this._variables;
|
|
14747
14941
|
const raw = this._syncEngine.watch(
|
|
14748
|
-
|
|
14942
|
+
chunkNVBJ6NKK_cjs.Document_FileDocument,
|
|
14749
14943
|
variables,
|
|
14750
14944
|
"document",
|
|
14751
14945
|
async (db) => {
|
|
@@ -14768,14 +14962,14 @@ var Document_FormatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14768
14962
|
}
|
|
14769
14963
|
async fetch(options) {
|
|
14770
14964
|
const variables = this._variables;
|
|
14771
|
-
const response = await this._syncEngine.query(
|
|
14965
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Document_FormatDocument, variables, "document");
|
|
14772
14966
|
const data = response.document?.format;
|
|
14773
14967
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14774
14968
|
}
|
|
14775
14969
|
watch(options) {
|
|
14776
14970
|
const variables = this._variables;
|
|
14777
14971
|
const raw = this._syncEngine.watch(
|
|
14778
|
-
|
|
14972
|
+
chunkNVBJ6NKK_cjs.Document_FormatDocument,
|
|
14779
14973
|
variables,
|
|
14780
14974
|
"document",
|
|
14781
14975
|
async (db) => {
|
|
@@ -14798,14 +14992,14 @@ var Document_Format_CatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14798
14992
|
}
|
|
14799
14993
|
async fetch(options) {
|
|
14800
14994
|
const variables = this._variables;
|
|
14801
|
-
const response = await this._syncEngine.query(
|
|
14995
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Document_Format_CatalogDocument, variables, "document");
|
|
14802
14996
|
const data = response.document?.format?.catalog;
|
|
14803
14997
|
return data ? new DocumentCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14804
14998
|
}
|
|
14805
14999
|
watch(options) {
|
|
14806
15000
|
const variables = this._variables;
|
|
14807
15001
|
const raw = this._syncEngine.watch(
|
|
14808
|
-
|
|
15002
|
+
chunkNVBJ6NKK_cjs.Document_Format_CatalogDocument,
|
|
14809
15003
|
variables,
|
|
14810
15004
|
"document",
|
|
14811
15005
|
async (db) => {
|
|
@@ -14828,18 +15022,18 @@ var Document_TablesQuery = class _Document_TablesQuery extends chunk4QKWHQT2_cjs
|
|
|
14828
15022
|
}
|
|
14829
15023
|
async fetch(options) {
|
|
14830
15024
|
const variables = this._variables;
|
|
14831
|
-
const response = await this._syncEngine.query(
|
|
15025
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Document_TablesDocument, variables, "document");
|
|
14832
15026
|
const data = response.document?.tables;
|
|
14833
15027
|
return new TableConnection(this._request, (conn, opts) => new _Document_TablesQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
14834
15028
|
}
|
|
14835
15029
|
watch(options) {
|
|
14836
15030
|
const variables = this._variables;
|
|
14837
15031
|
const raw = this._syncEngine.watch(
|
|
14838
|
-
|
|
15032
|
+
chunkNVBJ6NKK_cjs.Document_TablesDocument,
|
|
14839
15033
|
variables,
|
|
14840
15034
|
"document",
|
|
14841
15035
|
async (db) => {
|
|
14842
|
-
const qr = await db._queryResults.get(buildQueryKey("document", variables,
|
|
15036
|
+
const qr = await db._queryResults.get(buildQueryKey("document", variables, chunkNVBJ6NKK_cjs.Document_TablesDocument));
|
|
14843
15037
|
const nodes = qr ? await db.table("tables").bulkGet(qr.entityIds) : [];
|
|
14844
15038
|
return { document: { tables: { __typename: "TableConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
14845
15039
|
}
|
|
@@ -14859,7 +15053,7 @@ var DocumentCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14859
15053
|
}
|
|
14860
15054
|
async fetch(options) {
|
|
14861
15055
|
const variables = this._variables;
|
|
14862
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15056
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DocumentCatalogDocument, "documentCatalog", this._includes, variables);
|
|
14863
15057
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documentCatalog");
|
|
14864
15058
|
const data = response.documentCatalog;
|
|
14865
15059
|
const instance = new DocumentCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -14871,7 +15065,7 @@ var DocumentCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14871
15065
|
watch(options) {
|
|
14872
15066
|
const variables = this._variables;
|
|
14873
15067
|
const includes = this._includes;
|
|
14874
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15068
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DocumentCatalogDocument, "documentCatalog", includes, variables);
|
|
14875
15069
|
const raw = this._syncEngine.watch(
|
|
14876
15070
|
queryDoc,
|
|
14877
15071
|
mergedVars,
|
|
@@ -14901,10 +15095,10 @@ var DocumentCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14901
15095
|
}
|
|
14902
15096
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
14903
15097
|
format(variables) {
|
|
14904
|
-
const info = extractIncludeInfo(
|
|
15098
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
14905
15099
|
this._includes.push({
|
|
14906
15100
|
fieldName: "format",
|
|
14907
|
-
fragmentDoc:
|
|
15101
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DocumentFormatFragmentDoc,
|
|
14908
15102
|
variables,
|
|
14909
15103
|
isConnection: false,
|
|
14910
15104
|
isList: false,
|
|
@@ -14927,14 +15121,14 @@ var DocumentCatalog_FormatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
14927
15121
|
}
|
|
14928
15122
|
async fetch(options) {
|
|
14929
15123
|
const variables = this._variables;
|
|
14930
|
-
const response = await this._syncEngine.query(
|
|
15124
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.DocumentCatalog_FormatDocument, variables, "documentCatalog");
|
|
14931
15125
|
const data = response.documentCatalog?.format;
|
|
14932
15126
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
14933
15127
|
}
|
|
14934
15128
|
watch(options) {
|
|
14935
15129
|
const variables = this._variables;
|
|
14936
15130
|
const raw = this._syncEngine.watch(
|
|
14937
|
-
|
|
15131
|
+
chunkNVBJ6NKK_cjs.DocumentCatalog_FormatDocument,
|
|
14938
15132
|
variables,
|
|
14939
15133
|
"documentCatalog",
|
|
14940
15134
|
async (db) => {
|
|
@@ -14958,7 +15152,7 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
14958
15152
|
}
|
|
14959
15153
|
async fetch(options) {
|
|
14960
15154
|
const variables = this._variables;
|
|
14961
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15155
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DocumentCatalogsDocument, "documentCatalogs", this._includes, variables, true);
|
|
14962
15156
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documentCatalogs");
|
|
14963
15157
|
const data = response.documentCatalogs;
|
|
14964
15158
|
const connection = new DocumentCatalogConnection(this._request, (conn, opts) => new _DocumentCatalogsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -14975,7 +15169,7 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
14975
15169
|
const subscriptionId = crypto.randomUUID();
|
|
14976
15170
|
const includes = this._includes;
|
|
14977
15171
|
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) }] : []);
|
|
14978
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15172
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DocumentCatalogsDocument, "documentCatalogs", includes, variables, true);
|
|
14979
15173
|
const raw = this._syncEngine.watch(
|
|
14980
15174
|
queryDoc,
|
|
14981
15175
|
mergedVars,
|
|
@@ -15010,10 +15204,10 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk4QKWHQT2_c
|
|
|
15010
15204
|
}
|
|
15011
15205
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
15012
15206
|
format(variables) {
|
|
15013
|
-
const info = extractIncludeInfo(
|
|
15207
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.DocumentCatalog_FormatDocument, "format", []);
|
|
15014
15208
|
this._includes.push({
|
|
15015
15209
|
fieldName: "format",
|
|
15016
|
-
fragmentDoc:
|
|
15210
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DocumentFormatFragmentDoc,
|
|
15017
15211
|
variables,
|
|
15018
15212
|
isConnection: false,
|
|
15019
15213
|
isList: false,
|
|
@@ -15037,7 +15231,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15037
15231
|
}
|
|
15038
15232
|
async fetch(options) {
|
|
15039
15233
|
const variables = this._variables;
|
|
15040
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15234
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DocumentsDocument, "documents", this._includes, variables, true);
|
|
15041
15235
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "documents");
|
|
15042
15236
|
const data = response.documents;
|
|
15043
15237
|
const connection = new DocumentConnection(this._request, (conn, opts) => new _DocumentsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -15054,7 +15248,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15054
15248
|
const subscriptionId = crypto.randomUUID();
|
|
15055
15249
|
const includes = this._includes;
|
|
15056
15250
|
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) }] : []);
|
|
15057
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15251
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.DocumentsDocument, "documents", includes, variables, true);
|
|
15058
15252
|
const raw = this._syncEngine.watch(
|
|
15059
15253
|
queryDoc,
|
|
15060
15254
|
mergedVars,
|
|
@@ -15089,10 +15283,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15089
15283
|
}
|
|
15090
15284
|
/** Include contents in this query (Smart Fetch — single HTTP request). */
|
|
15091
15285
|
contents(variables) {
|
|
15092
|
-
const info = extractIncludeInfo(
|
|
15286
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Document_ContentsDocument, "contents", ["id"]);
|
|
15093
15287
|
this._includes.push({
|
|
15094
15288
|
fieldName: "contents",
|
|
15095
|
-
fragmentDoc:
|
|
15289
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DocumentContentFragmentDoc,
|
|
15096
15290
|
variables,
|
|
15097
15291
|
isConnection: false,
|
|
15098
15292
|
isList: true,
|
|
@@ -15108,10 +15302,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15108
15302
|
}
|
|
15109
15303
|
/** Include file in this query (Smart Fetch — single HTTP request). */
|
|
15110
15304
|
file(variables) {
|
|
15111
|
-
const info = extractIncludeInfo(
|
|
15305
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Document_FileDocument, "file", ["id"]);
|
|
15112
15306
|
this._includes.push({
|
|
15113
15307
|
fieldName: "file",
|
|
15114
|
-
fragmentDoc:
|
|
15308
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.FileFragmentDoc,
|
|
15115
15309
|
variables,
|
|
15116
15310
|
isConnection: false,
|
|
15117
15311
|
isList: false,
|
|
@@ -15127,10 +15321,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15127
15321
|
}
|
|
15128
15322
|
/** Include format in this query (Smart Fetch — single HTTP request). */
|
|
15129
15323
|
format(variables) {
|
|
15130
|
-
const info = extractIncludeInfo(
|
|
15324
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Document_FormatDocument, "format", ["id"]);
|
|
15131
15325
|
this._includes.push({
|
|
15132
15326
|
fieldName: "format",
|
|
15133
|
-
fragmentDoc:
|
|
15327
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DocumentFormatFragmentDoc,
|
|
15134
15328
|
variables,
|
|
15135
15329
|
isConnection: false,
|
|
15136
15330
|
isList: false,
|
|
@@ -15146,7 +15340,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15146
15340
|
}
|
|
15147
15341
|
/** Include tables in this query (Smart Fetch — single HTTP request). */
|
|
15148
15342
|
tables(variables, builder) {
|
|
15149
|
-
const info = extractIncludeInfo(
|
|
15343
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Document_TablesDocument, "tables", ["id"]);
|
|
15150
15344
|
let children;
|
|
15151
15345
|
if (builder) {
|
|
15152
15346
|
const sub = new TableSubBuilder();
|
|
@@ -15155,7 +15349,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15155
15349
|
}
|
|
15156
15350
|
this._includes.push({
|
|
15157
15351
|
fieldName: "tables",
|
|
15158
|
-
fragmentDoc:
|
|
15352
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.TableConnectionFragmentDoc,
|
|
15159
15353
|
variables,
|
|
15160
15354
|
isConnection: true,
|
|
15161
15355
|
isList: false,
|
|
@@ -15174,19 +15368,19 @@ var DocumentsQuery = class _DocumentsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15174
15368
|
};
|
|
15175
15369
|
var ExportQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15176
15370
|
async fetch(variables) {
|
|
15177
|
-
const response = await this._request(
|
|
15371
|
+
const response = await this._request(chunkNVBJ6NKK_cjs.ExportDocument, variables);
|
|
15178
15372
|
return response.export;
|
|
15179
15373
|
}
|
|
15180
15374
|
};
|
|
15181
15375
|
var ExportWithInsightIdQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15182
15376
|
async fetch(variables) {
|
|
15183
|
-
const response = await this._request(
|
|
15377
|
+
const response = await this._request(chunkNVBJ6NKK_cjs.ExportWithInsightIdDocument, variables);
|
|
15184
15378
|
return response.exportWithInsightId;
|
|
15185
15379
|
}
|
|
15186
15380
|
};
|
|
15187
15381
|
var FileQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15188
15382
|
async fetch(variables) {
|
|
15189
|
-
const response = await this._request(
|
|
15383
|
+
const response = await this._request(chunkNVBJ6NKK_cjs.FileDocument, variables);
|
|
15190
15384
|
return response.file;
|
|
15191
15385
|
}
|
|
15192
15386
|
};
|
|
@@ -15199,7 +15393,7 @@ var FileMetaQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15199
15393
|
}
|
|
15200
15394
|
async fetch(options) {
|
|
15201
15395
|
const variables = this._variables;
|
|
15202
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15396
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.FileMetaDocument, "fileMeta", this._includes, variables);
|
|
15203
15397
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "fileMeta");
|
|
15204
15398
|
const data = response.fileMeta;
|
|
15205
15399
|
if (!data) return void 0;
|
|
@@ -15212,7 +15406,7 @@ var FileMetaQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15212
15406
|
watch(options) {
|
|
15213
15407
|
const variables = this._variables;
|
|
15214
15408
|
const includes = this._includes;
|
|
15215
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15409
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.FileMetaDocument, "fileMeta", includes, variables);
|
|
15216
15410
|
const raw = this._syncEngine.watch(
|
|
15217
15411
|
queryDoc,
|
|
15218
15412
|
mergedVars,
|
|
@@ -15250,7 +15444,7 @@ var FileUrlsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15250
15444
|
this._variables = variables;
|
|
15251
15445
|
}
|
|
15252
15446
|
async fetch(options) {
|
|
15253
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15447
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.FileUrlsDocument, "fileUrls", this._includes, this._variables);
|
|
15254
15448
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "fileUrls");
|
|
15255
15449
|
const data = response.fileUrls;
|
|
15256
15450
|
if (!Array.isArray(data)) return [];
|
|
@@ -15259,7 +15453,7 @@ var FileUrlsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15259
15453
|
};
|
|
15260
15454
|
var FindFitTierQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15261
15455
|
async fetch(variables) {
|
|
15262
|
-
const response = await this._request(
|
|
15456
|
+
const response = await this._request(chunkNVBJ6NKK_cjs.FindFitTierDocument, variables);
|
|
15263
15457
|
return response.findFitTier ?? void 0;
|
|
15264
15458
|
}
|
|
15265
15459
|
};
|
|
@@ -15272,7 +15466,7 @@ var FolderQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15272
15466
|
}
|
|
15273
15467
|
async fetch(options) {
|
|
15274
15468
|
const variables = this._variables;
|
|
15275
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15469
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.FolderDocument, "folder", this._includes, variables);
|
|
15276
15470
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "folder");
|
|
15277
15471
|
const data = response.folder;
|
|
15278
15472
|
const instance = new Folder(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15284,7 +15478,7 @@ var FolderQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15284
15478
|
watch(options) {
|
|
15285
15479
|
const variables = this._variables;
|
|
15286
15480
|
const includes = this._includes;
|
|
15287
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15481
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.FolderDocument, "folder", includes, variables);
|
|
15288
15482
|
const raw = this._syncEngine.watch(
|
|
15289
15483
|
queryDoc,
|
|
15290
15484
|
mergedVars,
|
|
@@ -15322,7 +15516,7 @@ var FoldersQuery = class _FoldersQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15322
15516
|
}
|
|
15323
15517
|
async fetch(options) {
|
|
15324
15518
|
const variables = this._variables;
|
|
15325
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15519
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.FoldersDocument, "folders", this._includes, variables, true);
|
|
15326
15520
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "folders");
|
|
15327
15521
|
const data = response.folders;
|
|
15328
15522
|
const connection = new FolderConnection(this._request, (conn, opts) => new _FoldersQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -15339,7 +15533,7 @@ var FoldersQuery = class _FoldersQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15339
15533
|
const subscriptionId = crypto.randomUUID();
|
|
15340
15534
|
const includes = this._includes;
|
|
15341
15535
|
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) }] : []);
|
|
15342
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15536
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.FoldersDocument, "folders", includes, variables, true);
|
|
15343
15537
|
const raw = this._syncEngine.watch(
|
|
15344
15538
|
queryDoc,
|
|
15345
15539
|
mergedVars,
|
|
@@ -15375,7 +15569,7 @@ var FoldersQuery = class _FoldersQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15375
15569
|
};
|
|
15376
15570
|
var GetCapabilityQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15377
15571
|
async fetch(variables) {
|
|
15378
|
-
const response = await this._request(
|
|
15572
|
+
const response = await this._request(chunkNVBJ6NKK_cjs.GetCapabilityDocument, variables);
|
|
15379
15573
|
return response.getCapability;
|
|
15380
15574
|
}
|
|
15381
15575
|
};
|
|
@@ -15388,7 +15582,7 @@ var GetDevAccessTokenQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15388
15582
|
}
|
|
15389
15583
|
async fetch(options) {
|
|
15390
15584
|
const variables = this._variables;
|
|
15391
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15585
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.GetDevAccessTokenDocument, "getDevAccessToken", this._includes, variables);
|
|
15392
15586
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getDevAccessToken");
|
|
15393
15587
|
const data = response.getDevAccessToken;
|
|
15394
15588
|
const instance = new DevAccessTokenOutput(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15400,7 +15594,7 @@ var GetDevAccessTokenQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15400
15594
|
watch(options) {
|
|
15401
15595
|
const variables = this._variables;
|
|
15402
15596
|
const includes = this._includes;
|
|
15403
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15597
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.GetDevAccessTokenDocument, "getDevAccessToken", includes, variables);
|
|
15404
15598
|
const raw = this._syncEngine.watch(
|
|
15405
15599
|
queryDoc,
|
|
15406
15600
|
mergedVars,
|
|
@@ -15431,13 +15625,13 @@ var GetDevAccessTokenQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15431
15625
|
};
|
|
15432
15626
|
var GetLimitQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15433
15627
|
async fetch(variables) {
|
|
15434
|
-
const response = await this._request(
|
|
15628
|
+
const response = await this._request(chunkNVBJ6NKK_cjs.GetLimitDocument, variables);
|
|
15435
15629
|
return response.getLimit ?? void 0;
|
|
15436
15630
|
}
|
|
15437
15631
|
};
|
|
15438
15632
|
var GetRemainingQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15439
15633
|
async fetch(variables) {
|
|
15440
|
-
const response = await this._request(
|
|
15634
|
+
const response = await this._request(chunkNVBJ6NKK_cjs.GetRemainingDocument, variables);
|
|
15441
15635
|
return response.getRemaining ?? void 0;
|
|
15442
15636
|
}
|
|
15443
15637
|
};
|
|
@@ -15449,7 +15643,7 @@ var GetTokenUsageByModelQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15449
15643
|
this._variables = variables;
|
|
15450
15644
|
}
|
|
15451
15645
|
async fetch(options) {
|
|
15452
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15646
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.GetTokenUsageByModelDocument, "getTokenUsageByModel", this._includes, this._variables);
|
|
15453
15647
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageByModel");
|
|
15454
15648
|
const data = response.getTokenUsageByModel;
|
|
15455
15649
|
if (!Array.isArray(data)) return [];
|
|
@@ -15464,7 +15658,7 @@ var GetTokenUsageHistoryQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15464
15658
|
this._variables = variables;
|
|
15465
15659
|
}
|
|
15466
15660
|
async fetch(options) {
|
|
15467
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15661
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.GetTokenUsageHistoryDocument, "getTokenUsageHistory", this._includes, this._variables);
|
|
15468
15662
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageHistory");
|
|
15469
15663
|
const data = response.getTokenUsageHistory;
|
|
15470
15664
|
if (!Array.isArray(data)) return [];
|
|
@@ -15480,7 +15674,7 @@ var GetTokenUsageStatusQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15480
15674
|
}
|
|
15481
15675
|
async fetch(options) {
|
|
15482
15676
|
const variables = this._variables;
|
|
15483
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15677
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", this._includes, variables);
|
|
15484
15678
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageStatus");
|
|
15485
15679
|
const data = response.getTokenUsageStatus;
|
|
15486
15680
|
const instance = new UsageStatus(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15492,7 +15686,7 @@ var GetTokenUsageStatusQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15492
15686
|
watch(options) {
|
|
15493
15687
|
const variables = this._variables;
|
|
15494
15688
|
const includes = this._includes;
|
|
15495
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15689
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", includes, variables);
|
|
15496
15690
|
const raw = this._syncEngine.watch(
|
|
15497
15691
|
queryDoc,
|
|
15498
15692
|
mergedVars,
|
|
@@ -15522,10 +15716,10 @@ var GetTokenUsageStatusQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15522
15716
|
}
|
|
15523
15717
|
/** Include windows in this query (Smart Fetch — single HTTP request). */
|
|
15524
15718
|
windows(variables) {
|
|
15525
|
-
const info = extractIncludeInfo(
|
|
15719
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.GetTokenUsageStatus_WindowsDocument, "windows", []);
|
|
15526
15720
|
this._includes.push({
|
|
15527
15721
|
fieldName: "windows",
|
|
15528
|
-
fragmentDoc:
|
|
15722
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.UsageWindowsStatusTypeFragmentDoc,
|
|
15529
15723
|
variables,
|
|
15530
15724
|
isConnection: false,
|
|
15531
15725
|
isList: false,
|
|
@@ -15548,14 +15742,14 @@ var GetTokenUsageStatus_WindowsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15548
15742
|
}
|
|
15549
15743
|
async fetch(options) {
|
|
15550
15744
|
const variables = this._variables;
|
|
15551
|
-
const response = await this._syncEngine.query(
|
|
15745
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.GetTokenUsageStatus_WindowsDocument, variables, "getTokenUsageStatus");
|
|
15552
15746
|
const data = response.getTokenUsageStatus?.windows;
|
|
15553
15747
|
return data ? new UsageWindowsStatusType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15554
15748
|
}
|
|
15555
15749
|
watch(options) {
|
|
15556
15750
|
const variables = this._variables;
|
|
15557
15751
|
const raw = this._syncEngine.watch(
|
|
15558
|
-
|
|
15752
|
+
chunkNVBJ6NKK_cjs.GetTokenUsageStatus_WindowsDocument,
|
|
15559
15753
|
variables,
|
|
15560
15754
|
"getTokenUsageStatus",
|
|
15561
15755
|
async (db) => {
|
|
@@ -15578,14 +15772,14 @@ var GetTokenUsageStatus_Windows_DayQuery = class extends chunk4QKWHQT2_cjs.Reque
|
|
|
15578
15772
|
}
|
|
15579
15773
|
async fetch(options) {
|
|
15580
15774
|
const variables = this._variables;
|
|
15581
|
-
const response = await this._syncEngine.query(
|
|
15775
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.GetTokenUsageStatus_Windows_DayDocument, variables, "getTokenUsageStatus");
|
|
15582
15776
|
const data = response.getTokenUsageStatus?.windows?.day;
|
|
15583
15777
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15584
15778
|
}
|
|
15585
15779
|
watch(options) {
|
|
15586
15780
|
const variables = this._variables;
|
|
15587
15781
|
const raw = this._syncEngine.watch(
|
|
15588
|
-
|
|
15782
|
+
chunkNVBJ6NKK_cjs.GetTokenUsageStatus_Windows_DayDocument,
|
|
15589
15783
|
variables,
|
|
15590
15784
|
"getTokenUsageStatus",
|
|
15591
15785
|
async (db) => {
|
|
@@ -15608,14 +15802,14 @@ var GetTokenUsageStatus_Windows_FiveHourQuery = class extends chunk4QKWHQT2_cjs.
|
|
|
15608
15802
|
}
|
|
15609
15803
|
async fetch(options) {
|
|
15610
15804
|
const variables = this._variables;
|
|
15611
|
-
const response = await this._syncEngine.query(
|
|
15805
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.GetTokenUsageStatus_Windows_FiveHourDocument, variables, "getTokenUsageStatus");
|
|
15612
15806
|
const data = response.getTokenUsageStatus?.windows?.fiveHour;
|
|
15613
15807
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15614
15808
|
}
|
|
15615
15809
|
watch(options) {
|
|
15616
15810
|
const variables = this._variables;
|
|
15617
15811
|
const raw = this._syncEngine.watch(
|
|
15618
|
-
|
|
15812
|
+
chunkNVBJ6NKK_cjs.GetTokenUsageStatus_Windows_FiveHourDocument,
|
|
15619
15813
|
variables,
|
|
15620
15814
|
"getTokenUsageStatus",
|
|
15621
15815
|
async (db) => {
|
|
@@ -15638,14 +15832,14 @@ var GetTokenUsageStatus_Windows_WeekQuery = class extends chunk4QKWHQT2_cjs.Requ
|
|
|
15638
15832
|
}
|
|
15639
15833
|
async fetch(options) {
|
|
15640
15834
|
const variables = this._variables;
|
|
15641
|
-
const response = await this._syncEngine.query(
|
|
15835
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.GetTokenUsageStatus_Windows_WeekDocument, variables, "getTokenUsageStatus");
|
|
15642
15836
|
const data = response.getTokenUsageStatus?.windows?.week;
|
|
15643
15837
|
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15644
15838
|
}
|
|
15645
15839
|
watch(options) {
|
|
15646
15840
|
const variables = this._variables;
|
|
15647
15841
|
const raw = this._syncEngine.watch(
|
|
15648
|
-
|
|
15842
|
+
chunkNVBJ6NKK_cjs.GetTokenUsageStatus_Windows_WeekDocument,
|
|
15649
15843
|
variables,
|
|
15650
15844
|
"getTokenUsageStatus",
|
|
15651
15845
|
async (db) => {
|
|
@@ -15662,7 +15856,7 @@ var GetTokenUsageStatus_Windows_WeekQuery = class extends chunk4QKWHQT2_cjs.Requ
|
|
|
15662
15856
|
};
|
|
15663
15857
|
var GetUsageQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
15664
15858
|
async fetch(variables) {
|
|
15665
|
-
const response = await this._request(
|
|
15859
|
+
const response = await this._request(chunkNVBJ6NKK_cjs.GetUsageDocument, variables);
|
|
15666
15860
|
return response.getUsage ?? void 0;
|
|
15667
15861
|
}
|
|
15668
15862
|
};
|
|
@@ -15675,7 +15869,7 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15675
15869
|
}
|
|
15676
15870
|
async fetch(options) {
|
|
15677
15871
|
const variables = this._variables;
|
|
15678
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15872
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.InsightDocument, "insight", this._includes, variables);
|
|
15679
15873
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "insight");
|
|
15680
15874
|
const data = response.insight;
|
|
15681
15875
|
const instance = new Insight(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -15687,7 +15881,7 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15687
15881
|
watch(options) {
|
|
15688
15882
|
const variables = this._variables;
|
|
15689
15883
|
const includes = this._includes;
|
|
15690
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
15884
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.InsightDocument, "insight", includes, variables);
|
|
15691
15885
|
const raw = this._syncEngine.watch(
|
|
15692
15886
|
queryDoc,
|
|
15693
15887
|
mergedVars,
|
|
@@ -15717,7 +15911,7 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15717
15911
|
}
|
|
15718
15912
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
15719
15913
|
chat(variables, builder) {
|
|
15720
|
-
const info = extractIncludeInfo(
|
|
15914
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
15721
15915
|
let children;
|
|
15722
15916
|
if (builder) {
|
|
15723
15917
|
const sub = new ChatSubBuilder();
|
|
@@ -15726,7 +15920,7 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15726
15920
|
}
|
|
15727
15921
|
this._includes.push({
|
|
15728
15922
|
fieldName: "chat",
|
|
15729
|
-
fragmentDoc:
|
|
15923
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatFragmentDoc,
|
|
15730
15924
|
variables,
|
|
15731
15925
|
isConnection: false,
|
|
15732
15926
|
isList: false,
|
|
@@ -15743,10 +15937,10 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15743
15937
|
}
|
|
15744
15938
|
/** Include reportMembers in this query (Smart Fetch — single HTTP request). */
|
|
15745
15939
|
reportMembers(variables) {
|
|
15746
|
-
const info = extractIncludeInfo(
|
|
15940
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
15747
15941
|
this._includes.push({
|
|
15748
15942
|
fieldName: "reportMembers",
|
|
15749
|
-
fragmentDoc:
|
|
15943
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ReportMemberFragmentDoc,
|
|
15750
15944
|
variables,
|
|
15751
15945
|
isConnection: false,
|
|
15752
15946
|
isList: true,
|
|
@@ -15762,7 +15956,7 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15762
15956
|
}
|
|
15763
15957
|
/** Include reports in this query (Smart Fetch — single HTTP request). */
|
|
15764
15958
|
reports(variables, builder) {
|
|
15765
|
-
const info = extractIncludeInfo(
|
|
15959
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
15766
15960
|
let children;
|
|
15767
15961
|
if (builder) {
|
|
15768
15962
|
const sub = new ReportSubBuilder();
|
|
@@ -15771,7 +15965,7 @@ var InsightQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15771
15965
|
}
|
|
15772
15966
|
this._includes.push({
|
|
15773
15967
|
fieldName: "reports",
|
|
15774
|
-
fragmentDoc:
|
|
15968
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ReportConnectionFragmentDoc,
|
|
15775
15969
|
variables,
|
|
15776
15970
|
isConnection: true,
|
|
15777
15971
|
isList: false,
|
|
@@ -15796,14 +15990,14 @@ var Insight_ChatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15796
15990
|
}
|
|
15797
15991
|
async fetch(options) {
|
|
15798
15992
|
const variables = this._variables;
|
|
15799
|
-
const response = await this._syncEngine.query(
|
|
15993
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Insight_ChatDocument, variables, "insight");
|
|
15800
15994
|
const data = response.insight?.chat;
|
|
15801
15995
|
return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
15802
15996
|
}
|
|
15803
15997
|
watch(options) {
|
|
15804
15998
|
const variables = this._variables;
|
|
15805
15999
|
const raw = this._syncEngine.watch(
|
|
15806
|
-
|
|
16000
|
+
chunkNVBJ6NKK_cjs.Insight_ChatDocument,
|
|
15807
16001
|
variables,
|
|
15808
16002
|
"insight",
|
|
15809
16003
|
async (db) => {
|
|
@@ -15825,7 +16019,7 @@ var Insight_ReportMembersQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
15825
16019
|
this._variables = variables;
|
|
15826
16020
|
}
|
|
15827
16021
|
async fetch(options) {
|
|
15828
|
-
const response = await this._syncEngine.query(
|
|
16022
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Insight_ReportMembersDocument, this._variables, "insight");
|
|
15829
16023
|
const data = response.insight?.reportMembers;
|
|
15830
16024
|
if (!Array.isArray(data)) return [];
|
|
15831
16025
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -15839,18 +16033,18 @@ var Insight_ReportsQuery = class _Insight_ReportsQuery extends chunk4QKWHQT2_cjs
|
|
|
15839
16033
|
}
|
|
15840
16034
|
async fetch(options) {
|
|
15841
16035
|
const variables = this._variables;
|
|
15842
|
-
const response = await this._syncEngine.query(
|
|
16036
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Insight_ReportsDocument, variables, "insight");
|
|
15843
16037
|
const data = response.insight?.reports;
|
|
15844
16038
|
return new ReportConnection(this._request, (conn, opts) => new _Insight_ReportsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
15845
16039
|
}
|
|
15846
16040
|
watch(options) {
|
|
15847
16041
|
const variables = this._variables;
|
|
15848
16042
|
const raw = this._syncEngine.watch(
|
|
15849
|
-
|
|
16043
|
+
chunkNVBJ6NKK_cjs.Insight_ReportsDocument,
|
|
15850
16044
|
variables,
|
|
15851
16045
|
"insight",
|
|
15852
16046
|
async (db) => {
|
|
15853
|
-
const qr = await db._queryResults.get(buildQueryKey("insight", variables,
|
|
16047
|
+
const qr = await db._queryResults.get(buildQueryKey("insight", variables, chunkNVBJ6NKK_cjs.Insight_ReportsDocument));
|
|
15854
16048
|
const nodes = qr ? await db.table("reports").bulkGet(qr.entityIds) : [];
|
|
15855
16049
|
return { insight: { reports: { __typename: "ReportConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15856
16050
|
}
|
|
@@ -15870,7 +16064,7 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15870
16064
|
}
|
|
15871
16065
|
async fetch(options) {
|
|
15872
16066
|
const variables = this._variables;
|
|
15873
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16067
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.InsightsDocument, "insights", this._includes, variables, true);
|
|
15874
16068
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "insights");
|
|
15875
16069
|
const data = response.insights;
|
|
15876
16070
|
const connection = new InsightConnection(this._request, (conn, opts) => new _InsightsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -15887,7 +16081,7 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15887
16081
|
const subscriptionId = crypto.randomUUID();
|
|
15888
16082
|
const includes = this._includes;
|
|
15889
16083
|
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) }] : []);
|
|
15890
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16084
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.InsightsDocument, "insights", includes, variables, true);
|
|
15891
16085
|
const raw = this._syncEngine.watch(
|
|
15892
16086
|
queryDoc,
|
|
15893
16087
|
mergedVars,
|
|
@@ -15922,7 +16116,7 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15922
16116
|
}
|
|
15923
16117
|
/** Include chat in this query (Smart Fetch — single HTTP request). */
|
|
15924
16118
|
chat(variables, builder) {
|
|
15925
|
-
const info = extractIncludeInfo(
|
|
16119
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Insight_ChatDocument, "chat", ["id"]);
|
|
15926
16120
|
let children;
|
|
15927
16121
|
if (builder) {
|
|
15928
16122
|
const sub = new ChatSubBuilder();
|
|
@@ -15931,7 +16125,7 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15931
16125
|
}
|
|
15932
16126
|
this._includes.push({
|
|
15933
16127
|
fieldName: "chat",
|
|
15934
|
-
fragmentDoc:
|
|
16128
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ChatFragmentDoc,
|
|
15935
16129
|
variables,
|
|
15936
16130
|
isConnection: false,
|
|
15937
16131
|
isList: false,
|
|
@@ -15948,10 +16142,10 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15948
16142
|
}
|
|
15949
16143
|
/** Include reportMembers in this query (Smart Fetch — single HTTP request). */
|
|
15950
16144
|
reportMembers(variables) {
|
|
15951
|
-
const info = extractIncludeInfo(
|
|
16145
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
|
|
15952
16146
|
this._includes.push({
|
|
15953
16147
|
fieldName: "reportMembers",
|
|
15954
|
-
fragmentDoc:
|
|
16148
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ReportMemberFragmentDoc,
|
|
15955
16149
|
variables,
|
|
15956
16150
|
isConnection: false,
|
|
15957
16151
|
isList: true,
|
|
@@ -15967,7 +16161,7 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15967
16161
|
}
|
|
15968
16162
|
/** Include reports in this query (Smart Fetch — single HTTP request). */
|
|
15969
16163
|
reports(variables, builder) {
|
|
15970
|
-
const info = extractIncludeInfo(
|
|
16164
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Insight_ReportsDocument, "reports", ["id"]);
|
|
15971
16165
|
let children;
|
|
15972
16166
|
if (builder) {
|
|
15973
16167
|
const sub = new ReportSubBuilder();
|
|
@@ -15976,7 +16170,7 @@ var InsightsQuery = class _InsightsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
15976
16170
|
}
|
|
15977
16171
|
this._includes.push({
|
|
15978
16172
|
fieldName: "reports",
|
|
15979
|
-
fragmentDoc:
|
|
16173
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ReportConnectionFragmentDoc,
|
|
15980
16174
|
variables,
|
|
15981
16175
|
isConnection: true,
|
|
15982
16176
|
isList: false,
|
|
@@ -16002,7 +16196,7 @@ var IntegrationQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16002
16196
|
}
|
|
16003
16197
|
async fetch(options) {
|
|
16004
16198
|
const variables = this._variables;
|
|
16005
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16199
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.IntegrationDocument, "integration", this._includes, variables);
|
|
16006
16200
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integration");
|
|
16007
16201
|
const data = response.integration;
|
|
16008
16202
|
const instance = new Integration(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16014,7 +16208,7 @@ var IntegrationQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16014
16208
|
watch(options) {
|
|
16015
16209
|
const variables = this._variables;
|
|
16016
16210
|
const includes = this._includes;
|
|
16017
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16211
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.IntegrationDocument, "integration", includes, variables);
|
|
16018
16212
|
const raw = this._syncEngine.watch(
|
|
16019
16213
|
queryDoc,
|
|
16020
16214
|
mergedVars,
|
|
@@ -16044,10 +16238,10 @@ var IntegrationQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16044
16238
|
}
|
|
16045
16239
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
16046
16240
|
provider(variables) {
|
|
16047
|
-
const info = extractIncludeInfo(
|
|
16241
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
16048
16242
|
this._includes.push({
|
|
16049
16243
|
fieldName: "provider",
|
|
16050
|
-
fragmentDoc:
|
|
16244
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.IntegrationProviderFragmentDoc,
|
|
16051
16245
|
variables,
|
|
16052
16246
|
isConnection: false,
|
|
16053
16247
|
isList: false,
|
|
@@ -16070,14 +16264,14 @@ var Integration_ProviderQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16070
16264
|
}
|
|
16071
16265
|
async fetch(options) {
|
|
16072
16266
|
const variables = this._variables;
|
|
16073
|
-
const response = await this._syncEngine.query(
|
|
16267
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Integration_ProviderDocument, variables, "integration");
|
|
16074
16268
|
const data = response.integration?.provider;
|
|
16075
16269
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16076
16270
|
}
|
|
16077
16271
|
watch(options) {
|
|
16078
16272
|
const variables = this._variables;
|
|
16079
16273
|
const raw = this._syncEngine.watch(
|
|
16080
|
-
|
|
16274
|
+
chunkNVBJ6NKK_cjs.Integration_ProviderDocument,
|
|
16081
16275
|
variables,
|
|
16082
16276
|
"integration",
|
|
16083
16277
|
async (db) => {
|
|
@@ -16100,14 +16294,14 @@ var Integration_Provider_CatalogQuery = class extends chunk4QKWHQT2_cjs.Request
|
|
|
16100
16294
|
}
|
|
16101
16295
|
async fetch(options) {
|
|
16102
16296
|
const variables = this._variables;
|
|
16103
|
-
const response = await this._syncEngine.query(
|
|
16297
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Integration_Provider_CatalogDocument, variables, "integration");
|
|
16104
16298
|
const data = response.integration?.provider?.catalog;
|
|
16105
16299
|
return data ? new IntegrationCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16106
16300
|
}
|
|
16107
16301
|
watch(options) {
|
|
16108
16302
|
const variables = this._variables;
|
|
16109
16303
|
const raw = this._syncEngine.watch(
|
|
16110
|
-
|
|
16304
|
+
chunkNVBJ6NKK_cjs.Integration_Provider_CatalogDocument,
|
|
16111
16305
|
variables,
|
|
16112
16306
|
"integration",
|
|
16113
16307
|
async (db) => {
|
|
@@ -16131,7 +16325,7 @@ var IntegrationCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16131
16325
|
}
|
|
16132
16326
|
async fetch(options) {
|
|
16133
16327
|
const variables = this._variables;
|
|
16134
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16328
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.IntegrationCatalogDocument, "integrationCatalog", this._includes, variables);
|
|
16135
16329
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrationCatalog");
|
|
16136
16330
|
const data = response.integrationCatalog;
|
|
16137
16331
|
const instance = new IntegrationCatalog(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16143,7 +16337,7 @@ var IntegrationCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16143
16337
|
watch(options) {
|
|
16144
16338
|
const variables = this._variables;
|
|
16145
16339
|
const includes = this._includes;
|
|
16146
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16340
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.IntegrationCatalogDocument, "integrationCatalog", includes, variables);
|
|
16147
16341
|
const raw = this._syncEngine.watch(
|
|
16148
16342
|
queryDoc,
|
|
16149
16343
|
mergedVars,
|
|
@@ -16173,10 +16367,10 @@ var IntegrationCatalogQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16173
16367
|
}
|
|
16174
16368
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
16175
16369
|
provider(variables) {
|
|
16176
|
-
const info = extractIncludeInfo(
|
|
16370
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
16177
16371
|
this._includes.push({
|
|
16178
16372
|
fieldName: "provider",
|
|
16179
|
-
fragmentDoc:
|
|
16373
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.IntegrationProviderFragmentDoc,
|
|
16180
16374
|
variables,
|
|
16181
16375
|
isConnection: false,
|
|
16182
16376
|
isList: false,
|
|
@@ -16199,14 +16393,14 @@ var IntegrationCatalog_ProviderQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16199
16393
|
}
|
|
16200
16394
|
async fetch(options) {
|
|
16201
16395
|
const variables = this._variables;
|
|
16202
|
-
const response = await this._syncEngine.query(
|
|
16396
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.IntegrationCatalog_ProviderDocument, variables, "integrationCatalog");
|
|
16203
16397
|
const data = response.integrationCatalog?.provider;
|
|
16204
16398
|
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16205
16399
|
}
|
|
16206
16400
|
watch(options) {
|
|
16207
16401
|
const variables = this._variables;
|
|
16208
16402
|
const raw = this._syncEngine.watch(
|
|
16209
|
-
|
|
16403
|
+
chunkNVBJ6NKK_cjs.IntegrationCatalog_ProviderDocument,
|
|
16210
16404
|
variables,
|
|
16211
16405
|
"integrationCatalog",
|
|
16212
16406
|
async (db) => {
|
|
@@ -16221,6 +16415,12 @@ var IntegrationCatalog_ProviderQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16221
16415
|
});
|
|
16222
16416
|
}
|
|
16223
16417
|
};
|
|
16418
|
+
var IntegrationCatalogToolsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
16419
|
+
async fetch(variables) {
|
|
16420
|
+
const response = await this._request(chunkNVBJ6NKK_cjs.IntegrationCatalogToolsDocument, variables);
|
|
16421
|
+
return response.integrationCatalogTools;
|
|
16422
|
+
}
|
|
16423
|
+
};
|
|
16224
16424
|
var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
16225
16425
|
_variables;
|
|
16226
16426
|
_includes = [];
|
|
@@ -16230,7 +16430,7 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk4QKW
|
|
|
16230
16430
|
}
|
|
16231
16431
|
async fetch(options) {
|
|
16232
16432
|
const variables = this._variables;
|
|
16233
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16433
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.IntegrationCatalogsDocument, "integrationCatalogs", this._includes, variables, true);
|
|
16234
16434
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrationCatalogs");
|
|
16235
16435
|
const data = response.integrationCatalogs;
|
|
16236
16436
|
const connection = new IntegrationCatalogConnection(this._request, (conn, opts) => new _IntegrationCatalogsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16247,7 +16447,7 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk4QKW
|
|
|
16247
16447
|
const subscriptionId = crypto.randomUUID();
|
|
16248
16448
|
const includes = this._includes;
|
|
16249
16449
|
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) }] : []);
|
|
16250
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16450
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.IntegrationCatalogsDocument, "integrationCatalogs", includes, variables, true);
|
|
16251
16451
|
const raw = this._syncEngine.watch(
|
|
16252
16452
|
queryDoc,
|
|
16253
16453
|
mergedVars,
|
|
@@ -16282,10 +16482,10 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk4QKW
|
|
|
16282
16482
|
}
|
|
16283
16483
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
16284
16484
|
provider(variables) {
|
|
16285
|
-
const info = extractIncludeInfo(
|
|
16485
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
|
|
16286
16486
|
this._includes.push({
|
|
16287
16487
|
fieldName: "provider",
|
|
16288
|
-
fragmentDoc:
|
|
16488
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.IntegrationProviderFragmentDoc,
|
|
16289
16489
|
variables,
|
|
16290
16490
|
isConnection: false,
|
|
16291
16491
|
isList: false,
|
|
@@ -16309,7 +16509,7 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
16309
16509
|
}
|
|
16310
16510
|
async fetch(options) {
|
|
16311
16511
|
const variables = this._variables;
|
|
16312
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16512
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.IntegrationsDocument, "integrations", this._includes, variables, true);
|
|
16313
16513
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "integrations");
|
|
16314
16514
|
const data = response.integrations;
|
|
16315
16515
|
const connection = new IntegrationConnection(this._request, (conn, opts) => new _IntegrationsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16326,7 +16526,7 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
16326
16526
|
const subscriptionId = crypto.randomUUID();
|
|
16327
16527
|
const includes = this._includes;
|
|
16328
16528
|
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) }] : []);
|
|
16329
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16529
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.IntegrationsDocument, "integrations", includes, variables, true);
|
|
16330
16530
|
const raw = this._syncEngine.watch(
|
|
16331
16531
|
queryDoc,
|
|
16332
16532
|
mergedVars,
|
|
@@ -16361,10 +16561,10 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk4QKWHQT2_cjs.Reque
|
|
|
16361
16561
|
}
|
|
16362
16562
|
/** Include provider in this query (Smart Fetch — single HTTP request). */
|
|
16363
16563
|
provider(variables) {
|
|
16364
|
-
const info = extractIncludeInfo(
|
|
16564
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Integration_ProviderDocument, "provider", ["id"]);
|
|
16365
16565
|
this._includes.push({
|
|
16366
16566
|
fieldName: "provider",
|
|
16367
|
-
fragmentDoc:
|
|
16567
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.IntegrationProviderFragmentDoc,
|
|
16368
16568
|
variables,
|
|
16369
16569
|
isConnection: false,
|
|
16370
16570
|
isList: false,
|
|
@@ -16388,7 +16588,7 @@ var InterpretationsQuery = class _InterpretationsQuery extends chunk4QKWHQT2_cjs
|
|
|
16388
16588
|
}
|
|
16389
16589
|
async fetch(options) {
|
|
16390
16590
|
const variables = this._variables;
|
|
16391
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16591
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.InterpretationsDocument, "interpretations", this._includes, variables, true);
|
|
16392
16592
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "interpretations");
|
|
16393
16593
|
const data = response.interpretations;
|
|
16394
16594
|
const connection = new InterpretationConnection(this._request, (conn, opts) => new _InterpretationsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16405,7 +16605,7 @@ var InterpretationsQuery = class _InterpretationsQuery extends chunk4QKWHQT2_cjs
|
|
|
16405
16605
|
const subscriptionId = crypto.randomUUID();
|
|
16406
16606
|
const includes = this._includes;
|
|
16407
16607
|
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) }] : []);
|
|
16408
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16608
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.InterpretationsDocument, "interpretations", includes, variables, true);
|
|
16409
16609
|
const raw = this._syncEngine.watch(
|
|
16410
16610
|
queryDoc,
|
|
16411
16611
|
mergedVars,
|
|
@@ -16448,7 +16648,7 @@ var NotificationQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16448
16648
|
}
|
|
16449
16649
|
async fetch(options) {
|
|
16450
16650
|
const variables = this._variables;
|
|
16451
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16651
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.NotificationDocument, "notification", this._includes, variables);
|
|
16452
16652
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notification");
|
|
16453
16653
|
const data = response.notification;
|
|
16454
16654
|
const instance = new Notification(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16460,7 +16660,7 @@ var NotificationQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16460
16660
|
watch(options) {
|
|
16461
16661
|
const variables = this._variables;
|
|
16462
16662
|
const includes = this._includes;
|
|
16463
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16663
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.NotificationDocument, "notification", includes, variables);
|
|
16464
16664
|
const raw = this._syncEngine.watch(
|
|
16465
16665
|
queryDoc,
|
|
16466
16666
|
mergedVars,
|
|
@@ -16498,7 +16698,7 @@ var NotificationsQuery = class _NotificationsQuery extends chunk4QKWHQT2_cjs.Req
|
|
|
16498
16698
|
}
|
|
16499
16699
|
async fetch(options) {
|
|
16500
16700
|
const variables = this._variables;
|
|
16501
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16701
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.NotificationsDocument, "notifications", this._includes, variables, true);
|
|
16502
16702
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notifications");
|
|
16503
16703
|
const data = response.notifications;
|
|
16504
16704
|
const connection = new NotificationConnection(this._request, (conn, opts) => new _NotificationsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16515,7 +16715,7 @@ var NotificationsQuery = class _NotificationsQuery extends chunk4QKWHQT2_cjs.Req
|
|
|
16515
16715
|
const subscriptionId = crypto.randomUUID();
|
|
16516
16716
|
const includes = this._includes;
|
|
16517
16717
|
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) }] : []);
|
|
16518
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16718
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.NotificationsDocument, "notifications", includes, variables, true);
|
|
16519
16719
|
const raw = this._syncEngine.watch(
|
|
16520
16720
|
queryDoc,
|
|
16521
16721
|
mergedVars,
|
|
@@ -16557,7 +16757,7 @@ var NotificationsByReferenceQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16557
16757
|
this._variables = variables;
|
|
16558
16758
|
}
|
|
16559
16759
|
async fetch(options) {
|
|
16560
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16760
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.NotificationsByReferenceDocument, "notificationsByReference", this._includes, this._variables);
|
|
16561
16761
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "notificationsByReference");
|
|
16562
16762
|
const data = response.notificationsByReference;
|
|
16563
16763
|
if (!Array.isArray(data)) return [];
|
|
@@ -16573,7 +16773,7 @@ var PrivacyStatsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16573
16773
|
}
|
|
16574
16774
|
async fetch(options) {
|
|
16575
16775
|
const variables = this._variables;
|
|
16576
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16776
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.PrivacyStatsDocument, "privacyStats", this._includes, variables);
|
|
16577
16777
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "privacyStats");
|
|
16578
16778
|
const data = response.privacyStats;
|
|
16579
16779
|
const instance = new PrivacyStats(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16585,7 +16785,7 @@ var PrivacyStatsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16585
16785
|
watch(options) {
|
|
16586
16786
|
const variables = this._variables;
|
|
16587
16787
|
const includes = this._includes;
|
|
16588
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
16788
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.PrivacyStatsDocument, "privacyStats", includes, variables);
|
|
16589
16789
|
const raw = this._syncEngine.watch(
|
|
16590
16790
|
queryDoc,
|
|
16591
16791
|
mergedVars,
|
|
@@ -16614,21 +16814,360 @@ var PrivacyStatsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16614
16814
|
});
|
|
16615
16815
|
}
|
|
16616
16816
|
};
|
|
16817
|
+
var PulseAppSummaryQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
16818
|
+
_variables;
|
|
16819
|
+
_includes = [];
|
|
16820
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
16821
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
16822
|
+
this._variables = variables;
|
|
16823
|
+
}
|
|
16824
|
+
async fetch(options) {
|
|
16825
|
+
const variables = this._variables;
|
|
16826
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.PulseAppSummaryDocument, "pulseAppSummary", this._includes, variables);
|
|
16827
|
+
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseAppSummary");
|
|
16828
|
+
const data = response.pulseAppSummary;
|
|
16829
|
+
if (!data) return void 0;
|
|
16830
|
+
const instance = new PulseAppSummaryModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
16831
|
+
if (this._includes.length > 0) {
|
|
16832
|
+
hydrateIncludes(instance, data, this._includes, this._request, this._syncEngine, this._baseUrl);
|
|
16833
|
+
}
|
|
16834
|
+
return instance;
|
|
16835
|
+
}
|
|
16836
|
+
watch(options) {
|
|
16837
|
+
const variables = this._variables;
|
|
16838
|
+
const includes = this._includes;
|
|
16839
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.PulseAppSummaryDocument, "pulseAppSummary", includes, variables);
|
|
16840
|
+
const raw = this._syncEngine.watch(
|
|
16841
|
+
queryDoc,
|
|
16842
|
+
mergedVars,
|
|
16843
|
+
"pulseAppSummary",
|
|
16844
|
+
async (db) => {
|
|
16845
|
+
const vars = variables;
|
|
16846
|
+
const pkField = getPrimaryKeyField("pulseAppSummaryModels");
|
|
16847
|
+
const entityKey = Array.isArray(pkField) ? pkField.map((field) => vars?.[field]) : vars?.[pkField];
|
|
16848
|
+
const hasEntityKey = Array.isArray(entityKey) ? entityKey.every((part) => part !== void 0 && part !== null) : entityKey !== void 0 && entityKey !== null;
|
|
16849
|
+
const entity = hasEntityKey ? await db.table("pulseAppSummaryModels").get(entityKey) : void 0;
|
|
16850
|
+
if (includes.length > 0 && entity) {
|
|
16851
|
+
const parentId = Array.isArray(entityKey) ? entityKey.map((part) => String(part)).join(":") : String(entityKey);
|
|
16852
|
+
const result = await reconstructEntity(db, "pulseAppSummaryModels", parentId, includes);
|
|
16853
|
+
return { pulseAppSummary: result };
|
|
16854
|
+
}
|
|
16855
|
+
return { pulseAppSummary: entity ?? null };
|
|
16856
|
+
}
|
|
16857
|
+
);
|
|
16858
|
+
return new MappedDvinaQueryRef(raw, (response) => {
|
|
16859
|
+
const data = response.pulseAppSummary;
|
|
16860
|
+
if (!data) return void 0;
|
|
16861
|
+
const instance = new PulseAppSummaryModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
16862
|
+
if (includes.length > 0) {
|
|
16863
|
+
hydrateIncludes(instance, data, includes, this._request, this._syncEngine, this._baseUrl);
|
|
16864
|
+
}
|
|
16865
|
+
return instance;
|
|
16866
|
+
});
|
|
16867
|
+
}
|
|
16868
|
+
};
|
|
16869
|
+
var PulseEventQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
16870
|
+
_variables;
|
|
16871
|
+
_includes = [];
|
|
16872
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
16873
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
16874
|
+
this._variables = variables;
|
|
16875
|
+
}
|
|
16876
|
+
async fetch(options) {
|
|
16877
|
+
const variables = this._variables;
|
|
16878
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.PulseEventDocument, "pulseEvent", this._includes, variables);
|
|
16879
|
+
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEvent");
|
|
16880
|
+
const data = response.pulseEvent;
|
|
16881
|
+
const instance = new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
16882
|
+
if (this._includes.length > 0) {
|
|
16883
|
+
hydrateIncludes(instance, data, this._includes, this._request, this._syncEngine, this._baseUrl);
|
|
16884
|
+
}
|
|
16885
|
+
return instance;
|
|
16886
|
+
}
|
|
16887
|
+
watch(options) {
|
|
16888
|
+
const variables = this._variables;
|
|
16889
|
+
const includes = this._includes;
|
|
16890
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.PulseEventDocument, "pulseEvent", includes, variables);
|
|
16891
|
+
const raw = this._syncEngine.watch(
|
|
16892
|
+
queryDoc,
|
|
16893
|
+
mergedVars,
|
|
16894
|
+
"pulseEvent",
|
|
16895
|
+
async (db) => {
|
|
16896
|
+
const vars = variables;
|
|
16897
|
+
const pkField = getPrimaryKeyField("pulseEvents");
|
|
16898
|
+
const entityKey = Array.isArray(pkField) ? pkField.map((field) => vars?.[field]) : vars?.[pkField];
|
|
16899
|
+
const hasEntityKey = Array.isArray(entityKey) ? entityKey.every((part) => part !== void 0 && part !== null) : entityKey !== void 0 && entityKey !== null;
|
|
16900
|
+
const entity = hasEntityKey ? await db.table("pulseEvents").get(entityKey) : void 0;
|
|
16901
|
+
if (includes.length > 0 && entity) {
|
|
16902
|
+
const parentId = Array.isArray(entityKey) ? entityKey.map((part) => String(part)).join(":") : String(entityKey);
|
|
16903
|
+
const result = await reconstructEntity(db, "pulseEvents", parentId, includes);
|
|
16904
|
+
return { pulseEvent: result };
|
|
16905
|
+
}
|
|
16906
|
+
return { pulseEvent: entity ?? null };
|
|
16907
|
+
}
|
|
16908
|
+
);
|
|
16909
|
+
return new MappedDvinaQueryRef(raw, (response) => {
|
|
16910
|
+
const data = response.pulseEvent;
|
|
16911
|
+
const instance = new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
|
|
16912
|
+
if (includes.length > 0) {
|
|
16913
|
+
hydrateIncludes(instance, data, includes, this._request, this._syncEngine, this._baseUrl);
|
|
16914
|
+
}
|
|
16915
|
+
return instance;
|
|
16916
|
+
});
|
|
16917
|
+
}
|
|
16918
|
+
/** Include integration in this query (Smart Fetch — single HTTP request). */
|
|
16919
|
+
integration(variables, builder) {
|
|
16920
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
16921
|
+
let children;
|
|
16922
|
+
if (builder) {
|
|
16923
|
+
const sub = new IntegrationSubBuilder();
|
|
16924
|
+
builder(sub);
|
|
16925
|
+
children = sub._includes;
|
|
16926
|
+
}
|
|
16927
|
+
this._includes.push({
|
|
16928
|
+
fieldName: "integration",
|
|
16929
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.IntegrationFragmentDoc,
|
|
16930
|
+
variables,
|
|
16931
|
+
isConnection: false,
|
|
16932
|
+
isList: false,
|
|
16933
|
+
variableDefinitions: info.variableDefinitions,
|
|
16934
|
+
fieldArguments: info.fieldArguments,
|
|
16935
|
+
syncMetadata: {
|
|
16936
|
+
entityType: "integrations",
|
|
16937
|
+
requiredFields: ["createdAt", "id", "providerKey", "status", "updatedAt"]
|
|
16938
|
+
},
|
|
16939
|
+
children,
|
|
16940
|
+
modelFactory: (req, data, se, bu) => new Integration(req, data, se, bu)
|
|
16941
|
+
});
|
|
16942
|
+
return this;
|
|
16943
|
+
}
|
|
16944
|
+
};
|
|
16945
|
+
var PulseEvent_IntegrationQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
16946
|
+
_variables;
|
|
16947
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
16948
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
16949
|
+
this._variables = variables;
|
|
16950
|
+
}
|
|
16951
|
+
async fetch(options) {
|
|
16952
|
+
const variables = this._variables;
|
|
16953
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.PulseEvent_IntegrationDocument, variables, "pulseEvent");
|
|
16954
|
+
const data = response.pulseEvent?.integration;
|
|
16955
|
+
return data ? new Integration(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16956
|
+
}
|
|
16957
|
+
watch(options) {
|
|
16958
|
+
const variables = this._variables;
|
|
16959
|
+
const raw = this._syncEngine.watch(
|
|
16960
|
+
chunkNVBJ6NKK_cjs.PulseEvent_IntegrationDocument,
|
|
16961
|
+
variables,
|
|
16962
|
+
"pulseEvent",
|
|
16963
|
+
async (db) => {
|
|
16964
|
+
const vars = variables;
|
|
16965
|
+
const entity = vars?.id ? await db.table("integrations").get(vars.id) : void 0;
|
|
16966
|
+
return { pulseEvent: { integration: entity ?? null } };
|
|
16967
|
+
}
|
|
16968
|
+
);
|
|
16969
|
+
return new MappedDvinaQueryRef(raw, (response) => {
|
|
16970
|
+
const data = response.pulseEvent?.integration;
|
|
16971
|
+
return data ? new Integration(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16972
|
+
});
|
|
16973
|
+
}
|
|
16974
|
+
};
|
|
16975
|
+
var PulseEvent_Integration_ProviderQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
16976
|
+
_variables;
|
|
16977
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
16978
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
16979
|
+
this._variables = variables;
|
|
16980
|
+
}
|
|
16981
|
+
async fetch(options) {
|
|
16982
|
+
const variables = this._variables;
|
|
16983
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.PulseEvent_Integration_ProviderDocument, variables, "pulseEvent");
|
|
16984
|
+
const data = response.pulseEvent?.integration?.provider;
|
|
16985
|
+
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
16986
|
+
}
|
|
16987
|
+
watch(options) {
|
|
16988
|
+
const variables = this._variables;
|
|
16989
|
+
const raw = this._syncEngine.watch(
|
|
16990
|
+
chunkNVBJ6NKK_cjs.PulseEvent_Integration_ProviderDocument,
|
|
16991
|
+
variables,
|
|
16992
|
+
"pulseEvent",
|
|
16993
|
+
async (db) => {
|
|
16994
|
+
const vars = variables;
|
|
16995
|
+
const entity = vars?.id ? await db.table("integrationProviders").get(vars.id) : void 0;
|
|
16996
|
+
return { pulseEvent: { integration: { provider: entity ?? null } } };
|
|
16997
|
+
}
|
|
16998
|
+
);
|
|
16999
|
+
return new MappedDvinaQueryRef(raw, (response) => {
|
|
17000
|
+
const data = response.pulseEvent?.integration?.provider;
|
|
17001
|
+
return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17002
|
+
});
|
|
17003
|
+
}
|
|
17004
|
+
};
|
|
17005
|
+
var PulseEventStatsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
17006
|
+
_variables;
|
|
17007
|
+
_includes = [];
|
|
17008
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
17009
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
17010
|
+
this._variables = variables;
|
|
17011
|
+
}
|
|
17012
|
+
async fetch(options) {
|
|
17013
|
+
const variables = this._variables;
|
|
17014
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.PulseEventStatsDocument, "pulseEventStats", this._includes, variables);
|
|
17015
|
+
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEventStats");
|
|
17016
|
+
const data = response.pulseEventStats;
|
|
17017
|
+
const instance = new PulseEventStatsModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
17018
|
+
if (this._includes.length > 0) {
|
|
17019
|
+
hydrateIncludes(instance, data, this._includes, this._request, this._syncEngine, this._baseUrl);
|
|
17020
|
+
}
|
|
17021
|
+
return instance;
|
|
17022
|
+
}
|
|
17023
|
+
watch(options) {
|
|
17024
|
+
const variables = this._variables;
|
|
17025
|
+
const includes = this._includes;
|
|
17026
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.PulseEventStatsDocument, "pulseEventStats", includes, variables);
|
|
17027
|
+
const raw = this._syncEngine.watch(
|
|
17028
|
+
queryDoc,
|
|
17029
|
+
mergedVars,
|
|
17030
|
+
"pulseEventStats",
|
|
17031
|
+
async (db) => {
|
|
17032
|
+
const vars = variables;
|
|
17033
|
+
const pkField = getPrimaryKeyField("pulseEventStatsModels");
|
|
17034
|
+
const entityKey = Array.isArray(pkField) ? pkField.map((field) => vars?.[field]) : vars?.[pkField];
|
|
17035
|
+
const hasEntityKey = Array.isArray(entityKey) ? entityKey.every((part) => part !== void 0 && part !== null) : entityKey !== void 0 && entityKey !== null;
|
|
17036
|
+
const entity = hasEntityKey ? await db.table("pulseEventStatsModels").get(entityKey) : void 0;
|
|
17037
|
+
if (includes.length > 0 && entity) {
|
|
17038
|
+
const parentId = Array.isArray(entityKey) ? entityKey.map((part) => String(part)).join(":") : String(entityKey);
|
|
17039
|
+
const result = await reconstructEntity(db, "pulseEventStatsModels", parentId, includes);
|
|
17040
|
+
return { pulseEventStats: result };
|
|
17041
|
+
}
|
|
17042
|
+
return { pulseEventStats: entity ?? null };
|
|
17043
|
+
}
|
|
17044
|
+
);
|
|
17045
|
+
return new MappedDvinaQueryRef(raw, (response) => {
|
|
17046
|
+
const data = response.pulseEventStats;
|
|
17047
|
+
const instance = new PulseEventStatsModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
17048
|
+
if (includes.length > 0) {
|
|
17049
|
+
hydrateIncludes(instance, data, includes, this._request, this._syncEngine, this._baseUrl);
|
|
17050
|
+
}
|
|
17051
|
+
return instance;
|
|
17052
|
+
});
|
|
17053
|
+
}
|
|
17054
|
+
};
|
|
17055
|
+
var PulseEventsQuery = class _PulseEventsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
17056
|
+
_variables;
|
|
17057
|
+
_includes = [];
|
|
17058
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
17059
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
17060
|
+
this._variables = variables;
|
|
17061
|
+
}
|
|
17062
|
+
async fetch(options) {
|
|
17063
|
+
const variables = this._variables;
|
|
17064
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.PulseEventsDocument, "pulseEvents", this._includes, variables, true);
|
|
17065
|
+
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEvents");
|
|
17066
|
+
const data = response.pulseEvents;
|
|
17067
|
+
const connection = new PulseEventConnection(this._request, (conn, opts) => new _PulseEventsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
17068
|
+
if (this._includes.length > 0) {
|
|
17069
|
+
const rawNodes = data.nodes ?? [];
|
|
17070
|
+
for (let i = 0; i < connection.nodes.length; i++) {
|
|
17071
|
+
hydrateIncludes(connection.nodes[i], rawNodes[i] ?? {}, this._includes, this._request, this._syncEngine, this._baseUrl);
|
|
17072
|
+
}
|
|
17073
|
+
}
|
|
17074
|
+
return connection;
|
|
17075
|
+
}
|
|
17076
|
+
watch(options) {
|
|
17077
|
+
const variables = this._variables;
|
|
17078
|
+
const subscriptionId = crypto.randomUUID();
|
|
17079
|
+
const includes = this._includes;
|
|
17080
|
+
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) }] : []);
|
|
17081
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.PulseEventsDocument, "pulseEvents", includes, variables, true);
|
|
17082
|
+
const raw = this._syncEngine.watch(
|
|
17083
|
+
queryDoc,
|
|
17084
|
+
mergedVars,
|
|
17085
|
+
"pulseEvents",
|
|
17086
|
+
async (db) => {
|
|
17087
|
+
const qr = await db._queryResults.get(buildQueryKey("pulseEvents", mergedVars, queryDoc));
|
|
17088
|
+
const nodes = qr ? await db.table("pulseEvents").bulkGet(qr.entityIds) : [];
|
|
17089
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
17090
|
+
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "pulseEvents", filteredNodes, includes) : filteredNodes;
|
|
17091
|
+
return { pulseEvents: { __typename: "PulseEventConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
17092
|
+
},
|
|
17093
|
+
{
|
|
17094
|
+
id: subscriptionId,
|
|
17095
|
+
entityType: "pulseEvents",
|
|
17096
|
+
operationName: "pulseEvents",
|
|
17097
|
+
modelName: "PulseEvent",
|
|
17098
|
+
filter: variables?.filter
|
|
17099
|
+
},
|
|
17100
|
+
watchedRelations
|
|
17101
|
+
);
|
|
17102
|
+
return new MappedDvinaQueryRef(raw, (response) => {
|
|
17103
|
+
const data = response.pulseEvents;
|
|
17104
|
+
const connection = new PulseEventConnection(this._request, (conn, opts) => new _PulseEventsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
17105
|
+
if (includes.length > 0) {
|
|
17106
|
+
const rawNodes = data.nodes ?? [];
|
|
17107
|
+
for (let i = 0; i < connection.nodes.length; i++) {
|
|
17108
|
+
hydrateIncludes(connection.nodes[i], rawNodes[i] ?? {}, includes, this._request, this._syncEngine, this._baseUrl);
|
|
17109
|
+
}
|
|
17110
|
+
}
|
|
17111
|
+
return connection;
|
|
17112
|
+
});
|
|
17113
|
+
}
|
|
17114
|
+
/** Include integration in this query (Smart Fetch — single HTTP request). */
|
|
17115
|
+
integration(variables, builder) {
|
|
17116
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
|
|
17117
|
+
let children;
|
|
17118
|
+
if (builder) {
|
|
17119
|
+
const sub = new IntegrationSubBuilder();
|
|
17120
|
+
builder(sub);
|
|
17121
|
+
children = sub._includes;
|
|
17122
|
+
}
|
|
17123
|
+
this._includes.push({
|
|
17124
|
+
fieldName: "integration",
|
|
17125
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.IntegrationFragmentDoc,
|
|
17126
|
+
variables,
|
|
17127
|
+
isConnection: false,
|
|
17128
|
+
isList: false,
|
|
17129
|
+
variableDefinitions: info.variableDefinitions,
|
|
17130
|
+
fieldArguments: info.fieldArguments,
|
|
17131
|
+
syncMetadata: {
|
|
17132
|
+
entityType: "integrations",
|
|
17133
|
+
requiredFields: ["createdAt", "id", "providerKey", "status", "updatedAt"]
|
|
17134
|
+
},
|
|
17135
|
+
children,
|
|
17136
|
+
modelFactory: (req, data, se, bu) => new Integration(req, data, se, bu)
|
|
17137
|
+
});
|
|
17138
|
+
return this;
|
|
17139
|
+
}
|
|
17140
|
+
};
|
|
17141
|
+
var PulseTriggerSettingsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
17142
|
+
_variables;
|
|
17143
|
+
_includes = [];
|
|
17144
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
17145
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
17146
|
+
this._variables = variables;
|
|
17147
|
+
}
|
|
17148
|
+
async fetch(options) {
|
|
17149
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.PulseTriggerSettingsDocument, "pulseTriggerSettings", this._includes, this._variables);
|
|
17150
|
+
const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseTriggerSettings");
|
|
17151
|
+
const data = response.pulseTriggerSettings;
|
|
17152
|
+
if (!Array.isArray(data)) return [];
|
|
17153
|
+
return data.map((item) => new PulseTriggerSettingModel(this._request, item, this._syncEngine, this._baseUrl));
|
|
17154
|
+
}
|
|
17155
|
+
};
|
|
16617
17156
|
var QueryQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
16618
17157
|
async fetch(variables) {
|
|
16619
|
-
const response = await this._request(
|
|
17158
|
+
const response = await this._request(chunkNVBJ6NKK_cjs.QueryDocument, variables);
|
|
16620
17159
|
return response.query;
|
|
16621
17160
|
}
|
|
16622
17161
|
};
|
|
16623
17162
|
var QueryWithInsightIdQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
16624
17163
|
async fetch(variables) {
|
|
16625
|
-
const response = await this._request(
|
|
17164
|
+
const response = await this._request(chunkNVBJ6NKK_cjs.QueryWithInsightIdDocument, variables);
|
|
16626
17165
|
return response.queryWithInsightId;
|
|
16627
17166
|
}
|
|
16628
17167
|
};
|
|
16629
17168
|
var QueryWithMessageIdQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
16630
17169
|
async fetch(variables) {
|
|
16631
|
-
const response = await this._request(
|
|
17170
|
+
const response = await this._request(chunkNVBJ6NKK_cjs.QueryWithMessageIdDocument, variables);
|
|
16632
17171
|
return response.queryWithMessageId;
|
|
16633
17172
|
}
|
|
16634
17173
|
};
|
|
@@ -16641,7 +17180,7 @@ var ReportQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16641
17180
|
}
|
|
16642
17181
|
async fetch(options) {
|
|
16643
17182
|
const variables = this._variables;
|
|
16644
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17183
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ReportDocument, "report", this._includes, variables);
|
|
16645
17184
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "report");
|
|
16646
17185
|
const data = response.report;
|
|
16647
17186
|
const instance = new Report(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16653,7 +17192,7 @@ var ReportQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16653
17192
|
watch(options) {
|
|
16654
17193
|
const variables = this._variables;
|
|
16655
17194
|
const includes = this._includes;
|
|
16656
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17195
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ReportDocument, "report", includes, variables);
|
|
16657
17196
|
const raw = this._syncEngine.watch(
|
|
16658
17197
|
queryDoc,
|
|
16659
17198
|
mergedVars,
|
|
@@ -16683,7 +17222,7 @@ var ReportQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16683
17222
|
}
|
|
16684
17223
|
/** Include insights in this query (Smart Fetch — single HTTP request). */
|
|
16685
17224
|
insights(variables, builder) {
|
|
16686
|
-
const info = extractIncludeInfo(
|
|
17225
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
16687
17226
|
let children;
|
|
16688
17227
|
if (builder) {
|
|
16689
17228
|
const sub = new InsightSubBuilder();
|
|
@@ -16692,7 +17231,7 @@ var ReportQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16692
17231
|
}
|
|
16693
17232
|
this._includes.push({
|
|
16694
17233
|
fieldName: "insights",
|
|
16695
|
-
fragmentDoc:
|
|
17234
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.InsightConnectionFragmentDoc,
|
|
16696
17235
|
variables,
|
|
16697
17236
|
isConnection: true,
|
|
16698
17237
|
isList: false,
|
|
@@ -16710,10 +17249,10 @@ var ReportQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16710
17249
|
}
|
|
16711
17250
|
/** Include layout in this query (Smart Fetch — single HTTP request). */
|
|
16712
17251
|
layout(variables) {
|
|
16713
|
-
const info = extractIncludeInfo(
|
|
17252
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
16714
17253
|
this._includes.push({
|
|
16715
17254
|
fieldName: "layout",
|
|
16716
|
-
fragmentDoc:
|
|
17255
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ReportMemberFragmentDoc,
|
|
16717
17256
|
variables,
|
|
16718
17257
|
isConnection: false,
|
|
16719
17258
|
isList: true,
|
|
@@ -16736,18 +17275,18 @@ var Report_InsightsQuery = class _Report_InsightsQuery extends chunk4QKWHQT2_cjs
|
|
|
16736
17275
|
}
|
|
16737
17276
|
async fetch(options) {
|
|
16738
17277
|
const variables = this._variables;
|
|
16739
|
-
const response = await this._syncEngine.query(
|
|
17278
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Report_InsightsDocument, variables, "report");
|
|
16740
17279
|
const data = response.report?.insights;
|
|
16741
17280
|
return new InsightConnection(this._request, (conn, opts) => new _Report_InsightsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
16742
17281
|
}
|
|
16743
17282
|
watch(options) {
|
|
16744
17283
|
const variables = this._variables;
|
|
16745
17284
|
const raw = this._syncEngine.watch(
|
|
16746
|
-
|
|
17285
|
+
chunkNVBJ6NKK_cjs.Report_InsightsDocument,
|
|
16747
17286
|
variables,
|
|
16748
17287
|
"report",
|
|
16749
17288
|
async (db) => {
|
|
16750
|
-
const qr = await db._queryResults.get(buildQueryKey("report", variables,
|
|
17289
|
+
const qr = await db._queryResults.get(buildQueryKey("report", variables, chunkNVBJ6NKK_cjs.Report_InsightsDocument));
|
|
16751
17290
|
const nodes = qr ? await db.table("insights").bulkGet(qr.entityIds) : [];
|
|
16752
17291
|
return { report: { insights: { __typename: "InsightConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
16753
17292
|
}
|
|
@@ -16765,7 +17304,7 @@ var Report_LayoutQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16765
17304
|
this._variables = variables;
|
|
16766
17305
|
}
|
|
16767
17306
|
async fetch(options) {
|
|
16768
|
-
const response = await this._syncEngine.query(
|
|
17307
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Report_LayoutDocument, this._variables, "report");
|
|
16769
17308
|
const data = response.report?.layout;
|
|
16770
17309
|
if (!Array.isArray(data)) return [];
|
|
16771
17310
|
return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -16780,7 +17319,7 @@ var ReportsQuery = class _ReportsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
16780
17319
|
}
|
|
16781
17320
|
async fetch(options) {
|
|
16782
17321
|
const variables = this._variables;
|
|
16783
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17322
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ReportsDocument, "reports", this._includes, variables, true);
|
|
16784
17323
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "reports");
|
|
16785
17324
|
const data = response.reports;
|
|
16786
17325
|
const connection = new ReportConnection(this._request, (conn, opts) => new _ReportsQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -16797,7 +17336,7 @@ var ReportsQuery = class _ReportsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
16797
17336
|
const subscriptionId = crypto.randomUUID();
|
|
16798
17337
|
const includes = this._includes;
|
|
16799
17338
|
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) }] : []);
|
|
16800
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17339
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.ReportsDocument, "reports", includes, variables, true);
|
|
16801
17340
|
const raw = this._syncEngine.watch(
|
|
16802
17341
|
queryDoc,
|
|
16803
17342
|
mergedVars,
|
|
@@ -16832,7 +17371,7 @@ var ReportsQuery = class _ReportsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
16832
17371
|
}
|
|
16833
17372
|
/** Include insights in this query (Smart Fetch — single HTTP request). */
|
|
16834
17373
|
insights(variables, builder) {
|
|
16835
|
-
const info = extractIncludeInfo(
|
|
17374
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Report_InsightsDocument, "insights", ["id"]);
|
|
16836
17375
|
let children;
|
|
16837
17376
|
if (builder) {
|
|
16838
17377
|
const sub = new InsightSubBuilder();
|
|
@@ -16841,7 +17380,7 @@ var ReportsQuery = class _ReportsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
16841
17380
|
}
|
|
16842
17381
|
this._includes.push({
|
|
16843
17382
|
fieldName: "insights",
|
|
16844
|
-
fragmentDoc:
|
|
17383
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.InsightConnectionFragmentDoc,
|
|
16845
17384
|
variables,
|
|
16846
17385
|
isConnection: true,
|
|
16847
17386
|
isList: false,
|
|
@@ -16859,10 +17398,10 @@ var ReportsQuery = class _ReportsQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
16859
17398
|
}
|
|
16860
17399
|
/** Include layout in this query (Smart Fetch — single HTTP request). */
|
|
16861
17400
|
layout(variables) {
|
|
16862
|
-
const info = extractIncludeInfo(
|
|
17401
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Report_LayoutDocument, "layout", ["id"]);
|
|
16863
17402
|
this._includes.push({
|
|
16864
17403
|
fieldName: "layout",
|
|
16865
|
-
fragmentDoc:
|
|
17404
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.ReportMemberFragmentDoc,
|
|
16866
17405
|
variables,
|
|
16867
17406
|
isConnection: false,
|
|
16868
17407
|
isList: true,
|
|
@@ -16885,7 +17424,7 @@ var SearchQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16885
17424
|
this._variables = variables;
|
|
16886
17425
|
}
|
|
16887
17426
|
async fetch(options) {
|
|
16888
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17427
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.SearchDocument, "search", this._includes, this._variables);
|
|
16889
17428
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "search");
|
|
16890
17429
|
const data = response.search;
|
|
16891
17430
|
if (!Array.isArray(data)) return [];
|
|
@@ -16901,7 +17440,7 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16901
17440
|
}
|
|
16902
17441
|
async fetch(options) {
|
|
16903
17442
|
const variables = this._variables;
|
|
16904
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17443
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.TableDocument, "table", this._includes, variables);
|
|
16905
17444
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "table");
|
|
16906
17445
|
const data = response.table;
|
|
16907
17446
|
const instance = new Table(this._request, data, this._syncEngine, this._baseUrl);
|
|
@@ -16913,7 +17452,7 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16913
17452
|
watch(options) {
|
|
16914
17453
|
const variables = this._variables;
|
|
16915
17454
|
const includes = this._includes;
|
|
16916
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17455
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.TableDocument, "table", includes, variables);
|
|
16917
17456
|
const raw = this._syncEngine.watch(
|
|
16918
17457
|
queryDoc,
|
|
16919
17458
|
mergedVars,
|
|
@@ -16943,7 +17482,7 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16943
17482
|
}
|
|
16944
17483
|
/** Include database in this query (Smart Fetch — single HTTP request). */
|
|
16945
17484
|
database(variables, builder) {
|
|
16946
|
-
const info = extractIncludeInfo(
|
|
17485
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
16947
17486
|
let children;
|
|
16948
17487
|
if (builder) {
|
|
16949
17488
|
const sub = new DatabaseSubBuilder();
|
|
@@ -16952,7 +17491,7 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16952
17491
|
}
|
|
16953
17492
|
this._includes.push({
|
|
16954
17493
|
fieldName: "database",
|
|
16955
|
-
fragmentDoc:
|
|
17494
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DatabaseFragmentDoc,
|
|
16956
17495
|
variables,
|
|
16957
17496
|
isConnection: false,
|
|
16958
17497
|
isList: false,
|
|
@@ -16969,7 +17508,7 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16969
17508
|
}
|
|
16970
17509
|
/** Include document in this query (Smart Fetch — single HTTP request). */
|
|
16971
17510
|
document(variables, builder) {
|
|
16972
|
-
const info = extractIncludeInfo(
|
|
17511
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
16973
17512
|
let children;
|
|
16974
17513
|
if (builder) {
|
|
16975
17514
|
const sub = new DocumentSubBuilder();
|
|
@@ -16978,7 +17517,7 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16978
17517
|
}
|
|
16979
17518
|
this._includes.push({
|
|
16980
17519
|
fieldName: "document",
|
|
16981
|
-
fragmentDoc:
|
|
17520
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DocumentFragmentDoc,
|
|
16982
17521
|
variables,
|
|
16983
17522
|
isConnection: false,
|
|
16984
17523
|
isList: false,
|
|
@@ -16995,10 +17534,10 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
16995
17534
|
}
|
|
16996
17535
|
/** Include fromRelations in this query (Smart Fetch — single HTTP request). */
|
|
16997
17536
|
fromRelations(variables) {
|
|
16998
|
-
const info = extractIncludeInfo(
|
|
17537
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
16999
17538
|
this._includes.push({
|
|
17000
17539
|
fieldName: "fromRelations",
|
|
17001
|
-
fragmentDoc:
|
|
17540
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.RelationFragmentDoc,
|
|
17002
17541
|
variables,
|
|
17003
17542
|
isConnection: false,
|
|
17004
17543
|
isList: true,
|
|
@@ -17014,10 +17553,10 @@ var TableQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17014
17553
|
}
|
|
17015
17554
|
/** Include toRelations in this query (Smart Fetch — single HTTP request). */
|
|
17016
17555
|
toRelations(variables) {
|
|
17017
|
-
const info = extractIncludeInfo(
|
|
17556
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
17018
17557
|
this._includes.push({
|
|
17019
17558
|
fieldName: "toRelations",
|
|
17020
|
-
fragmentDoc:
|
|
17559
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.RelationFragmentDoc,
|
|
17021
17560
|
variables,
|
|
17022
17561
|
isConnection: false,
|
|
17023
17562
|
isList: true,
|
|
@@ -17040,14 +17579,14 @@ var Table_DatabaseQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17040
17579
|
}
|
|
17041
17580
|
async fetch(options) {
|
|
17042
17581
|
const variables = this._variables;
|
|
17043
|
-
const response = await this._syncEngine.query(
|
|
17582
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Table_DatabaseDocument, variables, "table");
|
|
17044
17583
|
const data = response.table?.database;
|
|
17045
17584
|
return data ? new Database(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17046
17585
|
}
|
|
17047
17586
|
watch(options) {
|
|
17048
17587
|
const variables = this._variables;
|
|
17049
17588
|
const raw = this._syncEngine.watch(
|
|
17050
|
-
|
|
17589
|
+
chunkNVBJ6NKK_cjs.Table_DatabaseDocument,
|
|
17051
17590
|
variables,
|
|
17052
17591
|
"table",
|
|
17053
17592
|
async (db) => {
|
|
@@ -17070,14 +17609,14 @@ var Table_Database_EngineQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17070
17609
|
}
|
|
17071
17610
|
async fetch(options) {
|
|
17072
17611
|
const variables = this._variables;
|
|
17073
|
-
const response = await this._syncEngine.query(
|
|
17612
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Table_Database_EngineDocument, variables, "table");
|
|
17074
17613
|
const data = response.table?.database?.engine;
|
|
17075
17614
|
return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17076
17615
|
}
|
|
17077
17616
|
watch(options) {
|
|
17078
17617
|
const variables = this._variables;
|
|
17079
17618
|
const raw = this._syncEngine.watch(
|
|
17080
|
-
|
|
17619
|
+
chunkNVBJ6NKK_cjs.Table_Database_EngineDocument,
|
|
17081
17620
|
variables,
|
|
17082
17621
|
"table",
|
|
17083
17622
|
async (db) => {
|
|
@@ -17100,14 +17639,14 @@ var Table_DocumentQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17100
17639
|
}
|
|
17101
17640
|
async fetch(options) {
|
|
17102
17641
|
const variables = this._variables;
|
|
17103
|
-
const response = await this._syncEngine.query(
|
|
17642
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Table_DocumentDocument, variables, "table");
|
|
17104
17643
|
const data = response.table?.document;
|
|
17105
17644
|
return data ? new Document(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17106
17645
|
}
|
|
17107
17646
|
watch(options) {
|
|
17108
17647
|
const variables = this._variables;
|
|
17109
17648
|
const raw = this._syncEngine.watch(
|
|
17110
|
-
|
|
17649
|
+
chunkNVBJ6NKK_cjs.Table_DocumentDocument,
|
|
17111
17650
|
variables,
|
|
17112
17651
|
"table",
|
|
17113
17652
|
async (db) => {
|
|
@@ -17129,7 +17668,7 @@ var Table_Document_ContentsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17129
17668
|
this._variables = variables;
|
|
17130
17669
|
}
|
|
17131
17670
|
async fetch(options) {
|
|
17132
|
-
const response = await this._syncEngine.query(
|
|
17671
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Table_Document_ContentsDocument, this._variables, "table");
|
|
17133
17672
|
const data = response.table?.document?.contents;
|
|
17134
17673
|
if (!Array.isArray(data)) return [];
|
|
17135
17674
|
return data.map((item) => new DocumentContent(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -17143,14 +17682,14 @@ var Table_Document_FileQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17143
17682
|
}
|
|
17144
17683
|
async fetch(options) {
|
|
17145
17684
|
const variables = this._variables;
|
|
17146
|
-
const response = await this._syncEngine.query(
|
|
17685
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Table_Document_FileDocument, variables, "table");
|
|
17147
17686
|
const data = response.table?.document?.file;
|
|
17148
17687
|
return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17149
17688
|
}
|
|
17150
17689
|
watch(options) {
|
|
17151
17690
|
const variables = this._variables;
|
|
17152
17691
|
const raw = this._syncEngine.watch(
|
|
17153
|
-
|
|
17692
|
+
chunkNVBJ6NKK_cjs.Table_Document_FileDocument,
|
|
17154
17693
|
variables,
|
|
17155
17694
|
"table",
|
|
17156
17695
|
async (db) => {
|
|
@@ -17173,14 +17712,14 @@ var Table_Document_FormatQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17173
17712
|
}
|
|
17174
17713
|
async fetch(options) {
|
|
17175
17714
|
const variables = this._variables;
|
|
17176
|
-
const response = await this._syncEngine.query(
|
|
17715
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Table_Document_FormatDocument, variables, "table");
|
|
17177
17716
|
const data = response.table?.document?.format;
|
|
17178
17717
|
return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17179
17718
|
}
|
|
17180
17719
|
watch(options) {
|
|
17181
17720
|
const variables = this._variables;
|
|
17182
17721
|
const raw = this._syncEngine.watch(
|
|
17183
|
-
|
|
17722
|
+
chunkNVBJ6NKK_cjs.Table_Document_FormatDocument,
|
|
17184
17723
|
variables,
|
|
17185
17724
|
"table",
|
|
17186
17725
|
async (db) => {
|
|
@@ -17202,7 +17741,7 @@ var Table_FromRelationsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17202
17741
|
this._variables = variables;
|
|
17203
17742
|
}
|
|
17204
17743
|
async fetch(options) {
|
|
17205
|
-
const response = await this._syncEngine.query(
|
|
17744
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Table_FromRelationsDocument, this._variables, "table");
|
|
17206
17745
|
const data = response.table?.fromRelations;
|
|
17207
17746
|
if (!Array.isArray(data)) return [];
|
|
17208
17747
|
return data.map((item) => new Relation(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -17215,7 +17754,7 @@ var Table_ToRelationsQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17215
17754
|
this._variables = variables;
|
|
17216
17755
|
}
|
|
17217
17756
|
async fetch(options) {
|
|
17218
|
-
const response = await this._syncEngine.query(
|
|
17757
|
+
const response = await this._syncEngine.query(chunkNVBJ6NKK_cjs.Table_ToRelationsDocument, this._variables, "table");
|
|
17219
17758
|
const data = response.table?.toRelations;
|
|
17220
17759
|
if (!Array.isArray(data)) return [];
|
|
17221
17760
|
return data.map((item) => new Relation(this._request, item, this._syncEngine, this._baseUrl));
|
|
@@ -17230,7 +17769,7 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
17230
17769
|
}
|
|
17231
17770
|
async fetch(options) {
|
|
17232
17771
|
const variables = this._variables;
|
|
17233
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17772
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.TablesDocument, "tables", this._includes, variables, true);
|
|
17234
17773
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "tables");
|
|
17235
17774
|
const data = response.tables;
|
|
17236
17775
|
const connection = new TableConnection(this._request, (conn, opts) => new _TablesQuery(this._request, this._syncEngine, chunk4QKWHQT2_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
|
|
@@ -17247,7 +17786,7 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
17247
17786
|
const subscriptionId = crypto.randomUUID();
|
|
17248
17787
|
const includes = this._includes;
|
|
17249
17788
|
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) }] : []);
|
|
17250
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17789
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.TablesDocument, "tables", includes, variables, true);
|
|
17251
17790
|
const raw = this._syncEngine.watch(
|
|
17252
17791
|
queryDoc,
|
|
17253
17792
|
mergedVars,
|
|
@@ -17282,7 +17821,7 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
17282
17821
|
}
|
|
17283
17822
|
/** Include database in this query (Smart Fetch — single HTTP request). */
|
|
17284
17823
|
database(variables, builder) {
|
|
17285
|
-
const info = extractIncludeInfo(
|
|
17824
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Table_DatabaseDocument, "database", ["id"]);
|
|
17286
17825
|
let children;
|
|
17287
17826
|
if (builder) {
|
|
17288
17827
|
const sub = new DatabaseSubBuilder();
|
|
@@ -17291,7 +17830,7 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
17291
17830
|
}
|
|
17292
17831
|
this._includes.push({
|
|
17293
17832
|
fieldName: "database",
|
|
17294
|
-
fragmentDoc:
|
|
17833
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DatabaseFragmentDoc,
|
|
17295
17834
|
variables,
|
|
17296
17835
|
isConnection: false,
|
|
17297
17836
|
isList: false,
|
|
@@ -17308,7 +17847,7 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
17308
17847
|
}
|
|
17309
17848
|
/** Include document in this query (Smart Fetch — single HTTP request). */
|
|
17310
17849
|
document(variables, builder) {
|
|
17311
|
-
const info = extractIncludeInfo(
|
|
17850
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Table_DocumentDocument, "document", ["id"]);
|
|
17312
17851
|
let children;
|
|
17313
17852
|
if (builder) {
|
|
17314
17853
|
const sub = new DocumentSubBuilder();
|
|
@@ -17317,7 +17856,7 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
17317
17856
|
}
|
|
17318
17857
|
this._includes.push({
|
|
17319
17858
|
fieldName: "document",
|
|
17320
|
-
fragmentDoc:
|
|
17859
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.DocumentFragmentDoc,
|
|
17321
17860
|
variables,
|
|
17322
17861
|
isConnection: false,
|
|
17323
17862
|
isList: false,
|
|
@@ -17334,10 +17873,10 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
17334
17873
|
}
|
|
17335
17874
|
/** Include fromRelations in this query (Smart Fetch — single HTTP request). */
|
|
17336
17875
|
fromRelations(variables) {
|
|
17337
|
-
const info = extractIncludeInfo(
|
|
17876
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
|
|
17338
17877
|
this._includes.push({
|
|
17339
17878
|
fieldName: "fromRelations",
|
|
17340
|
-
fragmentDoc:
|
|
17879
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.RelationFragmentDoc,
|
|
17341
17880
|
variables,
|
|
17342
17881
|
isConnection: false,
|
|
17343
17882
|
isList: true,
|
|
@@ -17353,10 +17892,10 @@ var TablesQuery = class _TablesQuery extends chunk4QKWHQT2_cjs.Request {
|
|
|
17353
17892
|
}
|
|
17354
17893
|
/** Include toRelations in this query (Smart Fetch — single HTTP request). */
|
|
17355
17894
|
toRelations(variables) {
|
|
17356
|
-
const info = extractIncludeInfo(
|
|
17895
|
+
const info = extractIncludeInfo(chunkNVBJ6NKK_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
|
|
17357
17896
|
this._includes.push({
|
|
17358
17897
|
fieldName: "toRelations",
|
|
17359
|
-
fragmentDoc:
|
|
17898
|
+
fragmentDoc: chunkNVBJ6NKK_cjs.RelationFragmentDoc,
|
|
17360
17899
|
variables,
|
|
17361
17900
|
isConnection: false,
|
|
17362
17901
|
isList: true,
|
|
@@ -17380,7 +17919,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17380
17919
|
}
|
|
17381
17920
|
async fetch(options) {
|
|
17382
17921
|
const variables = this._variables;
|
|
17383
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17922
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", this._includes, variables);
|
|
17384
17923
|
const response = await this._syncEngine.query(queryDoc, mergedVars, "workspaceDeletionSchedule");
|
|
17385
17924
|
const data = response.workspaceDeletionSchedule;
|
|
17386
17925
|
if (!data) return void 0;
|
|
@@ -17393,7 +17932,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17393
17932
|
watch(options) {
|
|
17394
17933
|
const variables = this._variables;
|
|
17395
17934
|
const includes = this._includes;
|
|
17396
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(
|
|
17935
|
+
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkNVBJ6NKK_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", includes, variables);
|
|
17397
17936
|
const raw = this._syncEngine.watch(
|
|
17398
17937
|
queryDoc,
|
|
17399
17938
|
mergedVars,
|
|
@@ -17425,7 +17964,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17425
17964
|
};
|
|
17426
17965
|
var McpAuthUpdatesSubscription = class extends chunk4QKWHQT2_cjs.Request {
|
|
17427
17966
|
async *subscribe(variables) {
|
|
17428
|
-
for await (const response of this._subscribe(
|
|
17967
|
+
for await (const response of this._subscribe(chunkNVBJ6NKK_cjs.McpAuthUpdatesDocument, variables)) {
|
|
17429
17968
|
const data = response.mcpAuthUpdates;
|
|
17430
17969
|
yield new McpAuthUpdateModel(this._request, data, this._syncEngine, this._baseUrl);
|
|
17431
17970
|
}
|
|
@@ -17433,12 +17972,12 @@ var McpAuthUpdatesSubscription = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17433
17972
|
};
|
|
17434
17973
|
var SendMessageStreamSubscription = class extends chunk4QKWHQT2_cjs.Request {
|
|
17435
17974
|
subscribe(variables) {
|
|
17436
|
-
return this._subscribe(
|
|
17975
|
+
return this._subscribe(chunkNVBJ6NKK_cjs.SendMessageStreamDocument, variables);
|
|
17437
17976
|
}
|
|
17438
17977
|
};
|
|
17439
17978
|
var TokenUsageUpdatesSubscription = class extends chunk4QKWHQT2_cjs.Request {
|
|
17440
17979
|
async *subscribe(variables) {
|
|
17441
|
-
for await (const response of this._subscribe(
|
|
17980
|
+
for await (const response of this._subscribe(chunkNVBJ6NKK_cjs.TokenUsageUpdatesDocument, variables)) {
|
|
17442
17981
|
const data = response.tokenUsageUpdates;
|
|
17443
17982
|
yield new UsageStatus(this._request, data, this._syncEngine, this._baseUrl);
|
|
17444
17983
|
}
|
|
@@ -17464,6 +18003,10 @@ var DvinaSdk = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17464
18003
|
this.inference = inference;
|
|
17465
18004
|
this.billing = billing;
|
|
17466
18005
|
}
|
|
18006
|
+
/** Mutation: acknowledgePulseEvent */
|
|
18007
|
+
acknowledgePulseEvent(variables) {
|
|
18008
|
+
return new AcknowledgePulseEventMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
18009
|
+
}
|
|
17467
18010
|
/** Mutation: addInsightToReport */
|
|
17468
18011
|
addInsightToReport(variables) {
|
|
17469
18012
|
return new AddInsightToReportMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
@@ -17572,10 +18115,18 @@ var DvinaSdk = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17572
18115
|
disconnectIntegration(variables) {
|
|
17573
18116
|
return new DisconnectIntegrationMutation(this._request, this._syncEngine).fetch(variables);
|
|
17574
18117
|
}
|
|
18118
|
+
/** Mutation: dismissPulseEvent */
|
|
18119
|
+
dismissPulseEvent(variables) {
|
|
18120
|
+
return new DismissPulseEventMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
18121
|
+
}
|
|
17575
18122
|
/** Mutation: generateUploadUri */
|
|
17576
18123
|
generateUploadUri(variables) {
|
|
17577
18124
|
return new GenerateUploadUriMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
17578
18125
|
}
|
|
18126
|
+
/** Mutation: markPulseEventSeen */
|
|
18127
|
+
markPulseEventSeen(variables) {
|
|
18128
|
+
return new MarkPulseEventSeenMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
18129
|
+
}
|
|
17579
18130
|
/** Mutation: reanalyzeDocument */
|
|
17580
18131
|
reanalyzeDocument(variables) {
|
|
17581
18132
|
return new ReanalyzeDocumentMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
@@ -17608,6 +18159,10 @@ var DvinaSdk = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17608
18159
|
resetWorkspace() {
|
|
17609
18160
|
return new ResetWorkspaceMutation(this._request, this._syncEngine).fetch(void 0);
|
|
17610
18161
|
}
|
|
18162
|
+
/** Mutation: resolvePulseEvent */
|
|
18163
|
+
resolvePulseEvent(variables) {
|
|
18164
|
+
return new ResolvePulseEventMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
18165
|
+
}
|
|
17611
18166
|
/** Mutation: scheduleWorkspaceDeletion */
|
|
17612
18167
|
scheduleWorkspaceDeletion() {
|
|
17613
18168
|
return new ScheduleWorkspaceDeletionMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(void 0);
|
|
@@ -17648,6 +18203,10 @@ var DvinaSdk = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17648
18203
|
updateInterp(variables) {
|
|
17649
18204
|
return new UpdateInterpMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
17650
18205
|
}
|
|
18206
|
+
/** Mutation: updatePulseTrigger */
|
|
18207
|
+
updatePulseTrigger(variables) {
|
|
18208
|
+
return new UpdatePulseTriggerMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
18209
|
+
}
|
|
17651
18210
|
/** Mutation: updateReport */
|
|
17652
18211
|
updateReport(variables) {
|
|
17653
18212
|
return new UpdateReportMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
@@ -17804,6 +18363,10 @@ var DvinaSdk = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17804
18363
|
integrationCatalog(variables) {
|
|
17805
18364
|
return new IntegrationCatalogQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
17806
18365
|
}
|
|
18366
|
+
/** Query: integrationCatalogTools (scalar) */
|
|
18367
|
+
integrationCatalogTools(variables) {
|
|
18368
|
+
return new IntegrationCatalogToolsQuery(this._request, this._syncEngine).fetch(variables);
|
|
18369
|
+
}
|
|
17807
18370
|
/** Query: integrationCatalogs — call .fetch() or .watch() to execute. */
|
|
17808
18371
|
integrationCatalogs(variables) {
|
|
17809
18372
|
return new IntegrationCatalogsQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
@@ -17832,6 +18395,26 @@ var DvinaSdk = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17832
18395
|
privacyStats() {
|
|
17833
18396
|
return new PrivacyStatsQuery(this._request, this._syncEngine, {}, this._baseUrl);
|
|
17834
18397
|
}
|
|
18398
|
+
/** Query: pulseAppSummary — call .fetch() or .watch() to execute. */
|
|
18399
|
+
pulseAppSummary(variables) {
|
|
18400
|
+
return new PulseAppSummaryQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
18401
|
+
}
|
|
18402
|
+
/** Query: pulseEvent — call .fetch() or .watch() to execute. */
|
|
18403
|
+
pulseEvent(variables) {
|
|
18404
|
+
return new PulseEventQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
18405
|
+
}
|
|
18406
|
+
/** Query: pulseEventStats — call .fetch() or .watch() to execute. */
|
|
18407
|
+
pulseEventStats(variables) {
|
|
18408
|
+
return new PulseEventStatsQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
18409
|
+
}
|
|
18410
|
+
/** Query: pulseEvents — call .fetch() or .watch() to execute. */
|
|
18411
|
+
pulseEvents(variables) {
|
|
18412
|
+
return new PulseEventsQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
18413
|
+
}
|
|
18414
|
+
/** Query: pulseTriggerSettings — call .fetch() or .watch() to execute. */
|
|
18415
|
+
pulseTriggerSettings(variables) {
|
|
18416
|
+
return new PulseTriggerSettingsQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
18417
|
+
}
|
|
17835
18418
|
/** Query: query (scalar) */
|
|
17836
18419
|
query(variables) {
|
|
17837
18420
|
return new QueryQuery(this._request, this._syncEngine).fetch(variables);
|
|
@@ -17926,6 +18509,7 @@ var DvinaSdk = class extends chunk4QKWHQT2_cjs.Request {
|
|
|
17926
18509
|
}
|
|
17927
18510
|
};
|
|
17928
18511
|
|
|
18512
|
+
exports.AcknowledgePulseEventMutation = AcknowledgePulseEventMutation;
|
|
17929
18513
|
exports.Action = Action;
|
|
17930
18514
|
exports.AddInsightToReportMutation = AddInsightToReportMutation;
|
|
17931
18515
|
exports.Agent = Agent;
|
|
@@ -18019,6 +18603,7 @@ exports.DeleteTableMutation = DeleteTableMutation;
|
|
|
18019
18603
|
exports.DevAccessTokenOutput = DevAccessTokenOutput;
|
|
18020
18604
|
exports.DexieLiveQueryRef = DexieLiveQueryRef;
|
|
18021
18605
|
exports.DisconnectIntegrationMutation = DisconnectIntegrationMutation;
|
|
18606
|
+
exports.DismissPulseEventMutation = DismissPulseEventMutation;
|
|
18022
18607
|
exports.Document = Document;
|
|
18023
18608
|
exports.DocumentCatalog = DocumentCatalog;
|
|
18024
18609
|
exports.DocumentCatalogConnection = DocumentCatalogConnection;
|
|
@@ -18081,6 +18666,7 @@ exports.IntegrationCatalog = IntegrationCatalog;
|
|
|
18081
18666
|
exports.IntegrationCatalogConnection = IntegrationCatalogConnection;
|
|
18082
18667
|
exports.IntegrationCatalogQuery = IntegrationCatalogQuery;
|
|
18083
18668
|
exports.IntegrationCatalogSubBuilder = IntegrationCatalogSubBuilder;
|
|
18669
|
+
exports.IntegrationCatalogToolsQuery = IntegrationCatalogToolsQuery;
|
|
18084
18670
|
exports.IntegrationCatalog_ProviderQuery = IntegrationCatalog_ProviderQuery;
|
|
18085
18671
|
exports.IntegrationCatalogsQuery = IntegrationCatalogsQuery;
|
|
18086
18672
|
exports.IntegrationConnection = IntegrationConnection;
|
|
@@ -18096,6 +18682,7 @@ exports.InterpretationsQuery = InterpretationsQuery;
|
|
|
18096
18682
|
exports.Invocation = Invocation;
|
|
18097
18683
|
exports.MUTATION_CACHE_RULES = MUTATION_CACHE_RULES;
|
|
18098
18684
|
exports.MappedDvinaQueryRef = MappedDvinaQueryRef;
|
|
18685
|
+
exports.MarkPulseEventSeenMutation = MarkPulseEventSeenMutation;
|
|
18099
18686
|
exports.McpAuthUpdateModel = McpAuthUpdateModel;
|
|
18100
18687
|
exports.McpAuthUpdatesSubscription = McpAuthUpdatesSubscription;
|
|
18101
18688
|
exports.McpClientInformation = McpClientInformation;
|
|
@@ -18114,6 +18701,19 @@ exports.NotificationsQuery = NotificationsQuery;
|
|
|
18114
18701
|
exports.PRIMARY_KEY_CONFIG = PRIMARY_KEY_CONFIG;
|
|
18115
18702
|
exports.PrivacyStats = PrivacyStats;
|
|
18116
18703
|
exports.PrivacyStatsQuery = PrivacyStatsQuery;
|
|
18704
|
+
exports.PulseAppSummaryModel = PulseAppSummaryModel;
|
|
18705
|
+
exports.PulseAppSummaryQuery = PulseAppSummaryQuery;
|
|
18706
|
+
exports.PulseEvent = PulseEvent;
|
|
18707
|
+
exports.PulseEventConnection = PulseEventConnection;
|
|
18708
|
+
exports.PulseEventQuery = PulseEventQuery;
|
|
18709
|
+
exports.PulseEventStatsModel = PulseEventStatsModel;
|
|
18710
|
+
exports.PulseEventStatsQuery = PulseEventStatsQuery;
|
|
18711
|
+
exports.PulseEventSubBuilder = PulseEventSubBuilder;
|
|
18712
|
+
exports.PulseEvent_IntegrationQuery = PulseEvent_IntegrationQuery;
|
|
18713
|
+
exports.PulseEvent_Integration_ProviderQuery = PulseEvent_Integration_ProviderQuery;
|
|
18714
|
+
exports.PulseEventsQuery = PulseEventsQuery;
|
|
18715
|
+
exports.PulseTriggerSettingModel = PulseTriggerSettingModel;
|
|
18716
|
+
exports.PulseTriggerSettingsQuery = PulseTriggerSettingsQuery;
|
|
18117
18717
|
exports.QueryQuery = QueryQuery;
|
|
18118
18718
|
exports.QueryWithInsightIdQuery = QueryWithInsightIdQuery;
|
|
18119
18719
|
exports.QueryWithMessageIdQuery = QueryWithMessageIdQuery;
|
|
@@ -18135,6 +18735,7 @@ exports.Report_InsightsQuery = Report_InsightsQuery;
|
|
|
18135
18735
|
exports.Report_LayoutQuery = Report_LayoutQuery;
|
|
18136
18736
|
exports.ReportsQuery = ReportsQuery;
|
|
18137
18737
|
exports.ResetWorkspaceMutation = ResetWorkspaceMutation;
|
|
18738
|
+
exports.ResolvePulseEventMutation = ResolvePulseEventMutation;
|
|
18138
18739
|
exports.ResolvedFileUrl = ResolvedFileUrl;
|
|
18139
18740
|
exports.ScheduleWorkspaceDeletionMutation = ScheduleWorkspaceDeletionMutation;
|
|
18140
18741
|
exports.SearchQuery = SearchQuery;
|
|
@@ -18175,6 +18776,7 @@ exports.UpdateFolderMutation = UpdateFolderMutation;
|
|
|
18175
18776
|
exports.UpdateInsightInReportMutation = UpdateInsightInReportMutation;
|
|
18176
18777
|
exports.UpdateInsightMutation = UpdateInsightMutation;
|
|
18177
18778
|
exports.UpdateInterpMutation = UpdateInterpMutation;
|
|
18779
|
+
exports.UpdatePulseTriggerMutation = UpdatePulseTriggerMutation;
|
|
18178
18780
|
exports.UpdateReportMutation = UpdateReportMutation;
|
|
18179
18781
|
exports.UpdateTableMutation = UpdateTableMutation;
|
|
18180
18782
|
exports.UsageMetaOutput = UsageMetaOutput;
|
|
@@ -18193,5 +18795,5 @@ exports.getOrCreateDatabase = getOrCreateDatabase;
|
|
|
18193
18795
|
exports.reconstructConnectionNodes = reconstructConnectionNodes;
|
|
18194
18796
|
exports.reconstructEntity = reconstructEntity;
|
|
18195
18797
|
exports.uploadFile = uploadFile;
|
|
18196
|
-
//# sourceMappingURL=chunk-
|
|
18197
|
-
//# sourceMappingURL=chunk-
|
|
18798
|
+
//# sourceMappingURL=chunk-J4D5NNBG.cjs.map
|
|
18799
|
+
//# sourceMappingURL=chunk-J4D5NNBG.cjs.map
|