@settlemint/sdk-js 2.6.1-prd8cf44b4 → 2.6.2
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 +19 -19
- package/dist/settlemint.cjs +6 -60
- package/dist/settlemint.cjs.map +1 -1
- package/dist/settlemint.d.cts +0 -770
- package/dist/settlemint.d.ts +0 -770
- package/dist/settlemint.js +6 -60
- package/dist/settlemint.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ The SettleMint JavaScript SDK provides a type-safe wrapper around the SettleMint
|
|
|
62
62
|
|
|
63
63
|
> **createSettleMintClient**(`options`): [`SettlemintClient`](#settlemintclient)
|
|
64
64
|
|
|
65
|
-
Defined in: [sdk/js/src/settlemint.ts:275](https://github.com/settlemint/sdk/blob/v2.6.
|
|
65
|
+
Defined in: [sdk/js/src/settlemint.ts:275](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/settlemint.ts#L275)
|
|
66
66
|
|
|
67
67
|
Creates a SettleMint client with the provided options. The client provides methods to interact with
|
|
68
68
|
various SettleMint resources like workspaces, applications, blockchain networks, blockchain nodes, middleware,
|
|
@@ -109,7 +109,7 @@ const workspace = await client.workspace.read('workspace-unique-name');
|
|
|
109
109
|
|
|
110
110
|
#### SettlemintClient
|
|
111
111
|
|
|
112
|
-
Defined in: [sdk/js/src/settlemint.ts:145](https://github.com/settlemint/sdk/blob/v2.6.
|
|
112
|
+
Defined in: [sdk/js/src/settlemint.ts:145](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/settlemint.ts#L145)
|
|
113
113
|
|
|
114
114
|
Client interface for interacting with the SettleMint platform.
|
|
115
115
|
|
|
@@ -117,7 +117,7 @@ Client interface for interacting with the SettleMint platform.
|
|
|
117
117
|
|
|
118
118
|
#### SettlemintClientOptions
|
|
119
119
|
|
|
120
|
-
Defined in: [sdk/js/src/settlemint.ts:135](https://github.com/settlemint/sdk/blob/v2.6.
|
|
120
|
+
Defined in: [sdk/js/src/settlemint.ts:135](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/settlemint.ts#L135)
|
|
121
121
|
|
|
122
122
|
Options for the Settlemint client.
|
|
123
123
|
|
|
@@ -129,9 +129,9 @@ Options for the Settlemint client.
|
|
|
129
129
|
|
|
130
130
|
| Property | Type | Default value | Description | Inherited from | Defined in |
|
|
131
131
|
| ------ | ------ | ------ | ------ | ------ | ------ |
|
|
132
|
-
| <a id="accesstoken"></a> `accessToken?` | `string` | `undefined` | The access token used to authenticate with the SettleMint platform | - | [sdk/js/src/settlemint.ts:137](https://github.com/settlemint/sdk/blob/v2.6.
|
|
133
|
-
| <a id="anonymous"></a> `anonymous?` | `boolean` | `undefined` | Whether to allow anonymous access (no access token required) | - | [sdk/js/src/settlemint.ts:139](https://github.com/settlemint/sdk/blob/v2.6.
|
|
134
|
-
| <a id="instance"></a> `instance` | `string` | `UrlSchema` | The URL of the SettleMint instance to connect to | `Omit.instance` | [sdk/js/src/helpers/client-options.schema.ts:11](https://github.com/settlemint/sdk/blob/v2.6.
|
|
132
|
+
| <a id="accesstoken"></a> `accessToken?` | `string` | `undefined` | The access token used to authenticate with the SettleMint platform | - | [sdk/js/src/settlemint.ts:137](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/settlemint.ts#L137) |
|
|
133
|
+
| <a id="anonymous"></a> `anonymous?` | `boolean` | `undefined` | Whether to allow anonymous access (no access token required) | - | [sdk/js/src/settlemint.ts:139](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/settlemint.ts#L139) |
|
|
134
|
+
| <a id="instance"></a> `instance` | `string` | `UrlSchema` | The URL of the SettleMint instance to connect to | `Omit.instance` | [sdk/js/src/helpers/client-options.schema.ts:11](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/helpers/client-options.schema.ts#L11) |
|
|
135
135
|
|
|
136
136
|
### Type Aliases
|
|
137
137
|
|
|
@@ -139,7 +139,7 @@ Options for the Settlemint client.
|
|
|
139
139
|
|
|
140
140
|
> **Application** = `ResultOf`\<*typeof* `ApplicationFragment`\>
|
|
141
141
|
|
|
142
|
-
Defined in: [sdk/js/src/graphql/application.ts:24](https://github.com/settlemint/sdk/blob/v2.6.
|
|
142
|
+
Defined in: [sdk/js/src/graphql/application.ts:24](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/graphql/application.ts#L24)
|
|
143
143
|
|
|
144
144
|
Type representing an application entity.
|
|
145
145
|
|
|
@@ -149,7 +149,7 @@ Type representing an application entity.
|
|
|
149
149
|
|
|
150
150
|
> **BlockchainNetwork** = `ResultOf`\<*typeof* `BlockchainNetworkFragment`\>
|
|
151
151
|
|
|
152
|
-
Defined in: [sdk/js/src/graphql/blockchain-network.ts:
|
|
152
|
+
Defined in: [sdk/js/src/graphql/blockchain-network.ts:55](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/graphql/blockchain-network.ts#L55)
|
|
153
153
|
|
|
154
154
|
Type representing a blockchain network entity.
|
|
155
155
|
|
|
@@ -159,7 +159,7 @@ Type representing a blockchain network entity.
|
|
|
159
159
|
|
|
160
160
|
> **BlockchainNode** = `ResultOf`\<*typeof* `BlockchainNodeFragment`\>
|
|
161
161
|
|
|
162
|
-
Defined in: [sdk/js/src/graphql/blockchain-node.ts:
|
|
162
|
+
Defined in: [sdk/js/src/graphql/blockchain-node.ts:69](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/graphql/blockchain-node.ts#L69)
|
|
163
163
|
|
|
164
164
|
Type representing a blockchain node entity.
|
|
165
165
|
|
|
@@ -169,7 +169,7 @@ Type representing a blockchain node entity.
|
|
|
169
169
|
|
|
170
170
|
> **CustomDeployment** = `ResultOf`\<*typeof* `CustomDeploymentFragment`\>
|
|
171
171
|
|
|
172
|
-
Defined in: [sdk/js/src/graphql/custom-deployment.ts:33](https://github.com/settlemint/sdk/blob/v2.6.
|
|
172
|
+
Defined in: [sdk/js/src/graphql/custom-deployment.ts:33](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/graphql/custom-deployment.ts#L33)
|
|
173
173
|
|
|
174
174
|
Type representing a custom deployment entity.
|
|
175
175
|
|
|
@@ -179,7 +179,7 @@ Type representing a custom deployment entity.
|
|
|
179
179
|
|
|
180
180
|
> **Insights** = `ResultOf`\<*typeof* `InsightsFragment`\>
|
|
181
181
|
|
|
182
|
-
Defined in: [sdk/js/src/graphql/insights.ts:37](https://github.com/settlemint/sdk/blob/v2.6.
|
|
182
|
+
Defined in: [sdk/js/src/graphql/insights.ts:37](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/graphql/insights.ts#L37)
|
|
183
183
|
|
|
184
184
|
Type representing an insights entity.
|
|
185
185
|
|
|
@@ -189,7 +189,7 @@ Type representing an insights entity.
|
|
|
189
189
|
|
|
190
190
|
> **IntegrationTool** = `ResultOf`\<*typeof* `IntegrationFragment`\>
|
|
191
191
|
|
|
192
|
-
Defined in: [sdk/js/src/graphql/integration-tool.ts:35](https://github.com/settlemint/sdk/blob/v2.6.
|
|
192
|
+
Defined in: [sdk/js/src/graphql/integration-tool.ts:35](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/graphql/integration-tool.ts#L35)
|
|
193
193
|
|
|
194
194
|
Type representing an integration tool entity.
|
|
195
195
|
|
|
@@ -199,7 +199,7 @@ Type representing an integration tool entity.
|
|
|
199
199
|
|
|
200
200
|
> **LoadBalancer** = `ResultOf`\<*typeof* `LoadBalancerFragment`\>
|
|
201
201
|
|
|
202
|
-
Defined in: [sdk/js/src/graphql/load-balancer.ts:31](https://github.com/settlemint/sdk/blob/v2.6.
|
|
202
|
+
Defined in: [sdk/js/src/graphql/load-balancer.ts:31](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/graphql/load-balancer.ts#L31)
|
|
203
203
|
|
|
204
204
|
Type representing a load balancer entity.
|
|
205
205
|
|
|
@@ -209,7 +209,7 @@ Type representing a load balancer entity.
|
|
|
209
209
|
|
|
210
210
|
> **Middleware** = `ResultOf`\<*typeof* `MiddlewareFragment`\>
|
|
211
211
|
|
|
212
|
-
Defined in: [sdk/js/src/graphql/middleware.ts:56](https://github.com/settlemint/sdk/blob/v2.6.
|
|
212
|
+
Defined in: [sdk/js/src/graphql/middleware.ts:56](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/graphql/middleware.ts#L56)
|
|
213
213
|
|
|
214
214
|
Type representing a middleware entity.
|
|
215
215
|
|
|
@@ -219,7 +219,7 @@ Type representing a middleware entity.
|
|
|
219
219
|
|
|
220
220
|
> **MiddlewareWithSubgraphs** = `ResultOf`\<*typeof* `getGraphMiddlewareSubgraphs`\>\[`"middlewareByUniqueName"`\]
|
|
221
221
|
|
|
222
|
-
Defined in: [sdk/js/src/graphql/middleware.ts:115](https://github.com/settlemint/sdk/blob/v2.6.
|
|
222
|
+
Defined in: [sdk/js/src/graphql/middleware.ts:115](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/graphql/middleware.ts#L115)
|
|
223
223
|
|
|
224
224
|
Type representing a middleware entity with subgraphs.
|
|
225
225
|
|
|
@@ -229,7 +229,7 @@ Type representing a middleware entity with subgraphs.
|
|
|
229
229
|
|
|
230
230
|
> **PlatformConfig** = `ResultOf`\<*typeof* `getPlatformConfigQuery`\>\[`"config"`\]
|
|
231
231
|
|
|
232
|
-
Defined in: [sdk/js/src/graphql/platform.ts:56](https://github.com/settlemint/sdk/blob/v2.6.
|
|
232
|
+
Defined in: [sdk/js/src/graphql/platform.ts:56](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/graphql/platform.ts#L56)
|
|
233
233
|
|
|
234
234
|
Type representing the platform configuration.
|
|
235
235
|
|
|
@@ -239,7 +239,7 @@ Type representing the platform configuration.
|
|
|
239
239
|
|
|
240
240
|
> **PrivateKey** = `ResultOf`\<*typeof* `PrivateKeyFragment`\>
|
|
241
241
|
|
|
242
|
-
Defined in: [sdk/js/src/graphql/private-key.ts:44](https://github.com/settlemint/sdk/blob/v2.6.
|
|
242
|
+
Defined in: [sdk/js/src/graphql/private-key.ts:44](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/graphql/private-key.ts#L44)
|
|
243
243
|
|
|
244
244
|
Type representing a private key entity.
|
|
245
245
|
|
|
@@ -249,7 +249,7 @@ Type representing a private key entity.
|
|
|
249
249
|
|
|
250
250
|
> **Storage** = `ResultOf`\<*typeof* `StorageFragment`\>
|
|
251
251
|
|
|
252
|
-
Defined in: [sdk/js/src/graphql/storage.ts:35](https://github.com/settlemint/sdk/blob/v2.6.
|
|
252
|
+
Defined in: [sdk/js/src/graphql/storage.ts:35](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/graphql/storage.ts#L35)
|
|
253
253
|
|
|
254
254
|
Type representing a storage entity.
|
|
255
255
|
|
|
@@ -259,7 +259,7 @@ Type representing a storage entity.
|
|
|
259
259
|
|
|
260
260
|
> **Workspace** = `ResultOf`\<*typeof* `WorkspaceFragment`\>
|
|
261
261
|
|
|
262
|
-
Defined in: [sdk/js/src/graphql/workspace.ts:26](https://github.com/settlemint/sdk/blob/v2.6.
|
|
262
|
+
Defined in: [sdk/js/src/graphql/workspace.ts:26](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/js/src/graphql/workspace.ts#L26)
|
|
263
263
|
|
|
264
264
|
Type representing a workspace entity.
|
|
265
265
|
|
package/dist/settlemint.cjs
CHANGED
|
@@ -446,36 +446,6 @@ const BlockchainNetworkFragment = graphql(`
|
|
|
446
446
|
... on BesuIbftv2BlockchainNetwork {
|
|
447
447
|
chainId
|
|
448
448
|
}
|
|
449
|
-
... on GethPoWBlockchainNetwork {
|
|
450
|
-
chainId
|
|
451
|
-
}
|
|
452
|
-
... on GethPoSRinkebyBlockchainNetwork {
|
|
453
|
-
chainId
|
|
454
|
-
}
|
|
455
|
-
... on GethVenidiumBlockchainNetwork {
|
|
456
|
-
chainId
|
|
457
|
-
}
|
|
458
|
-
... on GethGoerliBlockchainNetwork {
|
|
459
|
-
chainId
|
|
460
|
-
}
|
|
461
|
-
... on AvalancheBlockchainNetwork {
|
|
462
|
-
chainId
|
|
463
|
-
}
|
|
464
|
-
... on AvalancheFujiBlockchainNetwork {
|
|
465
|
-
chainId
|
|
466
|
-
}
|
|
467
|
-
... on BscPoWBlockchainNetwork {
|
|
468
|
-
chainId
|
|
469
|
-
}
|
|
470
|
-
... on BscPoWTestnetBlockchainNetwork {
|
|
471
|
-
chainId
|
|
472
|
-
}
|
|
473
|
-
... on PolygonBlockchainNetwork {
|
|
474
|
-
chainId
|
|
475
|
-
}
|
|
476
|
-
... on PolygonMumbaiBlockchainNetwork {
|
|
477
|
-
chainId
|
|
478
|
-
}
|
|
479
449
|
... on PolygonEdgePoABlockchainNetwork {
|
|
480
450
|
chainId
|
|
481
451
|
}
|
|
@@ -485,6 +455,9 @@ const BlockchainNetworkFragment = graphql(`
|
|
|
485
455
|
... on GethCliqueBlockchainNetwork {
|
|
486
456
|
chainId
|
|
487
457
|
}
|
|
458
|
+
... on PublicEvmBlockchainNetwork {
|
|
459
|
+
chainId
|
|
460
|
+
}
|
|
488
461
|
blockchainNodes {
|
|
489
462
|
... on BlockchainNode {
|
|
490
463
|
id
|
|
@@ -754,36 +727,6 @@ const BlockchainNodeFragment = graphql(`
|
|
|
754
727
|
... on BesuIbftv2BlockchainNetwork {
|
|
755
728
|
chainId
|
|
756
729
|
}
|
|
757
|
-
... on GethPoWBlockchainNetwork {
|
|
758
|
-
chainId
|
|
759
|
-
}
|
|
760
|
-
... on GethPoSRinkebyBlockchainNetwork {
|
|
761
|
-
chainId
|
|
762
|
-
}
|
|
763
|
-
... on GethVenidiumBlockchainNetwork {
|
|
764
|
-
chainId
|
|
765
|
-
}
|
|
766
|
-
... on GethGoerliBlockchainNetwork {
|
|
767
|
-
chainId
|
|
768
|
-
}
|
|
769
|
-
... on AvalancheBlockchainNetwork {
|
|
770
|
-
chainId
|
|
771
|
-
}
|
|
772
|
-
... on AvalancheFujiBlockchainNetwork {
|
|
773
|
-
chainId
|
|
774
|
-
}
|
|
775
|
-
... on BscPoWBlockchainNetwork {
|
|
776
|
-
chainId
|
|
777
|
-
}
|
|
778
|
-
... on BscPoWTestnetBlockchainNetwork {
|
|
779
|
-
chainId
|
|
780
|
-
}
|
|
781
|
-
... on PolygonBlockchainNetwork {
|
|
782
|
-
chainId
|
|
783
|
-
}
|
|
784
|
-
... on PolygonMumbaiBlockchainNetwork {
|
|
785
|
-
chainId
|
|
786
|
-
}
|
|
787
730
|
... on PolygonEdgePoABlockchainNetwork {
|
|
788
731
|
chainId
|
|
789
732
|
}
|
|
@@ -793,6 +736,9 @@ const BlockchainNodeFragment = graphql(`
|
|
|
793
736
|
... on GethCliqueBlockchainNetwork {
|
|
794
737
|
chainId
|
|
795
738
|
}
|
|
739
|
+
... on PublicEvmBlockchainNetwork {
|
|
740
|
+
chainId
|
|
741
|
+
}
|
|
796
742
|
}
|
|
797
743
|
}
|
|
798
744
|
privateKeys {
|