@fairmint/canton-node-sdk 0.0.31 → 0.0.33
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.d.ts +95 -52
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.js +47 -86
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/authenticated-user/get.d.ts +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.d.ts +17 -24
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.js +8 -18
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts +20 -41
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.js +5 -52
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/completions.d.ts +29 -74
- package/build/src/clients/ledger-json-api/operations/v2/commands/completions.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/completions.js +12 -22
- package/build/src/clients/ledger-json-api/operations/v2/commands/completions.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.d.ts +8 -8
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.d.ts +20 -49
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.js +5 -52
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts +10 -115
- 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 +5 -56
- 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 +21 -174
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.js +5 -52
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/allocate-party.d.ts +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/create-user.d.ts +2 -2
- package/build/src/clients/ledger-json-api/operations/v2/{packages → interactive-submission}/get-preferred-package-version.d.ts +8 -11
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.js +36 -0
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.js.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/{packages → interactive-submission}/get-preferred-packages.d.ts +11 -11
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-packages.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-packages.js +32 -0
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-packages.js.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/index.d.ts +2 -0
- 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 +2 -0
- 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/packages/get-package-status.d.ts +11 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/get-package-status.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/get-package-status.js +8 -3
- package/build/src/clients/ledger-json-api/operations/v2/packages/get-package-status.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/get.d.ts +2 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/get.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/get.js +2 -2
- package/build/src/clients/ledger-json-api/operations/v2/packages/get.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/index.d.ts +0 -2
- package/build/src/clients/ledger-json-api/operations/v2/packages/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/index.js +0 -2
- package/build/src/clients/ledger-json-api/operations/v2/packages/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/post.d.ts +15 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/post.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/post.js +14 -4
- package/build/src/clients/ledger-json-api/operations/v2/packages/post.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-participant-id.d.ts +8 -10
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-participant-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-participant-id.js +5 -11
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-participant-id.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-party-details.d.ts +7 -12
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-party-details.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-party-details.js +8 -5
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-party-details.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get.d.ts +19 -19
- package/build/src/clients/ledger-json-api/operations/v2/parties/get.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get.js +12 -17
- package/build/src/clients/ledger-json-api/operations/v2/parties/get.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/index.d.ts +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/index.js +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/post.d.ts +43 -11
- package/build/src/clients/ledger-json-api/operations/v2/parties/post.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/post.js +28 -4
- package/build/src/clients/ledger-json-api/operations/v2/parties/post.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.d.ts +11 -44
- package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.js +7 -21
- package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.d.ts +13 -93
- package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.js +5 -61
- package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-connected-synchronizers.d.ts +9 -19
- package/build/src/clients/ledger-json-api/operations/v2/state/get-connected-synchronizers.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-connected-synchronizers.js +5 -22
- package/build/src/clients/ledger-json-api/operations/v2/state/get-connected-synchronizers.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.d.ts +8 -2
- package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.js +5 -3
- package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-ledger-end.d.ts +8 -10
- package/build/src/clients/ledger-json-api/operations/v2/state/get-ledger-end.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-ledger-end.js +5 -11
- package/build/src/clients/ledger-json-api/operations/v2/state/get-ledger-end.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-flats.d.ts +26 -26
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.d.ts +10 -143
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.js +5 -31
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.d.ts +10 -143
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.js +5 -30
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.d.ts +19 -73
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.js +13 -30
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.d.ts +23 -66
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.js +17 -8
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-trees.d.ts +14 -14
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.d.ts +9 -148
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.js +5 -39
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.d.ts +9 -261
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.js +5 -33
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/create-user.d.ts +10 -58
- package/build/src/clients/ledger-json-api/operations/v2/users/create-user.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/create-user.js +5 -30
- package/build/src/clients/ledger-json-api/operations/v2/users/create-user.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/delete-user.d.ts +15 -10
- package/build/src/clients/ledger-json-api/operations/v2/users/delete-user.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/delete-user.js +7 -11
- package/build/src/clients/ledger-json-api/operations/v2/users/delete-user.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/get-user.d.ts +18 -11
- package/build/src/clients/ledger-json-api/operations/v2/users/get-user.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/get-user.js +8 -3
- package/build/src/clients/ledger-json-api/operations/v2/users/get-user.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.d.ts +11 -58
- package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.js +4 -26
- package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/list-user-rights.d.ts +19 -28
- package/build/src/clients/ledger-json-api/operations/v2/users/list-user-rights.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/list-user-rights.js +17 -12
- package/build/src/clients/ledger-json-api/operations/v2/users/list-user-rights.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/list-users.d.ts +18 -19
- package/build/src/clients/ledger-json-api/operations/v2/users/list-users.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/list-users.js +9 -12
- package/build/src/clients/ledger-json-api/operations/v2/users/list-users.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.d.ts +11 -57
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.js +4 -25
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.d.ts +10 -18
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.js +4 -19
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user.d.ts +11 -48
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user.js +4 -27
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/commands.d.ts +12 -12
- package/build/src/clients/ledger-json-api/schemas/api/completions.d.ts +78 -78
- package/build/src/clients/ledger-json-api/schemas/api/event-details.d.ts +20 -20
- package/build/src/clients/ledger-json-api/schemas/api/events.d.ts +138 -138
- package/build/src/clients/ledger-json-api/schemas/api/interactive-submission.d.ts +10 -10
- package/build/src/clients/ledger-json-api/schemas/api/packages.d.ts +16 -16
- package/build/src/clients/ledger-json-api/schemas/api/reassignment.d.ts +184 -184
- package/build/src/clients/ledger-json-api/schemas/api/state.d.ts +276 -276
- package/build/src/clients/ledger-json-api/schemas/api/transactions.d.ts +284 -284
- package/build/src/clients/ledger-json-api/schemas/api/updates.d.ts +1716 -1716
- package/build/src/clients/ledger-json-api/schemas/api/users.d.ts +66 -66
- package/build/src/clients/ledger-json-api/schemas/common.d.ts +4 -4
- package/build/src/clients/ledger-json-api/schemas/operations/commands.d.ts +26 -26
- package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.d.ts +67 -6
- 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 +30 -1
- package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/parties.d.ts +12 -12
- package/build/src/clients/ledger-json-api/schemas/operations/state.d.ts +2 -2
- package/build/src/clients/ledger-json-api/schemas/operations/updates.d.ts +364 -364
- package/build/src/clients/ledger-json-api/schemas/operations/users.d.ts +17 -17
- package/package.json +2 -2
- package/build/src/clients/ledger-json-api/operations/v2/packages/get-preferred-package-version.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/get-preferred-package-version.js +0 -37
- package/build/src/clients/ledger-json-api/operations/v2/packages/get-preferred-package-version.js.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/get-preferred-packages.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/get-preferred-packages.js +0 -35
- package/build/src/clients/ledger-json-api/operations/v2/packages/get-preferred-packages.js.map +0 -1
|
@@ -1,124 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* commands: [createCommand, exerciseCommand],
|
|
7
|
-
* commandId: 'unique-command-id',
|
|
8
|
-
* actAs: ['party1', 'party2'],
|
|
9
|
-
* userId: 'user123'
|
|
10
|
-
* });
|
|
11
|
-
* ```
|
|
12
|
-
* @param commands - Array of commands to submit
|
|
13
|
-
* @param commandId - Unique identifier for the command
|
|
14
|
-
* @param actAs - Parties on whose behalf the command should be executed
|
|
15
|
-
* @param userId - User ID submitting the command (optional if using authentication)
|
|
16
|
-
* @param readAs - Parties to read as (optional)
|
|
17
|
-
* @param workflowId - Workflow ID (optional)
|
|
18
|
-
* @param deduplicationPeriod - Deduplication period (optional)
|
|
19
|
-
* @param minLedgerTimeAbs - Minimum ledger time absolute (optional)
|
|
20
|
-
* @param minLedgerTimeRel - Minimum ledger time relative (optional)
|
|
21
|
-
* @param submissionId - Submission ID (optional)
|
|
22
|
-
* @param disclosedContracts - Disclosed contracts (optional)
|
|
23
|
-
* @param synchronizerId - Synchronizer ID (optional)
|
|
24
|
-
* @param packageIdSelectionPreference - Package ID selection preference (optional)
|
|
25
|
-
* @param prefetchContractKeys - Prefetch contract keys (optional)
|
|
26
|
-
* @param transactionFormat - Transaction format (optional)
|
|
27
|
-
*/
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { paths } from '../../../../../generated/openapi-types';
|
|
3
|
+
declare const endpoint: "/v2/commands/submit-and-wait-for-transaction";
|
|
4
|
+
export type SubmitAndWaitForTransactionParams = paths[typeof endpoint]['post']['requestBody']['content']['application/json'];
|
|
5
|
+
export type SubmitAndWaitForTransactionResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
|
|
28
6
|
export declare const SubmitAndWaitForTransaction: {
|
|
29
7
|
new (client: import("../../../../../core").BaseClient): {
|
|
30
8
|
execute(params: {
|
|
31
|
-
commands:
|
|
32
|
-
|
|
33
|
-
actAs: string[];
|
|
34
|
-
userId?: string | undefined;
|
|
35
|
-
readAs?: string[] | undefined;
|
|
36
|
-
transactionFormat?: any;
|
|
37
|
-
submissionId?: string | undefined;
|
|
38
|
-
synchronizerId?: string | undefined;
|
|
39
|
-
workflowId?: string | undefined;
|
|
40
|
-
deduplicationPeriod?: any;
|
|
41
|
-
minLedgerTimeAbs?: string | undefined;
|
|
42
|
-
minLedgerTimeRel?: any;
|
|
43
|
-
disclosedContracts?: any[] | undefined;
|
|
44
|
-
packageIdSelectionPreference?: string[] | undefined;
|
|
45
|
-
prefetchContractKeys?: any[] | undefined;
|
|
9
|
+
commands: import("../../../../../generated/openapi-types").components["schemas"]["JsCommands"];
|
|
10
|
+
transactionFormat?: import("../../../../../generated/openapi-types").components["schemas"]["TransactionFormat"];
|
|
46
11
|
}): Promise<{
|
|
47
|
-
transaction:
|
|
48
|
-
offset: number;
|
|
49
|
-
updateId: string;
|
|
50
|
-
recordTime: string;
|
|
51
|
-
events: {
|
|
52
|
-
synchronizerId: string;
|
|
53
|
-
kind: {
|
|
54
|
-
JsCreated: {
|
|
55
|
-
contractId: string;
|
|
56
|
-
templateId: string;
|
|
57
|
-
offset: number;
|
|
58
|
-
packageName: string;
|
|
59
|
-
contractKey: string | null;
|
|
60
|
-
createdEventBlob: string;
|
|
61
|
-
nodeId: number;
|
|
62
|
-
createArgument: Record<string, string | number | boolean | any[] | Record<string, any> | null>;
|
|
63
|
-
interfaceViews: string[];
|
|
64
|
-
witnessParties: string[];
|
|
65
|
-
signatories: string[];
|
|
66
|
-
observers: string[];
|
|
67
|
-
createdAt: string;
|
|
68
|
-
implementedInterfaces?: string[] | undefined;
|
|
69
|
-
};
|
|
70
|
-
} | {
|
|
71
|
-
JsArchived: {
|
|
72
|
-
contractId: string;
|
|
73
|
-
templateId: string;
|
|
74
|
-
offset: number;
|
|
75
|
-
packageName: string;
|
|
76
|
-
nodeId: number;
|
|
77
|
-
witnessParties: string[];
|
|
78
|
-
implementedInterfaces?: string[] | undefined;
|
|
79
|
-
};
|
|
80
|
-
} | {
|
|
81
|
-
JsAssigned: {
|
|
82
|
-
contractId: string;
|
|
83
|
-
templateId: string;
|
|
84
|
-
offset: number;
|
|
85
|
-
packageName: string;
|
|
86
|
-
submitter: string;
|
|
87
|
-
reassignmentId: string;
|
|
88
|
-
source: string;
|
|
89
|
-
target: string;
|
|
90
|
-
nodeId: number;
|
|
91
|
-
reassignmentCounter: number;
|
|
92
|
-
};
|
|
93
|
-
} | {
|
|
94
|
-
JsUnassigned: {
|
|
95
|
-
contractId: string;
|
|
96
|
-
templateId: string;
|
|
97
|
-
offset: number;
|
|
98
|
-
packageName: string;
|
|
99
|
-
submitter: string;
|
|
100
|
-
reassignmentId: string;
|
|
101
|
-
source: string;
|
|
102
|
-
target: string;
|
|
103
|
-
nodeId: number;
|
|
104
|
-
reassignmentCounter: number;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
reassignmentCounter: number;
|
|
108
|
-
}[];
|
|
109
|
-
effectiveAt: string;
|
|
110
|
-
commandId?: string | undefined;
|
|
111
|
-
workflowId?: string | undefined;
|
|
112
|
-
traceContext?: {
|
|
113
|
-
metadata?: Record<string, string> | undefined;
|
|
114
|
-
traceId?: string | undefined;
|
|
115
|
-
spanId?: string | undefined;
|
|
116
|
-
parentSpanId?: string | undefined;
|
|
117
|
-
} | undefined;
|
|
118
|
-
};
|
|
12
|
+
transaction: import("../../../../../generated/openapi-types").components["schemas"]["JsTransaction"];
|
|
119
13
|
}>;
|
|
120
14
|
client: import("../../../../../core").BaseClient;
|
|
121
|
-
validateParams<T>(params: T, schema:
|
|
15
|
+
validateParams<T>(params: T, schema: z.ZodSchema<T>): T;
|
|
122
16
|
makeGetRequest<T>(url: string, config?: import("../../../../../core").RequestConfig): Promise<T>;
|
|
123
17
|
makePostRequest<T>(url: string, data: unknown, config?: import("../../../../../core").RequestConfig): Promise<T>;
|
|
124
18
|
makeDeleteRequest<T>(url: string, config?: import("../../../../../core").RequestConfig): Promise<T>;
|
|
@@ -129,4 +23,5 @@ export declare const SubmitAndWaitForTransaction: {
|
|
|
129
23
|
buildPartyList(additionalParties?: string[]): string[];
|
|
130
24
|
};
|
|
131
25
|
};
|
|
26
|
+
export {};
|
|
132
27
|
//# sourceMappingURL=submit-and-wait-for-transaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-and-wait-for-transaction.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"submit-and-wait-for-transaction.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAEpE,QAAA,MAAM,QAAQ,EAAG,8CAAuD,CAAC;AAEzE,MAAM,MAAM,iCAAiC,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAC7H,MAAM,MAAM,mCAAmC,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEpI,eAAO,MAAM,2BAA2B;;;sBAKy5vG,sEAAsB;gCAAoc,sEAAsB;;yBAA2Y,sEAAsB;;;;;;;;;;;;;CAAh1xG,CAAC"}
|
package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.js
CHANGED
|
@@ -2,63 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubmitAndWaitForTransaction = void 0;
|
|
4
4
|
const core_1 = require("../../../../../core");
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
* @description Submit a batch of commands and wait for the transaction response
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* const result = await client.submitAndWaitForTransaction({
|
|
11
|
-
* commands: [createCommand, exerciseCommand],
|
|
12
|
-
* commandId: 'unique-command-id',
|
|
13
|
-
* actAs: ['party1', 'party2'],
|
|
14
|
-
* userId: 'user123'
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
* @param commands - Array of commands to submit
|
|
18
|
-
* @param commandId - Unique identifier for the command
|
|
19
|
-
* @param actAs - Parties on whose behalf the command should be executed
|
|
20
|
-
* @param userId - User ID submitting the command (optional if using authentication)
|
|
21
|
-
* @param readAs - Parties to read as (optional)
|
|
22
|
-
* @param workflowId - Workflow ID (optional)
|
|
23
|
-
* @param deduplicationPeriod - Deduplication period (optional)
|
|
24
|
-
* @param minLedgerTimeAbs - Minimum ledger time absolute (optional)
|
|
25
|
-
* @param minLedgerTimeRel - Minimum ledger time relative (optional)
|
|
26
|
-
* @param submissionId - Submission ID (optional)
|
|
27
|
-
* @param disclosedContracts - Disclosed contracts (optional)
|
|
28
|
-
* @param synchronizerId - Synchronizer ID (optional)
|
|
29
|
-
* @param packageIdSelectionPreference - Package ID selection preference (optional)
|
|
30
|
-
* @param prefetchContractKeys - Prefetch contract keys (optional)
|
|
31
|
-
* @param transactionFormat - Transaction format (optional)
|
|
32
|
-
*/
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const endpoint = '/v2/commands/submit-and-wait-for-transaction';
|
|
33
7
|
exports.SubmitAndWaitForTransaction = (0, core_1.createApiOperation)({
|
|
34
|
-
paramsSchema:
|
|
8
|
+
paramsSchema: zod_1.z.any(),
|
|
35
9
|
method: 'POST',
|
|
36
|
-
buildUrl: (_params, apiUrl) => `${apiUrl}
|
|
37
|
-
buildRequestData: (params
|
|
38
|
-
const currentPartyId = client.getPartyId();
|
|
39
|
-
const readParties = Array.from(new Set([
|
|
40
|
-
currentPartyId,
|
|
41
|
-
...(params.readAs || []),
|
|
42
|
-
]));
|
|
43
|
-
return {
|
|
44
|
-
commands: {
|
|
45
|
-
commands: params.commands,
|
|
46
|
-
commandId: params.commandId,
|
|
47
|
-
actAs: params.actAs,
|
|
48
|
-
userId: params.userId,
|
|
49
|
-
readAs: readParties,
|
|
50
|
-
workflowId: params.workflowId,
|
|
51
|
-
deduplicationPeriod: params.deduplicationPeriod,
|
|
52
|
-
minLedgerTimeAbs: params.minLedgerTimeAbs,
|
|
53
|
-
minLedgerTimeRel: params.minLedgerTimeRel,
|
|
54
|
-
submissionId: params.submissionId,
|
|
55
|
-
disclosedContracts: params.disclosedContracts,
|
|
56
|
-
synchronizerId: params.synchronizerId,
|
|
57
|
-
packageIdSelectionPreference: params.packageIdSelectionPreference,
|
|
58
|
-
prefetchContractKeys: params.prefetchContractKeys,
|
|
59
|
-
},
|
|
60
|
-
transactionFormat: params.transactionFormat,
|
|
61
|
-
};
|
|
62
|
-
},
|
|
10
|
+
buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
|
|
11
|
+
buildRequestData: (params) => params,
|
|
63
12
|
});
|
|
64
13
|
//# sourceMappingURL=submit-and-wait-for-transaction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-and-wait-for-transaction.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"submit-and-wait-for-transaction.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,8CAAuD,CAAC;AAK5D,QAAA,2BAA2B,GAAG,IAAA,yBAAkB,EAAyE;IACpI,YAAY,EAAE,OAAC,CAAC,GAAG,EAAE;IACrB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,QAAQ,EAAE;IACrD,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;CACrC,CAAC,CAAC"}
|
|
@@ -1,184 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* commands: [createCommand, exerciseCommand],
|
|
7
|
-
* commandId: 'unique-command-id',
|
|
8
|
-
* actAs: ['party1', 'party2'],
|
|
9
|
-
* userId: 'user123'
|
|
10
|
-
* });
|
|
11
|
-
* ```
|
|
12
|
-
* @param commands - Array of commands to submit
|
|
13
|
-
* @param commandId - Unique identifier for the command
|
|
14
|
-
* @param actAs - Parties on whose behalf the command should be executed
|
|
15
|
-
* @param userId - User ID submitting the command (optional if using authentication)
|
|
16
|
-
* @param readAs - Parties to read as (optional)
|
|
17
|
-
* @param workflowId - Workflow ID (optional)
|
|
18
|
-
* @param deduplicationPeriod - Deduplication period (optional)
|
|
19
|
-
* @param minLedgerTimeAbs - Minimum ledger time absolute (optional)
|
|
20
|
-
* @param minLedgerTimeRel - Minimum ledger time relative (optional)
|
|
21
|
-
* @param submissionId - Submission ID (optional)
|
|
22
|
-
* @param disclosedContracts - Disclosed contracts (optional)
|
|
23
|
-
* @param synchronizerId - Synchronizer ID (optional)
|
|
24
|
-
* @param packageIdSelectionPreference - Package ID selection preference (optional)
|
|
25
|
-
* @param prefetchContractKeys - Prefetch contract keys (optional)
|
|
26
|
-
*/
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { paths } from '../../../../../generated/openapi-types';
|
|
3
|
+
declare const endpoint: "/v2/commands/submit-and-wait";
|
|
4
|
+
export type SubmitAndWaitParams = paths[typeof endpoint]['post']['requestBody']['content']['application/json'];
|
|
5
|
+
export type SubmitAndWaitResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
|
|
27
6
|
export declare const SubmitAndWait: {
|
|
28
7
|
new (client: import("../../../../../core").BaseClient): {
|
|
29
8
|
execute(params: {
|
|
30
|
-
commands
|
|
9
|
+
commands?: import("../../../../../generated/openapi-types").components["schemas"]["Command"][];
|
|
31
10
|
commandId: string;
|
|
32
|
-
actAs
|
|
33
|
-
userId?: string
|
|
34
|
-
readAs?: string[]
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
packageIdSelectionPreference?: string[]
|
|
43
|
-
prefetchContractKeys?: any[] | undefined;
|
|
11
|
+
actAs?: string[];
|
|
12
|
+
userId?: string;
|
|
13
|
+
readAs?: string[];
|
|
14
|
+
workflowId?: string;
|
|
15
|
+
deduplicationPeriod?: import("../../../../../generated/openapi-types").components["schemas"]["DeduplicationPeriod"];
|
|
16
|
+
minLedgerTimeAbs?: string;
|
|
17
|
+
minLedgerTimeRel?: import("../../../../../generated/openapi-types").components["schemas"]["Duration"];
|
|
18
|
+
submissionId?: string;
|
|
19
|
+
disclosedContracts?: import("../../../../../generated/openapi-types").components["schemas"]["DisclosedContract"][];
|
|
20
|
+
synchronizerId?: string;
|
|
21
|
+
packageIdSelectionPreference?: string[];
|
|
44
22
|
}): Promise<{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
offset: number;
|
|
48
|
-
updateId: string;
|
|
49
|
-
recordTime: string;
|
|
50
|
-
events: {
|
|
51
|
-
synchronizerId: string;
|
|
52
|
-
kind: {
|
|
53
|
-
JsCreated: {
|
|
54
|
-
contractId: string;
|
|
55
|
-
templateId: string;
|
|
56
|
-
offset: number;
|
|
57
|
-
packageName: string;
|
|
58
|
-
contractKey: string | null;
|
|
59
|
-
createdEventBlob: string;
|
|
60
|
-
nodeId: number;
|
|
61
|
-
createArgument: Record<string, string | number | boolean | any[] | Record<string, any> | null>;
|
|
62
|
-
interfaceViews: string[];
|
|
63
|
-
witnessParties: string[];
|
|
64
|
-
signatories: string[];
|
|
65
|
-
observers: string[];
|
|
66
|
-
createdAt: string;
|
|
67
|
-
implementedInterfaces?: string[] | undefined;
|
|
68
|
-
};
|
|
69
|
-
} | {
|
|
70
|
-
JsArchived: {
|
|
71
|
-
contractId: string;
|
|
72
|
-
templateId: string;
|
|
73
|
-
offset: number;
|
|
74
|
-
packageName: string;
|
|
75
|
-
nodeId: number;
|
|
76
|
-
witnessParties: string[];
|
|
77
|
-
implementedInterfaces?: string[] | undefined;
|
|
78
|
-
};
|
|
79
|
-
} | {
|
|
80
|
-
JsAssigned: {
|
|
81
|
-
contractId: string;
|
|
82
|
-
templateId: string;
|
|
83
|
-
offset: number;
|
|
84
|
-
packageName: string;
|
|
85
|
-
submitter: string;
|
|
86
|
-
reassignmentId: string;
|
|
87
|
-
source: string;
|
|
88
|
-
target: string;
|
|
89
|
-
nodeId: number;
|
|
90
|
-
reassignmentCounter: number;
|
|
91
|
-
};
|
|
92
|
-
} | {
|
|
93
|
-
JsUnassigned: {
|
|
94
|
-
contractId: string;
|
|
95
|
-
templateId: string;
|
|
96
|
-
offset: number;
|
|
97
|
-
packageName: string;
|
|
98
|
-
submitter: string;
|
|
99
|
-
reassignmentId: string;
|
|
100
|
-
source: string;
|
|
101
|
-
target: string;
|
|
102
|
-
nodeId: number;
|
|
103
|
-
reassignmentCounter: number;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
reassignmentCounter: number;
|
|
107
|
-
}[];
|
|
108
|
-
effectiveAt: string;
|
|
109
|
-
commandId?: string | undefined;
|
|
110
|
-
workflowId?: string | undefined;
|
|
111
|
-
traceContext?: {
|
|
112
|
-
metadata?: Record<string, string> | undefined;
|
|
113
|
-
traceId?: string | undefined;
|
|
114
|
-
spanId?: string | undefined;
|
|
115
|
-
parentSpanId?: string | undefined;
|
|
116
|
-
} | undefined;
|
|
117
|
-
};
|
|
118
|
-
} | {
|
|
119
|
-
JsTransactionTree: {
|
|
120
|
-
offset: number;
|
|
121
|
-
updateId: string;
|
|
122
|
-
recordTime: string;
|
|
123
|
-
effectiveAt: string;
|
|
124
|
-
eventsById: Record<string, {
|
|
125
|
-
CreatedTreeEvent: {
|
|
126
|
-
value: {
|
|
127
|
-
contractId: string;
|
|
128
|
-
templateId: string;
|
|
129
|
-
offset: number;
|
|
130
|
-
packageName: string;
|
|
131
|
-
contractKey: string | null;
|
|
132
|
-
createdEventBlob: string;
|
|
133
|
-
nodeId: number;
|
|
134
|
-
createArgument: Record<string, string | number | boolean | any[] | Record<string, any> | null>;
|
|
135
|
-
interfaceViews: string[];
|
|
136
|
-
witnessParties: string[];
|
|
137
|
-
signatories: string[];
|
|
138
|
-
observers: string[];
|
|
139
|
-
createdAt: string;
|
|
140
|
-
implementedInterfaces?: string[] | undefined;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
} | {
|
|
144
|
-
ExercisedTreeEvent: {
|
|
145
|
-
value: {
|
|
146
|
-
contractId: string;
|
|
147
|
-
interfaceId: string | null;
|
|
148
|
-
templateId: string;
|
|
149
|
-
offset: number;
|
|
150
|
-
packageName: string;
|
|
151
|
-
choice: string;
|
|
152
|
-
choiceArgument: Record<string, string | number | boolean | any[] | Record<string, any> | null>;
|
|
153
|
-
nodeId: number;
|
|
154
|
-
witnessParties: string[];
|
|
155
|
-
actingParties: string[];
|
|
156
|
-
exerciseResult: Record<string, string | number | boolean | any[] | Record<string, any> | null>;
|
|
157
|
-
consuming: boolean;
|
|
158
|
-
implementedInterfaces?: string[] | undefined;
|
|
159
|
-
lastDescendantNodeId?: number | undefined;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
} | {
|
|
163
|
-
ArchivedTreeEvent: {
|
|
164
|
-
value: {
|
|
165
|
-
contractId: string;
|
|
166
|
-
templateId: string;
|
|
167
|
-
offset: number;
|
|
168
|
-
packageName: string;
|
|
169
|
-
nodeId: number;
|
|
170
|
-
witnessParties: string[];
|
|
171
|
-
implementedInterfaces?: string[] | undefined;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
}>;
|
|
175
|
-
commandId?: string | undefined;
|
|
176
|
-
workflowId?: string | undefined;
|
|
177
|
-
};
|
|
178
|
-
};
|
|
23
|
+
updateId: string;
|
|
24
|
+
completionOffset: number;
|
|
179
25
|
}>;
|
|
180
26
|
client: import("../../../../../core").BaseClient;
|
|
181
|
-
validateParams<T>(params: T, schema:
|
|
27
|
+
validateParams<T>(params: T, schema: z.ZodSchema<T>): T;
|
|
182
28
|
makeGetRequest<T>(url: string, config?: import("../../../../../core").RequestConfig): Promise<T>;
|
|
183
29
|
makePostRequest<T>(url: string, data: unknown, config?: import("../../../../../core").RequestConfig): Promise<T>;
|
|
184
30
|
makeDeleteRequest<T>(url: string, config?: import("../../../../../core").RequestConfig): Promise<T>;
|
|
@@ -189,4 +35,5 @@ export declare const SubmitAndWait: {
|
|
|
189
35
|
buildPartyList(additionalParties?: string[]): string[];
|
|
190
36
|
};
|
|
191
37
|
};
|
|
38
|
+
export {};
|
|
192
39
|
//# sourceMappingURL=submit-and-wait.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-and-wait.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"submit-and-wait.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAEpE,QAAA,MAAM,QAAQ,EAAG,8BAAuC,CAAC;AAEzD,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAC/G,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEtH,eAAO,MAAM,aAAa;;;uBAK69lF,sEAAsB;;;;;;kCAAolF,sEAAsB;;+BAA64B,sEAAsB;;iCAA6tB,sEAAsB;;;;;;;;;;;;;;;;;;CAA3wuF,CAAC"}
|
|
@@ -2,59 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubmitAndWait = void 0;
|
|
4
4
|
const core_1 = require("../../../../../core");
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
* @description Submit a batch of commands and wait for the completion details
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* const result = await client.submitAndWait({
|
|
11
|
-
* commands: [createCommand, exerciseCommand],
|
|
12
|
-
* commandId: 'unique-command-id',
|
|
13
|
-
* actAs: ['party1', 'party2'],
|
|
14
|
-
* userId: 'user123'
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
* @param commands - Array of commands to submit
|
|
18
|
-
* @param commandId - Unique identifier for the command
|
|
19
|
-
* @param actAs - Parties on whose behalf the command should be executed
|
|
20
|
-
* @param userId - User ID submitting the command (optional if using authentication)
|
|
21
|
-
* @param readAs - Parties to read as (optional)
|
|
22
|
-
* @param workflowId - Workflow ID (optional)
|
|
23
|
-
* @param deduplicationPeriod - Deduplication period (optional)
|
|
24
|
-
* @param minLedgerTimeAbs - Minimum ledger time absolute (optional)
|
|
25
|
-
* @param minLedgerTimeRel - Minimum ledger time relative (optional)
|
|
26
|
-
* @param submissionId - Submission ID (optional)
|
|
27
|
-
* @param disclosedContracts - Disclosed contracts (optional)
|
|
28
|
-
* @param synchronizerId - Synchronizer ID (optional)
|
|
29
|
-
* @param packageIdSelectionPreference - Package ID selection preference (optional)
|
|
30
|
-
* @param prefetchContractKeys - Prefetch contract keys (optional)
|
|
31
|
-
*/
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const endpoint = '/v2/commands/submit-and-wait';
|
|
32
7
|
exports.SubmitAndWait = (0, core_1.createApiOperation)({
|
|
33
|
-
paramsSchema:
|
|
8
|
+
paramsSchema: zod_1.z.any(),
|
|
34
9
|
method: 'POST',
|
|
35
|
-
buildUrl: (_params, apiUrl) => `${apiUrl}
|
|
36
|
-
buildRequestData: (params
|
|
37
|
-
const currentPartyId = client.getPartyId();
|
|
38
|
-
const readParties = Array.from(new Set([
|
|
39
|
-
currentPartyId,
|
|
40
|
-
...(params.readAs || []),
|
|
41
|
-
]));
|
|
42
|
-
return {
|
|
43
|
-
commands: params.commands,
|
|
44
|
-
commandId: params.commandId,
|
|
45
|
-
actAs: params.actAs,
|
|
46
|
-
userId: params.userId,
|
|
47
|
-
readAs: readParties,
|
|
48
|
-
workflowId: params.workflowId,
|
|
49
|
-
deduplicationPeriod: params.deduplicationPeriod,
|
|
50
|
-
minLedgerTimeAbs: params.minLedgerTimeAbs,
|
|
51
|
-
minLedgerTimeRel: params.minLedgerTimeRel,
|
|
52
|
-
submissionId: params.submissionId,
|
|
53
|
-
disclosedContracts: params.disclosedContracts,
|
|
54
|
-
synchronizerId: params.synchronizerId,
|
|
55
|
-
packageIdSelectionPreference: params.packageIdSelectionPreference,
|
|
56
|
-
prefetchContractKeys: params.prefetchContractKeys,
|
|
57
|
-
};
|
|
58
|
-
},
|
|
10
|
+
buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
|
|
11
|
+
buildRequestData: (params) => params,
|
|
59
12
|
});
|
|
60
13
|
//# sourceMappingURL=submit-and-wait.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-and-wait.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"submit-and-wait.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,8BAAuC,CAAC;AAK5C,QAAA,aAAa,GAAG,IAAA,yBAAkB,EAA6C;IAC1F,YAAY,EAAE,OAAC,CAAC,GAAG,EAAE;IACrB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,QAAQ,EAAE;IACrD,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;CACrC,CAAC,CAAC"}
|
package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/allocate-party.d.ts
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
export declare const InteractiveSubmissionAllocateParty: {
|
|
14
14
|
new (client: import("../../../../../core").BaseClient): {
|
|
15
15
|
execute(params: {
|
|
16
|
-
partyIdHint?: string | undefined;
|
|
17
16
|
isLocal?: boolean | undefined;
|
|
17
|
+
partyIdHint?: string | undefined;
|
|
18
18
|
displayName?: string | undefined;
|
|
19
19
|
}): Promise<{
|
|
20
20
|
party: {
|
package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/create-user.d.ts
CHANGED
|
@@ -23,11 +23,11 @@ export declare const InteractiveSubmissionCreateUser: {
|
|
|
23
23
|
id: string;
|
|
24
24
|
isDeactivated: boolean;
|
|
25
25
|
identityProviderId?: string | undefined;
|
|
26
|
-
primaryParty?: string | undefined;
|
|
27
26
|
metadata?: {
|
|
28
27
|
resourceVersion: string;
|
|
29
28
|
annotations: Record<string, string>;
|
|
30
29
|
} | undefined;
|
|
30
|
+
primaryParty?: string | undefined;
|
|
31
31
|
};
|
|
32
32
|
rights?: {
|
|
33
33
|
kind: {
|
|
@@ -53,11 +53,11 @@ export declare const InteractiveSubmissionCreateUser: {
|
|
|
53
53
|
id: string;
|
|
54
54
|
isDeactivated: boolean;
|
|
55
55
|
identityProviderId?: string | undefined;
|
|
56
|
-
primaryParty?: string | undefined;
|
|
57
56
|
metadata?: {
|
|
58
57
|
resourceVersion: string;
|
|
59
58
|
annotations: Record<string, string>;
|
|
60
59
|
} | undefined;
|
|
60
|
+
primaryParty?: string | undefined;
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
63
|
client: import("../../../../../core").BaseClient;
|
|
@@ -1,31 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @description Get the preferred version
|
|
2
|
+
* @description Get the preferred package version for constructing a command submission
|
|
3
3
|
* @example
|
|
4
4
|
* ```typescript
|
|
5
|
-
* const
|
|
6
|
-
* packageName: '
|
|
7
|
-
* parties: ['
|
|
5
|
+
* const result = await client.interactiveSubmissionGetPreferredPackageVersion({
|
|
6
|
+
* packageName: 'my-package',
|
|
7
|
+
* parties: ['Alice', 'Bob'],
|
|
8
8
|
* synchronizerId: 'sync-123'
|
|
9
9
|
* });
|
|
10
|
+
* console.log(`Preferred package: ${result.packagePreference?.packageReference.packageId}`);
|
|
10
11
|
* ```
|
|
11
|
-
* @param packageName - Package name to get preferred version for
|
|
12
|
-
* @param parties - Parties whose vetting state should be considered
|
|
13
|
-
* @param synchronizerId - Optional synchronizer ID
|
|
14
|
-
* @param vettingValidAt - Optional vetting valid at timestamp
|
|
15
12
|
*/
|
|
16
|
-
export declare const
|
|
13
|
+
export declare const InteractiveSubmissionGetPreferredPackageVersion: {
|
|
17
14
|
new (client: import("../../../../../core").BaseClient): {
|
|
18
15
|
execute(params: {
|
|
19
|
-
parties: string[];
|
|
20
16
|
packageName: string;
|
|
21
17
|
synchronizerId?: string | undefined;
|
|
18
|
+
parties?: string[] | undefined;
|
|
22
19
|
vettingValidAt?: string | undefined;
|
|
23
20
|
}): Promise<{
|
|
24
21
|
packagePreference?: {
|
|
25
22
|
synchronizerId: string;
|
|
26
23
|
packageReference: {
|
|
27
|
-
packageId: string;
|
|
28
24
|
packageName: string;
|
|
25
|
+
packageId: string;
|
|
29
26
|
packageVersion: string;
|
|
30
27
|
};
|
|
31
28
|
} | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-preferred-package-version.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyB1D,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InteractiveSubmissionGetPreferredPackageVersion = void 0;
|
|
4
|
+
const core_1 = require("../../../../../core");
|
|
5
|
+
const operations_1 = require("../../../schemas/operations");
|
|
6
|
+
/**
|
|
7
|
+
* @description Get the preferred package version for constructing a command submission
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const result = await client.interactiveSubmissionGetPreferredPackageVersion({
|
|
11
|
+
* packageName: 'my-package',
|
|
12
|
+
* parties: ['Alice', 'Bob'],
|
|
13
|
+
* synchronizerId: 'sync-123'
|
|
14
|
+
* });
|
|
15
|
+
* console.log(`Preferred package: ${result.packagePreference?.packageReference.packageId}`);
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
exports.InteractiveSubmissionGetPreferredPackageVersion = (0, core_1.createApiOperation)({
|
|
19
|
+
paramsSchema: operations_1.InteractiveSubmissionGetPreferredPackageVersionParamsSchema,
|
|
20
|
+
method: 'GET',
|
|
21
|
+
buildUrl: (params, apiUrl) => {
|
|
22
|
+
const url = new URL(`${apiUrl}/v2/interactive-submission/preferred-package-version`);
|
|
23
|
+
if (params.parties) {
|
|
24
|
+
params.parties.forEach(party => url.searchParams.append('parties', party));
|
|
25
|
+
}
|
|
26
|
+
url.searchParams.append('package-name', params.packageName);
|
|
27
|
+
if (params.vettingValidAt) {
|
|
28
|
+
url.searchParams.append('vetting_valid_at', params.vettingValidAt);
|
|
29
|
+
}
|
|
30
|
+
if (params.synchronizerId) {
|
|
31
|
+
url.searchParams.append('synchronizer-id', params.synchronizerId);
|
|
32
|
+
}
|
|
33
|
+
return url.toString();
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=get-preferred-package-version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-preferred-package-version.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,4DAAiK;AAGjK;;;;;;;;;;;GAWG;AACU,QAAA,+CAA+C,GAAG,IAAA,yBAAkB,EAG/E;IACA,YAAY,EAAE,wEAA2D;IACzE,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,CAAC,MAA6D,EAAE,MAAc,EAAE,EAAE;QAC1F,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,sDAAsD,CAAC,CAAC;QAErF,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;QAC7E,CAAC;QAED,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QAE5D,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;YAC1B,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;QACrE,CAAC;QAED,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;YAC1B,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;QACpE,CAAC;QAED,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC;CACF,CAAC,CAAC"}
|