@manta-eu/client 0.1.10 → 0.2.1

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.
@@ -55,6 +55,30 @@ export var GQLConversationStarterSource;
55
55
  GQLConversationStarterSource["KnowledgeGraph"] = "KNOWLEDGE_GRAPH";
56
56
  GQLConversationStarterSource["Plan"] = "PLAN";
57
57
  })(GQLConversationStarterSource || (GQLConversationStarterSource = {}));
58
+ export var GQLCustomAppKind;
59
+ (function (GQLCustomAppKind) {
60
+ GQLCustomAppKind["Machine"] = "MACHINE";
61
+ GQLCustomAppKind["SignIn"] = "SIGN_IN";
62
+ })(GQLCustomAppKind || (GQLCustomAppKind = {}));
63
+ export var GQLCustomAppPermission;
64
+ (function (GQLCustomAppPermission) {
65
+ GQLCustomAppPermission["ReadWarehouse"] = "READ_WAREHOUSE";
66
+ GQLCustomAppPermission["ShareChats"] = "SHARE_CHATS";
67
+ GQLCustomAppPermission["WriteData"] = "WRITE_DATA";
68
+ })(GQLCustomAppPermission || (GQLCustomAppPermission = {}));
69
+ export var GQLCustomAppUserStatus;
70
+ (function (GQLCustomAppUserStatus) {
71
+ GQLCustomAppUserStatus["Active"] = "ACTIVE";
72
+ GQLCustomAppUserStatus["Erased"] = "ERASED";
73
+ GQLCustomAppUserStatus["Unknown"] = "UNKNOWN";
74
+ GQLCustomAppUserStatus["Unlinked"] = "UNLINKED";
75
+ })(GQLCustomAppUserStatus || (GQLCustomAppUserStatus = {}));
76
+ export var GQLCustomAppUserStatusFilter;
77
+ (function (GQLCustomAppUserStatusFilter) {
78
+ GQLCustomAppUserStatusFilter["AppOnly"] = "APP_ONLY";
79
+ GQLCustomAppUserStatusFilter["Invited"] = "INVITED";
80
+ GQLCustomAppUserStatusFilter["MantaMember"] = "MANTA_MEMBER";
81
+ })(GQLCustomAppUserStatusFilter || (GQLCustomAppUserStatusFilter = {}));
58
82
  export var GQLDataConnectionStatus;
59
83
  (function (GQLDataConnectionStatus) {
60
84
  GQLDataConnectionStatus["Active"] = "ACTIVE";
@@ -74,15 +98,6 @@ export var GQLExecuteActionErrorCode;
74
98
  GQLExecuteActionErrorCode["Conflict"] = "CONFLICT";
75
99
  GQLExecuteActionErrorCode["Unknown"] = "UNKNOWN";
76
100
  })(GQLExecuteActionErrorCode || (GQLExecuteActionErrorCode = {}));
77
- export var GQLExternalAppKind;
78
- (function (GQLExternalAppKind) {
79
- GQLExternalAppKind["Machine"] = "MACHINE";
80
- GQLExternalAppKind["SignIn"] = "SIGN_IN";
81
- })(GQLExternalAppKind || (GQLExternalAppKind = {}));
82
- export var GQLExternalAppPermission;
83
- (function (GQLExternalAppPermission) {
84
- GQLExternalAppPermission["WriteData"] = "WRITE_DATA";
85
- })(GQLExternalAppPermission || (GQLExternalAppPermission = {}));
86
101
  export var GQLFactValueStatus;
87
102
  (function (GQLFactValueStatus) {
88
103
  GQLFactValueStatus["Changed"] = "CHANGED";
@@ -295,15 +310,15 @@ export var GQLUploadPurpose;
295
310
  GQLUploadPurpose["Bundle"] = "BUNDLE";
296
311
  GQLUploadPurpose["File"] = "FILE";
297
312
  })(GQLUploadPurpose || (GQLUploadPurpose = {}));
298
- export const ExternalAppConnectionFieldsFragmentDoc = `
299
- fragment ExternalAppConnectionFields on ExternalAppConnection {
313
+ export const CustomAppConnectionFieldsFragmentDoc = `
314
+ fragment CustomAppConnectionFields on CustomAppConnection {
300
315
  issuer
301
316
  discoveryUrl
302
317
  tokenEndpoint
303
318
  }
