@fairmint/canton-node-sdk 0.0.63 → 0.0.64
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/operations/v2/commands/async/submit.d.ts +6 -16
- 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 +7 -1
- 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/submit-and-wait-for-transaction-tree.d.ts +6 -16
- 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 +7 -1
- 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 +6 -5
- 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 +7 -1
- 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 +6 -16
- 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 +7 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { paths } from '../../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
|
|
3
3
|
declare const endpoint: "/v2/commands/async/submit";
|
|
4
|
-
|
|
4
|
+
type BaseAsyncSubmitParams = paths[typeof endpoint]['post']['requestBody']['content']['application/json'];
|
|
5
|
+
export type AsyncSubmitParams = Omit<BaseAsyncSubmitParams, 'commandId' | 'actAs'> & {
|
|
6
|
+
commandId?: string;
|
|
7
|
+
actAs?: string[];
|
|
8
|
+
};
|
|
5
9
|
export type AsyncSubmitResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
|
|
6
10
|
export declare const AsyncSubmit: {
|
|
7
11
|
new (client: import("../../../../../../core").BaseClient): {
|
|
8
|
-
execute(params:
|
|
9
|
-
commands?: import("../../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Command"][];
|
|
10
|
-
commandId: string;
|
|
11
|
-
actAs?: string[];
|
|
12
|
-
userId?: string;
|
|
13
|
-
readAs?: string[];
|
|
14
|
-
workflowId?: string;
|
|
15
|
-
deduplicationPeriod?: import("../../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["DeduplicationPeriod"];
|
|
16
|
-
minLedgerTimeAbs?: string;
|
|
17
|
-
minLedgerTimeRel?: import("../../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Duration"];
|
|
18
|
-
submissionId?: string;
|
|
19
|
-
disclosedContracts?: import("../../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["DisclosedContract"][];
|
|
20
|
-
synchronizerId?: string;
|
|
21
|
-
packageIdSelectionPreference?: string[];
|
|
22
|
-
}): Promise<Record<string, never>>;
|
|
12
|
+
execute(params: AsyncSubmitParams): Promise<Record<string, never>>;
|
|
23
13
|
client: import("../../../../../../core").BaseClient;
|
|
24
14
|
validateParams<T>(params: T, schema: z.ZodSchema<T>): T;
|
|
25
15
|
makeGetRequest<T>(url: string, config?: import("../../../../../../core").RequestConfig): Promise<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit.d.ts","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/commands/async/submit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8GAA8G,CAAC;AAE1I,QAAA,MAAM,QAAQ,EAAG,2BAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"submit.d.ts","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/commands/async/submit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8GAA8G,CAAC;AAE1I,QAAA,MAAM,QAAQ,EAAG,2BAAoC,CAAC;AAGtD,KAAK,qBAAqB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAG1G,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,qBAAqB,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEpH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CAWtB,CAAC"}
|
|
@@ -8,6 +8,12 @@ exports.AsyncSubmit = (0, core_1.createApiOperation)({
|
|
|
8
8
|
paramsSchema: zod_1.z.any(),
|
|
9
9
|
method: 'POST',
|
|
10
10
|
buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
|
|
11
|
-
buildRequestData: (params) =>
|
|
11
|
+
buildRequestData: (params, client) => {
|
|
12
|
+
return {
|
|
13
|
+
...params,
|
|
14
|
+
commandId: params.commandId || `async-submit-${Date.now()}`,
|
|
15
|
+
actAs: params.actAs || [client.getPartyId()],
|
|
16
|
+
};
|
|
17
|
+
},
|
|
12
18
|
});
|
|
13
19
|
//# sourceMappingURL=submit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit.js","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/commands/async/submit.ts"],"names":[],"mappings":";;;AAAA,iDAA4D;AAC5D,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,2BAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"submit.js","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/commands/async/submit.ts"],"names":[],"mappings":";;;AAAA,iDAA4D;AAC5D,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,2BAAoC,CAAC;AAazC,QAAA,WAAW,GAAG,IAAA,yBAAkB,EAAyC;IACpF,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,MAAM,EAAE,EAAE;QACnC,OAAO;YACL,GAAG,MAAM;YACT,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,gBAAgB,IAAI,CAAC,GAAG,EAAE,EAAE;YAC3D,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
|
|
3
3
|
declare const endpoint: "/v2/commands/submit-and-wait-for-transaction-tree";
|
|
4
|
-
|
|
4
|
+
type BaseSubmitAndWaitForTransactionTreeParams = paths[typeof endpoint]['post']['requestBody']['content']['application/json'];
|
|
5
|
+
export type SubmitAndWaitForTransactionTreeParams = Omit<BaseSubmitAndWaitForTransactionTreeParams, 'commandId' | 'actAs'> & {
|
|
6
|
+
commandId?: string;
|
|
7
|
+
actAs?: string[];
|
|
8
|
+
};
|
|
5
9
|
export type SubmitAndWaitForTransactionTreeResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
|
|
6
10
|
export declare const SubmitAndWaitForTransactionTree: {
|
|
7
11
|
new (client: import("../../../../../core").BaseClient): {
|
|
8
|
-
execute(params: {
|
|
9
|
-
commands?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Command"][];
|
|
10
|
-
commandId: string;
|
|
11
|
-
actAs?: string[];
|
|
12
|
-
userId?: string;
|
|
13
|
-
readAs?: string[];
|
|
14
|
-
workflowId?: string;
|
|
15
|
-
deduplicationPeriod?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["DeduplicationPeriod"];
|
|
16
|
-
minLedgerTimeAbs?: string;
|
|
17
|
-
minLedgerTimeRel?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Duration"];
|
|
18
|
-
submissionId?: string;
|
|
19
|
-
disclosedContracts?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["DisclosedContract"][];
|
|
20
|
-
synchronizerId?: string;
|
|
21
|
-
packageIdSelectionPreference?: string[];
|
|
22
|
-
}): Promise<{
|
|
12
|
+
execute(params: SubmitAndWaitForTransactionTreeParams): Promise<{
|
|
23
13
|
transactionTree: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["JsTransactionTree"];
|
|
24
14
|
}>;
|
|
25
15
|
client: import("../../../../../core").BaseClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-and-wait-for-transaction-tree.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,mDAA4D,CAAC;
|
|
1
|
+
{"version":3,"file":"submit-and-wait-for-transaction-tree.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,mDAA4D,CAAC;AAG9E,KAAK,yCAAyC,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAG9H,MAAM,MAAM,qCAAqC,GAAG,IAAI,CAAC,yCAAyC,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG;IAC3H,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAExI,eAAO,MAAM,+BAA+B;;;6BAWikxG,yIAAsB;;;;;;;;;;;;;CAAjoxG,CAAC"}
|
|
@@ -8,6 +8,12 @@ exports.SubmitAndWaitForTransactionTree = (0, core_1.createApiOperation)({
|
|
|
8
8
|
paramsSchema: zod_1.z.any(),
|
|
9
9
|
method: 'POST',
|
|
10
10
|
buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
|
|
11
|
-
buildRequestData: (params) =>
|
|
11
|
+
buildRequestData: (params, client) => {
|
|
12
|
+
return {
|
|
13
|
+
...params,
|
|
14
|
+
commandId: params.commandId || `submit-and-wait-for-transaction-tree-${Date.now()}`,
|
|
15
|
+
actAs: params.actAs || [client.getPartyId()],
|
|
16
|
+
};
|
|
17
|
+
},
|
|
12
18
|
});
|
|
13
19
|
//# sourceMappingURL=submit-and-wait-for-transaction-tree.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-and-wait-for-transaction-tree.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,mDAA4D,CAAC;
|
|
1
|
+
{"version":3,"file":"submit-and-wait-for-transaction-tree.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,mDAA4D,CAAC;AAajE,QAAA,+BAA+B,GAAG,IAAA,yBAAkB,EAAiF;IAChJ,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,MAAM,EAAE,EAAE;QACnC,OAAO;YACL,GAAG,MAAM;YACT,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,wCAAwC,IAAI,CAAC,GAAG,EAAE,EAAE;YACnF,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
|
|
3
3
|
declare const endpoint: "/v2/commands/submit-and-wait-for-transaction";
|
|
4
|
-
|
|
4
|
+
type BaseSubmitAndWaitForTransactionParams = paths[typeof endpoint]['post']['requestBody']['content']['application/json'];
|
|
5
|
+
export type SubmitAndWaitForTransactionParams = Omit<BaseSubmitAndWaitForTransactionParams, 'commandId' | 'actAs'> & {
|
|
6
|
+
commandId?: string;
|
|
7
|
+
actAs?: string[];
|
|
8
|
+
};
|
|
5
9
|
export type SubmitAndWaitForTransactionResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
|
|
6
10
|
export declare const SubmitAndWaitForTransaction: {
|
|
7
11
|
new (client: import("../../../../../core").BaseClient): {
|
|
8
|
-
execute(params: {
|
|
9
|
-
commands: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["JsCommands"];
|
|
10
|
-
transactionFormat?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["TransactionFormat"];
|
|
11
|
-
}): Promise<{
|
|
12
|
+
execute(params: SubmitAndWaitForTransactionParams): Promise<{
|
|
12
13
|
transaction: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["JsTransaction"];
|
|
13
14
|
}>;
|
|
14
15
|
client: import("../../../../../core").BaseClient;
|
|
@@ -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":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,8CAAuD,CAAC;
|
|
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,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,8CAAuD,CAAC;AAGzE,KAAK,qCAAqC,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAG1H,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAAC,qCAAqC,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG;IACnH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,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;;;yBAW2ywG,yIAAsB;;;;;;;;;;;;;CAAv2wG,CAAC"}
|
package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.js
CHANGED
|
@@ -8,6 +8,12 @@ exports.SubmitAndWaitForTransaction = (0, core_1.createApiOperation)({
|
|
|
8
8
|
paramsSchema: zod_1.z.any(),
|
|
9
9
|
method: 'POST',
|
|
10
10
|
buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
|
|
11
|
-
buildRequestData: (params) =>
|
|
11
|
+
buildRequestData: (params, client) => {
|
|
12
|
+
return {
|
|
13
|
+
...params,
|
|
14
|
+
commandId: params.commandId || `submit-and-wait-for-transaction-${Date.now()}`,
|
|
15
|
+
actAs: params.actAs || [client.getPartyId()],
|
|
16
|
+
};
|
|
17
|
+
},
|
|
12
18
|
});
|
|
13
19
|
//# 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,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,8CAAuD,CAAC;
|
|
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;AAa5D,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,MAAM,EAAE,EAAE;QACnC,OAAO;YACL,GAAG,MAAM;YACT,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,mCAAmC,IAAI,CAAC,GAAG,EAAE,EAAE;YAC9E,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
|
|
3
3
|
declare const endpoint: "/v2/commands/submit-and-wait";
|
|
4
|
-
|
|
4
|
+
type BaseSubmitAndWaitParams = paths[typeof endpoint]['post']['requestBody']['content']['application/json'];
|
|
5
|
+
export type SubmitAndWaitParams = Omit<BaseSubmitAndWaitParams, 'commandId' | 'actAs'> & {
|
|
6
|
+
commandId?: string;
|
|
7
|
+
actAs?: string[];
|
|
8
|
+
};
|
|
5
9
|
export type SubmitAndWaitResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
|
|
6
10
|
export declare const SubmitAndWait: {
|
|
7
11
|
new (client: import("../../../../../core").BaseClient): {
|
|
8
|
-
execute(params: {
|
|
9
|
-
commands?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Command"][];
|
|
10
|
-
commandId: string;
|
|
11
|
-
actAs?: string[];
|
|
12
|
-
userId?: string;
|
|
13
|
-
readAs?: string[];
|
|
14
|
-
workflowId?: string;
|
|
15
|
-
deduplicationPeriod?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["DeduplicationPeriod"];
|
|
16
|
-
minLedgerTimeAbs?: string;
|
|
17
|
-
minLedgerTimeRel?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["Duration"];
|
|
18
|
-
submissionId?: string;
|
|
19
|
-
disclosedContracts?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["DisclosedContract"][];
|
|
20
|
-
synchronizerId?: string;
|
|
21
|
-
packageIdSelectionPreference?: string[];
|
|
22
|
-
}): Promise<{
|
|
12
|
+
execute(params: SubmitAndWaitParams): Promise<{
|
|
23
13
|
updateId: string;
|
|
24
14
|
completionOffset: number;
|
|
25
15
|
}>;
|
|
@@ -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":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,8BAAuC,CAAC;
|
|
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,2GAA2G,CAAC;AAEvI,QAAA,MAAM,QAAQ,EAAG,8BAAuC,CAAC;AAGzD,KAAK,uBAAuB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAG5G,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,uBAAuB,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG;IACvF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,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;;;;;;;;;;;;;;;;;CAWxB,CAAC"}
|
|
@@ -8,6 +8,12 @@ exports.SubmitAndWait = (0, core_1.createApiOperation)({
|
|
|
8
8
|
paramsSchema: zod_1.z.any(),
|
|
9
9
|
method: 'POST',
|
|
10
10
|
buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
|
|
11
|
-
buildRequestData: (params) =>
|
|
11
|
+
buildRequestData: (params, client) => {
|
|
12
|
+
return {
|
|
13
|
+
...params,
|
|
14
|
+
commandId: params.commandId || `submit-and-wait-${Date.now()}`,
|
|
15
|
+
actAs: params.actAs || [client.getPartyId()],
|
|
16
|
+
};
|
|
17
|
+
},
|
|
12
18
|
});
|
|
13
19
|
//# 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,6BAAwB;AAGxB,MAAM,QAAQ,GAAG,8BAAuC,CAAC;
|
|
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;AAa5C,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,MAAM,EAAE,EAAE;QACnC,OAAO;YACL,GAAG,MAAM;YACT,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,mBAAmB,IAAI,CAAC,GAAG,EAAE,EAAE;YAC9D,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|