@contello/client 3.4.1 → 3.5.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/dist/cli.js +2 -3
- package/dist/client-AMuKG0mv.d.cts +279 -0
- package/dist/client-AMuKG0mv.d.cts.map +1 -0
- package/dist/client-BxOONMjD.d.ts +279 -0
- package/dist/client-BxOONMjD.d.ts.map +1 -0
- package/dist/{generate-CwfbsOys.js → generate-IysMI3VF.js} +14 -27
- package/dist/{generate-CwfbsOys.js.map → generate-IysMI3VF.js.map} +1 -1
- package/dist/index.cjs +246 -82
- package/dist/index.d.cts +2 -296
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +2 -296
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +224 -82
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +127 -0
- package/dist/testing.d.cts +69 -0
- package/dist/testing.d.cts.map +1 -0
- package/dist/testing.d.ts +69 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +127 -0
- package/dist/testing.js.map +1 -0
- package/package.json +13 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,291 +1,4 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import { MaybePromise } from "@entwico/dash";
|
|
3
|
-
import { ReadableStream as ReadableStream$1 } from "node:stream/web";
|
|
4
|
-
//#region src/http.d.ts
|
|
5
|
-
type HttpAgentOptions = {
|
|
6
|
-
pipelining?: number | undefined;
|
|
7
|
-
allowH2?: boolean | undefined;
|
|
8
|
-
maxConcurrentStreams?: number | undefined;
|
|
9
|
-
keepAliveTimeout?: number | undefined;
|
|
10
|
-
};
|
|
11
|
-
type DownloadResult = {
|
|
12
|
-
mimeType: string;
|
|
13
|
-
size: number;
|
|
14
|
-
bytes(): Promise<Uint8Array>;
|
|
15
|
-
stream(): ReadableStream<Uint8Array>;
|
|
16
|
-
};
|
|
17
|
-
type ProxyResult = {
|
|
18
|
-
status: number;
|
|
19
|
-
headers: Headers;
|
|
20
|
-
stream(): ReadableStream<Uint8Array>;
|
|
21
|
-
};
|
|
22
|
-
type SitemapProxyOptions = {
|
|
23
|
-
/** chunk source as received from the query string; core decides whether the source/page pair is valid */
|
|
24
|
-
source?: string | undefined;
|
|
25
|
-
/** chunk page as received from the query string */
|
|
26
|
-
page?: string | undefined;
|
|
27
|
-
/** the incoming request's Accept-Encoding, so stored gzip bytes pass through untouched */
|
|
28
|
-
acceptEncoding?: string | undefined;
|
|
29
|
-
/** the incoming request's If-None-Match, so core can answer 304 */
|
|
30
|
-
ifNoneMatch?: string | undefined;
|
|
31
|
-
};
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/introspection.d.ts
|
|
34
|
-
type ResourceAction = 'READ' | 'CREATE' | 'UPDATE' | 'DELETE';
|
|
35
|
-
type ResourcePermissions = {
|
|
36
|
-
resourceType: 'ENTITY' | 'ASSET' | 'ROUTE' | 'I18N_MESSAGE_COLLECTION' | 'MODELLING' | 'EXTENSION' | (string & {});
|
|
37
|
-
scope: string | null;
|
|
38
|
-
actions: ResourceAction[];
|
|
39
|
-
};
|
|
40
|
-
type IntrospectedUser = {
|
|
41
|
-
id: string;
|
|
42
|
-
username: string;
|
|
43
|
-
firstName: string;
|
|
44
|
-
lastName: string;
|
|
45
|
-
email: string;
|
|
46
|
-
};
|
|
47
|
-
type TokenIntrospection = {
|
|
48
|
-
active: false;
|
|
49
|
-
} | {
|
|
50
|
-
active: true;
|
|
51
|
-
audience: string;
|
|
52
|
-
expiresAt: Date;
|
|
53
|
-
user: IntrospectedUser;
|
|
54
|
-
permissions: ResourcePermissions[];
|
|
55
|
-
};
|
|
56
|
-
type TokenIntrospectorOptions = {
|
|
57
|
-
audiences: string[];
|
|
58
|
-
maxAgeMs?: number | undefined;
|
|
59
|
-
maxEntries?: number | undefined;
|
|
60
|
-
};
|
|
61
|
-
type TokenIntrospector = {
|
|
62
|
-
introspect: (token: string) => MaybePromise<TokenIntrospection>;
|
|
63
|
-
};
|
|
64
|
-
export declare function createTokenIntrospector(introspect: (token: string) => Promise<TokenIntrospection>, options: TokenIntrospectorOptions): TokenIntrospector;
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region src/types.d.ts
|
|
67
|
-
type OperationKind = 'query' | 'mutation' | 'subscription';
|
|
68
|
-
type OperationDef<TResult = unknown, TVariables = Record<string, unknown>, TKind extends OperationKind = OperationKind> = {
|
|
69
|
-
document: string;
|
|
70
|
-
kind: TKind;
|
|
71
|
-
/** phantom type — exists only at the type level */
|
|
72
|
-
__result?: TResult | undefined;
|
|
73
|
-
/** phantom type — exists only at the type level */
|
|
74
|
-
__variables?: TVariables | undefined;
|
|
75
|
-
};
|
|
76
|
-
type OperationMap = Record<string, OperationDef>;
|
|
77
|
-
type InferResult<T extends OperationDef> = NonNullable<T['__result']>;
|
|
78
|
-
type InferVariables<T extends OperationDef> = NonNullable<T['__variables']>;
|
|
79
|
-
type RpcMethod<T extends OperationDef> = T['kind'] extends 'subscription' ? InferVariables<T> extends Record<string, never> ? () => AsyncIterable<InferResult<T>> : (variables: InferVariables<T>) => AsyncIterable<InferResult<T>> : InferVariables<T> extends Record<string, never> ? () => Promise<InferResult<T>> : (variables: InferVariables<T>) => Promise<InferResult<T>>;
|
|
80
|
-
type Rpc<T extends OperationMap> = { [K in keyof T]: RpcMethod<T[K]>; };
|
|
81
|
-
/**
|
|
82
|
-
* Discriminator for how a SourceDef binds to a Subscription field:
|
|
83
|
-
* - `entity` — a Contello entity model collection (`categoriesBatch` etc.), accepts optional `{ ids }` filter
|
|
84
|
-
* - `singleton` — a single Contello entity (`config` etc.), no args
|
|
85
|
-
* - `route` — built-in: `contelloRoutesBatch`, optional `{ ids, paths }` filter
|
|
86
|
-
* - `asset` — built-in: `contelloAssetsBatch`, optional `{ ids }` filter
|
|
87
|
-
* - `i18nMessage` — built-in: `contelloI18nMessagesBatch`, requires `{ collection }` and optional `{ ids }` filter
|
|
88
|
-
*/
|
|
89
|
-
type SourceCardinality = 'entity' | 'singleton' | 'route' | 'asset' | 'i18nMessage';
|
|
90
|
-
/**
|
|
91
|
-
* One argument of a write mutation and what fills it. Entity mutations take a single input
|
|
92
|
-
* object; the built-ins vary — `createContelloRoute` takes `route:`, `deleteContelloRoute`
|
|
93
|
-
* takes a bare `id:`.
|
|
94
|
-
*/
|
|
95
|
-
type SourceMutationArgument = {
|
|
96
|
-
/** the GQL argument name — `request`, `route`, `id` */
|
|
97
|
-
name: string;
|
|
98
|
-
/** the rendered GQL type, including nullability — `CreateCategoryRequestInput!`, `String` */
|
|
99
|
-
type: string;
|
|
100
|
-
/** `input` takes the caller's input, `id` the id passed to a delete */
|
|
101
|
-
from: 'input' | 'id';
|
|
102
|
-
/**
|
|
103
|
-
* the single field of a one-field envelope argument (`CreateCategoryRequestInput { entity }`).
|
|
104
|
-
* When set, the accessor takes the inner input and the runtime nests it under this key.
|
|
105
|
-
*/
|
|
106
|
-
envelope?: string | undefined;
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* What a write mutation answers with:
|
|
110
|
-
* - `entity` — the entity itself, selected through the source's fragment
|
|
111
|
-
* - `idObject` — an object carrying `id` (`ContelloEntityDeleteResponse`)
|
|
112
|
-
* - `idScalar` — a bare id (`deleteContelloRoute: String!`)
|
|
113
|
-
*/
|
|
114
|
-
type SourceMutationResult = 'entity' | 'idObject' | 'idScalar';
|
|
115
|
-
/**
|
|
116
|
-
* How one write operation of a source binds to a Mutation field. Emitted by the generator
|
|
117
|
-
* from introspection — the runtime never derives field or argument names by string munging.
|
|
118
|
-
*/
|
|
119
|
-
type SourceMutationBinding = {
|
|
120
|
-
/** the mutation field — `createCategory` */
|
|
121
|
-
field: string;
|
|
122
|
-
arguments: SourceMutationArgument[];
|
|
123
|
-
result: SourceMutationResult;
|
|
124
|
-
};
|
|
125
|
-
/** Mutation bindings of a source. Absent operations are simply missing (singletons have no `create`). */
|
|
126
|
-
type SourceMutations = {
|
|
127
|
-
create?: SourceMutationBinding | undefined;
|
|
128
|
-
update?: SourceMutationBinding | undefined;
|
|
129
|
-
delete?: SourceMutationBinding | undefined;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Phantom shape carrying the input types of a source's write operations. A key is present
|
|
133
|
-
* only when the schema exposes the matching mutation, so `client.sources.x.create` exists
|
|
134
|
-
* exactly when `createX` does.
|
|
135
|
-
*/
|
|
136
|
-
type SourceWrites = {
|
|
137
|
-
create?: unknown;
|
|
138
|
-
update?: unknown;
|
|
139
|
-
delete?: unknown;
|
|
140
|
-
};
|
|
141
|
-
type SourceDef<TModel extends string = string, TCardinality extends SourceCardinality = SourceCardinality, TResult = unknown, TWrites = unknown> = {
|
|
142
|
-
/** the GQL fragment text — bundled with transitive deps if any */
|
|
143
|
-
document: string;
|
|
144
|
-
/** the fragment name to spread inside the source subscription — e.g. `Category` */
|
|
145
|
-
fragment: string;
|
|
146
|
-
/** the subscription field this fragment is bound to — `categoriesBatch`, `config`, etc */
|
|
147
|
-
subscription: string;
|
|
148
|
-
/** write bindings — present only for sources whose model exposes entity mutations */
|
|
149
|
-
mutations?: SourceMutations | undefined;
|
|
150
|
-
__model: TModel;
|
|
151
|
-
__cardinality: TCardinality;
|
|
152
|
-
/** phantom type — exists only at the type level */
|
|
153
|
-
__result?: TResult | undefined;
|
|
154
|
-
/** phantom type — exists only at the type level */
|
|
155
|
-
__writes?: TWrites | undefined;
|
|
156
|
-
};
|
|
157
|
-
type SourceMap = Record<string, SourceDef>;
|
|
158
|
-
/**
|
|
159
|
-
* The bundle emitted by `contello-client generate`. Pass to `createContelloClient({ schema })`
|
|
160
|
-
* (and to `createStore`, `createContello`). Each layer reads what it needs:
|
|
161
|
-
* - client uses `operations` (for `client.rpc.*`) and `sources` (for `client.sources.*`).
|
|
162
|
-
* - store uses `models` (for the dependency resolver) on top of what client uses.
|
|
163
|
-
*/
|
|
164
|
-
type Schema<TOps extends OperationMap = OperationMap, TSources extends SourceMap = SourceMap, TModels extends string = string> = {
|
|
165
|
-
operations: TOps;
|
|
166
|
-
sources: TSources;
|
|
167
|
-
models: Record<TModels, string>;
|
|
168
|
-
};
|
|
169
|
-
type SourceFetcherFor<S> = S extends SourceDef<string, 'singleton', infer R> ? () => Promise<R> : S extends SourceDef<string, 'entity', infer R> ? (vars?: {
|
|
170
|
-
ids?: string[];
|
|
171
|
-
}) => Promise<R[]> : S extends SourceDef<string, 'route', infer R> ? (vars?: {
|
|
172
|
-
ids?: string[] | undefined;
|
|
173
|
-
paths?: string[] | undefined;
|
|
174
|
-
} | undefined) => Promise<R[]> : S extends SourceDef<string, 'asset', infer R> ? (vars?: {
|
|
175
|
-
ids?: string[] | undefined;
|
|
176
|
-
} | undefined) => Promise<R[]> : S extends SourceDef<string, 'i18nMessage', infer R> ? (vars: {
|
|
177
|
-
collection: string;
|
|
178
|
-
ids?: string[] | undefined;
|
|
179
|
-
}) => Promise<R[]> : never;
|
|
180
|
-
/** Extracts the phantom write-input shape of a SourceDef. */
|
|
181
|
-
type WritesOf<S> = S extends SourceDef<string, SourceCardinality, any, infer W> ? W : unknown;
|
|
182
|
-
/** Extracts the phantom result shape of a SourceDef — what its fragment selects. */
|
|
183
|
-
type ResultOf<S> = S extends SourceDef<string, SourceCardinality, infer R, any> ? R : unknown;
|
|
184
|
-
/**
|
|
185
|
-
* Per-source write accessors. Each method exists only when the generator found the matching
|
|
186
|
-
* mutation. A `create`/`update` selects the source's own fragment, so it answers with the entity
|
|
187
|
-
* in exactly the shape `fetch` yields; a `delete` answers with the id it removed. Nothing is
|
|
188
|
-
* cached here — that is the job of the collection that owns the source in `@contello/store`.
|
|
189
|
-
*/
|
|
190
|
-
type SourceWritersFor<S> = (WritesOf<S> extends {
|
|
191
|
-
create: infer TCreate;
|
|
192
|
-
} ? {
|
|
193
|
-
create: (input: TCreate) => Promise<ResultOf<S>>;
|
|
194
|
-
} : Record<never, never>) & (WritesOf<S> extends {
|
|
195
|
-
update: infer TUpdate;
|
|
196
|
-
} ? {
|
|
197
|
-
update: (input: TUpdate) => Promise<ResultOf<S>>;
|
|
198
|
-
} : Record<never, never>) & (WritesOf<S> extends {
|
|
199
|
-
delete: infer TDelete;
|
|
200
|
-
} ? {
|
|
201
|
-
delete: (input: TDelete) => Promise<string>;
|
|
202
|
-
} : Record<never, never>);
|
|
203
|
-
/** Per-source runtime accessor: `client.sources.category.fetch()` → `Promise<CategoryFragment[]>` etc. */
|
|
204
|
-
type SourceAccessors<TSources extends SourceMap> = { [K in keyof TSources]: {
|
|
205
|
-
fetch: SourceFetcherFor<TSources[K]>;
|
|
206
|
-
} & SourceWritersFor<TSources[K]>; };
|
|
207
|
-
//#endregion
|
|
208
|
-
//#region src/upload.d.ts
|
|
209
|
-
type UploadMetadata = {
|
|
210
|
-
name: string;
|
|
211
|
-
mimeType?: string | undefined;
|
|
212
|
-
size?: number | undefined;
|
|
213
|
-
annotations?: {
|
|
214
|
-
key: string;
|
|
215
|
-
value: string;
|
|
216
|
-
}[] | undefined;
|
|
217
|
-
collectionRefs?: string[] | undefined;
|
|
218
|
-
/**
|
|
219
|
-
* `deleteIfNotUsed` lets the server delete the asset once nothing references it.
|
|
220
|
-
* @default 'retain'
|
|
221
|
-
*/
|
|
222
|
-
retentionPolicy?: 'retain' | 'deleteIfNotUsed' | undefined;
|
|
223
|
-
};
|
|
224
|
-
type UploadData = Uint8Array | ReadableStream$1<Uint8Array> | ReadableStream<Uint8Array>;
|
|
225
|
-
type UploadOptions = {
|
|
226
|
-
chunkSize?: number | undefined;
|
|
227
|
-
abort?: AbortSignal | undefined;
|
|
228
|
-
};
|
|
229
|
-
//#endregion
|
|
230
|
-
//#region src/client.d.ts
|
|
231
|
-
type ConnectionContext = {
|
|
232
|
-
connectionId: string;
|
|
233
|
-
websocketUrl: string;
|
|
234
|
-
};
|
|
235
|
-
type ConnectionEvents = {
|
|
236
|
-
onConnected?: ((context: ConnectionContext) => void) | undefined;
|
|
237
|
-
onConnecting?: ((context: ConnectionContext) => void) | undefined;
|
|
238
|
-
onClosed?: ((context: ConnectionContext) => void) | undefined;
|
|
239
|
-
onError?: ((context: ConnectionContext, error: unknown) => void) | undefined;
|
|
240
|
-
};
|
|
241
|
-
type ContelloClientOptions<TSchema extends Schema | undefined = undefined> = {
|
|
242
|
-
url: string;
|
|
243
|
-
project: string;
|
|
244
|
-
token: string;
|
|
245
|
-
schema?: TSchema | undefined;
|
|
246
|
-
connections?: number | undefined;
|
|
247
|
-
http?: HttpAgentOptions | undefined;
|
|
248
|
-
onConnected?: (() => void) | undefined;
|
|
249
|
-
onReconnecting?: (() => void) | undefined;
|
|
250
|
-
onError?: ((error: unknown) => void) | undefined;
|
|
251
|
-
connectionEvents?: ConnectionEvents | undefined;
|
|
252
|
-
};
|
|
253
|
-
export declare class ContelloClient<TSchema extends Schema | undefined = undefined> {
|
|
254
|
-
private _pool;
|
|
255
|
-
private _rpc;
|
|
256
|
-
private _sources;
|
|
257
|
-
private _url;
|
|
258
|
-
private _project;
|
|
259
|
-
private _token;
|
|
260
|
-
private _agent;
|
|
261
|
-
constructor(options: ContelloClientOptions<TSchema>);
|
|
262
|
-
get rpc(): TSchema extends Schema<infer TOps, any, any> ? Rpc<TOps> : never;
|
|
263
|
-
get sources(): TSchema extends Schema<any, infer TSources, any> ? SourceAccessors<TSources> : never;
|
|
264
|
-
init(): Promise<void>;
|
|
265
|
-
destroy(): Promise<void>;
|
|
266
|
-
ping(): Promise<void>;
|
|
267
|
-
/**
|
|
268
|
-
* What a temporary token the Contello ui handed to an extension page stands for in the project of
|
|
269
|
-
* this client: the user and the user's effective permissions, or inactive. The client's
|
|
270
|
-
* application needs read access to the project. See `createTokenIntrospector` for the caching
|
|
271
|
-
* wrapper a backend puts in front of its requests.
|
|
272
|
-
*/
|
|
273
|
-
introspectToken(token: string): Promise<TokenIntrospection>;
|
|
274
|
-
/**
|
|
275
|
-
* Open a subscription on the websocket. Each `[Symbol.asyncIterator]()` call (the implicit one
|
|
276
|
-
* from `for await`, or via `rxjs.from(this)`) starts a fresh server subscription and tears it
|
|
277
|
-
* down when the iterator is returned (`break`, error, or explicit stop).
|
|
278
|
-
*/
|
|
279
|
-
subscribe<TData>(query: string, variables?: Record<string, unknown> | undefined): AsyncIterable<TData>;
|
|
280
|
-
download(fileId: string): Promise<DownloadResult>;
|
|
281
|
-
proxyHls(path: string, signal?: AbortSignal | undefined): Promise<ProxyResult>;
|
|
282
|
-
proxySitemap(sitemapId: string, options: SitemapProxyOptions, signal?: AbortSignal | undefined): Promise<ProxyResult>;
|
|
283
|
-
upload(data: UploadData, meta: UploadMetadata, options?: UploadOptions | undefined): Promise<string>;
|
|
284
|
-
execute<TData>(query: string, variables?: Record<string, unknown> | undefined): Promise<TData>;
|
|
285
|
-
}
|
|
286
|
-
export declare function createContelloClient<TSchema extends Schema | undefined = undefined>(options: ContelloClientOptions<TSchema>): ContelloClient<TSchema>;
|
|
287
|
-
//#endregion
|
|
288
|
-
//#region src/scalars.d.ts
|
|
1
|
+
import { A as DownloadResult, C as IntrospectedUser, D as TokenIntrospector, E as TokenIntrospection, M as ProxyResult, N as SitemapProxyOptions, O as TokenIntrospectorOptions, S as SourceWrites, T as ResourcePermissions, _ as SourceMap, a as createContelloClient, b as SourceMutationResult, c as UploadOptions, d as OperationMap, f as Rpc, g as SourceDef, h as SourceCardinality, i as ContelloClientOptions, j as HttpAgentOptions, k as createTokenIntrospector, l as OperationDef, m as SourceAccessors, n as ConnectionEvents, o as UploadData, p as Schema, r as ContelloClient, s as UploadMetadata, t as ConnectionContext, u as OperationKind, v as SourceMutationArgument, w as ResourceAction, x as SourceMutations, y as SourceMutationBinding } from "./client-AMuKG0mv.cjs";
|
|
289
2
|
type LocalDateTime = {
|
|
290
3
|
year: number;
|
|
291
4
|
month: number;
|
|
@@ -299,11 +12,7 @@ type LocalDate = {
|
|
|
299
12
|
month: number;
|
|
300
13
|
day: number;
|
|
301
14
|
};
|
|
302
|
-
//#endregion
|
|
303
|
-
//#region src/source-subscription.d.ts
|
|
304
15
|
export declare function createSourceSubscription(source: SourceDef): string;
|
|
305
|
-
//#endregion
|
|
306
|
-
//#region src/source-mutation.d.ts
|
|
307
16
|
type SourceMutationKind = keyof SourceMutations;
|
|
308
17
|
/** What a write takes: the caller's input, and the id for a delete. */
|
|
309
18
|
type SourceMutationValues = {
|
|
@@ -321,8 +30,6 @@ export declare function createSourceMutation(source: SourceDef, kind: SourceMuta
|
|
|
321
30
|
export declare function createSourceMutationVariables(binding: SourceMutationBinding, values: SourceMutationValues): Record<string, unknown>;
|
|
322
31
|
/** Pulls the id out of whatever shape the mutation answered with. */
|
|
323
32
|
export declare function readSourceMutationId(binding: SourceMutationBinding, result: unknown): string;
|
|
324
|
-
//#endregion
|
|
325
|
-
//#region src/built-in-mutations.d.ts
|
|
326
33
|
/**
|
|
327
34
|
* Write bindings for the built-in sources. Unlike entity mutations these are not derived — their
|
|
328
35
|
* field and argument names are fixed parts of every Contello schema — but the generator still
|
|
@@ -336,6 +43,5 @@ export declare function readSourceMutationId(binding: SourceMutationBinding, res
|
|
|
336
43
|
* Assets have no `create` — an asset comes into being through `client.upload()`, not a mutation.
|
|
337
44
|
*/
|
|
338
45
|
export declare const BUILT_IN_MUTATIONS: Partial<Record<SourceCardinality, SourceMutations>>;
|
|
339
|
-
|
|
340
|
-
export type { ConnectionContext, ConnectionEvents, ContelloClientOptions, DownloadResult, HttpAgentOptions, IntrospectedUser, LocalDate, LocalDateTime, OperationDef, OperationKind, OperationMap, ProxyResult, ResourceAction, ResourcePermissions, Rpc, Schema, SitemapProxyOptions, SourceAccessors, SourceCardinality, SourceDef, SourceMap, SourceMutationArgument, SourceMutationBinding, SourceMutationKind, SourceMutationResult, SourceMutationValues, SourceMutations, SourceWrites, TokenIntrospection, TokenIntrospector, TokenIntrospectorOptions, UploadData, UploadMetadata, UploadOptions };
|
|
46
|
+
export { type ConnectionContext, type ConnectionEvents, ContelloClient, type ContelloClientOptions, type DownloadResult, type HttpAgentOptions, type IntrospectedUser, type LocalDate, type LocalDateTime, type OperationDef, type OperationKind, type OperationMap, type ProxyResult, type ResourceAction, type ResourcePermissions, type Rpc, type Schema, type SitemapProxyOptions, type SourceAccessors, type SourceCardinality, type SourceDef, type SourceMap, type SourceMutationArgument, type SourceMutationBinding, type SourceMutationKind, type SourceMutationResult, type SourceMutationValues, type SourceMutations, type SourceWrites, type TokenIntrospection, type TokenIntrospector, type TokenIntrospectorOptions, type UploadData, type UploadMetadata, type UploadOptions, createContelloClient, createTokenIntrospector };
|
|
341
47
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/scalars.ts","../src/source-subscription.ts","../src/source-mutation.ts","../src/built-in-mutations.ts"],"mappings":";KAAY;EACV;EACA;EACA;EACA;EACA;EACA;;KAGU;EACV;EACA;EACA;;wBCcc,yBAAyB,QAAQ;KCvBrC,2BAA2B;;KAG3B;EACV;EACA;;;wBAwBc,qBAAqB,QAAQ,WAAW,MAAM;;;;;;;wBA+B9C,8BACd,SAAS,uBACT,QAAQ,uBACP;;wBAYa,qBAAqB,SAAS,uBAAuB;;;;;;;;;;;;;qBChExD,oBAAoB,QAAQ,OAAO,mBAAmB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,291 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MaybePromise } from "@entwico/dash";
|
|
3
|
-
import { ReadableStream as ReadableStream$1 } from "node:stream/web";
|
|
4
|
-
//#region src/http.d.ts
|
|
5
|
-
type HttpAgentOptions = {
|
|
6
|
-
pipelining?: number | undefined;
|
|
7
|
-
allowH2?: boolean | undefined;
|
|
8
|
-
maxConcurrentStreams?: number | undefined;
|
|
9
|
-
keepAliveTimeout?: number | undefined;
|
|
10
|
-
};
|
|
11
|
-
type DownloadResult = {
|
|
12
|
-
mimeType: string;
|
|
13
|
-
size: number;
|
|
14
|
-
bytes(): Promise<Uint8Array>;
|
|
15
|
-
stream(): ReadableStream<Uint8Array>;
|
|
16
|
-
};
|
|
17
|
-
type ProxyResult = {
|
|
18
|
-
status: number;
|
|
19
|
-
headers: Headers;
|
|
20
|
-
stream(): ReadableStream<Uint8Array>;
|
|
21
|
-
};
|
|
22
|
-
type SitemapProxyOptions = {
|
|
23
|
-
/** chunk source as received from the query string; core decides whether the source/page pair is valid */
|
|
24
|
-
source?: string | undefined;
|
|
25
|
-
/** chunk page as received from the query string */
|
|
26
|
-
page?: string | undefined;
|
|
27
|
-
/** the incoming request's Accept-Encoding, so stored gzip bytes pass through untouched */
|
|
28
|
-
acceptEncoding?: string | undefined;
|
|
29
|
-
/** the incoming request's If-None-Match, so core can answer 304 */
|
|
30
|
-
ifNoneMatch?: string | undefined;
|
|
31
|
-
};
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/introspection.d.ts
|
|
34
|
-
type ResourceAction = 'READ' | 'CREATE' | 'UPDATE' | 'DELETE';
|
|
35
|
-
type ResourcePermissions = {
|
|
36
|
-
resourceType: 'ENTITY' | 'ASSET' | 'ROUTE' | 'I18N_MESSAGE_COLLECTION' | 'MODELLING' | 'EXTENSION' | (string & {});
|
|
37
|
-
scope: string | null;
|
|
38
|
-
actions: ResourceAction[];
|
|
39
|
-
};
|
|
40
|
-
type IntrospectedUser = {
|
|
41
|
-
id: string;
|
|
42
|
-
username: string;
|
|
43
|
-
firstName: string;
|
|
44
|
-
lastName: string;
|
|
45
|
-
email: string;
|
|
46
|
-
};
|
|
47
|
-
type TokenIntrospection = {
|
|
48
|
-
active: false;
|
|
49
|
-
} | {
|
|
50
|
-
active: true;
|
|
51
|
-
audience: string;
|
|
52
|
-
expiresAt: Date;
|
|
53
|
-
user: IntrospectedUser;
|
|
54
|
-
permissions: ResourcePermissions[];
|
|
55
|
-
};
|
|
56
|
-
type TokenIntrospectorOptions = {
|
|
57
|
-
audiences: string[];
|
|
58
|
-
maxAgeMs?: number | undefined;
|
|
59
|
-
maxEntries?: number | undefined;
|
|
60
|
-
};
|
|
61
|
-
type TokenIntrospector = {
|
|
62
|
-
introspect: (token: string) => MaybePromise<TokenIntrospection>;
|
|
63
|
-
};
|
|
64
|
-
export declare function createTokenIntrospector(introspect: (token: string) => Promise<TokenIntrospection>, options: TokenIntrospectorOptions): TokenIntrospector;
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region src/types.d.ts
|
|
67
|
-
type OperationKind = 'query' | 'mutation' | 'subscription';
|
|
68
|
-
type OperationDef<TResult = unknown, TVariables = Record<string, unknown>, TKind extends OperationKind = OperationKind> = {
|
|
69
|
-
document: string;
|
|
70
|
-
kind: TKind;
|
|
71
|
-
/** phantom type — exists only at the type level */
|
|
72
|
-
__result?: TResult | undefined;
|
|
73
|
-
/** phantom type — exists only at the type level */
|
|
74
|
-
__variables?: TVariables | undefined;
|
|
75
|
-
};
|
|
76
|
-
type OperationMap = Record<string, OperationDef>;
|
|
77
|
-
type InferResult<T extends OperationDef> = NonNullable<T['__result']>;
|
|
78
|
-
type InferVariables<T extends OperationDef> = NonNullable<T['__variables']>;
|
|
79
|
-
type RpcMethod<T extends OperationDef> = T['kind'] extends 'subscription' ? InferVariables<T> extends Record<string, never> ? () => AsyncIterable<InferResult<T>> : (variables: InferVariables<T>) => AsyncIterable<InferResult<T>> : InferVariables<T> extends Record<string, never> ? () => Promise<InferResult<T>> : (variables: InferVariables<T>) => Promise<InferResult<T>>;
|
|
80
|
-
type Rpc<T extends OperationMap> = { [K in keyof T]: RpcMethod<T[K]>; };
|
|
81
|
-
/**
|
|
82
|
-
* Discriminator for how a SourceDef binds to a Subscription field:
|
|
83
|
-
* - `entity` — a Contello entity model collection (`categoriesBatch` etc.), accepts optional `{ ids }` filter
|
|
84
|
-
* - `singleton` — a single Contello entity (`config` etc.), no args
|
|
85
|
-
* - `route` — built-in: `contelloRoutesBatch`, optional `{ ids, paths }` filter
|
|
86
|
-
* - `asset` — built-in: `contelloAssetsBatch`, optional `{ ids }` filter
|
|
87
|
-
* - `i18nMessage` — built-in: `contelloI18nMessagesBatch`, requires `{ collection }` and optional `{ ids }` filter
|
|
88
|
-
*/
|
|
89
|
-
type SourceCardinality = 'entity' | 'singleton' | 'route' | 'asset' | 'i18nMessage';
|
|
90
|
-
/**
|
|
91
|
-
* One argument of a write mutation and what fills it. Entity mutations take a single input
|
|
92
|
-
* object; the built-ins vary — `createContelloRoute` takes `route:`, `deleteContelloRoute`
|
|
93
|
-
* takes a bare `id:`.
|
|
94
|
-
*/
|
|
95
|
-
type SourceMutationArgument = {
|
|
96
|
-
/** the GQL argument name — `request`, `route`, `id` */
|
|
97
|
-
name: string;
|
|
98
|
-
/** the rendered GQL type, including nullability — `CreateCategoryRequestInput!`, `String` */
|
|
99
|
-
type: string;
|
|
100
|
-
/** `input` takes the caller's input, `id` the id passed to a delete */
|
|
101
|
-
from: 'input' | 'id';
|
|
102
|
-
/**
|
|
103
|
-
* the single field of a one-field envelope argument (`CreateCategoryRequestInput { entity }`).
|
|
104
|
-
* When set, the accessor takes the inner input and the runtime nests it under this key.
|
|
105
|
-
*/
|
|
106
|
-
envelope?: string | undefined;
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* What a write mutation answers with:
|
|
110
|
-
* - `entity` — the entity itself, selected through the source's fragment
|
|
111
|
-
* - `idObject` — an object carrying `id` (`ContelloEntityDeleteResponse`)
|
|
112
|
-
* - `idScalar` — a bare id (`deleteContelloRoute: String!`)
|
|
113
|
-
*/
|
|
114
|
-
type SourceMutationResult = 'entity' | 'idObject' | 'idScalar';
|
|
115
|
-
/**
|
|
116
|
-
* How one write operation of a source binds to a Mutation field. Emitted by the generator
|
|
117
|
-
* from introspection — the runtime never derives field or argument names by string munging.
|
|
118
|
-
*/
|
|
119
|
-
type SourceMutationBinding = {
|
|
120
|
-
/** the mutation field — `createCategory` */
|
|
121
|
-
field: string;
|
|
122
|
-
arguments: SourceMutationArgument[];
|
|
123
|
-
result: SourceMutationResult;
|
|
124
|
-
};
|
|
125
|
-
/** Mutation bindings of a source. Absent operations are simply missing (singletons have no `create`). */
|
|
126
|
-
type SourceMutations = {
|
|
127
|
-
create?: SourceMutationBinding | undefined;
|
|
128
|
-
update?: SourceMutationBinding | undefined;
|
|
129
|
-
delete?: SourceMutationBinding | undefined;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Phantom shape carrying the input types of a source's write operations. A key is present
|
|
133
|
-
* only when the schema exposes the matching mutation, so `client.sources.x.create` exists
|
|
134
|
-
* exactly when `createX` does.
|
|
135
|
-
*/
|
|
136
|
-
type SourceWrites = {
|
|
137
|
-
create?: unknown;
|
|
138
|
-
update?: unknown;
|
|
139
|
-
delete?: unknown;
|
|
140
|
-
};
|
|
141
|
-
type SourceDef<TModel extends string = string, TCardinality extends SourceCardinality = SourceCardinality, TResult = unknown, TWrites = unknown> = {
|
|
142
|
-
/** the GQL fragment text — bundled with transitive deps if any */
|
|
143
|
-
document: string;
|
|
144
|
-
/** the fragment name to spread inside the source subscription — e.g. `Category` */
|
|
145
|
-
fragment: string;
|
|
146
|
-
/** the subscription field this fragment is bound to — `categoriesBatch`, `config`, etc */
|
|
147
|
-
subscription: string;
|
|
148
|
-
/** write bindings — present only for sources whose model exposes entity mutations */
|
|
149
|
-
mutations?: SourceMutations | undefined;
|
|
150
|
-
__model: TModel;
|
|
151
|
-
__cardinality: TCardinality;
|
|
152
|
-
/** phantom type — exists only at the type level */
|
|
153
|
-
__result?: TResult | undefined;
|
|
154
|
-
/** phantom type — exists only at the type level */
|
|
155
|
-
__writes?: TWrites | undefined;
|
|
156
|
-
};
|
|
157
|
-
type SourceMap = Record<string, SourceDef>;
|
|
158
|
-
/**
|
|
159
|
-
* The bundle emitted by `contello-client generate`. Pass to `createContelloClient({ schema })`
|
|
160
|
-
* (and to `createStore`, `createContello`). Each layer reads what it needs:
|
|
161
|
-
* - client uses `operations` (for `client.rpc.*`) and `sources` (for `client.sources.*`).
|
|
162
|
-
* - store uses `models` (for the dependency resolver) on top of what client uses.
|
|
163
|
-
*/
|
|
164
|
-
type Schema<TOps extends OperationMap = OperationMap, TSources extends SourceMap = SourceMap, TModels extends string = string> = {
|
|
165
|
-
operations: TOps;
|
|
166
|
-
sources: TSources;
|
|
167
|
-
models: Record<TModels, string>;
|
|
168
|
-
};
|
|
169
|
-
type SourceFetcherFor<S> = S extends SourceDef<string, 'singleton', infer R> ? () => Promise<R> : S extends SourceDef<string, 'entity', infer R> ? (vars?: {
|
|
170
|
-
ids?: string[];
|
|
171
|
-
}) => Promise<R[]> : S extends SourceDef<string, 'route', infer R> ? (vars?: {
|
|
172
|
-
ids?: string[] | undefined;
|
|
173
|
-
paths?: string[] | undefined;
|
|
174
|
-
} | undefined) => Promise<R[]> : S extends SourceDef<string, 'asset', infer R> ? (vars?: {
|
|
175
|
-
ids?: string[] | undefined;
|
|
176
|
-
} | undefined) => Promise<R[]> : S extends SourceDef<string, 'i18nMessage', infer R> ? (vars: {
|
|
177
|
-
collection: string;
|
|
178
|
-
ids?: string[] | undefined;
|
|
179
|
-
}) => Promise<R[]> : never;
|
|
180
|
-
/** Extracts the phantom write-input shape of a SourceDef. */
|
|
181
|
-
type WritesOf<S> = S extends SourceDef<string, SourceCardinality, any, infer W> ? W : unknown;
|
|
182
|
-
/** Extracts the phantom result shape of a SourceDef — what its fragment selects. */
|
|
183
|
-
type ResultOf<S> = S extends SourceDef<string, SourceCardinality, infer R, any> ? R : unknown;
|
|
184
|
-
/**
|
|
185
|
-
* Per-source write accessors. Each method exists only when the generator found the matching
|
|
186
|
-
* mutation. A `create`/`update` selects the source's own fragment, so it answers with the entity
|
|
187
|
-
* in exactly the shape `fetch` yields; a `delete` answers with the id it removed. Nothing is
|
|
188
|
-
* cached here — that is the job of the collection that owns the source in `@contello/store`.
|
|
189
|
-
*/
|
|
190
|
-
type SourceWritersFor<S> = (WritesOf<S> extends {
|
|
191
|
-
create: infer TCreate;
|
|
192
|
-
} ? {
|
|
193
|
-
create: (input: TCreate) => Promise<ResultOf<S>>;
|
|
194
|
-
} : Record<never, never>) & (WritesOf<S> extends {
|
|
195
|
-
update: infer TUpdate;
|
|
196
|
-
} ? {
|
|
197
|
-
update: (input: TUpdate) => Promise<ResultOf<S>>;
|
|
198
|
-
} : Record<never, never>) & (WritesOf<S> extends {
|
|
199
|
-
delete: infer TDelete;
|
|
200
|
-
} ? {
|
|
201
|
-
delete: (input: TDelete) => Promise<string>;
|
|
202
|
-
} : Record<never, never>);
|
|
203
|
-
/** Per-source runtime accessor: `client.sources.category.fetch()` → `Promise<CategoryFragment[]>` etc. */
|
|
204
|
-
type SourceAccessors<TSources extends SourceMap> = { [K in keyof TSources]: {
|
|
205
|
-
fetch: SourceFetcherFor<TSources[K]>;
|
|
206
|
-
} & SourceWritersFor<TSources[K]>; };
|
|
207
|
-
//#endregion
|
|
208
|
-
//#region src/upload.d.ts
|
|
209
|
-
type UploadMetadata = {
|
|
210
|
-
name: string;
|
|
211
|
-
mimeType?: string | undefined;
|
|
212
|
-
size?: number | undefined;
|
|
213
|
-
annotations?: {
|
|
214
|
-
key: string;
|
|
215
|
-
value: string;
|
|
216
|
-
}[] | undefined;
|
|
217
|
-
collectionRefs?: string[] | undefined;
|
|
218
|
-
/**
|
|
219
|
-
* `deleteIfNotUsed` lets the server delete the asset once nothing references it.
|
|
220
|
-
* @default 'retain'
|
|
221
|
-
*/
|
|
222
|
-
retentionPolicy?: 'retain' | 'deleteIfNotUsed' | undefined;
|
|
223
|
-
};
|
|
224
|
-
type UploadData = Uint8Array | ReadableStream$1<Uint8Array> | ReadableStream<Uint8Array>;
|
|
225
|
-
type UploadOptions = {
|
|
226
|
-
chunkSize?: number | undefined;
|
|
227
|
-
abort?: AbortSignal | undefined;
|
|
228
|
-
};
|
|
229
|
-
//#endregion
|
|
230
|
-
//#region src/client.d.ts
|
|
231
|
-
type ConnectionContext = {
|
|
232
|
-
connectionId: string;
|
|
233
|
-
websocketUrl: string;
|
|
234
|
-
};
|
|
235
|
-
type ConnectionEvents = {
|
|
236
|
-
onConnected?: ((context: ConnectionContext) => void) | undefined;
|
|
237
|
-
onConnecting?: ((context: ConnectionContext) => void) | undefined;
|
|
238
|
-
onClosed?: ((context: ConnectionContext) => void) | undefined;
|
|
239
|
-
onError?: ((context: ConnectionContext, error: unknown) => void) | undefined;
|
|
240
|
-
};
|
|
241
|
-
type ContelloClientOptions<TSchema extends Schema | undefined = undefined> = {
|
|
242
|
-
url: string;
|
|
243
|
-
project: string;
|
|
244
|
-
token: string;
|
|
245
|
-
schema?: TSchema | undefined;
|
|
246
|
-
connections?: number | undefined;
|
|
247
|
-
http?: HttpAgentOptions | undefined;
|
|
248
|
-
onConnected?: (() => void) | undefined;
|
|
249
|
-
onReconnecting?: (() => void) | undefined;
|
|
250
|
-
onError?: ((error: unknown) => void) | undefined;
|
|
251
|
-
connectionEvents?: ConnectionEvents | undefined;
|
|
252
|
-
};
|
|
253
|
-
export declare class ContelloClient<TSchema extends Schema | undefined = undefined> {
|
|
254
|
-
private _pool;
|
|
255
|
-
private _rpc;
|
|
256
|
-
private _sources;
|
|
257
|
-
private _url;
|
|
258
|
-
private _project;
|
|
259
|
-
private _token;
|
|
260
|
-
private _agent;
|
|
261
|
-
constructor(options: ContelloClientOptions<TSchema>);
|
|
262
|
-
get rpc(): TSchema extends Schema<infer TOps, any, any> ? Rpc<TOps> : never;
|
|
263
|
-
get sources(): TSchema extends Schema<any, infer TSources, any> ? SourceAccessors<TSources> : never;
|
|
264
|
-
init(): Promise<void>;
|
|
265
|
-
destroy(): Promise<void>;
|
|
266
|
-
ping(): Promise<void>;
|
|
267
|
-
/**
|
|
268
|
-
* What a temporary token the Contello ui handed to an extension page stands for in the project of
|
|
269
|
-
* this client: the user and the user's effective permissions, or inactive. The client's
|
|
270
|
-
* application needs read access to the project. See `createTokenIntrospector` for the caching
|
|
271
|
-
* wrapper a backend puts in front of its requests.
|
|
272
|
-
*/
|
|
273
|
-
introspectToken(token: string): Promise<TokenIntrospection>;
|
|
274
|
-
/**
|
|
275
|
-
* Open a subscription on the websocket. Each `[Symbol.asyncIterator]()` call (the implicit one
|
|
276
|
-
* from `for await`, or via `rxjs.from(this)`) starts a fresh server subscription and tears it
|
|
277
|
-
* down when the iterator is returned (`break`, error, or explicit stop).
|
|
278
|
-
*/
|
|
279
|
-
subscribe<TData>(query: string, variables?: Record<string, unknown> | undefined): AsyncIterable<TData>;
|
|
280
|
-
download(fileId: string): Promise<DownloadResult>;
|
|
281
|
-
proxyHls(path: string, signal?: AbortSignal | undefined): Promise<ProxyResult>;
|
|
282
|
-
proxySitemap(sitemapId: string, options: SitemapProxyOptions, signal?: AbortSignal | undefined): Promise<ProxyResult>;
|
|
283
|
-
upload(data: UploadData, meta: UploadMetadata, options?: UploadOptions | undefined): Promise<string>;
|
|
284
|
-
execute<TData>(query: string, variables?: Record<string, unknown> | undefined): Promise<TData>;
|
|
285
|
-
}
|
|
286
|
-
export declare function createContelloClient<TSchema extends Schema | undefined = undefined>(options: ContelloClientOptions<TSchema>): ContelloClient<TSchema>;
|
|
287
|
-
//#endregion
|
|
288
|
-
//#region src/scalars.d.ts
|
|
1
|
+
import { A as DownloadResult, C as IntrospectedUser, D as TokenIntrospector, E as TokenIntrospection, M as ProxyResult, N as SitemapProxyOptions, O as TokenIntrospectorOptions, S as SourceWrites, T as ResourcePermissions, _ as SourceMap, a as createContelloClient, b as SourceMutationResult, c as UploadOptions, d as OperationMap, f as Rpc, g as SourceDef, h as SourceCardinality, i as ContelloClientOptions, j as HttpAgentOptions, k as createTokenIntrospector, l as OperationDef, m as SourceAccessors, n as ConnectionEvents, o as UploadData, p as Schema, r as ContelloClient, s as UploadMetadata, t as ConnectionContext, u as OperationKind, v as SourceMutationArgument, w as ResourceAction, x as SourceMutations, y as SourceMutationBinding } from "./client-BxOONMjD.js";
|
|
289
2
|
type LocalDateTime = {
|
|
290
3
|
year: number;
|
|
291
4
|
month: number;
|
|
@@ -299,11 +12,7 @@ type LocalDate = {
|
|
|
299
12
|
month: number;
|
|
300
13
|
day: number;
|
|
301
14
|
};
|
|
302
|
-
//#endregion
|
|
303
|
-
//#region src/source-subscription.d.ts
|
|
304
15
|
export declare function createSourceSubscription(source: SourceDef): string;
|
|
305
|
-
//#endregion
|
|
306
|
-
//#region src/source-mutation.d.ts
|
|
307
16
|
type SourceMutationKind = keyof SourceMutations;
|
|
308
17
|
/** What a write takes: the caller's input, and the id for a delete. */
|
|
309
18
|
type SourceMutationValues = {
|
|
@@ -321,8 +30,6 @@ export declare function createSourceMutation(source: SourceDef, kind: SourceMuta
|
|
|
321
30
|
export declare function createSourceMutationVariables(binding: SourceMutationBinding, values: SourceMutationValues): Record<string, unknown>;
|
|
322
31
|
/** Pulls the id out of whatever shape the mutation answered with. */
|
|
323
32
|
export declare function readSourceMutationId(binding: SourceMutationBinding, result: unknown): string;
|
|
324
|
-
//#endregion
|
|
325
|
-
//#region src/built-in-mutations.d.ts
|
|
326
33
|
/**
|
|
327
34
|
* Write bindings for the built-in sources. Unlike entity mutations these are not derived — their
|
|
328
35
|
* field and argument names are fixed parts of every Contello schema — but the generator still
|
|
@@ -336,6 +43,5 @@ export declare function readSourceMutationId(binding: SourceMutationBinding, res
|
|
|
336
43
|
* Assets have no `create` — an asset comes into being through `client.upload()`, not a mutation.
|
|
337
44
|
*/
|
|
338
45
|
export declare const BUILT_IN_MUTATIONS: Partial<Record<SourceCardinality, SourceMutations>>;
|
|
339
|
-
|
|
340
|
-
export type { ConnectionContext, ConnectionEvents, ContelloClientOptions, DownloadResult, HttpAgentOptions, IntrospectedUser, LocalDate, LocalDateTime, OperationDef, OperationKind, OperationMap, ProxyResult, ResourceAction, ResourcePermissions, Rpc, Schema, SitemapProxyOptions, SourceAccessors, SourceCardinality, SourceDef, SourceMap, SourceMutationArgument, SourceMutationBinding, SourceMutationKind, SourceMutationResult, SourceMutationValues, SourceMutations, SourceWrites, TokenIntrospection, TokenIntrospector, TokenIntrospectorOptions, UploadData, UploadMetadata, UploadOptions };
|
|
46
|
+
export { type ConnectionContext, type ConnectionEvents, ContelloClient, type ContelloClientOptions, type DownloadResult, type HttpAgentOptions, type IntrospectedUser, type LocalDate, type LocalDateTime, type OperationDef, type OperationKind, type OperationMap, type ProxyResult, type ResourceAction, type ResourcePermissions, type Rpc, type Schema, type SitemapProxyOptions, type SourceAccessors, type SourceCardinality, type SourceDef, type SourceMap, type SourceMutationArgument, type SourceMutationBinding, type SourceMutationKind, type SourceMutationResult, type SourceMutationValues, type SourceMutations, type SourceWrites, type TokenIntrospection, type TokenIntrospector, type TokenIntrospectorOptions, type UploadData, type UploadMetadata, type UploadOptions, createContelloClient, createTokenIntrospector };
|
|
341
47
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/scalars.ts","../src/source-subscription.ts","../src/source-mutation.ts","../src/built-in-mutations.ts"],"mappings":";KAAY;EACV;EACA;EACA;EACA;EACA;EACA;;KAGU;EACV;EACA;EACA;;wBCcc,yBAAyB,QAAQ;KCvBrC,2BAA2B;;KAG3B;EACV;EACA;;;wBAwBc,qBAAqB,QAAQ,WAAW,MAAM;;;;;;;wBA+B9C,8BACd,SAAS,uBACT,QAAQ,uBACP;;wBAYa,qBAAqB,SAAS,uBAAuB;;;;;;;;;;;;;qBChExD,oBAAoB,QAAQ,OAAO,mBAAmB"}
|