304
319
  `;
305
- export const ExternalAppFieldsFragmentDoc = `
306
- fragment ExternalAppFields on ExternalApp {
320
+ export const CustomAppFieldsFragmentDoc = `
321
+ fragment CustomAppFields on CustomApp {
307
322
  clientId
308
323
  name
309
324
  kind
@@ -608,25 +623,9 @@ export const useConsolidateMemoriesMutation = (client, options, headers) => {
608
623
  ...options,
609
624
  });
610
625
  };
611
- export const CreateDataConnectionDocument = `
612
- mutation CreateDataConnection($input: CreateDataConnectionInput!) {
613
- createDataConnection(input: $input) {
614
- id
615
- status
616
- error
617
- }
618
- }
619
- `;
620
- export const useCreateDataConnectionMutation = (client, options, headers) => {
621
- return useMutation({
622
- mutationKey: ["CreateDataConnection"],
623
- mutationFn: (variables) => fetcher(client, CreateDataConnectionDocument, variables, headers)(),
624
- ...options,
625
- });
626
- };
627
- export const CreateExternalAppDocument = `
628
- mutation CreateExternalApp($org: String, $name: String!, $kind: ExternalAppKind, $redirectUris: [String!], $homeUrl: String, $machineAccess: Boolean, $datastores: [String!], $permissions: [ExternalAppPermission!]) {
629
- createExternalApp(
626
+ export const CreateCustomAppDocument = `
627
+ mutation CreateCustomApp($org: String, $name: String!, $kind: CustomAppKind, $redirectUris: [String!], $homeUrl: String, $machineAccess: Boolean, $datastores: [String!], $permissions: [CustomAppPermission!]) {
628
+ createCustomApp(
630
629
  org: $org
631
630
  name: $name
632
631
  kind: $kind
@@ -637,20 +636,36 @@ export const CreateExternalAppDocument = `
637
636
  permissions: $permissions
638
637
  ) {
639
638
  app {
640
- ...ExternalAppFields
639
+ ...CustomAppFields
641
640
  }
642
641
  clientSecret
643
642
  connection {
644
- ...ExternalAppConnectionFields
643
+ ...CustomAppConnectionFields
645
644
  }
646
645
  }
647
646
  }
648
- ${ExternalAppFieldsFragmentDoc}
649
- ${ExternalAppConnectionFieldsFragmentDoc}`;
650
- export const useCreateExternalAppMutation = (client, options, headers) => {
647
+ ${CustomAppFieldsFragmentDoc}
648
+ ${CustomAppConnectionFieldsFragmentDoc}`;
649
+ export const useCreateCustomAppMutation = (client, options, headers) => {
651
650
  return useMutation({
652
- mutationKey: ["CreateExternalApp"],
653
- mutationFn: (variables) => fetcher(client, CreateExternalAppDocument, variables, headers)(),
651
+ mutationKey: ["CreateCustomApp"],
652
+ mutationFn: (variables) => fetcher(client, CreateCustomAppDocument, variables, headers)(),
653
+ ...options,
654
+ });
655
+ };
656
+ export const CreateDataConnectionDocument = `
657
+ mutation CreateDataConnection($input: CreateDataConnectionInput!) {
658
+ createDataConnection(input: $input) {
659
+ id
660
+ status
661
+ error
662
+ }
663
+ }
664
+ `;
665
+ export const useCreateDataConnectionMutation = (client, options, headers) => {
666
+ return useMutation({
667
+ mutationKey: ["CreateDataConnection"],
668
+ mutationFn: (variables) => fetcher(client, CreateDataConnectionDocument, variables, headers)(),
654
669
  ...options,
655
670
  });
656
671
  };
@@ -751,6 +766,21 @@ export const useDeleteActionPlanMutation = (client, options, headers) => {
751
766
  ...options,
752
767
  });
753
768
  };
769
+ export const DeleteCustomAppDocument = `
770
+ mutation DeleteCustomApp($org: String, $clientId: String!) {
771
+ deleteCustomApp(org: $org, clientId: $clientId) {
772
+ clientId
773
+ deleted
774
+ }
775
+ }
776
+ `;
777
+ export const useDeleteCustomAppMutation = (client, options, headers) => {
778
+ return useMutation({
779
+ mutationKey: ["DeleteCustomApp"],
780
+ mutationFn: (variables) => fetcher(client, DeleteCustomAppDocument, variables, headers)(),
781
+ ...options,
782
+ });
783
+ };
754
784
  export const DeleteDataConnectionDocument = `
755
785
  mutation DeleteDataConnection($id: String!) {
756
786
  deleteDataConnection(id: $id) {
@@ -765,18 +795,18 @@ export const useDeleteDataConnectionMutation = (client, options, headers) => {
765
795
  ...options,
766
796
  });
767
797
  };
768
- export const DeleteExternalAppDocument = `
769
- mutation DeleteExternalApp($org: String, $clientId: String!) {
770
- deleteExternalApp(org: $org, clientId: $clientId) {
771
- clientId
772
- deleted
798
+ export const DeleteDatastoreDocument = `
799
+ mutation DeleteDatastore($datastoreId: String!, $confirmName: String!) {
800
+ deleteDatastore(datastoreId: $datastoreId, confirmName: $confirmName) {
801
+ success
802
+ error
773
803
  }
774
804
  }
775
805
  `;
776
- export const useDeleteExternalAppMutation = (client, options, headers) => {
806
+ export const useDeleteDatastoreMutation = (client, options, headers) => {
777
807
  return useMutation({
778
- mutationKey: ["DeleteExternalApp"],
779
- mutationFn: (variables) => fetcher(client, DeleteExternalAppDocument, variables, headers)(),
808
+ mutationKey: ["DeleteDatastore"],
809
+ mutationFn: (variables) => fetcher(client, DeleteDatastoreDocument, variables, headers)(),
780
810
  ...options,
781
811
  });
782
812
  };
@@ -842,6 +872,18 @@ export const useDisconnectConnectedAccountMutation = (client, options, headers)
842
872
  ...options,
843
873
  });
844
874
  };
