@barchart/portfolio-api-common 1.0.34 → 1.0.35
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.
|
@@ -57,6 +57,17 @@ module.exports = (() => {
|
|
|
57
57
|
return client;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
/**
|
|
61
|
+
* Only returns identifiers and portfolio name.
|
|
62
|
+
*
|
|
63
|
+
* @static
|
|
64
|
+
* @public
|
|
65
|
+
* @returns {PortfolioSchema}
|
|
66
|
+
*/
|
|
67
|
+
static get NAME() {
|
|
68
|
+
return name;
|
|
69
|
+
}
|
|
70
|
+
|
|
60
71
|
/**
|
|
61
72
|
* Data required to create a portfolio.
|
|
62
73
|
*
|
|
@@ -125,6 +136,13 @@ module.exports = (() => {
|
|
|
125
136
|
.schema
|
|
126
137
|
);
|
|
127
138
|
|
|
139
|
+
const name = new PortfolioSchema(SchemaBuilder.withName('name')
|
|
140
|
+
.withField('user', DataType.STRING)
|
|
141
|
+
.withField('portfolio', DataType.STRING)
|
|
142
|
+
.withField('name', DataType.STRING)
|
|
143
|
+
.schema
|
|
144
|
+
);
|
|
145
|
+
|
|
128
146
|
const create = new PortfolioSchema(SchemaBuilder.withName('create')
|
|
129
147
|
.withField('name', DataType.STRING)
|
|
130
148
|
.withField('timezone', DataType.forEnum(Timezones, 'Timezone'))
|