@manta-eu/client 0.8.1 → 0.9.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manta-eu/client",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "The Manta GraphQL contract and the typed React Query hooks generated from it",
5
5
  "homepage": "https://developers.manta.eu",
6
6
  "keywords": [
@@ -58,11 +58,11 @@
58
58
  "ts-pattern": "^5.9.0",
59
59
  "uuid": "^13.0.0",
60
60
  "whatwg-mimetype": "^5.0.0",
61
- "zod": "^4.5.0",
62
- "@manta-eu/ldo": "0.8.1",
63
- "@manta-eu/lib": "0.8.1",
64
- "@manta-eu/rdf-lib": "0.8.1",
65
- "@manta-eu/datalog-parser": "0.8.1"
61
+ "zod": "^4.6.7",
62
+ "@manta-eu/datalog-parser": "0.9.0",
63
+ "@manta-eu/ldo": "0.9.0",
64
+ "@manta-eu/lib": "0.9.0",
65
+ "@manta-eu/rdf-lib": "0.9.0"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@tanstack/react-query": "^5.100.10"
@@ -74,12 +74,12 @@
74
74
  "@graphql-codegen/typescript-react-query": "^6.1.1",
75
75
  "@types/ramda": "^0.31.1",
76
76
  "@types/whatwg-mimetype": "^5.0.0",
77
+ "oxfmt": "0.75.0",
77
78
  "oxlint": "1.90.0",
78
- "prettier": "^3.8.1",
79
79
  "rimraf": "^6.1.3",
80
80
  "tsc-alias": "^1.9.5",
81
81
  "typescript": "^7.0.2",
82
- "vitest": "^4.1.8",
82
+ "vitest": "~5.0.5",
83
83
  "@manta-eu/oxlint-config": "0.1.0"
84
84
  },
85
85
  "imports": {
@@ -98,11 +98,11 @@
98
98
  "scripts": {
99
99
  "build": "rimraf dist && graphql-codegen -c codegen.ts && tsc --project tsconfig.build.json && tsc-alias --project tsconfig.build.json --resolve-full-paths",
100
100
  "types": "tsc --noEmit",
101
- "test": "vitest --run --passWithNoTests",
101
+ "test": "vitest --run",
102
102
  "codegen:check": "./verify-generated.sh",
103
103
  "lint": "oxlint --type-aware --report-unused-disable-directives-severity=warn .",
104
104
  "lint:fix": "oxlint --fix --type-aware --report-unused-disable-directives-severity=warn .",
105
- "format": "prettier --write .",
106
- "format:check": "prettier --check ."
105
+ "format": "oxfmt",
106
+ "format:check": "oxfmt --check"
107
107
  }
108
108
  }
@@ -1128,6 +1128,25 @@ export type GQLGoogleBrandSuggestion = {
1128
1128
  urls: Array<Scalars["String"]["output"]>;
1129
1129
  };
1130
1130
 
