@fairmint/canton-node-sdk 0.0.265 → 0.0.266
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/LedgerJsonApiClient.generated.d.ts +1 -19
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.js +0 -12
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.js.map +1 -1
- package/build/src/clients/ledger-json-api/index.d.ts +1 -0
- package/build/src/clients/ledger-json-api/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts +52 -52
- package/build/src/clients/ledger-json-api/operations/v2/commands/index.d.ts +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/index.js +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts +13 -0
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.js +29 -2
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts +52 -52
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/index.d.ts +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/index.js +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/index.d.ts +0 -4
- package/build/src/clients/ledger-json-api/operations/v2/updates/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/index.js +0 -4
- package/build/src/clients/ledger-json-api/operations/v2/updates/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/events.d.ts +0 -414
- package/build/src/clients/ledger-json-api/schemas/api/events.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/events.js +1 -111
- package/build/src/clients/ledger-json-api/schemas/api/events.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/packages.d.ts +1 -43
- package/build/src/clients/ledger-json-api/schemas/api/packages.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/packages.js +2 -18
- package/build/src/clients/ledger-json-api/schemas/api/packages.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/transactions.d.ts +0 -885
- package/build/src/clients/ledger-json-api/schemas/api/transactions.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/transactions.js +1 -61
- package/build/src/clients/ledger-json-api/schemas/api/transactions.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/updates.d.ts +926 -3650
- package/build/src/clients/ledger-json-api/schemas/api/updates.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/updates.js +13 -89
- package/build/src/clients/ledger-json-api/schemas/api/updates.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/commands.d.ts +0 -419
- package/build/src/clients/ledger-json-api/schemas/operations/commands.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/commands.js +2 -6
- package/build/src/clients/ledger-json-api/schemas/operations/commands.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.d.ts +0 -8
- package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.js +1 -12
- package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/packages.d.ts +0 -8
- package/build/src/clients/ledger-json-api/schemas/operations/packages.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/packages.js +1 -12
- package/build/src/clients/ledger-json-api/schemas/operations/packages.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/updates.d.ts +0 -281
- package/build/src/clients/ledger-json-api/schemas/operations/updates.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/updates.js +1 -31
- package/build/src/clients/ledger-json-api/schemas/operations/updates.js.map +1 -1
- package/build/src/utils/amulet/offers.d.ts +2 -2
- package/build/src/utils/amulet/offers.d.ts.map +1 -1
- package/build/src/utils/amulet/offers.js +2 -2
- package/build/src/utils/amulet/offers.js.map +1 -1
- package/build/src/utils/amulet/pre-approve-transfers.js +2 -2
- package/build/src/utils/amulet/pre-approve-transfers.js.map +1 -1
- package/build/src/utils/amulet/transfer-to-preapproved.d.ts +2 -2
- package/build/src/utils/amulet/transfer-to-preapproved.d.ts.map +1 -1
- package/build/src/utils/amulet/transfer-to-preapproved.js +1 -1
- package/build/src/utils/amulet/transfer-to-preapproved.js.map +1 -1
- package/build/src/utils/canton-response-utils.d.ts.map +1 -1
- package/build/src/utils/canton-response-utils.js +16 -1
- package/build/src/utils/canton-response-utils.js.map +1 -1
- package/build/src/utils/contracts/findCreatedEvent.d.ts +16 -26
- package/build/src/utils/contracts/findCreatedEvent.d.ts.map +1 -1
- package/build/src/utils/contracts/findCreatedEvent.js +28 -32
- package/build/src/utils/contracts/findCreatedEvent.js.map +1 -1
- package/build/src/utils/parsers/event-parser.d.ts +3 -2
- package/build/src/utils/parsers/event-parser.d.ts.map +1 -1
- package/build/src/utils/parsers/event-parser.js +17 -57
- package/build/src/utils/parsers/event-parser.js.map +1 -1
- package/build/src/utils/parsers/fee-parser.d.ts +20 -16
- package/build/src/utils/parsers/fee-parser.d.ts.map +1 -1
- package/build/src/utils/parsers/fee-parser.js +27 -48
- package/build/src/utils/parsers/fee-parser.js.map +1 -1
- package/build/src/utils/token-standard/v2/allocation.d.ts +4 -4
- package/build/src/utils/token-standard/v2/allocation.d.ts.map +1 -1
- package/build/src/utils/token-standard/v2/allocation.js +9 -9
- package/build/src/utils/token-standard/v2/allocation.js.map +1 -1
- package/build/src/utils/transactions/TransactionBatch.d.ts +5 -4
- package/build/src/utils/transactions/TransactionBatch.d.ts.map +1 -1
- package/build/src/utils/transactions/TransactionBatch.js +7 -6
- package/build/src/utils/transactions/TransactionBatch.js.map +1 -1
- package/build/src/utils/transactions/find-created-event.d.ts +8 -8
- package/build/src/utils/transactions/find-created-event.d.ts.map +1 -1
- package/build/src/utils/transactions/find-created-event.js +10 -16
- package/build/src/utils/transactions/find-created-event.js.map +1 -1
- package/package.json +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.d.ts +0 -512
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.js +0 -26
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.js.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.d.ts +0 -36
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.js +0 -39
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.js.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.d.ts +0 -139
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.js +0 -14
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.js.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.d.ts +0 -139
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.js +0 -14
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.js.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.d.ts +0 -37
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.js +0 -46
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.js.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.d.ts +0 -37
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.js +0 -46
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyDxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA0B,CAAC;AAE/D,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;iBAG9C,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;iBAWlC,CAAC;AAGH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AACxG,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AAC1G,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CompletionsParamsSchema = exports.AsyncSubmitReassignmentParamsSchema = exports.AsyncSubmitParamsSchema = exports.
|
|
3
|
+
exports.CompletionsParamsSchema = exports.AsyncSubmitReassignmentParamsSchema = exports.AsyncSubmitParamsSchema = exports.SubmitAndWaitForReassignmentParamsSchema = exports.SubmitAndWaitForTransactionParamsSchema = exports.SubmitAndWaitParamsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const commands_1 = require("../api/commands");
|
|
6
6
|
const reassignment_1 = require("../api/reassignment");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
8
|
const base_1 = require("./base");
|
|
9
9
|
const updates_1 = require("./updates");
|
|
10
|
-
/**
|
|
11
|
-
* Shared fields for all command submission schemas. These are common across submit-and-wait, async submit, and
|
|
12
|
-
* transaction tree variants.
|
|
13
|
-
*/
|
|
10
|
+
/** Shared fields for all command submission schemas. These are common across submit-and-wait and async submit. */
|
|
14
11
|
const BaseCommandParamsSchema = zod_1.z.object({
|
|
15
12
|
/** Commands to submit. */
|
|
16
13
|
commands: zod_1.z.array(commands_1.CompositeCommandSchema),
|
|
@@ -69,7 +66,6 @@ exports.SubmitAndWaitForReassignmentParamsSchema = zod_1.z.object({
|
|
|
69
66
|
/** Event format. */
|
|
70
67
|
eventFormat: updates_1.OperationEventFormatSchema.optional(),
|
|
71
68
|
});
|
|
72
|
-
exports.SubmitAndWaitForTransactionTreeParamsSchema = BaseCommandParamsSchema;
|
|
73
69
|
exports.AsyncSubmitParamsSchema = BaseCommandParamsSchema;
|
|
74
70
|
exports.AsyncSubmitReassignmentParamsSchema = zod_1.z.object({
|
|
75
71
|
/** Reassignment commands to submit asynchronously. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/commands.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAA6G;AAC7G,sDAAgE;AAChE,sCAAkG;AAClG,iCAA8C;AAC9C,uCAAgF;AAEhF
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/commands.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;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AQ,EAAE;IAClD,4CAA4C;IAC5C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzC,qDAAqD;IACrD,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACxD,CAAC,CAAC"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
/** Parameters for interactive submission get preferred package version. */
|
|
3
|
-
export declare const InteractiveSubmissionGetPreferredPackageVersionParamsSchema: z.ZodObject<{
|
|
4
|
-
parties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5
|
-
packageName: z.ZodString;
|
|
6
|
-
vettingValidAt: z.ZodOptional<z.ZodISODateTime>;
|
|
7
|
-
synchronizerId: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, z.core.$strict>;
|
|
9
2
|
/** Parameters for interactive submission get preferred packages. */
|
|
10
3
|
export declare const InteractiveSubmissionGetPreferredPackagesParamsSchema: z.ZodObject<{
|
|
11
4
|
packageVettingRequirements: z.ZodArray<z.ZodObject<{
|
|
@@ -15,6 +8,5 @@ export declare const InteractiveSubmissionGetPreferredPackagesParamsSchema: z.Zo
|
|
|
15
8
|
synchronizerId: z.ZodOptional<z.ZodString>;
|
|
16
9
|
vettingValidAt: z.ZodOptional<z.ZodISODateTime>;
|
|
17
10
|
}, z.core.$strict>;
|
|
18
|
-
export type InteractiveSubmissionGetPreferredPackageVersionParams = z.infer<typeof InteractiveSubmissionGetPreferredPackageVersionParamsSchema>;
|
|
19
11
|
export type InteractiveSubmissionGetPreferredPackagesParams = z.infer<typeof InteractiveSubmissionGetPreferredPackagesParamsSchema>;
|
|
20
12
|
//# sourceMappingURL=interactive-submission.d.ts.map
|
package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactive-submission.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/interactive-submission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,
|
|
1
|
+
{"version":3,"file":"interactive-submission.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/interactive-submission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,oEAAoE;AACpE,eAAO,MAAM,qDAAqD;;;;;;;kBAgBhE,CAAC;AAGH,MAAM,MAAM,+CAA+C,GAAG,CAAC,CAAC,KAAK,CACnE,OAAO,qDAAqD,CAC7D,CAAC"}
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InteractiveSubmissionGetPreferredPackagesParamsSchema =
|
|
3
|
+
exports.InteractiveSubmissionGetPreferredPackagesParamsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const wire_1 = require("../wire");
|
|
6
|
-
/** Parameters for interactive submission get preferred package version. */
|
|
7
|
-
exports.InteractiveSubmissionGetPreferredPackageVersionParamsSchema = zod_1.z.strictObject({
|
|
8
|
-
/** Parties whose vetting state should be considered (optional). */
|
|
9
|
-
parties: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
10
|
-
/** Package name for which to resolve the preferred package. */
|
|
11
|
-
packageName: zod_1.z.string().min(1),
|
|
12
|
-
/** Vetting valid at timestamp (optional). */
|
|
13
|
-
vettingValidAt: wire_1.LedgerRfc3339TimestampSchema.optional(),
|
|
14
|
-
/** Synchronizer ID (optional). */
|
|
15
|
-
synchronizerId: zod_1.z.string().min(1).optional(),
|
|
16
|
-
});
|
|
17
6
|
/** Parameters for interactive submission get preferred packages. */
|
|
18
7
|
exports.InteractiveSubmissionGetPreferredPackagesParamsSchema = zod_1.z.strictObject({
|
|
19
8
|
/** Package vetting requirements. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactive-submission.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/interactive-submission.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kCAAuD;AAEvD,
|
|
1
|
+
{"version":3,"file":"interactive-submission.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/interactive-submission.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kCAAuD;AAEvD,oEAAoE;AACvD,QAAA,qDAAqD,GAAG,OAAC,CAAC,YAAY,CAAC;IAClF,oCAAoC;IACpC,0BAA0B,EAAE,OAAC;SAC1B,KAAK,CACJ,OAAC,CAAC,YAAY,CAAC;QACb,wDAAwD;QACxD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAC1C,+DAA+D;QAC/D,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAC/B,CAAC,CACH;SACA,GAAG,CAAC,CAAC,CAAC;IACT,kCAAkC;IAClC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5C,6CAA6C;IAC7C,cAAc,EAAE,mCAA4B,CAAC,QAAQ,EAAE;CACxD,CAAC,CAAC"}
|
|
@@ -14,15 +14,7 @@ export declare const GetPreferredPackagesParamsSchema: z.ZodObject<{
|
|
|
14
14
|
synchronizerId: z.ZodOptional<z.ZodString>;
|
|
15
15
|
vettingValidAt: z.ZodOptional<z.ZodString>;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
|
-
/** Schema for get preferred package version parameters. */
|
|
18
|
-
export declare const GetPreferredPackageVersionParamsSchema: z.ZodObject<{
|
|
19
|
-
packageName: z.ZodString;
|
|
20
|
-
parties: z.ZodArray<z.ZodString>;
|
|
21
|
-
synchronizerId: z.ZodOptional<z.ZodString>;
|
|
22
|
-
vettingValidAt: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
17
|
export type ListPackagesParams = z.infer<typeof ListPackagesParamsSchema>;
|
|
25
18
|
export type GetPackageStatusParams = z.infer<typeof GetPackageStatusParamsSchema>;
|
|
26
19
|
export type GetPreferredPackagesParams = z.infer<typeof GetPreferredPackagesParamsSchema>;
|
|
27
|
-
export type GetPreferredPackageVersionParams = z.infer<typeof GetPreferredPackageVersionParamsSchema>;
|
|
28
20
|
//# sourceMappingURL=packages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packages.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/packages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,wFAAwF;AACxF,eAAO,MAAM,wBAAwB,WAAW,CAAC;AAEjD,gDAAgD;AAChD,eAAO,MAAM,4BAA4B;;iBAGvC,CAAC;AAEH,oDAAoD;AACpD,eAAO,MAAM,gCAAgC;;;;;;;iBAc3C,CAAC;
|
|
1
|
+
{"version":3,"file":"packages.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/packages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,wFAAwF;AACxF,eAAO,MAAM,wBAAwB,WAAW,CAAC;AAEjD,gDAAgD;AAChD,eAAO,MAAM,4BAA4B;;iBAGvC,CAAC;AAEH,oDAAoD;AACpD,eAAO,MAAM,gCAAgC;;;;;;;iBAc3C,CAAC;AAGH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GetPreferredPackagesParamsSchema = exports.GetPackageStatusParamsSchema = exports.ListPackagesParamsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const base_1 = require("./base");
|
|
6
6
|
/** Schema for list packages parameters. No parameters required for listing packages. */
|
|
@@ -24,15 +24,4 @@ exports.GetPreferredPackagesParamsSchema = zod_1.z.object({
|
|
|
24
24
|
/** Vetting valid at timestamp (optional). */
|
|
25
25
|
vettingValidAt: zod_1.z.string().optional(),
|
|
26
26
|
});
|
|
27
|
-
/** Schema for get preferred package version parameters. */
|
|
28
|
-
exports.GetPreferredPackageVersionParamsSchema = zod_1.z.object({
|
|
29
|
-
/** Package name to get preferred version for. */
|
|
30
|
-
packageName: zod_1.z.string(),
|
|
31
|
-
/** Parties whose vetting state should be considered. */
|
|
32
|
-
parties: zod_1.z.array(zod_1.z.string()),
|
|
33
|
-
/** Synchronizer ID (optional). */
|
|
34
|
-
synchronizerId: zod_1.z.string().optional(),
|
|
35
|
-
/** Vetting valid at timestamp (optional). */
|
|
36
|
-
vettingValidAt: zod_1.z.string().optional(),
|
|
37
|
-
});
|
|
38
27
|
//# sourceMappingURL=packages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packages.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/packages.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iCAA8C;AAE9C,wFAAwF;AAC3E,QAAA,wBAAwB,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;AAEjD,gDAAgD;AACnC,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,oCAAoC;IACpC,SAAS,EAAE,2BAAoB;CAChC,CAAC,CAAC;AAEH,oDAAoD;AACvC,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,oCAAoC;IACpC,0BAA0B,EAAE,OAAC,CAAC,KAAK,CACjC,OAAC,CAAC,MAAM,CAAC;QACP,wDAAwD;QACxD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;QAC5B,+DAA+D;QAC/D,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;KACxB,CAAC,CACH;IACD,kCAAkC;IAClC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,6CAA6C;IAC7C,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"packages.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/packages.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iCAA8C;AAE9C,wFAAwF;AAC3E,QAAA,wBAAwB,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;AAEjD,gDAAgD;AACnC,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,oCAAoC;IACpC,SAAS,EAAE,2BAAoB;CAChC,CAAC,CAAC;AAEH,oDAAoD;AACvC,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,oCAAoC;IACpC,0BAA0B,EAAE,OAAC,CAAC,KAAK,CACjC,OAAC,CAAC,MAAM,CAAC;QACP,wDAAwD;QACxD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;QAC5B,+DAA+D;QAC/D,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;KACxB,CAAC,CACH;IACD,kCAAkC;IAClC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,6CAA6C;IAC7C,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC"}
|
|
@@ -216,11 +216,6 @@ export declare const TransactionFormatSchema: z.ZodObject<{
|
|
|
216
216
|
transactionShape: z.ZodUnion<readonly [z.ZodLiteral<"TRANSACTION_SHAPE_ACS_DELTA">, z.ZodLiteral<"TRANSACTION_SHAPE_LEDGER_EFFECTS">]>;
|
|
217
217
|
}, z.core.$strip>;
|
|
218
218
|
export type TransactionFormat = z.infer<typeof TransactionFormatSchema>;
|
|
219
|
-
export declare const GetTransactionTreeByOffsetParamsSchema: z.ZodObject<{
|
|
220
|
-
offset: z.ZodString;
|
|
221
|
-
parties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
222
|
-
}, z.core.$strip>;
|
|
223
|
-
export type GetTransactionTreeByOffsetParams = z.infer<typeof GetTransactionTreeByOffsetParamsSchema>;
|
|
224
219
|
/** Shared update format schema for selecting which update types to include. */
|
|
225
220
|
export declare const UpdateFormatSchema: z.ZodObject<{
|
|
226
221
|
includeTransactions: z.ZodOptional<z.ZodObject<{
|
|
@@ -486,207 +481,6 @@ export declare const GetUpdatesParamsSchema: z.ZodObject<{
|
|
|
486
481
|
}, z.core.$strip>>;
|
|
487
482
|
}, z.core.$strip>;
|
|
488
483
|
}, z.core.$strip>;
|
|
489
|
-
/** Same as GetUpdatesParams but for tree structures. */
|
|
490
|
-
export declare const GetUpdateTreesParamsSchema: z.ZodObject<{
|
|
491
|
-
beginExclusive: z.ZodNumber;
|
|
492
|
-
endInclusive: z.ZodOptional<z.ZodNumber>;
|
|
493
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
494
|
-
streamIdleTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
495
|
-
updateFormat: z.ZodObject<{
|
|
496
|
-
includeTransactions: z.ZodOptional<z.ZodObject<{
|
|
497
|
-
eventFormat: z.ZodObject<{
|
|
498
|
-
filtersByParty: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
499
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
500
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
501
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
502
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
503
|
-
InterfaceFilter: z.ZodObject<{
|
|
504
|
-
value: z.ZodObject<{
|
|
505
|
-
interfaceId: z.ZodString;
|
|
506
|
-
includeInterfaceView: z.ZodBoolean;
|
|
507
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
508
|
-
}, z.core.$strip>;
|
|
509
|
-
}, z.core.$strip>;
|
|
510
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
511
|
-
TemplateFilter: z.ZodObject<{
|
|
512
|
-
value: z.ZodObject<{
|
|
513
|
-
templateId: z.ZodString;
|
|
514
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
515
|
-
}, z.core.$strip>;
|
|
516
|
-
}, z.core.$strip>;
|
|
517
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
518
|
-
WildcardFilter: z.ZodObject<{
|
|
519
|
-
value: z.ZodObject<{
|
|
520
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
521
|
-
}, z.core.$strip>;
|
|
522
|
-
}, z.core.$strip>;
|
|
523
|
-
}, z.core.$strip>]>;
|
|
524
|
-
}, z.core.$strip>>;
|
|
525
|
-
}, z.core.$strip>>;
|
|
526
|
-
filtersForAnyParty: z.ZodOptional<z.ZodObject<{
|
|
527
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
528
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
529
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
530
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
531
|
-
InterfaceFilter: z.ZodObject<{
|
|
532
|
-
value: z.ZodObject<{
|
|
533
|
-
interfaceId: z.ZodString;
|
|
534
|
-
includeInterfaceView: z.ZodBoolean;
|
|
535
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
536
|
-
}, z.core.$strip>;
|
|
537
|
-
}, z.core.$strip>;
|
|
538
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
539
|
-
TemplateFilter: z.ZodObject<{
|
|
540
|
-
value: z.ZodObject<{
|
|
541
|
-
templateId: z.ZodString;
|
|
542
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
543
|
-
}, z.core.$strip>;
|
|
544
|
-
}, z.core.$strip>;
|
|
545
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
546
|
-
WildcardFilter: z.ZodObject<{
|
|
547
|
-
value: z.ZodObject<{
|
|
548
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
549
|
-
}, z.core.$strip>;
|
|
550
|
-
}, z.core.$strip>;
|
|
551
|
-
}, z.core.$strip>]>;
|
|
552
|
-
}, z.core.$strip>>;
|
|
553
|
-
}, z.core.$strip>>;
|
|
554
|
-
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
555
|
-
}, z.core.$strip>;
|
|
556
|
-
transactionShape: z.ZodUnion<readonly [z.ZodLiteral<"TRANSACTION_SHAPE_ACS_DELTA">, z.ZodLiteral<"TRANSACTION_SHAPE_LEDGER_EFFECTS">]>;
|
|
557
|
-
}, z.core.$strip>>;
|
|
558
|
-
includeReassignments: z.ZodOptional<z.ZodObject<{
|
|
559
|
-
filtersByParty: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
560
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
561
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
562
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
563
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
564
|
-
InterfaceFilter: z.ZodObject<{
|
|
565
|
-
value: z.ZodObject<{
|
|
566
|
-
interfaceId: z.ZodString;
|
|
567
|
-
includeInterfaceView: z.ZodBoolean;
|
|
568
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
569
|
-
}, z.core.$strip>;
|
|
570
|
-
}, z.core.$strip>;
|
|
571
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
572
|
-
TemplateFilter: z.ZodObject<{
|
|
573
|
-
value: z.ZodObject<{
|
|
574
|
-
templateId: z.ZodString;
|
|
575
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
576
|
-
}, z.core.$strip>;
|
|
577
|
-
}, z.core.$strip>;
|
|
578
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
579
|
-
WildcardFilter: z.ZodObject<{
|
|
580
|
-
value: z.ZodObject<{
|
|
581
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
582
|
-
}, z.core.$strip>;
|
|
583
|
-
}, z.core.$strip>;
|
|
584
|
-
}, z.core.$strip>]>;
|
|
585
|
-
}, z.core.$strip>>;
|
|
586
|
-
}, z.core.$strip>>;
|
|
587
|
-
filtersForAnyParty: z.ZodOptional<z.ZodObject<{
|
|
588
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
589
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
590
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
591
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
592
|
-
InterfaceFilter: z.ZodObject<{
|
|
593
|
-
value: z.ZodObject<{
|
|
594
|
-
interfaceId: z.ZodString;
|
|
595
|
-
includeInterfaceView: z.ZodBoolean;
|
|
596
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
597
|
-
}, z.core.$strip>;
|
|
598
|
-
}, z.core.$strip>;
|
|
599
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
600
|
-
TemplateFilter: z.ZodObject<{
|
|
601
|
-
value: z.ZodObject<{
|
|
602
|
-
templateId: z.ZodString;
|
|
603
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
604
|
-
}, z.core.$strip>;
|
|
605
|
-
}, z.core.$strip>;
|
|
606
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
607
|
-
WildcardFilter: z.ZodObject<{
|
|
608
|
-
value: z.ZodObject<{
|
|
609
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
610
|
-
}, z.core.$strip>;
|
|
611
|
-
}, z.core.$strip>;
|
|
612
|
-
}, z.core.$strip>]>;
|
|
613
|
-
}, z.core.$strip>>;
|
|
614
|
-
}, z.core.$strip>>;
|
|
615
|
-
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
616
|
-
}, z.core.$strip>>;
|
|
617
|
-
includeTopologyEvents: z.ZodOptional<z.ZodObject<{
|
|
618
|
-
includeParticipantAuthorizationEvents: z.ZodOptional<z.ZodObject<{
|
|
619
|
-
parties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
620
|
-
}, z.core.$strip>>;
|
|
621
|
-
}, z.core.$strip>>;
|
|
622
|
-
}, z.core.$strip>;
|
|
623
|
-
}, z.core.$strip>;
|
|
624
|
-
/** Parameters for retrieving a specific transaction by its offset. */
|
|
625
|
-
export declare const GetTransactionByOffsetParamsSchema: z.ZodObject<{
|
|
626
|
-
offset: z.ZodNumber;
|
|
627
|
-
transactionFormat: z.ZodObject<{
|
|
628
|
-
eventFormat: z.ZodObject<{
|
|
629
|
-
filtersByParty: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
630
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
631
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
632
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
633
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
634
|
-
InterfaceFilter: z.ZodObject<{
|
|
635
|
-
value: z.ZodObject<{
|
|
636
|
-
interfaceId: z.ZodString;
|
|
637
|
-
includeInterfaceView: z.ZodBoolean;
|
|
638
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
639
|
-
}, z.core.$strip>;
|
|
640
|
-
}, z.core.$strip>;
|
|
641
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
642
|
-
TemplateFilter: z.ZodObject<{
|
|
643
|
-
value: z.ZodObject<{
|
|
644
|
-
templateId: z.ZodString;
|
|
645
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
646
|
-
}, z.core.$strip>;
|
|
647
|
-
}, z.core.$strip>;
|
|
648
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
649
|
-
WildcardFilter: z.ZodObject<{
|
|
650
|
-
value: z.ZodObject<{
|
|
651
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
652
|
-
}, z.core.$strip>;
|
|
653
|
-
}, z.core.$strip>;
|
|
654
|
-
}, z.core.$strip>]>;
|
|
655
|
-
}, z.core.$strip>>;
|
|
656
|
-
}, z.core.$strip>>;
|
|
657
|
-
filtersForAnyParty: z.ZodOptional<z.ZodObject<{
|
|
658
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
659
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
660
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
661
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
662
|
-
InterfaceFilter: z.ZodObject<{
|
|
663
|
-
value: z.ZodObject<{
|
|
664
|
-
interfaceId: z.ZodString;
|
|
665
|
-
includeInterfaceView: z.ZodBoolean;
|
|
666
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
667
|
-
}, z.core.$strip>;
|
|
668
|
-
}, z.core.$strip>;
|
|
669
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
670
|
-
TemplateFilter: z.ZodObject<{
|
|
671
|
-
value: z.ZodObject<{
|
|
672
|
-
templateId: z.ZodString;
|
|
673
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
674
|
-
}, z.core.$strip>;
|
|
675
|
-
}, z.core.$strip>;
|
|
676
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
677
|
-
WildcardFilter: z.ZodObject<{
|
|
678
|
-
value: z.ZodObject<{
|
|
679
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
680
|
-
}, z.core.$strip>;
|
|
681
|
-
}, z.core.$strip>;
|
|
682
|
-
}, z.core.$strip>]>;
|
|
683
|
-
}, z.core.$strip>>;
|
|
684
|
-
}, z.core.$strip>>;
|
|
685
|
-
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
686
|
-
}, z.core.$strip>;
|
|
687
|
-
transactionShape: z.ZodUnion<readonly [z.ZodLiteral<"TRANSACTION_SHAPE_ACS_DELTA">, z.ZodLiteral<"TRANSACTION_SHAPE_LEDGER_EFFECTS">]>;
|
|
688
|
-
}, z.core.$strip>;
|
|
689
|
-
}, z.core.$strip>;
|
|
690
484
|
/** Parameters for retrieving a specific update by its offset. */
|
|
691
485
|
export declare const GetUpdateByOffsetParamsSchema: z.ZodObject<{
|
|
692
486
|
offset: z.ZodNumber;
|
|
@@ -819,87 +613,12 @@ export declare const GetUpdateByOffsetParamsSchema: z.ZodObject<{
|
|
|
819
613
|
}, z.core.$strip>>;
|
|
820
614
|
}, z.core.$strip>;
|
|
821
615
|
}, z.core.$strip>;
|
|
822
|
-
/** Schema for get transaction by id parameters. Defines parameters for retrieving a specific transaction by its ID. */
|
|
823
|
-
export declare const GetTransactionByIdParamsSchema: z.ZodObject<{
|
|
824
|
-
updateId: z.ZodString;
|
|
825
|
-
transactionFormat: z.ZodObject<{
|
|
826
|
-
eventFormat: z.ZodObject<{
|
|
827
|
-
filtersByParty: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
828
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
829
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
830
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
831
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
832
|
-
InterfaceFilter: z.ZodObject<{
|
|
833
|
-
value: z.ZodObject<{
|
|
834
|
-
interfaceId: z.ZodString;
|
|
835
|
-
includeInterfaceView: z.ZodBoolean;
|
|
836
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
837
|
-
}, z.core.$strip>;
|
|
838
|
-
}, z.core.$strip>;
|
|
839
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
840
|
-
TemplateFilter: z.ZodObject<{
|
|
841
|
-
value: z.ZodObject<{
|
|
842
|
-
templateId: z.ZodString;
|
|
843
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
844
|
-
}, z.core.$strip>;
|
|
845
|
-
}, z.core.$strip>;
|
|
846
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
847
|
-
WildcardFilter: z.ZodObject<{
|
|
848
|
-
value: z.ZodObject<{
|
|
849
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
850
|
-
}, z.core.$strip>;
|
|
851
|
-
}, z.core.$strip>;
|
|
852
|
-
}, z.core.$strip>]>;
|
|
853
|
-
}, z.core.$strip>>;
|
|
854
|
-
}, z.core.$strip>>;
|
|
855
|
-
filtersForAnyParty: z.ZodOptional<z.ZodObject<{
|
|
856
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
857
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
858
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
859
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
860
|
-
InterfaceFilter: z.ZodObject<{
|
|
861
|
-
value: z.ZodObject<{
|
|
862
|
-
interfaceId: z.ZodString;
|
|
863
|
-
includeInterfaceView: z.ZodBoolean;
|
|
864
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
865
|
-
}, z.core.$strip>;
|
|
866
|
-
}, z.core.$strip>;
|
|
867
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
868
|
-
TemplateFilter: z.ZodObject<{
|
|
869
|
-
value: z.ZodObject<{
|
|
870
|
-
templateId: z.ZodString;
|
|
871
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
872
|
-
}, z.core.$strip>;
|
|
873
|
-
}, z.core.$strip>;
|
|
874
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
875
|
-
WildcardFilter: z.ZodObject<{
|
|
876
|
-
value: z.ZodObject<{
|
|
877
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
878
|
-
}, z.core.$strip>;
|
|
879
|
-
}, z.core.$strip>;
|
|
880
|
-
}, z.core.$strip>]>;
|
|
881
|
-
}, z.core.$strip>>;
|
|
882
|
-
}, z.core.$strip>>;
|
|
883
|
-
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
884
|
-
}, z.core.$strip>;
|
|
885
|
-
transactionShape: z.ZodUnion<readonly [z.ZodLiteral<"TRANSACTION_SHAPE_ACS_DELTA">, z.ZodLiteral<"TRANSACTION_SHAPE_LEDGER_EFFECTS">]>;
|
|
886
|
-
}, z.core.$strip>;
|
|
887
|
-
}, z.core.$strip>;
|
|
888
616
|
/** Schema for get update by id parameters. Defines parameters for retrieving a specific update by its ID. */
|
|
889
617
|
export declare const GetUpdateByIdParamsSchema: z.ZodObject<{
|
|
890
618
|
updateId: z.ZodString;
|
|
891
619
|
requestingParties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
892
620
|
}, z.core.$strip>;
|
|
893
|
-
/** Schema for get transaction tree by id parameters. Defines parameters for retrieving a transaction tree by its ID. */
|
|
894
|
-
export declare const GetTransactionTreeByIdParamsSchema: z.ZodObject<{
|
|
895
|
-
updateId: z.ZodString;
|
|
896
|
-
parties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
897
|
-
}, z.core.$strip>;
|
|
898
621
|
export type GetUpdatesParams = z.infer<typeof GetUpdatesParamsSchema>;
|
|
899
|
-
export type GetUpdateTreesParams = z.infer<typeof GetUpdateTreesParamsSchema>;
|
|
900
|
-
export type GetTransactionByOffsetParams = z.infer<typeof GetTransactionByOffsetParamsSchema>;
|
|
901
622
|
export type GetUpdateByOffsetParams = z.infer<typeof GetUpdateByOffsetParamsSchema>;
|
|
902
|
-
export type GetTransactionByIdParams = z.infer<typeof GetTransactionByIdParamsSchema>;
|
|
903
623
|
export type GetUpdateByIdParams = z.infer<typeof GetUpdateByIdParamsSchema>;
|
|
904
|
-
export type GetTransactionTreeByIdParams = z.infer<typeof GetTransactionTreeByIdParamsSchema>;
|
|
905
624
|
//# sourceMappingURL=updates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updates.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/updates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"updates.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/updates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;mBAiBjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,8GAA8G;AAC9G,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAIxB,CAAC;AAEd,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,G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AC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GetUpdateByIdParamsSchema = exports.GetUpdateByOffsetParamsSchema = exports.GetUpdatesParamsSchema = exports.UpdateFormatSchema = exports.TransactionFormatSchema = exports.TransactionShapeSchema = exports.OperationEventFormatSchema = exports.FiltersForAnyPartySchema = exports.CumulativeFilterSchema = exports.IdentifierFilterSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const base_1 = require("./base");
|
|
6
5
|
// Filter content schemas matching AsyncAPI spec
|
|
7
6
|
const InterfaceFilterContentSchema = zod_1.z.object({
|
|
8
7
|
interfaceId: zod_1.z.string(),
|
|
@@ -79,12 +78,6 @@ exports.TransactionFormatSchema = zod_1.z.object({
|
|
|
79
78
|
eventFormat: exports.OperationEventFormatSchema,
|
|
80
79
|
transactionShape: exports.TransactionShapeSchema,
|
|
81
80
|
});
|
|
82
|
-
exports.GetTransactionTreeByOffsetParamsSchema = zod_1.z.object({
|
|
83
|
-
/** Offset in the ledger to fetch the transaction tree from. */
|
|
84
|
-
offset: base_1.NonEmptyStringSchema,
|
|
85
|
-
/** Parties to include in the query (optional). */
|
|
86
|
-
parties: zod_1.z.array(zod_1.z.string()).optional(),
|
|
87
|
-
});
|
|
88
81
|
/** Shared update format schema for selecting which update types to include. */
|
|
89
82
|
exports.UpdateFormatSchema = zod_1.z.object({
|
|
90
83
|
includeTransactions: exports.TransactionFormatSchema.optional(),
|
|
@@ -112,15 +105,6 @@ exports.GetUpdatesParamsSchema = zod_1.z.object({
|
|
|
112
105
|
/** Update format for the request. */
|
|
113
106
|
updateFormat: exports.UpdateFormatSchema,
|
|
114
107
|
});
|
|
115
|
-
/** Same as GetUpdatesParams but for tree structures. */
|
|
116
|
-
exports.GetUpdateTreesParamsSchema = exports.GetUpdatesParamsSchema;
|
|
117
|
-
/** Parameters for retrieving a specific transaction by its offset. */
|
|
118
|
-
exports.GetTransactionByOffsetParamsSchema = zod_1.z.object({
|
|
119
|
-
/** Offset of the transaction being looked up. */
|
|
120
|
-
offset: zod_1.z.number(),
|
|
121
|
-
/** Transaction format for the request. */
|
|
122
|
-
transactionFormat: exports.TransactionFormatSchema,
|
|
123
|
-
});
|
|
124
108
|
/** Parameters for retrieving a specific update by its offset. */
|
|
125
109
|
exports.GetUpdateByOffsetParamsSchema = zod_1.z.object({
|
|
126
110
|
/** Offset of the update being looked up. */
|
|
@@ -128,13 +112,6 @@ exports.GetUpdateByOffsetParamsSchema = zod_1.z.object({
|
|
|
128
112
|
/** Update format for the request. */
|
|
129
113
|
updateFormat: exports.UpdateFormatSchema,
|
|
130
114
|
});
|
|
131
|
-
/** Schema for get transaction by id parameters. Defines parameters for retrieving a specific transaction by its ID. */
|
|
132
|
-
exports.GetTransactionByIdParamsSchema = zod_1.z.object({
|
|
133
|
-
/** ID of the transaction to fetch. */
|
|
134
|
-
updateId: zod_1.z.string(),
|
|
135
|
-
/** Transaction format for the request. */
|
|
136
|
-
transactionFormat: exports.TransactionFormatSchema,
|
|
137
|
-
});
|
|
138
115
|
/** Schema for get update by id parameters. Defines parameters for retrieving a specific update by its ID. */
|
|
139
116
|
exports.GetUpdateByIdParamsSchema = zod_1.z.object({
|
|
140
117
|
/** ID of the update to fetch. */
|
|
@@ -142,11 +119,4 @@ exports.GetUpdateByIdParamsSchema = zod_1.z.object({
|
|
|
142
119
|
/** Parties requesting the update (optional). */
|
|
143
120
|
requestingParties: zod_1.z.array(zod_1.z.string()).optional(),
|
|
144
121
|
});
|
|
145
|
-
/** Schema for get transaction tree by id parameters. Defines parameters for retrieving a transaction tree by its ID. */
|
|
146
|
-
exports.GetTransactionTreeByIdParamsSchema = zod_1.z.object({
|
|
147
|
-
/** Update ID to fetch the transaction tree for. */
|
|
148
|
-
updateId: base_1.NonEmptyStringSchema,
|
|
149
|
-
/** Parties to include in the query (optional). */
|
|
150
|
-
parties: zod_1.z.array(zod_1.z.string()).optional(),
|
|
151
|
-
});
|
|
152
122
|
//# sourceMappingURL=updates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updates.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/updates.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"updates.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/operations/updates.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,gDAAgD;AAChD,MAAM,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,oBAAoB,EAAE,OAAC,CAAC,OAAO,EAAE;IACjC,uBAAuB,EAAE,OAAC,CAAC,OAAO,EAAE;CACrC,CAAC,CAAC;AAEH,MAAM,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,uBAAuB,EAAE,OAAC,CAAC,OAAO,EAAE;CACrC,CAAC,CAAC;AAEH,MAAM,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,uBAAuB,EAAE,OAAC,CAAC,OAAO,EAAE;CACrC,CAAC,CAAC;AAEH,wEAAwE;AAC3D,QAAA,sBAAsB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC5C,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;IACjC,OAAC,CAAC,MAAM,CAAC;QACP,eAAe,EAAE,OAAC,CAAC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,EAAE;IACpB,gDAAgD;IAChD,iBAAiB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type LedgerJsonApiClient } from '../../clients/ledger-json-api';
|
|
2
|
-
import { type
|
|
2
|
+
import { type SubmitAndWaitForTransactionResponse } from '../../clients/ledger-json-api/operations';
|
|
3
3
|
export interface CreateTransferOfferParams {
|
|
4
4
|
/** Ledger client for submitting commands. */
|
|
5
5
|
readonly ledgerClient: LedgerJsonApiClient;
|
|
@@ -33,5 +33,5 @@ export declare function createTransferOffer(params: CreateTransferOfferParams):
|
|
|
33
33
|
* @param params - Parameters for accepting the transfer offer
|
|
34
34
|
* @returns Promise resolving when the offer is accepted
|
|
35
35
|
*/
|
|
36
|
-
export declare function acceptTransferOffer(params: AcceptTransferOfferParams): Promise<
|
|
36
|
+
export declare function acceptTransferOffer(params: AcceptTransferOfferParams): Promise<SubmitAndWaitForTransactionResponse>;
|
|
37
37
|
//# sourceMappingURL=offers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../../../src/utils/amulet/offers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../../../src/utils/amulet/offers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAKpG,MAAM,WAAW,yBAAyB;IACxC,6CAA6C;IAC7C,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAC3C,yBAAyB;IACzB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,0BAA0B;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,oCAAoC;IACpC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,8DAA8D;IAC9D,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,yBAAyB;IACxC,6CAA6C;IAC7C,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAC3C,4CAA4C;IAC5C,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;IACzC,oCAAoC;IACpC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;CACnC;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC,CA2C5F;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,yBAAyB,GAChC,OAAO,CAAC,mCAAmC,CAAC,CAiB9C"}
|
|
@@ -19,7 +19,7 @@ async function createTransferOffer(params) {
|
|
|
19
19
|
const validatorParty = ledgerClient.getPartyId();
|
|
20
20
|
const trackingId = `transfer-offer-${Date.now()}`;
|
|
21
21
|
const defaultExpiresAt = new Date(Date.now() + 24 * 60 * 60 * 1000);
|
|
22
|
-
const transferOfferCid = await ledgerClient.
|
|
22
|
+
const transferOfferCid = await ledgerClient.submitAndWaitForTransaction({
|
|
23
23
|
commands: [
|
|
24
24
|
{
|
|
25
25
|
ExerciseCommand: {
|
|
@@ -58,7 +58,7 @@ async function createTransferOffer(params) {
|
|
|
58
58
|
*/
|
|
59
59
|
async function acceptTransferOffer(params) {
|
|
60
60
|
const { ledgerClient, transferOfferContractId, acceptingPartyId } = params;
|
|
61
|
-
return ledgerClient.
|
|
61
|
+
return ledgerClient.submitAndWaitForTransaction({
|
|
62
62
|
commands: [
|
|
63
63
|
{
|
|
64
64
|
ExerciseCommand: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offers.js","sourceRoot":"","sources":["../../../../src/utils/amulet/offers.ts"],"names":[],"mappings":";;;;AAEA,2DAAwD;AACxD,8CAAuE;AACvE,wCAA2E;AAwB3E;;;;;GAKG;AACI,KAAK,8BAA8B,MAAiC;IACzE,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAEjF,8DAA8D;IAC9D,MAAM,OAAO,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC;IAC1C,MAAM,mBAAmB,GAAG,qBAAS,CAAC,WAAW,EAAE,CAAC,sCAAsC,CAAC,OAAO,CAAC,CAAC;IAEpG,MAAM,cAAc,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC;IACjD,MAAM,UAAU,GAAG,kBAAkB,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;IAClD,MAAM,gBAAgB,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;IAEpE,MAAM,gBAAgB,GAAG,MAAM,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"offers.js","sourceRoot":"","sources":["../../../../src/utils/amulet/offers.ts"],"names":[],"mappings":";;;;AAEA,2DAAwD;AACxD,8CAAuE;AACvE,wCAA2E;AAwB3E;;;;;GAKG;AACI,KAAK,8BAA8B,MAAiC;IACzE,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAEjF,8DAA8D;IAC9D,MAAM,OAAO,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC;IAC1C,MAAM,mBAAmB,GAAG,qBAAS,CAAC,WAAW,EAAE,CAAC,sCAAsC,CAAC,OAAO,CAAC,CAAC;IAEpG,MAAM,cAAc,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC;IACjD,MAAM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