igniteui-webcomponents-fdc3 1.3.3
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/License +27 -0
- package/README.md +23 -0
- package/bundles/igniteui-webcomponents-fdc3.umd.js +2024 -0
- package/bundles/igniteui-webcomponents-fdc3.umd.js.map +1 -0
- package/bundles/igniteui-webcomponents-fdc3.umd.min.js +2 -0
- package/bundles/igniteui-webcomponents-fdc3.umd.min.js.map +1 -0
- package/esm2015/igniteui-webcomponents-fdc3.js +2 -0
- package/esm2015/igniteui-webcomponents-fdc3.js.map +1 -0
- package/esm2015/lib/Fdc3Contact.js +8 -0
- package/esm2015/lib/Fdc3Contact.js.map +1 -0
- package/esm2015/lib/Fdc3ContactList.js +8 -0
- package/esm2015/lib/Fdc3ContactList.js.map +1 -0
- package/esm2015/lib/Fdc3Context.js +8 -0
- package/esm2015/lib/Fdc3Context.js.map +1 -0
- package/esm2015/lib/Fdc3ContextType.js +56 -0
- package/esm2015/lib/Fdc3ContextType.js.map +1 -0
- package/esm2015/lib/Fdc3Converter.js +198 -0
- package/esm2015/lib/Fdc3Converter.js.map +1 -0
- package/esm2015/lib/Fdc3DataAdapter.js +273 -0
- package/esm2015/lib/Fdc3DataAdapter.js.map +1 -0
- package/esm2015/lib/Fdc3Dictionary.js +85 -0
- package/esm2015/lib/Fdc3Dictionary.js.map +1 -0
- package/esm2015/lib/Fdc3Instrument.js +8 -0
- package/esm2015/lib/Fdc3Instrument.js.map +1 -0
- package/esm2015/lib/Fdc3InstrumentList.js +8 -0
- package/esm2015/lib/Fdc3InstrumentList.js.map +1 -0
- package/esm2015/lib/Fdc3IntentType.js +64 -0
- package/esm2015/lib/Fdc3IntentType.js.map +1 -0
- package/esm2015/lib/Fdc3Message.js +64 -0
- package/esm2015/lib/Fdc3Message.js.map +1 -0
- package/esm2015/lib/Fdc3Organization.js +8 -0
- package/esm2015/lib/Fdc3Organization.js.map +1 -0
- package/esm2015/lib/Fdc3OrganizationList.js +8 -0
- package/esm2015/lib/Fdc3OrganizationList.js.map +1 -0
- package/esm2015/lib/Fdc3Portfolio.js +8 -0
- package/esm2015/lib/Fdc3Portfolio.js.map +1 -0
- package/esm2015/lib/Fdc3Position.js +8 -0
- package/esm2015/lib/Fdc3Position.js.map +1 -0
- package/esm2015/lib/Fdc3Serializer.js +8 -0
- package/esm2015/lib/Fdc3Serializer.js.map +1 -0
- package/esm2015/lib/Fdc3Serializer_combined.js +880 -0
- package/esm2015/lib/Fdc3Serializer_combined.js.map +1 -0
- package/esm2015/lib/Fdc3Util.js +77 -0
- package/esm2015/lib/Fdc3Util.js.map +1 -0
- package/esm2015/lib/Randomizer.js +37 -0
- package/esm2015/lib/Randomizer.js.map +1 -0
- package/esm2015/public_api.js +19 -0
- package/esm2015/public_api.js.map +1 -0
- package/esm5/igniteui-webcomponents-fdc3.js +2 -0
- package/esm5/igniteui-webcomponents-fdc3.js.map +1 -0
- package/esm5/lib/Fdc3Contact.js +8 -0
- package/esm5/lib/Fdc3Contact.js.map +1 -0
- package/esm5/lib/Fdc3ContactList.js +8 -0
- package/esm5/lib/Fdc3ContactList.js.map +1 -0
- package/esm5/lib/Fdc3Context.js +8 -0
- package/esm5/lib/Fdc3Context.js.map +1 -0
- package/esm5/lib/Fdc3ContextType.js +56 -0
- package/esm5/lib/Fdc3ContextType.js.map +1 -0
- package/esm5/lib/Fdc3Converter.js +202 -0
- package/esm5/lib/Fdc3Converter.js.map +1 -0
- package/esm5/lib/Fdc3DataAdapter.js +331 -0
- package/esm5/lib/Fdc3DataAdapter.js.map +1 -0
- package/esm5/lib/Fdc3Dictionary.js +121 -0
- package/esm5/lib/Fdc3Dictionary.js.map +1 -0
- package/esm5/lib/Fdc3Instrument.js +8 -0
- package/esm5/lib/Fdc3Instrument.js.map +1 -0
- package/esm5/lib/Fdc3InstrumentList.js +8 -0
- package/esm5/lib/Fdc3InstrumentList.js.map +1 -0
- package/esm5/lib/Fdc3IntentType.js +64 -0
- package/esm5/lib/Fdc3IntentType.js.map +1 -0
- package/esm5/lib/Fdc3Message.js +90 -0
- package/esm5/lib/Fdc3Message.js.map +1 -0
- package/esm5/lib/Fdc3Organization.js +8 -0
- package/esm5/lib/Fdc3Organization.js.map +1 -0
- package/esm5/lib/Fdc3OrganizationList.js +8 -0
- package/esm5/lib/Fdc3OrganizationList.js.map +1 -0
- package/esm5/lib/Fdc3Portfolio.js +8 -0
- package/esm5/lib/Fdc3Portfolio.js.map +1 -0
- package/esm5/lib/Fdc3Position.js +8 -0
- package/esm5/lib/Fdc3Position.js.map +1 -0
- package/esm5/lib/Fdc3Serializer.js +8 -0
- package/esm5/lib/Fdc3Serializer.js.map +1 -0
- package/esm5/lib/Fdc3Serializer_combined.js +995 -0
- package/esm5/lib/Fdc3Serializer_combined.js.map +1 -0
- package/esm5/lib/Fdc3Util.js +81 -0
- package/esm5/lib/Fdc3Util.js.map +1 -0
- package/esm5/lib/Randomizer.js +41 -0
- package/esm5/lib/Randomizer.js.map +1 -0
- package/esm5/public_api.js +19 -0
- package/esm5/public_api.js.map +1 -0
- package/fesm2015/igniteui-webcomponents-fdc3.js +1773 -0
- package/fesm2015/igniteui-webcomponents-fdc3.js.map +1 -0
- package/fesm5/igniteui-webcomponents-fdc3.js +1998 -0
- package/fesm5/igniteui-webcomponents-fdc3.js.map +1 -0
- package/igniteui-webcomponents-fdc3.d.ts +1 -0
- package/lib/Fdc3Contact.d.ts +1 -0
- package/lib/Fdc3ContactList.d.ts +1 -0
- package/lib/Fdc3Context.d.ts +1 -0
- package/lib/Fdc3ContextType.d.ts +48 -0
- package/lib/Fdc3Converter.d.ts +20 -0
- package/lib/Fdc3DataAdapter.d.ts +30 -0
- package/lib/Fdc3Dictionary.d.ts +19 -0
- package/lib/Fdc3Instrument.d.ts +1 -0
- package/lib/Fdc3InstrumentList.d.ts +1 -0
- package/lib/Fdc3IntentType.d.ts +56 -0
- package/lib/Fdc3Message.d.ts +21 -0
- package/lib/Fdc3Organization.d.ts +1 -0
- package/lib/Fdc3OrganizationList.d.ts +1 -0
- package/lib/Fdc3Portfolio.d.ts +1 -0
- package/lib/Fdc3Position.d.ts +1 -0
- package/lib/Fdc3Serializer.d.ts +1 -0
- package/lib/Fdc3Serializer_combined.d.ts +129 -0
- package/lib/Fdc3Util.d.ts +17 -0
- package/lib/Randomizer.d.ts +11 -0
- package/package.json +43 -0
- package/public_api.d.ts +18 -0
|
@@ -0,0 +1,1998 @@
|
|
|
1
|
+
import { __extends, __values } from 'tslib';
|
|
2
|
+
import { markEnum, Dictionary$2, String_$type, Base, List$1, fromEnum, markType, EnumUtil, callStaticConstructors, StringBuilder, typeCast, stringIsNullOrEmpty, Boolean_$type, enumGetBox, arrayClear, FinancialDataAdapter, IDisposable_$type, truncate, Random } from 'igniteui-webcomponents-core';
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
6
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
7
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
8
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Specifies type of FDC3 intent
|
|
12
|
+
* https://fdc3.finos.org/docs/1.0/intents-spec
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
var Fdc3IntentType = /*@__PURE__*/ (function (Fdc3IntentType) {
|
|
16
|
+
/**
|
|
17
|
+
* Specifies no intent for FDC3 data adapter to listen to
|
|
18
|
+
*/
|
|
19
|
+
Fdc3IntentType[Fdc3IntentType["None"] = 0] = "None";
|
|
20
|
+
/**
|
|
21
|
+
* Specifies all intents for FDC3 data adapter to listen to
|
|
22
|
+
*/
|
|
23
|
+
Fdc3IntentType[Fdc3IntentType["All"] = 1] = "All";
|
|
24
|
+
/**
|
|
25
|
+
* Specifies an intent that is unknown by FDC3 data adapter
|
|
26
|
+
*/
|
|
27
|
+
Fdc3IntentType[Fdc3IntentType["Unknown"] = 2] = "Unknown";
|
|
28
|
+
/**
|
|
29
|
+
* Specifies an intent to view a chart for stock tickers in the Instrument context
|
|
30
|
+
*/
|
|
31
|
+
Fdc3IntentType[Fdc3IntentType["ViewChart"] = 3] = "ViewChart";
|
|
32
|
+
/**
|
|
33
|
+
* Specifies an intent to view information about stock tickers in the Instrument context
|
|
34
|
+
*/
|
|
35
|
+
Fdc3IntentType[Fdc3IntentType["ViewInstrument"] = 4] = "ViewInstrument";
|
|
36
|
+
/**
|
|
37
|
+
* Currently not supported - Starts a call with Contact(s) context
|
|
38
|
+
*/
|
|
39
|
+
Fdc3IntentType[Fdc3IntentType["StartCall"] = 5] = "StartCall";
|
|
40
|
+
/**
|
|
41
|
+
* Currently not supported - Starts a chat with Contact(s) context
|
|
42
|
+
*/
|
|
43
|
+
Fdc3IntentType[Fdc3IntentType["StartChat"] = 6] = "StartChat";
|
|
44
|
+
/**
|
|
45
|
+
* Currently not supported - Display analysis about Instrument, Contact, or Organization
|
|
46
|
+
*/
|
|
47
|
+
Fdc3IntentType[Fdc3IntentType["ViewAnalysis"] = 7] = "ViewAnalysis";
|
|
48
|
+
/**
|
|
49
|
+
* Currently not supported - Display details of the Contact context
|
|
50
|
+
*/
|
|
51
|
+
Fdc3IntentType[Fdc3IntentType["ViewContact"] = 8] = "ViewContact";
|
|
52
|
+
/**
|
|
53
|
+
* Currently not supported - Display news for Instrument, Contact, or Organization
|
|
54
|
+
*/
|
|
55
|
+
Fdc3IntentType[Fdc3IntentType["ViewNews"] = 9] = "ViewNews";
|
|
56
|
+
/**
|
|
57
|
+
* Currently not supported - Display pricing for the Instrument context
|
|
58
|
+
*/
|
|
59
|
+
Fdc3IntentType[Fdc3IntentType["ViewQuote"] = 10] = "ViewQuote";
|
|
60
|
+
return Fdc3IntentType;
|
|
61
|
+
})({});
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
var Fdc3IntentType_$type = /*@__PURE__*/ markEnum('Fdc3IntentType', 'None,0|All,1|Unknown,2|ViewChart,3|ViewInstrument,4|StartCall,5|StartChat,6|ViewAnalysis,7|ViewContact,8|ViewNews,9|ViewQuote,10');
|
|
66
|
+
|
|
67
|
+
/*
|
|
68
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
69
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
70
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
71
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* @hidden
|
|
75
|
+
*/
|
|
76
|
+
var Fdc3Dictionary = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
77
|
+
__extends(Fdc3Dictionary, _super);
|
|
78
|
+
function Fdc3Dictionary() {
|
|
79
|
+
var _this = _super.call(this) || this;
|
|
80
|
+
_this.d = null;
|
|
81
|
+
_this.d = new Dictionary$2(String_$type, Base.$, 0);
|
|
82
|
+
return _this;
|
|
83
|
+
}
|
|
84
|
+
Fdc3Dictionary.prototype.getKeys = function () {
|
|
85
|
+
var e_1, _a;
|
|
86
|
+
var a = new List$1(String_$type, 0);
|
|
87
|
+
try {
|
|
88
|
+
for (var _b = __values(fromEnum(this.d)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
89
|
+
var b = _c.value;
|
|
90
|
+
a.add(b.key);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
catch (e_1_1) {
|
|
94
|
+
e_1 = { error: e_1_1 };
|
|
95
|
+
}
|
|
96
|
+
finally {
|
|
97
|
+
try {
|
|
98
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
99
|
+
_a.call(_b);
|
|
100
|
+
}
|
|
101
|
+
finally {
|
|
102
|
+
if (e_1)
|
|
103
|
+
throw e_1.error;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return a.toArray();
|
|
107
|
+
};
|
|
108
|
+
Fdc3Dictionary.prototype.getValues = function () {
|
|
109
|
+
var e_2, _a;
|
|
110
|
+
var a = new List$1(Base.$, 0);
|
|
111
|
+
try {
|
|
112
|
+
for (var _b = __values(fromEnum(this.d)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
113
|
+
var b = _c.value;
|
|
114
|
+
a.add1(b.value);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
catch (e_2_1) {
|
|
118
|
+
e_2 = { error: e_2_1 };
|
|
119
|
+
}
|
|
120
|
+
finally {
|
|
121
|
+
try {
|
|
122
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
123
|
+
_a.call(_b);
|
|
124
|
+
}
|
|
125
|
+
finally {
|
|
126
|
+
if (e_2)
|
|
127
|
+
throw e_2.error;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return a.toArray();
|
|
131
|
+
};
|
|
132
|
+
Fdc3Dictionary.prototype.item = function (a, b) {
|
|
133
|
+
if (arguments.length === 2) {
|
|
134
|
+
this.set(a, b);
|
|
135
|
+
return b;
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
return this.get(a);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
Fdc3Dictionary.prototype.get = function (a) {
|
|
142
|
+
if (!this.d.containsKey(a)) {
|
|
143
|
+
this.set(a, "");
|
|
144
|
+
}
|
|
145
|
+
if (this.d.item(a) == null) {
|
|
146
|
+
return "";
|
|
147
|
+
}
|
|
148
|
+
return this.d.item(a);
|
|
149
|
+
};
|
|
150
|
+
Fdc3Dictionary.prototype.h = function (a) {
|
|
151
|
+
return this.get(a).toString();
|
|
152
|
+
};
|
|
153
|
+
Fdc3Dictionary.prototype.e = function (a) {
|
|
154
|
+
if (!this.d.containsKey(a)) {
|
|
155
|
+
this.set(a, 0);
|
|
156
|
+
return 0;
|
|
157
|
+
}
|
|
158
|
+
if (this.d.item(a) == null) {
|
|
159
|
+
return 0;
|
|
160
|
+
}
|
|
161
|
+
return parseFloat(this.d.item(a).toString());
|
|
162
|
+
};
|
|
163
|
+
Fdc3Dictionary.prototype.set = function (a, b) {
|
|
164
|
+
if (this.d.containsKey(a)) {
|
|
165
|
+
this.d.item(a, b);
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
this.d.addItem(a, b);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
Fdc3Dictionary.prototype.remove = function (a) {
|
|
172
|
+
if (this.d.containsKey(a)) {
|
|
173
|
+
this.d.removeItem(a);
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
Fdc3Dictionary.prototype.contains = function (a) {
|
|
177
|
+
return this.d.containsKey(a);
|
|
178
|
+
};
|
|
179
|
+
Fdc3Dictionary.$t = markType(Fdc3Dictionary, 'Fdc3Dictionary');
|
|
180
|
+
return Fdc3Dictionary;
|
|
181
|
+
}(Base));
|
|
182
|
+
|
|
183
|
+
/*
|
|
184
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
185
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
186
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
187
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
188
|
+
*/
|
|
189
|
+
/**
|
|
190
|
+
* Specifies type of FDC3 context
|
|
191
|
+
* https://fdc3.finos.org/docs/1.0/context-spec
|
|
192
|
+
*
|
|
193
|
+
*/
|
|
194
|
+
var Fdc3ContextType = /*@__PURE__*/ (function (Fdc3ContextType) {
|
|
195
|
+
/**
|
|
196
|
+
* Specifies a context that is unknown by FDC3 data adapter
|
|
197
|
+
*/
|
|
198
|
+
Fdc3ContextType[Fdc3ContextType["Unknown"] = 0] = "Unknown";
|
|
199
|
+
/**
|
|
200
|
+
* Specifies FDC3 context for single instrument with stock name, stock ticker/symbol
|
|
201
|
+
*/
|
|
202
|
+
Fdc3ContextType[Fdc3ContextType["Instrument"] = 1] = "Instrument";
|
|
203
|
+
/**
|
|
204
|
+
* Specifies FDC3 context for multiple instrument
|
|
205
|
+
*/
|
|
206
|
+
Fdc3ContextType[Fdc3ContextType["InstrumentList"] = 2] = "InstrumentList";
|
|
207
|
+
/**
|
|
208
|
+
* Specifies FDC3 context for single position
|
|
209
|
+
*/
|
|
210
|
+
Fdc3ContextType[Fdc3ContextType["Position"] = 3] = "Position";
|
|
211
|
+
/**
|
|
212
|
+
* Specifies FDC3 context for multiple positions
|
|
213
|
+
*/
|
|
214
|
+
Fdc3ContextType[Fdc3ContextType["Portfolio"] = 4] = "Portfolio";
|
|
215
|
+
/**
|
|
216
|
+
* Currently not supported - Specifies FDC3 context for single contact with person name, email, phone, etc.
|
|
217
|
+
*/
|
|
218
|
+
Fdc3ContextType[Fdc3ContextType["Contact"] = 5] = "Contact";
|
|
219
|
+
/**
|
|
220
|
+
* Currently not supported - Specifies FDC3 context for multiple contacts
|
|
221
|
+
*/
|
|
222
|
+
Fdc3ContextType[Fdc3ContextType["ContactList"] = 6] = "ContactList";
|
|
223
|
+
/**
|
|
224
|
+
* Currently not supported - Specifies FDC3 context for single organization with company name
|
|
225
|
+
*/
|
|
226
|
+
Fdc3ContextType[Fdc3ContextType["Organization"] = 7] = "Organization";
|
|
227
|
+
/**
|
|
228
|
+
* Currently not supported - Specifies FDC3 context for multiple organizations
|
|
229
|
+
*/
|
|
230
|
+
Fdc3ContextType[Fdc3ContextType["OrganizationList"] = 8] = "OrganizationList";
|
|
231
|
+
return Fdc3ContextType;
|
|
232
|
+
})({});
|
|
233
|
+
/**
|
|
234
|
+
* @hidden
|
|
235
|
+
*/
|
|
236
|
+
var Fdc3ContextType_$type = /*@__PURE__*/ markEnum('Fdc3ContextType', 'Unknown,0|Instrument,1|InstrumentList,2|Position,3|Portfolio,4|Contact,5|ContactList,6|Organization,7|OrganizationList,8');
|
|
237
|
+
|
|
238
|
+
/*
|
|
239
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
240
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
241
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
242
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
243
|
+
*/
|
|
244
|
+
/**
|
|
245
|
+
* @hidden
|
|
246
|
+
*/
|
|
247
|
+
var Fdc3Util = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
248
|
+
__extends(Fdc3Util, _super);
|
|
249
|
+
function Fdc3Util() {
|
|
250
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
251
|
+
}
|
|
252
|
+
Fdc3Util.staticInit = function () {
|
|
253
|
+
Fdc3Util.c = new Dictionary$2(String_$type, Fdc3ContextType_$type, 0);
|
|
254
|
+
Fdc3Util.f(0);
|
|
255
|
+
Fdc3Util.f(1);
|
|
256
|
+
Fdc3Util.f(2);
|
|
257
|
+
Fdc3Util.f(3);
|
|
258
|
+
Fdc3Util.f(4);
|
|
259
|
+
Fdc3Util.f(7);
|
|
260
|
+
Fdc3Util.f(8);
|
|
261
|
+
Fdc3Util.f(5);
|
|
262
|
+
Fdc3Util.f(6);
|
|
263
|
+
Fdc3Util.d = new Dictionary$2(String_$type, Fdc3IntentType_$type, 0);
|
|
264
|
+
Fdc3Util.g(2);
|
|
265
|
+
Fdc3Util.g(3);
|
|
266
|
+
Fdc3Util.g(4);
|
|
267
|
+
Fdc3Util.g(7);
|
|
268
|
+
Fdc3Util.g(5);
|
|
269
|
+
Fdc3Util.g(6);
|
|
270
|
+
Fdc3Util.g(8);
|
|
271
|
+
Fdc3Util.g(10);
|
|
272
|
+
Fdc3Util.g(9);
|
|
273
|
+
};
|
|
274
|
+
Fdc3Util.getString = function (a) {
|
|
275
|
+
var b = EnumUtil.getName(Fdc3ContextType_$type, a);
|
|
276
|
+
return "fdc3." + b.substr(0, 1).toLowerCase() + b.substr(1);
|
|
277
|
+
};
|
|
278
|
+
Fdc3Util.a = function (a) {
|
|
279
|
+
if (Fdc3Util.c.containsKey(a)) {
|
|
280
|
+
return Fdc3Util.c.item(a);
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
return 0;
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
Fdc3Util.b = function (a) {
|
|
287
|
+
if (Fdc3Util.d.containsKey(a)) {
|
|
288
|
+
return Fdc3Util.d.item(a);
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
return 2;
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
Fdc3Util.f = function (a) {
|
|
295
|
+
var b = Fdc3Util.getString(a);
|
|
296
|
+
if (!Fdc3Util.c.containsKey(b)) {
|
|
297
|
+
Fdc3Util.c.addItem(b, a);
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
Fdc3Util.g = function (a) {
|
|
301
|
+
var b = EnumUtil.getName(Fdc3IntentType_$type, a);
|
|
302
|
+
if (!Fdc3Util.d.containsKey(b)) {
|
|
303
|
+
Fdc3Util.d.addItem(b, a);
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
Fdc3Util.$t = markType(Fdc3Util, 'Fdc3Util');
|
|
307
|
+
Fdc3Util.c = null;
|
|
308
|
+
Fdc3Util.d = null;
|
|
309
|
+
return Fdc3Util;
|
|
310
|
+
}(Base));
|
|
311
|
+
(function (v) { callStaticConstructors(); })(true);
|
|
312
|
+
|
|
313
|
+
/*
|
|
314
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
315
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
316
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
317
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
318
|
+
*/
|
|
319
|
+
/**
|
|
320
|
+
* @hidden
|
|
321
|
+
*/
|
|
322
|
+
var Fdc3Serializer = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
323
|
+
__extends(Fdc3Serializer, _super);
|
|
324
|
+
function Fdc3Serializer() {
|
|
325
|
+
var _this = _super.call(this) || this;
|
|
326
|
+
_this._sb = null;
|
|
327
|
+
_this.m = 0;
|
|
328
|
+
_this.l = false;
|
|
329
|
+
_this._sb = new StringBuilder(0);
|
|
330
|
+
return _this;
|
|
331
|
+
}
|
|
332
|
+
Fdc3Serializer.prototype.toString = function () {
|
|
333
|
+
return this._sb.toString();
|
|
334
|
+
};
|
|
335
|
+
Fdc3Serializer.prototype.toJson = function (a) {
|
|
336
|
+
this._sb.v();
|
|
337
|
+
if (typeCast(Fdc3Instrument.$, a) !== null) {
|
|
338
|
+
this.add4(typeCast(Fdc3Instrument.$, a));
|
|
339
|
+
}
|
|
340
|
+
else if (typeCast(Fdc3InstrumentList.$, a) !== null) {
|
|
341
|
+
this.add5(typeCast(Fdc3InstrumentList.$, a));
|
|
342
|
+
}
|
|
343
|
+
else if (typeCast(Fdc3Position.$, a) !== null) {
|
|
344
|
+
this.add9(typeCast(Fdc3Position.$, a));
|
|
345
|
+
}
|
|
346
|
+
else if (typeCast(Fdc3Portfolio.$, a) !== null) {
|
|
347
|
+
this.add8(typeCast(Fdc3Portfolio.$, a));
|
|
348
|
+
}
|
|
349
|
+
else if (typeCast(Fdc3Contact.$, a) !== null) {
|
|
350
|
+
this.add1(typeCast(Fdc3Contact.$, a));
|
|
351
|
+
}
|
|
352
|
+
else if (typeCast(Fdc3ContactList.$, a) !== null) {
|
|
353
|
+
this.add2(typeCast(Fdc3ContactList.$, a));
|
|
354
|
+
}
|
|
355
|
+
else if (typeCast(Fdc3Organization.$, a) !== null) {
|
|
356
|
+
this.add6(typeCast(Fdc3Organization.$, a));
|
|
357
|
+
}
|
|
358
|
+
else if (typeCast(Fdc3OrganizationList.$, a) !== null) {
|
|
359
|
+
this.add7(typeCast(Fdc3OrganizationList.$, a));
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
this.add3(typeCast(Fdc3Context.$, a));
|
|
363
|
+
}
|
|
364
|
+
return this.toString();
|
|
365
|
+
};
|
|
366
|
+
Fdc3Serializer.prototype.add4 = function (a, b) {
|
|
367
|
+
if (b === void 0) {
|
|
368
|
+
b = "";
|
|
369
|
+
}
|
|
370
|
+
this.z("serializing Fdc3Instrument");
|
|
371
|
+
this.addObjectOpen();
|
|
372
|
+
this.addProp1("type", a.type);
|
|
373
|
+
if (!stringIsNullOrEmpty(a.target)) {
|
|
374
|
+
this.addProp1("target", a.target);
|
|
375
|
+
}
|
|
376
|
+
if (a.intent != 2) {
|
|
377
|
+
this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
|
|
378
|
+
}
|
|
379
|
+
if (!stringIsNullOrEmpty(a.name)) {
|
|
380
|
+
this.addProp1("name", a.name);
|
|
381
|
+
}
|
|
382
|
+
var e = a.getKeys();
|
|
383
|
+
for (var d = 0; d < e.length; d++) {
|
|
384
|
+
var c = e[d];
|
|
385
|
+
if (c == "type") {
|
|
386
|
+
continue;
|
|
387
|
+
}
|
|
388
|
+
if (c == "name") {
|
|
389
|
+
continue;
|
|
390
|
+
}
|
|
391
|
+
if (c == "target") {
|
|
392
|
+
continue;
|
|
393
|
+
}
|
|
394
|
+
if (c == "intent") {
|
|
395
|
+
continue;
|
|
396
|
+
}
|
|
397
|
+
if (c == "ticker") {
|
|
398
|
+
continue;
|
|
399
|
+
}
|
|
400
|
+
if (c != "id") {
|
|
401
|
+
this.addProp1(c, a.item(c));
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
if (a.id == null) {
|
|
405
|
+
this.addProp1("id", "null");
|
|
406
|
+
}
|
|
407
|
+
else {
|
|
408
|
+
this.addProp("id");
|
|
409
|
+
this.addObjectOpen();
|
|
410
|
+
this.addProp1("ticker", a.ticker);
|
|
411
|
+
var h = a.id.getKeys();
|
|
412
|
+
for (var g = 0; g < h.length; g++) {
|
|
413
|
+
var f = h[g];
|
|
414
|
+
if (f == "ticker") {
|
|
415
|
+
continue;
|
|
416
|
+
}
|
|
417
|
+
this.addProp1(f, a.id.item(f));
|
|
418
|
+
}
|
|
419
|
+
this.addObjectClose();
|
|
420
|
+
}
|
|
421
|
+
this.addObjectClose(b);
|
|
422
|
+
};
|
|
423
|
+
Fdc3Serializer.prototype.add5 = function (a) {
|
|
424
|
+
this.z("serializing Fdc3InstrumentList");
|
|
425
|
+
this.addObjectOpen();
|
|
426
|
+
this.addProp1("type", a.type);
|
|
427
|
+
if (!stringIsNullOrEmpty(a.target)) {
|
|
428
|
+
this.addProp1("target", a.target);
|
|
429
|
+
}
|
|
430
|
+
if (a.intent != 2) {
|
|
431
|
+
this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
|
|
432
|
+
}
|
|
433
|
+
if (!stringIsNullOrEmpty(a.name)) {
|
|
434
|
+
this.addProp1("name", a.name);
|
|
435
|
+
}
|
|
436
|
+
var d = a.getKeys();
|
|
437
|
+
for (var c = 0; c < d.length; c++) {
|
|
438
|
+
var b = d[c];
|
|
439
|
+
if (b == "type") {
|
|
440
|
+
continue;
|
|
441
|
+
}
|
|
442
|
+
if (b == "name") {
|
|
443
|
+
continue;
|
|
444
|
+
}
|
|
445
|
+
if (b == "target") {
|
|
446
|
+
continue;
|
|
447
|
+
}
|
|
448
|
+
if (b == "intent") {
|
|
449
|
+
continue;
|
|
450
|
+
}
|
|
451
|
+
if (b == "id") {
|
|
452
|
+
continue;
|
|
453
|
+
}
|
|
454
|
+
if (b != "instruments") {
|
|
455
|
+
this.addProp1(b, a.item(b));
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
if (a.instruments == null) {
|
|
459
|
+
this.addProp1("instruments", "null");
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
this.addProp("instruments");
|
|
463
|
+
this.addArrayOpen();
|
|
464
|
+
var g = a.instruments;
|
|
465
|
+
for (var f = 0; f < g.length; f++) {
|
|
466
|
+
var e = g[f];
|
|
467
|
+
this.add4(e, ",");
|
|
468
|
+
}
|
|
469
|
+
this.addArrayClose();
|
|
470
|
+
}
|
|
471
|
+
this.addObjectClose();
|
|
472
|
+
};
|
|
473
|
+
Fdc3Serializer.prototype.add8 = function (a) {
|
|
474
|
+
this.z("serializing Fdc3Portfolio");
|
|
475
|
+
this.addObjectOpen();
|
|
476
|
+
this.addProp1("type", a.type);
|
|
477
|
+
if (!stringIsNullOrEmpty(a.target)) {
|
|
478
|
+
this.addProp1("target", a.target);
|
|
479
|
+
}
|
|
480
|
+
if (a.intent != 2) {
|
|
481
|
+
this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
|
|
482
|
+
}
|
|
483
|
+
if (!stringIsNullOrEmpty(a.name)) {
|
|
484
|
+
this.addProp1("name", a.name);
|
|
485
|
+
}
|
|
486
|
+
var d = a.getKeys();
|
|
487
|
+
for (var c = 0; c < d.length; c++) {
|
|
488
|
+
var b = d[c];
|
|
489
|
+
if (b == "type") {
|
|
490
|
+
continue;
|
|
491
|
+
}
|
|
492
|
+
if (b == "name") {
|
|
493
|
+
continue;
|
|
494
|
+
}
|
|
495
|
+
if (b == "target") {
|
|
496
|
+
continue;
|
|
497
|
+
}
|
|
498
|
+
if (b == "intent") {
|
|
499
|
+
continue;
|
|
500
|
+
}
|
|
501
|
+
if (b == "id") {
|
|
502
|
+
continue;
|
|
503
|
+
}
|
|
504
|
+
if (b != "positions") {
|
|
505
|
+
this.addProp1(b, a.item(b));
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
if (a.positions == null) {
|
|
509
|
+
this.addProp1("positions", "null");
|
|
510
|
+
}
|
|
511
|
+
else {
|
|
512
|
+
this.addProp("positions");
|
|
513
|
+
this.addArrayOpen();
|
|
514
|
+
var g = a.positions;
|
|
515
|
+
for (var f = 0; f < g.length; f++) {
|
|
516
|
+
var e = g[f];
|
|
517
|
+
this.add9(e, ",");
|
|
518
|
+
}
|
|
519
|
+
this.addArrayClose();
|
|
520
|
+
}
|
|
521
|
+
this.addObjectClose();
|
|
522
|
+
};
|
|
523
|
+
Fdc3Serializer.prototype.add9 = function (a, b) {
|
|
524
|
+
if (b === void 0) {
|
|
525
|
+
b = "";
|
|
526
|
+
}
|
|
527
|
+
this.z("serializing Fdc3Position");
|
|
528
|
+
this.addObjectOpen();
|
|
529
|
+
this.addProp1("type", a.type);
|
|
530
|
+
if (!stringIsNullOrEmpty(a.target)) {
|
|
531
|
+
this.addProp1("target", a.target);
|
|
532
|
+
}
|
|
533
|
+
if (a.intent != 2) {
|
|
534
|
+
this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
|
|
535
|
+
}
|
|
536
|
+
if (!stringIsNullOrEmpty(a.name)) {
|
|
537
|
+
this.addProp1("name", a.name);
|
|
538
|
+
}
|
|
539
|
+
var e = a.getKeys();
|
|
540
|
+
for (var d = 0; d < e.length; d++) {
|
|
541
|
+
var c = e[d];
|
|
542
|
+
if (c == "type") {
|
|
543
|
+
continue;
|
|
544
|
+
}
|
|
545
|
+
if (c == "name") {
|
|
546
|
+
continue;
|
|
547
|
+
}
|
|
548
|
+
if (c == "target") {
|
|
549
|
+
continue;
|
|
550
|
+
}
|
|
551
|
+
if (c == "intent") {
|
|
552
|
+
continue;
|
|
553
|
+
}
|
|
554
|
+
if (c == "id") {
|
|
555
|
+
continue;
|
|
556
|
+
}
|
|
557
|
+
if (c != "instrument") {
|
|
558
|
+
this.addProp1(c, a.item(c));
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
if (a.instrument == null) {
|
|
562
|
+
this.addProp1("instrument", "null");
|
|
563
|
+
}
|
|
564
|
+
else {
|
|
565
|
+
this.addProp("instrument");
|
|
566
|
+
this.add4(a.instrument, ",");
|
|
567
|
+
}
|
|
568
|
+
this.addObjectClose(b);
|
|
569
|
+
};
|
|
570
|
+
Fdc3Serializer.prototype.add1 = function (a, b) {
|
|
571
|
+
if (b === void 0) {
|
|
572
|
+
b = "";
|
|
573
|
+
}
|
|
574
|
+
this.addObjectOpen();
|
|
575
|
+
this.addProp1("type", a.type);
|
|
576
|
+
if (!stringIsNullOrEmpty(a.target)) {
|
|
577
|
+
this.addProp1("target", a.target);
|
|
578
|
+
}
|
|
579
|
+
if (a.intent != 2) {
|
|
580
|
+
this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
|
|
581
|
+
}
|
|
582
|
+
if (!stringIsNullOrEmpty(a.name)) {
|
|
583
|
+
this.addProp1("name", a.name);
|
|
584
|
+
}
|
|
585
|
+
var e = a.getKeys();
|
|
586
|
+
for (var d = 0; d < e.length; d++) {
|
|
587
|
+
var c = e[d];
|
|
588
|
+
if (c == "type") {
|
|
589
|
+
continue;
|
|
590
|
+
}
|
|
591
|
+
if (c == "name") {
|
|
592
|
+
continue;
|
|
593
|
+
}
|
|
594
|
+
if (c == "target") {
|
|
595
|
+
continue;
|
|
596
|
+
}
|
|
597
|
+
if (c == "intent") {
|
|
598
|
+
continue;
|
|
599
|
+
}
|
|
600
|
+
if (c == "email") {
|
|
601
|
+
continue;
|
|
602
|
+
}
|
|
603
|
+
if (c == "phone") {
|
|
604
|
+
continue;
|
|
605
|
+
}
|
|
606
|
+
if (c != "id") {
|
|
607
|
+
this.addProp1(c, a.item(c));
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
if (a.id == null) {
|
|
611
|
+
this.addProp1("id", "null");
|
|
612
|
+
}
|
|
613
|
+
else {
|
|
614
|
+
this.addProp("id");
|
|
615
|
+
this.addObjectOpen();
|
|
616
|
+
var h = a.id.getKeys();
|
|
617
|
+
for (var g = 0; g < h.length; g++) {
|
|
618
|
+
var f = h[g];
|
|
619
|
+
this.addProp1(f, a.id.item(f));
|
|
620
|
+
}
|
|
621
|
+
this.addObjectClose();
|
|
622
|
+
}
|
|
623
|
+
this.addObjectClose(b);
|
|
624
|
+
};
|
|
625
|
+
Fdc3Serializer.prototype.z = function (message_) {
|
|
626
|
+
};
|
|
627
|
+
Fdc3Serializer.prototype.add2 = function (a) {
|
|
628
|
+
this.addObjectOpen();
|
|
629
|
+
this.addProp1("type", a.type);
|
|
630
|
+
if (!stringIsNullOrEmpty(a.target)) {
|
|
631
|
+
this.addProp1("target", a.target);
|
|
632
|
+
}
|
|
633
|
+
if (a.intent != 2) {
|
|
634
|
+
this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
|
|
635
|
+
}
|
|
636
|
+
if (!stringIsNullOrEmpty(a.name)) {
|
|
637
|
+
this.addProp1("name", a.name);
|
|
638
|
+
}
|
|
639
|
+
var d = a.getKeys();
|
|
640
|
+
for (var c = 0; c < d.length; c++) {
|
|
641
|
+
var b = d[c];
|
|
642
|
+
if (b == "type") {
|
|
643
|
+
continue;
|
|
644
|
+
}
|
|
645
|
+
if (b == "name") {
|
|
646
|
+
continue;
|
|
647
|
+
}
|
|
648
|
+
if (b == "target") {
|
|
649
|
+
continue;
|
|
650
|
+
}
|
|
651
|
+
if (b == "intent") {
|
|
652
|
+
continue;
|
|
653
|
+
}
|
|
654
|
+
if (b == "id") {
|
|
655
|
+
continue;
|
|
656
|
+
}
|
|
657
|
+
if (b != "contacts") {
|
|
658
|
+
this.addProp1(b, a.item(b));
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
if (a.contacts == null) {
|
|
662
|
+
this.addProp1("contacts", "null");
|
|
663
|
+
}
|
|
664
|
+
else {
|
|
665
|
+
this.addProp("contacts");
|
|
666
|
+
this.addArrayOpen();
|
|
667
|
+
var g = a.contacts;
|
|
668
|
+
for (var f = 0; f < g.length; f++) {
|
|
669
|
+
var e = g[f];
|
|
670
|
+
this.add1(e, ",");
|
|
671
|
+
}
|
|
672
|
+
this.addArrayClose();
|
|
673
|
+
}
|
|
674
|
+
this.addObjectClose();
|
|
675
|
+
};
|
|
676
|
+
Fdc3Serializer.prototype.add6 = function (a, b) {
|
|
677
|
+
if (b === void 0) {
|
|
678
|
+
b = "";
|
|
679
|
+
}
|
|
680
|
+
this.z("serializing Fdc3Organization");
|
|
681
|
+
this.addObjectOpen();
|
|
682
|
+
this.addProp1("type", a.type);
|
|
683
|
+
if (!stringIsNullOrEmpty(a.target)) {
|
|
684
|
+
this.addProp1("target", a.target);
|
|
685
|
+
}
|
|
686
|
+
if (a.intent != 2) {
|
|
687
|
+
this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
|
|
688
|
+
}
|
|
689
|
+
if (!stringIsNullOrEmpty(a.name)) {
|
|
690
|
+
this.addProp1("name", a.name);
|
|
691
|
+
}
|
|
692
|
+
var e = a.getKeys();
|
|
693
|
+
for (var d = 0; d < e.length; d++) {
|
|
694
|
+
var c = e[d];
|
|
695
|
+
if (c == "type") {
|
|
696
|
+
continue;
|
|
697
|
+
}
|
|
698
|
+
if (c == "name") {
|
|
699
|
+
continue;
|
|
700
|
+
}
|
|
701
|
+
if (c == "target") {
|
|
702
|
+
continue;
|
|
703
|
+
}
|
|
704
|
+
if (c == "intent") {
|
|
705
|
+
continue;
|
|
706
|
+
}
|
|
707
|
+
if (c == "email") {
|
|
708
|
+
continue;
|
|
709
|
+
}
|
|
710
|
+
if (c == "phone") {
|
|
711
|
+
continue;
|
|
712
|
+
}
|
|
713
|
+
if (c != "id") {
|
|
714
|
+
this.addProp1(c, a.item(c));
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
if (a.id == null) {
|
|
718
|
+
this.addProp1("id", "null");
|
|
719
|
+
}
|
|
720
|
+
else {
|
|
721
|
+
this.addProp("id");
|
|
722
|
+
this.addObjectOpen();
|
|
723
|
+
var h = a.id.getKeys();
|
|
724
|
+
for (var g = 0; g < h.length; g++) {
|
|
725
|
+
var f = h[g];
|
|
726
|
+
this.addProp1(f, a.id.item(f));
|
|
727
|
+
}
|
|
728
|
+
this.addObjectClose();
|
|
729
|
+
}
|
|
730
|
+
this.addObjectClose(b);
|
|
731
|
+
};
|
|
732
|
+
Fdc3Serializer.prototype.add7 = function (a) {
|
|
733
|
+
this.addObjectOpen();
|
|
734
|
+
this.addProp1("type", a.type);
|
|
735
|
+
if (!stringIsNullOrEmpty(a.target)) {
|
|
736
|
+
this.addProp1("target", a.target);
|
|
737
|
+
}
|
|
738
|
+
if (a.intent != 2) {
|
|
739
|
+
this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
|
|
740
|
+
}
|
|
741
|
+
if (!stringIsNullOrEmpty(a.name)) {
|
|
742
|
+
this.addProp1("name", a.name);
|
|
743
|
+
}
|
|
744
|
+
var d = a.getKeys();
|
|
745
|
+
for (var c = 0; c < d.length; c++) {
|
|
746
|
+
var b = d[c];
|
|
747
|
+
if (b == "type") {
|
|
748
|
+
continue;
|
|
749
|
+
}
|
|
750
|
+
if (b == "name") {
|
|
751
|
+
continue;
|
|
752
|
+
}
|
|
753
|
+
if (b == "target") {
|
|
754
|
+
continue;
|
|
755
|
+
}
|
|
756
|
+
if (b == "intent") {
|
|
757
|
+
continue;
|
|
758
|
+
}
|
|
759
|
+
if (b == "id") {
|
|
760
|
+
continue;
|
|
761
|
+
}
|
|
762
|
+
if (b != "organizations") {
|
|
763
|
+
this.addProp1(b, a.item(b));
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
if (a.organizations == null) {
|
|
767
|
+
this.addProp1("organizations", "null");
|
|
768
|
+
}
|
|
769
|
+
else {
|
|
770
|
+
this.addProp("organizations");
|
|
771
|
+
this.addArrayOpen();
|
|
772
|
+
var g = a.organizations;
|
|
773
|
+
for (var f = 0; f < g.length; f++) {
|
|
774
|
+
var e = g[f];
|
|
775
|
+
this.add4(e, ",");
|
|
776
|
+
}
|
|
777
|
+
this.addArrayClose();
|
|
778
|
+
}
|
|
779
|
+
this.addObjectClose();
|
|
780
|
+
};
|
|
781
|
+
Fdc3Serializer.prototype.add3 = function (a, b) {
|
|
782
|
+
if (b === void 0) {
|
|
783
|
+
b = "";
|
|
784
|
+
}
|
|
785
|
+
this.z("serializing Fdc3Context");
|
|
786
|
+
this.addObjectOpen();
|
|
787
|
+
this.addProp1("type", a.type);
|
|
788
|
+
if (!stringIsNullOrEmpty(a.target)) {
|
|
789
|
+
this.addProp1("target", a.target);
|
|
790
|
+
}
|
|
791
|
+
if (a.intent != 2) {
|
|
792
|
+
this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
|
|
793
|
+
}
|
|
794
|
+
if (!stringIsNullOrEmpty(a.name)) {
|
|
795
|
+
this.addProp1("name", a.name);
|
|
796
|
+
}
|
|
797
|
+
var e = a.getKeys();
|
|
798
|
+
for (var d = 0; d < e.length; d++) {
|
|
799
|
+
var c = e[d];
|
|
800
|
+
if (c == "type") {
|
|
801
|
+
continue;
|
|
802
|
+
}
|
|
803
|
+
if (c == "name") {
|
|
804
|
+
continue;
|
|
805
|
+
}
|
|
806
|
+
if (c == "target") {
|
|
807
|
+
continue;
|
|
808
|
+
}
|
|
809
|
+
if (c == "intent") {
|
|
810
|
+
continue;
|
|
811
|
+
}
|
|
812
|
+
if (c != "id") {
|
|
813
|
+
this.addProp1(c, a.item(c));
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
if (a.id == null) {
|
|
817
|
+
this.addProp1("id", "null");
|
|
818
|
+
}
|
|
819
|
+
else {
|
|
820
|
+
this.addProp("id");
|
|
821
|
+
this.addObjectOpen();
|
|
822
|
+
var h = a.id.getKeys();
|
|
823
|
+
for (var g = 0; g < h.length; g++) {
|
|
824
|
+
var f = h[g];
|
|
825
|
+
this.addProp1(f, a.id.item(f));
|
|
826
|
+
}
|
|
827
|
+
this.addObjectClose();
|
|
828
|
+
}
|
|
829
|
+
this.addObjectClose(b);
|
|
830
|
+
};
|
|
831
|
+
Fdc3Serializer.prototype.addArrayOpen = function () {
|
|
832
|
+
this.addLine("[");
|
|
833
|
+
this.tabIncrease();
|
|
834
|
+
return this;
|
|
835
|
+
};
|
|
836
|
+
Fdc3Serializer.prototype.addArrayClose = function (a) {
|
|
837
|
+
if (a === void 0) {
|
|
838
|
+
a = "";
|
|
839
|
+
}
|
|
840
|
+
this.tabDecrease();
|
|
841
|
+
this.addLine("]" + a);
|
|
842
|
+
return this;
|
|
843
|
+
};
|
|
844
|
+
Fdc3Serializer.prototype.addObjectOpen = function () {
|
|
845
|
+
this.addLine("{");
|
|
846
|
+
this.tabIncrease();
|
|
847
|
+
return this;
|
|
848
|
+
};
|
|
849
|
+
Fdc3Serializer.prototype.addObjectClose = function (a) {
|
|
850
|
+
if (a === void 0) {
|
|
851
|
+
a = "";
|
|
852
|
+
}
|
|
853
|
+
this.tabDecrease();
|
|
854
|
+
this.addLine("}" + a);
|
|
855
|
+
return this;
|
|
856
|
+
};
|
|
857
|
+
Fdc3Serializer.prototype.add = function (a) {
|
|
858
|
+
this.i();
|
|
859
|
+
this._sb.l(a);
|
|
860
|
+
return this;
|
|
861
|
+
};
|
|
862
|
+
Fdc3Serializer.prototype.addLine = function (a) {
|
|
863
|
+
this.i();
|
|
864
|
+
this._sb.u(a);
|
|
865
|
+
this.l = true;
|
|
866
|
+
return this;
|
|
867
|
+
};
|
|
868
|
+
Fdc3Serializer.prototype.addProp = function (a) {
|
|
869
|
+
this.i();
|
|
870
|
+
this._sb.u("\"" + a + "\": ");
|
|
871
|
+
this.l = true;
|
|
872
|
+
return this;
|
|
873
|
+
};
|
|
874
|
+
Fdc3Serializer.prototype.addProp1 = function (a, b, c) {
|
|
875
|
+
if (c === void 0) {
|
|
876
|
+
c = "";
|
|
877
|
+
}
|
|
878
|
+
this.i();
|
|
879
|
+
if (!stringIsNullOrEmpty(c)) {
|
|
880
|
+
c = " // " + c;
|
|
881
|
+
}
|
|
882
|
+
var d = b == null ? "null" : b;
|
|
883
|
+
if (typeof b === 'string') {
|
|
884
|
+
this._sb.u("\"" + a + "\": \"" + d + "\"," + c);
|
|
885
|
+
}
|
|
886
|
+
else if (typeCast(Boolean_$type, b) !== null) {
|
|
887
|
+
var e = d.toString().toLowerCase();
|
|
888
|
+
this._sb.u("\"" + a + "\": " + e + "," + c);
|
|
889
|
+
}
|
|
890
|
+
else {
|
|
891
|
+
this._sb.u("\"" + a + "\": " + d + "," + c);
|
|
892
|
+
}
|
|
893
|
+
this.l = true;
|
|
894
|
+
return this;
|
|
895
|
+
};
|
|
896
|
+
Fdc3Serializer.prototype.i = function () {
|
|
897
|
+
if (this.l) {
|
|
898
|
+
for (var a = 0; a < this.m; a++) {
|
|
899
|
+
this._sb.l(" ");
|
|
900
|
+
}
|
|
901
|
+
this.l = false;
|
|
902
|
+
}
|
|
903
|
+
return this;
|
|
904
|
+
};
|
|
905
|
+
Fdc3Serializer.prototype.tabIncrease = function () {
|
|
906
|
+
this.m++;
|
|
907
|
+
return this;
|
|
908
|
+
};
|
|
909
|
+
Fdc3Serializer.prototype.tabDecrease = function () {
|
|
910
|
+
this.m--;
|
|
911
|
+
return this;
|
|
912
|
+
};
|
|
913
|
+
Fdc3Serializer.$t = markType(Fdc3Serializer, 'Fdc3Serializer');
|
|
914
|
+
return Fdc3Serializer;
|
|
915
|
+
}(Base));
|
|
916
|
+
/**
|
|
917
|
+
* @hidden
|
|
918
|
+
*/
|
|
919
|
+
var Fdc3Context = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
920
|
+
__extends(Fdc3Context, _super);
|
|
921
|
+
function Fdc3Context(a) {
|
|
922
|
+
var _rest = [];
|
|
923
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
924
|
+
_rest[_i - 1] = arguments[_i];
|
|
925
|
+
}
|
|
926
|
+
var _this = _super.call(this) || this;
|
|
927
|
+
_this._id = null;
|
|
928
|
+
a = (a == void 0) ? 0 : a;
|
|
929
|
+
switch (a) {
|
|
930
|
+
case 0:
|
|
931
|
+
{
|
|
932
|
+
var c = [0];
|
|
933
|
+
{
|
|
934
|
+
var e = c[0];
|
|
935
|
+
_this.type = Fdc3Util.getString(e);
|
|
936
|
+
_this.id = new Fdc3Dictionary();
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
break;
|
|
940
|
+
case 1:
|
|
941
|
+
{
|
|
942
|
+
var c = _rest[0];
|
|
943
|
+
_this.type = Fdc3Util.getString(c);
|
|
944
|
+
_this.id = new Fdc3Dictionary();
|
|
945
|
+
}
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
return _this;
|
|
949
|
+
}
|
|
950
|
+
Object.defineProperty(Fdc3Context.prototype, "intent", {
|
|
951
|
+
get: function () {
|
|
952
|
+
return Fdc3Util.b(this.item("intent").toString());
|
|
953
|
+
},
|
|
954
|
+
set: function (a) {
|
|
955
|
+
this.item("intent", enumGetBox(Fdc3IntentType_$type, a));
|
|
956
|
+
},
|
|
957
|
+
enumerable: true,
|
|
958
|
+
configurable: true
|
|
959
|
+
});
|
|
960
|
+
Object.defineProperty(Fdc3Context.prototype, "type", {
|
|
961
|
+
get: function () {
|
|
962
|
+
return this.item("type").toString();
|
|
963
|
+
},
|
|
964
|
+
set: function (a) {
|
|
965
|
+
this.item("type", a);
|
|
966
|
+
},
|
|
967
|
+
enumerable: true,
|
|
968
|
+
configurable: true
|
|
969
|
+
});
|
|
970
|
+
Object.defineProperty(Fdc3Context.prototype, "target", {
|
|
971
|
+
get: function () {
|
|
972
|
+
return this.h("target");
|
|
973
|
+
},
|
|
974
|
+
set: function (a) {
|
|
975
|
+
this.item("target", a);
|
|
976
|
+
},
|
|
977
|
+
enumerable: true,
|
|
978
|
+
configurable: true
|
|
979
|
+
});
|
|
980
|
+
Object.defineProperty(Fdc3Context.prototype, "name", {
|
|
981
|
+
get: function () {
|
|
982
|
+
return this.h("name");
|
|
983
|
+
},
|
|
984
|
+
set: function (a) {
|
|
985
|
+
this.item("name", a);
|
|
986
|
+
},
|
|
987
|
+
enumerable: true,
|
|
988
|
+
configurable: true
|
|
989
|
+
});
|
|
990
|
+
Object.defineProperty(Fdc3Context.prototype, "id", {
|
|
991
|
+
get: function () {
|
|
992
|
+
return this._id;
|
|
993
|
+
},
|
|
994
|
+
set: function (a) {
|
|
995
|
+
this._id = a;
|
|
996
|
+
},
|
|
997
|
+
enumerable: true,
|
|
998
|
+
configurable: true
|
|
999
|
+
});
|
|
1000
|
+
Fdc3Context.prototype.toJson = function () {
|
|
1001
|
+
var a = new Fdc3Serializer();
|
|
1002
|
+
var b = a.toJson(this);
|
|
1003
|
+
return b;
|
|
1004
|
+
};
|
|
1005
|
+
Fdc3Context.$t = markType(Fdc3Context, 'Fdc3Context', Fdc3Dictionary.$);
|
|
1006
|
+
return Fdc3Context;
|
|
1007
|
+
}(Fdc3Dictionary));
|
|
1008
|
+
/**
|
|
1009
|
+
* @hidden
|
|
1010
|
+
*/
|
|
1011
|
+
var Fdc3Instrument = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1012
|
+
__extends(Fdc3Instrument, _super);
|
|
1013
|
+
function Fdc3Instrument() {
|
|
1014
|
+
return _super.call(this, 1, 1) || this;
|
|
1015
|
+
}
|
|
1016
|
+
Object.defineProperty(Fdc3Instrument.prototype, "ticker", {
|
|
1017
|
+
get: function () {
|
|
1018
|
+
return this.id.item("ticker").toString();
|
|
1019
|
+
},
|
|
1020
|
+
set: function (a) {
|
|
1021
|
+
this.id.item("ticker", a);
|
|
1022
|
+
},
|
|
1023
|
+
enumerable: true,
|
|
1024
|
+
configurable: true
|
|
1025
|
+
});
|
|
1026
|
+
Fdc3Instrument.$t = markType(Fdc3Instrument, 'Fdc3Instrument', Fdc3Context.$);
|
|
1027
|
+
return Fdc3Instrument;
|
|
1028
|
+
}(Fdc3Context));
|
|
1029
|
+
/**
|
|
1030
|
+
* @hidden
|
|
1031
|
+
*/
|
|
1032
|
+
var Fdc3InstrumentList = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1033
|
+
__extends(Fdc3InstrumentList, _super);
|
|
1034
|
+
function Fdc3InstrumentList() {
|
|
1035
|
+
var _this = _super.call(this, 0) || this;
|
|
1036
|
+
_this._instruments = null;
|
|
1037
|
+
_this.type = Fdc3Util.getString(2);
|
|
1038
|
+
_this.instruments = new Array(0);
|
|
1039
|
+
return _this;
|
|
1040
|
+
}
|
|
1041
|
+
Object.defineProperty(Fdc3InstrumentList.prototype, "instruments", {
|
|
1042
|
+
get: function () {
|
|
1043
|
+
return this._instruments;
|
|
1044
|
+
},
|
|
1045
|
+
set: function (a) {
|
|
1046
|
+
this._instruments = a;
|
|
1047
|
+
},
|
|
1048
|
+
enumerable: true,
|
|
1049
|
+
configurable: true
|
|
1050
|
+
});
|
|
1051
|
+
Fdc3InstrumentList.$t = markType(Fdc3InstrumentList, 'Fdc3InstrumentList', Fdc3Context.$);
|
|
1052
|
+
return Fdc3InstrumentList;
|
|
1053
|
+
}(Fdc3Context));
|
|
1054
|
+
/**
|
|
1055
|
+
* @hidden
|
|
1056
|
+
*/
|
|
1057
|
+
var Fdc3Position = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1058
|
+
__extends(Fdc3Position, _super);
|
|
1059
|
+
function Fdc3Position() {
|
|
1060
|
+
var _this = _super.call(this, 1, 3) || this;
|
|
1061
|
+
_this.instrument = new Fdc3Instrument();
|
|
1062
|
+
return _this;
|
|
1063
|
+
}
|
|
1064
|
+
Object.defineProperty(Fdc3Position.prototype, "instrument", {
|
|
1065
|
+
get: function () {
|
|
1066
|
+
return typeCast(Fdc3Instrument.$, this.item("instrument"));
|
|
1067
|
+
},
|
|
1068
|
+
set: function (a) {
|
|
1069
|
+
this.item("instrument", a);
|
|
1070
|
+
},
|
|
1071
|
+
enumerable: true,
|
|
1072
|
+
configurable: true
|
|
1073
|
+
});
|
|
1074
|
+
Object.defineProperty(Fdc3Position.prototype, "shares", {
|
|
1075
|
+
get: function () {
|
|
1076
|
+
return this.e("shares");
|
|
1077
|
+
},
|
|
1078
|
+
set: function (a) {
|
|
1079
|
+
this.item("shares", a);
|
|
1080
|
+
},
|
|
1081
|
+
enumerable: true,
|
|
1082
|
+
configurable: true
|
|
1083
|
+
});
|
|
1084
|
+
Object.defineProperty(Fdc3Position.prototype, "cost", {
|
|
1085
|
+
get: function () {
|
|
1086
|
+
return this.e("cost");
|
|
1087
|
+
},
|
|
1088
|
+
set: function (a) {
|
|
1089
|
+
this.item("cost", a);
|
|
1090
|
+
},
|
|
1091
|
+
enumerable: true,
|
|
1092
|
+
configurable: true
|
|
1093
|
+
});
|
|
1094
|
+
Object.defineProperty(Fdc3Position.prototype, "price", {
|
|
1095
|
+
get: function () {
|
|
1096
|
+
return this.e("price");
|
|
1097
|
+
},
|
|
1098
|
+
set: function (a) {
|
|
1099
|
+
this.item("price", a);
|
|
1100
|
+
},
|
|
1101
|
+
enumerable: true,
|
|
1102
|
+
configurable: true
|
|
1103
|
+
});
|
|
1104
|
+
Fdc3Position.$t = markType(Fdc3Position, 'Fdc3Position', Fdc3Context.$);
|
|
1105
|
+
return Fdc3Position;
|
|
1106
|
+
}(Fdc3Context));
|
|
1107
|
+
/**
|
|
1108
|
+
* @hidden
|
|
1109
|
+
*/
|
|
1110
|
+
var Fdc3Portfolio = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1111
|
+
__extends(Fdc3Portfolio, _super);
|
|
1112
|
+
function Fdc3Portfolio() {
|
|
1113
|
+
var _this = _super.call(this, 1, 4) || this;
|
|
1114
|
+
_this._positions = null;
|
|
1115
|
+
_this.positions = new Array(0);
|
|
1116
|
+
return _this;
|
|
1117
|
+
}
|
|
1118
|
+
Object.defineProperty(Fdc3Portfolio.prototype, "positions", {
|
|
1119
|
+
get: function () {
|
|
1120
|
+
return this._positions;
|
|
1121
|
+
},
|
|
1122
|
+
set: function (a) {
|
|
1123
|
+
this._positions = a;
|
|
1124
|
+
},
|
|
1125
|
+
enumerable: true,
|
|
1126
|
+
configurable: true
|
|
1127
|
+
});
|
|
1128
|
+
Fdc3Portfolio.$t = markType(Fdc3Portfolio, 'Fdc3Portfolio', Fdc3Context.$);
|
|
1129
|
+
return Fdc3Portfolio;
|
|
1130
|
+
}(Fdc3Context));
|
|
1131
|
+
/**
|
|
1132
|
+
* @hidden
|
|
1133
|
+
*/
|
|
1134
|
+
var Fdc3Organization = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1135
|
+
__extends(Fdc3Organization, _super);
|
|
1136
|
+
function Fdc3Organization() {
|
|
1137
|
+
return _super.call(this, 1, 7) || this;
|
|
1138
|
+
}
|
|
1139
|
+
Fdc3Organization.$t = markType(Fdc3Organization, 'Fdc3Organization', Fdc3Context.$);
|
|
1140
|
+
return Fdc3Organization;
|
|
1141
|
+
}(Fdc3Context));
|
|
1142
|
+
/**
|
|
1143
|
+
* @hidden
|
|
1144
|
+
*/
|
|
1145
|
+
var Fdc3OrganizationList = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1146
|
+
__extends(Fdc3OrganizationList, _super);
|
|
1147
|
+
function Fdc3OrganizationList() {
|
|
1148
|
+
var _this = _super.call(this, 1, 8) || this;
|
|
1149
|
+
_this._organizations = null;
|
|
1150
|
+
return _this;
|
|
1151
|
+
}
|
|
1152
|
+
Object.defineProperty(Fdc3OrganizationList.prototype, "organizations", {
|
|
1153
|
+
get: function () {
|
|
1154
|
+
return this._organizations;
|
|
1155
|
+
},
|
|
1156
|
+
set: function (a) {
|
|
1157
|
+
this._organizations = a;
|
|
1158
|
+
},
|
|
1159
|
+
enumerable: true,
|
|
1160
|
+
configurable: true
|
|
1161
|
+
});
|
|
1162
|
+
Fdc3OrganizationList.$t = markType(Fdc3OrganizationList, 'Fdc3OrganizationList', Fdc3Context.$);
|
|
1163
|
+
return Fdc3OrganizationList;
|
|
1164
|
+
}(Fdc3Context));
|
|
1165
|
+
/**
|
|
1166
|
+
* @hidden
|
|
1167
|
+
*/
|
|
1168
|
+
var Fdc3Contact = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1169
|
+
__extends(Fdc3Contact, _super);
|
|
1170
|
+
function Fdc3Contact(a) {
|
|
1171
|
+
var _rest = [];
|
|
1172
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1173
|
+
_rest[_i - 1] = arguments[_i];
|
|
1174
|
+
}
|
|
1175
|
+
var _this = this;
|
|
1176
|
+
a = (a == void 0) ? 0 : a;
|
|
1177
|
+
switch (a) {
|
|
1178
|
+
case 0:
|
|
1179
|
+
{
|
|
1180
|
+
var c = ["", "", "", ""];
|
|
1181
|
+
{
|
|
1182
|
+
var e = c[0];
|
|
1183
|
+
var f = c[1];
|
|
1184
|
+
var g = c[2];
|
|
1185
|
+
var h = c[3];
|
|
1186
|
+
_this = _super.call(this, 1, 5) || this;
|
|
1187
|
+
_this.name = e;
|
|
1188
|
+
_this.email = f;
|
|
1189
|
+
_this.phone = g;
|
|
1190
|
+
_this.twitter = h;
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
break;
|
|
1194
|
+
case 1:
|
|
1195
|
+
{
|
|
1196
|
+
var c = _rest[0];
|
|
1197
|
+
var d = _rest[1];
|
|
1198
|
+
var e = _rest[2];
|
|
1199
|
+
var f = _rest[3];
|
|
1200
|
+
_this = _super.call(this, 1, 5) || this;
|
|
1201
|
+
_this.name = c;
|
|
1202
|
+
_this.email = d;
|
|
1203
|
+
_this.phone = e;
|
|
1204
|
+
_this.twitter = f;
|
|
1205
|
+
}
|
|
1206
|
+
break;
|
|
1207
|
+
}
|
|
1208
|
+
return _this;
|
|
1209
|
+
}
|
|
1210
|
+
Object.defineProperty(Fdc3Contact.prototype, "email", {
|
|
1211
|
+
get: function () {
|
|
1212
|
+
return this.id.item("email").toString();
|
|
1213
|
+
},
|
|
1214
|
+
set: function (a) {
|
|
1215
|
+
this.id.item("email", a);
|
|
1216
|
+
},
|
|
1217
|
+
enumerable: true,
|
|
1218
|
+
configurable: true
|
|
1219
|
+
});
|
|
1220
|
+
Object.defineProperty(Fdc3Contact.prototype, "phone", {
|
|
1221
|
+
get: function () {
|
|
1222
|
+
return this.id.item("phone").toString();
|
|
1223
|
+
},
|
|
1224
|
+
set: function (a) {
|
|
1225
|
+
this.id.item("phone", a);
|
|
1226
|
+
},
|
|
1227
|
+
enumerable: true,
|
|
1228
|
+
configurable: true
|
|
1229
|
+
});
|
|
1230
|
+
Object.defineProperty(Fdc3Contact.prototype, "twitter", {
|
|
1231
|
+
get: function () {
|
|
1232
|
+
return this.id.item("twitter").toString();
|
|
1233
|
+
},
|
|
1234
|
+
set: function (a) {
|
|
1235
|
+
this.id.item("twitter", a);
|
|
1236
|
+
},
|
|
1237
|
+
enumerable: true,
|
|
1238
|
+
configurable: true
|
|
1239
|
+
});
|
|
1240
|
+
Fdc3Contact.$t = markType(Fdc3Contact, 'Fdc3Contact', Fdc3Context.$);
|
|
1241
|
+
return Fdc3Contact;
|
|
1242
|
+
}(Fdc3Context));
|
|
1243
|
+
/**
|
|
1244
|
+
* @hidden
|
|
1245
|
+
*/
|
|
1246
|
+
var Fdc3ContactList = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1247
|
+
__extends(Fdc3ContactList, _super);
|
|
1248
|
+
function Fdc3ContactList(a) {
|
|
1249
|
+
var _rest = [];
|
|
1250
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1251
|
+
_rest[_i - 1] = arguments[_i];
|
|
1252
|
+
}
|
|
1253
|
+
var _this = this;
|
|
1254
|
+
a = (a == void 0) ? 0 : a;
|
|
1255
|
+
switch (a) {
|
|
1256
|
+
case 0:
|
|
1257
|
+
{
|
|
1258
|
+
_this = _super.call(this, 1, 6) || this;
|
|
1259
|
+
_this._contacts = null;
|
|
1260
|
+
_this.contacts = new Array(0);
|
|
1261
|
+
}
|
|
1262
|
+
break;
|
|
1263
|
+
case 1:
|
|
1264
|
+
{
|
|
1265
|
+
var c = _rest[0];
|
|
1266
|
+
{
|
|
1267
|
+
_this = _super.call(this, 1, 6) || this;
|
|
1268
|
+
_this._contacts = null;
|
|
1269
|
+
_this.contacts = new Array(0);
|
|
1270
|
+
}
|
|
1271
|
+
_this.contacts = c;
|
|
1272
|
+
}
|
|
1273
|
+
break;
|
|
1274
|
+
}
|
|
1275
|
+
return _this;
|
|
1276
|
+
}
|
|
1277
|
+
Object.defineProperty(Fdc3ContactList.prototype, "contacts", {
|
|
1278
|
+
get: function () {
|
|
1279
|
+
return this._contacts;
|
|
1280
|
+
},
|
|
1281
|
+
set: function (a) {
|
|
1282
|
+
this._contacts = a;
|
|
1283
|
+
},
|
|
1284
|
+
enumerable: true,
|
|
1285
|
+
configurable: true
|
|
1286
|
+
});
|
|
1287
|
+
Fdc3ContactList.$t = markType(Fdc3ContactList, 'Fdc3ContactList', Fdc3Context.$);
|
|
1288
|
+
return Fdc3ContactList;
|
|
1289
|
+
}(Fdc3Context));
|
|
1290
|
+
|
|
1291
|
+
/*
|
|
1292
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1293
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1294
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1295
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1296
|
+
*/
|
|
1297
|
+
|
|
1298
|
+
/*
|
|
1299
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1300
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1301
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1302
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1303
|
+
*/
|
|
1304
|
+
|
|
1305
|
+
/*
|
|
1306
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1307
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1308
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1309
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1310
|
+
*/
|
|
1311
|
+
|
|
1312
|
+
/*
|
|
1313
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1314
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1315
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1316
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1317
|
+
*/
|
|
1318
|
+
|
|
1319
|
+
/*
|
|
1320
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1321
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1322
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1323
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1324
|
+
*/
|
|
1325
|
+
/**
|
|
1326
|
+
* @hidden
|
|
1327
|
+
*/
|
|
1328
|
+
var Fdc3Converter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1329
|
+
__extends(Fdc3Converter, _super);
|
|
1330
|
+
function Fdc3Converter() {
|
|
1331
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1332
|
+
}
|
|
1333
|
+
Fdc3Converter.log = function (message_) {
|
|
1334
|
+
};
|
|
1335
|
+
Fdc3Converter.toInstrument = function (context_) {
|
|
1336
|
+
var instrument_ = new Fdc3Instrument();
|
|
1337
|
+
if (context_ == null) {
|
|
1338
|
+
return instrument_;
|
|
1339
|
+
}
|
|
1340
|
+
// Fdc3Converter.log('converting to Instrument');
|
|
1341
|
+
var propNames = Object.getOwnPropertyNames(context_);
|
|
1342
|
+
for (var i = 0; i < propNames.length; i++) {
|
|
1343
|
+
var prop = propNames[i];
|
|
1344
|
+
if (prop === 'id') {
|
|
1345
|
+
var propIDs = Object.getOwnPropertyNames(context_[prop]);
|
|
1346
|
+
for (var ii = 0; ii < propIDs.length; ii++) {
|
|
1347
|
+
var id = propIDs[ii];
|
|
1348
|
+
instrument_.id.set(id, context_[prop][id]);
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
else {
|
|
1352
|
+
instrument_.set(prop, context_[prop]);
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
;
|
|
1356
|
+
return instrument_;
|
|
1357
|
+
};
|
|
1358
|
+
Fdc3Converter.toInstrumentList = function (context_) {
|
|
1359
|
+
var list_ = new Fdc3InstrumentList();
|
|
1360
|
+
if (context_ == null) {
|
|
1361
|
+
return list_;
|
|
1362
|
+
}
|
|
1363
|
+
// Fdc3Converter.log('converting to InstrumentList');
|
|
1364
|
+
var propNames = Object.getOwnPropertyNames(context_);
|
|
1365
|
+
for (var i = 0; i < propNames.length; i++) {
|
|
1366
|
+
var prop = propNames[i];
|
|
1367
|
+
if (context_[prop] instanceof Array) {
|
|
1368
|
+
var array = context_[prop];
|
|
1369
|
+
for (var ii = 0; ii < array.length; ii++) {
|
|
1370
|
+
var item = array[ii];
|
|
1371
|
+
if (item['type'] === 'fdc3.instrument') {
|
|
1372
|
+
var instrument = this.toInstrument(item);
|
|
1373
|
+
list_.instruments.push(instrument);
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
else {
|
|
1378
|
+
list_.set(prop, context_[prop]);
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
;
|
|
1382
|
+
return list_;
|
|
1383
|
+
};
|
|
1384
|
+
Fdc3Converter.toPosition = function (context_) {
|
|
1385
|
+
var position_ = new Fdc3Position();
|
|
1386
|
+
if (context_ == null) {
|
|
1387
|
+
return position_;
|
|
1388
|
+
}
|
|
1389
|
+
// Fdc3Converter.log('converting to Position');
|
|
1390
|
+
var propNames = Object.getOwnPropertyNames(context_);
|
|
1391
|
+
for (var i = 0; i < propNames.length; i++) {
|
|
1392
|
+
var prop = propNames[i];
|
|
1393
|
+
if (prop === 'instrument') {
|
|
1394
|
+
var inst = Fdc3Converter.toInstrument(context_[prop]);
|
|
1395
|
+
position_.instrument = inst;
|
|
1396
|
+
}
|
|
1397
|
+
else {
|
|
1398
|
+
position_.set(prop, context_[prop]);
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
;
|
|
1402
|
+
return position_;
|
|
1403
|
+
};
|
|
1404
|
+
Fdc3Converter.toPortfolio = function (context_) {
|
|
1405
|
+
var portfolio_ = new Fdc3Portfolio();
|
|
1406
|
+
if (context_ == null) {
|
|
1407
|
+
return portfolio_;
|
|
1408
|
+
}
|
|
1409
|
+
// Fdc3Converter.log('converting to Portfolio');
|
|
1410
|
+
var propNames = Object.getOwnPropertyNames(context_);
|
|
1411
|
+
for (var i = 0; i < propNames.length; i++) {
|
|
1412
|
+
var prop = propNames[i];
|
|
1413
|
+
if (context_[prop] instanceof Array) {
|
|
1414
|
+
// Fdc3Converter.log('array ');
|
|
1415
|
+
var array = context_[prop];
|
|
1416
|
+
for (var ii = 0; ii < array.length; ii++) {
|
|
1417
|
+
var item = array[ii];
|
|
1418
|
+
if (item['type'] === 'fdc3.position') {
|
|
1419
|
+
var position_ = Fdc3Converter.toPosition(item);
|
|
1420
|
+
portfolio_.positions.push(position_);
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
else {
|
|
1425
|
+
portfolio_.set(prop, context_[prop]);
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
;
|
|
1429
|
+
return portfolio_;
|
|
1430
|
+
};
|
|
1431
|
+
Fdc3Converter.fromPortfolio = function (portfolio_) {
|
|
1432
|
+
var context_ = null;
|
|
1433
|
+
if (portfolio_ == null) {
|
|
1434
|
+
return context_;
|
|
1435
|
+
}
|
|
1436
|
+
// Fdc3Converter.log('converting from Portfolio');
|
|
1437
|
+
context_ = {};
|
|
1438
|
+
var propNames = portfolio_.getKeys();
|
|
1439
|
+
for (var i = 0; i < propNames.length; i++) {
|
|
1440
|
+
var prop = propNames[i];
|
|
1441
|
+
context_[prop] = portfolio_.item(prop);
|
|
1442
|
+
}
|
|
1443
|
+
context_.positions = [];
|
|
1444
|
+
for (var i = 0; i < portfolio_.positions.length; i++) {
|
|
1445
|
+
var position_ = portfolio_.positions[i];
|
|
1446
|
+
var item = Fdc3Converter.fromPosition(position_);
|
|
1447
|
+
context_.positions.push(item);
|
|
1448
|
+
}
|
|
1449
|
+
;
|
|
1450
|
+
return context_;
|
|
1451
|
+
};
|
|
1452
|
+
Fdc3Converter.fromPosition = function (position_) {
|
|
1453
|
+
var context_ = null;
|
|
1454
|
+
if (position_ == null) {
|
|
1455
|
+
return context_;
|
|
1456
|
+
}
|
|
1457
|
+
// Fdc3Converter.log('converting from position');
|
|
1458
|
+
context_ = {};
|
|
1459
|
+
var propNames = position_.getKeys();
|
|
1460
|
+
for (var i = 0; i < propNames.length; i++) {
|
|
1461
|
+
var prop = propNames[i];
|
|
1462
|
+
context_[prop] = position_.item(prop);
|
|
1463
|
+
}
|
|
1464
|
+
context_.instrument = Fdc3Converter.fromInstrument(position_.instrument);
|
|
1465
|
+
;
|
|
1466
|
+
return context_;
|
|
1467
|
+
};
|
|
1468
|
+
Fdc3Converter.fromInstrumentList = function (list_) {
|
|
1469
|
+
var context_ = null;
|
|
1470
|
+
if (list_ == null) {
|
|
1471
|
+
return context_;
|
|
1472
|
+
}
|
|
1473
|
+
// Fdc3Converter.log('converting from InstrumentList');
|
|
1474
|
+
context_ = {};
|
|
1475
|
+
var propNames = list_.getKeys();
|
|
1476
|
+
for (var i = 0; i < propNames.length; i++) {
|
|
1477
|
+
var prop = propNames[i];
|
|
1478
|
+
context_[prop] = list_.item(prop);
|
|
1479
|
+
}
|
|
1480
|
+
context_.instruments = [];
|
|
1481
|
+
for (var i = 0; i < list_.instruments.length; i++) {
|
|
1482
|
+
var instrument = list_.instruments[i];
|
|
1483
|
+
var item = Fdc3Converter.fromInstrument(instrument);
|
|
1484
|
+
context_.instruments.push(item);
|
|
1485
|
+
}
|
|
1486
|
+
;
|
|
1487
|
+
return context_;
|
|
1488
|
+
};
|
|
1489
|
+
Fdc3Converter.fromInstrument = function (instrument_) {
|
|
1490
|
+
var context_ = null;
|
|
1491
|
+
if (instrument_ == null) {
|
|
1492
|
+
return context_;
|
|
1493
|
+
}
|
|
1494
|
+
// Fdc3Converter.log('converting from Instrument');
|
|
1495
|
+
context_ = {};
|
|
1496
|
+
var propNames = instrument_.getKeys();
|
|
1497
|
+
for (var i = 0; i < propNames.length; i++) {
|
|
1498
|
+
var prop = propNames[i];
|
|
1499
|
+
context_[prop] = instrument_.item(prop);
|
|
1500
|
+
}
|
|
1501
|
+
context_.id = {};
|
|
1502
|
+
var propIDs = instrument_.id.getKeys();
|
|
1503
|
+
for (var i = 0; i < propIDs.length; i++) {
|
|
1504
|
+
var prop = propIDs[i];
|
|
1505
|
+
context_.id[prop] = instrument_.id.item(prop);
|
|
1506
|
+
}
|
|
1507
|
+
;
|
|
1508
|
+
return context_;
|
|
1509
|
+
};
|
|
1510
|
+
Fdc3Converter.$t = markType(Fdc3Converter, 'Fdc3Converter');
|
|
1511
|
+
return Fdc3Converter;
|
|
1512
|
+
}(Base));
|
|
1513
|
+
|
|
1514
|
+
/*
|
|
1515
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1516
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1517
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1518
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1519
|
+
*/
|
|
1520
|
+
|
|
1521
|
+
/*
|
|
1522
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1523
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1524
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1525
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1526
|
+
*/
|
|
1527
|
+
|
|
1528
|
+
/*
|
|
1529
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1530
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1531
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1532
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1533
|
+
*/
|
|
1534
|
+
|
|
1535
|
+
/*
|
|
1536
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1537
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1538
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1539
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1540
|
+
*/
|
|
1541
|
+
|
|
1542
|
+
/*
|
|
1543
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1544
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1545
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1546
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1547
|
+
*/
|
|
1548
|
+
|
|
1549
|
+
/*
|
|
1550
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1551
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1552
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1553
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1554
|
+
*/
|
|
1555
|
+
|
|
1556
|
+
/*
|
|
1557
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1558
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1559
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1560
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1561
|
+
*/
|
|
1562
|
+
/**
|
|
1563
|
+
* @hidden
|
|
1564
|
+
*/
|
|
1565
|
+
var Fdc3Message = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1566
|
+
__extends(Fdc3Message, _super);
|
|
1567
|
+
function Fdc3Message() {
|
|
1568
|
+
var _this = _super.call(this) || this;
|
|
1569
|
+
_this._tickerSymbols = null;
|
|
1570
|
+
_this._tickerNames = null;
|
|
1571
|
+
_this._json = null;
|
|
1572
|
+
_this._context = null;
|
|
1573
|
+
_this._intentType = null;
|
|
1574
|
+
_this._contextType = null;
|
|
1575
|
+
_this.tickerNames = new Array(0);
|
|
1576
|
+
_this.tickerSymbols = new Array(0);
|
|
1577
|
+
return _this;
|
|
1578
|
+
}
|
|
1579
|
+
Object.defineProperty(Fdc3Message.prototype, "tickerSymbols", {
|
|
1580
|
+
get: function () {
|
|
1581
|
+
return this._tickerSymbols;
|
|
1582
|
+
},
|
|
1583
|
+
set: function (a) {
|
|
1584
|
+
this._tickerSymbols = a;
|
|
1585
|
+
},
|
|
1586
|
+
enumerable: true,
|
|
1587
|
+
configurable: true
|
|
1588
|
+
});
|
|
1589
|
+
Object.defineProperty(Fdc3Message.prototype, "tickerNames", {
|
|
1590
|
+
get: function () {
|
|
1591
|
+
return this._tickerNames;
|
|
1592
|
+
},
|
|
1593
|
+
set: function (a) {
|
|
1594
|
+
this._tickerNames = a;
|
|
1595
|
+
},
|
|
1596
|
+
enumerable: true,
|
|
1597
|
+
configurable: true
|
|
1598
|
+
});
|
|
1599
|
+
Object.defineProperty(Fdc3Message.prototype, "json", {
|
|
1600
|
+
get: function () {
|
|
1601
|
+
return this._json;
|
|
1602
|
+
},
|
|
1603
|
+
set: function (a) {
|
|
1604
|
+
this._json = a;
|
|
1605
|
+
},
|
|
1606
|
+
enumerable: true,
|
|
1607
|
+
configurable: true
|
|
1608
|
+
});
|
|
1609
|
+
Object.defineProperty(Fdc3Message.prototype, "context", {
|
|
1610
|
+
get: function () {
|
|
1611
|
+
return this._context;
|
|
1612
|
+
},
|
|
1613
|
+
set: function (a) {
|
|
1614
|
+
this._context = a;
|
|
1615
|
+
},
|
|
1616
|
+
enumerable: true,
|
|
1617
|
+
configurable: true
|
|
1618
|
+
});
|
|
1619
|
+
Object.defineProperty(Fdc3Message.prototype, "intentType", {
|
|
1620
|
+
get: function () {
|
|
1621
|
+
return this._intentType;
|
|
1622
|
+
},
|
|
1623
|
+
set: function (a) {
|
|
1624
|
+
this._intentType = a;
|
|
1625
|
+
},
|
|
1626
|
+
enumerable: true,
|
|
1627
|
+
configurable: true
|
|
1628
|
+
});
|
|
1629
|
+
Object.defineProperty(Fdc3Message.prototype, "contextType", {
|
|
1630
|
+
get: function () {
|
|
1631
|
+
return this._contextType;
|
|
1632
|
+
},
|
|
1633
|
+
set: function (a) {
|
|
1634
|
+
this._contextType = a;
|
|
1635
|
+
},
|
|
1636
|
+
enumerable: true,
|
|
1637
|
+
configurable: true
|
|
1638
|
+
});
|
|
1639
|
+
Fdc3Message.$t = markType(Fdc3Message, 'Fdc3Message');
|
|
1640
|
+
return Fdc3Message;
|
|
1641
|
+
}(Base));
|
|
1642
|
+
|
|
1643
|
+
/*
|
|
1644
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1645
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1646
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1647
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1648
|
+
*/
|
|
1649
|
+
/**
|
|
1650
|
+
* @hidden
|
|
1651
|
+
*/
|
|
1652
|
+
var Fdc3DataAdapter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1653
|
+
__extends(Fdc3DataAdapter, _super);
|
|
1654
|
+
function Fdc3DataAdapter(a) {
|
|
1655
|
+
var _this = _super.call(this) || this;
|
|
1656
|
+
_this.messageReceived = null;
|
|
1657
|
+
_this._openFin = null;
|
|
1658
|
+
_this.a3 = false;
|
|
1659
|
+
_this._openFin = a;
|
|
1660
|
+
return _this;
|
|
1661
|
+
}
|
|
1662
|
+
Fdc3DataAdapter.prototype.aq = function (a, b, c) {
|
|
1663
|
+
_super.prototype.aq.call(this, a, b, c);
|
|
1664
|
+
};
|
|
1665
|
+
Fdc3DataAdapter.prototype.ba = function (a) {
|
|
1666
|
+
if (a == null) {
|
|
1667
|
+
return;
|
|
1668
|
+
}
|
|
1669
|
+
if (a.context != null && stringIsNullOrEmpty(a.json)) {
|
|
1670
|
+
a.json = a.context.toJson();
|
|
1671
|
+
this.log("received '" + a.intentType + "' intent '" + a.contextType + "' context with JSON:\n" + a.json);
|
|
1672
|
+
}
|
|
1673
|
+
if (this.messageReceived != null && a != null) {
|
|
1674
|
+
this.messageReceived(a);
|
|
1675
|
+
}
|
|
1676
|
+
};
|
|
1677
|
+
Fdc3DataAdapter.prototype.a5 = function () {
|
|
1678
|
+
var isRunning_ = true;
|
|
1679
|
+
if (!window.hasOwnProperty('fin')) {
|
|
1680
|
+
isRunning_ = false;
|
|
1681
|
+
}
|
|
1682
|
+
;
|
|
1683
|
+
return isRunning_;
|
|
1684
|
+
};
|
|
1685
|
+
Fdc3DataAdapter.prototype.subscribe = function (intentType_, contextType_) {
|
|
1686
|
+
var _this = this;
|
|
1687
|
+
if (contextType_ === void 0) {
|
|
1688
|
+
contextType_ = "";
|
|
1689
|
+
}
|
|
1690
|
+
if (!this.a5()) {
|
|
1691
|
+
return;
|
|
1692
|
+
}
|
|
1693
|
+
if (stringIsNullOrEmpty(intentType_)) {
|
|
1694
|
+
intentType_ = "ViewChart";
|
|
1695
|
+
}
|
|
1696
|
+
this.log("Subscribing to '" + intentType_ + "' intent and '" + contextType_ + "' context");
|
|
1697
|
+
var addIntentListener_ = this._openFin.addIntentListener;
|
|
1698
|
+
// calling OpenFin API:
|
|
1699
|
+
addIntentListener_(intentType_, function (context) {
|
|
1700
|
+
return new Promise(function (resolve, reject) {
|
|
1701
|
+
try {
|
|
1702
|
+
_this.log('Subscriber received context ');
|
|
1703
|
+
if (context.type == null || context.type === undefined) {
|
|
1704
|
+
_this.log('Subscriber received context with missing context.type');
|
|
1705
|
+
return;
|
|
1706
|
+
}
|
|
1707
|
+
if (contextType_ !== '' && contextType_ !== context.type) {
|
|
1708
|
+
_this.log('Subscriber skipping not matching context.type');
|
|
1709
|
+
return;
|
|
1710
|
+
}
|
|
1711
|
+
// call function to handle intent and process its context
|
|
1712
|
+
_this.handleIntent(context, context.type, intentType_);
|
|
1713
|
+
resolve();
|
|
1714
|
+
}
|
|
1715
|
+
catch (e) {
|
|
1716
|
+
_this.log('Subscriber detected error with ' + intentType_ + ' intent: \n' + e);
|
|
1717
|
+
reject(e);
|
|
1718
|
+
}
|
|
1719
|
+
});
|
|
1720
|
+
});
|
|
1721
|
+
;
|
|
1722
|
+
};
|
|
1723
|
+
Fdc3DataAdapter.prototype.handleIntent = function (context_, contextType_, intentType_) {
|
|
1724
|
+
var e_1, _a, e_2, _b;
|
|
1725
|
+
var msg_ = new Fdc3Message();
|
|
1726
|
+
this.log("HandleIntent '" + intentType_ + "' intent with '" + contextType_ + "' context");
|
|
1727
|
+
msg_.intentType = intentType_;
|
|
1728
|
+
msg_.contextType = contextType_;
|
|
1729
|
+
this.log('HandleIntent');
|
|
1730
|
+
if (contextType_ === 'fdc3.instrument') {
|
|
1731
|
+
var instrument = Fdc3Converter.toInstrument(context_);
|
|
1732
|
+
msg_.context = instrument;
|
|
1733
|
+
}
|
|
1734
|
+
else if (contextType_ === 'fdc3.instrumentList') {
|
|
1735
|
+
var list = Fdc3Converter.toInstrumentList(context_);
|
|
1736
|
+
msg_.context = list;
|
|
1737
|
+
}
|
|
1738
|
+
else if (contextType_ === 'fdc3.position') {
|
|
1739
|
+
var position = Fdc3Converter.toPosition(context_);
|
|
1740
|
+
msg_.context = position;
|
|
1741
|
+
}
|
|
1742
|
+
else if (contextType_ === 'fdc3.portfolio') {
|
|
1743
|
+
var portfolio = Fdc3Converter.toPortfolio(context_);
|
|
1744
|
+
msg_.context = portfolio;
|
|
1745
|
+
}
|
|
1746
|
+
else // TODO other unsupported/custom context of FDC3 messages
|
|
1747
|
+
{
|
|
1748
|
+
// var custom = Fdc3Converter.toPortfolio(context_);
|
|
1749
|
+
// msg_.context = custom;
|
|
1750
|
+
// this.log('received custom \n' + custom.toJson());
|
|
1751
|
+
}
|
|
1752
|
+
;
|
|
1753
|
+
var a = new List$1(Fdc3Position.$, 0);
|
|
1754
|
+
var b = new List$1(Fdc3Instrument.$, 0);
|
|
1755
|
+
var c = new List$1(String_$type, 0);
|
|
1756
|
+
var d = new List$1(String_$type, 0);
|
|
1757
|
+
if (contextType_ == "fdc3.instrument") {
|
|
1758
|
+
this.v.clear();
|
|
1759
|
+
arrayClear(this.stockPrices);
|
|
1760
|
+
var e = typeCast(Fdc3Instrument.$, msg_.context);
|
|
1761
|
+
b.add(e);
|
|
1762
|
+
var f = e.ticker;
|
|
1763
|
+
if (!c.contains(f)) {
|
|
1764
|
+
c.add(f);
|
|
1765
|
+
}
|
|
1766
|
+
var g = e.name;
|
|
1767
|
+
if (!d.contains(g)) {
|
|
1768
|
+
d.add(g);
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
else if (contextType_ == "fdc3.instrumentList") {
|
|
1772
|
+
this.v.clear();
|
|
1773
|
+
arrayClear(this.stockPrices);
|
|
1774
|
+
var h = typeCast(Fdc3InstrumentList.$, msg_.context);
|
|
1775
|
+
b.o(h.instruments);
|
|
1776
|
+
var k = h.instruments;
|
|
1777
|
+
for (var j = 0; j < k.length; j++) {
|
|
1778
|
+
var i = k[j];
|
|
1779
|
+
var l = i.ticker;
|
|
1780
|
+
if (!c.contains(l)) {
|
|
1781
|
+
c.add(l);
|
|
1782
|
+
}
|
|
1783
|
+
var m = i.name;
|
|
1784
|
+
if (!d.contains(m)) {
|
|
1785
|
+
d.add(m);
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
else if (contextType_ == "fdc3.position") {
|
|
1790
|
+
var n = typeCast(Fdc3Position.$, msg_.context);
|
|
1791
|
+
a.add(n);
|
|
1792
|
+
var o = n.instrument.ticker;
|
|
1793
|
+
if (!c.contains(o)) {
|
|
1794
|
+
c.add(n.instrument.ticker);
|
|
1795
|
+
}
|
|
1796
|
+
var p = n.instrument.name;
|
|
1797
|
+
if (!d.contains(p)) {
|
|
1798
|
+
d.add(p);
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
else if (contextType_ == "fdc3.portfolio") {
|
|
1802
|
+
this.x.clear();
|
|
1803
|
+
arrayClear(this.stockPositions);
|
|
1804
|
+
var q = typeCast(Fdc3Portfolio.$, msg_.context);
|
|
1805
|
+
a.o(q.positions);
|
|
1806
|
+
var t = q.positions;
|
|
1807
|
+
for (var s = 0; s < t.length; s++) {
|
|
1808
|
+
var r = t[s];
|
|
1809
|
+
var u = r.instrument.ticker;
|
|
1810
|
+
if (!c.contains(u)) {
|
|
1811
|
+
c.add(r.instrument.ticker);
|
|
1812
|
+
}
|
|
1813
|
+
var v = r.instrument.name;
|
|
1814
|
+
if (!d.contains(v)) {
|
|
1815
|
+
d.add(v);
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
msg_.tickerSymbols = this.f(String_$type, c);
|
|
1820
|
+
msg_.tickerNames = this.f(String_$type, d);
|
|
1821
|
+
this.log("HandleIntent tickerSymbols " + msg_.tickerSymbols);
|
|
1822
|
+
this.log("HandleIntent instrumentList " + b.count);
|
|
1823
|
+
this.log("HandleIntent positionList " + a.count);
|
|
1824
|
+
try {
|
|
1825
|
+
for (var _c = __values(fromEnum(b)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
1826
|
+
var w = _d.value;
|
|
1827
|
+
var x = w.ticker;
|
|
1828
|
+
if (stringIsNullOrEmpty(x)) {
|
|
1829
|
+
continue;
|
|
1830
|
+
}
|
|
1831
|
+
var y = this.q(x);
|
|
1832
|
+
this.ao(x, y);
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
catch (e_1_1) {
|
|
1836
|
+
e_1 = { error: e_1_1 };
|
|
1837
|
+
}
|
|
1838
|
+
finally {
|
|
1839
|
+
try {
|
|
1840
|
+
if (_d && !_d.done && (_a = _c.return))
|
|
1841
|
+
_a.call(_c);
|
|
1842
|
+
}
|
|
1843
|
+
finally {
|
|
1844
|
+
if (e_1)
|
|
1845
|
+
throw e_1.error;
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
try {
|
|
1849
|
+
for (var _e = __values(fromEnum(a)), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
1850
|
+
var z = _f.value;
|
|
1851
|
+
var aa = z.instrument.ticker;
|
|
1852
|
+
if (stringIsNullOrEmpty(aa)) {
|
|
1853
|
+
continue;
|
|
1854
|
+
}
|
|
1855
|
+
var ab = this.p(aa);
|
|
1856
|
+
if (z.cost > 0) {
|
|
1857
|
+
ab.costPerShare = z.cost;
|
|
1858
|
+
}
|
|
1859
|
+
if (z.shares > 0) {
|
|
1860
|
+
ab.shares = z.shares;
|
|
1861
|
+
}
|
|
1862
|
+
if (z.price > 0) {
|
|
1863
|
+
ab.marketPrice = z.price;
|
|
1864
|
+
}
|
|
1865
|
+
this.an(aa, ab);
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
catch (e_2_1) {
|
|
1869
|
+
e_2 = { error: e_2_1 };
|
|
1870
|
+
}
|
|
1871
|
+
finally {
|
|
1872
|
+
try {
|
|
1873
|
+
if (_f && !_f.done && (_b = _e.return))
|
|
1874
|
+
_b.call(_e);
|
|
1875
|
+
}
|
|
1876
|
+
finally {
|
|
1877
|
+
if (e_2)
|
|
1878
|
+
throw e_2.error;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
this.ba(msg_);
|
|
1882
|
+
};
|
|
1883
|
+
Fdc3DataAdapter.prototype.sendInstrument = function (a, b, c) {
|
|
1884
|
+
if (c === void 0) {
|
|
1885
|
+
c = "";
|
|
1886
|
+
}
|
|
1887
|
+
if (b == null) {
|
|
1888
|
+
return;
|
|
1889
|
+
}
|
|
1890
|
+
var d = Fdc3Converter.fromInstrument(b);
|
|
1891
|
+
this.bb(a, d, c);
|
|
1892
|
+
};
|
|
1893
|
+
Fdc3DataAdapter.prototype.sendInstrumentList = function (a, b, c) {
|
|
1894
|
+
if (c === void 0) {
|
|
1895
|
+
c = "";
|
|
1896
|
+
}
|
|
1897
|
+
if (b == null) {
|
|
1898
|
+
return;
|
|
1899
|
+
}
|
|
1900
|
+
var d = Fdc3Converter.fromInstrumentList(b);
|
|
1901
|
+
this.bb(a, d, c);
|
|
1902
|
+
};
|
|
1903
|
+
Fdc3DataAdapter.prototype.sendPosition = function (a, b, c) {
|
|
1904
|
+
if (c === void 0) {
|
|
1905
|
+
c = "";
|
|
1906
|
+
}
|
|
1907
|
+
if (b == null) {
|
|
1908
|
+
return;
|
|
1909
|
+
}
|
|
1910
|
+
var d = Fdc3Converter.fromPosition(b);
|
|
1911
|
+
this.bb(a, d, c);
|
|
1912
|
+
};
|
|
1913
|
+
Fdc3DataAdapter.prototype.sendPortfolio = function (a, b, c) {
|
|
1914
|
+
if (c === void 0) {
|
|
1915
|
+
c = "";
|
|
1916
|
+
}
|
|
1917
|
+
if (b == null) {
|
|
1918
|
+
return;
|
|
1919
|
+
}
|
|
1920
|
+
var d = Fdc3Converter.fromPortfolio(b);
|
|
1921
|
+
this.bb(a, d, c);
|
|
1922
|
+
};
|
|
1923
|
+
Fdc3DataAdapter.prototype.bb = function (intent_, context_, target_) {
|
|
1924
|
+
if (target_ === void 0) {
|
|
1925
|
+
target_ = "";
|
|
1926
|
+
}
|
|
1927
|
+
if (!this.a5()) {
|
|
1928
|
+
return;
|
|
1929
|
+
}
|
|
1930
|
+
var raiseIntent_ = this._openFin.raiseIntent;
|
|
1931
|
+
this.log('Sending \'' + intent_ + '\' intent to \'' + target_ + '\' target');
|
|
1932
|
+
// calling OpenFin API:
|
|
1933
|
+
if (target_ == null || target_ === '') {
|
|
1934
|
+
raiseIntent_(intent_, context_); // send to all OpenFin apps
|
|
1935
|
+
}
|
|
1936
|
+
else {
|
|
1937
|
+
raiseIntent_(intent_, context_, target_); // send only to Target app
|
|
1938
|
+
}
|
|
1939
|
+
;
|
|
1940
|
+
};
|
|
1941
|
+
Object.defineProperty(Fdc3DataAdapter.prototype, "a4", {
|
|
1942
|
+
get: function () {
|
|
1943
|
+
return this.a3;
|
|
1944
|
+
},
|
|
1945
|
+
set: function (a) {
|
|
1946
|
+
this.a3 = a;
|
|
1947
|
+
},
|
|
1948
|
+
enumerable: true,
|
|
1949
|
+
configurable: true
|
|
1950
|
+
});
|
|
1951
|
+
Fdc3DataAdapter.prototype.a7 = function (a) {
|
|
1952
|
+
this.a4 = true;
|
|
1953
|
+
};
|
|
1954
|
+
Fdc3DataAdapter.prototype.dispose = function () {
|
|
1955
|
+
this.a7(true);
|
|
1956
|
+
};
|
|
1957
|
+
Fdc3DataAdapter.$t = markType(Fdc3DataAdapter, 'Fdc3DataAdapter', FinancialDataAdapter.$, [IDisposable_$type]);
|
|
1958
|
+
return Fdc3DataAdapter;
|
|
1959
|
+
}(FinancialDataAdapter));
|
|
1960
|
+
|
|
1961
|
+
/*
|
|
1962
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
1963
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
1964
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
1965
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
1966
|
+
*/
|
|
1967
|
+
/**
|
|
1968
|
+
* @hidden
|
|
1969
|
+
*/
|
|
1970
|
+
var Randomizer = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1971
|
+
__extends(Randomizer, _super);
|
|
1972
|
+
function Randomizer() {
|
|
1973
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1974
|
+
}
|
|
1975
|
+
Randomizer.d = function (a) {
|
|
1976
|
+
var b = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
|
1977
|
+
var c = "";
|
|
1978
|
+
for (var d = 0; d < a; d++) {
|
|
1979
|
+
var e = Randomizer.c.next1(b.length);
|
|
1980
|
+
c += b.charAt(e);
|
|
1981
|
+
}
|
|
1982
|
+
return c;
|
|
1983
|
+
};
|
|
1984
|
+
Randomizer.b = function (a, b) {
|
|
1985
|
+
return Randomizer.c.next2(a, b);
|
|
1986
|
+
};
|
|
1987
|
+
Randomizer.a = function (a) {
|
|
1988
|
+
var b = Math.pow(10, (a - 1));
|
|
1989
|
+
var c = 9 * b;
|
|
1990
|
+
return Randomizer.c.next2(truncate(b), truncate(c));
|
|
1991
|
+
};
|
|
1992
|
+
Randomizer.$t = markType(Randomizer, 'Randomizer');
|
|
1993
|
+
Randomizer.c = new Random(0);
|
|
1994
|
+
return Randomizer;
|
|
1995
|
+
}(Base));
|
|
1996
|
+
|
|
1997
|
+
export { Fdc3Contact, Fdc3ContactList, Fdc3Context, Fdc3ContextType, Fdc3ContextType_$type, Fdc3Converter, Fdc3DataAdapter, Fdc3Dictionary, Fdc3Instrument, Fdc3InstrumentList, Fdc3IntentType, Fdc3IntentType_$type, Fdc3Message, Fdc3Organization, Fdc3OrganizationList, Fdc3Portfolio, Fdc3Position, Fdc3Serializer, Fdc3Util, Randomizer };
|
|
1998
|
+
//# sourceMappingURL=igniteui-webcomponents-fdc3.js.map
|