@fairmint/canton-node-sdk 0.0.108 → 0.0.110
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 +2 -8
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.js +2 -8
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.js.map +1 -1
- 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/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.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-completions.d.ts +2 -2
- package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-completions.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-completions.js +0 -4
- package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-completions.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/post.d.ts +8 -3
- 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 +12 -5
- 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.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.d.ts +2 -2
- 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 +17 -28
- 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.map +1 -1
- 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-offset.d.ts.map +1 -1
- 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-offset.d.ts.map +1 -1
- 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-offset.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/index.d.ts +1 -2
- 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 +1 -2
- package/build/src/clients/ledger-json-api/operations/v2/updates/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.d.ts +29 -0
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.js +127 -0
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.js.map +1 -0
- 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/get-user.d.ts.map +1 -1
- 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/list-user-rights.d.ts.map +1 -1
- 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/revoke-user-rights.d.ts.map +1 -1
- 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/utils/event-format-builder.d.ts +35 -0
- package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.js +37 -0
- package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.js.map +1 -0
- package/build/src/clients/validator-api/operations/v0/ans/create-entry.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/get-rules.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/list-entries-proxy.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/lookup-by-name.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/lookup-by-party.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-featured-app-right.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocation-instruction/v1/get-allocation-factory.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-cancel-context.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-transfer-context.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-withdraw-context.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/get-instrument.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/get-registry-info.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/list-instruments.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-factory.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-accept-context.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-reject-context.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-withdraw-context.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/token-standard/transfers/create.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/token-standard/transfers/list.d.ts.map +1 -1
- package/build/src/core/http/HttpClient.d.ts +5 -0
- package/build/src/core/http/HttpClient.d.ts.map +1 -1
- package/build/src/core/http/HttpClient.js +16 -2
- package/build/src/core/http/HttpClient.js.map +1 -1
- package/build/src/generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi.d.ts +1979 -622
- package/build/src/generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi.d.ts.map +1 -1
- package/build/src/generated/token-standard/splice-api-token-allocation-instruction-v1/openapi/allocation-instruction-v1.d.ts +22 -17
- package/build/src/generated/token-standard/splice-api-token-allocation-instruction-v1/openapi/allocation-instruction-v1.d.ts.map +1 -1
- package/build/src/generated/token-standard/splice-api-token-allocation-v1/openapi/allocation-v1.d.ts +22 -21
- package/build/src/generated/token-standard/splice-api-token-allocation-v1/openapi/allocation-v1.d.ts.map +1 -1
- package/build/src/generated/token-standard/splice-api-token-metadata-v1/openapi/token-metadata-v1.d.ts +6 -5
- package/build/src/generated/token-standard/splice-api-token-metadata-v1/openapi/token-metadata-v1.d.ts.map +1 -1
- package/build/src/generated/token-standard/splice-api-token-transfer-instruction-v1/openapi/transfer-instruction-v1.d.ts +29 -28
- package/build/src/generated/token-standard/splice-api-token-transfer-instruction-v1/openapi/transfer-instruction-v1.d.ts.map +1 -1
- package/package.json +10 -10
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-flats.d.ts +0 -310
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-flats.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-flats.js +0 -61
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-flats.js.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-trees.d.ts +0 -227
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-trees.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-trees.js +0 -61
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-trees.js.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-flats.d.ts +0 -282
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-flats.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-flats.js +0 -34
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-flats.js.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-trees.d.ts +0 -284
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-trees.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-trees.js +0 -22
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-trees.js.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/utils/format-normalizers.d.ts +0 -7
- package/build/src/clients/ledger-json-api/operations/v2/updates/utils/format-normalizers.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/utils/format-normalizers.js +0 -83
- package/build/src/clients/ledger-json-api/operations/v2/updates/utils/format-normalizers.js.map +0 -1
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { JsCantonErrorSchema, WsCantonErrorSchema } from '../../../schemas/api/errors';
|
|
3
|
-
import { JsUpdateSchema, WsUpdateSchema } from '../../../schemas/api/updates';
|
|
4
|
-
declare const UpdatesFlatsParamsSchema: z.ZodObject<{
|
|
5
|
-
beginExclusive: z.ZodNumber;
|
|
6
|
-
endInclusive: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
streamIdleTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
updateFormat: z.ZodObject<{
|
|
10
|
-
includeTransactions: z.ZodOptional<z.ZodObject<{
|
|
11
|
-
eventFormat: z.ZodObject<{
|
|
12
|
-
filtersByParty: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
13
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
14
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
15
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
InterfaceFilter: z.ZodObject<{
|
|
18
|
-
value: z.ZodObject<{
|
|
19
|
-
interfaceId: z.ZodString;
|
|
20
|
-
includeInterfaceView: z.ZodBoolean;
|
|
21
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
TemplateFilter: z.ZodObject<{
|
|
26
|
-
value: z.ZodObject<{
|
|
27
|
-
templateId: z.ZodString;
|
|
28
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
WildcardFilter: z.ZodObject<{
|
|
33
|
-
value: z.ZodObject<{
|
|
34
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
35
|
-
}, z.core.$strip>;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
}, z.core.$strip>]>;
|
|
38
|
-
}, z.core.$strip>>;
|
|
39
|
-
}, z.core.$strip>>;
|
|
40
|
-
filtersForAnyParty: z.ZodOptional<z.ZodObject<{
|
|
41
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
42
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
43
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
44
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
-
InterfaceFilter: z.ZodObject<{
|
|
46
|
-
value: z.ZodObject<{
|
|
47
|
-
interfaceId: z.ZodString;
|
|
48
|
-
includeInterfaceView: z.ZodBoolean;
|
|
49
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
50
|
-
}, z.core.$strip>;
|
|
51
|
-
}, z.core.$strip>;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
TemplateFilter: z.ZodObject<{
|
|
54
|
-
value: z.ZodObject<{
|
|
55
|
-
templateId: z.ZodString;
|
|
56
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
57
|
-
}, z.core.$strip>;
|
|
58
|
-
}, z.core.$strip>;
|
|
59
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
-
WildcardFilter: z.ZodObject<{
|
|
61
|
-
value: z.ZodObject<{
|
|
62
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
}, z.core.$strip>;
|
|
65
|
-
}, z.core.$strip>]>;
|
|
66
|
-
}, z.core.$strip>>;
|
|
67
|
-
}, z.core.$strip>>;
|
|
68
|
-
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
-
}, z.core.$strip>;
|
|
70
|
-
transactionShape: z.ZodUnion<readonly [z.ZodLiteral<"TRANSACTION_SHAPE_ACS_DELTA">, z.ZodLiteral<"TRANSACTION_SHAPE_LEDGER_EFFECTS">]>;
|
|
71
|
-
}, z.core.$strip>>;
|
|
72
|
-
includeReassignments: z.ZodOptional<z.ZodObject<{
|
|
73
|
-
filtersByParty: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
74
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
75
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
76
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
77
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
-
InterfaceFilter: z.ZodObject<{
|
|
79
|
-
value: z.ZodObject<{
|
|
80
|
-
interfaceId: z.ZodString;
|
|
81
|
-
includeInterfaceView: z.ZodBoolean;
|
|
82
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
}, z.core.$strip>;
|
|
85
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
-
TemplateFilter: z.ZodObject<{
|
|
87
|
-
value: z.ZodObject<{
|
|
88
|
-
templateId: z.ZodString;
|
|
89
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
90
|
-
}, z.core.$strip>;
|
|
91
|
-
}, z.core.$strip>;
|
|
92
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
93
|
-
WildcardFilter: z.ZodObject<{
|
|
94
|
-
value: z.ZodObject<{
|
|
95
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
}, z.core.$strip>;
|
|
98
|
-
}, z.core.$strip>]>;
|
|
99
|
-
}, z.core.$strip>>;
|
|
100
|
-
}, z.core.$strip>>;
|
|
101
|
-
filtersForAnyParty: z.ZodOptional<z.ZodObject<{
|
|
102
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
103
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
104
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
105
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
-
InterfaceFilter: z.ZodObject<{
|
|
107
|
-
value: z.ZodObject<{
|
|
108
|
-
interfaceId: z.ZodString;
|
|
109
|
-
includeInterfaceView: z.ZodBoolean;
|
|
110
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
111
|
-
}, z.core.$strip>;
|
|
112
|
-
}, z.core.$strip>;
|
|
113
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
114
|
-
TemplateFilter: z.ZodObject<{
|
|
115
|
-
value: z.ZodObject<{
|
|
116
|
-
templateId: z.ZodString;
|
|
117
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
118
|
-
}, z.core.$strip>;
|
|
119
|
-
}, z.core.$strip>;
|
|
120
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
-
WildcardFilter: z.ZodObject<{
|
|
122
|
-
value: z.ZodObject<{
|
|
123
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
124
|
-
}, z.core.$strip>;
|
|
125
|
-
}, z.core.$strip>;
|
|
126
|
-
}, z.core.$strip>]>;
|
|
127
|
-
}, z.core.$strip>>;
|
|
128
|
-
}, z.core.$strip>>;
|
|
129
|
-
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
-
}, z.core.$strip>>;
|
|
131
|
-
includeTopologyEvents: z.ZodOptional<z.ZodObject<{
|
|
132
|
-
includeParticipantAuthorizationEvents: z.ZodOptional<z.ZodObject<{
|
|
133
|
-
parties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
134
|
-
}, z.core.$strip>>;
|
|
135
|
-
}, z.core.$strip>>;
|
|
136
|
-
}, z.core.$strip>;
|
|
137
|
-
}, z.core.$strip>;
|
|
138
|
-
export type UpdatesFlatsWsParams = z.infer<typeof UpdatesFlatsParamsSchema>;
|
|
139
|
-
export type UpdatesFlatsWsMessage = {
|
|
140
|
-
update: z.infer<typeof JsUpdateSchema>;
|
|
141
|
-
} | {
|
|
142
|
-
update: z.infer<typeof WsUpdateSchema>;
|
|
143
|
-
} | z.infer<typeof JsCantonErrorSchema> | z.infer<typeof WsCantonErrorSchema>;
|
|
144
|
-
export declare const SubscribeToFlats: new (client: import("../../../../..").BaseClient) => {
|
|
145
|
-
client: import("../../../../..").BaseClient;
|
|
146
|
-
subscribe: (params: {
|
|
147
|
-
beginExclusive: number;
|
|
148
|
-
updateFormat: {
|
|
149
|
-
includeTransactions?: {
|
|
150
|
-
eventFormat: {
|
|
151
|
-
filtersByParty: Record<string, {
|
|
152
|
-
cumulative: {
|
|
153
|
-
identifierFilter: {
|
|
154
|
-
Empty: Record<string, never>;
|
|
155
|
-
} | {
|
|
156
|
-
InterfaceFilter: {
|
|
157
|
-
value: {
|
|
158
|
-
interfaceId: string;
|
|
159
|
-
includeInterfaceView: boolean;
|
|
160
|
-
includeCreatedEventBlob: boolean;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
} | {
|
|
164
|
-
TemplateFilter: {
|
|
165
|
-
value: {
|
|
166
|
-
templateId: string;
|
|
167
|
-
includeCreatedEventBlob: boolean;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
} | {
|
|
171
|
-
WildcardFilter: {
|
|
172
|
-
value: {
|
|
173
|
-
includeCreatedEventBlob: boolean;
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
}[];
|
|
178
|
-
}>;
|
|
179
|
-
filtersForAnyParty?: {
|
|
180
|
-
cumulative: {
|
|
181
|
-
identifierFilter: {
|
|
182
|
-
Empty: Record<string, never>;
|
|
183
|
-
} | {
|
|
184
|
-
InterfaceFilter: {
|
|
185
|
-
value: {
|
|
186
|
-
interfaceId: string;
|
|
187
|
-
includeInterfaceView: boolean;
|
|
188
|
-
includeCreatedEventBlob: boolean;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
} | {
|
|
192
|
-
TemplateFilter: {
|
|
193
|
-
value: {
|
|
194
|
-
templateId: string;
|
|
195
|
-
includeCreatedEventBlob: boolean;
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
} | {
|
|
199
|
-
WildcardFilter: {
|
|
200
|
-
value: {
|
|
201
|
-
includeCreatedEventBlob: boolean;
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
}[];
|
|
206
|
-
} | undefined;
|
|
207
|
-
verbose?: boolean | undefined;
|
|
208
|
-
};
|
|
209
|
-
transactionShape: "TRANSACTION_SHAPE_ACS_DELTA" | "TRANSACTION_SHAPE_LEDGER_EFFECTS";
|
|
210
|
-
} | undefined;
|
|
211
|
-
includeReassignments?: {
|
|
212
|
-
filtersByParty: Record<string, {
|
|
213
|
-
cumulative: {
|
|
214
|
-
identifierFilter: {
|
|
215
|
-
Empty: Record<string, never>;
|
|
216
|
-
} | {
|
|
217
|
-
InterfaceFilter: {
|
|
218
|
-
value: {
|
|
219
|
-
interfaceId: string;
|
|
220
|
-
includeInterfaceView: boolean;
|
|
221
|
-
includeCreatedEventBlob: boolean;
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
} | {
|
|
225
|
-
TemplateFilter: {
|
|
226
|
-
value: {
|
|
227
|
-
templateId: string;
|
|
228
|
-
includeCreatedEventBlob: boolean;
|
|
229
|
-
};
|
|
230
|
-
};
|
|
231
|
-
} | {
|
|
232
|
-
WildcardFilter: {
|
|
233
|
-
value: {
|
|
234
|
-
includeCreatedEventBlob: boolean;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
}[];
|
|
239
|
-
}>;
|
|
240
|
-
filtersForAnyParty?: {
|
|
241
|
-
cumulative: {
|
|
242
|
-
identifierFilter: {
|
|
243
|
-
Empty: Record<string, never>;
|
|
244
|
-
} | {
|
|
245
|
-
InterfaceFilter: {
|
|
246
|
-
value: {
|
|
247
|
-
interfaceId: string;
|
|
248
|
-
includeInterfaceView: boolean;
|
|
249
|
-
includeCreatedEventBlob: boolean;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
} | {
|
|
253
|
-
TemplateFilter: {
|
|
254
|
-
value: {
|
|
255
|
-
templateId: string;
|
|
256
|
-
includeCreatedEventBlob: boolean;
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
} | {
|
|
260
|
-
WildcardFilter: {
|
|
261
|
-
value: {
|
|
262
|
-
includeCreatedEventBlob: boolean;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
}[];
|
|
267
|
-
} | undefined;
|
|
268
|
-
verbose?: boolean | undefined;
|
|
269
|
-
} | undefined;
|
|
270
|
-
includeTopologyEvents?: {
|
|
271
|
-
includeParticipantAuthorizationEvents?: {
|
|
272
|
-
parties?: string[] | undefined;
|
|
273
|
-
} | undefined;
|
|
274
|
-
} | undefined;
|
|
275
|
-
};
|
|
276
|
-
endInclusive?: number | undefined;
|
|
277
|
-
limit?: number | undefined;
|
|
278
|
-
streamIdleTimeoutMs?: number | undefined;
|
|
279
|
-
}, handlers: import("../../../../..").WebSocketHandlers<UpdatesFlatsWsMessage, unknown>) => Promise<import("../../../../..").WebSocketSubscription>;
|
|
280
|
-
};
|
|
281
|
-
export {};
|
|
282
|
-
//# sourceMappingURL=subscribe-to-flats.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscribe-to-flats.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/subscribe-to-flats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAM9E,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyB,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC5E,MAAM,MAAM,qBAAqB,GAC7B;IAAE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;CAAE,GAC1C;IAAE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;CAAE,GAC1C,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,GACnC,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAExC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyB3B,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubscribeToFlats = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const WebSocketOperationFactory_1 = require("../../../../../core/operations/WebSocketOperationFactory");
|
|
6
|
-
const WebSocketErrorUtils_1 = require("../../../../../core/ws/WebSocketErrorUtils");
|
|
7
|
-
const errors_1 = require("../../../schemas/api/errors");
|
|
8
|
-
const updates_1 = require("../../../schemas/api/updates");
|
|
9
|
-
const updates_2 = require("../../../schemas/operations/updates");
|
|
10
|
-
const format_normalizers_1 = require("./utils/format-normalizers");
|
|
11
|
-
const path = '/v2/updates/flats';
|
|
12
|
-
const UpdatesFlatsParamsSchema = updates_2.GetUpdatesParamsSchema;
|
|
13
|
-
exports.SubscribeToFlats = (0, WebSocketOperationFactory_1.createWebSocketOperation)({
|
|
14
|
-
paramsSchema: UpdatesFlatsParamsSchema,
|
|
15
|
-
buildPath: (_params, _apiUrl) => `${path}`,
|
|
16
|
-
buildRequestMessage: (params) => {
|
|
17
|
-
const hasUpdateFormat = Boolean(params.updateFormat);
|
|
18
|
-
const { filter, verbose } = (0, format_normalizers_1.buildWsRequestFilterAndVerbose)(params.updateFormat);
|
|
19
|
-
return {
|
|
20
|
-
beginExclusive: params.beginExclusive,
|
|
21
|
-
endInclusive: params.endInclusive,
|
|
22
|
-
// Server requires verbose; include it always. Only include filter when updateFormat is absent.
|
|
23
|
-
verbose,
|
|
24
|
-
...(hasUpdateFormat ? { updateFormat: (0, format_normalizers_1.normalizeUpdateFormat)(params.updateFormat) } : { filter }),
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
transformInbound: (msg) => WebSocketErrorUtils_1.WebSocketErrorUtils.parseUnion(msg, zod_1.z.union([
|
|
28
|
-
zod_1.z.object({ update: updates_1.JsUpdateSchema }),
|
|
29
|
-
zod_1.z.object({ update: updates_1.WsUpdateSchema }),
|
|
30
|
-
errors_1.JsCantonErrorSchema,
|
|
31
|
-
errors_1.WsCantonErrorSchema,
|
|
32
|
-
]), 'SubscribeToFlats'),
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=subscribe-to-flats.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscribe-to-flats.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/subscribe-to-flats.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wGAAoG;AACpG,oFAAiF;AACjF,wDAAuF;AACvF,0DAA8E;AAC9E,iEAA6E;AAC7E,mEAAmG;AAEnG,MAAM,IAAI,GAAG,mBAA4B,CAAC;AAE1C,MAAM,wBAAwB,GAAG,gCAAsB,CAAC;AAS3C,QAAA,gBAAgB,GAAG,IAAA,oDAAwB,EAAuD;IAC7G,YAAY,EAAE,wBAAwB;IACtC,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE;IAC1C,mBAAmB,EAAE,CAAC,MAAM,EAAE,EAAE;QAC9B,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,mDAA8B,EAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAChF,OAAO;YACL,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,+FAA+F;YAC/F,OAAO;YACP,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAA,0CAAqB,EAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;SACjG,CAAC;IACJ,CAAC;IACD,gBAAgB,EAAE,CAAC,GAAG,EAAE,EAAE,CACxB,yCAAmB,CAAC,UAAU,CAC5B,GAAG,EACH,OAAC,CAAC,KAAK,CAAC;QACN,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,wBAAc,EAAE,CAAC;QACpC,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,wBAAc,EAAE,CAAC;QACpC,4BAAmB;QACnB,4BAAmB;KACpB,CAAC,EACF,kBAAkB,CACnB;CACJ,CAAC,CAAC"}
|
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
import { type z } from 'zod';
|
|
2
|
-
import { type JsCantonErrorSchema, type WsCantonErrorSchema } from '../../../schemas/api/errors';
|
|
3
|
-
import { type JsTransactionTreeSchema, type WsUpdateTreesSchema } from '../../../schemas/api/updates';
|
|
4
|
-
declare const UpdatesTreesParamsSchema: z.ZodObject<{
|
|
5
|
-
beginExclusive: z.ZodNumber;
|
|
6
|
-
endInclusive: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
streamIdleTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
updateFormat: z.ZodObject<{
|
|
10
|
-
includeTransactions: z.ZodOptional<z.ZodObject<{
|
|
11
|
-
eventFormat: z.ZodObject<{
|
|
12
|
-
filtersByParty: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
13
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
14
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
15
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
InterfaceFilter: z.ZodObject<{
|
|
18
|
-
value: z.ZodObject<{
|
|
19
|
-
interfaceId: z.ZodString;
|
|
20
|
-
includeInterfaceView: z.ZodBoolean;
|
|
21
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
TemplateFilter: z.ZodObject<{
|
|
26
|
-
value: z.ZodObject<{
|
|
27
|
-
templateId: z.ZodString;
|
|
28
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
WildcardFilter: z.ZodObject<{
|
|
33
|
-
value: z.ZodObject<{
|
|
34
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
35
|
-
}, z.core.$strip>;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
}, z.core.$strip>]>;
|
|
38
|
-
}, z.core.$strip>>;
|
|
39
|
-
}, z.core.$strip>>;
|
|
40
|
-
filtersForAnyParty: z.ZodOptional<z.ZodObject<{
|
|
41
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
42
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
43
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
44
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
-
InterfaceFilter: z.ZodObject<{
|
|
46
|
-
value: z.ZodObject<{
|
|
47
|
-
interfaceId: z.ZodString;
|
|
48
|
-
includeInterfaceView: z.ZodBoolean;
|
|
49
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
50
|
-
}, z.core.$strip>;
|
|
51
|
-
}, z.core.$strip>;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
TemplateFilter: z.ZodObject<{
|
|
54
|
-
value: z.ZodObject<{
|
|
55
|
-
templateId: z.ZodString;
|
|
56
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
57
|
-
}, z.core.$strip>;
|
|
58
|
-
}, z.core.$strip>;
|
|
59
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
-
WildcardFilter: z.ZodObject<{
|
|
61
|
-
value: z.ZodObject<{
|
|
62
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
}, z.core.$strip>;
|
|
65
|
-
}, z.core.$strip>]>;
|
|
66
|
-
}, z.core.$strip>>;
|
|
67
|
-
}, z.core.$strip>>;
|
|
68
|
-
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
-
}, z.core.$strip>;
|
|
70
|
-
transactionShape: z.ZodUnion<readonly [z.ZodLiteral<"TRANSACTION_SHAPE_ACS_DELTA">, z.ZodLiteral<"TRANSACTION_SHAPE_LEDGER_EFFECTS">]>;
|
|
71
|
-
}, z.core.$strip>>;
|
|
72
|
-
includeReassignments: z.ZodOptional<z.ZodObject<{
|
|
73
|
-
filtersByParty: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
74
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
75
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
76
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
77
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
-
InterfaceFilter: z.ZodObject<{
|
|
79
|
-
value: z.ZodObject<{
|
|
80
|
-
interfaceId: z.ZodString;
|
|
81
|
-
includeInterfaceView: z.ZodBoolean;
|
|
82
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
}, z.core.$strip>;
|
|
85
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
-
TemplateFilter: z.ZodObject<{
|
|
87
|
-
value: z.ZodObject<{
|
|
88
|
-
templateId: z.ZodString;
|
|
89
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
90
|
-
}, z.core.$strip>;
|
|
91
|
-
}, z.core.$strip>;
|
|
92
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
93
|
-
WildcardFilter: z.ZodObject<{
|
|
94
|
-
value: z.ZodObject<{
|
|
95
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
}, z.core.$strip>;
|
|
98
|
-
}, z.core.$strip>]>;
|
|
99
|
-
}, z.core.$strip>>;
|
|
100
|
-
}, z.core.$strip>>;
|
|
101
|
-
filtersForAnyParty: z.ZodOptional<z.ZodObject<{
|
|
102
|
-
cumulative: z.ZodArray<z.ZodObject<{
|
|
103
|
-
identifierFilter: z.ZodUnion<readonly [z.ZodObject<{
|
|
104
|
-
Empty: z.ZodObject<{}, z.core.$strip>;
|
|
105
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
-
InterfaceFilter: z.ZodObject<{
|
|
107
|
-
value: z.ZodObject<{
|
|
108
|
-
interfaceId: z.ZodString;
|
|
109
|
-
includeInterfaceView: z.ZodBoolean;
|
|
110
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
111
|
-
}, z.core.$strip>;
|
|
112
|
-
}, z.core.$strip>;
|
|
113
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
114
|
-
TemplateFilter: z.ZodObject<{
|
|
115
|
-
value: z.ZodObject<{
|
|
116
|
-
templateId: z.ZodString;
|
|
117
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
118
|
-
}, z.core.$strip>;
|
|
119
|
-
}, z.core.$strip>;
|
|
120
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
-
WildcardFilter: z.ZodObject<{
|
|
122
|
-
value: z.ZodObject<{
|
|
123
|
-
includeCreatedEventBlob: z.ZodBoolean;
|
|
124
|
-
}, z.core.$strip>;
|
|
125
|
-
}, z.core.$strip>;
|
|
126
|
-
}, z.core.$strip>]>;
|
|
127
|
-
}, z.core.$strip>>;
|
|
128
|
-
}, z.core.$strip>>;
|
|
129
|
-
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
-
}, z.core.$strip>>;
|
|
131
|
-
includeTopologyEvents: z.ZodOptional<z.ZodObject<{
|
|
132
|
-
includeParticipantAuthorizationEvents: z.ZodOptional<z.ZodObject<{
|
|
133
|
-
parties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
134
|
-
}, z.core.$strip>>;
|
|
135
|
-
}, z.core.$strip>>;
|
|
136
|
-
}, z.core.$strip>;
|
|
137
|
-
}, z.core.$strip>;
|
|
138
|
-
export type UpdatesTreesWsParams = z.infer<typeof UpdatesTreesParamsSchema>;
|
|
139
|
-
export type UpdatesTreesWsMessage = {
|
|
140
|
-
update: {
|
|
141
|
-
JsTransactionTree: z.infer<typeof JsTransactionTreeSchema>;
|
|
142
|
-
};
|
|
143
|
-
} | {
|
|
144
|
-
update: z.infer<typeof WsUpdateTreesSchema>;
|
|
145
|
-
} | z.infer<typeof JsCantonErrorSchema> | z.infer<typeof WsCantonErrorSchema>;
|
|
146
|
-
export declare const SubscribeToTrees: new (client: import("../../../../..").BaseClient) => {
|
|
147
|
-
client: import("../../../../..").BaseClient;
|
|
148
|
-
subscribe: (params: {
|
|
149
|
-
beginExclusive: number;
|
|
150
|
-
updateFormat: {
|
|
151
|
-
includeTransactions?: {
|
|
152
|
-
eventFormat: {
|
|
153
|
-
filtersByParty: Record<string, {
|
|
154
|
-
cumulative: {
|
|
155
|
-
identifierFilter: {
|
|
156
|
-
Empty: Record<string, never>;
|
|
157
|
-
} | {
|
|
158
|
-
InterfaceFilter: {
|
|
159
|
-
value: {
|
|
160
|
-
interfaceId: string;
|
|
161
|
-
includeInterfaceView: boolean;
|
|
162
|
-
includeCreatedEventBlob: boolean;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
} | {
|
|
166
|
-
TemplateFilter: {
|
|
167
|
-
value: {
|
|
168
|
-
templateId: string;
|
|
169
|
-
includeCreatedEventBlob: boolean;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
} | {
|
|
173
|
-
WildcardFilter: {
|
|
174
|
-
value: {
|
|
175
|
-
includeCreatedEventBlob: boolean;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
}[];
|
|
180
|
-
}>;
|
|
181
|
-
filtersForAnyParty?: {
|
|
182
|
-
cumulative: {
|
|
183
|
-
identifierFilter: {
|
|
184
|
-
Empty: Record<string, never>;
|
|
185
|
-
} | {
|
|
186
|
-
InterfaceFilter: {
|
|
187
|
-
value: {
|
|
188
|
-
interfaceId: string;
|
|
189
|
-
includeInterfaceView: boolean;
|
|
190
|
-
includeCreatedEventBlob: boolean;
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
|
-
} | {
|
|
194
|
-
TemplateFilter: {
|
|
195
|
-
value: {
|
|
196
|
-
templateId: string;
|
|
197
|
-
includeCreatedEventBlob: boolean;
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
} | {
|
|
201
|
-
WildcardFilter: {
|
|
202
|
-
value: {
|
|
203
|
-
includeCreatedEventBlob: boolean;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
}[];
|
|
208
|
-
} | undefined;
|
|
209
|
-
verbose?: boolean | undefined;
|
|
210
|
-
};
|
|
211
|
-
transactionShape: "TRANSACTION_SHAPE_ACS_DELTA" | "TRANSACTION_SHAPE_LEDGER_EFFECTS";
|
|
212
|
-
} | undefined;
|
|
213
|
-
includeReassignments?: {
|
|
214
|
-
filtersByParty: Record<string, {
|
|
215
|
-
cumulative: {
|
|
216
|
-
identifierFilter: {
|
|
217
|
-
Empty: Record<string, never>;
|
|
218
|
-
} | {
|
|
219
|
-
InterfaceFilter: {
|
|
220
|
-
value: {
|
|
221
|
-
interfaceId: string;
|
|
222
|
-
includeInterfaceView: boolean;
|
|
223
|
-
includeCreatedEventBlob: boolean;
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
} | {
|
|
227
|
-
TemplateFilter: {
|
|
228
|
-
value: {
|
|
229
|
-
templateId: string;
|
|
230
|
-
includeCreatedEventBlob: boolean;
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
} | {
|
|
234
|
-
WildcardFilter: {
|
|
235
|
-
value: {
|
|
236
|
-
includeCreatedEventBlob: boolean;
|
|
237
|
-
};
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
}[];
|
|
241
|
-
}>;
|
|
242
|
-
filtersForAnyParty?: {
|
|
243
|
-
cumulative: {
|
|
244
|
-
identifierFilter: {
|
|
245
|
-
Empty: Record<string, never>;
|
|
246
|
-
} | {
|
|
247
|
-
InterfaceFilter: {
|
|
248
|
-
value: {
|
|
249
|
-
interfaceId: string;
|
|
250
|
-
includeInterfaceView: boolean;
|
|
251
|
-
includeCreatedEventBlob: boolean;
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
} | {
|
|
255
|
-
TemplateFilter: {
|
|
256
|
-
value: {
|
|
257
|
-
templateId: string;
|
|
258
|
-
includeCreatedEventBlob: boolean;
|
|
259
|
-
};
|
|
260
|
-
};
|
|
261
|
-
} | {
|
|
262
|
-
WildcardFilter: {
|
|
263
|
-
value: {
|
|
264
|
-
includeCreatedEventBlob: boolean;
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
}[];
|
|
269
|
-
} | undefined;
|
|
270
|
-
verbose?: boolean | undefined;
|
|
271
|
-
} | undefined;
|
|
272
|
-
includeTopologyEvents?: {
|
|
273
|
-
includeParticipantAuthorizationEvents?: {
|
|
274
|
-
parties?: string[] | undefined;
|
|
275
|
-
} | undefined;
|
|
276
|
-
} | undefined;
|
|
277
|
-
};
|
|
278
|
-
endInclusive?: number | undefined;
|
|
279
|
-
limit?: number | undefined;
|
|
280
|
-
streamIdleTimeoutMs?: number | undefined;
|
|
281
|
-
}, handlers: import("../../../../..").WebSocketHandlers<UpdatesTreesWsMessage, unknown>) => Promise<import("../../../../..").WebSocketSubscription>;
|
|
282
|
-
};
|
|
283
|
-
export {};
|
|
284
|
-
//# sourceMappingURL=subscribe-to-trees.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscribe-to-trees.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/subscribe-to-trees.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,EAAE,KAAK,uBAAuB,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAMtG,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyB,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC5E,MAAM,MAAM,qBAAqB,GAC7B;IAAE,MAAM,EAAE;QAAE,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;KAAE,CAAA;CAAE,GAC1E;IAAE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;CAAE,GAC/C,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,GACnC,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAExC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAY3B,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubscribeToTrees = void 0;
|
|
4
|
-
const WebSocketOperationFactory_1 = require("../../../../../core/operations/WebSocketOperationFactory");
|
|
5
|
-
const updates_1 = require("../../../schemas/operations/updates");
|
|
6
|
-
const format_normalizers_1 = require("./utils/format-normalizers");
|
|
7
|
-
const path = '/v2/updates/trees';
|
|
8
|
-
const UpdatesTreesParamsSchema = updates_1.GetUpdatesParamsSchema;
|
|
9
|
-
exports.SubscribeToTrees = (0, WebSocketOperationFactory_1.createWebSocketOperation)({
|
|
10
|
-
paramsSchema: UpdatesTreesParamsSchema,
|
|
11
|
-
buildPath: (_params, _apiUrl) => `${path}`,
|
|
12
|
-
buildRequestMessage: (params) => {
|
|
13
|
-
const { filter, verbose } = (0, format_normalizers_1.buildWsRequestFilterAndVerbose)(params.updateFormat);
|
|
14
|
-
return {
|
|
15
|
-
beginExclusive: params.beginExclusive,
|
|
16
|
-
endInclusive: params.endInclusive,
|
|
17
|
-
verbose,
|
|
18
|
-
filter,
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
//# sourceMappingURL=subscribe-to-trees.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscribe-to-trees.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/updates/subscribe-to-trees.ts"],"names":[],"mappings":";;;AACA,wGAAoG;AAGpG,iEAA6E;AAC7E,mEAA4E;AAE5E,MAAM,IAAI,GAAG,mBAA4B,CAAC;AAE1C,MAAM,wBAAwB,GAAG,gCAAsB,CAAC;AAS3C,QAAA,gBAAgB,GAAG,IAAA,oDAAwB,EAAuD;IAC7G,YAAY,EAAE,wBAAwB;IACtC,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE;IAC1C,mBAAmB,EAAE,CAAC,MAAM,EAAE,EAAE;QAC9B,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,mDAA8B,EAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAChF,OAAO;YACL,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,OAAO;YACP,MAAM;SACP,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/build/src/clients/ledger-json-api/operations/v2/updates/utils/format-normalizers.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { GetUpdatesParams } from '../../../../schemas/operations/updates';
|
|
2
|
-
export declare function normalizeUpdateFormat(p: GetUpdatesParams['updateFormat']): unknown;
|
|
3
|
-
export declare function buildWsRequestFilterAndVerbose(p: GetUpdatesParams['updateFormat']): {
|
|
4
|
-
filter?: unknown;
|
|
5
|
-
verbose: boolean;
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=format-normalizers.d.ts.map
|
package/build/src/clients/ledger-json-api/operations/v2/updates/utils/format-normalizers.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format-normalizers.d.ts","sourceRoot":"","sources":["../../../../../../../../src/clients/ledger-json-api/operations/v2/updates/utils/format-normalizers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAoB,MAAM,wCAAwC,CAAC;AAEjG,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,GAAG,OAAO,CA8DlF;AAGD,wBAAgB,8BAA8B,CAAC,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,GAAG;IACnF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB,CAmCA"}
|