875
+ export const DisconnectCustomAppDocument = `
876
+ mutation DisconnectCustomApp($clientId: String!) {
877
+ disconnectCustomApp(clientId: $clientId)
878
+ }
879
+ `;
880
+ export const useDisconnectCustomAppMutation = (client, options, headers) => {
881
+ return useMutation({
882
+ mutationKey: ["DisconnectCustomApp"],
883
+ mutationFn: (variables) => fetcher(client, DisconnectCustomAppDocument, variables, headers)(),
884
+ ...options,
885
+ });
886
+ };
845
887
  export const DisconnectGmailIntegrationDocument = `
846
888
  mutation DisconnectGmailIntegration($email: String!) {
847
889
  disconnectGmailIntegration(email: $email) {
@@ -1055,6 +1097,49 @@ export const useInitiateUploadMutation = (client, options, headers) => {
1055
1097
  ...options,
1056
1098
  });
1057
1099
  };
1100
+ export const InviteCustomAppUserDocument = `
1101
+ mutation InviteCustomAppUser($org: String, $clientId: String!, $userId: String!, $email: String, $teams: [String!], $allTeams: Boolean) {
1102
+ inviteCustomAppUser(
1103
+ org: $org
1104
+ clientId: $clientId
1105
+ userId: $userId
1106
+ email: $email
1107
+ teams: $teams
1108
+ allTeams: $allTeams
1109
+ ) {
1110
+ userId
1111
+ invitedAt
1112
+ mantaMember
1113
+ }
1114
+ }
1115
+ `;
1116
+ export const useInviteCustomAppUserMutation = (client, options, headers) => {
1117
+ return useMutation({
1118
+ mutationKey: ["InviteCustomAppUser"],
1119
+ mutationFn: (variables) => fetcher(client, InviteCustomAppUserDocument, variables, headers)(),
1120
+ ...options,
1121
+ });
1122
+ };
1123
+ export const InviteCustomAppUsersDocument = `
1124
+ mutation InviteCustomAppUsers($org: String, $clientId: String!, $people: [CustomAppUserInvitationInput!]!) {
1125
+ inviteCustomAppUsers(org: $org, clientId: $clientId, people: $people) {
1126
+ userId
1127
+ error
1128
+ user {
1129
+ userId
1130
+ invitedAt
1131
+ mantaMember
1132
+ }
1133
+ }
1134
+ }
1135
+ `;
1136
+ export const useInviteCustomAppUsersMutation = (client, options, headers) => {
1137
+ return useMutation({
1138
+ mutationKey: ["InviteCustomAppUsers"],
1139
+ mutationFn: (variables) => fetcher(client, InviteCustomAppUsersDocument, variables, headers)(),
1140
+ ...options,
1141
+ });
1142
+ };
1058
1143
  export const LinkOrganizationToProviderDocument = `
1059
1144
  mutation LinkOrganizationToProvider($organizationId: String!) {
1060
1145
  linkOrganizationToProvider(organizationId: $organizationId) {
@@ -1291,6 +1376,57 @@ export const useReleaseRuleOwnershipMutation = (client, options, headers) => {
1291
1376
  ...options,
1292
1377
  });
1293
1378
  };
