@manta-eu/client 0.1.3 → 0.1.4

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.
@@ -43,6 +43,12 @@ export var GQLActionPlanState;
43
43
  GQLActionPlanState["Running"] = "RUNNING";
44
44
  GQLActionPlanState["TimedOut"] = "TIMED_OUT";
45
45
  })(GQLActionPlanState || (GQLActionPlanState = {}));
46
+ export var GQLAssignmentOutcome;
47
+ (function (GQLAssignmentOutcome) {
48
+ GQLAssignmentOutcome["Already"] = "already";
49
+ GQLAssignmentOutcome["Assigned"] = "assigned";
50
+ GQLAssignmentOutcome["Failed"] = "failed";
51
+ })(GQLAssignmentOutcome || (GQLAssignmentOutcome = {}));
46
52
  export var GQLConversationStarterSource;
47
53
  (function (GQLConversationStarterSource) {
48
54
  GQLConversationStarterSource["Default"] = "DEFAULT";
@@ -86,6 +92,7 @@ export var GQLInferalIntegrationProvider;
86
92
  GQLInferalIntegrationProvider["GoogleAds"] = "GOOGLE_ADS";
87
93
  GQLInferalIntegrationProvider["GoogleAnalytics"] = "GOOGLE_ANALYTICS";
88
94
  GQLInferalIntegrationProvider["GoogleMerchant"] = "GOOGLE_MERCHANT";
95
+ GQLInferalIntegrationProvider["Klaviyo"] = "KLAVIYO";
89
96
  GQLInferalIntegrationProvider["Linkedin"] = "LINKEDIN";
90
97
  GQLInferalIntegrationProvider["Mailchimp"] = "MAILCHIMP";
91
98
  GQLInferalIntegrationProvider["Meta"] = "META";
@@ -120,6 +127,18 @@ export var GQLIntegration;
120
127
  GQLIntegration["Snapchat"] = "SNAPCHAT";
121
128
  GQLIntegration["Woocommerce"] = "WOOCOMMERCE";
122
129
  })(GQLIntegration || (GQLIntegration = {}));
130
+ export var GQLInviteGrantOutcome;
131
+ (function (GQLInviteGrantOutcome) {
132
+ GQLInviteGrantOutcome["Applied"] = "applied";
133
+ GQLInviteGrantOutcome["Dropped"] = "dropped";
134
+ GQLInviteGrantOutcome["Recorded"] = "recorded";
135
+ })(GQLInviteGrantOutcome || (GQLInviteGrantOutcome = {}));
136
+ export var GQLInviteOutcome;
137
+ (function (GQLInviteOutcome) {
138
+ GQLInviteOutcome["Already"] = "already";
139
+ GQLInviteOutcome["Failed"] = "failed";
140
+ GQLInviteOutcome["Invited"] = "invited";
141
+ })(GQLInviteOutcome || (GQLInviteOutcome = {}));
123
142
  export var GQLLdesAuthType;
124
143
  (function (GQLLdesAuthType) {
125
144
  GQLLdesAuthType["Basic"] = "BASIC";
@@ -217,6 +236,18 @@ export var GQLShaclSeverity;
217
236
  GQLShaclSeverity["Violation"] = "VIOLATION";
218
237
  GQLShaclSeverity["Warning"] = "WARNING";
219
238
  })(GQLShaclSeverity || (GQLShaclSeverity = {}));
239
+ export var GQLTeamDirectoryActivation;
240
+ (function (GQLTeamDirectoryActivation) {
241
+ GQLTeamDirectoryActivation["All"] = "ALL";
242
+ GQLTeamDirectoryActivation["Disabled"] = "DISABLED";
243
+ GQLTeamDirectoryActivation["Enabled"] = "ENABLED";
244
+ })(GQLTeamDirectoryActivation || (GQLTeamDirectoryActivation = {}));
245
+ export var GQLTeamDirectoryScope;
246
+ (function (GQLTeamDirectoryScope) {
247
+ GQLTeamDirectoryScope["All"] = "ALL";
248
+ GQLTeamDirectoryScope["Assigned"] = "ASSIGNED";
249
+ GQLTeamDirectoryScope["Unassigned"] = "UNASSIGNED";
250
+ })(GQLTeamDirectoryScope || (GQLTeamDirectoryScope = {}));
220
251
  export var GQLTestTripleObjectType;
