@credal/actions 0.2.32 → 0.2.33
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/actions/actionMapper.js +13 -1
- package/dist/actions/autogen/definitions.d.ts +5 -0
- package/dist/actions/autogen/definitions.js +132 -0
- package/dist/actions/autogen/templates.d.ts +4 -0
- package/dist/actions/autogen/templates.js +302 -0
- package/dist/actions/autogen/types.d.ts +302 -0
- package/dist/actions/autogen/types.js +96 -0
- package/dist/actions/definitions.js +35 -0
- package/dist/actions/groups.js +3 -1
- package/dist/actions/invokeMapper.d.ts +9 -0
- package/dist/actions/invokeMapper.js +33 -0
- package/dist/actions/providers/confluence/updatePage.d.ts +3 -0
- package/dist/actions/providers/confluence/updatePage.js +43 -0
- package/dist/actions/providers/google-oauth/getSheetValue.d.ts +3 -0
- package/dist/actions/providers/google-oauth/getSheetValue.js +50 -0
- package/dist/actions/providers/google-oauth/getSheetValues.d.ts +3 -0
- package/dist/actions/providers/google-oauth/getSheetValues.js +50 -0
- package/dist/actions/providers/googlemaps/nearbysearch.d.ts +3 -0
- package/dist/actions/providers/googlemaps/nearbysearch.js +96 -0
- package/dist/actions/providers/jira/createServiceDeskRequest.d.ts +3 -0
- package/dist/actions/providers/jira/createServiceDeskRequest.js +54 -0
- package/dist/actions/providers/jira/createTicket.d.ts +3 -0
- package/dist/actions/providers/jira/createTicket.js +34 -0
- package/dist/actions/providers/jira/getServiceDesks.d.ts +3 -0
- package/dist/actions/providers/jira/getServiceDesks.js +101 -0
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +3 -0
- package/dist/actions/providers/{jamf/getComputerInventory.js → salesforce/getSalesforceRecordByQuery.js} +14 -16
- package/dist/actions/providers/slack/listConversations.d.ts +1 -1
- package/dist/actions/providers/slack/list_conversations.d.ts +3 -0
- package/dist/actions/providers/slack/list_conversations.js +60 -0
- package/dist/actions/providers/slack/summarizeChannel.d.ts +3 -0
- package/dist/actions/providers/slack/summarizeChannel.js +51 -0
- package/dist/actions/schema.js +6 -0
- package/dist/actions/types.js +2 -0
- package/dist/main.js +11 -0
- package/package.json +1 -1
- package/dist/actions/providers/jamf/getComputerInventory.d.ts +0 -3
- package/dist/actions/providers/jamf/getFileVaultRecoveryKey.d.ts +0 -3
- package/dist/actions/providers/jamf/getFileVaultRecoveryKey.js +0 -40
- package/dist/actions/providers/jamf/restartJamfComputerById.d.ts +0 -3
- package/dist/actions/providers/jamf/restartJamfComputerById.js +0 -37
@@ -956,6 +956,157 @@ export declare const jiraCreateJiraTicketOutputSchema: z.ZodObject<{
|
|
956
956
|
}>;
|
957
957
|
export type jiraCreateJiraTicketOutputType = z.infer<typeof jiraCreateJiraTicketOutputSchema>;
|
958
958
|
export type jiraCreateJiraTicketFunction = ActionFunction<jiraCreateJiraTicketParamsType, AuthParamsType, jiraCreateJiraTicketOutputType>;
|
959
|
+
export declare const jiraGetServiceDesksParamsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
960
|
+
export type jiraGetServiceDesksParamsType = z.infer<typeof jiraGetServiceDesksParamsSchema>;
|
961
|
+
export declare const jiraGetServiceDesksOutputSchema: z.ZodObject<{
|
962
|
+
success: z.ZodBoolean;
|
963
|
+
error: z.ZodOptional<z.ZodString>;
|
964
|
+
serviceDesks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
965
|
+
id: z.ZodOptional<z.ZodString>;
|
966
|
+
projectId: z.ZodOptional<z.ZodString>;
|
967
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
968
|
+
projectName: z.ZodOptional<z.ZodString>;
|
969
|
+
requestTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
970
|
+
id: z.ZodOptional<z.ZodString>;
|
971
|
+
name: z.ZodOptional<z.ZodString>;
|
972
|
+
description: z.ZodOptional<z.ZodString>;
|
973
|
+
issueTypeId: z.ZodOptional<z.ZodString>;
|
974
|
+
portalId: z.ZodOptional<z.ZodString>;
|
975
|
+
helpText: z.ZodOptional<z.ZodString>;
|
976
|
+
serviceDeskId: z.ZodOptional<z.ZodString>;
|
977
|
+
canCreateRequest: z.ZodOptional<z.ZodBoolean>;
|
978
|
+
}, "strip", z.ZodTypeAny, {
|
979
|
+
description?: string | undefined;
|
980
|
+
name?: string | undefined;
|
981
|
+
id?: string | undefined;
|
982
|
+
serviceDeskId?: string | undefined;
|
983
|
+
issueTypeId?: string | undefined;
|
984
|
+
portalId?: string | undefined;
|
985
|
+
helpText?: string | undefined;
|
986
|
+
canCreateRequest?: boolean | undefined;
|
987
|
+
}, {
|
988
|
+
description?: string | undefined;
|
989
|
+
name?: string | undefined;
|
990
|
+
id?: string | undefined;
|
991
|
+
serviceDeskId?: string | undefined;
|
992
|
+
issueTypeId?: string | undefined;
|
993
|
+
portalId?: string | undefined;
|
994
|
+
helpText?: string | undefined;
|
995
|
+
canCreateRequest?: boolean | undefined;
|
996
|
+
}>, "many">>;
|
997
|
+
}, "strip", z.ZodTypeAny, {
|
998
|
+
projectId?: string | undefined;
|
999
|
+
id?: string | undefined;
|
1000
|
+
projectKey?: string | undefined;
|
1001
|
+
projectName?: string | undefined;
|
1002
|
+
requestTypes?: {
|
1003
|
+
description?: string | undefined;
|
1004
|
+
name?: string | undefined;
|
1005
|
+
id?: string | undefined;
|
1006
|
+
serviceDeskId?: string | undefined;
|
1007
|
+
issueTypeId?: string | undefined;
|
1008
|
+
portalId?: string | undefined;
|
1009
|
+
helpText?: string | undefined;
|
1010
|
+
canCreateRequest?: boolean | undefined;
|
1011
|
+
}[] | undefined;
|
1012
|
+
}, {
|
1013
|
+
projectId?: string | undefined;
|
1014
|
+
id?: string | undefined;
|
1015
|
+
projectKey?: string | undefined;
|
1016
|
+
projectName?: string | undefined;
|
1017
|
+
requestTypes?: {
|
1018
|
+
description?: string | undefined;
|
1019
|
+
name?: string | undefined;
|
1020
|
+
id?: string | undefined;
|
1021
|
+
serviceDeskId?: string | undefined;
|
1022
|
+
issueTypeId?: string | undefined;
|
1023
|
+
portalId?: string | undefined;
|
1024
|
+
helpText?: string | undefined;
|
1025
|
+
canCreateRequest?: boolean | undefined;
|
1026
|
+
}[] | undefined;
|
1027
|
+
}>, "many">>;
|
1028
|
+
}, "strip", z.ZodTypeAny, {
|
1029
|
+
success: boolean;
|
1030
|
+
error?: string | undefined;
|
1031
|
+
serviceDesks?: {
|
1032
|
+
projectId?: string | undefined;
|
1033
|
+
id?: string | undefined;
|
1034
|
+
projectKey?: string | undefined;
|
1035
|
+
projectName?: string | undefined;
|
1036
|
+
requestTypes?: {
|
1037
|
+
description?: string | undefined;
|
1038
|
+
name?: string | undefined;
|
1039
|
+
id?: string | undefined;
|
1040
|
+
serviceDeskId?: string | undefined;
|
1041
|
+
issueTypeId?: string | undefined;
|
1042
|
+
portalId?: string | undefined;
|
1043
|
+
helpText?: string | undefined;
|
1044
|
+
canCreateRequest?: boolean | undefined;
|
1045
|
+
}[] | undefined;
|
1046
|
+
}[] | undefined;
|
1047
|
+
}, {
|
1048
|
+
success: boolean;
|
1049
|
+
error?: string | undefined;
|
1050
|
+
serviceDesks?: {
|
1051
|
+
projectId?: string | undefined;
|
1052
|
+
id?: string | undefined;
|
1053
|
+
projectKey?: string | undefined;
|
1054
|
+
projectName?: string | undefined;
|
1055
|
+
requestTypes?: {
|
1056
|
+
description?: string | undefined;
|
1057
|
+
name?: string | undefined;
|
1058
|
+
id?: string | undefined;
|
1059
|
+
serviceDeskId?: string | undefined;
|
1060
|
+
issueTypeId?: string | undefined;
|
1061
|
+
portalId?: string | undefined;
|
1062
|
+
helpText?: string | undefined;
|
1063
|
+
canCreateRequest?: boolean | undefined;
|
1064
|
+
}[] | undefined;
|
1065
|
+
}[] | undefined;
|
1066
|
+
}>;
|
1067
|
+
export type jiraGetServiceDesksOutputType = z.infer<typeof jiraGetServiceDesksOutputSchema>;
|
1068
|
+
export type jiraGetServiceDesksFunction = ActionFunction<jiraGetServiceDesksParamsType, AuthParamsType, jiraGetServiceDesksOutputType>;
|
1069
|
+
export declare const jiraCreateServiceDeskRequestParamsSchema: z.ZodObject<{
|
1070
|
+
serviceDeskId: z.ZodString;
|
1071
|
+
requestTypeId: z.ZodString;
|
1072
|
+
summary: z.ZodString;
|
1073
|
+
description: z.ZodString;
|
1074
|
+
reporter: z.ZodOptional<z.ZodString>;
|
1075
|
+
}, "strip", z.ZodTypeAny, {
|
1076
|
+
description: string;
|
1077
|
+
summary: string;
|
1078
|
+
serviceDeskId: string;
|
1079
|
+
requestTypeId: string;
|
1080
|
+
reporter?: string | undefined;
|
1081
|
+
}, {
|
1082
|
+
description: string;
|
1083
|
+
summary: string;
|
1084
|
+
serviceDeskId: string;
|
1085
|
+
requestTypeId: string;
|
1086
|
+
reporter?: string | undefined;
|
1087
|
+
}>;
|
1088
|
+
export type jiraCreateServiceDeskRequestParamsType = z.infer<typeof jiraCreateServiceDeskRequestParamsSchema>;
|
1089
|
+
export declare const jiraCreateServiceDeskRequestOutputSchema: z.ZodObject<{
|
1090
|
+
success: z.ZodBoolean;
|
1091
|
+
error: z.ZodOptional<z.ZodString>;
|
1092
|
+
issueKey: z.ZodOptional<z.ZodString>;
|
1093
|
+
webLink: z.ZodOptional<z.ZodString>;
|
1094
|
+
currentStatus: z.ZodOptional<z.ZodString>;
|
1095
|
+
}, "strip", z.ZodTypeAny, {
|
1096
|
+
success: boolean;
|
1097
|
+
error?: string | undefined;
|
1098
|
+
issueKey?: string | undefined;
|
1099
|
+
webLink?: string | undefined;
|
1100
|
+
currentStatus?: string | undefined;
|
1101
|
+
}, {
|
1102
|
+
success: boolean;
|
1103
|
+
error?: string | undefined;
|
1104
|
+
issueKey?: string | undefined;
|
1105
|
+
webLink?: string | undefined;
|
1106
|
+
currentStatus?: string | undefined;
|
1107
|
+
}>;
|
1108
|
+
export type jiraCreateServiceDeskRequestOutputType = z.infer<typeof jiraCreateServiceDeskRequestOutputSchema>;
|
1109
|
+
export type jiraCreateServiceDeskRequestFunction = ActionFunction<jiraCreateServiceDeskRequestParamsType, AuthParamsType, jiraCreateServiceDeskRequestOutputType>;
|
959
1110
|
export declare const jiraGetJiraTicketDetailsParamsSchema: z.ZodObject<{
|
960
1111
|
projectKey: z.ZodString;
|
961
1112
|
issueId: z.ZodString;
|
@@ -1188,6 +1339,157 @@ export declare const jiraOrgCreateJiraTicketOutputSchema: z.ZodObject<{
|
|
1188
1339
|
}>;
|
1189
1340
|
export type jiraOrgCreateJiraTicketOutputType = z.infer<typeof jiraOrgCreateJiraTicketOutputSchema>;
|
1190
1341
|
export type jiraOrgCreateJiraTicketFunction = ActionFunction<jiraOrgCreateJiraTicketParamsType, AuthParamsType, jiraOrgCreateJiraTicketOutputType>;
|
1342
|
+
export declare const jiraOrgGetServiceDesksParamsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
1343
|
+
export type jiraOrgGetServiceDesksParamsType = z.infer<typeof jiraOrgGetServiceDesksParamsSchema>;
|
1344
|
+
export declare const jiraOrgGetServiceDesksOutputSchema: z.ZodObject<{
|
1345
|
+
success: z.ZodBoolean;
|
1346
|
+
error: z.ZodOptional<z.ZodString>;
|
1347
|
+
serviceDesks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1348
|
+
id: z.ZodOptional<z.ZodString>;
|
1349
|
+
projectId: z.ZodOptional<z.ZodString>;
|
1350
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
1351
|
+
projectName: z.ZodOptional<z.ZodString>;
|
1352
|
+
requestTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1353
|
+
id: z.ZodOptional<z.ZodString>;
|
1354
|
+
name: z.ZodOptional<z.ZodString>;
|
1355
|
+
description: z.ZodOptional<z.ZodString>;
|
1356
|
+
issueTypeId: z.ZodOptional<z.ZodString>;
|
1357
|
+
portalId: z.ZodOptional<z.ZodString>;
|
1358
|
+
helpText: z.ZodOptional<z.ZodString>;
|
1359
|
+
serviceDeskId: z.ZodOptional<z.ZodString>;
|
1360
|
+
canCreateRequest: z.ZodOptional<z.ZodBoolean>;
|
1361
|
+
}, "strip", z.ZodTypeAny, {
|
1362
|
+
description?: string | undefined;
|
1363
|
+
name?: string | undefined;
|
1364
|
+
id?: string | undefined;
|
1365
|
+
serviceDeskId?: string | undefined;
|
1366
|
+
issueTypeId?: string | undefined;
|
1367
|
+
portalId?: string | undefined;
|
1368
|
+
helpText?: string | undefined;
|
1369
|
+
canCreateRequest?: boolean | undefined;
|
1370
|
+
}, {
|
1371
|
+
description?: string | undefined;
|
1372
|
+
name?: string | undefined;
|
1373
|
+
id?: string | undefined;
|
1374
|
+
serviceDeskId?: string | undefined;
|
1375
|
+
issueTypeId?: string | undefined;
|
1376
|
+
portalId?: string | undefined;
|
1377
|
+
helpText?: string | undefined;
|
1378
|
+
canCreateRequest?: boolean | undefined;
|
1379
|
+
}>, "many">>;
|
1380
|
+
}, "strip", z.ZodTypeAny, {
|
1381
|
+
projectId?: string | undefined;
|
1382
|
+
id?: string | undefined;
|
1383
|
+
projectKey?: string | undefined;
|
1384
|
+
projectName?: string | undefined;
|
1385
|
+
requestTypes?: {
|
1386
|
+
description?: string | undefined;
|
1387
|
+
name?: string | undefined;
|
1388
|
+
id?: string | undefined;
|
1389
|
+
serviceDeskId?: string | undefined;
|
1390
|
+
issueTypeId?: string | undefined;
|
1391
|
+
portalId?: string | undefined;
|
1392
|
+
helpText?: string | undefined;
|
1393
|
+
canCreateRequest?: boolean | undefined;
|
1394
|
+
}[] | undefined;
|
1395
|
+
}, {
|
1396
|
+
projectId?: string | undefined;
|
1397
|
+
id?: string | undefined;
|
1398
|
+
projectKey?: string | undefined;
|
1399
|
+
projectName?: string | undefined;
|
1400
|
+
requestTypes?: {
|
1401
|
+
description?: string | undefined;
|
1402
|
+
name?: string | undefined;
|
1403
|
+
id?: string | undefined;
|
1404
|
+
serviceDeskId?: string | undefined;
|
1405
|
+
issueTypeId?: string | undefined;
|
1406
|
+
portalId?: string | undefined;
|
1407
|
+
helpText?: string | undefined;
|
1408
|
+
canCreateRequest?: boolean | undefined;
|
1409
|
+
}[] | undefined;
|
1410
|
+
}>, "many">>;
|
1411
|
+
}, "strip", z.ZodTypeAny, {
|
1412
|
+
success: boolean;
|
1413
|
+
error?: string | undefined;
|
1414
|
+
serviceDesks?: {
|
1415
|
+
projectId?: string | undefined;
|
1416
|
+
id?: string | undefined;
|
1417
|
+
projectKey?: string | undefined;
|
1418
|
+
projectName?: string | undefined;
|
1419
|
+
requestTypes?: {
|
1420
|
+
description?: string | undefined;
|
1421
|
+
name?: string | undefined;
|
1422
|
+
id?: string | undefined;
|
1423
|
+
serviceDeskId?: string | undefined;
|
1424
|
+
issueTypeId?: string | undefined;
|
1425
|
+
portalId?: string | undefined;
|
1426
|
+
helpText?: string | undefined;
|
1427
|
+
canCreateRequest?: boolean | undefined;
|
1428
|
+
}[] | undefined;
|
1429
|
+
}[] | undefined;
|
1430
|
+
}, {
|
1431
|
+
success: boolean;
|
1432
|
+
error?: string | undefined;
|
1433
|
+
serviceDesks?: {
|
1434
|
+
projectId?: string | undefined;
|
1435
|
+
id?: string | undefined;
|
1436
|
+
projectKey?: string | undefined;
|
1437
|
+
projectName?: string | undefined;
|
1438
|
+
requestTypes?: {
|
1439
|
+
description?: string | undefined;
|
1440
|
+
name?: string | undefined;
|
1441
|
+
id?: string | undefined;
|
1442
|
+
serviceDeskId?: string | undefined;
|
1443
|
+
issueTypeId?: string | undefined;
|
1444
|
+
portalId?: string | undefined;
|
1445
|
+
helpText?: string | undefined;
|
1446
|
+
canCreateRequest?: boolean | undefined;
|
1447
|
+
}[] | undefined;
|
1448
|
+
}[] | undefined;
|
1449
|
+
}>;
|
1450
|
+
export type jiraOrgGetServiceDesksOutputType = z.infer<typeof jiraOrgGetServiceDesksOutputSchema>;
|
1451
|
+
export type jiraOrgGetServiceDesksFunction = ActionFunction<jiraOrgGetServiceDesksParamsType, AuthParamsType, jiraOrgGetServiceDesksOutputType>;
|
1452
|
+
export declare const jiraOrgCreateServiceDeskRequestParamsSchema: z.ZodObject<{
|
1453
|
+
serviceDeskId: z.ZodString;
|
1454
|
+
requestTypeId: z.ZodString;
|
1455
|
+
summary: z.ZodString;
|
1456
|
+
description: z.ZodString;
|
1457
|
+
reporter: z.ZodOptional<z.ZodString>;
|
1458
|
+
}, "strip", z.ZodTypeAny, {
|
1459
|
+
description: string;
|
1460
|
+
summary: string;
|
1461
|
+
serviceDeskId: string;
|
1462
|
+
requestTypeId: string;
|
1463
|
+
reporter?: string | undefined;
|
1464
|
+
}, {
|
1465
|
+
description: string;
|
1466
|
+
summary: string;
|
1467
|
+
serviceDeskId: string;
|
1468
|
+
requestTypeId: string;
|
1469
|
+
reporter?: string | undefined;
|
1470
|
+
}>;
|
1471
|
+
export type jiraOrgCreateServiceDeskRequestParamsType = z.infer<typeof jiraOrgCreateServiceDeskRequestParamsSchema>;
|
1472
|
+
export declare const jiraOrgCreateServiceDeskRequestOutputSchema: z.ZodObject<{
|
1473
|
+
success: z.ZodBoolean;
|
1474
|
+
error: z.ZodOptional<z.ZodString>;
|
1475
|
+
issueKey: z.ZodOptional<z.ZodString>;
|
1476
|
+
webLink: z.ZodOptional<z.ZodString>;
|
1477
|
+
currentStatus: z.ZodOptional<z.ZodString>;
|
1478
|
+
}, "strip", z.ZodTypeAny, {
|
1479
|
+
success: boolean;
|
1480
|
+
error?: string | undefined;
|
1481
|
+
issueKey?: string | undefined;
|
1482
|
+
webLink?: string | undefined;
|
1483
|
+
currentStatus?: string | undefined;
|
1484
|
+
}, {
|
1485
|
+
success: boolean;
|
1486
|
+
error?: string | undefined;
|
1487
|
+
issueKey?: string | undefined;
|
1488
|
+
webLink?: string | undefined;
|
1489
|
+
currentStatus?: string | undefined;
|
1490
|
+
}>;
|
1491
|
+
export type jiraOrgCreateServiceDeskRequestOutputType = z.infer<typeof jiraOrgCreateServiceDeskRequestOutputSchema>;
|
1492
|
+
export type jiraOrgCreateServiceDeskRequestFunction = ActionFunction<jiraOrgCreateServiceDeskRequestParamsType, AuthParamsType, jiraOrgCreateServiceDeskRequestOutputType>;
|
1191
1493
|
export declare const jiraOrgGetJiraTicketDetailsParamsSchema: z.ZodObject<{
|
1192
1494
|
projectKey: z.ZodString;
|
1193
1495
|
issueId: z.ZodString;
|
@@ -302,6 +302,54 @@ export const jiraCreateJiraTicketParamsSchema = z.object({
|
|
302
302
|
export const jiraCreateJiraTicketOutputSchema = z.object({
|
303
303
|
ticketUrl: z.string().describe("The url to the created Jira Ticket"),
|
304
304
|
});
|
305
|
+
export const jiraGetServiceDesksParamsSchema = z.object({});
|
306
|
+
export const jiraGetServiceDesksOutputSchema = z.object({
|
307
|
+
success: z.boolean().describe("Whether the service desks were retrieved successfully"),
|
308
|
+
error: z.string().describe("The error that occurred if the service desks were not retrieved successfully").optional(),
|
309
|
+
serviceDesks: z
|
310
|
+
.array(z
|
311
|
+
.object({
|
312
|
+
id: z.string().describe("The ID of the service desk").optional(),
|
313
|
+
projectId: z.string().describe("The ID of the project").optional(),
|
314
|
+
projectKey: z.string().describe("The key of the project").optional(),
|
315
|
+
projectName: z.string().describe("The name of the service desk").optional(),
|
316
|
+
requestTypes: z
|
317
|
+
.array(z
|
318
|
+
.object({
|
319
|
+
id: z.string().describe("The ID of the request type").optional(),
|
320
|
+
name: z.string().describe("The name of the request type").optional(),
|
321
|
+
description: z.string().describe("The description of the request type").optional(),
|
322
|
+
issueTypeId: z.string().describe("The ID of the issue type").optional(),
|
323
|
+
portalId: z.string().describe("The ID of the customer portal").optional(),
|
324
|
+
helpText: z.string().describe("The help text for the request type").optional(),
|
325
|
+
serviceDeskId: z.string().describe("The ID of the service desk").optional(),
|
326
|
+
canCreateRequest: z.boolean().describe("Whether the request type can be created").optional(),
|
327
|
+
})
|
328
|
+
.describe("A request type"))
|
329
|
+
.describe("The list of request types")
|
330
|
+
.optional(),
|
331
|
+
})
|
332
|
+
.describe("A service desk"))
|
333
|
+
.describe("The list of service desks")
|
334
|
+
.optional(),
|
335
|
+
});
|
336
|
+
export const jiraCreateServiceDeskRequestParamsSchema = z.object({
|
337
|
+
serviceDeskId: z.string().describe("The ID of the service desk to create the request in"),
|
338
|
+
requestTypeId: z.string().describe("The ID of the request type to use for the new request"),
|
339
|
+
summary: z.string().describe("The summary of the new service desk request"),
|
340
|
+
description: z.string().describe("The description for the new service desk request"),
|
341
|
+
reporter: z
|
342
|
+
.string()
|
343
|
+
.describe("The email address of the person reporting the issue (for raising on behalf of)")
|
344
|
+
.optional(),
|
345
|
+
});
|
346
|
+
export const jiraCreateServiceDeskRequestOutputSchema = z.object({
|
347
|
+
success: z.boolean().describe("Whether the request was created successfully"),
|
348
|
+
error: z.string().describe("The error that occurred if the request was not created successfully").optional(),
|
349
|
+
issueKey: z.string().describe("The Jira issue key of the created request").optional(),
|
350
|
+
webLink: z.string().describe("The link to the customer portal request, if available").optional(),
|
351
|
+
currentStatus: z.string().describe("The current status of the created request").optional(),
|
352
|
+
});
|
305
353
|
export const jiraGetJiraTicketDetailsParamsSchema = z.object({
|
306
354
|
projectKey: z.string().describe("The key for the project"),
|
307
355
|
issueId: z.string().describe("The ID of the ticket"),
|
@@ -393,6 +441,54 @@ export const jiraOrgCreateJiraTicketParamsSchema = z.object({
|
|
393
441
|
export const jiraOrgCreateJiraTicketOutputSchema = z.object({
|
394
442
|
ticketUrl: z.string().describe("The url to the created Jira Ticket"),
|
395
443
|
});
|
444
|
+
export const jiraOrgGetServiceDesksParamsSchema = z.object({});
|
445
|
+
export const jiraOrgGetServiceDesksOutputSchema = z.object({
|
446
|
+
success: z.boolean().describe("Whether the service desks were retrieved successfully"),
|
447
|
+
error: z.string().describe("The error that occurred if the service desks were not retrieved successfully").optional(),
|
448
|
+
serviceDesks: z
|
449
|
+
.array(z
|
450
|
+
.object({
|
451
|
+
id: z.string().describe("The ID of the service desk").optional(),
|
452
|
+
projectId: z.string().describe("The ID of the project").optional(),
|
453
|
+
projectKey: z.string().describe("The key of the project").optional(),
|
454
|
+
projectName: z.string().describe("The name of the service desk").optional(),
|
455
|
+
requestTypes: z
|
456
|
+
.array(z
|
457
|
+
.object({
|
458
|
+
id: z.string().describe("The ID of the request type").optional(),
|
459
|
+
name: z.string().describe("The name of the request type").optional(),
|
460
|
+
description: z.string().describe("The description of the request type").optional(),
|
461
|
+
issueTypeId: z.string().describe("The ID of the issue type").optional(),
|
462
|
+
portalId: z.string().describe("The ID of the customer portal").optional(),
|
463
|
+
helpText: z.string().describe("The help text for the request type").optional(),
|
464
|
+
serviceDeskId: z.string().describe("The ID of the service desk").optional(),
|
465
|
+
canCreateRequest: z.boolean().describe("Whether the request type can be created").optional(),
|
466
|
+
})
|
467
|
+
.describe("A request type"))
|
468
|
+
.describe("The list of request types")
|
469
|
+
.optional(),
|
470
|
+
})
|
471
|
+
.describe("A service desk"))
|
472
|
+
.describe("The list of service desks")
|
473
|
+
.optional(),
|
474
|
+
});
|
475
|
+
export const jiraOrgCreateServiceDeskRequestParamsSchema = z.object({
|
476
|
+
serviceDeskId: z.string().describe("The ID of the service desk to create the request in"),
|
477
|
+
requestTypeId: z.string().describe("The ID of the request type to use for the new request"),
|
478
|
+
summary: z.string().describe("The summary of the new service desk request"),
|
479
|
+
description: z.string().describe("The description for the new service desk request"),
|
480
|
+
reporter: z
|
481
|
+
.string()
|
482
|
+
.describe("The email address of the person reporting the issue (for raising on behalf of)")
|
483
|
+
.optional(),
|
484
|
+
});
|
485
|
+
export const jiraOrgCreateServiceDeskRequestOutputSchema = z.object({
|
486
|
+
success: z.boolean().describe("Whether the request was created successfully"),
|
487
|
+
error: z.string().describe("The error that occurred if the request was not created successfully").optional(),
|
488
|
+
issueKey: z.string().describe("The Jira issue key of the created request").optional(),
|
489
|
+
webLink: z.string().describe("The link to the customer portal request, if available").optional(),
|
490
|
+
currentStatus: z.string().describe("The current status of the created request").optional(),
|
491
|
+
});
|
396
492
|
export const jiraOrgGetJiraTicketDetailsParamsSchema = z.object({
|
397
493
|
projectKey: z.string().describe("The key for the project"),
|
398
494
|
issueId: z.string().describe("The ID of the ticket"),
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.mathAddDefinition = exports.slackSendMessageDefinition = void 0;
|
4
|
+
exports.slackSendMessageDefinition = {
|
5
|
+
name: "send_message",
|
6
|
+
description: "Sends a message to a Slack channel",
|
7
|
+
parameters: {
|
8
|
+
"channel": {
|
9
|
+
"type": "string",
|
10
|
+
"description": "The Slack channel to send the message to (e.g., \\#general, \\#alerts)",
|
11
|
+
"required": true
|
12
|
+
},
|
13
|
+
"message": {
|
14
|
+
"type": "string",
|
15
|
+
"description": "The message content to send to Slack. Can include markdown formatting.",
|
16
|
+
"required": true
|
17
|
+
}
|
18
|
+
}
|
19
|
+
};
|
20
|
+
exports.mathAddDefinition = {
|
21
|
+
name: "add",
|
22
|
+
description: "Adds two numbers together",
|
23
|
+
parameters: {
|
24
|
+
"a": {
|
25
|
+
"type": "number",
|
26
|
+
"description": "The first number to add",
|
27
|
+
"required": true
|
28
|
+
},
|
29
|
+
"b": {
|
30
|
+
"type": "number",
|
31
|
+
"description": "The second number to add",
|
32
|
+
"required": true
|
33
|
+
}
|
34
|
+
}
|
35
|
+
};
|
package/dist/actions/groups.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { genericFillTemplateDefinition, confluenceOverwritePageDefinition, googlemapsValidateAddressDefinition, mathAddDefinition, mongoInsertMongoDocDefinition, slackSendMessageDefinition, slackGetChannelMessagesDefinition, slackCreateChannelDefinition, slackArchiveChannelDefinition, snowflakeGetRowByFieldValueDefinition, zendeskCreateZendeskTicketDefinition, zendeskListZendeskTicketsDefinition, zendeskGetTicketDetailsDefinition, zendeskUpdateTicketStatusDefinition, zendeskAddCommentToTicketDefinition, zendeskAssignTicketDefinition, openstreetmapGetLatitudeLongitudeFromLocationDefinition, nwsGetForecastForLocationDefinition, jiraAssignJiraTicketDefinition, jiraCommentJiraTicketDefinition, jiraCreateJiraTicketDefinition, jiraGetJiraTicketDetailsDefinition, jiraGetJiraTicketHistoryDefinition, jiraUpdateJiraTicketDetailsDefinition, jiraUpdateJiraTicketStatusDefinition, googlemapsNearbysearchRestaurantsDefinition, firecrawlScrapeUrlDefinition, resendSendEmailDefinition, linkedinCreateShareLinkedinPostUrlDefinition, googleOauthCreateNewGoogleDocDefinition, xCreateShareXPostUrlDefinition, firecrawlScrapeTweetDataWithNitterDefinition, finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition, confluenceFetchPageContentDefinition, snowflakeRunSnowflakeQueryDefinition, lookerEnableUserByEmailDefinition, googleOauthUpdateDocDefinition, googleOauthScheduleCalendarMeetingDefinition, googleOauthListCalendarsDefinition, googleOauthListCalendarEventsDefinition, googleOauthUpdateCalendarEventDefinition, googleOauthDeleteCalendarEventDefinition, googleOauthCreateSpreadsheetDefinition, googleOauthUpdateSpreadsheetDefinition, googleOauthCreatePresentationDefinition, googleOauthUpdatePresentationDefinition, googleOauthSearchDriveByKeywordsDefinition, googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition, googleOauthListGroupsDefinition, googleOauthGetGroupDefinition, googleOauthListGroupMembersDefinition, googleOauthHasGroupMemberDefinition, googleOauthAddGroupMemberDefinition, googleOauthDeleteGroupMemberDefinition, salesforceUpdateRecordDefinition, salesforceCreateCaseDefinition, salesforceGenerateSalesReportDefinition, salesforceGetRecordDefinition, salesforceGetSalesforceRecordsByQueryDefinition, microsoftMessageTeamsChatDefinition, microsoftMessageTeamsChannelDefinition, asanaCommentTaskDefinition, asanaCreateTaskDefinition, asanaUpdateTaskDefinition, asanaSearchTasksDefinition, githubCreateOrUpdateFileDefinition, githubCreateBranchDefinition, githubCreatePullRequestDefinition, microsoftUpdateSpreadsheetDefinition, microsoftUpdateDocumentDefinition, microsoftCreateDocumentDefinition, microsoftGetDocumentDefinition, salesforceFetchSalesforceSchemaByObjectDefinition, firecrawlDeepResearchDefinition, jiraGetJiraIssuesByQueryDefinition, githubListPullRequestsDefinition, salesforceCreateRecordDefinition, ashbyCreateNoteDefinition, ashbyGetCandidateInfoDefinition, ashbyListCandidatesDefinition, ashbyListCandidateNotesDefinition, ashbySearchCandidatesDefinition, ashbyCreateCandidateDefinition, ashbyUpdateCandidateDefinition, ashbyAddCandidateToProjectDefinition, bingGetTopNSearchResultUrlsDefinition, gongGetGongTranscriptsDefinition, kandjiGetFVRecoveryKeyForDeviceDefinition, asanaListAsanaTasksByProjectDefinition, notionSearchByTitleDefinition, asanaGetTasksDetailsDefinition, jamfGetJamfComputerInventoryDefinition, jamfGetJamfFileVaultRecoveryKeyDefinition, oktaListOktaUsersDefinition, oktaGetOktaUserDefinition, oktaListOktaUserGroupsDefinition, oktaListOktaGroupsDefinition, oktaGetOktaGroupDefinition, oktaListOktaGroupMembersDefinition, oktaRemoveUserFromGroupDefinition, oktaAddUserToGroupDefinition, oktaResetPasswordDefinition, oktaResetMFADefinition, oktaListMFADefinition, jamfGetJamfUserComputerIdDefinition, jamfLockJamfComputerByIdDefinition, oktaTriggerOktaWorkflowDefinition, jiraOrgAssignJiraTicketDefinition, jiraOrgCreateJiraTicketDefinition, jiraOrgCommentJiraTicketDefinition, jiraOrgGetJiraTicketDetailsDefinition, jiraOrgGetJiraTicketHistoryDefinition, jiraOrgUpdateJiraTicketDetailsDefinition, jiraOrgUpdateJiraTicketStatusDefinition, jiraOrgGetJiraIssuesByQueryDefinition, } from "./autogen/templates.js";
|
1
|
+
import { genericFillTemplateDefinition, confluenceOverwritePageDefinition, googlemapsValidateAddressDefinition, mathAddDefinition, mongoInsertMongoDocDefinition, slackSendMessageDefinition, slackGetChannelMessagesDefinition, slackCreateChannelDefinition, slackArchiveChannelDefinition, snowflakeGetRowByFieldValueDefinition, zendeskCreateZendeskTicketDefinition, zendeskListZendeskTicketsDefinition, zendeskGetTicketDetailsDefinition, zendeskUpdateTicketStatusDefinition, zendeskAddCommentToTicketDefinition, zendeskAssignTicketDefinition, openstreetmapGetLatitudeLongitudeFromLocationDefinition, nwsGetForecastForLocationDefinition, jiraAssignJiraTicketDefinition, jiraCommentJiraTicketDefinition, jiraCreateJiraTicketDefinition, jiraGetJiraTicketDetailsDefinition, jiraGetJiraTicketHistoryDefinition, jiraUpdateJiraTicketDetailsDefinition, jiraUpdateJiraTicketStatusDefinition, jiraGetServiceDesksDefinition, jiraCreateServiceDeskRequestDefinition, googlemapsNearbysearchRestaurantsDefinition, firecrawlScrapeUrlDefinition, resendSendEmailDefinition, linkedinCreateShareLinkedinPostUrlDefinition, googleOauthCreateNewGoogleDocDefinition, xCreateShareXPostUrlDefinition, firecrawlScrapeTweetDataWithNitterDefinition, finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition, confluenceFetchPageContentDefinition, snowflakeRunSnowflakeQueryDefinition, lookerEnableUserByEmailDefinition, googleOauthUpdateDocDefinition, googleOauthScheduleCalendarMeetingDefinition, googleOauthListCalendarsDefinition, googleOauthListCalendarEventsDefinition, googleOauthUpdateCalendarEventDefinition, googleOauthDeleteCalendarEventDefinition, googleOauthCreateSpreadsheetDefinition, googleOauthUpdateSpreadsheetDefinition, googleOauthCreatePresentationDefinition, googleOauthUpdatePresentationDefinition, googleOauthSearchDriveByKeywordsDefinition, googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition, googleOauthListGroupsDefinition, googleOauthGetGroupDefinition, googleOauthListGroupMembersDefinition, googleOauthHasGroupMemberDefinition, googleOauthAddGroupMemberDefinition, googleOauthDeleteGroupMemberDefinition, salesforceUpdateRecordDefinition, salesforceCreateCaseDefinition, salesforceGenerateSalesReportDefinition, salesforceGetRecordDefinition, salesforceGetSalesforceRecordsByQueryDefinition, microsoftMessageTeamsChatDefinition, microsoftMessageTeamsChannelDefinition, asanaCommentTaskDefinition, asanaCreateTaskDefinition, asanaUpdateTaskDefinition, asanaSearchTasksDefinition, githubCreateOrUpdateFileDefinition, githubCreateBranchDefinition, githubCreatePullRequestDefinition, microsoftUpdateSpreadsheetDefinition, microsoftUpdateDocumentDefinition, microsoftCreateDocumentDefinition, microsoftGetDocumentDefinition, salesforceFetchSalesforceSchemaByObjectDefinition, firecrawlDeepResearchDefinition, jiraGetJiraIssuesByQueryDefinition, githubListPullRequestsDefinition, salesforceCreateRecordDefinition, ashbyCreateNoteDefinition, ashbyGetCandidateInfoDefinition, ashbyListCandidatesDefinition, ashbyListCandidateNotesDefinition, ashbySearchCandidatesDefinition, ashbyCreateCandidateDefinition, ashbyUpdateCandidateDefinition, ashbyAddCandidateToProjectDefinition, bingGetTopNSearchResultUrlsDefinition, gongGetGongTranscriptsDefinition, kandjiGetFVRecoveryKeyForDeviceDefinition, asanaListAsanaTasksByProjectDefinition, notionSearchByTitleDefinition, asanaGetTasksDetailsDefinition, jamfGetJamfComputerInventoryDefinition, jamfGetJamfFileVaultRecoveryKeyDefinition, oktaListOktaUsersDefinition, oktaGetOktaUserDefinition, oktaListOktaUserGroupsDefinition, oktaListOktaGroupsDefinition, oktaGetOktaGroupDefinition, oktaListOktaGroupMembersDefinition, oktaRemoveUserFromGroupDefinition, oktaAddUserToGroupDefinition, oktaResetPasswordDefinition, oktaResetMFADefinition, oktaListMFADefinition, jamfGetJamfUserComputerIdDefinition, jamfLockJamfComputerByIdDefinition, oktaTriggerOktaWorkflowDefinition, jiraOrgAssignJiraTicketDefinition, jiraOrgCreateJiraTicketDefinition, jiraOrgCommentJiraTicketDefinition, jiraOrgGetJiraTicketDetailsDefinition, jiraOrgGetJiraTicketHistoryDefinition, jiraOrgUpdateJiraTicketDetailsDefinition, jiraOrgUpdateJiraTicketStatusDefinition, jiraOrgGetJiraIssuesByQueryDefinition, } from "./autogen/templates.js";
|
2
2
|
export const ACTION_GROUPS = {
|
3
3
|
GENERIC: {
|
4
4
|
description: "Generic utility actions",
|
@@ -100,6 +100,8 @@ export const ACTION_GROUPS = {
|
|
100
100
|
jiraUpdateJiraTicketDetailsDefinition,
|
101
101
|
jiraUpdateJiraTicketStatusDefinition,
|
102
102
|
jiraGetJiraIssuesByQueryDefinition,
|
103
|
+
jiraGetServiceDesksDefinition,
|
104
|
+
jiraCreateServiceDeskRequestDefinition,
|
103
105
|
],
|
104
106
|
},
|
105
107
|
JIRA_ORG_ACTIONS: {
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type ActionFunction } from "./autogen/types";
|
2
|
+
import { z } from "zod";
|
3
|
+
interface ActionFunctionComponents {
|
4
|
+
fn: ActionFunction<any, any, any>;
|
5
|
+
paramsSchema: z.ZodSchema;
|
6
|
+
outputSchema: z.ZodSchema;
|
7
|
+
}
|
8
|
+
export declare const FunctionMapper: Record<string, Record<string, ActionFunctionComponents>>;
|
9
|
+
export {};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.FunctionMapper = void 0;
|
7
|
+
const add_1 = __importDefault(require("./providers/math/add"));
|
8
|
+
const list_conversations_1 = __importDefault(require("./providers/slack/list_conversations"));
|
9
|
+
const updatePage_1 = __importDefault(require("./providers/confluence/updatePage"));
|
10
|
+
const types_1 = require("./autogen/types");
|
11
|
+
exports.FunctionMapper = {
|
12
|
+
math: {
|
13
|
+
add: {
|
14
|
+
fn: add_1.default,
|
15
|
+
paramsSchema: types_1.mathAddParamsSchema,
|
16
|
+
outputSchema: types_1.mathAddOutputSchema,
|
17
|
+
},
|
18
|
+
},
|
19
|
+
slack: {
|
20
|
+
listConversations: {
|
21
|
+
fn: list_conversations_1.default,
|
22
|
+
paramsSchema: types_1.slackListConversationsParamsSchema,
|
23
|
+
outputSchema: types_1.slackListConversationsOutputSchema,
|
24
|
+
},
|
25
|
+
},
|
26
|
+
confluence: {
|
27
|
+
updatePage: {
|
28
|
+
fn: updatePage_1.default,
|
29
|
+
paramsSchema: types_1.confluenceUpdatePageParamsSchema,
|
30
|
+
outputSchema: types_1.confluenceUpdatePageOutputSchema,
|
31
|
+
},
|
32
|
+
},
|
33
|
+
};
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const axiosClient_1 = require("../../util/axiosClient");
|
13
|
+
function getConfluenceRequestConfig(baseUrl, username, apiToken) {
|
14
|
+
return {
|
15
|
+
baseURL: baseUrl,
|
16
|
+
headers: {
|
17
|
+
Accept: "application/json",
|
18
|
+
Authorization: `Basic ${Buffer.from(`${username}:${apiToken}`).toString("base64")}`,
|
19
|
+
},
|
20
|
+
};
|
21
|
+
}
|
22
|
+
const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
23
|
+
const { pageId, username, content, title } = params;
|
24
|
+
const { baseUrl, authToken } = authParams;
|
25
|
+
const config = getConfluenceRequestConfig(baseUrl, username, authToken);
|
26
|
+
// Get current version number
|
27
|
+
const response = yield axiosClient_1.axiosClient.get(`/api/v2/pages/${pageId}`, config);
|
28
|
+
const currVersion = response.data.version.number;
|
29
|
+
const payload = {
|
30
|
+
id: pageId,
|
31
|
+
status: "current",
|
32
|
+
title,
|
33
|
+
body: {
|
34
|
+
representation: "storage",
|
35
|
+
value: content,
|
36
|
+
},
|
37
|
+
version: {
|
38
|
+
number: currVersion + 1,
|
39
|
+
},
|
40
|
+
};
|
41
|
+
yield axiosClient_1.axiosClient.put(`/api/v2/pages/${pageId}`, payload, config);
|
42
|
+
});
|
43
|
+
exports.default = confluenceUpdatePage;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
+
});
|
9
|
+
};
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
11
|
+
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
12
|
+
const getSheetValues = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
13
|
+
const { authToken } = authParams;
|
14
|
+
const { spreadsheetId, ranges } = params;
|
15
|
+
if (!authToken) {
|
16
|
+
return { success: false, error: MISSING_AUTH_TOKEN };
|
17
|
+
}
|
18
|
+
try {
|
19
|
+
const url = new URL(`https://sheets.googleapis.com/v4/spreadsheets/${encodeURIComponent(spreadsheetId)}/values:batchGet`);
|
20
|
+
// Add ranges as query parameters if provided
|
21
|
+
if (ranges && ranges.length > 0) {
|
22
|
+
ranges.forEach(range => {
|
23
|
+
url.searchParams.append("ranges", range);
|
24
|
+
});
|
25
|
+
}
|
26
|
+
const response = yield axiosClient.get(url.toString(), {
|
27
|
+
headers: { Authorization: `Bearer ${authToken}` },
|
28
|
+
});
|
29
|
+
const { valueRanges } = response.data;
|
30
|
+
// Transform the response to match our schema
|
31
|
+
const transformedValueRanges = valueRanges === null || valueRanges === void 0 ? void 0 : valueRanges.map((vr) => {
|
32
|
+
var _a;
|
33
|
+
return ({
|
34
|
+
range: vr.range,
|
35
|
+
values: ((_a = vr.values) === null || _a === void 0 ? void 0 : _a.flatMap(row => row.map(cell => ({ value: cell != null ? String(cell) : undefined })))) || [],
|
36
|
+
});
|
37
|
+
});
|
38
|
+
return {
|
39
|
+
success: true,
|
40
|
+
valueRanges: transformedValueRanges,
|
41
|
+
};
|
42
|
+
}
|
43
|
+
catch (error) {
|
44
|
+
return {
|
45
|
+
success: false,
|
46
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
47
|
+
};
|
48
|
+
}
|
49
|
+
});
|
50
|
+
export default getSheetValues;
|