@dvina/sdk 3.3.124
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/LICENSE +21 -0
- package/README.md +449 -0
- package/dist/_generated_documents-DF34ZUJ3.js +4 -0
- package/dist/_generated_documents-DF34ZUJ3.js.map +1 -0
- package/dist/_generated_documents-W4RHWJ4B.cjs +2041 -0
- package/dist/_generated_documents-W4RHWJ4B.cjs.map +1 -0
- package/dist/adapters/angular/index.cjs +163 -0
- package/dist/adapters/angular/index.cjs.map +1 -0
- package/dist/adapters/angular/index.d.cts +254 -0
- package/dist/adapters/angular/index.d.ts +254 -0
- package/dist/adapters/angular/index.js +159 -0
- package/dist/adapters/angular/index.js.map +1 -0
- package/dist/adapters/react/index.cjs +51 -0
- package/dist/adapters/react/index.cjs.map +1 -0
- package/dist/adapters/react/index.d.cts +62 -0
- package/dist/adapters/react/index.d.ts +62 -0
- package/dist/adapters/react/index.js +49 -0
- package/dist/adapters/react/index.js.map +1 -0
- package/dist/billing/index.cjs +26 -0
- package/dist/billing/index.cjs.map +1 -0
- package/dist/billing/index.d.cts +338 -0
- package/dist/billing/index.d.ts +338 -0
- package/dist/billing/index.js +5 -0
- package/dist/billing/index.js.map +1 -0
- package/dist/chunk-4QKWHQT2.cjs +104 -0
- package/dist/chunk-4QKWHQT2.cjs.map +1 -0
- package/dist/chunk-5WRI5ZAA.js +29 -0
- package/dist/chunk-5WRI5ZAA.js.map +1 -0
- package/dist/chunk-7JUBGIQ2.js +1008 -0
- package/dist/chunk-7JUBGIQ2.js.map +1 -0
- package/dist/chunk-7XBJ77RJ.js +103 -0
- package/dist/chunk-7XBJ77RJ.js.map +1 -0
- package/dist/chunk-DHUFVGJR.cjs +20389 -0
- package/dist/chunk-DHUFVGJR.cjs.map +1 -0
- package/dist/chunk-DZUJEN5N.cjs +32 -0
- package/dist/chunk-DZUJEN5N.cjs.map +1 -0
- package/dist/chunk-GDK2HJTF.cjs +1346 -0
- package/dist/chunk-GDK2HJTF.cjs.map +1 -0
- package/dist/chunk-KG3GNTYI.js +1339 -0
- package/dist/chunk-KG3GNTYI.js.map +1 -0
- package/dist/chunk-KV5SP7RP.cjs +114 -0
- package/dist/chunk-KV5SP7RP.cjs.map +1 -0
- package/dist/chunk-NPIKZKLU.cjs +27 -0
- package/dist/chunk-NPIKZKLU.cjs.map +1 -0
- package/dist/chunk-OAAZZUYL.cjs +1517 -0
- package/dist/chunk-OAAZZUYL.cjs.map +1 -0
- package/dist/chunk-P4BYTXZ7.js +98 -0
- package/dist/chunk-P4BYTXZ7.js.map +1 -0
- package/dist/chunk-PDM2KR7T.js +392 -0
- package/dist/chunk-PDM2KR7T.js.map +1 -0
- package/dist/chunk-QOZI2HY5.js +24 -0
- package/dist/chunk-QOZI2HY5.js.map +1 -0
- package/dist/chunk-RFBLNKW6.js +20035 -0
- package/dist/chunk-RFBLNKW6.js.map +1 -0
- package/dist/chunk-UELAE75E.cjs +408 -0
- package/dist/chunk-UELAE75E.cjs.map +1 -0
- package/dist/client-9Rwj21T9.d.cts +77 -0
- package/dist/client-Bskq7sc_.d.ts +77 -0
- package/dist/client-CLhQragb.d.cts +446 -0
- package/dist/client-CLhQragb.d.ts +446 -0
- package/dist/error-CsVoUTY8.d.cts +95 -0
- package/dist/error-CsVoUTY8.d.ts +95 -0
- package/dist/index-BrGSfyXq.d.cts +79 -0
- package/dist/index-zPcVLagO.d.ts +79 -0
- package/dist/index.cjs +1675 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +9943 -0
- package/dist/index.d.ts +9943 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/inference/index.cjs +70 -0
- package/dist/inference/index.cjs.map +1 -0
- package/dist/inference/index.d.cts +80 -0
- package/dist/inference/index.d.ts +80 -0
- package/dist/inference/index.js +5 -0
- package/dist/inference/index.js.map +1 -0
- package/dist/pagination/index.cjs +34 -0
- package/dist/pagination/index.cjs.map +1 -0
- package/dist/pagination/index.d.cts +6 -0
- package/dist/pagination/index.d.ts +6 -0
- package/dist/pagination/index.js +5 -0
- package/dist/pagination/index.js.map +1 -0
- package/dist/sync-engine-DVKQO-1-.d.cts +423 -0
- package/dist/sync-engine-cLwTqdjv.d.ts +423 -0
- package/dist/types-2RotD0Ab.d.cts +102 -0
- package/dist/types-2RotD0Ab.d.ts +102 -0
- package/package.json +143 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { a as DvinaRequest, b as DvinaSubscribe, P as PageInfoData, C as ConnectionVariables, F as FetchOptions } from './types-2RotD0Ab.cjs';
|
|
2
|
+
import { S as SyncEngine } from './sync-engine-DVKQO-1-.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Base class that holds the transport functions.
|
|
6
|
+
* Every generated model, connection, query, and the root SDK class extend this.
|
|
7
|
+
*
|
|
8
|
+
* Operation classes use `_syncEngine` for queries/mutations/watch.
|
|
9
|
+
* Subscription classes use `_subscribe` for WebSocket streaming.
|
|
10
|
+
* Model classes use `_request` for compatibility (lazy fetch).
|
|
11
|
+
*/
|
|
12
|
+
declare class Request {
|
|
13
|
+
protected _request: DvinaRequest;
|
|
14
|
+
protected _syncEngine?: SyncEngine;
|
|
15
|
+
protected _subscribe?: DvinaSubscribe;
|
|
16
|
+
protected _baseUrl?: string;
|
|
17
|
+
constructor(request: DvinaRequest, syncEngine?: SyncEngine, subscribe?: DvinaSubscribe, baseUrl?: string);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Default connection variables when paginating.
|
|
22
|
+
* Ensures `first` or `last` is set when a cursor is provided.
|
|
23
|
+
*/
|
|
24
|
+
declare function defaultConnection<V extends ConnectionVariables>(variables: V): V;
|
|
25
|
+
/**
|
|
26
|
+
* PageInfo model following the Relay spec.
|
|
27
|
+
*/
|
|
28
|
+
declare class PageInfo {
|
|
29
|
+
hasNextPage: boolean;
|
|
30
|
+
hasPreviousPage: boolean;
|
|
31
|
+
startCursor?: string | null;
|
|
32
|
+
endCursor?: string | null;
|
|
33
|
+
constructor(data: PageInfoData);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Abstract base class for connection types.
|
|
37
|
+
* Holds nodes and page info, used for type checking.
|
|
38
|
+
*/
|
|
39
|
+
declare abstract class AbstractConnection<Node> extends Request {
|
|
40
|
+
pageInfo: PageInfo;
|
|
41
|
+
nodes: Node[];
|
|
42
|
+
totalCount?: number;
|
|
43
|
+
constructor(request: DvinaRequest);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Concrete connection class with pagination helpers.
|
|
47
|
+
* Generated connection subclasses extend this.
|
|
48
|
+
*
|
|
49
|
+
* The `_fetch` closure is created by the query class and allows re-fetching
|
|
50
|
+
* with different pagination variables.
|
|
51
|
+
*/
|
|
52
|
+
declare class Connection<Node> extends AbstractConnection<Node> {
|
|
53
|
+
private _fetch;
|
|
54
|
+
constructor(request: DvinaRequest, fetch: (variables?: ConnectionVariables, options?: FetchOptions) => Promise<Connection<Node> | undefined>, nodes: Node[], pageInfo: PageInfo, totalCount?: number);
|
|
55
|
+
/**
|
|
56
|
+
* Fetch the next page and append nodes.
|
|
57
|
+
* Mutates this connection instance in place (nodes are appended, pageInfo updated).
|
|
58
|
+
*/
|
|
59
|
+
fetchNext(options?: FetchOptions): Promise<this>;
|
|
60
|
+
/**
|
|
61
|
+
* Fetch the previous page and prepend nodes.
|
|
62
|
+
* Mutates this connection instance in place (nodes are prepended, pageInfo updated).
|
|
63
|
+
*/
|
|
64
|
+
fetchPrevious(options?: FetchOptions): Promise<this>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Extract all nodes from a connection.
|
|
69
|
+
*/
|
|
70
|
+
declare function extractNodes<T>(connection: Connection<T>): T[];
|
|
71
|
+
/**
|
|
72
|
+
* Merge two connections into a new connection. Appends the second connection's
|
|
73
|
+
* nodes after the first's. Uses the second connection's end cursor and hasNextPage.
|
|
74
|
+
*
|
|
75
|
+
* Neither input connection is modified.
|
|
76
|
+
*/
|
|
77
|
+
declare function mergeConnections<T>(first: Connection<T>, second: Connection<T>): Connection<T>;
|
|
78
|
+
|
|
79
|
+
export { AbstractConnection as A, Connection as C, PageInfo as P, Request as R, defaultConnection as d, extractNodes as e, mergeConnections as m };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { a as DvinaRequest, b as DvinaSubscribe, P as PageInfoData, C as ConnectionVariables, F as FetchOptions } from './types-2RotD0Ab.js';
|
|
2
|
+
import { S as SyncEngine } from './sync-engine-cLwTqdjv.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Base class that holds the transport functions.
|
|
6
|
+
* Every generated model, connection, query, and the root SDK class extend this.
|
|
7
|
+
*
|
|
8
|
+
* Operation classes use `_syncEngine` for queries/mutations/watch.
|
|
9
|
+
* Subscription classes use `_subscribe` for WebSocket streaming.
|
|
10
|
+
* Model classes use `_request` for compatibility (lazy fetch).
|
|
11
|
+
*/
|
|
12
|
+
declare class Request {
|
|
13
|
+
protected _request: DvinaRequest;
|
|
14
|
+
protected _syncEngine?: SyncEngine;
|
|
15
|
+
protected _subscribe?: DvinaSubscribe;
|
|
16
|
+
protected _baseUrl?: string;
|
|
17
|
+
constructor(request: DvinaRequest, syncEngine?: SyncEngine, subscribe?: DvinaSubscribe, baseUrl?: string);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Default connection variables when paginating.
|
|
22
|
+
* Ensures `first` or `last` is set when a cursor is provided.
|
|
23
|
+
*/
|
|
24
|
+
declare function defaultConnection<V extends ConnectionVariables>(variables: V): V;
|
|
25
|
+
/**
|
|
26
|
+
* PageInfo model following the Relay spec.
|
|
27
|
+
*/
|
|
28
|
+
declare class PageInfo {
|
|
29
|
+
hasNextPage: boolean;
|
|
30
|
+
hasPreviousPage: boolean;
|
|
31
|
+
startCursor?: string | null;
|
|
32
|
+
endCursor?: string | null;
|
|
33
|
+
constructor(data: PageInfoData);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Abstract base class for connection types.
|
|
37
|
+
* Holds nodes and page info, used for type checking.
|
|
38
|
+
*/
|
|
39
|
+
declare abstract class AbstractConnection<Node> extends Request {
|
|
40
|
+
pageInfo: PageInfo;
|
|
41
|
+
nodes: Node[];
|
|
42
|
+
totalCount?: number;
|
|
43
|
+
constructor(request: DvinaRequest);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Concrete connection class with pagination helpers.
|
|
47
|
+
* Generated connection subclasses extend this.
|
|
48
|
+
*
|
|
49
|
+
* The `_fetch` closure is created by the query class and allows re-fetching
|
|
50
|
+
* with different pagination variables.
|
|
51
|
+
*/
|
|
52
|
+
declare class Connection<Node> extends AbstractConnection<Node> {
|
|
53
|
+
private _fetch;
|
|
54
|
+
constructor(request: DvinaRequest, fetch: (variables?: ConnectionVariables, options?: FetchOptions) => Promise<Connection<Node> | undefined>, nodes: Node[], pageInfo: PageInfo, totalCount?: number);
|
|
55
|
+
/**
|
|
56
|
+
* Fetch the next page and append nodes.
|
|
57
|
+
* Mutates this connection instance in place (nodes are appended, pageInfo updated).
|
|
58
|
+
*/
|
|
59
|
+
fetchNext(options?: FetchOptions): Promise<this>;
|
|
60
|
+
/**
|
|
61
|
+
* Fetch the previous page and prepend nodes.
|
|
62
|
+
* Mutates this connection instance in place (nodes are prepended, pageInfo updated).
|
|
63
|
+
*/
|
|
64
|
+
fetchPrevious(options?: FetchOptions): Promise<this>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Extract all nodes from a connection.
|
|
69
|
+
*/
|
|
70
|
+
declare function extractNodes<T>(connection: Connection<T>): T[];
|
|
71
|
+
/**
|
|
72
|
+
* Merge two connections into a new connection. Appends the second connection's
|
|
73
|
+
* nodes after the first's. Uses the second connection's end cursor and hasNextPage.
|
|
74
|
+
*
|
|
75
|
+
* Neither input connection is modified.
|
|
76
|
+
*/
|
|
77
|
+
declare function mergeConnections<T>(first: Connection<T>, second: Connection<T>): Connection<T>;
|
|
78
|
+
|
|
79
|
+
export { AbstractConnection as A, Connection as C, PageInfo as P, Request as R, defaultConnection as d, extractNodes as e, mergeConnections as m };
|