221
252
  (function (GQLTestTripleObjectType) {
222
253
  GQLTestTripleObjectType["Iri"] = "IRI";
@@ -1503,6 +1534,63 @@ useSuspenseActionPlanDiffQuery.getKey = (variables) => [
1503
1534
  "ActionPlanDiffSuspense",
1504
1535
  variables,
1505
1536
  ];
1537
+ export const AssignableGroupsDocument = `
1538
+ query AssignableGroups($org: String) {
1539
+ assignableGroups(org: $org) {
1540
+ path
1541
+ name
1542
+ depth
1543
+ selectable
1544
+ }
1545
+ }
1546
+ `;
1547
+ export const useAssignableGroupsQuery = (client, variables, options, headers) => {
1548
+ return useQuery({
1549
+ queryKey: variables === undefined ? ["AssignableGroups"] : ["AssignableGroups", variables],
1550
+ queryFn: fetcher(client, AssignableGroupsDocument, variables, headers),
1551
+ ...options,
1552
+ });
1553
+ };
1554
+ useAssignableGroupsQuery.getKey = (variables) => variables === undefined ? ["AssignableGroups"] : ["AssignableGroups", variables];
1555
+ export const useSuspenseAssignableGroupsQuery = (client, variables, options, headers) => {
1556
+ return useSuspenseQuery({
1557
+ queryKey: variables === undefined ? ["AssignableGroupsSuspense"] : ["AssignableGroupsSuspense", variables],
1558
+ queryFn: fetcher(client, AssignableGroupsDocument, variables, headers),
1559
+ ...options,
1560
+ });
1561
+ };
1562
+ useSuspenseAssignableGroupsQuery.getKey = (variables) => variables === undefined ? ["AssignableGroupsSuspense"] : ["AssignableGroupsSuspense", variables];
1563
+ export const AssignableOrganizationsDocument = `
1564
+ query AssignableOrganizations {
1565
+ assignableOrganizations {
1566
+ alias
1567
+ name
1568
+ wholeOrg
1569
+ groups {
1570
+ path
1571
+ name
1572
+ depth
1573
+ selectable
1574
+ }
1575
+ }
1576
+ }
1577
+ `;
1578
+ export const useAssignableOrganizationsQuery = (client, variables, options, headers) => {
1579
+ return useQuery({
1580
+ queryKey: variables === undefined ? ["AssignableOrganizations"] : ["AssignableOrganizations", variables],
1581
+ queryFn: fetcher(client, AssignableOrganizationsDocument, variables, headers),
1582
+ ...options,
1583
+ });
1584
+ };
1585
+ useAssignableOrganizationsQuery.getKey = (variables) => variables === undefined ? ["AssignableOrganizations"] : ["AssignableOrganizations", variables];
1586
+ export const useSuspenseAssignableOrganizationsQuery = (client, variables, options, headers) => {
1587
+ return useSuspenseQuery({
1588
+ queryKey: variables === undefined ? ["AssignableOrganizationsSuspense"] : ["AssignableOrganizationsSuspense", variables],
1589
+ queryFn: fetcher(client, AssignableOrganizationsDocument, variables, headers),
1590
+ ...options,
1591
+ });
1592
+ };
1593
+ useSuspenseAssignableOrganizationsQuery.getKey = (variables) => variables === undefined ? ["AssignableOrganizationsSuspense"] : ["AssignableOrganizationsSuspense", variables];
1506
1594
  export const AvailableTeamsDocument = `
1507
1595
  query AvailableTeams {
1508
1596
  availableTeams {
@@ -1660,6 +1748,33 @@ useSuspenseCurrentFactValueQuery.getKey = (variables) => [
1660
1748
  "CurrentFactValueSuspense",
1661
1749
  variables,
1662
1750
  ];
1751
+ export const CustomerDatastoresDocument = `
1752
+ query CustomerDatastores {
1753
+ customerDatastores {
1754
+ id
1755
+ name
1756
+ depth
1757
+ selectable
1758
+ badge
1759
+ }
1760
+ }
1761
+ `;
1762
+ export const useCustomerDatastoresQuery = (client, variables, options, headers) => {
1763
+ return useQuery({
1764
+ queryKey: variables === undefined ? ["CustomerDatastores"] : ["CustomerDatastores", variables],
1765
+ queryFn: fetcher(client, CustomerDatastoresDocument, variables, headers),
1766
+ ...options,
1767
+ });
1768
+ };
1769
+ useCustomerDatastoresQuery.getKey = (variables) => variables === undefined ? ["CustomerDatastores"] : ["CustomerDatastores", variables];
1770
+ export const useSuspenseCustomerDatastoresQuery = (client, variables, options, headers) => {
1771
+ return useSuspenseQuery({
1772
+ queryKey: variables === undefined ? ["CustomerDatastoresSuspense"] : ["CustomerDatastoresSuspense", variables],
1773
+ queryFn: fetcher(client, CustomerDatastoresDocument, variables, headers),
1774
+ ...options,
1775
+ });
1776
+ };
1777
+ useSuspenseCustomerDatastoresQuery.getKey = (variables) => variables === undefined ? ["CustomerDatastoresSuspense"] : ["CustomerDatastoresSuspense", variables];
1663
1778
  export const DashSetupProgressDocument = `
1664
1779
  query DashSetupProgress {
1665
1780
  dashSetupProgress {
@@ -2341,6 +2456,60 @@ export const useSuspenseRulesQuery = (client, variables, options, headers) => {
2341
2456
  });
2342
2457
  };
2343
2458
  useSuspenseRulesQuery.getKey = (variables) => variables === undefined ? ["RulesSuspense"] : ["RulesSuspense", variables];
2459
+ export const SessionContextDocument = `
2460
+ query SessionContext {
2461
+ sessionContext {
2462
+ datastoreAccessGranted
2463
+ user {
2464
+ id
2465
+ email
2466
+ name
2467
+ isOperator
2468
+ isOrgAdmin
2469
+ adminOrgs
2470
+ memberOrgs
2471
+ canManageIntegrations
2472
+ canManageTeam
2473
+ datastore {
2474
+ id
2475
+ name
2476
+ depth
2477
+ selectable
2478
+ badge
2479
+ }
2480
+ }
2481
+ datastores {
2482
+ id
2483
+ name
2484
+ depth
2485
+ selectable
2486
+ badge
2487
+ }
2488
+ orgRoles {
2489
+ id
2490
+ groupName
2491
+ label
2492
+ capabilities
2493
+ }
2494
+ }
2495
+ }
2496
+ `;
2497
+ export const useSessionContextQuery = (client, variables, options, headers) => {
2498
+ return useQuery({
2499
+ queryKey: variables === undefined ? ["SessionContext"] : ["SessionContext", variables],
2500
+ queryFn: fetcher(client, SessionContextDocument, variables, headers),
2501
+ ...options,
2502
+ });
2503
+ };
2504
+ useSessionContextQuery.getKey = (variables) => variables === undefined ? ["SessionContext"] : ["SessionContext", variables];
2505
+ export const useSuspenseSessionContextQuery = (client, variables, options, headers) => {
2506
+ return useSuspenseQuery({
2507
+ queryKey: variables === undefined ? ["SessionContextSuspense"] : ["SessionContextSuspense", variables],
2508
+ queryFn: fetcher(client, SessionContextDocument, variables, headers),
2509
+ ...options,
2510
+ });
2511
+ };
2512
+ useSuspenseSessionContextQuery.getKey = (variables) => variables === undefined ? ["SessionContextSuspense"] : ["SessionContextSuspense", variables];
2344
2513
  export const ShaclShapesDocument = `
2345
2514
  query ShaclShapes($shapeIri: IRI) {
2346
2515
  shaclShapes(shapeIri: $shapeIri) {
@@ -2430,6 +2599,151 @@ export const useSuspenseSupportedActionShapesQuery = (client, variables, options
2430
2599
  });
2431
2600
  };
2432
2601
  useSuspenseSupportedActionShapesQuery.getKey = (variables) => variables === undefined ? ["SupportedActionShapesSuspense"] : ["SupportedActionShapesSuspense", variables];
2602
+ export const TeamDirectoryDocument = `
2603
+ query TeamDirectory($first: Int, $max: Int, $search: String, $activation: TeamDirectoryActivation, $scope: TeamDirectoryScope, $resumeOffset: Int, $resumeMatched: Int, $knownTotal: Int) {
2604
+ teamDirectory(
2605
+ first: $first
2606
+ max: $max
2607
+ search: $search
2608
+ activation: $activation
2609
+ scope: $scope
2610
+ resumeOffset: $resumeOffset
2611
+ resumeMatched: $resumeMatched
2612
+ knownTotal: $knownTotal
2613
+ ) {
2614
+ truncated
2615
+ total
2616
+ hasMore
2617
+ scanCursor {
2618
+ offset
2619
+ matched
2620
+ }
2621
+ users {
2622
+ id
2623
+ username
2624
+ email
2625
+ name
2626
+ pending
2627
+ inviteUrl
2628
+ federated
2629
+ enabled
2630
+ memberships {
2631
+ org
2632
+ name
2633
+ groups
2634
+ }
2635
+ }
2636
+ }
2637
+ }
2638
+ `;
2639
+ export const useTeamDirectoryQuery = (client, variables, options, headers) => {
2640
+ return useQuery({
2641
+ queryKey: variables === undefined ? ["TeamDirectory"] : ["TeamDirectory", variables],
2642
+ queryFn: fetcher(client, TeamDirectoryDocument, variables, headers),
2643
+ ...options,
2644
+ });
2645
+ };
2646
+ useTeamDirectoryQuery.getKey = (variables) => variables === undefined ? ["TeamDirectory"] : ["TeamDirectory", variables];
2647
+ export const useSuspenseTeamDirectoryQuery = (client, variables, options, headers) => {
2648
+ return useSuspenseQuery({
2649
+ queryKey: variables === undefined ? ["TeamDirectorySuspense"] : ["TeamDirectorySuspense", variables],
2650
+ queryFn: fetcher(client, TeamDirectoryDocument, variables, headers),
2651
+ ...options,
2652
+ });
2653
+ };
2654
+ useSuspenseTeamDirectoryQuery.getKey = (variables) => variables === undefined ? ["TeamDirectorySuspense"] : ["TeamDirectorySuspense", variables];
2655
+ export const TeamGroupsDocument = `
2656
+ query TeamGroups($org: String) {
2657
+ teamGroups(org: $org) {
2658
+ name
2659
+ path
2660
+ depth
2661
+ selectable
2662
+ }
2663
+ }
2664
+ `;
2665
+ export const useTeamGroupsQuery = (client, variables, options, headers) => {
2666
+ return useQuery({
2667
+ queryKey: variables === undefined ? ["TeamGroups"] : ["TeamGroups", variables],
2668
+ queryFn: fetcher(client, TeamGroupsDocument, variables, headers),
2669
+ ...options,
2670
+ });
2671
+ };
2672
+ useTeamGroupsQuery.getKey = (variables) => variables === undefined ? ["TeamGroups"] : ["TeamGroups", variables];
2673
+ export const useSuspenseTeamGroupsQuery = (client, variables, options, headers) => {
2674
+ return useSuspenseQuery({
2675
+ queryKey: variables === undefined ? ["TeamGroupsSuspense"] : ["TeamGroupsSuspense", variables],
2676
+ queryFn: fetcher(client, TeamGroupsDocument, variables, headers),
2677
+ ...options,
2678
+ });
2679
+ };
2680
+ useSuspenseTeamGroupsQuery.getKey = (variables) => variables === undefined ? ["TeamGroupsSuspense"] : ["TeamGroupsSuspense", variables];
2681
+ export const TeamMembersDocument = `
2682
+ query TeamMembers($org: String, $group: String) {
2683
+ teamMembers(org: $org, group: $group) {
2684
+ truncated
2685
+ organization {
2686
+ alias
2687
+ name
2688
+ managed
2689
+ mirrored
2690
+ inviteCarriesGrants
2691
+ }
2692
+ members {
2693
+ id
2694
+ email
2695
+ name
2696
+ roles
2697
+ pending
2698
+ inviteUrl
2699
+ teams
2700
+ federated
2701
+ enabled
2702
+ }
2703
+ }
2704
+ }
2705
+ `;
2706
+ export const useTeamMembersQuery = (client, variables, options, headers) => {
2707
+ return useQuery({
2708
+ queryKey: variables === undefined ? ["TeamMembers"] : ["TeamMembers", variables],
2709
+ queryFn: fetcher(client, TeamMembersDocument, variables, headers),
2710
+ ...options,
2711
+ });
2712
+ };
2713
+ useTeamMembersQuery.getKey = (variables) => variables === undefined ? ["TeamMembers"] : ["TeamMembers", variables];
2714
+ export const useSuspenseTeamMembersQuery = (client, variables, options, headers) => {
2715
+ return useSuspenseQuery({
2716
+ queryKey: variables === undefined ? ["TeamMembersSuspense"] : ["TeamMembersSuspense", variables],
2717
+ queryFn: fetcher(client, TeamMembersDocument, variables, headers),
2718
+ ...options,
2719
+ });
2720
+ };
2721
+ useSuspenseTeamMembersQuery.getKey = (variables) => variables === undefined ? ["TeamMembersSuspense"] : ["TeamMembersSuspense", variables];
2722
+ export const TeamScopeDocument = `
2723
+ query TeamScope {
2724
+ teamScope {
2725
+ currentOrgAlias
2726
+ currentGroupPath
2727
+ wholeOrg
2728
+ }
2729
+ }
2730
+ `;
2731
+ export const useTeamScopeQuery = (client, variables, options, headers) => {
2732
+ return useQuery({
2733
+ queryKey: variables === undefined ? ["TeamScope"] : ["TeamScope", variables],
2734
+ queryFn: fetcher(client, TeamScopeDocument, variables, headers),
2735
+ ...options,
2736
+ });
2737
+ };
2738
+ useTeamScopeQuery.getKey = (variables) => variables === undefined ? ["TeamScope"] : ["TeamScope", variables];
2739
+ export const useSuspenseTeamScopeQuery = (client, variables, options, headers) => {
2740
+ return useSuspenseQuery({
2741
+ queryKey: variables === undefined ? ["TeamScopeSuspense"] : ["TeamScopeSuspense", variables],
2742
+ queryFn: fetcher(client, TeamScopeDocument, variables, headers),
2743
+ ...options,
2744
+ });
2745
+ };
2746
+ useSuspenseTeamScopeQuery.getKey = (variables) => variables === undefined ? ["TeamScopeSuspense"] : ["TeamScopeSuspense", variables];
2433
2747
  export const UnlinkedDatastoresDocument = `
2434
2748
  query UnlinkedDatastores {
2435
2749
  unlinkedDatastores {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manta-eu/client",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "The Manta GraphQL contract and the typed React Query hooks generated from it",
5
5
  "type": "module",
6
6
  "exports": {
@@ -42,10 +42,10 @@
42
42
  "uuid": "^13.0.0",
43
43
  "whatwg-mimetype": "^5.0.0",
44
44
  "zod": "^4.5.0",
45
- "@manta-eu/datalog-parser": "0.1.3",
46
- "@manta-eu/ldo": "0.1.3",
47
- "@manta-eu/rdf-lib": "0.1.3",
48
- "@manta-eu/lib": "0.1.3"
45
+ "@manta-eu/datalog-parser": "0.1.4",
46
+ "@manta-eu/ldo": "0.1.4",
47
+ "@manta-eu/lib": "0.1.4",
48
+ "@manta-eu/rdf-lib": "0.1.4"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@tanstack/react-query": "^5.100.10"