@powerhousedao/reactor-browser 6.2.3-dev.1 → 6.2.3-dev.11
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/{attachment-service-CdwHrbDH.d.ts → attachment-service-C14mVTk_.d.ts} +125 -19
- package/dist/attachment-service-C14mVTk_.d.ts.map +1 -0
- package/dist/{client-BIHN_UyR.d.ts → client-CxJD0Ck2.d.ts} +2 -2
- package/dist/{client-BIHN_UyR.d.ts.map → client-CxJD0Ck2.d.ts.map} +1 -1
- package/dist/{client-D66jVnot.js → client-D4bkR4pH.js} +114 -1
- package/dist/client-D4bkR4pH.js.map +1 -0
- package/dist/{document-by-id-BSZqTN66.js → document-by-id-iXB59Ge-.js} +211 -5
- package/dist/document-by-id-iXB59Ge-.js.map +1 -0
- package/dist/{document-model-modules-DfQBNGc-.js → document-model-modules-BSwKnUR_.js} +35 -35
- package/dist/{document-model-modules-DfQBNGc-.js.map → document-model-modules-BSwKnUR_.js.map} +1 -1
- package/dist/{document-operations-Bgo6A6W2.js → document-operations-BjZmu1JC.js} +146 -85
- package/dist/document-operations-BjZmu1JC.js.map +1 -0
- package/dist/{global-BggszP4X.d.ts → global-D4e836Hk.d.ts} +30 -5
- package/dist/global-D4e836Hk.d.ts.map +1 -0
- package/dist/{index-CkJNhsQo.d.ts → index-BvJaeywJ.d.ts} +4 -3
- package/dist/{index-CkJNhsQo.d.ts.map → index-BvJaeywJ.d.ts.map} +1 -1
- package/dist/index.d.ts +45 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +43 -12
- package/dist/index.js.map +1 -1
- package/dist/{relational-D4sxGPz7.js → relational-D1RB45sA.js} +2 -2
- package/dist/{relational-D4sxGPz7.js.map → relational-D1RB45sA.js.map} +1 -1
- package/dist/{renown-BIEv6bSI.js → renown-rqK8sokh.js} +20 -5
- package/dist/renown-rqK8sokh.js.map +1 -0
- package/dist/src/ai/index.js +2 -2
- package/dist/src/analytics/index.js +1 -1
- package/dist/src/graphql/client.d.ts +2 -2
- package/dist/src/graphql/client.js +1 -1
- package/dist/src/graphql-client/entry.d.ts +4 -4
- package/dist/src/graphql-client/entry.js +4 -4
- package/dist/src/relational/index.js +1 -1
- package/dist/src/renown/index.d.ts +2 -2
- package/dist/src/renown/index.js +2 -2
- package/dist/src/rpc/index.d.ts +8 -0
- package/dist/src/rpc/index.d.ts.map +1 -1
- package/dist/src/rpc/index.js +14 -1
- package/dist/src/rpc/index.js.map +1 -1
- package/dist/{switchboard-D4-_jwk-.js → switchboard-Yt6ASJRx.js} +4 -4
- package/dist/{switchboard-D4-_jwk-.js.map → switchboard-Yt6ASJRx.js.map} +1 -1
- package/dist/{types-Dcv1ZLoW.d.ts → types-N3Jy6Nry.d.ts} +72 -2
- package/dist/types-N3Jy6Nry.d.ts.map +1 -0
- package/package.json +9 -9
- package/dist/attachment-service-CdwHrbDH.d.ts.map +0 -1
- package/dist/client-D66jVnot.js.map +0 -1
- package/dist/document-by-id-BSZqTN66.js.map +0 -1
- package/dist/document-operations-Bgo6A6W2.js.map +0 -1
- package/dist/global-BggszP4X.d.ts.map +0 -1
- package/dist/renown-BIEv6bSI.js.map +0 -1
- package/dist/types-Dcv1ZLoW.d.ts.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as PHGlobal$1, b as IPackagesListener, ct as
|
|
1
|
+
import { a as PHGlobal$1, b as IPackagesListener, ct as OperationsCacheEntry, d as UsePHGlobalValue$1, lt as PromiseState, ot as IDocumentCache, rt as IReactorBrowserClient$1, st as IOperationCache, u as SetPHGlobalValue$1, ut as PromiseWithState, v as IPackageListerUnsubscribe, x as PackageManagerInstallResult, y as IPackageManager } from "./global-D4e836Hk.js";
|
|
2
2
|
import { t as PGlite } from "./pglite-CntadC_p-9NDG14dS.js";
|
|
3
|
-
import { A as ViewFilterInput, C as GetDocumentQuery, D as PropagationMode$1, E as PhDocumentFieldsFragment, O as Scalars, S as GetDocumentOperationsQuery, b as DocumentChangesSubscription, c as ReactorGraphQLClient, g as ActionInput, k as SdkFunctionWrapper } from "./types-
|
|
3
|
+
import { A as ViewFilterInput, C as GetDocumentQuery, D as PropagationMode$1, E as PhDocumentFieldsFragment, O as Scalars, S as GetDocumentOperationsQuery, b as DocumentChangesSubscription, c as ReactorGraphQLClient, g as ActionInput, k as SdkFunctionWrapper } from "./types-N3Jy6Nry.js";
|
|
4
4
|
import { Action, DocumentModelLib, DocumentModelModule, Operation, PHDocument } from "document-model";
|
|
5
5
|
import { Action as Action$1, DocumentModelModule as DocumentModelModule$1, DocumentOperations, ISigner, Operation as Operation$1, PHBaseState, PHDocument as PHDocument$1, PHDocumentHeader } from "@powerhousedao/shared/document-model";
|
|
6
|
-
import { ReactNode } from "react";
|
|
7
6
|
import * as _powerhousedao_reactor0 from "@powerhousedao/reactor";
|
|
8
7
|
import { Database, DocumentChangeEvent, DocumentModelSource, IDocumentModelRegistry, ISyncManager, OperationFilter, PagedResults, PagingOptions, PropagationMode, SearchFilter, ViewFilter } from "@powerhousedao/reactor";
|
|
8
|
+
import { ReactNode } from "react";
|
|
9
9
|
import { GraphQLClient, Variables } from "graphql-request";
|
|
10
10
|
import * as graphql from "graphql";
|
|
11
11
|
import { DocumentNode } from "graphql";
|
|
@@ -18,13 +18,19 @@ import { RegistryPackageSource } from "@powerhousedao/shared";
|
|
|
18
18
|
//#region src/document-cache.d.ts
|
|
19
19
|
declare function addPromiseState<T>(promise: Promise<T>): PromiseWithState<T>;
|
|
20
20
|
declare function readPromiseState<T>(promise: Promise<T> | PromiseWithState<T>): PromiseState<T>;
|
|
21
|
+
/** The snapshot every uncached document scope reads as. One frozen object, so `useSyncExternalStore` sees a stable value. */
|
|
22
|
+
declare const IDLE_OPERATIONS_ENTRY: OperationsCacheEntry;
|
|
23
|
+
/** Whether a document cache also serves operation history. `GraphQLClientDocumentCache` does not. */
|
|
24
|
+
declare function isOperationCache(cache: unknown): cache is IOperationCache;
|
|
21
25
|
/**
|
|
22
26
|
* Document cache implementation that uses the new ReactorClient API.
|
|
23
27
|
*
|
|
24
28
|
* This cache subscribes to document change events via IReactorBrowserClient.subscribe()
|
|
25
29
|
* and automatically updates the cache when documents are created, updated, or deleted.
|
|
30
|
+
* It also holds paginated operation history per document scope (see `IOperationCache`),
|
|
31
|
+
* which is dropped for a document whenever a change event for it arrives.
|
|
26
32
|
*/
|
|
27
|
-
declare class DocumentCache implements IDocumentCache {
|
|
33
|
+
declare class DocumentCache implements IDocumentCache, IOperationCache {
|
|
28
34
|
private client;
|
|
29
35
|
private documents;
|
|
30
36
|
private batchPromises;
|
|
@@ -37,6 +43,11 @@ declare class DocumentCache implements IDocumentCache {
|
|
|
37
43
|
* the same document is cached under.
|
|
38
44
|
*/
|
|
39
45
|
private aliasKeys;
|
|
46
|
+
/** Operations by document id, then scope. Entries are replaced, never mutated. */
|
|
47
|
+
private operationEntries;
|
|
48
|
+
/** In-flight controllers and the next page's cursor/limit, by document id then scope. */
|
|
49
|
+
private operationRequests;
|
|
50
|
+
private operationListeners;
|
|
40
51
|
private unsubscribe;
|
|
41
52
|
constructor(client: IReactorBrowserClient$1);
|
|
42
53
|
private handleDocumentChange;
|
|
@@ -50,6 +61,35 @@ declare class DocumentCache implements IDocumentCache {
|
|
|
50
61
|
get(id: string, refetch?: boolean): Promise<PHDocument$1>;
|
|
51
62
|
getBatch(ids: string[]): Promise<PHDocument$1[]>;
|
|
52
63
|
subscribe(id: string | string[], callback: () => void): () => void;
|
|
64
|
+
getOperationsState(documentId: string, scope: string): OperationsCacheEntry;
|
|
65
|
+
loadOperations(documentId: string, scope: string, limit: number): void;
|
|
66
|
+
loadMoreOperations(documentId: string, scope: string): void;
|
|
67
|
+
/**
|
|
68
|
+
* Bring a document's cached scopes up to date after it changed, without
|
|
69
|
+
* throwing away what is already loaded.
|
|
70
|
+
*
|
|
71
|
+
* The operation stream is append-only: an update adds operations at higher
|
|
72
|
+
* revisions and never rewrites the ones below, so history already paged in
|
|
73
|
+
* is still correct. Dropping it meant a panel showing a fully loaded
|
|
74
|
+
* document re-walked every page on each edit -- the cost of which grows
|
|
75
|
+
* with the document, exactly where it hurts most. Each scope instead asks
|
|
76
|
+
* only for what comes after the newest revision it holds, using the
|
|
77
|
+
* `sinceRevision` filter, and appends the answer.
|
|
78
|
+
*
|
|
79
|
+
* A scope that has not finished paging is dropped as before: it has no
|
|
80
|
+
* meaningful "newest revision" to resume from, since asking for everything
|
|
81
|
+
* past the newest row it happens to hold would skip the pages between that
|
|
82
|
+
* row and the end of the stream.
|
|
83
|
+
*/
|
|
84
|
+
private refreshOperations;
|
|
85
|
+
/** Drops one scope of a document, aborting its request if one is in flight. */
|
|
86
|
+
private invalidateOperationsScope;
|
|
87
|
+
invalidateOperations(documentId: string): void;
|
|
88
|
+
subscribeOperations(documentId: string, callback: () => void): () => void;
|
|
89
|
+
private settleOperationsPage;
|
|
90
|
+
private setOperationsEntry;
|
|
91
|
+
private setOperationsRequest;
|
|
92
|
+
private notifyOperationListeners;
|
|
53
93
|
/**
|
|
54
94
|
* Disposes of the cache and unsubscribes from document change events.
|
|
55
95
|
*/
|
|
@@ -392,6 +432,8 @@ declare class GraphQLReactorClient implements IReactorBrowserClient$1 {
|
|
|
392
432
|
private realtimeStarted;
|
|
393
433
|
private realtimeGeneration;
|
|
394
434
|
private realtimeErrorLogged;
|
|
435
|
+
/** Whether the last socket died because the Switchboard refused its credentials. */
|
|
436
|
+
private realtimeRefusedCredentials;
|
|
395
437
|
constructor(options: GraphQLReactorClientOptions);
|
|
396
438
|
get<TDocument extends PHDocument>(identifier: string, view?: ViewFilter, signal?: AbortSignal): Promise<TDocument>;
|
|
397
439
|
getOperations(documentIdentifier: string, view?: ViewFilter, filter?: OperationFilter, paging?: PagingOptions, signal?: AbortSignal): Promise<PagedResults<Operation>>;
|
|
@@ -500,15 +542,39 @@ declare class GraphQLReactorClient implements IReactorBrowserClient$1 {
|
|
|
500
542
|
* Gives up on a failed socket so that a later subscriber can try again.
|
|
501
543
|
*
|
|
502
544
|
* `graphql-ws` retries on its own and only reports here once it has given up,
|
|
503
|
-
* or once the
|
|
504
|
-
*
|
|
505
|
-
*
|
|
506
|
-
*
|
|
545
|
+
* or once the Switchboard refused the credentials the socket carried - which
|
|
546
|
+
* `shouldRetry` declines to retry at all. Keeping the dead stop function
|
|
547
|
+
* would make every later `subscribe` a no-op, so realtime would stay off for
|
|
548
|
+
* the life of the page even after the user signs in.
|
|
549
|
+
*
|
|
550
|
+
* Why it died is recorded: a refusal is undone by a credential change and
|
|
551
|
+
* nothing else, and {@link notifyCredentialsChanged} acts only on that.
|
|
507
552
|
*
|
|
508
553
|
* The generation stamp discards a report from a socket that has already been
|
|
509
554
|
* replaced or disposed.
|
|
510
555
|
*/
|
|
511
556
|
private handleRealtimeFailure;
|
|
557
|
+
/**
|
|
558
|
+
* Reopens realtime after a sign-in, a sign-out or a token swap.
|
|
559
|
+
*
|
|
560
|
+
* Call it whenever the credentials this client authenticates with change.
|
|
561
|
+
*
|
|
562
|
+
* A live socket is replaced. `connectionParams` are resolved once, when the
|
|
563
|
+
* socket opens, so a socket keeps presenting the credentials it was opened
|
|
564
|
+
* with until something closes it - and a sign-out closes nothing. That left
|
|
565
|
+
* a signed-out tab still receiving the previous identity's document changes,
|
|
566
|
+
* on a shared machine, for as long as the socket happened to survive.
|
|
567
|
+
*
|
|
568
|
+
* A refused socket is reopened, for the same reason from the other side:
|
|
569
|
+
* otherwise it stays closed until an unrelated component happens to
|
|
570
|
+
* `subscribe`, so signing in leaves realtime off with nothing said - the
|
|
571
|
+
* state `handleRealtimeFailure` resets to avoid.
|
|
572
|
+
*
|
|
573
|
+
* A socket that died for any other reason is left alone: a network failure
|
|
574
|
+
* is not something a new token fixes, and reopening one here would turn a
|
|
575
|
+
* credential change into a reconnect loop.
|
|
576
|
+
*/
|
|
577
|
+
notifyCredentialsChanged(): void;
|
|
512
578
|
/** Closes the socket and lets a later subscriber open a new one. */
|
|
513
579
|
private teardownRealtime;
|
|
514
580
|
/** Maps a server event onto the client-side event and emits it. */
|
|
@@ -845,6 +911,15 @@ type DocumentChangesSubscriptionOptions = {
|
|
|
845
911
|
*/
|
|
846
912
|
onError: (error: unknown) => void;
|
|
847
913
|
};
|
|
914
|
+
/**
|
|
915
|
+
* Whether a socket failure is the Switchboard refusing the credentials sent.
|
|
916
|
+
*
|
|
917
|
+
* Keyed on the close reason, not the code: both refusals close 4403, because
|
|
918
|
+
* `connectionParams` is resolved per connect and a reconnect carrying a fresh
|
|
919
|
+
* token genuinely succeeds. What the reason adds is that *this* attempt cannot
|
|
920
|
+
* be fixed by repeating it.
|
|
921
|
+
*/
|
|
922
|
+
declare function isAuthRefusalClose(error: unknown): boolean;
|
|
848
923
|
/**
|
|
849
924
|
* Opens one `documentChanges` subscription and feeds every event to `onEvent`.
|
|
850
925
|
*
|
|
@@ -1032,24 +1107,55 @@ declare function useDocumentModelModules(): DocumentModelModule[] | undefined;
|
|
|
1032
1107
|
declare function useDocumentModelModuleById(id: string | null | undefined, version?: number): DocumentModelModule | undefined;
|
|
1033
1108
|
//#endregion
|
|
1034
1109
|
//#region src/hooks/document-operations.d.ts
|
|
1035
|
-
type
|
|
1110
|
+
type UseDocumentOperationsOptions = {
|
|
1111
|
+
/**
|
|
1112
|
+
* Operations per page. Default 100. Applies to the next first-page load;
|
|
1113
|
+
* changing it while pages are already loaded has no effect until the next
|
|
1114
|
+
* invalidation or `refetch`.
|
|
1115
|
+
*/
|
|
1116
|
+
limit?: number; /** Whether to fetch at all. Default true. Pass false until the operations are needed. */
|
|
1117
|
+
enabled?: boolean;
|
|
1118
|
+
};
|
|
1119
|
+
/** What `useDocumentOperations` returns; exported so consumers can name it. */
|
|
1120
|
+
type DocumentOperationsResult = {
|
|
1121
|
+
/** Every operation of the scope loaded so far, oldest first. */operations: readonly Operation$1[]; /** A page is in flight. */
|
|
1122
|
+
isLoading: boolean; /** The last page failed. Operations loaded before it stay available. */
|
|
1123
|
+
error: Error | undefined; /** The last page reported a further page. */
|
|
1124
|
+
hasNextPage: boolean; /** Reported by the GraphQL client only. */
|
|
1125
|
+
totalCount: number | undefined; /** Loads the next page and appends it. No-op while loading or when there is none. */
|
|
1126
|
+
fetchNextPage: () => void; /** Drops the document's cached operations and reloads from the first page. */
|
|
1127
|
+
refetch: () => void;
|
|
1128
|
+
};
|
|
1129
|
+
/**
|
|
1130
|
+
* Legacy result of `useDocumentOperations(documentId)`.
|
|
1131
|
+
* @deprecated Call `useDocumentOperations(documentId, scope, options)` and read `operations`. Removed in the next major.
|
|
1132
|
+
*/
|
|
1133
|
+
type DocumentOperationsState = {
|
|
1036
1134
|
globalOperations: Operation$1[];
|
|
1037
1135
|
localOperations: Operation$1[];
|
|
1038
1136
|
isLoading: boolean;
|
|
1039
1137
|
error: Error | undefined;
|
|
1040
|
-
};
|
|
1041
|
-
/** What `useDocumentOperations` returns; exported so consumers can name it. */
|
|
1042
|
-
type DocumentOperationsState = InternalState & {
|
|
1043
1138
|
refetch: () => void;
|
|
1044
1139
|
};
|
|
1140
|
+
/** @deprecated Pass a scope: `useDocumentOperations(documentId, "global")`. The legacy form fetches the whole global and local history eagerly. Removed in the next major. */
|
|
1141
|
+
declare function useDocumentOperations(documentId: string | null | undefined): DocumentOperationsState;
|
|
1045
1142
|
/**
|
|
1046
|
-
*
|
|
1047
|
-
*
|
|
1143
|
+
* Operation history of a document, read from the document cache and kept in
|
|
1144
|
+
* step with it: a change event for the document drops the cached pages and
|
|
1145
|
+
* the hook loads the first page again.
|
|
1048
1146
|
*
|
|
1049
|
-
*
|
|
1050
|
-
*
|
|
1147
|
+
* Pages arrive oldest first. A view that wants the whole history calls
|
|
1148
|
+
* `fetchNextPage` while `hasNextPage` is true.
|
|
1149
|
+
*
|
|
1150
|
+
* An empty first page is a final result; there is no retry. When the active
|
|
1151
|
+
* document cache does not serve operations, the result is empty and not
|
|
1152
|
+
* loading.
|
|
1153
|
+
*
|
|
1154
|
+
* @param documentId - The document id, or null/undefined to skip fetching
|
|
1155
|
+
* @param scope - The operation scope, for example "global" or "local"
|
|
1156
|
+
* @param options - Page size and whether fetching is enabled
|
|
1051
1157
|
*/
|
|
1052
|
-
declare function useDocumentOperations(documentId: string | null | undefined):
|
|
1158
|
+
declare function useDocumentOperations(documentId: string | null | undefined, scope: string, options?: UseDocumentOperationsOptions): DocumentOperationsResult;
|
|
1053
1159
|
//#endregion
|
|
1054
1160
|
//#region src/hooks/attachment-service.d.ts
|
|
1055
1161
|
/** Returns the attachment service from window.ph */
|
|
@@ -1059,5 +1165,5 @@ declare const setAttachmentService: SetPHGlobalValue<IAttachmentService>;
|
|
|
1059
1165
|
/** Registers the attachmentService window event handler */
|
|
1060
1166
|
declare const addAttachmentServiceEventHandler: AddPHGlobalEventHandler;
|
|
1061
1167
|
//#endregion
|
|
1062
|
-
export {
|
|
1063
|
-
//# sourceMappingURL=attachment-service-
|
|
1168
|
+
export { useSwitchboardClient as $, useGetDocument as A, RemoteControllerOptions as At, StaticPackageManager as B, isOperationCache as Bt, useSyncList as C, GetDocumentWithOperationsResult as Ct, useDocumentCache as D, MergeHandler as Dt, useDocument as E, IRemoteController as Et, DocumentChangesSubscriptionOptions as F, SyncStatus$1 as Ft, stampAction as G, resolveDocumentModelModule as H, isAuthRefusalClose as I, TrackedAction as It, MutateDocumentWithOperationsVariables as J, MutateDocumentWithOperationsDocument as K, makeAuthConnectionParams as L, DocumentCache as Lt, useGetDocuments as M, RemoteDocumentData as Mt, ConnectionParams as N, RemoteOperation as Nt, useDocumentSafe as O, PushResult as Ot, DocumentChangesEventPayload as P, RemoteOperationResultPage as Pt, ensurePHEventHandlers as Q, startDocumentChangesSubscription as R, IDLE_OPERATIONS_ENTRY as Rt, useSync as S, GetDocumentResult as St, setDocumentCache as T, IRemoteClient as Tt, prepareSignedActions as U, packageFromDocumentModels as V, readPromiseState as Vt, signStampedAction as W, GraphQLReactorProvider as X, ReactorOperationFieldsFragmentDoc as Y, GraphQLReactorProviderProps as Z, useDatabase as _, phDocumentFromMutation as _t, DocumentOperationsState as a, SubgraphSdkFactory as at, useReactorClient as b, ConflictStrategy as bt, useDocumentModelModuleById as c, describeGraphQLDocument as ct, UseDispatchResult as d, ambientRenownTokenProvider as dt, GraphQLReactorClient as et, useDispatch as f, makeAuthMiddleware as ft, setReactorClientModule as g, phDocumentFromGetDocument as gt, setReactorClient as h, RevisionsListSelection as ht, DocumentOperationsResult as i, GraphQLRequestOptions as it, useGetDocumentAsync as j, RemoteDocumentChangeEvent as jt, useDocuments as k, RemoteControllerGraphQLClient as kt, useDocumentModelModules as l, subgraphUrlFromGraphqlUrl as lt, addReactorClientModuleEventHandler as m, GetDocumentQueryResult as mt, setAttachmentService as n, isGraphQLReactorClient as nt, UseDocumentOperationsOptions as o, SubgraphSdkRegistry as ot, addReactorClientEventHandler as p, GetDocumentQueryFields as pt, MutateDocumentWithOperationsResult as q, useAttachmentService as r, viewFilterInputFromViewFilter as rt, useDocumentOperations as s, TypedGraphQLDocument as st, addAttachmentServiceEventHandler as t, GraphQLReactorClientOptions as tt, DispatchFn as u, BearerTokenProvider as ut, useModelRegistry as v, revisionMapFromRevisionsList as vt, addDocumentCacheEventHandler as w, GetOperationsResult as wt, useReactorClientModule as x, DocumentChangeListener as xt, usePGlite as y, ConflictInfo as yt, subscriptionsUrlFromGraphqlUrl as z, addPromiseState as zt };
|
|
1169
|
+
//# sourceMappingURL=attachment-service-C14mVTk_.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment-service-C14mVTk_.d.ts","names":[],"sources":["../src/document-cache.ts","../src/remote-controller/types.ts","../src/graphql-client/adapter.ts","../src/graphql-client/auth.ts","../src/graphql-client/subgraph.ts","../src/graphql-client/graphql-reactor-client.ts","../src/graphql-client/graphql-reactor-provider.tsx","../src/graphql-client/operations.ts","../src/graphql-client/signing.ts","../src/graphql-client/static-package-manager.ts","../src/graphql-client/subscriptions.ts","../src/hooks/document-cache.ts","../src/hooks/reactor.ts","../src/hooks/dispatch.ts","../src/hooks/document-model-modules.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CvBS,4BAAA;;;;;;EAMV,KAAA;EAEA,OAAA;AAAA;;KAIU,wBAAA;kEAEV,UAAA,WAAqB,WAAA;EAErB,SAAA;EAEA,KAAA,EAAO,KAAA,cfPsB;EeS7B,WAAA,WfTkD;EeWlD,UAAA,sBfXwE;EeaxE,aAAA,cfbuE;EeevE,OAAA;AAAA;;;;;KAaU,uBAAA;EACV,gBAAA,EAAkB,WAAA;EAClB,eAAA,EAAiB,WAAA;EACjB,SAAA;EACA,KAAA,EAAO,KAAA;EACP,OAAA;AAAA;;iBAqFc,qBAAA,CACd,UAAA,8BACC,uBAAA;;;;;;;;;;;;;;;;AflEH;iBemFgB,qBAAA,CACd,UAAA,6BACA,KAAA,UACA,OAAA,GAAU,4BAAA,GACT,wBAAA;;;;cClJU,oBAAA,EAAsB,gBAAA,CAAiB,kBAAA;;cAIvC,oBAAA,EAAsB,gBAAA,CAAiB,kBAAA;;cAIvC,gCAAA,EAAkC,uBAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ReactorGraphQLClient, k as SdkFunctionWrapper } from "./types-
|
|
1
|
+
import { c as ReactorGraphQLClient, k as SdkFunctionWrapper } from "./types-N3Jy6Nry.js";
|
|
2
2
|
import { GraphQLClient } from "graphql-request";
|
|
3
3
|
|
|
4
4
|
//#region src/graphql/client.d.ts
|
|
@@ -11,4 +11,4 @@ import { GraphQLClient } from "graphql-request";
|
|
|
11
11
|
declare function createClient(urlOrGQLClient: string | GraphQLClient, middleware?: SdkFunctionWrapper): ReactorGraphQLClient;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { createClient as t };
|
|
14
|
-
//# sourceMappingURL=client-
|
|
14
|
+
//# sourceMappingURL=client-CxJD0Ck2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-
|
|
1
|
+
{"version":3,"file":"client-CxJD0Ck2.d.ts","names":[],"sources":["../src/graphql/client.ts"],"mappings":";;;;AA4BA;;;;;;AAAA,iBAAgB,YAAA,CACd,cAAA,WAAyB,aAAA,EACzB,UAAA,GAAa,kBAAA,GACZ,oBAAA"}
|
|
@@ -31,6 +31,16 @@ const PhDocumentFieldsFragmentDoc = gql`
|
|
|
31
31
|
lastModifiedAtUtcIso
|
|
32
32
|
}
|
|
33
33
|
`;
|
|
34
|
+
const DocumentRelationshipFieldsFragmentDoc = gql`
|
|
35
|
+
fragment DocumentRelationshipFields on DocumentRelationship {
|
|
36
|
+
sourceId
|
|
37
|
+
targetId
|
|
38
|
+
relationshipType
|
|
39
|
+
metadata
|
|
40
|
+
createdAt
|
|
41
|
+
updatedAt
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
34
44
|
const GetDocumentModelsDocument = gql`
|
|
35
45
|
query GetDocumentModels($namespace: String, $paging: PagingInput) {
|
|
36
46
|
documentModels(namespace: $namespace, paging: $paging) {
|
|
@@ -159,6 +169,54 @@ const GetDocumentIncomingRelationshipsDocument = gql`
|
|
|
159
169
|
}
|
|
160
170
|
${PhDocumentFieldsFragmentDoc}
|
|
161
171
|
`;
|
|
172
|
+
const GetDocumentOutgoingRelationshipEdgesDocument = gql`
|
|
173
|
+
query GetDocumentOutgoingRelationshipEdges(
|
|
174
|
+
$sourceIdentifier: String!
|
|
175
|
+
$relationshipType: String
|
|
176
|
+
$view: ViewFilterInput
|
|
177
|
+
$paging: PagingInput
|
|
178
|
+
) {
|
|
179
|
+
documentOutgoingRelationshipEdges(
|
|
180
|
+
sourceIdentifier: $sourceIdentifier
|
|
181
|
+
relationshipType: $relationshipType
|
|
182
|
+
view: $view
|
|
183
|
+
paging: $paging
|
|
184
|
+
) {
|
|
185
|
+
items {
|
|
186
|
+
...DocumentRelationshipFields
|
|
187
|
+
}
|
|
188
|
+
totalCount
|
|
189
|
+
hasNextPage
|
|
190
|
+
hasPreviousPage
|
|
191
|
+
cursor
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
${DocumentRelationshipFieldsFragmentDoc}
|
|
195
|
+
`;
|
|
196
|
+
const GetDocumentIncomingRelationshipEdgesDocument = gql`
|
|
197
|
+
query GetDocumentIncomingRelationshipEdges(
|
|
198
|
+
$targetIdentifier: String!
|
|
199
|
+
$relationshipType: String
|
|
200
|
+
$view: ViewFilterInput
|
|
201
|
+
$paging: PagingInput
|
|
202
|
+
) {
|
|
203
|
+
documentIncomingRelationshipEdges(
|
|
204
|
+
targetIdentifier: $targetIdentifier
|
|
205
|
+
relationshipType: $relationshipType
|
|
206
|
+
view: $view
|
|
207
|
+
paging: $paging
|
|
208
|
+
) {
|
|
209
|
+
items {
|
|
210
|
+
...DocumentRelationshipFields
|
|
211
|
+
}
|
|
212
|
+
totalCount
|
|
213
|
+
hasNextPage
|
|
214
|
+
hasPreviousPage
|
|
215
|
+
cursor
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
${DocumentRelationshipFieldsFragmentDoc}
|
|
219
|
+
`;
|
|
162
220
|
const FindDocumentsDocument = gql`
|
|
163
221
|
query FindDocuments(
|
|
164
222
|
$search: SearchFilterInput
|
|
@@ -349,12 +407,34 @@ const AddRelationshipDocument = gql`
|
|
|
349
407
|
$sourceIdentifier: String!
|
|
350
408
|
$targetIdentifier: String!
|
|
351
409
|
$relationshipType: String!
|
|
410
|
+
$metadata: JSONObject
|
|
352
411
|
$branch: String
|
|
353
412
|
) {
|
|
354
413
|
addRelationship(
|
|
355
414
|
sourceIdentifier: $sourceIdentifier
|
|
356
415
|
targetIdentifier: $targetIdentifier
|
|
357
416
|
relationshipType: $relationshipType
|
|
417
|
+
metadata: $metadata
|
|
418
|
+
branch: $branch
|
|
419
|
+
) {
|
|
420
|
+
...PHDocumentFields
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
${PhDocumentFieldsFragmentDoc}
|
|
424
|
+
`;
|
|
425
|
+
const UpdateRelationshipDocument = gql`
|
|
426
|
+
mutation UpdateRelationship(
|
|
427
|
+
$sourceIdentifier: String!
|
|
428
|
+
$targetIdentifier: String!
|
|
429
|
+
$relationshipType: String!
|
|
430
|
+
$metadata: JSONObject
|
|
431
|
+
$branch: String
|
|
432
|
+
) {
|
|
433
|
+
updateRelationship(
|
|
434
|
+
sourceIdentifier: $sourceIdentifier
|
|
435
|
+
targetIdentifier: $targetIdentifier
|
|
436
|
+
relationshipType: $relationshipType
|
|
437
|
+
metadata: $metadata
|
|
358
438
|
branch: $branch
|
|
359
439
|
) {
|
|
360
440
|
...PHDocumentFields
|
|
@@ -589,6 +669,28 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
589
669
|
signal
|
|
590
670
|
}), "GetDocumentIncomingRelationships", "query", variables);
|
|
591
671
|
},
|
|
672
|
+
GetDocumentOutgoingRelationshipEdges(variables, requestHeaders, signal) {
|
|
673
|
+
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
674
|
+
document: GetDocumentOutgoingRelationshipEdgesDocument,
|
|
675
|
+
variables,
|
|
676
|
+
requestHeaders: {
|
|
677
|
+
...requestHeaders,
|
|
678
|
+
...wrappedRequestHeaders
|
|
679
|
+
},
|
|
680
|
+
signal
|
|
681
|
+
}), "GetDocumentOutgoingRelationshipEdges", "query", variables);
|
|
682
|
+
},
|
|
683
|
+
GetDocumentIncomingRelationshipEdges(variables, requestHeaders, signal) {
|
|
684
|
+
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
685
|
+
document: GetDocumentIncomingRelationshipEdgesDocument,
|
|
686
|
+
variables,
|
|
687
|
+
requestHeaders: {
|
|
688
|
+
...requestHeaders,
|
|
689
|
+
...wrappedRequestHeaders
|
|
690
|
+
},
|
|
691
|
+
signal
|
|
692
|
+
}), "GetDocumentIncomingRelationshipEdges", "query", variables);
|
|
693
|
+
},
|
|
592
694
|
FindDocuments(variables, requestHeaders, signal) {
|
|
593
695
|
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
594
696
|
document: FindDocumentsDocument,
|
|
@@ -710,6 +812,17 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
710
812
|
signal
|
|
711
813
|
}), "AddRelationship", "mutation", variables);
|
|
712
814
|
},
|
|
815
|
+
UpdateRelationship(variables, requestHeaders, signal) {
|
|
816
|
+
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
817
|
+
document: UpdateRelationshipDocument,
|
|
818
|
+
variables,
|
|
819
|
+
requestHeaders: {
|
|
820
|
+
...requestHeaders,
|
|
821
|
+
...wrappedRequestHeaders
|
|
822
|
+
},
|
|
823
|
+
signal
|
|
824
|
+
}), "UpdateRelationship", "mutation", variables);
|
|
825
|
+
},
|
|
713
826
|
RemoveRelationship(variables, requestHeaders, signal) {
|
|
714
827
|
return withWrapper((wrappedRequestHeaders) => client.request({
|
|
715
828
|
document: RemoveRelationshipDocument,
|
|
@@ -931,4 +1044,4 @@ function createClient(urlOrGQLClient, middleware) {
|
|
|
931
1044
|
//#endregion
|
|
932
1045
|
export { PhDocumentFieldsFragmentDoc as a, GetDocumentWithOperationsDocument as i, DocumentChangeType as n, PropagationMode as o, DocumentChangesDocument as r, createClient as t };
|
|
933
1046
|
|
|
934
|
-
//# sourceMappingURL=client-
|
|
1047
|
+
//# sourceMappingURL=client-D4bkR4pH.js.map
|