@0xobelisk/graphql-client 1.2.0-pre.123 → 1.2.0-pre.125
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/client.d.ts +83 -1
- package/dist/decoders.d.ts +24 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +434 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +421 -15
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +63 -0
- package/package.json +1 -1
- package/src/client.ts +432 -18
- package/src/decoders.ts +100 -0
- package/src/index.ts +1 -0
- package/src/types.ts +66 -0
package/src/types.ts
CHANGED
|
@@ -154,6 +154,51 @@ export interface DubheUserStorageRow {
|
|
|
154
154
|
lastEventSeq: string;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
export interface SceneStorageRow {
|
|
158
|
+
sceneId: string;
|
|
159
|
+
dappKey: string;
|
|
160
|
+
sceneType: string;
|
|
161
|
+
sceneTypeRaw: string;
|
|
162
|
+
authorizationKind?: string | null;
|
|
163
|
+
authorizationKindRaw?: string | null;
|
|
164
|
+
authorizedPermitId?: string | null;
|
|
165
|
+
isDestroyed: boolean;
|
|
166
|
+
createdAtCheckpoint: string;
|
|
167
|
+
destroyedAtCheckpoint?: string | null;
|
|
168
|
+
updatedAtCheckpoint: string;
|
|
169
|
+
lastUpdateDigest: string;
|
|
170
|
+
lastEventSeq: string;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface SceneStorageFieldRow {
|
|
174
|
+
sceneId: string;
|
|
175
|
+
fieldNameRaw: string;
|
|
176
|
+
dappKey: string;
|
|
177
|
+
sceneType: string;
|
|
178
|
+
sceneTypeRaw: string;
|
|
179
|
+
fieldName: string;
|
|
180
|
+
fieldValueRaw?: string | null;
|
|
181
|
+
isDeleted: boolean;
|
|
182
|
+
deletedAtCheckpoint?: string | null;
|
|
183
|
+
updatedAtCheckpoint: string;
|
|
184
|
+
lastUpdateDigest: string;
|
|
185
|
+
lastEventSeq: string;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface ObjectStorageRow {
|
|
189
|
+
objectId: string;
|
|
190
|
+
dappKey: string;
|
|
191
|
+
objectType: string;
|
|
192
|
+
objectTypeRaw: string;
|
|
193
|
+
entityIdRaw: string;
|
|
194
|
+
isDestroyed: boolean;
|
|
195
|
+
createdAtCheckpoint: string;
|
|
196
|
+
destroyedAtCheckpoint?: string | null;
|
|
197
|
+
updatedAtCheckpoint: string;
|
|
198
|
+
lastUpdateDigest: string;
|
|
199
|
+
lastEventSeq: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
157
202
|
export interface DubheDappRuntimeStateRow {
|
|
158
203
|
dappKey: string;
|
|
159
204
|
admin?: string | null;
|
|
@@ -328,6 +373,27 @@ export interface DubheClientConfig {
|
|
|
328
373
|
fetchOptions?: RequestInit;
|
|
329
374
|
retryOptions?: RetryOptions;
|
|
330
375
|
dubheMetadata?: any;
|
|
376
|
+
/**
|
|
377
|
+
* When true, outgoing HTTP queries are collected within `batchInterval` ms
|
|
378
|
+
* and sent as a single batched POST request. The server must have
|
|
379
|
+
* `enableQueryBatching` / `allowBatchedHttpRequests` enabled (PostGraphile
|
|
380
|
+
* already sets this by default).
|
|
381
|
+
*
|
|
382
|
+
* Default: false
|
|
383
|
+
*/
|
|
384
|
+
batchRequests?: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* Time window (ms) to collect queries before flushing a batch.
|
|
387
|
+
* Only used when `batchRequests` is true.
|
|
388
|
+
* Default: 10
|
|
389
|
+
*/
|
|
390
|
+
batchInterval?: number;
|
|
391
|
+
/**
|
|
392
|
+
* Maximum number of operations per batch.
|
|
393
|
+
* Only used when `batchRequests` is true.
|
|
394
|
+
* Default: 20
|
|
395
|
+
*/
|
|
396
|
+
batchMax?: number;
|
|
331
397
|
cacheConfig?: {
|
|
332
398
|
paginatedTables?: string[];
|
|
333
399
|
strategy?: PaginationCacheStrategy;
|