1379
+ export const RemoveCustomAppUserDocument = `
1380
+ mutation RemoveCustomAppUser($org: String, $clientId: String!, $userId: String!) {
1381
+ removeCustomAppUser(org: $org, clientId: $clientId, userId: $userId) {
1382
+ userId
1383
+ status
1384
+ }
1385
+ }
1386
+ `;
1387
+ export const useRemoveCustomAppUserMutation = (client, options, headers) => {
1388
+ return useMutation({
1389
+ mutationKey: ["RemoveCustomAppUser"],
1390
+ mutationFn: (variables) => fetcher(client, RemoveCustomAppUserDocument, variables, headers)(),
1391
+ ...options,
1392
+ });
1393
+ };
1394
+ export const RemoveCustomAppUsersCreatedBetweenDocument = `
1395
+ mutation RemoveCustomAppUsersCreatedBetween($org: String, $clientId: String!, $createdFrom: String!, $createdUntil: String!) {
1396
+ removeCustomAppUsersCreatedBetween(
1397
+ org: $org
1398
+ clientId: $clientId
1399
+ createdFrom: $createdFrom
1400
+ createdUntil: $createdUntil
1401
+ ) {
1402
+ removed
1403
+ remaining
1404
+ }
1405
+ }
1406
+ `;
1407
+ export const useRemoveCustomAppUsersCreatedBetweenMutation = (client, options, headers) => {
1408
+ return useMutation({
1409
+ mutationKey: ["RemoveCustomAppUsersCreatedBetween"],
1410
+ mutationFn: (variables) => fetcher(client, RemoveCustomAppUsersCreatedBetweenDocument, variables, headers)(),
1411
+ ...options,
1412
+ });
1413
+ };
1414
+ export const RemoveCustomAppUsersDocument = `
1415
+ mutation RemoveCustomAppUsers($org: String, $clientId: String!, $userIds: [String!]!) {
1416
+ removeCustomAppUsers(org: $org, clientId: $clientId, userIds: $userIds) {
1417
+ userId
1418
+ status
1419
+ error
1420
+ }
1421
+ }
1422
+ `;
1423
+ export const useRemoveCustomAppUsersMutation = (client, options, headers) => {
1424
+ return useMutation({
1425
+ mutationKey: ["RemoveCustomAppUsers"],
1426
+ mutationFn: (variables) => fetcher(client, RemoveCustomAppUsersDocument, variables, headers)(),
1427
+ ...options,
1428
+ });
1429
+ };
1294
1430
  export const RemoveDatastoreDocument = `
1295
1431
  mutation RemoveDatastore($datastoreId: String!) {
1296
1432
  removeDatastore(datastoreId: $datastoreId) {
@@ -1401,56 +1537,56 @@ export const useRevokeOperatorRoleMutation = (client, options, headers) => {
1401
1537
  ...options,
1402
1538
  });
1403
1539
  };
1404
- export const RevokePreviousExternalAppSecretDocument = `
1405
- mutation RevokePreviousExternalAppSecret($org: String, $clientId: String!) {
1406
- revokePreviousExternalAppSecret(org: $org, clientId: $clientId) {
1407
- ...ExternalAppFields
1540
+ export const RevokePreviousCustomAppSecretDocument = `
1541
+ mutation RevokePreviousCustomAppSecret($org: String, $clientId: String!) {
1542
+ revokePreviousCustomAppSecret(org: $org, clientId: $clientId) {
1543
+ ...CustomAppFields
1408
1544
  }
1409
1545
  }
1410
- ${ExternalAppFieldsFragmentDoc}`;
1411
- export const useRevokePreviousExternalAppSecretMutation = (client, options, headers) => {
1546
+ ${CustomAppFieldsFragmentDoc}`;
1547
+ export const useRevokePreviousCustomAppSecretMutation = (client, options, headers) => {
1412
1548
  return useMutation({
1413
- mutationKey: ["RevokePreviousExternalAppSecret"],
1414
- mutationFn: (variables) => fetcher(client, RevokePreviousExternalAppSecretDocument, variables, headers)(),
1549
+ mutationKey: ["RevokePreviousCustomAppSecret"],
1550
+ mutationFn: (variables) => fetcher(client, RevokePreviousCustomAppSecretDocument, variables, headers)(),
1415
1551
  ...options,
1416
1552
  });
1417
1553
  };
1418
- export const RotateExternalAppSecretDocument = `
1419
- mutation RotateExternalAppSecret($org: String, $clientId: String!, $keepPrevious: Boolean) {
1420
- rotateExternalAppSecret(
1554
+ export const RotateCustomAppSecretDocument = `
1555
+ mutation RotateCustomAppSecret($org: String, $clientId: String!, $keepPrevious: Boolean) {
1556
+ rotateCustomAppSecret(
1421
1557
  org: $org
1422
1558
  clientId: $clientId
1423
1559
  keepPrevious: $keepPrevious
1424
1560
  ) {
1425
1561
  app {
1426
- ...ExternalAppFields
1562
+ ...CustomAppFields
1427
1563
  }
1428
1564
  clientSecret
1429
1565
  connection {
1430
- ...ExternalAppConnectionFields
1566
+ ...CustomAppConnectionFields
1431
1567
  }
1432
1568
  }
1433
1569
  }
1434
- ${ExternalAppFieldsFragmentDoc}
1435
- ${ExternalAppConnectionFieldsFragmentDoc}`;
1436
- export const useRotateExternalAppSecretMutation = (client, options, headers) => {
1570
+ ${CustomAppFieldsFragmentDoc}
1571
+ ${CustomAppConnectionFieldsFragmentDoc}`;
1572
+ export const useRotateCustomAppSecretMutation = (client, options, headers) => {
1437
1573
  return useMutation({
1438
- mutationKey: ["RotateExternalAppSecret"],
1439
- mutationFn: (variables) => fetcher(client, RotateExternalAppSecretDocument, variables, headers)(),
1574
+ mutationKey: ["RotateCustomAppSecret"],
1575
+ mutationFn: (variables) => fetcher(client, RotateCustomAppSecretDocument, variables, headers)(),
1440
1576
  ...options,
1441
1577
  });
1442
1578
  };
1443
- export const SetExternalAppEnabledDocument = `
1444
- mutation SetExternalAppEnabled($org: String, $clientId: String!, $enabled: Boolean!) {
1445
- setExternalAppEnabled(org: $org, clientId: $clientId, enabled: $enabled) {
1446
- ...ExternalAppFields
1579
+ export const SetCustomAppEnabledDocument = `
1580
+ mutation SetCustomAppEnabled($org: String, $clientId: String!, $enabled: Boolean!) {
1581
+ setCustomAppEnabled(org: $org, clientId: $clientId, enabled: $enabled) {
1582
+ ...CustomAppFields
1447
1583
  }
1448
1584
  }
1449
- ${ExternalAppFieldsFragmentDoc}`;
1450
- export const useSetExternalAppEnabledMutation = (client, options, headers) => {
1585
+ ${CustomAppFieldsFragmentDoc}`;
1586
+ export const useSetCustomAppEnabledMutation = (client, options, headers) => {
1451
1587
  return useMutation({
1452
- mutationKey: ["SetExternalAppEnabled"],
1453
- mutationFn: (variables) => fetcher(client, SetExternalAppEnabledDocument, variables, headers)(),
1588
+ mutationKey: ["SetCustomAppEnabled"],
1589
+ mutationFn: (variables) => fetcher(client, SetCustomAppEnabledDocument, variables, headers)(),
1454
1590
  ...options,
1455
1591
  });
1456
1592
  };
@@ -1512,6 +1648,29 @@ export const useSyncGmailIntegrationMutation = (client, options, headers) => {
1512
1648
  ...options,
1513
1649
  });
1514
1650
  };
1651
+ export const UpdateCustomAppDocument = `
1652
+ mutation UpdateCustomApp($org: String, $clientId: String!, $name: String, $redirectUris: [String!], $homeUrl: String, $machineAccess: Boolean, $datastores: [String!], $permissions: [CustomAppPermission!]) {
1653
+ updateCustomApp(
1654
+ org: $org
1655
+ clientId: $clientId
1656
+ name: $name
1657
+ redirectUris: $redirectUris
1658
+ homeUrl: $homeUrl
1659
+ machineAccess: $machineAccess
1660
+ datastores: $datastores
1661
+ permissions: $permissions
1662
+ ) {
1663
+ ...CustomAppFields
1664
+ }
1665
+ }
1666
+ ${CustomAppFieldsFragmentDoc}`;
1667
+ export const useUpdateCustomAppMutation = (client, options, headers) => {
1668
+ return useMutation({
1669
+ mutationKey: ["UpdateCustomApp"],
1670
+ mutationFn: (variables) => fetcher(client, UpdateCustomAppDocument, variables, headers)(),
1671
+ ...options,
1672
+ });
1673
+ };
1515
1674
  export const UpdateDataConnectionDocument = `
1516
1675
  mutation UpdateDataConnection($input: UpdateDataConnectionInput!) {
1517
1676
  updateDataConnection(input: $input) {
@@ -1528,29 +1687,6 @@ export const useUpdateDataConnectionMutation = (client, options, headers) => {
1528
1687
  ...options,
1529
1688
  });
1530
1689
  };
1531
- export const UpdateExternalAppDocument = `
1532
- mutation UpdateExternalApp($org: String, $clientId: String!, $name: String, $redirectUris: [String!], $homeUrl: String, $machineAccess: Boolean, $datastores: [String!], $permissions: [ExternalAppPermission!]) {
1533
- updateExternalApp(
1534
- org: $org
1535
- clientId: $clientId
1536
- name: $name
1537
- redirectUris: $redirectUris
1538
- homeUrl: $homeUrl
1539
- machineAccess: $machineAccess
1540
- datastores: $datastores
1541
- permissions: $permissions
1542
- ) {
1543
- ...ExternalAppFields
1544
- }
1545
- }
1546
- ${ExternalAppFieldsFragmentDoc}`;
1547
- export const useUpdateExternalAppMutation = (client, options, headers) => {
1548
- return useMutation({
1549
- mutationKey: ["UpdateExternalApp"],
1550
- mutationFn: (variables) => fetcher(client, UpdateExternalAppDocument, variables, headers)(),
1551
- ...options,
1552
- });
1553
- };
1554
1690
  export const UpdateMemoryDocument = `
1555
1691
  mutation UpdateMemory($input: UpdateMemoryInput!) {
1556
1692
  updateMemory(input: $input) {
@@ -1999,6 +2135,31 @@ export const useSuspenseConnectedAccountsQuery = (client, variables, options, he
1999
2135
  });
2000
2136
  };
2001
2137
  useSuspenseConnectedAccountsQuery.getKey = (variables) => variables === undefined ? ["ConnectedAccountsSuspense"] : ["ConnectedAccountsSuspense", variables];
2138
+ export const ConnectedCustomAppsDocument = `
2139
+ query ConnectedCustomApps {
2140
+ connectedCustomApps {
2141
+ clientId
2142
+ name
2143
+ orgName
2144
+ }
2145
+ }
2146
+ `;
2147
+ export const useConnectedCustomAppsQuery = (client, variables, options, headers) => {
2148
+ return useQuery({
2149
+ queryKey: variables === undefined ? ["ConnectedCustomApps"] : ["ConnectedCustomApps", variables],
2150
+ queryFn: fetcher(client, ConnectedCustomAppsDocument, variables, headers),
2151
+ ...options,
2152
+ });
2153
+ };
2154
+ useConnectedCustomAppsQuery.getKey = (variables) => variables === undefined ? ["ConnectedCustomApps"] : ["ConnectedCustomApps", variables];
2155
+ export const useSuspenseConnectedCustomAppsQuery = (client, variables, options, headers) => {
2156
+ return useSuspenseQuery({
2157
+ queryKey: variables === undefined ? ["ConnectedCustomAppsSuspense"] : ["ConnectedCustomAppsSuspense", variables],
2158
+ queryFn: fetcher(client, ConnectedCustomAppsDocument, variables, headers),
2159
+ ...options,
2160
+ });
2161
+ };
2162
+ useSuspenseConnectedCustomAppsQuery.getKey = (variables) => variables === undefined ? ["ConnectedCustomAppsSuspense"] : ["ConnectedCustomAppsSuspense", variables];
2002
2163
  export const ConversationStartersDocument = `
2003
2164
  query ConversationStarters($planGraphIri: IRI) {
2004
2165
  conversationStarters(planGraphIri: $planGraphIri) {
@@ -2101,6 +2262,130 @@ useSuspenseCurrentFactValueQuery.getKey = (variables) => [
2101
2262
  "CurrentFactValueSuspense",
2102
2263
  variables,
2103
2264
  ];
2265
+ export const CustomAppDatastoresDocument = `
2266
+ query CustomAppDatastores($org: String) {
2267
+ customAppDatastores(org: $org) {
2268
+ id
2269
+ name
2270
+ depth
2271
+ }
2272
+ }
2273
+ `;
2274
+ export const useCustomAppDatastoresQuery = (client, variables, options, headers) => {
2275
+ return useQuery({
2276
+ queryKey: variables === undefined ? ["CustomAppDatastores"] : ["CustomAppDatastores", variables],
2277
+ queryFn: fetcher(client, CustomAppDatastoresDocument, variables, headers),
2278
+ ...options,
2279
+ });
2280
+ };
2281
+ useCustomAppDatastoresQuery.getKey = (variables) => variables === undefined ? ["CustomAppDatastores"] : ["CustomAppDatastores", variables];
2282
+ export const useSuspenseCustomAppDatastoresQuery = (client, variables, options, headers) => {
2283
+ return useSuspenseQuery({
2284
+ queryKey: variables === undefined ? ["CustomAppDatastoresSuspense"] : ["CustomAppDatastoresSuspense", variables],
2285
+ queryFn: fetcher(client, CustomAppDatastoresDocument, variables, headers),
2286
+ ...options,
2287
+ });
2288
+ };
2289
+ useSuspenseCustomAppDatastoresQuery.getKey = (variables) => variables === undefined ? ["CustomAppDatastoresSuspense"] : ["CustomAppDatastoresSuspense", variables];
2290
+ export const CustomAppUsersDocument = `
2291
+ query CustomAppUsers($org: String, $clientId: String!, $first: Int, $max: Int, $createdFrom: String, $createdUntil: String, $search: String, $status: CustomAppUserStatusFilter) {
2292
+ customAppUsers(
2293
+ org: $org
2294
+ clientId: $clientId
2295
+ first: $first
2296
+ max: $max
2297
+ createdFrom: $createdFrom
2298
+ createdUntil: $createdUntil
2299
+ search: $search
2300
+ status: $status
2301
+ ) {
2302
+ users {
2303
+ userId
2304
+ name
2305
+ email
2306
+ teams
2307
+ allTeams
2308
+ createdAt
2309
+ chatCount
2310
+ invitedAt
2311
+ mantaMember
2312
+ }
2313
+ total
2314
+ }
2315
+ }
2316
+ `;
2317
+ export const useCustomAppUsersQuery = (client, variables, options, headers) => {
2318
+ return useQuery({
2319
+ queryKey: ["CustomAppUsers", variables],
2320
+ queryFn: fetcher(client, CustomAppUsersDocument, variables, headers),
2321
+ ...options,
2322
+ });
2323
+ };
2324
+ useCustomAppUsersQuery.getKey = (variables) => ["CustomAppUsers", variables];
2325
+ export const useSuspenseCustomAppUsersQuery = (client, variables, options, headers) => {
2326
+ return useSuspenseQuery({
2327
+ queryKey: ["CustomAppUsersSuspense", variables],
2328
+ queryFn: fetcher(client, CustomAppUsersDocument, variables, headers),
2329
+ ...options,
2330
+ });
2331
+ };
2332
+ useSuspenseCustomAppUsersQuery.getKey = (variables) => [
2333
+ "CustomAppUsersSuspense",
2334
+ variables,
2335
+ ];
2336
+ export const CustomAppDocument = `
2337
+ query CustomApp($org: String, $clientId: String!) {
2338
+ customApp(org: $org, clientId: $clientId) {
2339
+ ...CustomAppFields
2340
+ }
2341
+ }
2342
+ ${CustomAppFieldsFragmentDoc}`;
2343
+ export const useCustomAppQuery = (client, variables, options, headers) => {
2344
+ return useQuery({
2345
+ queryKey: ["CustomApp", variables],
2346
+ queryFn: fetcher(client, CustomAppDocument, variables, headers),
2347
+ ...options,
2348
+ });
2349
+ };
2350
+ useCustomAppQuery.getKey = (variables) => ["CustomApp", variables];
2351
+ export const useSuspenseCustomAppQuery = (client, variables, options, headers) => {
2352
+ return useSuspenseQuery({
2353
+ queryKey: ["CustomAppSuspense", variables],
2354
+ queryFn: fetcher(client, CustomAppDocument, variables, headers),
2355
+ ...options,
2356
+ });
2357
+ };
2358
+ useSuspenseCustomAppQuery.getKey = (variables) => ["CustomAppSuspense", variables];
2359
+ export const CustomAppsDocument = `
2360
+ query CustomApps($org: String, $first: Int, $max: Int, $search: String) {
2361
+ customApps(org: $org, first: $first, max: $max, search: $search) {
2362
+ apps {
2363
+ ...CustomAppFields
2364
+ }
2365
+ nextFirst
2366
+ connection {
2367
+ ...CustomAppConnectionFields
2368
+ }
2369
+ }
2370
+ }
2371
+ ${CustomAppFieldsFragmentDoc}
2372
+ ${CustomAppConnectionFieldsFragmentDoc}`;
2373
+ export const useCustomAppsQuery = (client, variables, options, headers) => {
2374
+ return useQuery({
2375
+ queryKey: variables === undefined ? ["CustomApps"] : ["CustomApps", variables],
2376
+ queryFn: fetcher(client, CustomAppsDocument, variables, headers),
2377
+ ...options,
2378
+ });
2379
+ };
2380
+ useCustomAppsQuery.getKey = (variables) => variables === undefined ? ["CustomApps"] : ["CustomApps", variables];
2381
+ export const useSuspenseCustomAppsQuery = (client, variables, options, headers) => {
2382
+ return useSuspenseQuery({
2383
+ queryKey: variables === undefined ? ["CustomAppsSuspense"] : ["CustomAppsSuspense", variables],
2384
+ queryFn: fetcher(client, CustomAppsDocument, variables, headers),
2385
+ ...options,
2386
+ });
2387
+ };
2388
+ useSuspenseCustomAppsQuery.getKey = (variables) => variables === undefined ? ["CustomAppsSuspense"] : ["CustomAppsSuspense", variables];
2104
2389
  export const CustomerDatastoresDocument = `
2105
2390
  query CustomerDatastores {
2106
2391
  customerDatastores {
@@ -2168,6 +2453,7 @@ export const DataConnectionsDocument = `
2168
2453
  id
2169
2454
  name
2170
2455
  connectorType
2456
+ sourceName
2171
2457
  status
2172
2458
  error
2173
2459
  createdAt
@@ -2445,61 +2731,6 @@ useSuspenseExplainRdFoxFactQuery.getKey = (variables) => [
2445
2731
  "ExplainRDFoxFactSuspense",
2446
2732
  variables,
2447
2733
  ];
2448
- export const ExternalAppDatastoresDocument = `
2449
- query ExternalAppDatastores($org: String) {
2450
- externalAppDatastores(org: $org) {
2451
- id
2452
- name
2453
- depth
2454
- }
2455
- }
2456
- `;
2457
- export const useExternalAppDatastoresQuery = (client, variables, options, headers) => {
2458
- return useQuery({
2459
- queryKey: variables === undefined ? ["ExternalAppDatastores"] : ["ExternalAppDatastores", variables],
2460
- queryFn: fetcher(client, ExternalAppDatastoresDocument, variables, headers),
2461
- ...options,
2462
- });
2463
- };
2464
- useExternalAppDatastoresQuery.getKey = (variables) => variables === undefined ? ["ExternalAppDatastores"] : ["ExternalAppDatastores", variables];
2465
- export const useSuspenseExternalAppDatastoresQuery = (client, variables, options, headers) => {
2466
- return useSuspenseQuery({
2467
- queryKey: variables === undefined ? ["ExternalAppDatastoresSuspense"] : ["ExternalAppDatastoresSuspense", variables],
2468
- queryFn: fetcher(client, ExternalAppDatastoresDocument, variables, headers),
2469
- ...options,
2470
- });
2471
- };
2472
- useSuspenseExternalAppDatastoresQuery.getKey = (variables) => variables === undefined ? ["ExternalAppDatastoresSuspense"] : ["ExternalAppDatastoresSuspense", variables];
2473
- export const ExternalAppsDocument = `
2474
- query ExternalApps($org: String, $first: Int, $max: Int, $search: String) {
2475
- externalApps(org: $org, first: $first, max: $max, search: $search) {
2476
- apps {
2477
- ...ExternalAppFields
2478
- }
2479
- nextFirst
2480
- connection {
2481
- ...ExternalAppConnectionFields
2482
- }
2483
- }
2484
- }
2485
- ${ExternalAppFieldsFragmentDoc}
2486
- ${ExternalAppConnectionFieldsFragmentDoc}`;
2487
- export const useExternalAppsQuery = (client, variables, options, headers) => {
2488
- return useQuery({
2489
- queryKey: variables === undefined ? ["ExternalApps"] : ["ExternalApps", variables],
2490
- queryFn: fetcher(client, ExternalAppsDocument, variables, headers),
2491
- ...options,
2492
- });
2493
- };
2494
- useExternalAppsQuery.getKey = (variables) => variables === undefined ? ["ExternalApps"] : ["ExternalApps", variables];
2495
- export const useSuspenseExternalAppsQuery = (client, variables, options, headers) => {
2496
- return useSuspenseQuery({
2497
- queryKey: variables === undefined ? ["ExternalAppsSuspense"] : ["ExternalAppsSuspense", variables],
2498
- queryFn: fetcher(client, ExternalAppsDocument, variables, headers),
2499
- ...options,
2500
- });
2501
- };
2502
- useSuspenseExternalAppsQuery.getKey = (variables) => variables === undefined ? ["ExternalAppsSuspense"] : ["ExternalAppsSuspense", variables];
2503
2734
  export const GmailIntegrationsDocument = `
2504
2735
  query GmailIntegrations {
2505
2736
  gmailIntegrations {
@@ -2567,6 +2798,42 @@ export const useSuspenseGoogleAnalyticsSetupProgressQuery = (client, variables,
2567
2798
  useSuspenseGoogleAnalyticsSetupProgressQuery.getKey = (variables) => variables === undefined
2568
2799
  ? ["GoogleAnalyticsSetupProgressSuspense"]
2569
2800
  : ["GoogleAnalyticsSetupProgressSuspense", variables];
2801
+ export const GoogleBrandSuggestionsDocument = `
2802
+ query GoogleBrandSuggestions($customerIri: IRI!, $brandPrefix: String!, $selectedBrandIds: [String!]) {
2803
+ googleBrandSuggestions(
2804
+ customerIri: $customerIri
2805
+ brandPrefix: $brandPrefix
2806
+ selectedBrandIds: $selectedBrandIds
2807
+ ) {
2808
+ id
2809
+ name
2810
+ urls
2811
+ state
2812
+ }
2813
+ }
2814
+ `;
2815
+ export const useGoogleBrandSuggestionsQuery = (client, variables, options, headers) => {
2816
+ return useQuery({
2817
+ queryKey: ["GoogleBrandSuggestions", variables],
2818
+ queryFn: fetcher(client, GoogleBrandSuggestionsDocument, variables, headers),
2819
+ ...options,
2820
+ });
2821
+ };
2822
+ useGoogleBrandSuggestionsQuery.getKey = (variables) => [
2823
+ "GoogleBrandSuggestions",
2824
+ variables,
2825
+ ];
2826
+ export const useSuspenseGoogleBrandSuggestionsQuery = (client, variables, options, headers) => {
2827
+ return useSuspenseQuery({
2828
+ queryKey: ["GoogleBrandSuggestionsSuspense", variables],
2829
+ queryFn: fetcher(client, GoogleBrandSuggestionsDocument, variables, headers),
2830
+ ...options,
2831
+ });
2832
+ };
2833
+ useSuspenseGoogleBrandSuggestionsQuery.getKey = (variables) => [
2834
+ "GoogleBrandSuggestionsSuspense",
2835
+ variables,
2836
+ ];
2570
2837
  export const GoogleSetupProgressDocument = `
2571
2838
  query GoogleSetupProgress {
2572
2839
  googleSetupProgress {
@@ -3042,7 +3309,7 @@ export const SessionContextDocument = `
3042
3309
  canManageStreams
3043
3310
  canManageSharedMemories
3044
3311
  canManageTeam
3045
- canManageExternalApps
3312
+ canManageCustomApps
3046
3313
  datastore {
3047
3314
  id
3048
3315
  name
@@ -3228,6 +3495,7 @@ export const TeamDirectoryDocument = `
3228
3495
  inviteUrl
3229
3496
  federated
3230
3497
  nameReadOnly
3498
+ operator
3231
3499
  enabled
3232
3500
  memberships {
3233
3501
  org
@@ -3519,4 +3787,41 @@ useSuspenseValidateActionPlanQuery.getKey = (variables) => [
3519
3787
  "ValidateActionPlanSuspense",
3520
3788
  variables,
3521
3789
  ];
3790
+ export const WarehouseQueryDocument = `
3791
+ query WarehouseQuery($sql: String!) {
3792
+ warehouseQuery(sql: $sql) {
3793
+ columns {
3794
+ name
3795
+ type
3796
+ }
3797
+ rows
3798
+ truncated
3799
+ statistics {
3800
+ scanRows
3801
+ scanBytes
3802
+ returnRows
3803
+ }
3804
+ error
3805
+ }
3806
+ }
3807
+ `;
3808
+ export const useWarehouseQueryQuery = (client, variables, options, headers) => {
3809
+ return useQuery({
3810
+ queryKey: ["WarehouseQuery", variables],
3811
+ queryFn: fetcher(client, WarehouseQueryDocument, variables, headers),
3812
+ ...options,
3813
+ });
3814
+ };
3815
+ useWarehouseQueryQuery.getKey = (variables) => ["WarehouseQuery", variables];
3816
+ export const useSuspenseWarehouseQueryQuery = (client, variables, options, headers) => {
3817
+ return useSuspenseQuery({
3818
+ queryKey: ["WarehouseQuerySuspense", variables],
3819
+ queryFn: fetcher(client, WarehouseQueryDocument, variables, headers),
3820
+ ...options,
3821
+ });
3822
+ };
3823
+ useSuspenseWarehouseQueryQuery.getKey = (variables) => [
3824
+ "WarehouseQuerySuspense",
3825
+ variables,
3826
+ ];
3522
3827
  //# sourceMappingURL=graphql.js.map