1131
+ export type GQLGoogleMerchantCenterAccount = {
1132
+ __typename?: "GoogleMerchantCenterAccount";
1133
+ advanced?: Maybe<Scalars["Boolean"]["output"]>;
1134
+ externalId?: Maybe<Scalars["String"]["output"]>;
1135
+ id: Scalars["String"]["output"];
1136
+ isConnectable?: Maybe<Scalars["Boolean"]["output"]>;
1137
+ name?: Maybe<Scalars["String"]["output"]>;
1138
+ parent?: Maybe<Scalars["String"]["output"]>;
1139
+ testAccount?: Maybe<Scalars["Boolean"]["output"]>;
1140
+ unavailableReason?: Maybe<GQLSetupAccountUnavailableReason>;
1141
+ };
1142
+
1143
+ export type GQLGoogleMerchantCenterSetupProgress = {
1144
+ __typename?: "GoogleMerchantCenterSetupProgress";
1145
+ accounts?: Maybe<Array<GQLGoogleMerchantCenterAccount>>;
1146
+ lastError?: Maybe<GQLGoogleSetupLastError>;
1147
+ state: Array<GQLGoogleSetupStateEnum>;
1148
+ };
1149
+
1131
1150
  export type GQLGoogleSetupLastError = {
1132
1151
  __typename?: "GoogleSetupLastError";
1133
1152
  message: Scalars["String"]["output"];
@@ -1284,6 +1303,7 @@ export enum GQLIntegration {
1284
1303
  Figma = "FIGMA",
1285
1304
  Google = "GOOGLE",
1286
1305
  GoogleAnalytics = "GOOGLE_ANALYTICS",
1306
+ GoogleMerchantCenter = "GOOGLE_MERCHANT_CENTER",
1287
1307
  Linkedin = "LINKEDIN",
1288
1308
  Meta = "META",
1289
1309
  MicrosoftAds = "MICROSOFT_ADS",
@@ -1748,6 +1768,7 @@ export type GQLMutation = {
1748
1768
  forgetUserName: GQLForgetUserNameResponse;
1749
1769
  generateStructuredData: GQLStructuredDataResponse;
1750
1770
  googleAnalyticsSetupConnect: GQLGoogleAnalyticsSetupProgress;
1771
+ googleMerchantCenterSetupConnect: GQLGoogleMerchantCenterSetupProgress;
1751
1772
  googleSetupConnect: GQLGoogleSetupProgress;
1752
1773
  grantOperatorRole: GQLGrantOperatorRoleResponse;
1753
1774
  initiateUpload: GQLInitiateUploadResponse;
@@ -1981,6 +2002,10 @@ export type GQLMutationGoogleAnalyticsSetupConnectArgs = {
1981
2002
  propertyIds: Array<Scalars["String"]["input"]>;
1982
2003
  };
1983
2004
 
2005
+ export type GQLMutationGoogleMerchantCenterSetupConnectArgs = {
2006
+ accountIds: Array<Scalars["String"]["input"]>;
2007
+ };
2008
+
1984
2009
  export type GQLMutationGoogleSetupConnectArgs = {
1985
2010
  accountIds: Array<Scalars["String"]["input"]>;
1986
2011
  };
@@ -2089,6 +2114,7 @@ export type GQLMutationRefreshResourcesArgs = {
2089
2114
 
2090
2115
  export type GQLMutationRegisterDatastoreArgs = {
2091
2116
  datastoreId: Scalars["String"]["input"];
2117
+ launchProvisioning?: InputMaybe<Scalars["Boolean"]["input"]>;
2092
2118
  };
2093
2119
 
2094
2120
  export type GQLMutationReleaseRuleOwnershipArgs = {
@@ -2375,11 +2401,13 @@ export type GQLQuery = {
2375
2401
  gmailIntegrations: Array<GQLGmailIntegration>;
2376
2402
  googleAnalyticsSetupProgress: GQLGoogleAnalyticsSetupProgress;
2377
2403
  googleBrandSuggestions: Array<GQLGoogleBrandSuggestion>;
2404
+ googleMerchantCenterSetupProgress: GQLGoogleMerchantCenterSetupProgress;
2378
2405
  googleSetupProgress: GQLGoogleSetupProgress;
2379
2406
  inferalIntegrations: Array<GQLInferalIntegration>;
2380
2407
  knowledgeGraphState: GQLKnowledgeGraphState;
2381
2408
  ldesStreams: Array<GQLLdesStream>;
2382
2409
  linkedinSetupProgress?: Maybe<GQLLinkedinSetupProgress>;
2410
+ manualActionProgress?: Maybe<GQLManualActionProgressResult>;
2383
2411
  memories: GQLMemoriesResponse;
2384
2412
  memoryRedundancyReview: GQLMemoryRedundancyResult;
2385
2413
  memoryReplaySeries: GQLMemoryReplaySeriesResult;
@@ -2530,6 +2558,11 @@ export type GQLQueryKnowledgeGraphStateArgs = {
2530
2558
  dataVersion?: InputMaybe<Scalars["String"]["input"]>;
2531
2559
  };
2532
2560
 
2561
+ export type GQLQueryManualActionProgressArgs = {
2562
+ namedGraphIri: Scalars["String"]["input"];
2563
+ subjectIri: Scalars["String"]["input"];
2564
+ };
2565
+
2533
2566
  export type GQLQueryMemoriesArgs = {
2534
2567
  includeArchived?: InputMaybe<Scalars["Boolean"]["input"]>;
2535
2568
  includeOutOfWindow?: InputMaybe<Scalars["Boolean"]["input"]>;
@@ -2696,6 +2729,7 @@ export enum GQLRefreshWorkflowStatus {
2696
2729
  export type GQLRegisterDatastoreResponse = {
2697
2730
  __typename?: "RegisterDatastoreResponse";
2698
2731
  error?: Maybe<Scalars["String"]["output"]>;
2732
+ pending: Scalars["Boolean"]["output"];
2699
2733
  success: Scalars["Boolean"]["output"];
2700
2734
  };
2701
2735
 
@@ -2939,6 +2973,7 @@ export type GQLSessionUser = {
2939
2973
 
2940
2974
  export enum GQLSetupAccountUnavailableReason {
2941
2975
  InsufficientPermissions = "INSUFFICIENT_PERMISSIONS",
2976
+ TermsNotAccepted = "TERMS_NOT_ACCEPTED",
2942
2977
  }
2943
2978
 
2944
2979
  export enum GQLShaclSeverity {
@@ -3149,6 +3184,7 @@ export type GQLTeamMember = {
3149
3184
  federated?: Maybe<Scalars["Boolean"]["output"]>;
3150
3185
  id: Scalars["String"]["output"];
3151
3186
  inviteUrl?: Maybe<Scalars["String"]["output"]>;
3187
+ lastSignInAt?: Maybe<Scalars["DateTime"]["output"]>;
3152
3188
  managed?: Maybe<Scalars["Boolean"]["output"]>;
3153
3189
  name?: Maybe<Scalars["String"]["output"]>;
3154
3190
  pending: Scalars["Boolean"]["output"];
@@ -3241,6 +3277,7 @@ export type GQLTriplewhaleProviderInput = {
3241
3277
 
3242
3278
  export type GQLUnlinkedDatastore = {
3243
3279
  __typename?: "UnlinkedDatastore";
3280
+ built: Scalars["Boolean"]["output"];
3244
3281
  id: Scalars["String"]["output"];
3245
3282
  };
3246
3283
 
@@ -4015,6 +4052,30 @@ export type GQLGoogleAnalyticsSetupConnectMutation = {
4015
4052
  };
4016
4053
  };
4017
4054
 
4055
+ export type GQLGoogleMerchantCenterSetupConnectMutationVariables = Exact<{
4056
+ accountIds: Array<Scalars["String"]["input"]> | Scalars["String"]["input"];
4057
+ }>;
4058
+
4059
+ export type GQLGoogleMerchantCenterSetupConnectMutation = {
4060
+ __typename?: "Mutation";
4061
+ googleMerchantCenterSetupConnect: {
4062
+ __typename?: "GoogleMerchantCenterSetupProgress";
4063
+ state: Array<GQLGoogleSetupStateEnum>;
4064
+ accounts?: Array<{
4065
+ __typename?: "GoogleMerchantCenterAccount";
4066
+ id: string;
4067
+ name?: string | null;
4068
+ parent?: string | null;
4069
+ }> | null;
4070
+ lastError?: {
4071
+ __typename?: "GoogleSetupLastError";
4072
+ severity: string;
4073
+ title?: string | null;
4074
+ message: string;
4075
+ } | null;
4076
+ };
4077
+ };
4078
+
4018
4079
  export type GQLGoogleSetupConnectMutationVariables = Exact<{
4019
4080
  accountIds: Array<Scalars["String"]["input"]> | Scalars["String"]["input"];
4020
4081
  }>;
@@ -4125,6 +4186,7 @@ export type GQLLinkUnlinkedDatastoreMutation = {
4125
4186
  datastoreId?: string | null;
4126
4187
  name?: string | null;
4127
4188
  path?: string | null;
4189
+ pending: boolean;
4128
4190
  providerWarning?: string | null;
4129
4191
  };
4130
4192
  };
@@ -4157,7 +4219,12 @@ export type GQLChangeManualActionAssigneesMutation = {
4157
4219
  manualActionProgress: {
4158
4220
  __typename?: "ManualActionProgressResult";
4159
4221
  state: Array<string>;
4160
- manualAction?: { __typename?: "ManualActionResult"; status?: string | null; assignees: Array<string> } | null;
4222
+ manualAction?: {
4223
+ __typename?: "ManualActionResult";
4224
+ status?: string | null;
4225
+ assignees: Array<string>;
4226
+ resolvedBy?: string | null;
4227
+ } | null;
4161
4228
  };
4162
4229
  } | null;
4163
4230
  };
@@ -4176,7 +4243,12 @@ export type GQLResolveManualActionMutation = {
4176
4243
  manualActionProgress: {
4177
4244
  __typename?: "ManualActionProgressResult";
4178
4245
  state: Array<string>;
4179
- manualAction?: { __typename?: "ManualActionResult"; status?: string | null; assignees: Array<string> } | null;
4246
+ manualAction?: {
4247
+ __typename?: "ManualActionResult";
4248
+ status?: string | null;
4249
+ assignees: Array<string>;
4250
+ resolvedBy?: string | null;
4251
+ } | null;
4180
4252
  };
4181
4253
  } | null;
4182
4254
  };
@@ -4356,11 +4428,17 @@ export type GQLRefreshResourcesMutation = {
4356
4428
 
4357
4429
  export type GQLRegisterDatastoreMutationVariables = Exact<{
4358
4430
  datastoreId: Scalars["String"]["input"];
4431
+ launchProvisioning?: InputMaybe<Scalars["Boolean"]["input"]>;
4359
4432
  }>;
4360
4433
 
4361
4434
  export type GQLRegisterDatastoreMutation = {
4362
4435
  __typename?: "Mutation";
4363
- registerDatastore: { __typename?: "RegisterDatastoreResponse"; success: boolean; error?: string | null };
4436
+ registerDatastore: {
4437
+ __typename?: "RegisterDatastoreResponse";
4438
+ success: boolean;
4439
+ error?: string | null;
4440
+ pending: boolean;
4441
+ };
4364
4442
  };
4365
4443
 
4366
4444
  export type GQLReleaseRuleOwnershipMutationVariables = Exact<{
@@ -5590,6 +5668,33 @@ export type GQLGoogleBrandSuggestionsQuery = {
5590
5668
  }>;
5591
5669
  };
5592
5670
 
5671
+ export type GQLGoogleMerchantCenterSetupProgressQueryVariables = Exact<{ [key: string]: never }>;
5672
+
5673
+ export type GQLGoogleMerchantCenterSetupProgressQuery = {
5674
+ __typename?: "Query";
5675
+ googleMerchantCenterSetupProgress: {
5676
+ __typename?: "GoogleMerchantCenterSetupProgress";
5677
+ state: Array<GQLGoogleSetupStateEnum>;
5678
+ accounts?: Array<{
5679
+ __typename?: "GoogleMerchantCenterAccount";
5680
+ id: string;
5681
+ name?: string | null;
5682
+ parent?: string | null;
5683
+ externalId?: string | null;
5684
+ advanced?: boolean | null;
5685
+ testAccount?: boolean | null;
5686
+ isConnectable?: boolean | null;
5687
+ unavailableReason?: GQLSetupAccountUnavailableReason | null;
5688
+ }> | null;
5689
+ lastError?: {
5690
+ __typename?: "GoogleSetupLastError";
5691
+ severity: string;
5692
+ title?: string | null;
5693
+ message: string;
5694
+ } | null;
5695
+ };
5696
+ };
5697
+
5593
5698
  export type GQLGoogleSetupProgressQueryVariables = Exact<{ [key: string]: never }>;
5594
5699
 
5595
5700
  export type GQLGoogleSetupProgressQuery = {
@@ -5688,6 +5793,25 @@ export type GQLLinkedinSetupProgressQuery = {
5688
5793
  } | null;
5689
5794
  };
5690
5795
 
5796
+ export type GQLManualActionProgressQueryVariables = Exact<{
5797
+ namedGraphIri: Scalars["String"]["input"];
5798
+ subjectIri: Scalars["String"]["input"];
5799
+ }>;
5800
+
5801
+ export type GQLManualActionProgressQuery = {
5802
+ __typename?: "Query";
5803
+ manualActionProgress?: {
5804
+ __typename?: "ManualActionProgressResult";
5805
+ state: Array<string>;
5806
+ manualAction?: {
5807
+ __typename?: "ManualActionResult";
5808
+ status?: string | null;
5809
+ assignees: Array<string>;
5810
+ resolvedBy?: string | null;
5811
+ } | null;
5812
+ } | null;
5813
+ };
5814
+
5691
5815
  export type GQLMemoriesQueryVariables = Exact<{
5692
5816
  includeArchived?: InputMaybe<Scalars["Boolean"]["input"]>;
5693
5817
  includeOutOfWindow?: InputMaybe<Scalars["Boolean"]["input"]>;
@@ -6269,6 +6393,7 @@ export type GQLTeamMembersQuery = {
6269
6393
  federated?: boolean | null;
6270
6394
  enabled: boolean;
6271
6395
  managed?: boolean | null;
6396
+ lastSignInAt?: Date | string | null;
6272
6397
  }>;
6273
6398
  };
6274
6399
  };
@@ -6303,7 +6428,7 @@ export type GQLUnlinkedDatastoresQueryVariables = Exact<{ [key: string]: never }
6303
6428
 
6304
6429
  export type GQLUnlinkedDatastoresQuery = {
6305
6430
  __typename?: "Query";
6306
- unlinkedDatastores: Array<{ __typename?: "UnlinkedDatastore"; id: string }>;
6431
+ unlinkedDatastores: Array<{ __typename?: "UnlinkedDatastore"; id: string; built: boolean }>;
6307
6432
  };
6308
6433
 
6309
6434
  export type GQLUserPreferencesQueryVariables = Exact<{ [key: string]: never }>;
@@ -7799,6 +7924,52 @@ export const useGoogleAnalyticsSetupConnectMutation = <TError = unknown, TContex
7799
7924
  });
7800
7925
  };
7801
7926
 
7927
+ export const GoogleMerchantCenterSetupConnectDocument = `
7928
+ mutation GoogleMerchantCenterSetupConnect($accountIds: [String!]!) {
7929
+ googleMerchantCenterSetupConnect(accountIds: $accountIds) {
7930
+ state
7931
+ accounts {
7932
+ id
7933
+ name
7934
+ parent
7935
+ }
7936
+ lastError {
7937
+ severity
7938
+ title
7939
+ message
7940
+ }
7941
+ }
7942
+ }
7943
+ `;
7944
+
7945
+ export const useGoogleMerchantCenterSetupConnectMutation = <TError = unknown, TContext = unknown>(
7946
+ client: GraphQLClient,
7947
+ options?: UseMutationOptions<
7948
+ GQLGoogleMerchantCenterSetupConnectMutation,
7949
+ TError,
7950
+ GQLGoogleMerchantCenterSetupConnectMutationVariables,
7951
+ TContext
7952
+ >,
7953
+ headers?: RequestInit["headers"],
7954
+ ) => {
7955
+ return useMutation<
7956
+ GQLGoogleMerchantCenterSetupConnectMutation,
7957
+ TError,
7958
+ GQLGoogleMerchantCenterSetupConnectMutationVariables,
7959
+ TContext
7960
+ >({
7961
+ mutationKey: ["GoogleMerchantCenterSetupConnect"],
7962
+ mutationFn: (variables?: GQLGoogleMerchantCenterSetupConnectMutationVariables) =>
7963
+ fetcher<GQLGoogleMerchantCenterSetupConnectMutation, GQLGoogleMerchantCenterSetupConnectMutationVariables>(
7964
+ client,
7965
+ GoogleMerchantCenterSetupConnectDocument,
7966
+ variables,
7967
+ headers,
7968
+ )(),
7969
+ ...options,
7970
+ });
7971
+ };
7972
+
7802
7973
  export const GoogleSetupConnectDocument = `
7803
7974
  mutation GoogleSetupConnect($accountIds: [String!]!) {
7804
7975
  googleSetupConnect(accountIds: $accountIds) {
@@ -8017,6 +8188,7 @@ export const LinkUnlinkedDatastoreDocument = `
8017
8188
  datastoreId
8018
8189
  name
8019
8190
  path
8191
+ pending
8020
8192
  providerWarning
8021
8193
  }
8022
8194
  }
@@ -8098,6 +8270,7 @@ export const ChangeManualActionAssigneesDocument = `
8098
8270
  manualAction {
8099
8271
  status
8100
8272
  assignees
8273
+ resolvedBy
8101
8274
  }
8102
8275
  }
8103
8276
  }
@@ -8145,6 +8318,7 @@ export const ResolveManualActionDocument = `
8145
8318
  manualAction {
8146
8319
  status
8147
8320
  assignees
8321
+ resolvedBy
8148
8322
  }
8149
8323
  }
8150
8324
  }
@@ -8470,10 +8644,14 @@ export const useRefreshResourcesMutation = <TError = unknown, TContext = unknown
8470
8644
  };
