@distrohelena/canton-typescript-sdk 0.1.1 → 0.1.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 +16 -0
- package/dist/client/canton-client.d.ts +2 -0
- package/dist/client/canton-client.js +3 -0
- package/dist/client/canton-hashing-client.d.ts +8 -0
- package/dist/client/canton-hashing-client.js +16 -0
- package/dist/client/external-party-activation-client.d.ts +15 -0
- package/dist/client/external-party-activation-client.js +126 -0
- package/dist/client/external-party-activation-request.d.ts +15 -0
- package/dist/client/external-party-activation-request.js +14 -0
- package/dist/client/external-party-activation-response.d.ts +13 -0
- package/dist/client/external-party-activation-response.js +12 -0
- package/dist/client/service-registry.js +20 -0
- package/dist/core/hashing/canton-hash.d.ts +3 -0
- package/dist/core/hashing/canton-hash.js +24 -0
- package/dist/core/transports/transport.interface.d.ts +8 -0
- package/dist/core/types/canton-hash-purpose.d.ts +4 -0
- package/dist/core/types/canton-hash-purpose.js +5 -0
- package/dist/core/types/requests/add-party-async-request.d.ts +27 -0
- package/dist/core/types/requests/add-party-async-request.js +25 -0
- package/dist/core/types/requests/clear-party-onboarding-flag-request.d.ts +13 -0
- package/dist/core/types/requests/clear-party-onboarding-flag-request.js +12 -0
- package/dist/core/types/requests/get-active-contracts-page-request.d.ts +12 -0
- package/dist/core/types/requests/get-active-contracts-page-request.js +12 -0
- package/dist/core/types/responses/add-party-async-response.d.ts +6 -0
- package/dist/core/types/responses/add-party-async-response.js +6 -0
- package/dist/core/types/responses/clear-party-onboarding-flag-response.d.ts +8 -0
- package/dist/core/types/responses/clear-party-onboarding-flag-response.js +8 -0
- package/dist/core/types/responses/get-active-contracts-page-response.d.ts +4 -0
- package/dist/core/types/responses/get-active-contracts-page-response.js +4 -0
- package/dist/core/types/topology/topology-public-key.d.ts +4 -0
- package/dist/core/types/topology/topology-public-key.js +4 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/services/participant-party-management/participant-party-management-service-client.d.ts +8 -0
- package/dist/services/participant-party-management/participant-party-management-service-client.js +8 -0
- package/dist/services/state/state-service-client.d.ts +1 -1
- package/dist/services/state/state-service-client.js +1 -1
- package/dist/transports/grpc/grpc-channel-factory.d.ts +3 -1
- package/dist/transports/grpc/grpc-channel-factory.js +8 -0
- package/dist/transports/grpc/grpc-transport.d.ts +6 -0
- package/dist/transports/grpc/grpc-transport.js +20 -1
- package/dist/transports/grpc/mappers/contracts-mapper.d.ts +6 -0
- package/dist/transports/grpc/mappers/contracts-mapper.js +40 -19
- package/dist/transports/grpc/mappers/participant-party-management-mapper.d.ts +9 -2
- package/dist/transports/grpc/mappers/participant-party-management-mapper.js +56 -1
- package/dist/transports/grpc/mappers/topology-common-mapper.js +3 -0
- package/dist/transports/grpc/mappers/topology-manager-write-mapper.js +17 -2
- package/dist/transports/json/json-transport.d.ts +6 -0
- package/dist/transports/json/json-transport.js +16 -0
- package/package.json +2 -1
|
@@ -208,6 +208,14 @@ export class JsonTransport {
|
|
|
208
208
|
this.throwIfDisposed();
|
|
209
209
|
throw new NotSupportedError("ParticipantInspectionService.LookupReceivedAcsCommitments is not supported by json transport");
|
|
210
210
|
}
|
|
211
|
+
async addPartyAsync(_request, _options) {
|
|
212
|
+
this.throwIfDisposed();
|
|
213
|
+
throw new NotSupportedError("ParticipantPartyManagementService.AddPartyAsync is not supported by json transport");
|
|
214
|
+
}
|
|
215
|
+
async clearPartyOnboardingFlagAsync(_request, _options) {
|
|
216
|
+
this.throwIfDisposed();
|
|
217
|
+
throw new NotSupportedError("ParticipantPartyManagementService.ClearPartyOnboardingFlag is not supported by json transport");
|
|
218
|
+
}
|
|
211
219
|
async getHighestOffsetByTimestampAsync(_request, _options) {
|
|
212
220
|
this.throwIfDisposed();
|
|
213
221
|
throw new NotSupportedError("ParticipantPartyManagementService.GetHighestOffsetByTimestamp is not supported by json transport");
|
|
@@ -382,6 +390,14 @@ export class JsonTransport {
|
|
|
382
390
|
}
|
|
383
391
|
async getActiveContractsPageAsync(request, options) {
|
|
384
392
|
this.throwIfDisposed();
|
|
393
|
+
if (request.interfaceId !== undefined
|
|
394
|
+
|| request.includeInterfaceView !== undefined
|
|
395
|
+
|| request.includeCreatedEventBlob === true
|
|
396
|
+
|| request.activeAtOffset !== undefined
|
|
397
|
+
|| request.maxPageSize !== undefined
|
|
398
|
+
|| request.pageToken !== undefined) {
|
|
399
|
+
throw new NotSupportedError("StateService.GetActiveContractsPage interface filters, event blobs, and page tokens are not supported by json transport");
|
|
400
|
+
}
|
|
385
401
|
const payload = await this.httpClient.postAsync("/v1/query", {
|
|
386
402
|
templateIds: request.templateId ? [request.templateId] : [],
|
|
387
403
|
}, options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distrohelena/canton-typescript-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"lint:fix": "eslint . --fix --max-warnings=0",
|
|
59
59
|
"start:local-ledger": "bash node/start-local.sh",
|
|
60
60
|
"stop:local-ledger": "bash node/stop-local.sh",
|
|
61
|
+
"test:start-local-script": "bash node/test-start-local.sh",
|
|
61
62
|
"test": "vitest run --maxWorkers=1 --testTimeout=15000",
|
|
62
63
|
"test:live": "vitest run tests/live --maxWorkers=1 --testTimeout=15000",
|
|
63
64
|
"test:unit": "vitest run tests/unit",
|