@fairmint/canton-node-sdk 0.0.76 → 0.0.78
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/build/src/clients/ledger-json-api/schemas/api/command-responses.d.ts +0 -15
- package/build/src/clients/ledger-json-api/schemas/api/command-responses.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/command-responses.js +1 -23
- package/build/src/clients/ledger-json-api/schemas/api/command-responses.js.map +1 -1
- package/package.json +8 -8
|
@@ -3,20 +3,5 @@ import { z } from 'zod';
|
|
|
3
3
|
* Submit response for async command submission.
|
|
4
4
|
*/
|
|
5
5
|
export declare const SubmitResponseSchema: z.ZodObject<{}, z.core.$strict>;
|
|
6
|
-
/**
|
|
7
|
-
* Submit and wait for transaction tree response.
|
|
8
|
-
*/
|
|
9
|
-
export declare const JsSubmitAndWaitForTransactionTreeResponseSchema: z.ZodObject<{
|
|
10
|
-
transactionTree: z.ZodObject<{
|
|
11
|
-
updateId: z.ZodString;
|
|
12
|
-
commandId: z.ZodOptional<z.ZodString>;
|
|
13
|
-
workflowId: z.ZodOptional<z.ZodString>;
|
|
14
|
-
effectiveAt: z.ZodString;
|
|
15
|
-
offset: z.ZodNumber;
|
|
16
|
-
eventsById: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
17
|
-
recordTime: z.ZodString;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
6
|
export type SubmitResponse = z.infer<typeof SubmitResponseSchema>;
|
|
21
|
-
export type JsSubmitAndWaitForTransactionTreeResponse = z.infer<typeof JsSubmitAndWaitForTransactionTreeResponseSchema>;
|
|
22
7
|
//# sourceMappingURL=command-responses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-responses.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/api/command-responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,oBAAoB,iCAEtB,CAAC;
|
|
1
|
+
{"version":3,"file":"command-responses.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/api/command-responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,oBAAoB,iCAEtB,CAAC;AAGZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SubmitResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
/**
|
|
6
6
|
* Submit response for async command submission.
|
|
@@ -8,26 +8,4 @@ const zod_1 = require("zod");
|
|
|
8
8
|
exports.SubmitResponseSchema = zod_1.z.object({
|
|
9
9
|
// Empty object as per OpenAPI spec
|
|
10
10
|
}).strict();
|
|
11
|
-
/**
|
|
12
|
-
* Submit and wait for transaction tree response.
|
|
13
|
-
*/
|
|
14
|
-
exports.JsSubmitAndWaitForTransactionTreeResponseSchema = zod_1.z.object({
|
|
15
|
-
/** The transaction tree that resulted from the submitted command. */
|
|
16
|
-
transactionTree: zod_1.z.object({
|
|
17
|
-
/** Unique update ID for the transaction. */
|
|
18
|
-
updateId: zod_1.z.string(),
|
|
19
|
-
/** Command ID associated with the transaction (optional). */
|
|
20
|
-
commandId: zod_1.z.string().optional(),
|
|
21
|
-
/** Workflow ID associated with the transaction (optional). */
|
|
22
|
-
workflowId: zod_1.z.string().optional(),
|
|
23
|
-
/** Effective time of the transaction (ISO 8601). */
|
|
24
|
-
effectiveAt: zod_1.z.string(),
|
|
25
|
-
/** Offset of the transaction in the ledger stream. */
|
|
26
|
-
offset: zod_1.z.number(),
|
|
27
|
-
/** Map of event node IDs to tree events. */
|
|
28
|
-
eventsById: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
|
|
29
|
-
/** Record time of the transaction. */
|
|
30
|
-
recordTime: zod_1.z.string(),
|
|
31
|
-
}),
|
|
32
|
-
});
|
|
33
11
|
//# sourceMappingURL=command-responses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-responses.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/api/command-responses.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;AAC3C,mCAAmC;CACpC,CAAC,CAAC,MAAM,EAAE,CAAC
|
|
1
|
+
{"version":3,"file":"command-responses.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/api/command-responses.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;AAC3C,mCAAmC;CACpC,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairmint/canton-node-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.78",
|
|
4
4
|
"description": "Canton Node SDK",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"types": "build/src/index.d.ts",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"homepage": "https://sdk.canton.fairmint.com/",
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/jest": "30.0.0",
|
|
57
|
-
"@types/node": "24.
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
59
|
-
"@typescript-eslint/parser": "8.
|
|
57
|
+
"@types/node": "24.3.0",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "8.40.0",
|
|
59
|
+
"@typescript-eslint/parser": "8.40.0",
|
|
60
60
|
"eslint": "9.33.0",
|
|
61
61
|
"eslint-config-prettier": "10.1.8",
|
|
62
62
|
"eslint-plugin-import": "2.32.0",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"npm-package-json-lint": "9.0.0",
|
|
68
68
|
"prettier": "3.6.2",
|
|
69
69
|
"ts-jest": "29.4.1",
|
|
70
|
-
"tsx": "4.20.
|
|
71
|
-
"typescript": "5.
|
|
70
|
+
"tsx": "4.20.4",
|
|
71
|
+
"typescript": "5.9.2"
|
|
72
72
|
},
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=18.0.0"
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"axios": "1.11.0",
|
|
78
78
|
"dotenv": "17.2.1",
|
|
79
|
-
"glob": "^
|
|
79
|
+
"glob": "^11.0.3",
|
|
80
80
|
"openapi-fetch": "^0.14.0",
|
|
81
|
-
"openapi-typescript": "
|
|
81
|
+
"openapi-typescript": "7.9.1",
|
|
82
82
|
"zod": "4.0.17"
|
|
83
83
|
}
|
|
84
84
|
}
|