8471
8645
 
8472
8646
  export const RegisterDatastoreDocument = `
8473
- mutation RegisterDatastore($datastoreId: String!) {
8474
- registerDatastore(datastoreId: $datastoreId) {
8647
+ mutation RegisterDatastore($datastoreId: String!, $launchProvisioning: Boolean) {
8648
+ registerDatastore(
8649
+ datastoreId: $datastoreId
8650
+ launchProvisioning: $launchProvisioning
8651
+ ) {
8475
8652
  success
8476
8653
  error
8654
+ pending
8477
8655
  }
8478
8656
  }
8479
8657
  `;
@@ -11259,6 +11437,91 @@ useSuspenseGoogleBrandSuggestionsQuery.getKey = (variables: GQLGoogleBrandSugges
11259
11437
  variables,
11260
11438
  ];
11261
11439
 
11440
+ export const GoogleMerchantCenterSetupProgressDocument = `
11441
+ query GoogleMerchantCenterSetupProgress {
11442
+ googleMerchantCenterSetupProgress {
11443
+ state
11444
+ accounts {
11445
+ id
11446
+ name
11447
+ parent
11448
+ externalId
11449
+ advanced
11450
+ testAccount
11451
+ isConnectable
11452
+ unavailableReason
11453
+ }
11454
+ lastError {
11455
+ severity
11456
+ title
11457
+ message
11458
+ }
11459
+ }
11460
+ }
11461
+ `;
11462
+
11463
+ export const useGoogleMerchantCenterSetupProgressQuery = <
11464
+ TData = GQLGoogleMerchantCenterSetupProgressQuery,
11465
+ TError = unknown,
11466
+ >(
11467
+ client: GraphQLClient,
11468
+ variables?: GQLGoogleMerchantCenterSetupProgressQueryVariables,
11469
+ options?: Omit<UseQueryOptions<GQLGoogleMerchantCenterSetupProgressQuery, TError, TData>, "queryKey"> & {
11470
+ queryKey?: UseQueryOptions<GQLGoogleMerchantCenterSetupProgressQuery, TError, TData>["queryKey"];
11471
+ },
11472
+ headers?: RequestInit["headers"],
11473
+ ) => {
11474
+ return useQuery<GQLGoogleMerchantCenterSetupProgressQuery, TError, TData>({
11475
+ queryKey:
11476
+ variables === undefined
11477
+ ? ["GoogleMerchantCenterSetupProgress"]
11478
+ : ["GoogleMerchantCenterSetupProgress", variables],
11479
+ queryFn: fetcher<GQLGoogleMerchantCenterSetupProgressQuery, GQLGoogleMerchantCenterSetupProgressQueryVariables>(
11480
+ client,
11481
+ GoogleMerchantCenterSetupProgressDocument,
11482
+ variables,
11483
+ headers,
11484
+ ),
11485
+ ...options,
11486
+ });
11487
+ };
11488
+
11489
+ useGoogleMerchantCenterSetupProgressQuery.getKey = (variables?: GQLGoogleMerchantCenterSetupProgressQueryVariables) =>
11490
+ variables === undefined ? ["GoogleMerchantCenterSetupProgress"] : ["GoogleMerchantCenterSetupProgress", variables];
11491
+
11492
+ export const useSuspenseGoogleMerchantCenterSetupProgressQuery = <
11493
+ TData = GQLGoogleMerchantCenterSetupProgressQuery,
11494
+ TError = unknown,
11495
+ >(
11496
+ client: GraphQLClient,
11497
+ variables?: GQLGoogleMerchantCenterSetupProgressQueryVariables,
11498
+ options?: Omit<UseSuspenseQueryOptions<GQLGoogleMerchantCenterSetupProgressQuery, TError, TData>, "queryKey"> & {
11499
+ queryKey?: UseSuspenseQueryOptions<GQLGoogleMerchantCenterSetupProgressQuery, TError, TData>["queryKey"];
11500
+ },
11501
+ headers?: RequestInit["headers"],
11502
+ ) => {
11503
+ return useSuspenseQuery<GQLGoogleMerchantCenterSetupProgressQuery, TError, TData>({
11504
+ queryKey:
11505
+ variables === undefined
11506
+ ? ["GoogleMerchantCenterSetupProgressSuspense"]
11507
+ : ["GoogleMerchantCenterSetupProgressSuspense", variables],
11508
+ queryFn: fetcher<GQLGoogleMerchantCenterSetupProgressQuery, GQLGoogleMerchantCenterSetupProgressQueryVariables>(
11509
+ client,
11510
+ GoogleMerchantCenterSetupProgressDocument,
11511
+ variables,
11512
+ headers,
11513
+ ),
11514
+ ...options,
11515
+ });
11516
+ };
11517
+
11518
+ useSuspenseGoogleMerchantCenterSetupProgressQuery.getKey = (
11519
+ variables?: GQLGoogleMerchantCenterSetupProgressQueryVariables,
11520
+ ) =>
11521
+ variables === undefined
11522
+ ? ["GoogleMerchantCenterSetupProgressSuspense"]
11523
+ : ["GoogleMerchantCenterSetupProgressSuspense", variables];
11524
+
11262
11525
  export const GoogleSetupProgressDocument = `
11263
11526
  query GoogleSetupProgress {
11264
11527
  googleSetupProgress {
@@ -11585,6 +11848,69 @@ export const useSuspenseLinkedinSetupProgressQuery = <TData = GQLLinkedinSetupPr
11585
11848
  useSuspenseLinkedinSetupProgressQuery.getKey = (variables?: GQLLinkedinSetupProgressQueryVariables) =>
11586
11849
  variables === undefined ? ["LinkedinSetupProgressSuspense"] : ["LinkedinSetupProgressSuspense", variables];
11587
11850
 
11851
+ export const ManualActionProgressDocument = `
11852
+ query ManualActionProgress($namedGraphIri: String!, $subjectIri: String!) {
11853
+ manualActionProgress(namedGraphIri: $namedGraphIri, subjectIri: $subjectIri) {
11854
+ state
11855
+ manualAction {
11856
+ status
11857
+ assignees
11858
+ resolvedBy
11859
+ }
11860
+ }
11861
+ }
11862
+ `;
11863
+
11864
+ export const useManualActionProgressQuery = <TData = GQLManualActionProgressQuery, TError = unknown>(
11865
+ client: GraphQLClient,
11866
+ variables: GQLManualActionProgressQueryVariables,
11867
+ options?: Omit<UseQueryOptions<GQLManualActionProgressQuery, TError, TData>, "queryKey"> & {
11868
+ queryKey?: UseQueryOptions<GQLManualActionProgressQuery, TError, TData>["queryKey"];
11869
+ },
11870
+ headers?: RequestInit["headers"],
11871
+ ) => {
11872
+ return useQuery<GQLManualActionProgressQuery, TError, TData>({
11873
+ queryKey: ["ManualActionProgress", variables],
11874
+ queryFn: fetcher<GQLManualActionProgressQuery, GQLManualActionProgressQueryVariables>(
11875
+ client,
11876
+ ManualActionProgressDocument,
11877
+ variables,
11878
+ headers,
11879
+ ),
11880
+ ...options,
11881
+ });
11882
+ };
11883
+
11884
+ useManualActionProgressQuery.getKey = (variables: GQLManualActionProgressQueryVariables) => [
11885
+ "ManualActionProgress",
11886
+ variables,
11887
+ ];
11888
+
11889
+ export const useSuspenseManualActionProgressQuery = <TData = GQLManualActionProgressQuery, TError = unknown>(
11890
+ client: GraphQLClient,
11891
+ variables: GQLManualActionProgressQueryVariables,
11892
+ options?: Omit<UseSuspenseQueryOptions<GQLManualActionProgressQuery, TError, TData>, "queryKey"> & {
11893
+ queryKey?: UseSuspenseQueryOptions<GQLManualActionProgressQuery, TError, TData>["queryKey"];
11894
+ },
11895
+ headers?: RequestInit["headers"],
11896
+ ) => {
11897
+ return useSuspenseQuery<GQLManualActionProgressQuery, TError, TData>({
11898
+ queryKey: ["ManualActionProgressSuspense", variables],
11899
+ queryFn: fetcher<GQLManualActionProgressQuery, GQLManualActionProgressQueryVariables>(
11900
+ client,
11901
+ ManualActionProgressDocument,
11902
+ variables,
11903
+ headers,
11904
+ ),
11905
+ ...options,
11906
+ });
11907
+ };
11908
+
11909
+ useSuspenseManualActionProgressQuery.getKey = (variables: GQLManualActionProgressQueryVariables) => [
11910
+ "ManualActionProgressSuspense",
11911
+ variables,
11912
+ ];
11913
+
11588
11914
  export const MemoriesDocument = `
