@settlemint/dalp-sdk 3.1.19-main.36047971506 → 3.1.19-main.36061455583
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 +3 -3
- package/dist/auth.js +1 -1
- package/dist/chunk-xjj2ke3c.js +4 -0
- package/dist/{chunk-37byar70.js → chunk-y9vvbcdv.js} +1 -1
- package/dist/effect.js +1 -1
- package/dist/generated/api-types.d.ts +14 -1336
- package/dist/index.js +2 -2
- package/dist/routes/console.js +1 -1
- package/dist/routes/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-c1djhyp8.js +0 -4
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ const dalp = createDalpClient({
|
|
|
20
20
|
apiKey: "sm_dalp_...",
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
const tokens = await dalp.api.token.list({ limit: 25 }, { signal });
|
|
23
|
+
const tokens = await dalp.api.token.list({ page: { limit: 25 } }, { signal });
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
A call takes one flat object. The route table says which of its keys are path
|
|
@@ -96,7 +96,7 @@ dalp.conditionalRequests.clear();
|
|
|
96
96
|
import { createDalpEffectClient } from "@settlemint/dalp-sdk/effect";
|
|
97
97
|
|
|
98
98
|
const dalp = createDalpEffectClient({ baseUrl, apiKey });
|
|
99
|
-
const tokens = yield * dalp.api.token.list({ limit: 25 });
|
|
99
|
+
const tokens = yield * dalp.api.token.list({ page: { limit: 25 } });
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
The same routes, returning `Effect` values that fail with `DalpRequestError`
|
|
@@ -116,7 +116,7 @@ serves loads this rather than a client.
|
|
|
116
116
|
## TanStack Query
|
|
117
117
|
|
|
118
118
|
```ts
|
|
119
|
-
const options = dalp.api.token.list.queryOptions({ limit: 25 });
|
|
119
|
+
const options = dalp.api.token.list.queryOptions({ page: { limit: 25 } });
|
|
120
120
|
const transfer = dalp.api.token.transfer.mutationOptions();
|
|
121
121
|
```
|
|
122
122
|
|
package/dist/auth.js
CHANGED