@burdenoff/microfe-subscriberbot 2026.1102.4 → 2026.1102.6
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/stories/pages/DashboardPage.stories.d.ts +4 -0
- package/dist/stories/pages/DashboardPage.stories.d.ts.map +1 -1
- package/dist/stories/pages/RelationshipsListPage.stories.d.ts +5 -0
- package/dist/stories/pages/RelationshipsListPage.stories.d.ts.map +1 -1
- package/dist/stories/pages/WorkflowBuilderPage.stories.d.ts +14 -0
- package/dist/stories/pages/WorkflowBuilderPage.stories.d.ts.map +1 -0
- package/dist/stories/pages/WorkflowsPage.stories.d.ts +1 -0
- package/dist/stories/pages/WorkflowsPage.stories.d.ts.map +1 -1
- package/dist/stories/support/fixtures.d.ts +6 -1
- package/dist/stories/support/fixtures.d.ts.map +1 -1
- package/dist/stories/support/handlers.d.ts.map +1 -1
- package/dist/stories/support/phoneViewport.d.ts +4 -0
- package/dist/stories/support/phoneViewport.d.ts.map +1 -0
- package/dist/subscriberbot/SubscriberBotRoutes.d.ts.map +1 -1
- package/dist/subscriberbot/SubscriberBotRoutes.js +27 -23
- package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
- package/dist/subscriberbot/components/PageLayout.d.ts.map +1 -1
- package/dist/subscriberbot/components/PageLayout.js +3 -3
- package/dist/subscriberbot/components/PageLayout.js.map +1 -1
- package/dist/subscriberbot/components/mobile/MobileDashboard.d.ts +18 -0
- package/dist/subscriberbot/components/mobile/MobileDashboard.d.ts.map +1 -0
- package/dist/subscriberbot/components/mobile/MobileDashboard.js +247 -0
- package/dist/subscriberbot/components/mobile/MobileDashboard.js.map +1 -0
- package/dist/subscriberbot/components/mobile/MobileRelationshipList.d.ts +10 -0
- package/dist/subscriberbot/components/mobile/MobileRelationshipList.d.ts.map +1 -0
- package/dist/subscriberbot/components/mobile/MobileRelationshipList.js +217 -0
- package/dist/subscriberbot/components/mobile/MobileRelationshipList.js.map +1 -0
- package/dist/subscriberbot/components/mobile/MobileScreen.d.ts +26 -0
- package/dist/subscriberbot/components/mobile/MobileScreen.d.ts.map +1 -0
- package/dist/subscriberbot/components/mobile/MobileScreen.js +46 -0
- package/dist/subscriberbot/components/mobile/MobileScreen.js.map +1 -0
- package/dist/subscriberbot/components/mobile/RelationshipGlyph.d.ts +10 -0
- package/dist/subscriberbot/components/mobile/RelationshipGlyph.d.ts.map +1 -0
- package/dist/subscriberbot/components/mobile/RelationshipGlyph.js +25 -0
- package/dist/subscriberbot/components/mobile/RelationshipGlyph.js.map +1 -0
- package/dist/subscriberbot/components/mobile/index.d.ts +9 -0
- package/dist/subscriberbot/components/mobile/index.d.ts.map +1 -0
- package/dist/subscriberbot/components/mobile/index.js +4 -0
- package/dist/subscriberbot/hooks/index.d.ts +1 -0
- package/dist/subscriberbot/hooks/index.d.ts.map +1 -1
- package/dist/subscriberbot/hooks/index.js +1 -0
- package/dist/subscriberbot/hooks/useCompactViewport.d.ts +13 -0
- package/dist/subscriberbot/hooks/useCompactViewport.d.ts.map +1 -0
- package/dist/subscriberbot/hooks/useCompactViewport.js +21 -0
- package/dist/subscriberbot/hooks/useCompactViewport.js.map +1 -0
- package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts +10 -1
- package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts.map +1 -1
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js +113 -79
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
- package/dist/subscriberbot/pages/DashboardPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/DashboardPage.js +166 -189
- package/dist/subscriberbot/pages/DashboardPage.js.map +1 -1
- package/dist/subscriberbot/pages/WorkflowsPage.d.ts +4 -4
- package/dist/subscriberbot/pages/WorkflowsPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/WorkflowsPage.js +201 -190
- package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +120 -119
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +226 -212
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -1
- package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.d.ts +3 -0
- package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js +648 -0
- package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js.map +1 -0
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts +60 -0
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts.map +1 -0
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js +122 -0
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js.map +1 -0
- package/dist/subscriberbot/types/index.d.ts +65 -0
- package/dist/subscriberbot/types/index.d.ts.map +1 -1
- package/dist/subscriberbot/utils/pageContext.d.ts.map +1 -1
- package/dist/subscriberbot/utils/pageContext.js +21 -13
- package/dist/subscriberbot/utils/pageContext.js.map +1 -1
- package/dist/subscriberbot/utils/portfolio.d.ts +106 -0
- package/dist/subscriberbot/utils/portfolio.d.ts.map +1 -0
- package/dist/subscriberbot/utils/portfolio.js +151 -0
- package/dist/subscriberbot/utils/portfolio.js.map +1 -0
- package/package.json +3 -1
|
@@ -57,6 +57,12 @@ var c = async (e, t, n) => {
|
|
|
57
57
|
"savings-overview"
|
|
58
58
|
],
|
|
59
59
|
workflows: ["subscriberbot", "workflows"],
|
|
60
|
+
workflow: (e) => [
|
|
61
|
+
"subscriberbot",
|
|
62
|
+
"workflows",
|
|
63
|
+
"detail",
|
|
64
|
+
e
|
|
65
|
+
],
|
|
60
66
|
renewals: ["subscriberbot", "renewals"],
|
|
61
67
|
renewalForecast: [
|
|
62
68
|
"subscriberbot",
|
|
@@ -85,7 +91,7 @@ var c = async (e, t, n) => {
|
|
|
85
91
|
"enterprise",
|
|
86
92
|
"budgets"
|
|
87
93
|
]
|
|
88
|
-
}, u = "\n id name slug category status description industry region language websiteUrl\n logoFileId tags churnRiskScore vendorHealthScore workspaceId createdAt updatedAt\n", d = "\n id name description providerId amount currency interval features isActive\n workspaceId createdAt updatedAt\n", f = "\n id label kind status amount currency interval autoRenew discoverySource notes\n tags healthScore ownerId providerId planId startedAt renewsAt trialEndsAt\n cancelledAt department workspaceId createdAt updatedAt\n", p = "\n id subject preview category categoryConfidence channelId relationshipId\n externalId actionRequired isRead receivedAt workspaceId createdAt updatedAt\n", m = "\n id number relationshipId status currency subtotal taxAmount total issueDate\n dueDate paidAt paymentInstrumentId workspaceId createdAt updatedAt\n", h = "\n id name description kind status ownerId lastRunAt workspaceId createdAt updatedAt\n", g = "\n id agentId runId relationshipId kind recommendation status rationale confidence\n estimatedSavings currency evidence proposedChange validationErrors invocationRef\n applyInvocationRef appliedAt appliedBy dismissedAt dismissedReason workspaceId\n createdAt updatedAt\n agent { id name kind status }\n relationship { id label status amount currency interval providerId planId }\n", _ = "\n id name description triggerEvent status runCount lastRunAt workspaceId\n createdAt updatedAt\n", ee = "\n id name description type relationshipId quota used unit isActive\n workspaceId createdAt updatedAt\n",
|
|
94
|
+
}, u = "\n id name slug category status description industry region language websiteUrl\n logoFileId tags churnRiskScore vendorHealthScore workspaceId createdAt updatedAt\n", d = "\n id name description providerId amount currency interval features isActive\n workspaceId createdAt updatedAt\n", f = "\n id label kind status amount currency interval autoRenew discoverySource notes\n tags healthScore ownerId providerId planId startedAt renewsAt trialEndsAt\n cancelledAt department workspaceId createdAt updatedAt\n", p = "\n id subject preview category categoryConfidence channelId relationshipId\n externalId actionRequired isRead receivedAt workspaceId createdAt updatedAt\n", m = "\n id number relationshipId status currency subtotal taxAmount total issueDate\n dueDate paidAt paymentInstrumentId workspaceId createdAt updatedAt\n", h = "\n id name description kind status ownerId lastRunAt workspaceId createdAt updatedAt\n", g = "\n id agentId runId relationshipId kind recommendation status rationale confidence\n estimatedSavings currency evidence proposedChange validationErrors invocationRef\n applyInvocationRef appliedAt appliedBy dismissedAt dismissedReason workspaceId\n createdAt updatedAt\n agent { id name kind status }\n relationship { id label status amount currency interval providerId planId }\n", _ = "\n id name description triggerEvent status runCount lastRunAt workspaceId\n createdAt updatedAt\n", v = "\n workflowId valid\n nodes { id workflowId kind label config positionX positionY }\n edges { id workflowId sourceNodeId targetNodeId sourceHandle label }\n issues { code message nodeId edgeId }\n", ee = "\n id name description type relationshipId quota used unit isActive\n workspaceId createdAt updatedAt\n", y = "\n id name type relationshipId secretRef expiresAt workspaceId createdAt\n updatedAt file { id }\n", te = "\n id label type status brand last4 expiryMonth expiryYear isDefault ownerId\n workspaceId createdAt updatedAt\n", b = "\n id label type status address ingestEnabled ownerId verifiedAt workspaceId\n createdAt updatedAt\n", x = "\n id name description action agentId condition isEnabled triggerCount\n lastTriggeredAt workspaceId createdAt updatedAt\n", ne = "\n id providerSlug providerName planName region currency interval amount\n contractSizeSeats sourceKind sourceLabel notes observedAt createdAt\n", S = "\n id workspaceId adapterId submitterWorkspaceId status notes createdAt updatedAt\n", C = "\n id workspaceId listingId reporterWorkspaceId reason status resolutionReason\n createdAt updatedAt\n", re = (t = {}) => {
|
|
89
95
|
let { apiGatewayUrl: n } = e();
|
|
90
96
|
return i({
|
|
91
97
|
queryKey: [...l.relationships, t],
|
|
@@ -124,7 +130,7 @@ var c = async (e, t, n) => {
|
|
|
124
130
|
}
|
|
125
131
|
}, n)).subListRelationships
|
|
126
132
|
});
|
|
127
|
-
},
|
|
133
|
+
}, w = (t) => {
|
|
128
134
|
let { apiGatewayUrl: n } = e();
|
|
129
135
|
return i({
|
|
130
136
|
queryKey: l.relationship(t ?? ""),
|
|
@@ -149,7 +155,7 @@ var c = async (e, t, n) => {
|
|
|
149
155
|
}
|
|
150
156
|
}`, { id: t }, n)).subRelationship
|
|
151
157
|
});
|
|
152
|
-
},
|
|
158
|
+
}, T = () => {
|
|
153
159
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
154
160
|
return r({
|
|
155
161
|
mutationFn: async (e) => (await c(`mutation SubCreateRelationship($input: SubCreateRelationshipInput!) {
|
|
@@ -159,7 +165,7 @@ var c = async (e, t, n) => {
|
|
|
159
165
|
t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.renewals });
|
|
160
166
|
}
|
|
161
167
|
});
|
|
162
|
-
},
|
|
168
|
+
}, E = () => {
|
|
163
169
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
164
170
|
return r({
|
|
165
171
|
mutationFn: async ({ id: e, status: t }) => (await c(`mutation SubTransitionRelationship($id: ID!, $status: SubRelationshipStatus!) {
|
|
@@ -172,7 +178,7 @@ var c = async (e, t, n) => {
|
|
|
172
178
|
t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.relationship(e.id) }), t.invalidateQueries({ queryKey: l.renewals });
|
|
173
179
|
}
|
|
174
180
|
});
|
|
175
|
-
},
|
|
181
|
+
}, D = () => {
|
|
176
182
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
177
183
|
return r({
|
|
178
184
|
mutationFn: async (e) => (await c(`mutation SubCancelRelationship($id: ID!) {
|
|
@@ -182,7 +188,7 @@ var c = async (e, t, n) => {
|
|
|
182
188
|
t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.relationship(e.id) }), t.invalidateQueries({ queryKey: l.renewals });
|
|
183
189
|
}
|
|
184
190
|
});
|
|
185
|
-
},
|
|
191
|
+
}, O = () => {
|
|
186
192
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
187
193
|
return r({
|
|
188
194
|
mutationFn: async ({ id: e, input: t }) => (await c(`mutation SubUpdateRelationship($id: ID!, $input: SubUpdateRelationshipInput!) {
|
|
@@ -195,7 +201,7 @@ var c = async (e, t, n) => {
|
|
|
195
201
|
t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.relationship(e.id) }), t.invalidateQueries({ queryKey: l.renewals });
|
|
196
202
|
}
|
|
197
203
|
});
|
|
198
|
-
},
|
|
204
|
+
}, k = (t = {}) => {
|
|
199
205
|
let { apiGatewayUrl: n } = e();
|
|
200
206
|
return i({
|
|
201
207
|
queryKey: [...l.renewals, t],
|
|
@@ -204,7 +210,7 @@ var c = async (e, t, n) => {
|
|
|
204
210
|
upcomingOnly: t.upcomingOnly
|
|
205
211
|
}, n)).subListRenewalEvents.items
|
|
206
212
|
});
|
|
207
|
-
},
|
|
213
|
+
}, A = () => {
|
|
208
214
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
209
215
|
return r({
|
|
210
216
|
mutationFn: async (e) => (await c(`mutation SubCreateEntitlement($input: SubCreateEntitlementInput!) {
|
|
@@ -214,31 +220,31 @@ var c = async (e, t, n) => {
|
|
|
214
220
|
t.invalidateQueries({ queryKey: l.entitlements }), t.invalidateQueries({ queryKey: l.relationship(e.relationshipId) });
|
|
215
221
|
}
|
|
216
222
|
});
|
|
217
|
-
},
|
|
223
|
+
}, j = () => {
|
|
218
224
|
let { apiGatewayUrl: t } = e();
|
|
219
225
|
return i({
|
|
220
226
|
queryKey: [...l.assets, "all"],
|
|
221
227
|
queryFn: async () => (await c(`query SubAllAssets {
|
|
222
|
-
subListAssets { items { ${
|
|
228
|
+
subListAssets { items { ${y} } pageInfo { cursor hasMore } }
|
|
223
229
|
}`, {}, t)).subListAssets.items
|
|
224
230
|
});
|
|
225
|
-
},
|
|
231
|
+
}, M = () => {
|
|
226
232
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
227
233
|
return r({
|
|
228
234
|
mutationFn: async (e) => (await c(`mutation SubCreateAsset($input: SubCreateAssetInput!) {
|
|
229
|
-
subCreateAsset(input: $input) { ${
|
|
235
|
+
subCreateAsset(input: $input) { ${y} }
|
|
230
236
|
}`, { input: e }, n)).subCreateAsset,
|
|
231
237
|
onSuccess: (e) => {
|
|
232
238
|
t.invalidateQueries({ queryKey: l.assets }), t.invalidateQueries({ queryKey: l.relationship(e.relationshipId) });
|
|
233
239
|
}
|
|
234
240
|
});
|
|
235
|
-
},
|
|
241
|
+
}, N = "/SubscriberBot/Assets", P = () => {
|
|
236
242
|
let { apiGatewayUrl: r } = e(), [i, a] = n(0), [o, s] = n(!1);
|
|
237
243
|
return {
|
|
238
244
|
uploadFile: t(async (e) => {
|
|
239
245
|
s(!0), a(0);
|
|
240
246
|
try {
|
|
241
|
-
let t = (await c("mutation SubEnsureFolder($path: String!) {\n ensureFolderByPath(path: $path) { id }\n }", { path:
|
|
247
|
+
let t = (await c("mutation SubEnsureFolder($path: String!) {\n ensureFolderByPath(path: $path) { id }\n }", { path: N }, r)).ensureFolderByPath?.id;
|
|
242
248
|
if (!t) throw Error("Could not resolve the upload folder.");
|
|
243
249
|
let n = e.type || "application/octet-stream", i = e.name.lastIndexOf("."), o = i > -1 ? e.name.slice(i + 1) : "bin", s = await c("mutation SubInitiateUpload($input: InitiateUploadInput!) {\n initiateUpload(input: $input) {\n uploadUrl\n session { id }\n }\n }", { input: {
|
|
244
250
|
fileName: e.name,
|
|
@@ -273,13 +279,13 @@ var c = async (e, t, n) => {
|
|
|
273
279
|
progress: i,
|
|
274
280
|
isUploading: o
|
|
275
281
|
};
|
|
276
|
-
},
|
|
282
|
+
}, F = () => {
|
|
277
283
|
let { apiGatewayUrl: n } = e();
|
|
278
284
|
return t(async (e) => (await c("query SubFileDownloadUrl($id: ID!, $expiresIn: Int) {\n getFileDownloadUrl(id: $id, expiresIn: $expiresIn)\n }", {
|
|
279
285
|
id: e,
|
|
280
286
|
expiresIn: 21600
|
|
281
287
|
}, n)).getFileDownloadUrl, [n]);
|
|
282
|
-
},
|
|
288
|
+
}, I = (t = {}) => {
|
|
283
289
|
let { apiGatewayUrl: n } = e();
|
|
284
290
|
return i({
|
|
285
291
|
queryKey: [...l.providers, t],
|
|
@@ -308,7 +314,7 @@ var c = async (e, t, n) => {
|
|
|
308
314
|
}
|
|
309
315
|
}, n)).subListProviders
|
|
310
316
|
});
|
|
311
|
-
},
|
|
317
|
+
}, L = (t) => {
|
|
312
318
|
let { apiGatewayUrl: n } = e();
|
|
313
319
|
return i({
|
|
314
320
|
queryKey: l.provider(t ?? ""),
|
|
@@ -320,7 +326,7 @@ var c = async (e, t, n) => {
|
|
|
320
326
|
}
|
|
321
327
|
}`, { id: t }, n)).subProvider
|
|
322
328
|
});
|
|
323
|
-
},
|
|
329
|
+
}, R = () => {
|
|
324
330
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
325
331
|
return r({
|
|
326
332
|
mutationFn: async (e) => (await c(`mutation SubCreateProvider($input: SubCreateProviderInput!) {
|
|
@@ -330,7 +336,7 @@ var c = async (e, t, n) => {
|
|
|
330
336
|
t.invalidateQueries({ queryKey: l.providers });
|
|
331
337
|
}
|
|
332
338
|
});
|
|
333
|
-
},
|
|
339
|
+
}, z = () => {
|
|
334
340
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
335
341
|
return r({
|
|
336
342
|
mutationFn: async ({ id: e, input: t }) => (await c(`mutation SubUpdateProvider($id: ID!, $input: SubUpdateProviderInput!) {
|
|
@@ -343,7 +349,7 @@ var c = async (e, t, n) => {
|
|
|
343
349
|
t.invalidateQueries({ queryKey: l.providers }), t.invalidateQueries({ queryKey: l.provider(e.id) });
|
|
344
350
|
}
|
|
345
351
|
});
|
|
346
|
-
},
|
|
352
|
+
}, B = () => {
|
|
347
353
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
348
354
|
return r({
|
|
349
355
|
mutationFn: async (e) => (await c("mutation SubArchiveProvider($id: ID!) {\n subArchiveProvider(id: $id)\n }", { id: e }, n)).subArchiveProvider,
|
|
@@ -351,7 +357,7 @@ var c = async (e, t, n) => {
|
|
|
351
357
|
t.invalidateQueries({ queryKey: l.providers });
|
|
352
358
|
}
|
|
353
359
|
});
|
|
354
|
-
},
|
|
360
|
+
}, V = (t) => {
|
|
355
361
|
let { apiGatewayUrl: n } = e();
|
|
356
362
|
return i({
|
|
357
363
|
queryKey: [...l.plans, t],
|
|
@@ -360,7 +366,7 @@ var c = async (e, t, n) => {
|
|
|
360
366
|
subListPlans(providerId: $providerId) { items { ${d} } pageInfo { cursor hasMore } }
|
|
361
367
|
}`, { providerId: t }, n)).subListPlans.items
|
|
362
368
|
});
|
|
363
|
-
},
|
|
369
|
+
}, H = () => {
|
|
364
370
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
365
371
|
return r({
|
|
366
372
|
mutationFn: async (e) => (await c(`mutation SubCreatePlan($input: SubCreatePlanInput!) {
|
|
@@ -370,7 +376,7 @@ var c = async (e, t, n) => {
|
|
|
370
376
|
t.invalidateQueries({ queryKey: l.plans }), t.invalidateQueries({ queryKey: l.provider(e.providerId) });
|
|
371
377
|
}
|
|
372
378
|
});
|
|
373
|
-
},
|
|
379
|
+
}, U = (t) => {
|
|
374
380
|
let { apiGatewayUrl: n } = e();
|
|
375
381
|
return i({
|
|
376
382
|
queryKey: l.benchmarks(t ?? ""),
|
|
@@ -394,7 +400,7 @@ var c = async (e, t, n) => {
|
|
|
394
400
|
}, n)).subListBenchmarkDataPoints.items;
|
|
395
401
|
}
|
|
396
402
|
});
|
|
397
|
-
},
|
|
403
|
+
}, W = (t = {}) => {
|
|
398
404
|
let { apiGatewayUrl: n } = e();
|
|
399
405
|
return i({
|
|
400
406
|
queryKey: [...l.inbox, t],
|
|
@@ -426,7 +432,7 @@ var c = async (e, t, n) => {
|
|
|
426
432
|
}
|
|
427
433
|
}, n)).subListInboxMessages
|
|
428
434
|
});
|
|
429
|
-
},
|
|
435
|
+
}, G = () => {
|
|
430
436
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
431
437
|
return r({
|
|
432
438
|
mutationFn: async (e) => (await c(`mutation SubMarkMessageRead($id: ID!) {
|
|
@@ -436,7 +442,7 @@ var c = async (e, t, n) => {
|
|
|
436
442
|
t.invalidateQueries({ queryKey: l.inbox });
|
|
437
443
|
}
|
|
438
444
|
});
|
|
439
|
-
},
|
|
445
|
+
}, K = () => {
|
|
440
446
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
441
447
|
return r({
|
|
442
448
|
mutationFn: async (e) => (await c(`mutation SubIngestMessage($input: SubIngestMessageInput!) {
|
|
@@ -446,7 +452,7 @@ var c = async (e, t, n) => {
|
|
|
446
452
|
t.invalidateQueries({ queryKey: l.inbox });
|
|
447
453
|
}
|
|
448
454
|
});
|
|
449
|
-
},
|
|
455
|
+
}, q = (t = {}, n = {}) => {
|
|
450
456
|
let { apiGatewayUrl: r } = e();
|
|
451
457
|
return i({
|
|
452
458
|
queryKey: [...l.invoices, t],
|
|
@@ -473,7 +479,7 @@ var c = async (e, t, n) => {
|
|
|
473
479
|
}
|
|
474
480
|
}, r)).subListInvoices
|
|
475
481
|
});
|
|
476
|
-
},
|
|
482
|
+
}, J = () => {
|
|
477
483
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
478
484
|
return r({
|
|
479
485
|
mutationFn: async (e) => (await c(`mutation SubMarkInvoicePaid($id: ID!) {
|
|
@@ -483,7 +489,7 @@ var c = async (e, t, n) => {
|
|
|
483
489
|
t.invalidateQueries({ queryKey: l.invoices });
|
|
484
490
|
}
|
|
485
491
|
});
|
|
486
|
-
},
|
|
492
|
+
}, Y = () => {
|
|
487
493
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
488
494
|
return r({
|
|
489
495
|
mutationFn: async (e) => (await c(`mutation SubCreateInvoice($input: SubCreateInvoiceInput!) {
|
|
@@ -493,13 +499,13 @@ var c = async (e, t, n) => {
|
|
|
493
499
|
t.invalidateQueries({ queryKey: l.invoices });
|
|
494
500
|
}
|
|
495
501
|
});
|
|
496
|
-
},
|
|
502
|
+
}, X = (t) => {
|
|
497
503
|
let { apiGatewayUrl: n } = e();
|
|
498
504
|
return i({
|
|
499
505
|
queryKey: [...l.paymentInstruments, t],
|
|
500
506
|
queryFn: async () => (await c("query SubPaymentInstruments($ownerId: ID) {\n subListPaymentInstruments(ownerId: $ownerId) {\n items {\n id label type status brand last4 expiryMonth expiryYear isDefault\n ownerId workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }", { ownerId: t }, n)).subListPaymentInstruments.items
|
|
501
507
|
});
|
|
502
|
-
},
|
|
508
|
+
}, ie = () => {
|
|
503
509
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
504
510
|
return r({
|
|
505
511
|
mutationFn: async (e) => (await c(`mutation SubCreatePaymentInstrument($input: SubCreatePaymentInstrumentInput!) {
|
|
@@ -509,7 +515,7 @@ var c = async (e, t, n) => {
|
|
|
509
515
|
t.invalidateQueries({ queryKey: l.paymentInstruments });
|
|
510
516
|
}
|
|
511
517
|
});
|
|
512
|
-
},
|
|
518
|
+
}, ae = () => {
|
|
513
519
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
514
520
|
return r({
|
|
515
521
|
mutationFn: async (e) => (await c("mutation SubRemovePaymentInstrument($id: ID!) {\n subRemovePaymentInstrument(id: $id)\n }", { id: e }, n)).subRemovePaymentInstrument,
|
|
@@ -517,33 +523,33 @@ var c = async (e, t, n) => {
|
|
|
517
523
|
t.invalidateQueries({ queryKey: l.paymentInstruments });
|
|
518
524
|
}
|
|
519
525
|
});
|
|
520
|
-
},
|
|
526
|
+
}, oe = (t) => {
|
|
521
527
|
let { apiGatewayUrl: n } = e();
|
|
522
528
|
return i({
|
|
523
529
|
queryKey: [...l.channels, t],
|
|
524
530
|
queryFn: async () => (await c("query SubChannels($ownerId: ID) {\n subListChannels(ownerId: $ownerId) {\n items {\n id label type status address ingestEnabled ownerId verifiedAt\n workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }", { ownerId: t }, n)).subListChannels.items
|
|
525
531
|
});
|
|
526
|
-
},
|
|
532
|
+
}, se = () => {
|
|
527
533
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
528
534
|
return r({
|
|
529
535
|
mutationFn: async (e) => (await c(`mutation SubCreateChannel($input: SubCreateChannelInput!) {
|
|
530
|
-
subCreateChannel(input: $input) { ${
|
|
536
|
+
subCreateChannel(input: $input) { ${b} }
|
|
531
537
|
}`, { input: e }, n)).subCreateChannel,
|
|
532
538
|
onSuccess: () => {
|
|
533
539
|
t.invalidateQueries({ queryKey: l.channels });
|
|
534
540
|
}
|
|
535
541
|
});
|
|
536
|
-
},
|
|
542
|
+
}, ce = () => {
|
|
537
543
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
538
544
|
return r({
|
|
539
545
|
mutationFn: async (e) => (await c(`mutation SubVerifyChannel($id: ID!) {
|
|
540
|
-
subVerifyChannel(id: $id) { ${
|
|
546
|
+
subVerifyChannel(id: $id) { ${b} }
|
|
541
547
|
}`, { id: e }, n)).subVerifyChannel,
|
|
542
548
|
onSuccess: () => {
|
|
543
549
|
t.invalidateQueries({ queryKey: l.channels });
|
|
544
550
|
}
|
|
545
551
|
});
|
|
546
|
-
},
|
|
552
|
+
}, le = (t = {}) => {
|
|
547
553
|
let { apiGatewayUrl: n } = e();
|
|
548
554
|
return i({
|
|
549
555
|
queryKey: [...l.agents, t],
|
|
@@ -558,7 +564,7 @@ var c = async (e, t, n) => {
|
|
|
558
564
|
ownerId: t.ownerId
|
|
559
565
|
}, n)).subListAgents.items
|
|
560
566
|
});
|
|
561
|
-
},
|
|
567
|
+
}, ue = (t) => {
|
|
562
568
|
let { apiGatewayUrl: n } = e();
|
|
563
569
|
return i({
|
|
564
570
|
queryKey: l.agent(t ?? ""),
|
|
@@ -566,11 +572,11 @@ var c = async (e, t, n) => {
|
|
|
566
572
|
queryFn: async () => (await c(`query SubAgent($id: ID!) {
|
|
567
573
|
subAgent(id: $id) {
|
|
568
574
|
${h}
|
|
569
|
-
policies { ${
|
|
575
|
+
policies { ${x} }
|
|
570
576
|
}
|
|
571
577
|
}`, { id: t }, n)).subAgent
|
|
572
578
|
});
|
|
573
|
-
},
|
|
579
|
+
}, de = () => {
|
|
574
580
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
575
581
|
return r({
|
|
576
582
|
mutationFn: async (e) => (await c(`mutation SubCreateAgent($input: SubCreateAgentInput!) {
|
|
@@ -580,7 +586,7 @@ var c = async (e, t, n) => {
|
|
|
580
586
|
t.invalidateQueries({ queryKey: l.agents });
|
|
581
587
|
}
|
|
582
588
|
});
|
|
583
|
-
},
|
|
589
|
+
}, fe = () => {
|
|
584
590
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
585
591
|
return r({
|
|
586
592
|
mutationFn: async ({ id: e, status: t }) => (await c(`mutation SubSetAgentStatus($id: ID!, $status: SubAgentStatus!) {
|
|
@@ -593,17 +599,17 @@ var c = async (e, t, n) => {
|
|
|
593
599
|
t.invalidateQueries({ queryKey: l.agents }), t.invalidateQueries({ queryKey: l.agent(e.id) });
|
|
594
600
|
}
|
|
595
601
|
});
|
|
596
|
-
},
|
|
602
|
+
}, pe = () => {
|
|
597
603
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
598
604
|
return r({
|
|
599
605
|
mutationFn: async (e) => (await c(`mutation SubCreatePolicy($input: SubCreatePolicyInput!) {
|
|
600
|
-
subCreatePolicy(input: $input) { ${
|
|
606
|
+
subCreatePolicy(input: $input) { ${x} }
|
|
601
607
|
}`, { input: e }, n)).subCreatePolicy,
|
|
602
608
|
onSuccess: (e) => {
|
|
603
609
|
t.invalidateQueries({ queryKey: l.agents }), t.invalidateQueries({ queryKey: l.agent(e.agentId) });
|
|
604
610
|
}
|
|
605
611
|
});
|
|
606
|
-
},
|
|
612
|
+
}, me = 100, he = (t = {}, n = {}) => {
|
|
607
613
|
let { apiGatewayUrl: r } = e();
|
|
608
614
|
return i({
|
|
609
615
|
queryKey: [...l.decisions, t],
|
|
@@ -616,10 +622,10 @@ var c = async (e, t, n) => {
|
|
|
616
622
|
}
|
|
617
623
|
}`, {
|
|
618
624
|
filter: t,
|
|
619
|
-
pagination: { limit:
|
|
625
|
+
pagination: { limit: me }
|
|
620
626
|
}, r)).subListDecisions
|
|
621
627
|
});
|
|
622
|
-
},
|
|
628
|
+
}, ge = (t) => {
|
|
623
629
|
let { apiGatewayUrl: n } = e();
|
|
624
630
|
return i({
|
|
625
631
|
queryKey: l.decision(t ?? ""),
|
|
@@ -631,7 +637,7 @@ var c = async (e, t, n) => {
|
|
|
631
637
|
});
|
|
632
638
|
}, Z = (e, t) => {
|
|
633
639
|
e.invalidateQueries({ queryKey: l.decisions }), e.invalidateQueries({ queryKey: l.renewals }), t.decisionId && e.invalidateQueries({ queryKey: l.decision(t.decisionId) }), t.agentId && (e.invalidateQueries({ queryKey: l.agent(t.agentId) }), e.invalidateQueries({ queryKey: l.agents })), t.relationshipId && (e.invalidateQueries({ queryKey: l.relationship(t.relationshipId) }), e.invalidateQueries({ queryKey: l.relationships }));
|
|
634
|
-
},
|
|
640
|
+
}, _e = () => {
|
|
635
641
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
636
642
|
return r({
|
|
637
643
|
mutationFn: async (e) => (await c("mutation SubRunAgent($id: ID!, $dryRun: Boolean) {\n subRunAgent(id: $id, dryRun: $dryRun) {\n runId agentId kind dryRun evaluated proposed flagged applied truncated\n invocationRef ranAt\n }\n }", {
|
|
@@ -640,7 +646,7 @@ var c = async (e, t, n) => {
|
|
|
640
646
|
}, n)).subRunAgent,
|
|
641
647
|
onSuccess: (e) => Z(t, { agentId: e.agentId })
|
|
642
648
|
});
|
|
643
|
-
},
|
|
649
|
+
}, ve = () => {
|
|
644
650
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
645
651
|
return r({
|
|
646
652
|
mutationFn: async (e) => (await c(`mutation SubApplyDecision($id: ID!) {
|
|
@@ -656,7 +662,7 @@ var c = async (e, t, n) => {
|
|
|
656
662
|
}),
|
|
657
663
|
onError: () => void t.invalidateQueries({ queryKey: l.decisions })
|
|
658
664
|
});
|
|
659
|
-
},
|
|
665
|
+
}, ye = () => {
|
|
660
666
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
661
667
|
return r({
|
|
662
668
|
mutationFn: async ({ id: e, reason: t }) => (await c(`mutation SubDismissDecision($id: ID!, $reason: String) {
|
|
@@ -670,14 +676,14 @@ var c = async (e, t, n) => {
|
|
|
670
676
|
agentId: e.agentId
|
|
671
677
|
})
|
|
672
678
|
});
|
|
673
|
-
},
|
|
679
|
+
}, be = "\n generatedAt openDecisions truncated\n totals { currency annualSavings fromDecisions fromBundles }\n groups { recommendation currency count annualSavings }\n bundles {\n id type key title currency keepRelationshipId dropRelationshipIds\n annualSpend annualSavings confidence rationale\n members {\n relationshipId label providerId providerName amount currency interval\n annualCost capabilities\n }\n }\n", xe = () => {
|
|
674
680
|
let { apiGatewayUrl: t } = e();
|
|
675
681
|
return i({
|
|
676
682
|
queryKey: l.savings,
|
|
677
683
|
retry: 1,
|
|
678
|
-
queryFn: async () => (await c(`query SubSavingsOverview { subSavingsOverview { ${
|
|
684
|
+
queryFn: async () => (await c(`query SubSavingsOverview { subSavingsOverview { ${be} } }`, {}, t)).subSavingsOverview
|
|
679
685
|
});
|
|
680
|
-
},
|
|
686
|
+
}, Se = () => {
|
|
681
687
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
682
688
|
return r({
|
|
683
689
|
mutationFn: async (e) => (await c("mutation SubConsolidateRelationships($input: SubConsolidateRelationshipsInput!) {\n subConsolidateRelationships(input: $input) {\n kept { id label status amount currency interval }\n cancelled { id label status }\n failed { relationshipId message }\n estimatedSavings currency\n }\n }", { input: e }, n)).subConsolidateRelationships,
|
|
@@ -686,7 +692,7 @@ var c = async (e, t, n) => {
|
|
|
686
692
|
for (let e of [r.keepRelationshipId, ...r.cancelRelationshipIds]) t.invalidateQueries({ queryKey: l.relationship(e) });
|
|
687
693
|
}
|
|
688
694
|
});
|
|
689
|
-
},
|
|
695
|
+
}, Ce = () => {
|
|
690
696
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
691
697
|
return r({
|
|
692
698
|
mutationFn: async ({ id: e, reason: t }) => (await c("mutation SubDismissBundle($id: ID!, $reason: String) {\n subDismissBundle(id: $id, reason: $reason)\n }", {
|
|
@@ -695,7 +701,7 @@ var c = async (e, t, n) => {
|
|
|
695
701
|
}, n)).subDismissBundle,
|
|
696
702
|
onSuccess: () => void t.invalidateQueries({ queryKey: l.savings })
|
|
697
703
|
});
|
|
698
|
-
},
|
|
704
|
+
}, we = (t) => {
|
|
699
705
|
let { apiGatewayUrl: n } = e();
|
|
700
706
|
return i({
|
|
701
707
|
queryKey: [...l.workflows, t],
|
|
@@ -703,7 +709,7 @@ var c = async (e, t, n) => {
|
|
|
703
709
|
subListWorkflows(status: $status) { items { ${_} } pageInfo { cursor hasMore } }
|
|
704
710
|
}`, { status: t }, n)).subListWorkflows.items
|
|
705
711
|
});
|
|
706
|
-
},
|
|
712
|
+
}, Te = () => {
|
|
707
713
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
708
714
|
return r({
|
|
709
715
|
mutationFn: async (e) => (await c(`mutation SubCreateWorkflow($input: SubCreateWorkflowInput!) {
|
|
@@ -713,7 +719,7 @@ var c = async (e, t, n) => {
|
|
|
713
719
|
t.invalidateQueries({ queryKey: l.workflows });
|
|
714
720
|
}
|
|
715
721
|
});
|
|
716
|
-
},
|
|
722
|
+
}, Ee = () => {
|
|
717
723
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
718
724
|
return r({
|
|
719
725
|
mutationFn: async (e) => (await c(`mutation SubActivateWorkflow($id: ID!) {
|
|
@@ -723,13 +729,41 @@ var c = async (e, t, n) => {
|
|
|
723
729
|
t.invalidateQueries({ queryKey: l.workflows });
|
|
724
730
|
}
|
|
725
731
|
});
|
|
726
|
-
},
|
|
732
|
+
}, De = (t) => {
|
|
733
|
+
let { apiGatewayUrl: n } = e();
|
|
734
|
+
return i({
|
|
735
|
+
queryKey: l.workflow(t ?? ""),
|
|
736
|
+
enabled: !!t,
|
|
737
|
+
queryFn: async () => (await c(`query SubWorkflow($id: ID!) {
|
|
738
|
+
subWorkflow(id: $id) { ${_} graph { ${v} } }
|
|
739
|
+
}`, { id: t }, n)).subWorkflow
|
|
740
|
+
});
|
|
741
|
+
}, Oe = () => {
|
|
742
|
+
let t = a(), { apiGatewayUrl: n } = e();
|
|
743
|
+
return r({
|
|
744
|
+
mutationFn: async ({ workflowId: e, input: t }) => (await c(`mutation SubSaveWorkflowGraph($workflowId: ID!, $input: SubSaveWorkflowGraphInput!) {
|
|
745
|
+
subSaveWorkflowGraph(workflowId: $workflowId, input: $input) { ${v} }
|
|
746
|
+
}`, {
|
|
747
|
+
workflowId: e,
|
|
748
|
+
input: t
|
|
749
|
+
}, n)).subSaveWorkflowGraph,
|
|
750
|
+
onSuccess: () => void t.invalidateQueries({ queryKey: l.workflows })
|
|
751
|
+
});
|
|
752
|
+
}, ke = () => {
|
|
753
|
+
let t = a(), { apiGatewayUrl: n } = e();
|
|
754
|
+
return r({
|
|
755
|
+
mutationFn: async (e) => (await c(`mutation SubPauseWorkflow($id: ID!) {
|
|
756
|
+
subPauseWorkflow(id: $id) { ${_} }
|
|
757
|
+
}`, { id: e }, n)).subPauseWorkflow,
|
|
758
|
+
onSuccess: () => void t.invalidateQueries({ queryKey: l.workflows })
|
|
759
|
+
});
|
|
760
|
+
}, Ae = (t = {}) => {
|
|
727
761
|
let { apiGatewayUrl: n } = e();
|
|
728
762
|
return i({
|
|
729
763
|
queryKey: [...l.adapterSubmissions, t],
|
|
730
764
|
queryFn: async () => (await c(`query SubAdapterSubmissions($status: SubSubmissionStatus, $pagination: PaginationInput) {
|
|
731
765
|
subListAdapterSubmissions(status: $status, pagination: $pagination) {
|
|
732
|
-
items { ${
|
|
766
|
+
items { ${S} }
|
|
733
767
|
pageInfo { cursor hasMore }
|
|
734
768
|
}
|
|
735
769
|
}`, {
|
|
@@ -740,11 +774,11 @@ var c = async (e, t, n) => {
|
|
|
740
774
|
}
|
|
741
775
|
}, n)).subListAdapterSubmissions
|
|
742
776
|
});
|
|
743
|
-
},
|
|
777
|
+
}, je = () => {
|
|
744
778
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
745
779
|
return r({
|
|
746
780
|
mutationFn: async ({ id: e, notes: t }) => (await c(`mutation SubApproveAdapter($id: ID!, $notes: String) {
|
|
747
|
-
subApproveAdapter(id: $id, notes: $notes) { ${
|
|
781
|
+
subApproveAdapter(id: $id, notes: $notes) { ${S} }
|
|
748
782
|
}`, {
|
|
749
783
|
id: e,
|
|
750
784
|
notes: t
|
|
@@ -753,11 +787,11 @@ var c = async (e, t, n) => {
|
|
|
753
787
|
t.invalidateQueries({ queryKey: l.adapterSubmissions });
|
|
754
788
|
}
|
|
755
789
|
});
|
|
756
|
-
},
|
|
790
|
+
}, Me = () => {
|
|
757
791
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
758
792
|
return r({
|
|
759
793
|
mutationFn: async ({ id: e, reason: t }) => (await c(`mutation SubRejectAdapter($id: ID!, $reason: String!) {
|
|
760
|
-
subRejectAdapter(id: $id, reason: $reason) { ${
|
|
794
|
+
subRejectAdapter(id: $id, reason: $reason) { ${S} }
|
|
761
795
|
}`, {
|
|
762
796
|
id: e,
|
|
763
797
|
reason: t
|
|
@@ -766,13 +800,13 @@ var c = async (e, t, n) => {
|
|
|
766
800
|
t.invalidateQueries({ queryKey: l.adapterSubmissions });
|
|
767
801
|
}
|
|
768
802
|
});
|
|
769
|
-
},
|
|
803
|
+
}, Ne = (t = {}) => {
|
|
770
804
|
let { apiGatewayUrl: n } = e();
|
|
771
805
|
return i({
|
|
772
806
|
queryKey: [...l.marketplaceReports, t],
|
|
773
807
|
queryFn: async () => (await c(`query SubMarketplaceReports($status: SubReportStatus, $pagination: PaginationInput) {
|
|
774
808
|
subListMarketplaceReports(status: $status, pagination: $pagination) {
|
|
775
|
-
items { ${
|
|
809
|
+
items { ${C} }
|
|
776
810
|
pageInfo { cursor hasMore }
|
|
777
811
|
}
|
|
778
812
|
}`, {
|
|
@@ -783,11 +817,11 @@ var c = async (e, t, n) => {
|
|
|
783
817
|
}
|
|
784
818
|
}, n)).subListMarketplaceReports
|
|
785
819
|
});
|
|
786
|
-
},
|
|
820
|
+
}, Pe = () => {
|
|
787
821
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
788
822
|
return r({
|
|
789
823
|
mutationFn: async ({ id: e, action: t, reason: r }) => (await c(`mutation SubModerateListing($id: ID!, $action: SubModerationAction!, $reason: String!) {
|
|
790
|
-
subModerateListing(id: $id, action: $action, reason: $reason) { ${
|
|
824
|
+
subModerateListing(id: $id, action: $action, reason: $reason) { ${C} }
|
|
791
825
|
}`, {
|
|
792
826
|
id: e,
|
|
793
827
|
action: t,
|
|
@@ -797,14 +831,14 @@ var c = async (e, t, n) => {
|
|
|
797
831
|
t.invalidateQueries({ queryKey: l.marketplaceReports });
|
|
798
832
|
}
|
|
799
833
|
});
|
|
800
|
-
},
|
|
834
|
+
}, Q = "monthlyBudget monthlySpend variance utilizationPct overBudget", $ = `
|
|
801
835
|
currency generatedAt monthlySpend annualSpend activeRelationshipCount
|
|
802
836
|
previousMonthlySpend monthlySpendChangePct
|
|
803
837
|
trend { at monthlySpend }
|
|
804
|
-
budget { ${
|
|
838
|
+
budget { ${Q} }
|
|
805
839
|
departments {
|
|
806
840
|
department monthlySpend annualSpend relationshipCount sharePct
|
|
807
|
-
budget { ${
|
|
841
|
+
budget { ${Q} }
|
|
808
842
|
}
|
|
809
843
|
shadowIt {
|
|
810
844
|
relationshipId label providerId providerName department discoverySource
|
|
@@ -830,21 +864,21 @@ var c = async (e, t, n) => {
|
|
|
830
864
|
utilizationPct monthlySpend annualCost renewsAt
|
|
831
865
|
}
|
|
832
866
|
truncated
|
|
833
|
-
`,
|
|
867
|
+
`, Fe = (t) => {
|
|
834
868
|
let { apiGatewayUrl: n } = e();
|
|
835
869
|
return i({
|
|
836
870
|
queryKey: [...l.enterpriseSpend, t ?? null],
|
|
837
871
|
queryFn: async () => (await c(`query SubEnterpriseSpendDashboard($currency: String) {
|
|
838
|
-
subEnterpriseSpendDashboard(currency: $currency) { ${
|
|
872
|
+
subEnterpriseSpendDashboard(currency: $currency) { ${$} }
|
|
839
873
|
}`, { currency: t || null }, n)).subEnterpriseSpendDashboard
|
|
840
874
|
});
|
|
841
|
-
},
|
|
875
|
+
}, Ie = () => {
|
|
842
876
|
let { apiGatewayUrl: t } = e();
|
|
843
877
|
return i({
|
|
844
878
|
queryKey: l.spendBudgets,
|
|
845
879
|
queryFn: async () => (await c("query SubListSpendBudgets {\n subListSpendBudgets { id department currency monthlyAmount updatedAt }\n }", {}, t)).subListSpendBudgets
|
|
846
880
|
});
|
|
847
|
-
},
|
|
881
|
+
}, Le = () => {
|
|
848
882
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
849
883
|
return r({
|
|
850
884
|
mutationFn: async (e) => (await c("mutation SubSetSpendBudget($input: SubSetSpendBudgetInput!) {\n subSetSpendBudget(input: $input) { id department currency monthlyAmount updatedAt }\n }", { input: e }, n)).subSetSpendBudget,
|
|
@@ -852,7 +886,7 @@ var c = async (e, t, n) => {
|
|
|
852
886
|
t.invalidateQueries({ queryKey: l.spendBudgets }), t.invalidateQueries({ queryKey: l.enterpriseSpend });
|
|
853
887
|
}
|
|
854
888
|
});
|
|
855
|
-
},
|
|
889
|
+
}, Re = "\n currency generatedAt from to trialWindowDays statuses totalAmount renewalCount\n relationshipCount truncated\n otherCurrencyTotals { currency amount renewalCount }\n months {\n key year month startsAt endsAt amount renewalCount\n otherCurrencyTotals { currency amount renewalCount }\n items {\n relationshipId label providerId providerName kind status interval currency\n renewsAt daysRemaining amount occurrenceCount autoRenew healthScore\n reminderId reminderAt openDecisionId openDecisionKind needsReview\n }\n }\n trialsEndingSoon {\n relationshipId label providerId providerName trialEndsAt daysRemaining amount\n currency interval autoRenew reminderId reminderAt openDecisionId openDecisionKind\n }\n", ze = (t = {}) => {
|
|
856
890
|
let { apiGatewayUrl: n } = e();
|
|
857
891
|
return i({
|
|
858
892
|
queryKey: [...l.renewalForecast, t],
|
|
@@ -869,7 +903,7 @@ var c = async (e, t, n) => {
|
|
|
869
903
|
statuses: $statuses
|
|
870
904
|
trialWindowDays: $trialWindowDays
|
|
871
905
|
currency: $currency
|
|
872
|
-
) { ${
|
|
906
|
+
) { ${Re} }
|
|
873
907
|
}`, {
|
|
874
908
|
from: t.from ?? null,
|
|
875
909
|
to: t.to ?? null,
|
|
@@ -878,7 +912,7 @@ var c = async (e, t, n) => {
|
|
|
878
912
|
currency: t.currency || null
|
|
879
913
|
}, n)).subRenewalForecast
|
|
880
914
|
});
|
|
881
|
-
},
|
|
915
|
+
}, Be = () => {
|
|
882
916
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
883
917
|
return r({
|
|
884
918
|
mutationFn: async (e) => (await c("mutation SubSetRenewalReminder($relationshipId: ID!, $remindAt: DateTime, $note: String) {\n subSetRenewalReminder(relationshipId: $relationshipId, remindAt: $remindAt, note: $note) {\n id relationshipId eventType occursAt amount currency detail notified\n workspaceId createdAt updatedAt\n }\n }", {
|
|
@@ -890,7 +924,7 @@ var c = async (e, t, n) => {
|
|
|
890
924
|
t.invalidateQueries({ queryKey: l.renewals });
|
|
891
925
|
}
|
|
892
926
|
});
|
|
893
|
-
},
|
|
927
|
+
}, Ve = () => {
|
|
894
928
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
895
929
|
return r({
|
|
896
930
|
mutationFn: async (e) => (await c("mutation SubCancelRenewalReminder($id: ID!) {\n subCancelRenewalReminder(id: $id)\n }", { id: e }, n)).subCancelRenewalReminder,
|
|
@@ -900,6 +934,6 @@ var c = async (e, t, n) => {
|
|
|
900
934
|
});
|
|
901
935
|
};
|
|
902
936
|
//#endregion
|
|
903
|
-
export { c as subQuery,
|
|
937
|
+
export { c as subQuery, Ee as useActivateWorkflow, Ae as useAdapterSubmissions, ue as useAgent, le as useAgents, j as useAllAssets, ve as useApplyDecision, je as useApproveAdapter, B as useArchiveProvider, U as useBenchmarkDataPoints, D as useCancelRelationship, Ve as useCancelRenewalReminder, oe as useChannels, Se as useConsolidateRelationships, de as useCreateAgent, M as useCreateAsset, se as useCreateChannel, A as useCreateEntitlement, Y as useCreateInvoice, ie as useCreatePaymentInstrument, H as useCreatePlan, pe as useCreatePolicy, R as useCreateProvider, T as useCreateRelationship, Te as useCreateWorkflow, ge as useDecision, he as useDecisions, Ce as useDismissBundle, ye as useDismissDecision, Fe as useEnterpriseSpendDashboard, F as useFileDownloadUrl, W as useInboxMessages, K as useIngestMessage, q as useInvoices, J as useMarkInvoicePaid, G as useMarkMessageRead, Ne as useMarketplaceReports, Pe as useModerateListing, ke as usePauseWorkflow, X as usePaymentInstruments, V as usePlans, L as useProvider, I as useProviders, Me as useRejectAdapter, w as useRelationship, re as useRelationships, ae as useRemovePaymentInstrument, k as useRenewalEvents, ze as useRenewalForecast, _e as useRunAgent, Oe as useSaveWorkflowGraph, xe as useSavingsOverview, fe as useSetAgentStatus, Be as useSetRenewalReminder, Le as useSetSpendBudget, Ie as useSpendBudgets, E as useTransitionRelationship, z as useUpdateProvider, O as useUpdateRelationship, P as useUploadFile, ce as useVerifyChannel, De as useWorkflow, we as useWorkflows };
|
|
904
938
|
|
|
905
939
|
//# sourceMappingURL=useSubscriberBotApi.js.map
|