11589
11915
  query Memories($includeArchived: Boolean, $includeOutOfWindow: Boolean) {
11590
11916
  memories(
@@ -13041,6 +13367,7 @@ export const TeamMembersDocument = `
13041
13367
  federated
13042
13368
  enabled
13043
13369
  managed
13370
+ lastSignInAt
13044
13371
  }
13045
13372
  }
13046
13373
  }
@@ -13202,6 +13529,7 @@ export const UnlinkedDatastoresDocument = `
13202
13529
  query UnlinkedDatastores {
13203
13530
  unlinkedDatastores {
13204
13531
  id
13532
+ built
13205
13533
  }
13206
13534
  }
13207
13535
  `;
@@ -16,6 +16,7 @@ export type TeamMember = {
16
16
  // Keycloak deletes a managed member's account when they leave the organization.
17
17
  managed?: true;
18
18
  enabled: boolean;
19
+ lastSignInAt?: string;
19
20
  };
20
21
 
21
22
  export type TeamOrganization = {
@@ -1,9 +1,12 @@
1
1
  import { getExtension } from "@manta-eu/lib/file";
2
+ import { isPresent } from "@manta-eu/lib/present";
2
3
  import mime from "mime";
3
4
  import { MIMEType } from "whatwg-mimetype";
4
5
 
5
6
  export const uploadPartSize = 8 * 1024 * 1024;
6
7
 
8
+ export const maxUploadBytes = 5 * 1024 * 1024 * 1024;
9
+
7
10
  export function bytesToHex(buffer: ArrayBuffer) {
8
11
  return [...new Uint8Array(buffer)].map((byte) => byte.toString(16).padStart(2, "0")).join("");
9
12
  }
@@ -48,6 +51,16 @@ export function isFileNameTooLong(fileName: string) {
48
51
  return new TextEncoder().encode(fileName).length > maxFileNameBytes;
49
52
  }
50
53
 
54
+ // Recorded on the file as ingest:uploadPurpose; kgc ingests only "file" uploads.
55
+ export type UploadPurposeValue = "file" | "bundle";
56
+
57
+ // The file types kgc ingests into the knowledge graph; anything else is stored but never ingested.
58
+ export const ingestableExtensions = new Set(["csv", "parquet", "ttl", "nt"]);
59
+
60
+ export function isIngestableExtension(extension: string | undefined) {
61
+ return isPresent(extension) && ingestableExtensions.has(extension.toLowerCase());
62
+ }
63
+
51
64
  export function mediaTypeFromExtension(extension: string | undefined) {
52
65
  return (extension ? mime.getType(extension) : undefined) ?? "application/octet-stream";
53
66
  }