@burdenoff/microfe-subscriberbot 2026.1030.6 → 2026.1030.7
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/subscriberbot/SubscriberBotRoutes.d.ts.map +1 -1
- package/dist/subscriberbot/SubscriberBotRoutes.js +10 -6
- package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
- package/dist/subscriberbot/hooks/index.d.ts +1 -1
- package/dist/subscriberbot/hooks/index.d.ts.map +1 -1
- package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts +4 -1
- package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts.map +1 -1
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js +137 -72
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts +13 -0
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js +703 -0
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js.map +1 -0
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +276 -262
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +65 -45
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -1
- package/dist/subscriberbot/types/index.d.ts +144 -0
- package/dist/subscriberbot/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -69,8 +69,18 @@ var c = async (e, t, n) => {
|
|
|
69
69
|
"subscriberbot",
|
|
70
70
|
"admin",
|
|
71
71
|
"marketplace-reports"
|
|
72
|
+
],
|
|
73
|
+
enterpriseSpend: [
|
|
74
|
+
"subscriberbot",
|
|
75
|
+
"enterprise",
|
|
76
|
+
"spend"
|
|
77
|
+
],
|
|
78
|
+
spendBudgets: [
|
|
79
|
+
"subscriberbot",
|
|
80
|
+
"enterprise",
|
|
81
|
+
"budgets"
|
|
72
82
|
]
|
|
73
|
-
}, 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 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", v = "\n id name type relationshipId secretRef expiresAt workspaceId createdAt\n updatedAt file { id }\n",
|
|
83
|
+
}, 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", v = "\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", y = "\n id label type status address ingestEnabled ownerId verifiedAt workspaceId\n createdAt updatedAt\n", b = "\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", x = "\n id workspaceId adapterId submitterWorkspaceId status notes createdAt updatedAt\n", S = "\n id workspaceId listingId reporterWorkspaceId reason status resolutionReason\n createdAt updatedAt\n", C = (t = {}) => {
|
|
74
84
|
let { apiGatewayUrl: n } = e();
|
|
75
85
|
return i({
|
|
76
86
|
queryKey: [...l.relationships, t],
|
|
@@ -109,7 +119,7 @@ var c = async (e, t, n) => {
|
|
|
109
119
|
}
|
|
110
120
|
}, n)).subListRelationships
|
|
111
121
|
});
|
|
112
|
-
},
|
|
122
|
+
}, w = (t) => {
|
|
113
123
|
let { apiGatewayUrl: n } = e();
|
|
114
124
|
return i({
|
|
115
125
|
queryKey: l.relationship(t ?? ""),
|
|
@@ -134,7 +144,7 @@ var c = async (e, t, n) => {
|
|
|
134
144
|
}
|
|
135
145
|
}`, { id: t }, n)).subRelationship
|
|
136
146
|
});
|
|
137
|
-
},
|
|
147
|
+
}, T = () => {
|
|
138
148
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
139
149
|
return r({
|
|
140
150
|
mutationFn: async (e) => (await c(`mutation SubCreateRelationship($input: SubCreateRelationshipInput!) {
|
|
@@ -144,7 +154,7 @@ var c = async (e, t, n) => {
|
|
|
144
154
|
t.invalidateQueries({ queryKey: l.relationships });
|
|
145
155
|
}
|
|
146
156
|
});
|
|
147
|
-
},
|
|
157
|
+
}, E = () => {
|
|
148
158
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
149
159
|
return r({
|
|
150
160
|
mutationFn: async ({ id: e, status: t }) => (await c(`mutation SubTransitionRelationship($id: ID!, $status: SubRelationshipStatus!) {
|
|
@@ -157,7 +167,7 @@ var c = async (e, t, n) => {
|
|
|
157
167
|
t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.relationship(e.id) });
|
|
158
168
|
}
|
|
159
169
|
});
|
|
160
|
-
},
|
|
170
|
+
}, D = () => {
|
|
161
171
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
162
172
|
return r({
|
|
163
173
|
mutationFn: async (e) => (await c(`mutation SubCancelRelationship($id: ID!) {
|
|
@@ -167,7 +177,7 @@ var c = async (e, t, n) => {
|
|
|
167
177
|
t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.relationship(e.id) });
|
|
168
178
|
}
|
|
169
179
|
});
|
|
170
|
-
},
|
|
180
|
+
}, O = () => {
|
|
171
181
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
172
182
|
return r({
|
|
173
183
|
mutationFn: async ({ id: e, input: t }) => (await c(`mutation SubUpdateRelationship($id: ID!, $input: SubUpdateRelationshipInput!) {
|
|
@@ -180,7 +190,7 @@ var c = async (e, t, n) => {
|
|
|
180
190
|
t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.relationship(e.id) });
|
|
181
191
|
}
|
|
182
192
|
});
|
|
183
|
-
},
|
|
193
|
+
}, k = (t = {}) => {
|
|
184
194
|
let { apiGatewayUrl: n } = e();
|
|
185
195
|
return i({
|
|
186
196
|
queryKey: [...l.renewals, t],
|
|
@@ -189,7 +199,7 @@ var c = async (e, t, n) => {
|
|
|
189
199
|
upcomingOnly: t.upcomingOnly
|
|
190
200
|
}, n)).subListRenewalEvents.items
|
|
191
201
|
});
|
|
192
|
-
},
|
|
202
|
+
}, A = () => {
|
|
193
203
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
194
204
|
return r({
|
|
195
205
|
mutationFn: async (e) => (await c(`mutation SubCreateEntitlement($input: SubCreateEntitlementInput!) {
|
|
@@ -199,7 +209,7 @@ var c = async (e, t, n) => {
|
|
|
199
209
|
t.invalidateQueries({ queryKey: l.entitlements }), t.invalidateQueries({ queryKey: l.relationship(e.relationshipId) });
|
|
200
210
|
}
|
|
201
211
|
});
|
|
202
|
-
},
|
|
212
|
+
}, j = () => {
|
|
203
213
|
let { apiGatewayUrl: t } = e();
|
|
204
214
|
return i({
|
|
205
215
|
queryKey: [...l.assets, "all"],
|
|
@@ -207,7 +217,7 @@ var c = async (e, t, n) => {
|
|
|
207
217
|
subListAssets { items { ${v} } pageInfo { cursor hasMore } }
|
|
208
218
|
}`, {}, t)).subListAssets.items
|
|
209
219
|
});
|
|
210
|
-
},
|
|
220
|
+
}, M = () => {
|
|
211
221
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
212
222
|
return r({
|
|
213
223
|
mutationFn: async (e) => (await c(`mutation SubCreateAsset($input: SubCreateAssetInput!) {
|
|
@@ -217,13 +227,13 @@ var c = async (e, t, n) => {
|
|
|
217
227
|
t.invalidateQueries({ queryKey: l.assets }), t.invalidateQueries({ queryKey: l.relationship(e.relationshipId) });
|
|
218
228
|
}
|
|
219
229
|
});
|
|
220
|
-
},
|
|
230
|
+
}, N = "/SubscriberBot/Assets", P = () => {
|
|
221
231
|
let { apiGatewayUrl: r } = e(), [i, a] = n(0), [o, s] = n(!1);
|
|
222
232
|
return {
|
|
223
233
|
uploadFile: t(async (e) => {
|
|
224
234
|
s(!0), a(0);
|
|
225
235
|
try {
|
|
226
|
-
let t = (await c("mutation SubEnsureFolder($path: String!) {\n ensureFolderByPath(path: $path) { id }\n }", { path:
|
|
236
|
+
let t = (await c("mutation SubEnsureFolder($path: String!) {\n ensureFolderByPath(path: $path) { id }\n }", { path: N }, r)).ensureFolderByPath?.id;
|
|
227
237
|
if (!t) throw Error("Could not resolve the upload folder.");
|
|
228
238
|
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: {
|
|
229
239
|
fileName: e.name,
|
|
@@ -258,13 +268,13 @@ var c = async (e, t, n) => {
|
|
|
258
268
|
progress: i,
|
|
259
269
|
isUploading: o
|
|
260
270
|
};
|
|
261
|
-
},
|
|
271
|
+
}, F = () => {
|
|
262
272
|
let { apiGatewayUrl: n } = e();
|
|
263
273
|
return t(async (e) => (await c("query SubFileDownloadUrl($id: ID!, $expiresIn: Int) {\n getFileDownloadUrl(id: $id, expiresIn: $expiresIn)\n }", {
|
|
264
274
|
id: e,
|
|
265
275
|
expiresIn: 21600
|
|
266
276
|
}, n)).getFileDownloadUrl, [n]);
|
|
267
|
-
},
|
|
277
|
+
}, I = (t = {}) => {
|
|
268
278
|
let { apiGatewayUrl: n } = e();
|
|
269
279
|
return i({
|
|
270
280
|
queryKey: [...l.providers, t],
|
|
@@ -293,7 +303,7 @@ var c = async (e, t, n) => {
|
|
|
293
303
|
}
|
|
294
304
|
}, n)).subListProviders
|
|
295
305
|
});
|
|
296
|
-
},
|
|
306
|
+
}, L = (t) => {
|
|
297
307
|
let { apiGatewayUrl: n } = e();
|
|
298
308
|
return i({
|
|
299
309
|
queryKey: l.provider(t ?? ""),
|
|
@@ -305,7 +315,7 @@ var c = async (e, t, n) => {
|
|
|
305
315
|
}
|
|
306
316
|
}`, { id: t }, n)).subProvider
|
|
307
317
|
});
|
|
308
|
-
},
|
|
318
|
+
}, R = () => {
|
|
309
319
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
310
320
|
return r({
|
|
311
321
|
mutationFn: async (e) => (await c(`mutation SubCreateProvider($input: SubCreateProviderInput!) {
|
|
@@ -315,7 +325,7 @@ var c = async (e, t, n) => {
|
|
|
315
325
|
t.invalidateQueries({ queryKey: l.providers });
|
|
316
326
|
}
|
|
317
327
|
});
|
|
318
|
-
},
|
|
328
|
+
}, z = () => {
|
|
319
329
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
320
330
|
return r({
|
|
321
331
|
mutationFn: async ({ id: e, input: t }) => (await c(`mutation SubUpdateProvider($id: ID!, $input: SubUpdateProviderInput!) {
|
|
@@ -328,7 +338,7 @@ var c = async (e, t, n) => {
|
|
|
328
338
|
t.invalidateQueries({ queryKey: l.providers }), t.invalidateQueries({ queryKey: l.provider(e.id) });
|
|
329
339
|
}
|
|
330
340
|
});
|
|
331
|
-
},
|
|
341
|
+
}, B = () => {
|
|
332
342
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
333
343
|
return r({
|
|
334
344
|
mutationFn: async (e) => (await c("mutation SubArchiveProvider($id: ID!) {\n subArchiveProvider(id: $id)\n }", { id: e }, n)).subArchiveProvider,
|
|
@@ -336,7 +346,7 @@ var c = async (e, t, n) => {
|
|
|
336
346
|
t.invalidateQueries({ queryKey: l.providers });
|
|
337
347
|
}
|
|
338
348
|
});
|
|
339
|
-
},
|
|
349
|
+
}, V = (t) => {
|
|
340
350
|
let { apiGatewayUrl: n } = e();
|
|
341
351
|
return i({
|
|
342
352
|
queryKey: [...l.plans, t],
|
|
@@ -345,7 +355,7 @@ var c = async (e, t, n) => {
|
|
|
345
355
|
subListPlans(providerId: $providerId) { items { ${d} } pageInfo { cursor hasMore } }
|
|
346
356
|
}`, { providerId: t }, n)).subListPlans.items
|
|
347
357
|
});
|
|
348
|
-
},
|
|
358
|
+
}, H = () => {
|
|
349
359
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
350
360
|
return r({
|
|
351
361
|
mutationFn: async (e) => (await c(`mutation SubCreatePlan($input: SubCreatePlanInput!) {
|
|
@@ -355,7 +365,7 @@ var c = async (e, t, n) => {
|
|
|
355
365
|
t.invalidateQueries({ queryKey: l.plans }), t.invalidateQueries({ queryKey: l.provider(e.providerId) });
|
|
356
366
|
}
|
|
357
367
|
});
|
|
358
|
-
},
|
|
368
|
+
}, U = (t) => {
|
|
359
369
|
let { apiGatewayUrl: n } = e();
|
|
360
370
|
return i({
|
|
361
371
|
queryKey: l.benchmarks(t ?? ""),
|
|
@@ -367,7 +377,7 @@ var c = async (e, t, n) => {
|
|
|
367
377
|
$pagination: PaginationInput
|
|
368
378
|
) {
|
|
369
379
|
subListBenchmarkDataPoints(filter: $filter, pagination: $pagination) {
|
|
370
|
-
items { ${
|
|
380
|
+
items { ${ne} }
|
|
371
381
|
pageInfo { cursor hasMore }
|
|
372
382
|
}
|
|
373
383
|
}`, {
|
|
@@ -379,7 +389,7 @@ var c = async (e, t, n) => {
|
|
|
379
389
|
}, n)).subListBenchmarkDataPoints.items;
|
|
380
390
|
}
|
|
381
391
|
});
|
|
382
|
-
},
|
|
392
|
+
}, W = (t = {}) => {
|
|
383
393
|
let { apiGatewayUrl: n } = e();
|
|
384
394
|
return i({
|
|
385
395
|
queryKey: [...l.inbox, t],
|
|
@@ -411,7 +421,7 @@ var c = async (e, t, n) => {
|
|
|
411
421
|
}
|
|
412
422
|
}, n)).subListInboxMessages
|
|
413
423
|
});
|
|
414
|
-
},
|
|
424
|
+
}, G = () => {
|
|
415
425
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
416
426
|
return r({
|
|
417
427
|
mutationFn: async (e) => (await c(`mutation SubMarkMessageRead($id: ID!) {
|
|
@@ -421,7 +431,7 @@ var c = async (e, t, n) => {
|
|
|
421
431
|
t.invalidateQueries({ queryKey: l.inbox });
|
|
422
432
|
}
|
|
423
433
|
});
|
|
424
|
-
},
|
|
434
|
+
}, K = () => {
|
|
425
435
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
426
436
|
return r({
|
|
427
437
|
mutationFn: async (e) => (await c(`mutation SubIngestMessage($input: SubIngestMessageInput!) {
|
|
@@ -431,7 +441,7 @@ var c = async (e, t, n) => {
|
|
|
431
441
|
t.invalidateQueries({ queryKey: l.inbox });
|
|
432
442
|
}
|
|
433
443
|
});
|
|
434
|
-
},
|
|
444
|
+
}, q = (t = {}, n = {}) => {
|
|
435
445
|
let { apiGatewayUrl: r } = e();
|
|
436
446
|
return i({
|
|
437
447
|
queryKey: [...l.invoices, t],
|
|
@@ -458,7 +468,7 @@ var c = async (e, t, n) => {
|
|
|
458
468
|
}
|
|
459
469
|
}, r)).subListInvoices
|
|
460
470
|
});
|
|
461
|
-
},
|
|
471
|
+
}, J = () => {
|
|
462
472
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
463
473
|
return r({
|
|
464
474
|
mutationFn: async (e) => (await c(`mutation SubMarkInvoicePaid($id: ID!) {
|
|
@@ -468,7 +478,7 @@ var c = async (e, t, n) => {
|
|
|
468
478
|
t.invalidateQueries({ queryKey: l.invoices });
|
|
469
479
|
}
|
|
470
480
|
});
|
|
471
|
-
},
|
|
481
|
+
}, Y = () => {
|
|
472
482
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
473
483
|
return r({
|
|
474
484
|
mutationFn: async (e) => (await c(`mutation SubCreateInvoice($input: SubCreateInvoiceInput!) {
|
|
@@ -478,23 +488,23 @@ var c = async (e, t, n) => {
|
|
|
478
488
|
t.invalidateQueries({ queryKey: l.invoices });
|
|
479
489
|
}
|
|
480
490
|
});
|
|
481
|
-
},
|
|
491
|
+
}, X = (t) => {
|
|
482
492
|
let { apiGatewayUrl: n } = e();
|
|
483
493
|
return i({
|
|
484
494
|
queryKey: [...l.paymentInstruments, t],
|
|
485
495
|
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
|
|
486
496
|
});
|
|
487
|
-
},
|
|
497
|
+
}, re = () => {
|
|
488
498
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
489
499
|
return r({
|
|
490
500
|
mutationFn: async (e) => (await c(`mutation SubCreatePaymentInstrument($input: SubCreatePaymentInstrumentInput!) {
|
|
491
|
-
subCreatePaymentInstrument(input: $input) { ${
|
|
501
|
+
subCreatePaymentInstrument(input: $input) { ${te} }
|
|
492
502
|
}`, { input: e }, n)).subCreatePaymentInstrument,
|
|
493
503
|
onSuccess: () => {
|
|
494
504
|
t.invalidateQueries({ queryKey: l.paymentInstruments });
|
|
495
505
|
}
|
|
496
506
|
});
|
|
497
|
-
},
|
|
507
|
+
}, ie = () => {
|
|
498
508
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
499
509
|
return r({
|
|
500
510
|
mutationFn: async (e) => (await c("mutation SubRemovePaymentInstrument($id: ID!) {\n subRemovePaymentInstrument(id: $id)\n }", { id: e }, n)).subRemovePaymentInstrument,
|
|
@@ -502,33 +512,33 @@ var c = async (e, t, n) => {
|
|
|
502
512
|
t.invalidateQueries({ queryKey: l.paymentInstruments });
|
|
503
513
|
}
|
|
504
514
|
});
|
|
505
|
-
},
|
|
515
|
+
}, ae = (t) => {
|
|
506
516
|
let { apiGatewayUrl: n } = e();
|
|
507
517
|
return i({
|
|
508
518
|
queryKey: [...l.channels, t],
|
|
509
519
|
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
|
|
510
520
|
});
|
|
511
|
-
},
|
|
521
|
+
}, oe = () => {
|
|
512
522
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
513
523
|
return r({
|
|
514
524
|
mutationFn: async (e) => (await c(`mutation SubCreateChannel($input: SubCreateChannelInput!) {
|
|
515
|
-
subCreateChannel(input: $input) { ${
|
|
525
|
+
subCreateChannel(input: $input) { ${y} }
|
|
516
526
|
}`, { input: e }, n)).subCreateChannel,
|
|
517
527
|
onSuccess: () => {
|
|
518
528
|
t.invalidateQueries({ queryKey: l.channels });
|
|
519
529
|
}
|
|
520
530
|
});
|
|
521
|
-
},
|
|
531
|
+
}, se = () => {
|
|
522
532
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
523
533
|
return r({
|
|
524
534
|
mutationFn: async (e) => (await c(`mutation SubVerifyChannel($id: ID!) {
|
|
525
|
-
subVerifyChannel(id: $id) { ${
|
|
535
|
+
subVerifyChannel(id: $id) { ${y} }
|
|
526
536
|
}`, { id: e }, n)).subVerifyChannel,
|
|
527
537
|
onSuccess: () => {
|
|
528
538
|
t.invalidateQueries({ queryKey: l.channels });
|
|
529
539
|
}
|
|
530
540
|
});
|
|
531
|
-
},
|
|
541
|
+
}, ce = (t = {}) => {
|
|
532
542
|
let { apiGatewayUrl: n } = e();
|
|
533
543
|
return i({
|
|
534
544
|
queryKey: [...l.agents, t],
|
|
@@ -543,7 +553,7 @@ var c = async (e, t, n) => {
|
|
|
543
553
|
ownerId: t.ownerId
|
|
544
554
|
}, n)).subListAgents.items
|
|
545
555
|
});
|
|
546
|
-
},
|
|
556
|
+
}, le = (t) => {
|
|
547
557
|
let { apiGatewayUrl: n } = e();
|
|
548
558
|
return i({
|
|
549
559
|
queryKey: l.agent(t ?? ""),
|
|
@@ -551,11 +561,11 @@ var c = async (e, t, n) => {
|
|
|
551
561
|
queryFn: async () => (await c(`query SubAgent($id: ID!) {
|
|
552
562
|
subAgent(id: $id) {
|
|
553
563
|
${h}
|
|
554
|
-
policies { ${
|
|
564
|
+
policies { ${b} }
|
|
555
565
|
}
|
|
556
566
|
}`, { id: t }, n)).subAgent
|
|
557
567
|
});
|
|
558
|
-
},
|
|
568
|
+
}, ue = () => {
|
|
559
569
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
560
570
|
return r({
|
|
561
571
|
mutationFn: async (e) => (await c(`mutation SubCreateAgent($input: SubCreateAgentInput!) {
|
|
@@ -565,7 +575,7 @@ var c = async (e, t, n) => {
|
|
|
565
575
|
t.invalidateQueries({ queryKey: l.agents });
|
|
566
576
|
}
|
|
567
577
|
});
|
|
568
|
-
},
|
|
578
|
+
}, de = () => {
|
|
569
579
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
570
580
|
return r({
|
|
571
581
|
mutationFn: async ({ id: e, status: t }) => (await c(`mutation SubSetAgentStatus($id: ID!, $status: SubAgentStatus!) {
|
|
@@ -578,17 +588,17 @@ var c = async (e, t, n) => {
|
|
|
578
588
|
t.invalidateQueries({ queryKey: l.agents }), t.invalidateQueries({ queryKey: l.agent(e.id) });
|
|
579
589
|
}
|
|
580
590
|
});
|
|
581
|
-
},
|
|
591
|
+
}, fe = () => {
|
|
582
592
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
583
593
|
return r({
|
|
584
594
|
mutationFn: async (e) => (await c(`mutation SubCreatePolicy($input: SubCreatePolicyInput!) {
|
|
585
|
-
subCreatePolicy(input: $input) { ${
|
|
595
|
+
subCreatePolicy(input: $input) { ${b} }
|
|
586
596
|
}`, { input: e }, n)).subCreatePolicy,
|
|
587
597
|
onSuccess: (e) => {
|
|
588
598
|
t.invalidateQueries({ queryKey: l.agents }), t.invalidateQueries({ queryKey: l.agent(e.agentId) });
|
|
589
599
|
}
|
|
590
600
|
});
|
|
591
|
-
},
|
|
601
|
+
}, pe = 100, me = (t = {}, n = {}) => {
|
|
592
602
|
let { apiGatewayUrl: r } = e();
|
|
593
603
|
return i({
|
|
594
604
|
queryKey: [...l.decisions, t],
|
|
@@ -601,10 +611,10 @@ var c = async (e, t, n) => {
|
|
|
601
611
|
}
|
|
602
612
|
}`, {
|
|
603
613
|
filter: t,
|
|
604
|
-
pagination: { limit:
|
|
614
|
+
pagination: { limit: pe }
|
|
605
615
|
}, r)).subListDecisions
|
|
606
616
|
});
|
|
607
|
-
},
|
|
617
|
+
}, he = (t) => {
|
|
608
618
|
let { apiGatewayUrl: n } = e();
|
|
609
619
|
return i({
|
|
610
620
|
queryKey: l.decision(t ?? ""),
|
|
@@ -614,18 +624,18 @@ var c = async (e, t, n) => {
|
|
|
614
624
|
subDecision(id: $id) { ${g} }
|
|
615
625
|
}`, { id: t }, n)).subDecision
|
|
616
626
|
});
|
|
617
|
-
},
|
|
627
|
+
}, Z = (e, t) => {
|
|
618
628
|
e.invalidateQueries({ queryKey: l.decisions }), 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 }));
|
|
619
|
-
},
|
|
629
|
+
}, ge = () => {
|
|
620
630
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
621
631
|
return r({
|
|
622
632
|
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 }", {
|
|
623
633
|
id: e,
|
|
624
634
|
dryRun: !0
|
|
625
635
|
}, n)).subRunAgent,
|
|
626
|
-
onSuccess: (e) =>
|
|
636
|
+
onSuccess: (e) => Z(t, { agentId: e.agentId })
|
|
627
637
|
});
|
|
628
|
-
},
|
|
638
|
+
}, _e = () => {
|
|
629
639
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
630
640
|
return r({
|
|
631
641
|
mutationFn: async (e) => (await c(`mutation SubApplyDecision($id: ID!) {
|
|
@@ -634,14 +644,14 @@ var c = async (e, t, n) => {
|
|
|
634
644
|
relationship { id label status }
|
|
635
645
|
}
|
|
636
646
|
}`, { id: e }, n)).subApplyDecision,
|
|
637
|
-
onSuccess: (e) =>
|
|
647
|
+
onSuccess: (e) => Z(t, {
|
|
638
648
|
decisionId: e.decision.id,
|
|
639
649
|
agentId: e.decision.agentId,
|
|
640
650
|
relationshipId: e.decision.relationshipId
|
|
641
651
|
}),
|
|
642
652
|
onError: () => void t.invalidateQueries({ queryKey: l.decisions })
|
|
643
653
|
});
|
|
644
|
-
},
|
|
654
|
+
}, ve = () => {
|
|
645
655
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
646
656
|
return r({
|
|
647
657
|
mutationFn: async ({ id: e, reason: t }) => (await c(`mutation SubDismissDecision($id: ID!, $reason: String) {
|
|
@@ -650,19 +660,19 @@ var c = async (e, t, n) => {
|
|
|
650
660
|
id: e,
|
|
651
661
|
reason: t?.trim() ? t.trim() : void 0
|
|
652
662
|
}, n)).subDismissDecision,
|
|
653
|
-
onSuccess: (e) =>
|
|
663
|
+
onSuccess: (e) => Z(t, {
|
|
654
664
|
decisionId: e.id,
|
|
655
665
|
agentId: e.agentId
|
|
656
666
|
})
|
|
657
667
|
});
|
|
658
|
-
},
|
|
668
|
+
}, ye = "\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", be = () => {
|
|
659
669
|
let { apiGatewayUrl: t } = e();
|
|
660
670
|
return i({
|
|
661
671
|
queryKey: l.savings,
|
|
662
672
|
retry: 1,
|
|
663
|
-
queryFn: async () => (await c(`query SubSavingsOverview { subSavingsOverview { ${
|
|
673
|
+
queryFn: async () => (await c(`query SubSavingsOverview { subSavingsOverview { ${ye} } }`, {}, t)).subSavingsOverview
|
|
664
674
|
});
|
|
665
|
-
},
|
|
675
|
+
}, xe = () => {
|
|
666
676
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
667
677
|
return r({
|
|
668
678
|
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,
|
|
@@ -671,7 +681,7 @@ var c = async (e, t, n) => {
|
|
|
671
681
|
for (let e of [r.keepRelationshipId, ...r.cancelRelationshipIds]) t.invalidateQueries({ queryKey: l.relationship(e) });
|
|
672
682
|
}
|
|
673
683
|
});
|
|
674
|
-
},
|
|
684
|
+
}, Se = () => {
|
|
675
685
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
676
686
|
return r({
|
|
677
687
|
mutationFn: async ({ id: e, reason: t }) => (await c("mutation SubDismissBundle($id: ID!, $reason: String) {\n subDismissBundle(id: $id, reason: $reason)\n }", {
|
|
@@ -680,7 +690,7 @@ var c = async (e, t, n) => {
|
|
|
680
690
|
}, n)).subDismissBundle,
|
|
681
691
|
onSuccess: () => void t.invalidateQueries({ queryKey: l.savings })
|
|
682
692
|
});
|
|
683
|
-
},
|
|
693
|
+
}, Ce = (t) => {
|
|
684
694
|
let { apiGatewayUrl: n } = e();
|
|
685
695
|
return i({
|
|
686
696
|
queryKey: [...l.workflows, t],
|
|
@@ -688,7 +698,7 @@ var c = async (e, t, n) => {
|
|
|
688
698
|
subListWorkflows(status: $status) { items { ${_} } pageInfo { cursor hasMore } }
|
|
689
699
|
}`, { status: t }, n)).subListWorkflows.items
|
|
690
700
|
});
|
|
691
|
-
},
|
|
701
|
+
}, we = () => {
|
|
692
702
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
693
703
|
return r({
|
|
694
704
|
mutationFn: async (e) => (await c(`mutation SubCreateWorkflow($input: SubCreateWorkflowInput!) {
|
|
@@ -698,7 +708,7 @@ var c = async (e, t, n) => {
|
|
|
698
708
|
t.invalidateQueries({ queryKey: l.workflows });
|
|
699
709
|
}
|
|
700
710
|
});
|
|
701
|
-
},
|
|
711
|
+
}, Te = () => {
|
|
702
712
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
703
713
|
return r({
|
|
704
714
|
mutationFn: async (e) => (await c(`mutation SubActivateWorkflow($id: ID!) {
|
|
@@ -708,13 +718,13 @@ var c = async (e, t, n) => {
|
|
|
708
718
|
t.invalidateQueries({ queryKey: l.workflows });
|
|
709
719
|
}
|
|
710
720
|
});
|
|
711
|
-
},
|
|
721
|
+
}, Ee = (t = {}) => {
|
|
712
722
|
let { apiGatewayUrl: n } = e();
|
|
713
723
|
return i({
|
|
714
724
|
queryKey: [...l.adapterSubmissions, t],
|
|
715
725
|
queryFn: async () => (await c(`query SubAdapterSubmissions($status: SubSubmissionStatus, $pagination: PaginationInput) {
|
|
716
726
|
subListAdapterSubmissions(status: $status, pagination: $pagination) {
|
|
717
|
-
items { ${
|
|
727
|
+
items { ${x} }
|
|
718
728
|
pageInfo { cursor hasMore }
|
|
719
729
|
}
|
|
720
730
|
}`, {
|
|
@@ -725,11 +735,11 @@ var c = async (e, t, n) => {
|
|
|
725
735
|
}
|
|
726
736
|
}, n)).subListAdapterSubmissions
|
|
727
737
|
});
|
|
728
|
-
},
|
|
738
|
+
}, De = () => {
|
|
729
739
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
730
740
|
return r({
|
|
731
741
|
mutationFn: async ({ id: e, notes: t }) => (await c(`mutation SubApproveAdapter($id: ID!, $notes: String) {
|
|
732
|
-
subApproveAdapter(id: $id, notes: $notes) { ${
|
|
742
|
+
subApproveAdapter(id: $id, notes: $notes) { ${x} }
|
|
733
743
|
}`, {
|
|
734
744
|
id: e,
|
|
735
745
|
notes: t
|
|
@@ -738,11 +748,11 @@ var c = async (e, t, n) => {
|
|
|
738
748
|
t.invalidateQueries({ queryKey: l.adapterSubmissions });
|
|
739
749
|
}
|
|
740
750
|
});
|
|
741
|
-
},
|
|
751
|
+
}, Oe = () => {
|
|
742
752
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
743
753
|
return r({
|
|
744
754
|
mutationFn: async ({ id: e, reason: t }) => (await c(`mutation SubRejectAdapter($id: ID!, $reason: String!) {
|
|
745
|
-
subRejectAdapter(id: $id, reason: $reason) { ${
|
|
755
|
+
subRejectAdapter(id: $id, reason: $reason) { ${x} }
|
|
746
756
|
}`, {
|
|
747
757
|
id: e,
|
|
748
758
|
reason: t
|
|
@@ -751,13 +761,13 @@ var c = async (e, t, n) => {
|
|
|
751
761
|
t.invalidateQueries({ queryKey: l.adapterSubmissions });
|
|
752
762
|
}
|
|
753
763
|
});
|
|
754
|
-
},
|
|
764
|
+
}, Q = (t = {}) => {
|
|
755
765
|
let { apiGatewayUrl: n } = e();
|
|
756
766
|
return i({
|
|
757
767
|
queryKey: [...l.marketplaceReports, t],
|
|
758
768
|
queryFn: async () => (await c(`query SubMarketplaceReports($status: SubReportStatus, $pagination: PaginationInput) {
|
|
759
769
|
subListMarketplaceReports(status: $status, pagination: $pagination) {
|
|
760
|
-
items { ${
|
|
770
|
+
items { ${S} }
|
|
761
771
|
pageInfo { cursor hasMore }
|
|
762
772
|
}
|
|
763
773
|
}`, {
|
|
@@ -768,11 +778,11 @@ var c = async (e, t, n) => {
|
|
|
768
778
|
}
|
|
769
779
|
}, n)).subListMarketplaceReports
|
|
770
780
|
});
|
|
771
|
-
},
|
|
781
|
+
}, ke = () => {
|
|
772
782
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
773
783
|
return r({
|
|
774
784
|
mutationFn: async ({ id: e, action: t, reason: r }) => (await c(`mutation SubModerateListing($id: ID!, $action: SubModerationAction!, $reason: String!) {
|
|
775
|
-
subModerateListing(id: $id, action: $action, reason: $reason) { ${
|
|
785
|
+
subModerateListing(id: $id, action: $action, reason: $reason) { ${S} }
|
|
776
786
|
}`, {
|
|
777
787
|
id: e,
|
|
778
788
|
action: t,
|
|
@@ -782,8 +792,63 @@ var c = async (e, t, n) => {
|
|
|
782
792
|
t.invalidateQueries({ queryKey: l.marketplaceReports });
|
|
783
793
|
}
|
|
784
794
|
});
|
|
795
|
+
}, $ = "monthlyBudget monthlySpend variance utilizationPct overBudget", Ae = `
|
|
796
|
+
currency generatedAt monthlySpend annualSpend activeRelationshipCount
|
|
797
|
+
previousMonthlySpend monthlySpendChangePct
|
|
798
|
+
trend { at monthlySpend }
|
|
799
|
+
budget { ${$} }
|
|
800
|
+
departments {
|
|
801
|
+
department monthlySpend annualSpend relationshipCount sharePct
|
|
802
|
+
budget { ${$} }
|
|
803
|
+
}
|
|
804
|
+
shadowIt {
|
|
805
|
+
relationshipId label providerId providerName department discoverySource
|
|
806
|
+
reason monthlySpend detectedAt
|
|
807
|
+
}
|
|
808
|
+
shadowItCount shadowItMonthlySpend
|
|
809
|
+
duplicateTools {
|
|
810
|
+
key type name providerId relationshipCount monthlySpend potentialMonthlySavings departments
|
|
811
|
+
keepRelationshipId rationale
|
|
812
|
+
relationships { relationshipId label department monthlySpend keep }
|
|
813
|
+
}
|
|
814
|
+
duplicatePotentialMonthlySavings
|
|
815
|
+
renewalPipeline {
|
|
816
|
+
label year quarter startsAt endsAt amount renewalCount relationshipCount
|
|
817
|
+
topRenewals { relationshipId label department renewsAt amount autoRenew }
|
|
818
|
+
}
|
|
819
|
+
riskFlags { kind severity relationshipId label department monthlySpend detail }
|
|
820
|
+
riskFlagCount
|
|
821
|
+
otherCurrencies { currency monthlySpend relationshipCount }
|
|
822
|
+
seatsAssigned seatsUsed seatUtilizationPct
|
|
823
|
+
licenses {
|
|
824
|
+
relationshipId label providerName department seatsAssigned seatsUsed
|
|
825
|
+
utilizationPct monthlySpend annualCost renewsAt
|
|
826
|
+
}
|
|
827
|
+
truncated
|
|
828
|
+
`, je = (t) => {
|
|
829
|
+
let { apiGatewayUrl: n } = e();
|
|
830
|
+
return i({
|
|
831
|
+
queryKey: [...l.enterpriseSpend, t ?? null],
|
|
832
|
+
queryFn: async () => (await c(`query SubEnterpriseSpendDashboard($currency: String) {
|
|
833
|
+
subEnterpriseSpendDashboard(currency: $currency) { ${Ae} }
|
|
834
|
+
}`, { currency: t || null }, n)).subEnterpriseSpendDashboard
|
|
835
|
+
});
|
|
836
|
+
}, Me = () => {
|
|
837
|
+
let { apiGatewayUrl: t } = e();
|
|
838
|
+
return i({
|
|
839
|
+
queryKey: l.spendBudgets,
|
|
840
|
+
queryFn: async () => (await c("query SubListSpendBudgets {\n subListSpendBudgets { id department currency monthlyAmount updatedAt }\n }", {}, t)).subListSpendBudgets
|
|
841
|
+
});
|
|
842
|
+
}, Ne = () => {
|
|
843
|
+
let t = a(), { apiGatewayUrl: n } = e();
|
|
844
|
+
return r({
|
|
845
|
+
mutationFn: async (e) => (await c("mutation SubSetSpendBudget($input: SubSetSpendBudgetInput!) {\n subSetSpendBudget(input: $input) { id department currency monthlyAmount updatedAt }\n }", { input: e }, n)).subSetSpendBudget,
|
|
846
|
+
onSuccess: () => {
|
|
847
|
+
t.invalidateQueries({ queryKey: l.spendBudgets }), t.invalidateQueries({ queryKey: l.enterpriseSpend });
|
|
848
|
+
}
|
|
849
|
+
});
|
|
785
850
|
};
|
|
786
851
|
//#endregion
|
|
787
|
-
export {
|
|
852
|
+
export { Te as useActivateWorkflow, Ee as useAdapterSubmissions, le as useAgent, ce as useAgents, j as useAllAssets, _e as useApplyDecision, De as useApproveAdapter, B as useArchiveProvider, U as useBenchmarkDataPoints, D as useCancelRelationship, ae as useChannels, xe as useConsolidateRelationships, ue as useCreateAgent, M as useCreateAsset, oe as useCreateChannel, A as useCreateEntitlement, Y as useCreateInvoice, re as useCreatePaymentInstrument, H as useCreatePlan, fe as useCreatePolicy, R as useCreateProvider, T as useCreateRelationship, we as useCreateWorkflow, he as useDecision, me as useDecisions, Se as useDismissBundle, ve as useDismissDecision, je as useEnterpriseSpendDashboard, F as useFileDownloadUrl, W as useInboxMessages, K as useIngestMessage, q as useInvoices, J as useMarkInvoicePaid, G as useMarkMessageRead, Q as useMarketplaceReports, ke as useModerateListing, X as usePaymentInstruments, V as usePlans, L as useProvider, I as useProviders, Oe as useRejectAdapter, w as useRelationship, C as useRelationships, ie as useRemovePaymentInstrument, k as useRenewalEvents, ge as useRunAgent, be as useSavingsOverview, de as useSetAgentStatus, Ne as useSetSpendBudget, Me as useSpendBudgets, E as useTransitionRelationship, z as useUpdateProvider, O as useUpdateRelationship, P as useUploadFile, se as useVerifyChannel, Ce as useWorkflows };
|
|
788
853
|
|
|
789
854
|
//# sourceMappingURL=useSubscriberBotApi.js.map
|