@arkiv-network/sdk 0.7.0-dev.1 → 0.8.0-dev.1
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/README.md +29 -16
- package/dist/attr/index.cjs +34 -0
- package/dist/attr/index.d.cts +2 -0
- package/dist/attr/index.d.ts +2 -0
- package/dist/attr/index.js +3 -0
- package/dist/attr-BDZ-APg5.js +809 -0
- package/dist/attr-BDZ-APg5.js.map +1 -0
- package/dist/attr-BvxHN99W.cjs +1029 -0
- package/dist/chains/index.cjs +2 -3
- package/dist/chains/index.d.cts +22 -60
- package/dist/chains/index.d.cts.map +1 -1
- package/dist/chains/index.d.ts +22 -60
- package/dist/chains/index.d.ts.map +1 -1
- package/dist/chains/index.js +2 -2
- package/dist/chains-BJrZs6sG.js +57 -0
- package/dist/chains-BJrZs6sG.js.map +1 -0
- package/dist/chains-BYRTTipa.cjs +73 -0
- package/dist/changeOwnership-B7bEgla4.d.cts +509 -0
- package/dist/changeOwnership-B7bEgla4.d.cts.map +1 -0
- package/dist/changeOwnership-DwgtdSFc.d.ts +509 -0
- package/dist/changeOwnership-DwgtdSFc.d.ts.map +1 -0
- package/dist/entity/index.cjs +19 -0
- package/dist/entity/index.d.cts +4 -0
- package/dist/entity/index.d.ts +4 -0
- package/dist/entity/index.js +6 -0
- package/dist/entity-B0t6sN7F.cjs +71 -0
- package/dist/entity-BIp_df9u.js +67 -0
- package/dist/entity-BIp_df9u.js.map +1 -0
- package/dist/entity-CFhbAv0R.js +70 -0
- package/dist/entity-CFhbAv0R.js.map +1 -0
- package/dist/entity-wfBnZd91.cjs +98 -0
- package/dist/errors-D-eJkGVc.cjs +56 -0
- package/dist/errors-DGB8AgT2.js +33 -0
- package/dist/errors-DGB8AgT2.js.map +1 -0
- package/dist/expiry-BUYIXTGb.cjs +135 -0
- package/dist/expiry-BxOlvVWC.d.ts +79 -0
- package/dist/expiry-BxOlvVWC.d.ts.map +1 -0
- package/dist/expiry-DGRzrSan.js +95 -0
- package/dist/expiry-DGRzrSan.js.map +1 -0
- package/dist/expiry-DRV29F1r.d.cts +79 -0
- package/dist/expiry-DRV29F1r.d.cts.map +1 -0
- package/dist/flags-0Vl5rrHq.d.cts +41 -0
- package/dist/flags-0Vl5rrHq.d.cts.map +1 -0
- package/dist/flags-Ct8k0gpB.cjs +43 -0
- package/dist/flags-ZtlvOIIk.js +33 -0
- package/dist/flags-ZtlvOIIk.js.map +1 -0
- package/dist/flags-wmcMoAnN.d.ts +41 -0
- package/dist/flags-wmcMoAnN.d.ts.map +1 -0
- package/dist/index-Cgw1u5aY.d.cts +278 -0
- package/dist/index-Cgw1u5aY.d.cts.map +1 -0
- package/dist/index-ClgIuxJ8.d.ts +159 -0
- package/dist/index-ClgIuxJ8.d.ts.map +1 -0
- package/dist/index-D0CmtiWT.d.cts +159 -0
- package/dist/index-D0CmtiWT.d.cts.map +1 -0
- package/dist/index-D8LZt-3J.d.cts +417 -0
- package/dist/index-D8LZt-3J.d.cts.map +1 -0
- package/dist/index-DVYFaXNV.d.ts +417 -0
- package/dist/index-DVYFaXNV.d.ts.map +1 -0
- package/dist/index-VCqgn29D.d.ts +278 -0
- package/dist/index-VCqgn29D.d.ts.map +1 -0
- package/dist/index.cjs +676 -375
- package/dist/index.d.cts +247 -208
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +247 -208
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +626 -368
- package/dist/index.js.map +1 -1
- package/dist/payload-Bnw1hrvb.cjs +83 -0
- package/dist/payload-CIxSn_DW.js +67 -0
- package/dist/payload-CIxSn_DW.js.map +1 -0
- package/dist/payload-Dgx3PQeK.d.ts +94 -0
- package/dist/payload-Dgx3PQeK.d.ts.map +1 -0
- package/dist/payload-P0nWyjLg.d.cts +94 -0
- package/dist/payload-P0nWyjLg.d.cts.map +1 -0
- package/dist/query/index.cjs +24 -150
- package/dist/query/index.d.cts +5 -3
- package/dist/query/index.d.ts +5 -3
- package/dist/query/index.js +6 -138
- package/dist/queryBuilder-BXDvX1K_.cjs +1123 -0
- package/dist/queryBuilder-CbLL4pG5.js +963 -0
- package/dist/queryBuilder-CbLL4pG5.js.map +1 -0
- package/dist/selection-BvK6yX0g.d.cts +433 -0
- package/dist/selection-BvK6yX0g.d.cts.map +1 -0
- package/dist/selection-fpmI3ADQ.d.ts +433 -0
- package/dist/selection-fpmI3ADQ.d.ts.map +1 -0
- package/dist/types/index.cjs +3 -3
- package/dist/types/index.d.cts +7 -2
- package/dist/types/index.d.ts +7 -2
- package/dist/types/index.js +3 -3
- package/dist/utils/index.cjs +4 -17
- package/dist/utils/index.d.cts +3 -17
- package/dist/utils/index.d.ts +3 -17
- package/dist/utils/index.js +4 -18
- package/package.json +26 -5
- package/src/actions/public/getEntity.ts +27 -43
- package/src/actions/public/getEntityNonce.ts +30 -0
- package/src/actions/public/predictEntityKeys.test.ts +143 -0
- package/src/actions/public/predictEntityKeys.ts +138 -0
- package/src/actions/public/query.ts +33 -69
- package/src/actions/public/watchEntityEvents.test.ts +414 -0
- package/src/actions/public/watchEntityEvents.ts +225 -0
- package/src/actions/wallet/changeOwnership.ts +2 -2
- package/src/actions/wallet/createEntity.ts +99 -24
- package/src/actions/wallet/extendEntity.ts +37 -13
- package/src/actions/wallet/mutateEntities.test.ts +76 -0
- package/src/actions/wallet/mutateEntities.ts +19 -21
- package/src/actions/wallet/patchEntity.ts +90 -0
- package/src/attr/attributes.test.ts +120 -0
- package/src/attr/attributes.ts +190 -0
- package/src/attr/codec.test.ts +162 -0
- package/src/attr/codec.ts +220 -0
- package/src/attr/decimal.ts +86 -0
- package/src/attr/errors.ts +145 -0
- package/src/attr/index.ts +50 -0
- package/src/attr/names.ts +106 -0
- package/src/attr/types.ts +150 -0
- package/src/attr/values.test.ts +271 -0
- package/src/attr/values.ts +502 -0
- package/src/chains/cheesecake.ts +22 -0
- package/src/chains/index.ts +1 -2
- package/src/clients/createPublicClient.test.ts +3 -5
- package/src/clients/createPublicClient.ts +5 -4
- package/src/clients/createWalletClient.test.ts +2 -2
- package/src/clients/createWalletClient.ts +13 -7
- package/src/clients/decorators/arkivPublic.ts +160 -139
- package/src/clients/decorators/arkivWallet.ts +86 -94
- package/src/entity/create.test.ts +184 -0
- package/src/entity/errors.ts +38 -0
- package/src/entity/events.ts +16 -0
- package/src/entity/expiry.test.ts +195 -0
- package/src/entity/expiry.ts +181 -0
- package/src/entity/flags.ts +65 -0
- package/src/entity/index.ts +14 -0
- package/src/entity/key.ts +68 -0
- package/src/entity/operations.ts +134 -0
- package/src/entity/params.ts +15 -0
- package/src/errors.ts +26 -49
- package/src/index.ts +6 -0
- package/src/query/engine.ts +59 -139
- package/src/query/errors.ts +151 -0
- package/src/query/expression.test.ts +286 -0
- package/src/query/expression.ts +493 -0
- package/src/query/index.ts +40 -4
- package/src/query/injection.test.ts +151 -0
- package/src/query/queryBuilder.test.ts +322 -637
- package/src/query/queryBuilder.ts +126 -359
- package/src/query/queryResult.ts +54 -51
- package/src/query/selection.test.ts +48 -98
- package/src/query/selection.ts +77 -65
- package/src/types/entity.test.ts +44 -155
- package/src/types/entity.ts +60 -52
- package/src/types/events.ts +59 -16
- package/src/types/index.ts +20 -17
- package/src/types/rpcSchema.ts +69 -37
- package/src/utils/arkivTransactions.test.ts +600 -155
- package/src/utils/arkivTransactions.ts +181 -190
- package/src/utils/chains.test.ts +21 -24
- package/src/utils/compression.ts +1 -1
- package/src/utils/entities.test.ts +62 -0
- package/src/utils/entities.ts +109 -37
- package/src/utils/expirationTime.ts +114 -10
- package/src/utils/logger.ts +2 -2
- package/src/utils/revert.test.ts +99 -0
- package/src/utils/revert.ts +145 -0
- package/dist/chains-BifaY04V.cjs +0 -108
- package/dist/chains-CrtkVbBh.js +0 -86
- package/dist/chains-CrtkVbBh.js.map +0 -1
- package/dist/consts-Bz0LZQZY.js +0 -7
- package/dist/consts-Bz0LZQZY.js.map +0 -1
- package/dist/consts-CxT1-RXU.cjs +0 -18
- package/dist/entity-BhSXaB23.cjs +0 -81
- package/dist/entity-CN41IOrq.d.cts +0 -401
- package/dist/entity-CN41IOrq.d.cts.map +0 -1
- package/dist/entity-DGfVyB-a.js +0 -71
- package/dist/entity-DGfVyB-a.js.map +0 -1
- package/dist/entity-NnEVlePN.d.ts +0 -401
- package/dist/entity-NnEVlePN.d.ts.map +0 -1
- package/dist/index-ClkpS6s_.d.ts +0 -481
- package/dist/index-ClkpS6s_.d.ts.map +0 -1
- package/dist/index-w4qop0Pe.d.cts +0 -481
- package/dist/index-w4qop0Pe.d.cts.map +0 -1
- package/dist/payload-BpNUPOnY.js +0 -13
- package/dist/payload-BpNUPOnY.js.map +0 -1
- package/dist/payload-C2KHOUoj.d.ts +0 -6
- package/dist/payload-C2KHOUoj.d.ts.map +0 -1
- package/dist/payload-CJN8fTvX.d.cts +0 -6
- package/dist/payload-CJN8fTvX.d.cts.map +0 -1
- package/dist/payload-D8YLKcJj.cjs +0 -23
- package/dist/query/index.js.map +0 -1
- package/dist/queryBuilder-BE_XhLLa.js +0 -735
- package/dist/queryBuilder-BE_XhLLa.js.map +0 -1
- package/dist/queryBuilder-J37buGCi.cjs +0 -865
- package/dist/utils/index.d.cts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/src/actions/public/buildQuery.ts +0 -10
- package/src/actions/public/subscribeEntityEvents.ts +0 -93
- package/src/actions/wallet/updateEntity.ts +0 -59
- package/src/chains/braga.ts +0 -26
- package/src/chains/kaolin.ts +0 -29
- package/src/query/engine.test.ts +0 -571
- package/src/query/predicate.test.ts +0 -461
- package/src/query/predicate.ts +0 -144
- package/src/query/queryResult.test.ts +0 -270
- package/src/query/selectQueryBuilder.test.ts +0 -213
- package/src/types/attributes.ts +0 -28
- package/src/utils/validation.test.ts +0 -106
- package/src/utils/validation.ts +0 -80
- /package/dist/{types-Ci4BRClw.js → types-Bx1EKe0v.js} +0 -0
- /package/dist/{types-a8gm_IaQ.cjs → types-CKPddlfS.cjs} +0 -0
package/dist/index-ClkpS6s_.d.ts
DELETED
|
@@ -1,481 +0,0 @@
|
|
|
1
|
-
import { A as RpcEntity, M as RpcOrderByAttribute, O as ArkivClient, j as RpcIncludeData, t as Entity } from "./entity-NnEVlePN.js";
|
|
2
|
-
import { Hex } from "viem";
|
|
3
|
-
|
|
4
|
-
//#region src/query/predicate.d.ts
|
|
5
|
-
type PredicateType = "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "not";
|
|
6
|
-
type PredicateContainerType = "or" | "and";
|
|
7
|
-
type Predicate = {
|
|
8
|
-
type: PredicateType;
|
|
9
|
-
key: string;
|
|
10
|
-
value: string | number;
|
|
11
|
-
} | {
|
|
12
|
-
type: PredicateContainerType;
|
|
13
|
-
predicates: Predicate[];
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Creates an OR predicate
|
|
17
|
-
* @param predicates - The predicates to combine, either as a single array or as separate arguments
|
|
18
|
-
* @returns The OR predicate
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* const result = or(eq("name", "John"), eq("age", 30))
|
|
22
|
-
* // or equivalently: or([eq("name", "John"), eq("age", 30)])
|
|
23
|
-
* // result = { type: "or", predicates: [eq("name", "John"), eq("age", 30)] }
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
declare function or(predicates: Predicate[]): Predicate;
|
|
27
|
-
declare function or(...predicates: Predicate[]): Predicate;
|
|
28
|
-
/**
|
|
29
|
-
* Creates an AND predicate
|
|
30
|
-
* @param predicates - The predicates to combine, either as a single array or as separate arguments
|
|
31
|
-
* @returns The AND predicate
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* const result = and(eq("name", "John"), eq("age", 30))
|
|
35
|
-
* // or equivalently: and([eq("name", "John"), eq("age", 30)])
|
|
36
|
-
* // result = { type: "and", predicates: [eq("name", "John"), eq("age", 30)] }
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
declare function and(predicates: Predicate[]): Predicate;
|
|
40
|
-
declare function and(...predicates: Predicate[]): Predicate;
|
|
41
|
-
/**
|
|
42
|
-
* Creates an equality predicate
|
|
43
|
-
* @param key - The key to compare
|
|
44
|
-
* @param value - The value to compare
|
|
45
|
-
* @returns The equality predicate
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* const predicate = eq("name", "John")
|
|
49
|
-
* // result = { type: "eq", key: "name", value: "John" }
|
|
50
|
-
*/
|
|
51
|
-
declare function eq(key: string, value: string | number): Predicate;
|
|
52
|
-
/**
|
|
53
|
-
* Creates a not equal predicate
|
|
54
|
-
* @param key - The key to compare
|
|
55
|
-
* @param value - The value to compare
|
|
56
|
-
* @returns The not equal predicate
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* const predicate = neq("name", "John")
|
|
60
|
-
* // result = { type: "neq", key: "name", value: "John" }
|
|
61
|
-
*/
|
|
62
|
-
declare function neq(key: string, value: string | number): Predicate;
|
|
63
|
-
/**
|
|
64
|
-
* Creates a greater than predicate
|
|
65
|
-
* @param key - The key to compare
|
|
66
|
-
* @param value - The value to compare
|
|
67
|
-
* @returns The greater than predicate
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* const predicate = gt("name", "John")
|
|
71
|
-
* // result = { type: "gt", key: "name", value: "John" }
|
|
72
|
-
*/
|
|
73
|
-
declare function gt(key: string, value: string | number): Predicate;
|
|
74
|
-
/**
|
|
75
|
-
* Creates a greater than or equal predicate
|
|
76
|
-
* @param key - The key to compare
|
|
77
|
-
* @param value - The value to compare
|
|
78
|
-
* @returns The greater than or equal predicate
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* const predicate = gte("name", "John")
|
|
82
|
-
* // result = { type: "gte", key: "name", value: "John" }
|
|
83
|
-
*/
|
|
84
|
-
declare function gte(key: string, value: string | number): Predicate;
|
|
85
|
-
/**
|
|
86
|
-
* Creates a less than predicate
|
|
87
|
-
* @param key - The key to compare
|
|
88
|
-
* @param value - The value to compare
|
|
89
|
-
* @returns The less than predicate
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* const predicate = lt("name", "John")
|
|
93
|
-
* // result = { type: "lt", key: "name", value: "John" }
|
|
94
|
-
*/
|
|
95
|
-
declare function lt(key: string, value: string | number): Predicate;
|
|
96
|
-
/**
|
|
97
|
-
* Creates a less than or equal predicate
|
|
98
|
-
* @param key - The key to compare
|
|
99
|
-
* @param value - The value to compare
|
|
100
|
-
* @returns The less than or equal predicate
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* const predicate = lte("name", "John")
|
|
104
|
-
* // result = { type: "lte", key: "name", value: "John" }
|
|
105
|
-
*/
|
|
106
|
-
declare function lte(key: string, value: string | number): Predicate;
|
|
107
|
-
/**
|
|
108
|
-
* Creates a not predicate
|
|
109
|
-
* @param key - The key to compare
|
|
110
|
-
* @returns The not predicate
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* const predicate = not("name")
|
|
114
|
-
* // result = { type: "not", key: "name", value: "" }
|
|
115
|
-
*/
|
|
116
|
-
declare function not(key: string): Predicate;
|
|
117
|
-
//#endregion
|
|
118
|
-
//#region src/query/queryResult.d.ts
|
|
119
|
-
/**
|
|
120
|
-
* The result of a query. Holds the fetched entities and supports cursor-based pagination.
|
|
121
|
-
*
|
|
122
|
-
* @typeParam TEntity - The shape of each entity, inferred from the query builder
|
|
123
|
-
* (a full {@link Entity}, or a projected object inferred from a `select()` selection).
|
|
124
|
-
*/
|
|
125
|
-
declare class QueryResult<TEntity = Entity> {
|
|
126
|
-
entities: TEntity[];
|
|
127
|
-
private _endOfIteration;
|
|
128
|
-
private _cursor;
|
|
129
|
-
private _limit;
|
|
130
|
-
private _validAtBlock;
|
|
131
|
-
private _queryBuilder;
|
|
132
|
-
get queryBuilder(): BaseQueryBuilder<TEntity>;
|
|
133
|
-
get cursor(): string | undefined;
|
|
134
|
-
constructor(entities: TEntity[], queryBuilder: BaseQueryBuilder<TEntity>, cursor: string | undefined, limit: number | undefined, validAtBlock: bigint | undefined);
|
|
135
|
-
next(): Promise<void>;
|
|
136
|
-
hasNextPage(): boolean;
|
|
137
|
-
}
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region src/query/selection.d.ts
|
|
140
|
-
/** The entity fields that can be selected. These match the fields of {@link Entity} one-to-one. */
|
|
141
|
-
type DataKey = "key" | "contentType" | "owner" | "creator" | "expiresAtBlock" | "createdAtBlock" | "lastModifiedAtBlock" | "transactionIndexInBlock" | "operationIndexInTransaction" | "attributes" | "payload";
|
|
142
|
-
/**
|
|
143
|
-
* The parts of an entity that can be selected. Every field is opt-in (including the `key`) and maps
|
|
144
|
-
* directly to a field of the returned {@link Entity} — the selection is flat.
|
|
145
|
-
*/
|
|
146
|
-
type SelectionFields = { [K in DataKey]?: boolean };
|
|
147
|
-
/**
|
|
148
|
-
* Requires at least one property of `T` to be present.
|
|
149
|
-
* `{}` is not assignable, which is how `select({})` is rejected at compile time.
|
|
150
|
-
*/
|
|
151
|
-
type AtLeastOne<T, K$1 extends keyof T = keyof T> = { [P in K$1]: Required<Pick<T, P>> & Partial<Omit<T, P>> }[K$1];
|
|
152
|
-
/**
|
|
153
|
-
* A non-empty entity selection — the object form accepted by `select()`. At least one field must be
|
|
154
|
-
* selected.
|
|
155
|
-
*/
|
|
156
|
-
type EntitySelection = AtLeastOne<SelectionFields>;
|
|
157
|
-
/** Argument accepted by `select()` — a non-empty {@link EntitySelection}, or `"*"` for everything. */
|
|
158
|
-
type SelectArg = EntitySelection | "*";
|
|
159
|
-
/**
|
|
160
|
-
* The result of a selection `S`: an {@link Entity} narrowed to exactly the selected fields (each
|
|
161
|
-
* non-`undefined`). The shape is flat and backwards compatible — e.g. `select({ owner: true })`
|
|
162
|
-
* yields `{ owner: Hex }` accessed as `entity.owner`. Accessing an unselected field is a compile
|
|
163
|
-
* error.
|
|
164
|
-
*
|
|
165
|
-
* The `toText()` / `toJson()` helpers operate on the payload, so they are only present when
|
|
166
|
-
* `payload` was selected — calling them otherwise would always throw.
|
|
167
|
-
*/
|
|
168
|
-
type ProjectedEntity<S> = { readonly [K in keyof S as S[K] extends true ? K : never]: K extends keyof Entity ? NonNullable<Entity[K]> : never } & (S extends {
|
|
169
|
-
payload: true;
|
|
170
|
-
} ? Pick<Entity, "toText" | "toJson"> : unknown);
|
|
171
|
-
/** A selection of every field, used to type the result of `select()` / `select("*")`. */
|
|
172
|
-
type AllSelected = { [K in DataKey]: true };
|
|
173
|
-
/** The projected entity type when everything is selected — every field, plus the methods. */
|
|
174
|
-
type FullEntity = ProjectedEntity<AllSelected>;
|
|
175
|
-
/**
|
|
176
|
-
* Converts a {@link SelectArg} into the {@link RpcIncludeData} understood by the query engine.
|
|
177
|
-
* Every field is opt-in — anything not explicitly selected defaults to `false`, including the key.
|
|
178
|
-
* `undefined` or `"*"` selects everything.
|
|
179
|
-
*
|
|
180
|
-
* @param selection - The selection to convert
|
|
181
|
-
* @returns The fully-resolved include-data object for the RPC query
|
|
182
|
-
* @throws If an empty selection object is provided
|
|
183
|
-
*
|
|
184
|
-
* @example
|
|
185
|
-
* selectionToIncludeData() // everything
|
|
186
|
-
* selectionToIncludeData("*") // everything
|
|
187
|
-
* selectionToIncludeData({ key: true }) // only the key
|
|
188
|
-
* selectionToIncludeData({ owner: true }) // only the owner
|
|
189
|
-
*/
|
|
190
|
-
declare function selectionToIncludeData(selection?: SelectArg): RpcIncludeData;
|
|
191
|
-
//#endregion
|
|
192
|
-
//#region src/query/queryBuilder.d.ts
|
|
193
|
-
/**
|
|
194
|
-
* @deprecated Server-side ordering is not supported by the network. Sort the fetched
|
|
195
|
-
* entities in JavaScript instead (e.g. `entities.sort(...)`). This type will be removed
|
|
196
|
-
* in a future release.
|
|
197
|
-
*/
|
|
198
|
-
type OrderByAttribute = {
|
|
199
|
-
name: string;
|
|
200
|
-
type: "string" | "number";
|
|
201
|
-
order: "asc" | "desc";
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
* Helper function to create an ascending order by attribute
|
|
205
|
-
* @param attributeName - The name of the attribute to order by
|
|
206
|
-
* @param attributeType - The type of the attribute to order by (string or number)
|
|
207
|
-
* @returns Input for orderBy method
|
|
208
|
-
*
|
|
209
|
-
* @deprecated Server-side ordering is not supported by the network, so `orderBy` (and this
|
|
210
|
-
* helper) have no effect on the returned order. Sort the fetched entities in JavaScript
|
|
211
|
-
* instead (e.g. `entities.sort(...)`). This function will be removed in a future release.
|
|
212
|
-
*
|
|
213
|
-
* @example
|
|
214
|
-
* const ascAttribute = asc("name", "string")
|
|
215
|
-
*/
|
|
216
|
-
declare function asc(attributeName: string, attributeType: "string" | "number"): OrderByAttribute;
|
|
217
|
-
/**
|
|
218
|
-
* Helper function to create a descending order by attribute
|
|
219
|
-
* @param attributeName - The name of the attribute to order by
|
|
220
|
-
* @param attributeType - The type of the attribute to order by (string or number)
|
|
221
|
-
* @returns Input for orderBy method
|
|
222
|
-
*
|
|
223
|
-
* @deprecated Server-side ordering is not supported by the network, so `orderBy` (and this
|
|
224
|
-
* helper) have no effect on the returned order. Sort the fetched entities in JavaScript
|
|
225
|
-
* instead (e.g. `entities.sort(...)`). This function will be removed in a future release.
|
|
226
|
-
*
|
|
227
|
-
* @example
|
|
228
|
-
* const descAttribute = desc("name", "string")
|
|
229
|
-
*/
|
|
230
|
-
declare function desc(attributeName: string, attributeType: "string" | "number"): OrderByAttribute;
|
|
231
|
-
/**
|
|
232
|
-
* Data-selection parameters forwarded to the query engine on each fetch.
|
|
233
|
-
* Subclasses of {@link BaseQueryBuilder} decide which parts of an entity are fetched.
|
|
234
|
-
*/
|
|
235
|
-
type SelectionParams = {
|
|
236
|
-
withAttributes?: boolean | undefined;
|
|
237
|
-
withMetadata?: boolean | undefined;
|
|
238
|
-
withPayload?: boolean | undefined;
|
|
239
|
-
includeData?: RpcIncludeData | undefined;
|
|
240
|
-
};
|
|
241
|
-
/**
|
|
242
|
-
* BaseQueryBuilder holds the query-building logic shared by every query builder
|
|
243
|
-
* (filtering, ordering, pagination, execution). It follows the Builder pattern,
|
|
244
|
-
* allowing methods to be chained. Subclasses decide how data selection is expressed
|
|
245
|
-
* by implementing the protected `selectionParams` method.
|
|
246
|
-
*
|
|
247
|
-
* Use {@link SelectQueryBuilder} via `client.select()` to build and execute queries.
|
|
248
|
-
*
|
|
249
|
-
* @typeParam TEntity - The shape of each entity produced by {@link BaseQueryBuilder.fetch}.
|
|
250
|
-
*/
|
|
251
|
-
declare abstract class BaseQueryBuilder<TEntity> {
|
|
252
|
-
protected _client: ArkivClient;
|
|
253
|
-
protected _ownedBy: Hex | undefined;
|
|
254
|
-
protected _createdBy: Hex | undefined;
|
|
255
|
-
protected _orderBy: RpcOrderByAttribute[] | undefined;
|
|
256
|
-
protected _validAtBlock: bigint | undefined;
|
|
257
|
-
protected _limit: number | undefined;
|
|
258
|
-
protected _cursor: string | undefined;
|
|
259
|
-
protected _predicates: Predicate[];
|
|
260
|
-
constructor(client: ArkivClient);
|
|
261
|
-
/**
|
|
262
|
-
* Sets the ownedBy filter
|
|
263
|
-
* @param ownedBy - The address of the owner
|
|
264
|
-
* @returns The query builder instance
|
|
265
|
-
*
|
|
266
|
-
* @example
|
|
267
|
-
* const builder = client.select()
|
|
268
|
-
* builder.ownedBy("0x1234567890123456789012345678901234567890")
|
|
269
|
-
*/
|
|
270
|
-
ownedBy(ownedBy: Hex): this;
|
|
271
|
-
/**
|
|
272
|
-
* Sets the createdBy filter
|
|
273
|
-
* @param createdBy - The address of the creator
|
|
274
|
-
* @returns The query builder instance
|
|
275
|
-
*
|
|
276
|
-
* @example
|
|
277
|
-
* const builder = client.select()
|
|
278
|
-
* builder.createdBy("0x1234567890123456789012345678901234567890")
|
|
279
|
-
*/
|
|
280
|
-
createdBy(createdBy: Hex): this;
|
|
281
|
-
/**
|
|
282
|
-
* Sets the orderBy for the query.
|
|
283
|
-
* It can be called multiple times to order by multiple attributes.
|
|
284
|
-
* The order of the attributes is important. The first attribute is the primary order by attribute.
|
|
285
|
-
* You can use the helper functions asc() and desc() as input for this method.
|
|
286
|
-
* @param attributeName - The name of the attribute to order by
|
|
287
|
-
* @param attributeType - The type of the attribute to order by (string or number)
|
|
288
|
-
* @param order - The order to set the order by (asc or desc)
|
|
289
|
-
* @returns The query builder instance
|
|
290
|
-
*
|
|
291
|
-
* @deprecated Server-side ordering is not supported by the network, so this method has no
|
|
292
|
-
* effect on the returned order. Sort the fetched entities in JavaScript instead, e.g.
|
|
293
|
-
* `result.entities.sort((a, b) => ...)`. This method will be removed in a future release.
|
|
294
|
-
*
|
|
295
|
-
* @example
|
|
296
|
-
* const builder = client.select()
|
|
297
|
-
* builder.orderBy("name", "string", "desc")
|
|
298
|
-
* builder.orderBy(asc("name", "string"))
|
|
299
|
-
* builder.orderBy(desc("name", "string"))
|
|
300
|
-
*/
|
|
301
|
-
orderBy(attributeName: string, attributeType: "string" | "number", order?: "asc" | "desc"): this;
|
|
302
|
-
/**
|
|
303
|
-
* Sets the orderBy for the query.
|
|
304
|
-
* This method takes the OrderByAttribute object as an argument and is mainly
|
|
305
|
-
* used to use the helper functions asc() and desc() to create the OrderByAttribute instances.
|
|
306
|
-
* @param orderByAttribute - The OrderByAttribute instance to set
|
|
307
|
-
* @returns The query builder instance
|
|
308
|
-
*
|
|
309
|
-
* @deprecated Server-side ordering is not supported by the network, so this method has no
|
|
310
|
-
* effect on the returned order. Sort the fetched entities in JavaScript instead, e.g.
|
|
311
|
-
* `result.entities.sort((a, b) => ...)`. This method will be removed in a future release.
|
|
312
|
-
*
|
|
313
|
-
* @example
|
|
314
|
-
* const builder = client.select()
|
|
315
|
-
* builder.orderBy(asc("name", "string"))
|
|
316
|
-
* builder.orderBy(desc("name", "string"))
|
|
317
|
-
*/
|
|
318
|
-
orderBy(orderByAttribute: OrderByAttribute): this;
|
|
319
|
-
/**
|
|
320
|
-
* Sets the limit for the query
|
|
321
|
-
* @param limit - The number of entities to return
|
|
322
|
-
* @returns The query builder instance
|
|
323
|
-
*
|
|
324
|
-
* @example
|
|
325
|
-
* const builder = client.select()
|
|
326
|
-
* builder.limit(10)
|
|
327
|
-
*/
|
|
328
|
-
limit(limit: number): this;
|
|
329
|
-
/**
|
|
330
|
-
* Sets the cursor for the query - it is advances setting which rather shouldn't be used manually but it is provided from query result if limit is used (pagination).
|
|
331
|
-
* @param cursor - The cursor to set which tells to RPC Query server where to start or continue the query.
|
|
332
|
-
* @returns The query builder instance
|
|
333
|
-
*
|
|
334
|
-
* @example
|
|
335
|
-
* const builder = client.select()
|
|
336
|
-
* builder.cursor("0xABC123")
|
|
337
|
-
*/
|
|
338
|
-
cursor(cursor: string): this;
|
|
339
|
-
/**
|
|
340
|
-
* Sets the validAtBlock for the query which tells at which block height the state we are intested.
|
|
341
|
-
* If not set, the latest block is used.
|
|
342
|
-
* @param validAtBlock - The block number to set
|
|
343
|
-
* @returns The query builder instance
|
|
344
|
-
*
|
|
345
|
-
* @example
|
|
346
|
-
* const builder = client.select()
|
|
347
|
-
* builder.validAtBlock(10000)
|
|
348
|
-
*/
|
|
349
|
-
validAtBlock(validAtBlock: bigint): this;
|
|
350
|
-
/**
|
|
351
|
-
* Sets the predicates for the query limiting the results. It can be a single predicate,
|
|
352
|
-
* multiple predicates passed as separate arguments, or an array of predicates - all combined with 'and'.
|
|
353
|
-
* Predicates can be nested using 'or' and 'and' predicates.
|
|
354
|
-
* @param predicates - The predicates to set, either as a single array or as separate arguments
|
|
355
|
-
* @returns The query builder instance
|
|
356
|
-
*
|
|
357
|
-
* @example
|
|
358
|
-
* const builder = client.select()
|
|
359
|
-
* builder.where(eq("name", "John"))
|
|
360
|
-
* builder.where(eq("name", "John"), eq("age", 30))
|
|
361
|
-
* builder.where([eq("name", "John"), eq("age", 30)])
|
|
362
|
-
* builder.where(eq("name", "John"), or(eq("age", 30), eq("age", 31)))
|
|
363
|
-
* builder.where(eq("name", "John"), and(eq("age", 30), eq("age", 31)))
|
|
364
|
-
* builder.where(eq("name", "John"), or(eq("age", 30), and(eq("age", 31), eq("age", 32))))
|
|
365
|
-
* builder.where(eq("name", "John"), and(eq("age", 30), or(eq("age", 31), eq("age", 32))))
|
|
366
|
-
*/
|
|
367
|
-
where(predicates: Predicate[]): this;
|
|
368
|
-
where(...predicates: Predicate[]): this;
|
|
369
|
-
/**
|
|
370
|
-
* Returns the data-selection parameters forwarded to the query engine.
|
|
371
|
-
* Subclasses decide which parts of an entity are fetched.
|
|
372
|
-
*/
|
|
373
|
-
protected abstract selectionParams(): SelectionParams;
|
|
374
|
-
/**
|
|
375
|
-
* Builds a single result entity from a raw RPC entity. Subclasses decide the produced shape
|
|
376
|
-
* (a full {@link Entity}, or a projected object inferred from the selection).
|
|
377
|
-
*/
|
|
378
|
-
protected abstract projectEntity(rpcEntity: RpcEntity): TEntity | Promise<TEntity>;
|
|
379
|
-
/**
|
|
380
|
-
* Fetches the entities from the query.
|
|
381
|
-
* It will return a QueryResult instance which can be used to fetch the next and previous pages.
|
|
382
|
-
* @returns The QueryResult instance {@link QueryResult}
|
|
383
|
-
*
|
|
384
|
-
* @example
|
|
385
|
-
* const builder = client.select()
|
|
386
|
-
* const result = await builder.where(eq("name", "John")).fetch()
|
|
387
|
-
* // result = { entities: [Entity, Entity, Entity], next: async () => QueryResult, previous: async () => QueryResult }
|
|
388
|
-
*/
|
|
389
|
-
fetch(): Promise<QueryResult<TEntity>>;
|
|
390
|
-
/**
|
|
391
|
-
* Counts the entities from the query.
|
|
392
|
-
* @returns The number of entities
|
|
393
|
-
*
|
|
394
|
-
* @example
|
|
395
|
-
* const builder = client.select()
|
|
396
|
-
* const result = await builder.where(eq("name", "John")).count()
|
|
397
|
-
* // result = 10
|
|
398
|
-
*/
|
|
399
|
-
count(): Promise<number>;
|
|
400
|
-
}
|
|
401
|
-
/**
|
|
402
|
-
* QueryBuilder is a helper class to build queries to the Arkiv DBChains.
|
|
403
|
-
* It can be used to fetch entities from the Arkiv DBChains. It follows the Builder pattern allowing chaining of methods.
|
|
404
|
-
*
|
|
405
|
-
* By default the result includes only the entity `key`. Additional data is opt-in through
|
|
406
|
-
* `withAttributes()`, `withMetadata()` and `withPayload()`.
|
|
407
|
-
*
|
|
408
|
-
* @deprecated Use {@link SelectQueryBuilder} via `client.select()` instead. Declaring the
|
|
409
|
-
* selection up front avoids the common mistake of forgetting to opt in to data and getting back
|
|
410
|
-
* entities with only their `key` populated. This class remains for backwards compatibility and
|
|
411
|
-
* will be removed in a future release.
|
|
412
|
-
*
|
|
413
|
-
* @param client - The Arkiv client
|
|
414
|
-
* @returns The QueryBuilder instance {@link QueryBuilder}
|
|
415
|
-
*/
|
|
416
|
-
declare class QueryBuilder extends BaseQueryBuilder<Entity> {
|
|
417
|
-
private _withAttributes;
|
|
418
|
-
private _withMetadata;
|
|
419
|
-
private _withPayload;
|
|
420
|
-
/**
|
|
421
|
-
* Sets the withAttributes flag which will return the attributes for the entities if true
|
|
422
|
-
* @param withAttributes - The boolean value to set
|
|
423
|
-
* @returns The QueryBuilder instance
|
|
424
|
-
*
|
|
425
|
-
* @example
|
|
426
|
-
* const builder = client.buildQuery()
|
|
427
|
-
* builder.withAttributes(true)
|
|
428
|
-
*/
|
|
429
|
-
withAttributes(withAttributes?: boolean): this;
|
|
430
|
-
/**
|
|
431
|
-
* Sets the withMetadata flag which will return the metadata (like owner, expiredAt, etc.) for the entities if true
|
|
432
|
-
* @param withMetadata - The boolean value to set
|
|
433
|
-
* @returns The QueryBuilder instance
|
|
434
|
-
*
|
|
435
|
-
* @example
|
|
436
|
-
* const builder = client.buildQuery()
|
|
437
|
-
* builder.withMetadata(true)
|
|
438
|
-
*/
|
|
439
|
-
withMetadata(withMetadata?: boolean): this;
|
|
440
|
-
/**
|
|
441
|
-
* Sets the withPayload flag which will return the payload for the entities if true
|
|
442
|
-
* @param withPayload - The boolean value to set
|
|
443
|
-
* @returns The QueryBuilder instance
|
|
444
|
-
*
|
|
445
|
-
* @example
|
|
446
|
-
* const builder = client.buildQuery()
|
|
447
|
-
* builder.withPayload(true)
|
|
448
|
-
*/
|
|
449
|
-
withPayload(withPayload?: boolean): this;
|
|
450
|
-
protected selectionParams(): SelectionParams;
|
|
451
|
-
protected projectEntity(rpcEntity: RpcEntity): Promise<Entity>;
|
|
452
|
-
}
|
|
453
|
-
/**
|
|
454
|
-
* SelectQueryBuilder is the recommended query builder. It requires the selection to be declared
|
|
455
|
-
* up front, so results always contain exactly the data you asked for — and the type of each
|
|
456
|
-
* returned entity is narrowed to exactly the selected fields.
|
|
457
|
-
*
|
|
458
|
-
* The selection is fixed at construction time and is flat — each field maps to an entity field.
|
|
459
|
-
* Create one via `client.select(...)` rather than constructing it directly, so the result type is
|
|
460
|
-
* inferred from the selection.
|
|
461
|
-
*
|
|
462
|
-
* @typeParam TEntity - The projected entity shape, inferred from the selection by `client.select()`.
|
|
463
|
-
*
|
|
464
|
-
* @example
|
|
465
|
-
* // everything
|
|
466
|
-
* await client.select().where(eq("name", "John")).fetch()
|
|
467
|
-
* await client.select("*").where(eq("name", "John")).fetch()
|
|
468
|
-
* // specific fields
|
|
469
|
-
* await client.select({ owner: true, attributes: true }).fetch()
|
|
470
|
-
* // a single field — result is typed (flat) { owner: Hex }
|
|
471
|
-
* await client.select({ owner: true }).fetch()
|
|
472
|
-
*/
|
|
473
|
-
declare class SelectQueryBuilder<TEntity> extends BaseQueryBuilder<TEntity> {
|
|
474
|
-
private _includeData;
|
|
475
|
-
constructor(client: ArkivClient, selection?: SelectArg);
|
|
476
|
-
protected selectionParams(): SelectionParams;
|
|
477
|
-
protected projectEntity(rpcEntity: RpcEntity): Promise<TEntity>;
|
|
478
|
-
}
|
|
479
|
-
//#endregion
|
|
480
|
-
export { neq as C, lte as S, or as T, and as _, asc as a, gte as b, FullEntity as c, SelectionFields as d, selectionToIncludeData as f, PredicateType as g, PredicateContainerType as h, SelectQueryBuilder as i, ProjectedEntity as l, Predicate as m, OrderByAttribute as n, desc as o, QueryResult as p, QueryBuilder as r, EntitySelection as s, BaseQueryBuilder as t, SelectArg as u, eq as v, not as w, lt as x, gt as y };
|
|
481
|
-
//# sourceMappingURL=index-ClkpS6s_.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-ClkpS6s_.d.ts","names":[],"sources":["../src/query/predicate.ts","../src/query/queryResult.ts","../src/query/selection.ts","../src/query/queryBuilder.ts"],"sourcesContent":[],"mappings":";;;;KAAY,aAAA;KACA,sBAAA;KAEA,SAAA;QAEA;EALA,GAAA,EAAA,MAAA;EACA,KAAA,EAAA,MAAA,GAAA,MAAA;AAEZ,CAAA,GAAY;EAEA,IAAA,EAKA,sBALA;EAKA,UAAA,EACM,SADN,EAAA;CACM;;AAclB;AACA;AAgBA;AACA;AAeA;AAcA;AAcA;AAcA;AAcA;AAcA;AAagB,iBApHA,EAAA,CAoHkB,UAAS,EApHZ,SAoHY,EAAA,CAAA,EApHE,SAoHF;iBAnH3B,EAAA,gBAAkB,cAAc;;;ACbhD;;;;;;;;;AAgCY,iBDHI,GAAA,CCGJ,UAAA,EDHoB,SCGpB,EAAA,CAAA,EDHkC,SCGlC;iBDFI,GAAA,gBAAmB,cAAc;;;AE1CO;AAoBxD;AAA0D;;;;;;AAOrC,iBF8BL,EAAA,CE9BK,GAAA,EAAA,MAAA,EAAA,KAAA,EAAA,MAAA,GAAA,MAAA,CAAA,EF8BoC,SE9BpC;;;;;;;;AAOrB;AAGA;AAWA;AACuB,iBFsBP,GAAA,CEtBO,GAAA,EAAA,MAAA,EAAA,KAAA,EAAA,MAAA,GAAA,MAAA,CAAA,EFsBmC,SEtBnC;;;;;;;;;;;AAGY,iBFiCnB,EAAA,CEjCmB,GAAA,EAAA,MAAA,EAAA,KAAA,EAAA,MAAA,GAAA,MAAA,CAAA,EFiCsB,SEjCtB;;AAA4C;AAM/E;AAiBA;;;;AC7DA;AAmBA;AAqBA;AAYK,iBHiCW,GAAA,CGjCI,GAAA,EAAA,MAIJ,EAAA,KAAA,EAAA,MAAc,GAAA,MAAA,CAAA,EH6B4B,SG7B5B;AAa9B;;;;;;;;;;AA8Ko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