@interopio/fdc3 2.10.1 → 2.11.0
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/changelog.md +2 -0
- package/dist/fdc3.electron.es.js +49 -17
- package/dist/fdc3.electron.umd.js +49 -17
- package/dist/fdc3.es.js +49 -17
- package/dist/fdc3.umd.js +49 -17
- package/package.json +5 -5
package/changelog.md
CHANGED
package/dist/fdc3.electron.es.js
CHANGED
|
@@ -2241,9 +2241,8 @@ var sideChannelList = function getSideChannelList() {
|
|
|
2241
2241
|
}
|
|
2242
2242
|
},
|
|
2243
2243
|
'delete': function (key) {
|
|
2244
|
-
var root = $o && $o.next;
|
|
2245
2244
|
var deletedNode = listDelete($o, key);
|
|
2246
|
-
if (deletedNode &&
|
|
2245
|
+
if (deletedNode && $o && !$o.next) {
|
|
2247
2246
|
$o = void undefined;
|
|
2248
2247
|
}
|
|
2249
2248
|
return !!deletedNode;
|
|
@@ -2265,7 +2264,6 @@ var sideChannelList = function getSideChannelList() {
|
|
|
2265
2264
|
listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
|
|
2266
2265
|
}
|
|
2267
2266
|
};
|
|
2268
|
-
// @ts-expect-error TODO: figure out why this is erroring
|
|
2269
2267
|
return channel;
|
|
2270
2268
|
};
|
|
2271
2269
|
|
|
@@ -2437,7 +2435,10 @@ var sideChannel = function getSideChannel() {
|
|
|
2437
2435
|
var channel = {
|
|
2438
2436
|
assert: function (key) {
|
|
2439
2437
|
if (!channel.has(key)) {
|
|
2440
|
-
|
|
2438
|
+
var keyDesc = key && Object(key) === key
|
|
2439
|
+
? 'the given object key'
|
|
2440
|
+
: inspect(key);
|
|
2441
|
+
throw new $TypeError$1('Side channel does not contain ' + keyDesc);
|
|
2441
2442
|
}
|
|
2442
2443
|
},
|
|
2443
2444
|
'delete': function (key) {
|
|
@@ -2457,7 +2458,7 @@ var sideChannel = function getSideChannel() {
|
|
|
2457
2458
|
$channelData.set(key, value);
|
|
2458
2459
|
}
|
|
2459
2460
|
};
|
|
2460
|
-
|
|
2461
|
+
|
|
2461
2462
|
return channel;
|
|
2462
2463
|
};
|
|
2463
2464
|
|
|
@@ -4998,7 +4999,7 @@ Decoder$1.valueAt;
|
|
|
4998
4999
|
/** See `Decoder.succeed` */
|
|
4999
5000
|
Decoder$1.succeed;
|
|
5000
5001
|
/** See `Decoder.fail` */
|
|
5001
|
-
Decoder$1.fail;
|
|
5002
|
+
var fail = Decoder$1.fail;
|
|
5002
5003
|
/** See `Decoder.lazy` */
|
|
5003
5004
|
Decoder$1.lazy;
|
|
5004
5005
|
|
|
@@ -5009,11 +5010,15 @@ const regexDecoder = anyJson$1().andThen((value) => {
|
|
|
5009
5010
|
});
|
|
5010
5011
|
const urlDecoder = nonEmptyStringDecoder$1.andThen((url) => {
|
|
5011
5012
|
try {
|
|
5012
|
-
new URL(url);
|
|
5013
|
+
const { protocol } = new URL(url);
|
|
5014
|
+
const disallowedProtocols = ["data:", "javascript:", "vbscript:"];
|
|
5015
|
+
if (disallowedProtocols.includes(protocol)) {
|
|
5016
|
+
return fail(`Expected a URL with a safe protocol, got: ${protocol} (disallowed protocols: ${disallowedProtocols.join(", ")})`);
|
|
5017
|
+
}
|
|
5013
5018
|
return nonEmptyStringDecoder$1;
|
|
5014
5019
|
}
|
|
5015
5020
|
catch {
|
|
5016
|
-
return fail("
|
|
5021
|
+
return fail("Expected a valid URL");
|
|
5017
5022
|
}
|
|
5018
5023
|
});
|
|
5019
5024
|
|
|
@@ -5025,7 +5030,7 @@ const intentDefinitionDecoder = object$1({
|
|
|
5025
5030
|
});
|
|
5026
5031
|
const v2TypeDecoder = oneOf$1(constant$1("web"), constant$1("native"), constant$1("citrix"), constant$1("onlineNative"), constant$1("other"));
|
|
5027
5032
|
const v2DetailsDecoder = object$1({
|
|
5028
|
-
url:
|
|
5033
|
+
url: urlDecoder
|
|
5029
5034
|
});
|
|
5030
5035
|
const v2IconDecoder = object$1({
|
|
5031
5036
|
src: nonEmptyStringDecoder$1,
|
|
@@ -5053,18 +5058,19 @@ const v2UserChannelDecoder = object$1({
|
|
|
5053
5058
|
listensFor: optional$1(array$1(nonEmptyStringDecoder$1))
|
|
5054
5059
|
});
|
|
5055
5060
|
const v2AppChannelDecoder = object$1({
|
|
5056
|
-
name: nonEmptyStringDecoder$1,
|
|
5061
|
+
name: optional$1(nonEmptyStringDecoder$1),
|
|
5062
|
+
id: optional$1(nonEmptyStringDecoder$1),
|
|
5057
5063
|
description: optional$1(nonEmptyStringDecoder$1),
|
|
5058
5064
|
broadcasts: optional$1(array$1(nonEmptyStringDecoder$1)),
|
|
5059
5065
|
listensFor: optional$1(array$1(nonEmptyStringDecoder$1))
|
|
5060
|
-
});
|
|
5066
|
+
}).where((appChannel) => Boolean(appChannel.name || appChannel.id), "Expected at least a name or an id property to be present in the app channel definition");
|
|
5061
5067
|
const v2InteropDecoder = object$1({
|
|
5062
5068
|
intents: optional$1(v2IntentsDecoder),
|
|
5063
5069
|
userChannels: optional$1(v2UserChannelDecoder),
|
|
5064
5070
|
appChannels: optional$1(array$1(v2AppChannelDecoder))
|
|
5065
5071
|
});
|
|
5066
5072
|
const glue42ApplicationDetailsDecoder = object$1({
|
|
5067
|
-
url: optional$1(
|
|
5073
|
+
url: optional$1(urlDecoder),
|
|
5068
5074
|
top: optional$1(number$1()),
|
|
5069
5075
|
left: optional$1(number$1()),
|
|
5070
5076
|
width: optional$1(nonNegativeNumberDecoder),
|
|
@@ -7053,6 +7059,7 @@ function r$2(name) {
|
|
|
7053
7059
|
{ json: 'details', js: 'details', typ: u$2(undefined, r$2('PurpleOrderDetails')) },
|
|
7054
7060
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7055
7061
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7062
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7056
7063
|
{ json: 'type', js: 'type', typ: r$2('OrderType') },
|
|
7057
7064
|
], 'any'),
|
|
7058
7065
|
PurpleOrderDetails: o$2([{ json: 'product', js: 'product', typ: u$2(undefined, r$2('ProductObject')) }], 'any'),
|
|
@@ -7060,6 +7067,7 @@ function r$2(name) {
|
|
|
7060
7067
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7061
7068
|
{ json: 'instrument', js: 'instrument', typ: u$2(undefined, r$2('InstrumentElement')) },
|
|
7062
7069
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7070
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7063
7071
|
{ json: 'type', js: 'type', typ: r$2('ProductType') },
|
|
7064
7072
|
], 'any'),
|
|
7065
7073
|
OrderList: o$2([
|
|
@@ -7072,6 +7080,7 @@ function r$2(name) {
|
|
|
7072
7080
|
{ json: 'details', js: 'details', typ: u$2(undefined, r$2('FluffyOrderDetails')) },
|
|
7073
7081
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7074
7082
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7083
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7075
7084
|
{ json: 'type', js: 'type', typ: r$2('OrderType') },
|
|
7076
7085
|
], 'any'),
|
|
7077
7086
|
FluffyOrderDetails: o$2([{ json: 'product', js: 'product', typ: u$2(undefined, r$2('ProductObject')) }], 'any'),
|
|
@@ -7109,6 +7118,7 @@ function r$2(name) {
|
|
|
7109
7118
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7110
7119
|
{ json: 'instrument', js: 'instrument', typ: u$2(undefined, r$2('InstrumentElement')) },
|
|
7111
7120
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7121
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7112
7122
|
{ json: 'type', js: 'type', typ: r$2('ProductType') },
|
|
7113
7123
|
], 'any'),
|
|
7114
7124
|
TimeRange: o$2([
|
|
@@ -7121,6 +7131,7 @@ function r$2(name) {
|
|
|
7121
7131
|
Trade: o$2([
|
|
7122
7132
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7123
7133
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7134
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7124
7135
|
{ json: 'product', js: 'product', typ: r$2('ProductObject') },
|
|
7125
7136
|
{ json: 'type', js: 'type', typ: r$2('TradeType') },
|
|
7126
7137
|
], 'any'),
|
|
@@ -7133,6 +7144,7 @@ function r$2(name) {
|
|
|
7133
7144
|
TradeElement: o$2([
|
|
7134
7145
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7135
7146
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7147
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7136
7148
|
{ json: 'product', js: 'product', typ: r$2('ProductObject') },
|
|
7137
7149
|
{ json: 'type', js: 'type', typ: r$2('TradeType') },
|
|
7138
7150
|
], 'any'),
|
|
@@ -7271,7 +7283,7 @@ function r$1(name) {
|
|
|
7271
7283
|
{ json: 'fdc3Version', js: 'fdc3Version', typ: '' },
|
|
7272
7284
|
{ json: 'identityUrl', js: 'identityUrl', typ: '' },
|
|
7273
7285
|
{ json: 'intentResolver', js: 'intentResolver', typ: u$1(undefined, true) },
|
|
7274
|
-
],
|
|
7286
|
+
], false),
|
|
7275
7287
|
WebConnectionProtocol3HandshakePayload: o$1([
|
|
7276
7288
|
{ json: 'appLaunchTimeout', js: 'appLaunchTimeout', typ: u$1(undefined, 3.14) },
|
|
7277
7289
|
{ json: 'channelSelectorUrl', js: 'channelSelectorUrl', typ: u$1(true, '') },
|
|
@@ -7383,7 +7395,10 @@ function r$1(name) {
|
|
|
7383
7395
|
{ json: 'type', js: 'type', typ: '' },
|
|
7384
7396
|
], 'any'),
|
|
7385
7397
|
BroadcastResponseResponsePayload: o$1([{ json: 'error', js: 'error', typ: u$1(undefined, r$1('ResponsePayloadError')) }], 'any'),
|
|
7386
|
-
ChannelChangedEventPayload: o$1([
|
|
7398
|
+
ChannelChangedEventPayload: o$1([
|
|
7399
|
+
{ json: 'newChannelId', js: 'newChannelId', typ: u$1(undefined, u$1(null, '')) },
|
|
7400
|
+
{ json: 'currentChannelId', js: 'currentChannelId', typ: u$1(undefined, u$1(null, '')) },
|
|
7401
|
+
], false),
|
|
7387
7402
|
CreatePrivateChannelResponsePayload: o$1([
|
|
7388
7403
|
{ json: 'error', js: 'error', typ: u$1(undefined, r$1('PurpleError')) },
|
|
7389
7404
|
{ json: 'privateChannel', js: 'privateChannel', typ: u$1(undefined, r$1('Channel')) },
|
|
@@ -8070,6 +8085,8 @@ var OpenError;
|
|
|
8070
8085
|
OpenError["DesktopAgentNotFound"] = "DesktopAgentNotFound";
|
|
8071
8086
|
/** Returned if a timeout occurs before a call to open is resolved for any reason other than the not adding its context listener in time.*/
|
|
8072
8087
|
OpenError["ApiTimeout"] = "ApiTimeout";
|
|
8088
|
+
/** Returned when incorrect arguments are passed to API calls.*/
|
|
8089
|
+
OpenError["InvalidArguments"] = "InvalidArguments";
|
|
8073
8090
|
})(OpenError || (OpenError = {}));
|
|
8074
8091
|
/** Constants representing the errors that can be encountered when calling the `findIntent`, `findIntentsByContext`, `raiseIntent` or `raiseIntentForContext` methods on the DesktopAgent (`fdc3`). */
|
|
8075
8092
|
var ResolveError;
|
|
@@ -8090,10 +8107,14 @@ var ResolveError;
|
|
|
8090
8107
|
ResolveError["IntentDeliveryFailed"] = "IntentDeliveryFailed";
|
|
8091
8108
|
/** Returned if a call to one of the `raiseIntent` functions is made with an invalid context argument. Contexts should be Objects with at least a `type` field that has a `string` value.*/
|
|
8092
8109
|
ResolveError["MalformedContext"] = "MalformedContext";
|
|
8110
|
+
/** Returned if `fdc3.addIntentListener` is called for a specified intent that the application has already added a listener for and has not subsequently removed it. */
|
|
8111
|
+
ResolveError["IntentListenerConflict"] = "IntentListenerConflict";
|
|
8093
8112
|
/** @experimental Returned if the specified Desktop Agent is not found, via a connected Desktop Agent Bridge.*/
|
|
8094
8113
|
ResolveError["DesktopAgentNotFound"] = "DesktopAgentNotFound";
|
|
8095
8114
|
/** Returned if a timeout occurs before the API call is resolved for any reason other than the resolver timing out (use ResolverTimeout) or an app launched by a raiseIntent function doesn't add its intent listener in time (use IntentDeliveryFailed).*/
|
|
8096
8115
|
ResolveError["ApiTimeout"] = "ApiTimeout";
|
|
8116
|
+
/** Returned when incorrect arguments are passed to API calls.*/
|
|
8117
|
+
ResolveError["InvalidArguments"] = "InvalidArguments";
|
|
8097
8118
|
})(ResolveError || (ResolveError = {}));
|
|
8098
8119
|
var ResultError;
|
|
8099
8120
|
(function (ResultError) {
|
|
@@ -8116,6 +8137,8 @@ var ChannelError;
|
|
|
8116
8137
|
ChannelError["MalformedContext"] = "MalformedContext";
|
|
8117
8138
|
/** Returned if a timeout occurs before any Channel related API call is resolved.*/
|
|
8118
8139
|
ChannelError["ApiTimeout"] = "ApiTimeout";
|
|
8140
|
+
/** Returned when incorrect arguments are passed to API calls.*/
|
|
8141
|
+
ChannelError["InvalidArguments"] = "InvalidArguments";
|
|
8119
8142
|
})(ChannelError || (ChannelError = {}));
|
|
8120
8143
|
var BridgingError;
|
|
8121
8144
|
(function (BridgingError) {
|
|
@@ -8168,7 +8191,7 @@ var WebDesktopAgentType;
|
|
|
8168
8191
|
*/
|
|
8169
8192
|
const exhaustiveStringTuple = () => (...tuple) => tuple;
|
|
8170
8193
|
|
|
8171
|
-
const STANDARD_CONTEXT_TYPES = exhaustiveStringTuple()('fdc3.action', 'fdc3.chart', 'fdc3.chat.initSettings', 'fdc3.chat.message', 'fdc3.chat.room', 'fdc3.chat.searchCriteria', 'fdc3.contact', 'fdc3.contactList', 'fdc3.country', 'fdc3.currency', 'fdc3.email', 'fdc3.instrument', 'fdc3.instrumentList', 'fdc3.interaction', 'fdc3.message', 'fdc3.
|
|
8194
|
+
const STANDARD_CONTEXT_TYPES = exhaustiveStringTuple()('fdc3.action', 'fdc3.chart', 'fdc3.chat.initSettings', 'fdc3.chat.message', 'fdc3.chat.room', 'fdc3.chat.searchCriteria', 'fdc3.contact', 'fdc3.contactList', 'fdc3.country', 'fdc3.currency', 'fdc3.email', 'fdc3.fileAttachment', 'fdc3.instrument', 'fdc3.instrumentList', 'fdc3.interaction', 'fdc3.message', 'fdc3.nothing', 'fdc3.organization', 'fdc3.portfolio', 'fdc3.position', 'fdc3.timeRange', 'fdc3.transactionResult', 'fdc3.valuation');
|
|
8172
8195
|
// used internally to check if a given intent/context is a standard one
|
|
8173
8196
|
new Set(STANDARD_CONTEXT_TYPES);
|
|
8174
8197
|
|
|
@@ -8185,23 +8208,32 @@ new Set(STANDARD_INTENTS);
|
|
|
8185
8208
|
*/
|
|
8186
8209
|
var ContextTypes;
|
|
8187
8210
|
(function (ContextTypes) {
|
|
8211
|
+
ContextTypes["Action"] = "fdc3.action";
|
|
8188
8212
|
ContextTypes["Chart"] = "fdc3.chart";
|
|
8189
8213
|
ContextTypes["ChatInitSettings"] = "fdc3.chat.initSettings";
|
|
8214
|
+
ContextTypes["ChatMessage"] = "fdc3.chat.message";
|
|
8190
8215
|
ContextTypes["ChatRoom"] = "fdc3.chat.room";
|
|
8216
|
+
ContextTypes["ChatSearchCriteria"] = "fdc3.chat.searchCriteria";
|
|
8191
8217
|
ContextTypes["Contact"] = "fdc3.contact";
|
|
8192
8218
|
ContextTypes["ContactList"] = "fdc3.contactList";
|
|
8193
8219
|
ContextTypes["Country"] = "fdc3.country";
|
|
8194
8220
|
ContextTypes["Currency"] = "fdc3.currency";
|
|
8195
8221
|
ContextTypes["Email"] = "fdc3.email";
|
|
8222
|
+
ContextTypes["FileAttachment"] = "fdc3.fileAttachment";
|
|
8196
8223
|
ContextTypes["Instrument"] = "fdc3.instrument";
|
|
8197
8224
|
ContextTypes["InstrumentList"] = "fdc3.instrumentList";
|
|
8198
8225
|
ContextTypes["Interaction"] = "fdc3.interaction";
|
|
8226
|
+
ContextTypes["Message"] = "fdc3.message";
|
|
8199
8227
|
ContextTypes["Nothing"] = "fdc3.nothing";
|
|
8228
|
+
ContextTypes["Order"] = "fdc3.order";
|
|
8229
|
+
ContextTypes["OrderList"] = "fdc3.orderList";
|
|
8200
8230
|
ContextTypes["Organization"] = "fdc3.organization";
|
|
8201
8231
|
ContextTypes["Portfolio"] = "fdc3.portfolio";
|
|
8202
8232
|
ContextTypes["Position"] = "fdc3.position";
|
|
8203
|
-
ContextTypes["
|
|
8233
|
+
ContextTypes["Product"] = "fdc3.product";
|
|
8204
8234
|
ContextTypes["TimeRange"] = "fdc3.timeRange";
|
|
8235
|
+
ContextTypes["Trade"] = "fdc3.trade";
|
|
8236
|
+
ContextTypes["TradeList"] = "fdc3.tradeList";
|
|
8205
8237
|
ContextTypes["TransactionResult"] = "fdc3.transactionResult";
|
|
8206
8238
|
ContextTypes["Valuation"] = "fdc3.valuation";
|
|
8207
8239
|
})(ContextTypes || (ContextTypes = {}));
|
|
@@ -10587,7 +10619,7 @@ const fdc3Factory = () => {
|
|
|
10587
10619
|
return ioc.fdc3;
|
|
10588
10620
|
};
|
|
10589
10621
|
|
|
10590
|
-
var version = "2.
|
|
10622
|
+
var version = "2.11.0";
|
|
10591
10623
|
|
|
10592
10624
|
const inNodeEnv = checkIfInNodeEnv();
|
|
10593
10625
|
const globalScope = inNodeEnv ? process : window;
|
|
@@ -2247,9 +2247,8 @@
|
|
|
2247
2247
|
}
|
|
2248
2248
|
},
|
|
2249
2249
|
'delete': function (key) {
|
|
2250
|
-
var root = $o && $o.next;
|
|
2251
2250
|
var deletedNode = listDelete($o, key);
|
|
2252
|
-
if (deletedNode &&
|
|
2251
|
+
if (deletedNode && $o && !$o.next) {
|
|
2253
2252
|
$o = void undefined;
|
|
2254
2253
|
}
|
|
2255
2254
|
return !!deletedNode;
|
|
@@ -2271,7 +2270,6 @@
|
|
|
2271
2270
|
listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
|
|
2272
2271
|
}
|
|
2273
2272
|
};
|
|
2274
|
-
// @ts-expect-error TODO: figure out why this is erroring
|
|
2275
2273
|
return channel;
|
|
2276
2274
|
};
|
|
2277
2275
|
|
|
@@ -2443,7 +2441,10 @@
|
|
|
2443
2441
|
var channel = {
|
|
2444
2442
|
assert: function (key) {
|
|
2445
2443
|
if (!channel.has(key)) {
|
|
2446
|
-
|
|
2444
|
+
var keyDesc = key && Object(key) === key
|
|
2445
|
+
? 'the given object key'
|
|
2446
|
+
: inspect(key);
|
|
2447
|
+
throw new $TypeError$1('Side channel does not contain ' + keyDesc);
|
|
2447
2448
|
}
|
|
2448
2449
|
},
|
|
2449
2450
|
'delete': function (key) {
|
|
@@ -2463,7 +2464,7 @@
|
|
|
2463
2464
|
$channelData.set(key, value);
|
|
2464
2465
|
}
|
|
2465
2466
|
};
|
|
2466
|
-
|
|
2467
|
+
|
|
2467
2468
|
return channel;
|
|
2468
2469
|
};
|
|
2469
2470
|
|
|
@@ -5004,7 +5005,7 @@
|
|
|
5004
5005
|
/** See `Decoder.succeed` */
|
|
5005
5006
|
Decoder$1.succeed;
|
|
5006
5007
|
/** See `Decoder.fail` */
|
|
5007
|
-
Decoder$1.fail;
|
|
5008
|
+
var fail = Decoder$1.fail;
|
|
5008
5009
|
/** See `Decoder.lazy` */
|
|
5009
5010
|
Decoder$1.lazy;
|
|
5010
5011
|
|
|
@@ -5015,11 +5016,15 @@
|
|
|
5015
5016
|
});
|
|
5016
5017
|
const urlDecoder = nonEmptyStringDecoder$1.andThen((url) => {
|
|
5017
5018
|
try {
|
|
5018
|
-
new URL(url);
|
|
5019
|
+
const { protocol } = new URL(url);
|
|
5020
|
+
const disallowedProtocols = ["data:", "javascript:", "vbscript:"];
|
|
5021
|
+
if (disallowedProtocols.includes(protocol)) {
|
|
5022
|
+
return fail(`Expected a URL with a safe protocol, got: ${protocol} (disallowed protocols: ${disallowedProtocols.join(", ")})`);
|
|
5023
|
+
}
|
|
5019
5024
|
return nonEmptyStringDecoder$1;
|
|
5020
5025
|
}
|
|
5021
5026
|
catch {
|
|
5022
|
-
return fail("
|
|
5027
|
+
return fail("Expected a valid URL");
|
|
5023
5028
|
}
|
|
5024
5029
|
});
|
|
5025
5030
|
|
|
@@ -5031,7 +5036,7 @@
|
|
|
5031
5036
|
});
|
|
5032
5037
|
const v2TypeDecoder = oneOf$1(constant$1("web"), constant$1("native"), constant$1("citrix"), constant$1("onlineNative"), constant$1("other"));
|
|
5033
5038
|
const v2DetailsDecoder = object$1({
|
|
5034
|
-
url:
|
|
5039
|
+
url: urlDecoder
|
|
5035
5040
|
});
|
|
5036
5041
|
const v2IconDecoder = object$1({
|
|
5037
5042
|
src: nonEmptyStringDecoder$1,
|
|
@@ -5059,18 +5064,19 @@
|
|
|
5059
5064
|
listensFor: optional$1(array$1(nonEmptyStringDecoder$1))
|
|
5060
5065
|
});
|
|
5061
5066
|
const v2AppChannelDecoder = object$1({
|
|
5062
|
-
name: nonEmptyStringDecoder$1,
|
|
5067
|
+
name: optional$1(nonEmptyStringDecoder$1),
|
|
5068
|
+
id: optional$1(nonEmptyStringDecoder$1),
|
|
5063
5069
|
description: optional$1(nonEmptyStringDecoder$1),
|
|
5064
5070
|
broadcasts: optional$1(array$1(nonEmptyStringDecoder$1)),
|
|
5065
5071
|
listensFor: optional$1(array$1(nonEmptyStringDecoder$1))
|
|
5066
|
-
});
|
|
5072
|
+
}).where((appChannel) => Boolean(appChannel.name || appChannel.id), "Expected at least a name or an id property to be present in the app channel definition");
|
|
5067
5073
|
const v2InteropDecoder = object$1({
|
|
5068
5074
|
intents: optional$1(v2IntentsDecoder),
|
|
5069
5075
|
userChannels: optional$1(v2UserChannelDecoder),
|
|
5070
5076
|
appChannels: optional$1(array$1(v2AppChannelDecoder))
|
|
5071
5077
|
});
|
|
5072
5078
|
const glue42ApplicationDetailsDecoder = object$1({
|
|
5073
|
-
url: optional$1(
|
|
5079
|
+
url: optional$1(urlDecoder),
|
|
5074
5080
|
top: optional$1(number$1()),
|
|
5075
5081
|
left: optional$1(number$1()),
|
|
5076
5082
|
width: optional$1(nonNegativeNumberDecoder),
|
|
@@ -7059,6 +7065,7 @@
|
|
|
7059
7065
|
{ json: 'details', js: 'details', typ: u$2(undefined, r$2('PurpleOrderDetails')) },
|
|
7060
7066
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7061
7067
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7068
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7062
7069
|
{ json: 'type', js: 'type', typ: r$2('OrderType') },
|
|
7063
7070
|
], 'any'),
|
|
7064
7071
|
PurpleOrderDetails: o$2([{ json: 'product', js: 'product', typ: u$2(undefined, r$2('ProductObject')) }], 'any'),
|
|
@@ -7066,6 +7073,7 @@
|
|
|
7066
7073
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7067
7074
|
{ json: 'instrument', js: 'instrument', typ: u$2(undefined, r$2('InstrumentElement')) },
|
|
7068
7075
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7076
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7069
7077
|
{ json: 'type', js: 'type', typ: r$2('ProductType') },
|
|
7070
7078
|
], 'any'),
|
|
7071
7079
|
OrderList: o$2([
|
|
@@ -7078,6 +7086,7 @@
|
|
|
7078
7086
|
{ json: 'details', js: 'details', typ: u$2(undefined, r$2('FluffyOrderDetails')) },
|
|
7079
7087
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7080
7088
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7089
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7081
7090
|
{ json: 'type', js: 'type', typ: r$2('OrderType') },
|
|
7082
7091
|
], 'any'),
|
|
7083
7092
|
FluffyOrderDetails: o$2([{ json: 'product', js: 'product', typ: u$2(undefined, r$2('ProductObject')) }], 'any'),
|
|
@@ -7115,6 +7124,7 @@
|
|
|
7115
7124
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7116
7125
|
{ json: 'instrument', js: 'instrument', typ: u$2(undefined, r$2('InstrumentElement')) },
|
|
7117
7126
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7127
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7118
7128
|
{ json: 'type', js: 'type', typ: r$2('ProductType') },
|
|
7119
7129
|
], 'any'),
|
|
7120
7130
|
TimeRange: o$2([
|
|
@@ -7127,6 +7137,7 @@
|
|
|
7127
7137
|
Trade: o$2([
|
|
7128
7138
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7129
7139
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7140
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7130
7141
|
{ json: 'product', js: 'product', typ: r$2('ProductObject') },
|
|
7131
7142
|
{ json: 'type', js: 'type', typ: r$2('TradeType') },
|
|
7132
7143
|
], 'any'),
|
|
@@ -7139,6 +7150,7 @@
|
|
|
7139
7150
|
TradeElement: o$2([
|
|
7140
7151
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7141
7152
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7153
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7142
7154
|
{ json: 'product', js: 'product', typ: r$2('ProductObject') },
|
|
7143
7155
|
{ json: 'type', js: 'type', typ: r$2('TradeType') },
|
|
7144
7156
|
], 'any'),
|
|
@@ -7277,7 +7289,7 @@
|
|
|
7277
7289
|
{ json: 'fdc3Version', js: 'fdc3Version', typ: '' },
|
|
7278
7290
|
{ json: 'identityUrl', js: 'identityUrl', typ: '' },
|
|
7279
7291
|
{ json: 'intentResolver', js: 'intentResolver', typ: u$1(undefined, true) },
|
|
7280
|
-
],
|
|
7292
|
+
], false),
|
|
7281
7293
|
WebConnectionProtocol3HandshakePayload: o$1([
|
|
7282
7294
|
{ json: 'appLaunchTimeout', js: 'appLaunchTimeout', typ: u$1(undefined, 3.14) },
|
|
7283
7295
|
{ json: 'channelSelectorUrl', js: 'channelSelectorUrl', typ: u$1(true, '') },
|
|
@@ -7389,7 +7401,10 @@
|
|
|
7389
7401
|
{ json: 'type', js: 'type', typ: '' },
|
|
7390
7402
|
], 'any'),
|
|
7391
7403
|
BroadcastResponseResponsePayload: o$1([{ json: 'error', js: 'error', typ: u$1(undefined, r$1('ResponsePayloadError')) }], 'any'),
|
|
7392
|
-
ChannelChangedEventPayload: o$1([
|
|
7404
|
+
ChannelChangedEventPayload: o$1([
|
|
7405
|
+
{ json: 'newChannelId', js: 'newChannelId', typ: u$1(undefined, u$1(null, '')) },
|
|
7406
|
+
{ json: 'currentChannelId', js: 'currentChannelId', typ: u$1(undefined, u$1(null, '')) },
|
|
7407
|
+
], false),
|
|
7393
7408
|
CreatePrivateChannelResponsePayload: o$1([
|
|
7394
7409
|
{ json: 'error', js: 'error', typ: u$1(undefined, r$1('PurpleError')) },
|
|
7395
7410
|
{ json: 'privateChannel', js: 'privateChannel', typ: u$1(undefined, r$1('Channel')) },
|
|
@@ -8076,6 +8091,8 @@
|
|
|
8076
8091
|
OpenError["DesktopAgentNotFound"] = "DesktopAgentNotFound";
|
|
8077
8092
|
/** Returned if a timeout occurs before a call to open is resolved for any reason other than the not adding its context listener in time.*/
|
|
8078
8093
|
OpenError["ApiTimeout"] = "ApiTimeout";
|
|
8094
|
+
/** Returned when incorrect arguments are passed to API calls.*/
|
|
8095
|
+
OpenError["InvalidArguments"] = "InvalidArguments";
|
|
8079
8096
|
})(OpenError || (OpenError = {}));
|
|
8080
8097
|
/** Constants representing the errors that can be encountered when calling the `findIntent`, `findIntentsByContext`, `raiseIntent` or `raiseIntentForContext` methods on the DesktopAgent (`fdc3`). */
|
|
8081
8098
|
var ResolveError;
|
|
@@ -8096,10 +8113,14 @@
|
|
|
8096
8113
|
ResolveError["IntentDeliveryFailed"] = "IntentDeliveryFailed";
|
|
8097
8114
|
/** Returned if a call to one of the `raiseIntent` functions is made with an invalid context argument. Contexts should be Objects with at least a `type` field that has a `string` value.*/
|
|
8098
8115
|
ResolveError["MalformedContext"] = "MalformedContext";
|
|
8116
|
+
/** Returned if `fdc3.addIntentListener` is called for a specified intent that the application has already added a listener for and has not subsequently removed it. */
|
|
8117
|
+
ResolveError["IntentListenerConflict"] = "IntentListenerConflict";
|
|
8099
8118
|
/** @experimental Returned if the specified Desktop Agent is not found, via a connected Desktop Agent Bridge.*/
|
|
8100
8119
|
ResolveError["DesktopAgentNotFound"] = "DesktopAgentNotFound";
|
|
8101
8120
|
/** Returned if a timeout occurs before the API call is resolved for any reason other than the resolver timing out (use ResolverTimeout) or an app launched by a raiseIntent function doesn't add its intent listener in time (use IntentDeliveryFailed).*/
|
|
8102
8121
|
ResolveError["ApiTimeout"] = "ApiTimeout";
|
|
8122
|
+
/** Returned when incorrect arguments are passed to API calls.*/
|
|
8123
|
+
ResolveError["InvalidArguments"] = "InvalidArguments";
|
|
8103
8124
|
})(ResolveError || (ResolveError = {}));
|
|
8104
8125
|
var ResultError;
|
|
8105
8126
|
(function (ResultError) {
|
|
@@ -8122,6 +8143,8 @@
|
|
|
8122
8143
|
ChannelError["MalformedContext"] = "MalformedContext";
|
|
8123
8144
|
/** Returned if a timeout occurs before any Channel related API call is resolved.*/
|
|
8124
8145
|
ChannelError["ApiTimeout"] = "ApiTimeout";
|
|
8146
|
+
/** Returned when incorrect arguments are passed to API calls.*/
|
|
8147
|
+
ChannelError["InvalidArguments"] = "InvalidArguments";
|
|
8125
8148
|
})(ChannelError || (ChannelError = {}));
|
|
8126
8149
|
var BridgingError;
|
|
8127
8150
|
(function (BridgingError) {
|
|
@@ -8174,7 +8197,7 @@
|
|
|
8174
8197
|
*/
|
|
8175
8198
|
const exhaustiveStringTuple = () => (...tuple) => tuple;
|
|
8176
8199
|
|
|
8177
|
-
const STANDARD_CONTEXT_TYPES = exhaustiveStringTuple()('fdc3.action', 'fdc3.chart', 'fdc3.chat.initSettings', 'fdc3.chat.message', 'fdc3.chat.room', 'fdc3.chat.searchCriteria', 'fdc3.contact', 'fdc3.contactList', 'fdc3.country', 'fdc3.currency', 'fdc3.email', 'fdc3.instrument', 'fdc3.instrumentList', 'fdc3.interaction', 'fdc3.message', 'fdc3.
|
|
8200
|
+
const STANDARD_CONTEXT_TYPES = exhaustiveStringTuple()('fdc3.action', 'fdc3.chart', 'fdc3.chat.initSettings', 'fdc3.chat.message', 'fdc3.chat.room', 'fdc3.chat.searchCriteria', 'fdc3.contact', 'fdc3.contactList', 'fdc3.country', 'fdc3.currency', 'fdc3.email', 'fdc3.fileAttachment', 'fdc3.instrument', 'fdc3.instrumentList', 'fdc3.interaction', 'fdc3.message', 'fdc3.nothing', 'fdc3.organization', 'fdc3.portfolio', 'fdc3.position', 'fdc3.timeRange', 'fdc3.transactionResult', 'fdc3.valuation');
|
|
8178
8201
|
// used internally to check if a given intent/context is a standard one
|
|
8179
8202
|
new Set(STANDARD_CONTEXT_TYPES);
|
|
8180
8203
|
|
|
@@ -8191,23 +8214,32 @@
|
|
|
8191
8214
|
*/
|
|
8192
8215
|
var ContextTypes;
|
|
8193
8216
|
(function (ContextTypes) {
|
|
8217
|
+
ContextTypes["Action"] = "fdc3.action";
|
|
8194
8218
|
ContextTypes["Chart"] = "fdc3.chart";
|
|
8195
8219
|
ContextTypes["ChatInitSettings"] = "fdc3.chat.initSettings";
|
|
8220
|
+
ContextTypes["ChatMessage"] = "fdc3.chat.message";
|
|
8196
8221
|
ContextTypes["ChatRoom"] = "fdc3.chat.room";
|
|
8222
|
+
ContextTypes["ChatSearchCriteria"] = "fdc3.chat.searchCriteria";
|
|
8197
8223
|
ContextTypes["Contact"] = "fdc3.contact";
|
|
8198
8224
|
ContextTypes["ContactList"] = "fdc3.contactList";
|
|
8199
8225
|
ContextTypes["Country"] = "fdc3.country";
|
|
8200
8226
|
ContextTypes["Currency"] = "fdc3.currency";
|
|
8201
8227
|
ContextTypes["Email"] = "fdc3.email";
|
|
8228
|
+
ContextTypes["FileAttachment"] = "fdc3.fileAttachment";
|
|
8202
8229
|
ContextTypes["Instrument"] = "fdc3.instrument";
|
|
8203
8230
|
ContextTypes["InstrumentList"] = "fdc3.instrumentList";
|
|
8204
8231
|
ContextTypes["Interaction"] = "fdc3.interaction";
|
|
8232
|
+
ContextTypes["Message"] = "fdc3.message";
|
|
8205
8233
|
ContextTypes["Nothing"] = "fdc3.nothing";
|
|
8234
|
+
ContextTypes["Order"] = "fdc3.order";
|
|
8235
|
+
ContextTypes["OrderList"] = "fdc3.orderList";
|
|
8206
8236
|
ContextTypes["Organization"] = "fdc3.organization";
|
|
8207
8237
|
ContextTypes["Portfolio"] = "fdc3.portfolio";
|
|
8208
8238
|
ContextTypes["Position"] = "fdc3.position";
|
|
8209
|
-
ContextTypes["
|
|
8239
|
+
ContextTypes["Product"] = "fdc3.product";
|
|
8210
8240
|
ContextTypes["TimeRange"] = "fdc3.timeRange";
|
|
8241
|
+
ContextTypes["Trade"] = "fdc3.trade";
|
|
8242
|
+
ContextTypes["TradeList"] = "fdc3.tradeList";
|
|
8211
8243
|
ContextTypes["TransactionResult"] = "fdc3.transactionResult";
|
|
8212
8244
|
ContextTypes["Valuation"] = "fdc3.valuation";
|
|
8213
8245
|
})(ContextTypes || (ContextTypes = {}));
|
|
@@ -10593,7 +10625,7 @@
|
|
|
10593
10625
|
return ioc.fdc3;
|
|
10594
10626
|
};
|
|
10595
10627
|
|
|
10596
|
-
var version = "2.
|
|
10628
|
+
var version = "2.11.0";
|
|
10597
10629
|
|
|
10598
10630
|
const inNodeEnv = checkIfInNodeEnv();
|
|
10599
10631
|
const globalScope = inNodeEnv ? process : window;
|
package/dist/fdc3.es.js
CHANGED
|
@@ -2241,9 +2241,8 @@ var sideChannelList = function getSideChannelList() {
|
|
|
2241
2241
|
}
|
|
2242
2242
|
},
|
|
2243
2243
|
'delete': function (key) {
|
|
2244
|
-
var root = $o && $o.next;
|
|
2245
2244
|
var deletedNode = listDelete($o, key);
|
|
2246
|
-
if (deletedNode &&
|
|
2245
|
+
if (deletedNode && $o && !$o.next) {
|
|
2247
2246
|
$o = void undefined;
|
|
2248
2247
|
}
|
|
2249
2248
|
return !!deletedNode;
|
|
@@ -2265,7 +2264,6 @@ var sideChannelList = function getSideChannelList() {
|
|
|
2265
2264
|
listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
|
|
2266
2265
|
}
|
|
2267
2266
|
};
|
|
2268
|
-
// @ts-expect-error TODO: figure out why this is erroring
|
|
2269
2267
|
return channel;
|
|
2270
2268
|
};
|
|
2271
2269
|
|
|
@@ -2437,7 +2435,10 @@ var sideChannel = function getSideChannel() {
|
|
|
2437
2435
|
var channel = {
|
|
2438
2436
|
assert: function (key) {
|
|
2439
2437
|
if (!channel.has(key)) {
|
|
2440
|
-
|
|
2438
|
+
var keyDesc = key && Object(key) === key
|
|
2439
|
+
? 'the given object key'
|
|
2440
|
+
: inspect(key);
|
|
2441
|
+
throw new $TypeError$1('Side channel does not contain ' + keyDesc);
|
|
2441
2442
|
}
|
|
2442
2443
|
},
|
|
2443
2444
|
'delete': function (key) {
|
|
@@ -2457,7 +2458,7 @@ var sideChannel = function getSideChannel() {
|
|
|
2457
2458
|
$channelData.set(key, value);
|
|
2458
2459
|
}
|
|
2459
2460
|
};
|
|
2460
|
-
|
|
2461
|
+
|
|
2461
2462
|
return channel;
|
|
2462
2463
|
};
|
|
2463
2464
|
|
|
@@ -4987,7 +4988,7 @@ Decoder$1.valueAt;
|
|
|
4987
4988
|
/** See `Decoder.succeed` */
|
|
4988
4989
|
Decoder$1.succeed;
|
|
4989
4990
|
/** See `Decoder.fail` */
|
|
4990
|
-
Decoder$1.fail;
|
|
4991
|
+
var fail = Decoder$1.fail;
|
|
4991
4992
|
/** See `Decoder.lazy` */
|
|
4992
4993
|
Decoder$1.lazy;
|
|
4993
4994
|
|
|
@@ -4998,11 +4999,15 @@ const regexDecoder = anyJson$1().andThen((value) => {
|
|
|
4998
4999
|
});
|
|
4999
5000
|
const urlDecoder = nonEmptyStringDecoder$1.andThen((url) => {
|
|
5000
5001
|
try {
|
|
5001
|
-
new URL(url);
|
|
5002
|
+
const { protocol } = new URL(url);
|
|
5003
|
+
const disallowedProtocols = ["data:", "javascript:", "vbscript:"];
|
|
5004
|
+
if (disallowedProtocols.includes(protocol)) {
|
|
5005
|
+
return fail(`Expected a URL with a safe protocol, got: ${protocol} (disallowed protocols: ${disallowedProtocols.join(", ")})`);
|
|
5006
|
+
}
|
|
5002
5007
|
return nonEmptyStringDecoder$1;
|
|
5003
5008
|
}
|
|
5004
5009
|
catch {
|
|
5005
|
-
return fail("
|
|
5010
|
+
return fail("Expected a valid URL");
|
|
5006
5011
|
}
|
|
5007
5012
|
});
|
|
5008
5013
|
|
|
@@ -5014,7 +5019,7 @@ const intentDefinitionDecoder = object$1({
|
|
|
5014
5019
|
});
|
|
5015
5020
|
const v2TypeDecoder = oneOf$1(constant$1("web"), constant$1("native"), constant$1("citrix"), constant$1("onlineNative"), constant$1("other"));
|
|
5016
5021
|
const v2DetailsDecoder = object$1({
|
|
5017
|
-
url:
|
|
5022
|
+
url: urlDecoder
|
|
5018
5023
|
});
|
|
5019
5024
|
const v2IconDecoder = object$1({
|
|
5020
5025
|
src: nonEmptyStringDecoder$1,
|
|
@@ -5042,18 +5047,19 @@ const v2UserChannelDecoder = object$1({
|
|
|
5042
5047
|
listensFor: optional$1(array$1(nonEmptyStringDecoder$1))
|
|
5043
5048
|
});
|
|
5044
5049
|
const v2AppChannelDecoder = object$1({
|
|
5045
|
-
name: nonEmptyStringDecoder$1,
|
|
5050
|
+
name: optional$1(nonEmptyStringDecoder$1),
|
|
5051
|
+
id: optional$1(nonEmptyStringDecoder$1),
|
|
5046
5052
|
description: optional$1(nonEmptyStringDecoder$1),
|
|
5047
5053
|
broadcasts: optional$1(array$1(nonEmptyStringDecoder$1)),
|
|
5048
5054
|
listensFor: optional$1(array$1(nonEmptyStringDecoder$1))
|
|
5049
|
-
});
|
|
5055
|
+
}).where((appChannel) => Boolean(appChannel.name || appChannel.id), "Expected at least a name or an id property to be present in the app channel definition");
|
|
5050
5056
|
const v2InteropDecoder = object$1({
|
|
5051
5057
|
intents: optional$1(v2IntentsDecoder),
|
|
5052
5058
|
userChannels: optional$1(v2UserChannelDecoder),
|
|
5053
5059
|
appChannels: optional$1(array$1(v2AppChannelDecoder))
|
|
5054
5060
|
});
|
|
5055
5061
|
const glue42ApplicationDetailsDecoder = object$1({
|
|
5056
|
-
url: optional$1(
|
|
5062
|
+
url: optional$1(urlDecoder),
|
|
5057
5063
|
top: optional$1(number$1()),
|
|
5058
5064
|
left: optional$1(number$1()),
|
|
5059
5065
|
width: optional$1(nonNegativeNumberDecoder),
|
|
@@ -7042,6 +7048,7 @@ function r$2(name) {
|
|
|
7042
7048
|
{ json: 'details', js: 'details', typ: u$2(undefined, r$2('PurpleOrderDetails')) },
|
|
7043
7049
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7044
7050
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7051
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7045
7052
|
{ json: 'type', js: 'type', typ: r$2('OrderType') },
|
|
7046
7053
|
], 'any'),
|
|
7047
7054
|
PurpleOrderDetails: o$2([{ json: 'product', js: 'product', typ: u$2(undefined, r$2('ProductObject')) }], 'any'),
|
|
@@ -7049,6 +7056,7 @@ function r$2(name) {
|
|
|
7049
7056
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7050
7057
|
{ json: 'instrument', js: 'instrument', typ: u$2(undefined, r$2('InstrumentElement')) },
|
|
7051
7058
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7059
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7052
7060
|
{ json: 'type', js: 'type', typ: r$2('ProductType') },
|
|
7053
7061
|
], 'any'),
|
|
7054
7062
|
OrderList: o$2([
|
|
@@ -7061,6 +7069,7 @@ function r$2(name) {
|
|
|
7061
7069
|
{ json: 'details', js: 'details', typ: u$2(undefined, r$2('FluffyOrderDetails')) },
|
|
7062
7070
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7063
7071
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7072
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7064
7073
|
{ json: 'type', js: 'type', typ: r$2('OrderType') },
|
|
7065
7074
|
], 'any'),
|
|
7066
7075
|
FluffyOrderDetails: o$2([{ json: 'product', js: 'product', typ: u$2(undefined, r$2('ProductObject')) }], 'any'),
|
|
@@ -7098,6 +7107,7 @@ function r$2(name) {
|
|
|
7098
7107
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7099
7108
|
{ json: 'instrument', js: 'instrument', typ: u$2(undefined, r$2('InstrumentElement')) },
|
|
7100
7109
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7110
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7101
7111
|
{ json: 'type', js: 'type', typ: r$2('ProductType') },
|
|
7102
7112
|
], 'any'),
|
|
7103
7113
|
TimeRange: o$2([
|
|
@@ -7110,6 +7120,7 @@ function r$2(name) {
|
|
|
7110
7120
|
Trade: o$2([
|
|
7111
7121
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7112
7122
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7123
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7113
7124
|
{ json: 'product', js: 'product', typ: r$2('ProductObject') },
|
|
7114
7125
|
{ json: 'type', js: 'type', typ: r$2('TradeType') },
|
|
7115
7126
|
], 'any'),
|
|
@@ -7122,6 +7133,7 @@ function r$2(name) {
|
|
|
7122
7133
|
TradeElement: o$2([
|
|
7123
7134
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7124
7135
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7136
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7125
7137
|
{ json: 'product', js: 'product', typ: r$2('ProductObject') },
|
|
7126
7138
|
{ json: 'type', js: 'type', typ: r$2('TradeType') },
|
|
7127
7139
|
], 'any'),
|
|
@@ -7260,7 +7272,7 @@ function r$1(name) {
|
|
|
7260
7272
|
{ json: 'fdc3Version', js: 'fdc3Version', typ: '' },
|
|
7261
7273
|
{ json: 'identityUrl', js: 'identityUrl', typ: '' },
|
|
7262
7274
|
{ json: 'intentResolver', js: 'intentResolver', typ: u$1(undefined, true) },
|
|
7263
|
-
],
|
|
7275
|
+
], false),
|
|
7264
7276
|
WebConnectionProtocol3HandshakePayload: o$1([
|
|
7265
7277
|
{ json: 'appLaunchTimeout', js: 'appLaunchTimeout', typ: u$1(undefined, 3.14) },
|
|
7266
7278
|
{ json: 'channelSelectorUrl', js: 'channelSelectorUrl', typ: u$1(true, '') },
|
|
@@ -7372,7 +7384,10 @@ function r$1(name) {
|
|
|
7372
7384
|
{ json: 'type', js: 'type', typ: '' },
|
|
7373
7385
|
], 'any'),
|
|
7374
7386
|
BroadcastResponseResponsePayload: o$1([{ json: 'error', js: 'error', typ: u$1(undefined, r$1('ResponsePayloadError')) }], 'any'),
|
|
7375
|
-
ChannelChangedEventPayload: o$1([
|
|
7387
|
+
ChannelChangedEventPayload: o$1([
|
|
7388
|
+
{ json: 'newChannelId', js: 'newChannelId', typ: u$1(undefined, u$1(null, '')) },
|
|
7389
|
+
{ json: 'currentChannelId', js: 'currentChannelId', typ: u$1(undefined, u$1(null, '')) },
|
|
7390
|
+
], false),
|
|
7376
7391
|
CreatePrivateChannelResponsePayload: o$1([
|
|
7377
7392
|
{ json: 'error', js: 'error', typ: u$1(undefined, r$1('PurpleError')) },
|
|
7378
7393
|
{ json: 'privateChannel', js: 'privateChannel', typ: u$1(undefined, r$1('Channel')) },
|
|
@@ -8059,6 +8074,8 @@ var OpenError;
|
|
|
8059
8074
|
OpenError["DesktopAgentNotFound"] = "DesktopAgentNotFound";
|
|
8060
8075
|
/** Returned if a timeout occurs before a call to open is resolved for any reason other than the not adding its context listener in time.*/
|
|
8061
8076
|
OpenError["ApiTimeout"] = "ApiTimeout";
|
|
8077
|
+
/** Returned when incorrect arguments are passed to API calls.*/
|
|
8078
|
+
OpenError["InvalidArguments"] = "InvalidArguments";
|
|
8062
8079
|
})(OpenError || (OpenError = {}));
|
|
8063
8080
|
/** Constants representing the errors that can be encountered when calling the `findIntent`, `findIntentsByContext`, `raiseIntent` or `raiseIntentForContext` methods on the DesktopAgent (`fdc3`). */
|
|
8064
8081
|
var ResolveError;
|
|
@@ -8079,10 +8096,14 @@ var ResolveError;
|
|
|
8079
8096
|
ResolveError["IntentDeliveryFailed"] = "IntentDeliveryFailed";
|
|
8080
8097
|
/** Returned if a call to one of the `raiseIntent` functions is made with an invalid context argument. Contexts should be Objects with at least a `type` field that has a `string` value.*/
|
|
8081
8098
|
ResolveError["MalformedContext"] = "MalformedContext";
|
|
8099
|
+
/** Returned if `fdc3.addIntentListener` is called for a specified intent that the application has already added a listener for and has not subsequently removed it. */
|
|
8100
|
+
ResolveError["IntentListenerConflict"] = "IntentListenerConflict";
|
|
8082
8101
|
/** @experimental Returned if the specified Desktop Agent is not found, via a connected Desktop Agent Bridge.*/
|
|
8083
8102
|
ResolveError["DesktopAgentNotFound"] = "DesktopAgentNotFound";
|
|
8084
8103
|
/** Returned if a timeout occurs before the API call is resolved for any reason other than the resolver timing out (use ResolverTimeout) or an app launched by a raiseIntent function doesn't add its intent listener in time (use IntentDeliveryFailed).*/
|
|
8085
8104
|
ResolveError["ApiTimeout"] = "ApiTimeout";
|
|
8105
|
+
/** Returned when incorrect arguments are passed to API calls.*/
|
|
8106
|
+
ResolveError["InvalidArguments"] = "InvalidArguments";
|
|
8086
8107
|
})(ResolveError || (ResolveError = {}));
|
|
8087
8108
|
var ResultError;
|
|
8088
8109
|
(function (ResultError) {
|
|
@@ -8105,6 +8126,8 @@ var ChannelError;
|
|
|
8105
8126
|
ChannelError["MalformedContext"] = "MalformedContext";
|
|
8106
8127
|
/** Returned if a timeout occurs before any Channel related API call is resolved.*/
|
|
8107
8128
|
ChannelError["ApiTimeout"] = "ApiTimeout";
|
|
8129
|
+
/** Returned when incorrect arguments are passed to API calls.*/
|
|
8130
|
+
ChannelError["InvalidArguments"] = "InvalidArguments";
|
|
8108
8131
|
})(ChannelError || (ChannelError = {}));
|
|
8109
8132
|
var BridgingError;
|
|
8110
8133
|
(function (BridgingError) {
|
|
@@ -8157,7 +8180,7 @@ var WebDesktopAgentType;
|
|
|
8157
8180
|
*/
|
|
8158
8181
|
const exhaustiveStringTuple = () => (...tuple) => tuple;
|
|
8159
8182
|
|
|
8160
|
-
const STANDARD_CONTEXT_TYPES = exhaustiveStringTuple()('fdc3.action', 'fdc3.chart', 'fdc3.chat.initSettings', 'fdc3.chat.message', 'fdc3.chat.room', 'fdc3.chat.searchCriteria', 'fdc3.contact', 'fdc3.contactList', 'fdc3.country', 'fdc3.currency', 'fdc3.email', 'fdc3.instrument', 'fdc3.instrumentList', 'fdc3.interaction', 'fdc3.message', 'fdc3.
|
|
8183
|
+
const STANDARD_CONTEXT_TYPES = exhaustiveStringTuple()('fdc3.action', 'fdc3.chart', 'fdc3.chat.initSettings', 'fdc3.chat.message', 'fdc3.chat.room', 'fdc3.chat.searchCriteria', 'fdc3.contact', 'fdc3.contactList', 'fdc3.country', 'fdc3.currency', 'fdc3.email', 'fdc3.fileAttachment', 'fdc3.instrument', 'fdc3.instrumentList', 'fdc3.interaction', 'fdc3.message', 'fdc3.nothing', 'fdc3.organization', 'fdc3.portfolio', 'fdc3.position', 'fdc3.timeRange', 'fdc3.transactionResult', 'fdc3.valuation');
|
|
8161
8184
|
// used internally to check if a given intent/context is a standard one
|
|
8162
8185
|
new Set(STANDARD_CONTEXT_TYPES);
|
|
8163
8186
|
|
|
@@ -8174,23 +8197,32 @@ new Set(STANDARD_INTENTS);
|
|
|
8174
8197
|
*/
|
|
8175
8198
|
var ContextTypes;
|
|
8176
8199
|
(function (ContextTypes) {
|
|
8200
|
+
ContextTypes["Action"] = "fdc3.action";
|
|
8177
8201
|
ContextTypes["Chart"] = "fdc3.chart";
|
|
8178
8202
|
ContextTypes["ChatInitSettings"] = "fdc3.chat.initSettings";
|
|
8203
|
+
ContextTypes["ChatMessage"] = "fdc3.chat.message";
|
|
8179
8204
|
ContextTypes["ChatRoom"] = "fdc3.chat.room";
|
|
8205
|
+
ContextTypes["ChatSearchCriteria"] = "fdc3.chat.searchCriteria";
|
|
8180
8206
|
ContextTypes["Contact"] = "fdc3.contact";
|
|
8181
8207
|
ContextTypes["ContactList"] = "fdc3.contactList";
|
|
8182
8208
|
ContextTypes["Country"] = "fdc3.country";
|
|
8183
8209
|
ContextTypes["Currency"] = "fdc3.currency";
|
|
8184
8210
|
ContextTypes["Email"] = "fdc3.email";
|
|
8211
|
+
ContextTypes["FileAttachment"] = "fdc3.fileAttachment";
|
|
8185
8212
|
ContextTypes["Instrument"] = "fdc3.instrument";
|
|
8186
8213
|
ContextTypes["InstrumentList"] = "fdc3.instrumentList";
|
|
8187
8214
|
ContextTypes["Interaction"] = "fdc3.interaction";
|
|
8215
|
+
ContextTypes["Message"] = "fdc3.message";
|
|
8188
8216
|
ContextTypes["Nothing"] = "fdc3.nothing";
|
|
8217
|
+
ContextTypes["Order"] = "fdc3.order";
|
|
8218
|
+
ContextTypes["OrderList"] = "fdc3.orderList";
|
|
8189
8219
|
ContextTypes["Organization"] = "fdc3.organization";
|
|
8190
8220
|
ContextTypes["Portfolio"] = "fdc3.portfolio";
|
|
8191
8221
|
ContextTypes["Position"] = "fdc3.position";
|
|
8192
|
-
ContextTypes["
|
|
8222
|
+
ContextTypes["Product"] = "fdc3.product";
|
|
8193
8223
|
ContextTypes["TimeRange"] = "fdc3.timeRange";
|
|
8224
|
+
ContextTypes["Trade"] = "fdc3.trade";
|
|
8225
|
+
ContextTypes["TradeList"] = "fdc3.tradeList";
|
|
8194
8226
|
ContextTypes["TransactionResult"] = "fdc3.transactionResult";
|
|
8195
8227
|
ContextTypes["Valuation"] = "fdc3.valuation";
|
|
8196
8228
|
})(ContextTypes || (ContextTypes = {}));
|
|
@@ -10576,7 +10608,7 @@ const fdc3Factory = () => {
|
|
|
10576
10608
|
return ioc.fdc3;
|
|
10577
10609
|
};
|
|
10578
10610
|
|
|
10579
|
-
var version = "2.
|
|
10611
|
+
var version = "2.11.0";
|
|
10580
10612
|
|
|
10581
10613
|
const inNodeEnv = checkIfInNodeEnv();
|
|
10582
10614
|
const globalScope = inNodeEnv ? process : window;
|
package/dist/fdc3.umd.js
CHANGED
|
@@ -2247,9 +2247,8 @@
|
|
|
2247
2247
|
}
|
|
2248
2248
|
},
|
|
2249
2249
|
'delete': function (key) {
|
|
2250
|
-
var root = $o && $o.next;
|
|
2251
2250
|
var deletedNode = listDelete($o, key);
|
|
2252
|
-
if (deletedNode &&
|
|
2251
|
+
if (deletedNode && $o && !$o.next) {
|
|
2253
2252
|
$o = void undefined;
|
|
2254
2253
|
}
|
|
2255
2254
|
return !!deletedNode;
|
|
@@ -2271,7 +2270,6 @@
|
|
|
2271
2270
|
listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
|
|
2272
2271
|
}
|
|
2273
2272
|
};
|
|
2274
|
-
// @ts-expect-error TODO: figure out why this is erroring
|
|
2275
2273
|
return channel;
|
|
2276
2274
|
};
|
|
2277
2275
|
|
|
@@ -2443,7 +2441,10 @@
|
|
|
2443
2441
|
var channel = {
|
|
2444
2442
|
assert: function (key) {
|
|
2445
2443
|
if (!channel.has(key)) {
|
|
2446
|
-
|
|
2444
|
+
var keyDesc = key && Object(key) === key
|
|
2445
|
+
? 'the given object key'
|
|
2446
|
+
: inspect(key);
|
|
2447
|
+
throw new $TypeError$1('Side channel does not contain ' + keyDesc);
|
|
2447
2448
|
}
|
|
2448
2449
|
},
|
|
2449
2450
|
'delete': function (key) {
|
|
@@ -2463,7 +2464,7 @@
|
|
|
2463
2464
|
$channelData.set(key, value);
|
|
2464
2465
|
}
|
|
2465
2466
|
};
|
|
2466
|
-
|
|
2467
|
+
|
|
2467
2468
|
return channel;
|
|
2468
2469
|
};
|
|
2469
2470
|
|
|
@@ -4993,7 +4994,7 @@
|
|
|
4993
4994
|
/** See `Decoder.succeed` */
|
|
4994
4995
|
Decoder$1.succeed;
|
|
4995
4996
|
/** See `Decoder.fail` */
|
|
4996
|
-
Decoder$1.fail;
|
|
4997
|
+
var fail = Decoder$1.fail;
|
|
4997
4998
|
/** See `Decoder.lazy` */
|
|
4998
4999
|
Decoder$1.lazy;
|
|
4999
5000
|
|
|
@@ -5004,11 +5005,15 @@
|
|
|
5004
5005
|
});
|
|
5005
5006
|
const urlDecoder = nonEmptyStringDecoder$1.andThen((url) => {
|
|
5006
5007
|
try {
|
|
5007
|
-
new URL(url);
|
|
5008
|
+
const { protocol } = new URL(url);
|
|
5009
|
+
const disallowedProtocols = ["data:", "javascript:", "vbscript:"];
|
|
5010
|
+
if (disallowedProtocols.includes(protocol)) {
|
|
5011
|
+
return fail(`Expected a URL with a safe protocol, got: ${protocol} (disallowed protocols: ${disallowedProtocols.join(", ")})`);
|
|
5012
|
+
}
|
|
5008
5013
|
return nonEmptyStringDecoder$1;
|
|
5009
5014
|
}
|
|
5010
5015
|
catch {
|
|
5011
|
-
return fail("
|
|
5016
|
+
return fail("Expected a valid URL");
|
|
5012
5017
|
}
|
|
5013
5018
|
});
|
|
5014
5019
|
|
|
@@ -5020,7 +5025,7 @@
|
|
|
5020
5025
|
});
|
|
5021
5026
|
const v2TypeDecoder = oneOf$1(constant$1("web"), constant$1("native"), constant$1("citrix"), constant$1("onlineNative"), constant$1("other"));
|
|
5022
5027
|
const v2DetailsDecoder = object$1({
|
|
5023
|
-
url:
|
|
5028
|
+
url: urlDecoder
|
|
5024
5029
|
});
|
|
5025
5030
|
const v2IconDecoder = object$1({
|
|
5026
5031
|
src: nonEmptyStringDecoder$1,
|
|
@@ -5048,18 +5053,19 @@
|
|
|
5048
5053
|
listensFor: optional$1(array$1(nonEmptyStringDecoder$1))
|
|
5049
5054
|
});
|
|
5050
5055
|
const v2AppChannelDecoder = object$1({
|
|
5051
|
-
name: nonEmptyStringDecoder$1,
|
|
5056
|
+
name: optional$1(nonEmptyStringDecoder$1),
|
|
5057
|
+
id: optional$1(nonEmptyStringDecoder$1),
|
|
5052
5058
|
description: optional$1(nonEmptyStringDecoder$1),
|
|
5053
5059
|
broadcasts: optional$1(array$1(nonEmptyStringDecoder$1)),
|
|
5054
5060
|
listensFor: optional$1(array$1(nonEmptyStringDecoder$1))
|
|
5055
|
-
});
|
|
5061
|
+
}).where((appChannel) => Boolean(appChannel.name || appChannel.id), "Expected at least a name or an id property to be present in the app channel definition");
|
|
5056
5062
|
const v2InteropDecoder = object$1({
|
|
5057
5063
|
intents: optional$1(v2IntentsDecoder),
|
|
5058
5064
|
userChannels: optional$1(v2UserChannelDecoder),
|
|
5059
5065
|
appChannels: optional$1(array$1(v2AppChannelDecoder))
|
|
5060
5066
|
});
|
|
5061
5067
|
const glue42ApplicationDetailsDecoder = object$1({
|
|
5062
|
-
url: optional$1(
|
|
5068
|
+
url: optional$1(urlDecoder),
|
|
5063
5069
|
top: optional$1(number$1()),
|
|
5064
5070
|
left: optional$1(number$1()),
|
|
5065
5071
|
width: optional$1(nonNegativeNumberDecoder),
|
|
@@ -7048,6 +7054,7 @@
|
|
|
7048
7054
|
{ json: 'details', js: 'details', typ: u$2(undefined, r$2('PurpleOrderDetails')) },
|
|
7049
7055
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7050
7056
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7057
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7051
7058
|
{ json: 'type', js: 'type', typ: r$2('OrderType') },
|
|
7052
7059
|
], 'any'),
|
|
7053
7060
|
PurpleOrderDetails: o$2([{ json: 'product', js: 'product', typ: u$2(undefined, r$2('ProductObject')) }], 'any'),
|
|
@@ -7055,6 +7062,7 @@
|
|
|
7055
7062
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7056
7063
|
{ json: 'instrument', js: 'instrument', typ: u$2(undefined, r$2('InstrumentElement')) },
|
|
7057
7064
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7065
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7058
7066
|
{ json: 'type', js: 'type', typ: r$2('ProductType') },
|
|
7059
7067
|
], 'any'),
|
|
7060
7068
|
OrderList: o$2([
|
|
@@ -7067,6 +7075,7 @@
|
|
|
7067
7075
|
{ json: 'details', js: 'details', typ: u$2(undefined, r$2('FluffyOrderDetails')) },
|
|
7068
7076
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7069
7077
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7078
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7070
7079
|
{ json: 'type', js: 'type', typ: r$2('OrderType') },
|
|
7071
7080
|
], 'any'),
|
|
7072
7081
|
FluffyOrderDetails: o$2([{ json: 'product', js: 'product', typ: u$2(undefined, r$2('ProductObject')) }], 'any'),
|
|
@@ -7104,6 +7113,7 @@
|
|
|
7104
7113
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7105
7114
|
{ json: 'instrument', js: 'instrument', typ: u$2(undefined, r$2('InstrumentElement')) },
|
|
7106
7115
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7116
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7107
7117
|
{ json: 'type', js: 'type', typ: r$2('ProductType') },
|
|
7108
7118
|
], 'any'),
|
|
7109
7119
|
TimeRange: o$2([
|
|
@@ -7116,6 +7126,7 @@
|
|
|
7116
7126
|
Trade: o$2([
|
|
7117
7127
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7118
7128
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7129
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7119
7130
|
{ json: 'product', js: 'product', typ: r$2('ProductObject') },
|
|
7120
7131
|
{ json: 'type', js: 'type', typ: r$2('TradeType') },
|
|
7121
7132
|
], 'any'),
|
|
@@ -7128,6 +7139,7 @@
|
|
|
7128
7139
|
TradeElement: o$2([
|
|
7129
7140
|
{ json: 'id', js: 'id', typ: m$2('') },
|
|
7130
7141
|
{ json: 'name', js: 'name', typ: u$2(undefined, '') },
|
|
7142
|
+
{ json: 'notes', js: 'notes', typ: u$2(undefined, '') },
|
|
7131
7143
|
{ json: 'product', js: 'product', typ: r$2('ProductObject') },
|
|
7132
7144
|
{ json: 'type', js: 'type', typ: r$2('TradeType') },
|
|
7133
7145
|
], 'any'),
|
|
@@ -7266,7 +7278,7 @@
|
|
|
7266
7278
|
{ json: 'fdc3Version', js: 'fdc3Version', typ: '' },
|
|
7267
7279
|
{ json: 'identityUrl', js: 'identityUrl', typ: '' },
|
|
7268
7280
|
{ json: 'intentResolver', js: 'intentResolver', typ: u$1(undefined, true) },
|
|
7269
|
-
],
|
|
7281
|
+
], false),
|
|
7270
7282
|
WebConnectionProtocol3HandshakePayload: o$1([
|
|
7271
7283
|
{ json: 'appLaunchTimeout', js: 'appLaunchTimeout', typ: u$1(undefined, 3.14) },
|
|
7272
7284
|
{ json: 'channelSelectorUrl', js: 'channelSelectorUrl', typ: u$1(true, '') },
|
|
@@ -7378,7 +7390,10 @@
|
|
|
7378
7390
|
{ json: 'type', js: 'type', typ: '' },
|
|
7379
7391
|
], 'any'),
|
|
7380
7392
|
BroadcastResponseResponsePayload: o$1([{ json: 'error', js: 'error', typ: u$1(undefined, r$1('ResponsePayloadError')) }], 'any'),
|
|
7381
|
-
ChannelChangedEventPayload: o$1([
|
|
7393
|
+
ChannelChangedEventPayload: o$1([
|
|
7394
|
+
{ json: 'newChannelId', js: 'newChannelId', typ: u$1(undefined, u$1(null, '')) },
|
|
7395
|
+
{ json: 'currentChannelId', js: 'currentChannelId', typ: u$1(undefined, u$1(null, '')) },
|
|
7396
|
+
], false),
|
|
7382
7397
|
CreatePrivateChannelResponsePayload: o$1([
|
|
7383
7398
|
{ json: 'error', js: 'error', typ: u$1(undefined, r$1('PurpleError')) },
|
|
7384
7399
|
{ json: 'privateChannel', js: 'privateChannel', typ: u$1(undefined, r$1('Channel')) },
|
|
@@ -8065,6 +8080,8 @@
|
|
|
8065
8080
|
OpenError["DesktopAgentNotFound"] = "DesktopAgentNotFound";
|
|
8066
8081
|
/** Returned if a timeout occurs before a call to open is resolved for any reason other than the not adding its context listener in time.*/
|
|
8067
8082
|
OpenError["ApiTimeout"] = "ApiTimeout";
|
|
8083
|
+
/** Returned when incorrect arguments are passed to API calls.*/
|
|
8084
|
+
OpenError["InvalidArguments"] = "InvalidArguments";
|
|
8068
8085
|
})(OpenError || (OpenError = {}));
|
|
8069
8086
|
/** Constants representing the errors that can be encountered when calling the `findIntent`, `findIntentsByContext`, `raiseIntent` or `raiseIntentForContext` methods on the DesktopAgent (`fdc3`). */
|
|
8070
8087
|
var ResolveError;
|
|
@@ -8085,10 +8102,14 @@
|
|
|
8085
8102
|
ResolveError["IntentDeliveryFailed"] = "IntentDeliveryFailed";
|
|
8086
8103
|
/** Returned if a call to one of the `raiseIntent` functions is made with an invalid context argument. Contexts should be Objects with at least a `type` field that has a `string` value.*/
|
|
8087
8104
|
ResolveError["MalformedContext"] = "MalformedContext";
|
|
8105
|
+
/** Returned if `fdc3.addIntentListener` is called for a specified intent that the application has already added a listener for and has not subsequently removed it. */
|
|
8106
|
+
ResolveError["IntentListenerConflict"] = "IntentListenerConflict";
|
|
8088
8107
|
/** @experimental Returned if the specified Desktop Agent is not found, via a connected Desktop Agent Bridge.*/
|
|
8089
8108
|
ResolveError["DesktopAgentNotFound"] = "DesktopAgentNotFound";
|
|
8090
8109
|
/** Returned if a timeout occurs before the API call is resolved for any reason other than the resolver timing out (use ResolverTimeout) or an app launched by a raiseIntent function doesn't add its intent listener in time (use IntentDeliveryFailed).*/
|
|
8091
8110
|
ResolveError["ApiTimeout"] = "ApiTimeout";
|
|
8111
|
+
/** Returned when incorrect arguments are passed to API calls.*/
|
|
8112
|
+
ResolveError["InvalidArguments"] = "InvalidArguments";
|
|
8092
8113
|
})(ResolveError || (ResolveError = {}));
|
|
8093
8114
|
var ResultError;
|
|
8094
8115
|
(function (ResultError) {
|
|
@@ -8111,6 +8132,8 @@
|
|
|
8111
8132
|
ChannelError["MalformedContext"] = "MalformedContext";
|
|
8112
8133
|
/** Returned if a timeout occurs before any Channel related API call is resolved.*/
|
|
8113
8134
|
ChannelError["ApiTimeout"] = "ApiTimeout";
|
|
8135
|
+
/** Returned when incorrect arguments are passed to API calls.*/
|
|
8136
|
+
ChannelError["InvalidArguments"] = "InvalidArguments";
|
|
8114
8137
|
})(ChannelError || (ChannelError = {}));
|
|
8115
8138
|
var BridgingError;
|
|
8116
8139
|
(function (BridgingError) {
|
|
@@ -8163,7 +8186,7 @@
|
|
|
8163
8186
|
*/
|
|
8164
8187
|
const exhaustiveStringTuple = () => (...tuple) => tuple;
|
|
8165
8188
|
|
|
8166
|
-
const STANDARD_CONTEXT_TYPES = exhaustiveStringTuple()('fdc3.action', 'fdc3.chart', 'fdc3.chat.initSettings', 'fdc3.chat.message', 'fdc3.chat.room', 'fdc3.chat.searchCriteria', 'fdc3.contact', 'fdc3.contactList', 'fdc3.country', 'fdc3.currency', 'fdc3.email', 'fdc3.instrument', 'fdc3.instrumentList', 'fdc3.interaction', 'fdc3.message', 'fdc3.
|
|
8189
|
+
const STANDARD_CONTEXT_TYPES = exhaustiveStringTuple()('fdc3.action', 'fdc3.chart', 'fdc3.chat.initSettings', 'fdc3.chat.message', 'fdc3.chat.room', 'fdc3.chat.searchCriteria', 'fdc3.contact', 'fdc3.contactList', 'fdc3.country', 'fdc3.currency', 'fdc3.email', 'fdc3.fileAttachment', 'fdc3.instrument', 'fdc3.instrumentList', 'fdc3.interaction', 'fdc3.message', 'fdc3.nothing', 'fdc3.organization', 'fdc3.portfolio', 'fdc3.position', 'fdc3.timeRange', 'fdc3.transactionResult', 'fdc3.valuation');
|
|
8167
8190
|
// used internally to check if a given intent/context is a standard one
|
|
8168
8191
|
new Set(STANDARD_CONTEXT_TYPES);
|
|
8169
8192
|
|
|
@@ -8180,23 +8203,32 @@
|
|
|
8180
8203
|
*/
|
|
8181
8204
|
var ContextTypes;
|
|
8182
8205
|
(function (ContextTypes) {
|
|
8206
|
+
ContextTypes["Action"] = "fdc3.action";
|
|
8183
8207
|
ContextTypes["Chart"] = "fdc3.chart";
|
|
8184
8208
|
ContextTypes["ChatInitSettings"] = "fdc3.chat.initSettings";
|
|
8209
|
+
ContextTypes["ChatMessage"] = "fdc3.chat.message";
|
|
8185
8210
|
ContextTypes["ChatRoom"] = "fdc3.chat.room";
|
|
8211
|
+
ContextTypes["ChatSearchCriteria"] = "fdc3.chat.searchCriteria";
|
|
8186
8212
|
ContextTypes["Contact"] = "fdc3.contact";
|
|
8187
8213
|
ContextTypes["ContactList"] = "fdc3.contactList";
|
|
8188
8214
|
ContextTypes["Country"] = "fdc3.country";
|
|
8189
8215
|
ContextTypes["Currency"] = "fdc3.currency";
|
|
8190
8216
|
ContextTypes["Email"] = "fdc3.email";
|
|
8217
|
+
ContextTypes["FileAttachment"] = "fdc3.fileAttachment";
|
|
8191
8218
|
ContextTypes["Instrument"] = "fdc3.instrument";
|
|
8192
8219
|
ContextTypes["InstrumentList"] = "fdc3.instrumentList";
|
|
8193
8220
|
ContextTypes["Interaction"] = "fdc3.interaction";
|
|
8221
|
+
ContextTypes["Message"] = "fdc3.message";
|
|
8194
8222
|
ContextTypes["Nothing"] = "fdc3.nothing";
|
|
8223
|
+
ContextTypes["Order"] = "fdc3.order";
|
|
8224
|
+
ContextTypes["OrderList"] = "fdc3.orderList";
|
|
8195
8225
|
ContextTypes["Organization"] = "fdc3.organization";
|
|
8196
8226
|
ContextTypes["Portfolio"] = "fdc3.portfolio";
|
|
8197
8227
|
ContextTypes["Position"] = "fdc3.position";
|
|
8198
|
-
ContextTypes["
|
|
8228
|
+
ContextTypes["Product"] = "fdc3.product";
|
|
8199
8229
|
ContextTypes["TimeRange"] = "fdc3.timeRange";
|
|
8230
|
+
ContextTypes["Trade"] = "fdc3.trade";
|
|
8231
|
+
ContextTypes["TradeList"] = "fdc3.tradeList";
|
|
8200
8232
|
ContextTypes["TransactionResult"] = "fdc3.transactionResult";
|
|
8201
8233
|
ContextTypes["Valuation"] = "fdc3.valuation";
|
|
8202
8234
|
})(ContextTypes || (ContextTypes = {}));
|
|
@@ -10582,7 +10614,7 @@
|
|
|
10582
10614
|
return ioc.fdc3;
|
|
10583
10615
|
};
|
|
10584
10616
|
|
|
10585
|
-
var version = "2.
|
|
10617
|
+
var version = "2.11.0";
|
|
10586
10618
|
|
|
10587
10619
|
const inNodeEnv = checkIfInNodeEnv();
|
|
10588
10620
|
const globalScope = inNodeEnv ? process : window;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interopio/fdc3",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "IO Connect implementation of the FDC3 standard",
|
|
5
5
|
"main": "dist/fdc3.umd.js",
|
|
6
6
|
"module": "dist/fdc3.es.js",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@interopio/browser": "^4.
|
|
35
|
-
"@interopio/utils": "^2.
|
|
34
|
+
"@interopio/browser": "^4.5.0",
|
|
35
|
+
"@interopio/utils": "^2.5.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@finos/fdc3": "^2.2.
|
|
38
|
+
"@finos/fdc3": "^2.2.3"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"@interopio:registry": "https://registry.npmjs.org",
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "0b95d3cdbfc2816621d7995328b936bcf04f8888"
|
|
45
45
|
}
|