Skip to content

Commit c626d52

Browse files
committed
refactor: change classification.fdc3 to classification.name
1 parent 21508a4 commit c626d52

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

packages/fdc3-context/generated/context/ContextTypes.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ export interface InstrumentElement {
280280
* instrument and help achieve interoperability between disparate data sources.
281281
*/
282282
export interface OrganizationClassification {
283+
/**
284+
* FactSet classification for the instrument.
285+
*/
286+
FDS_TYPE?: string;
283287
/**
284288
* classification of the instrument by type or category. SHOULD be one of the following
285289
* values, although other string values are permitted: '`commodity`', '`commodityIndex`',
@@ -290,11 +294,7 @@ export interface OrganizationClassification {
290294
* '`privateCompany`', '`publicCompany`', '`publicCompanyIndex`', '`sovereignDebt`',
291295
* '`structuredProduct`', '`unknown`'
292296
*/
293-
fdc3?: string;
294-
/**
295-
* FactSet classification for the instrument.
296-
*/
297-
FDS_TYPE?: string;
297+
name?: string;
298298
[property: string]: any;
299299
}
300300

@@ -1223,6 +1223,10 @@ export interface Instrument {
12231223
* instrument and help achieve interoperability between disparate data sources.
12241224
*/
12251225
export interface PurpleInstrumentClassification {
1226+
/**
1227+
* FactSet classification for the instrument.
1228+
*/
1229+
FDS_TYPE?: string;
12261230
/**
12271231
* classification of the instrument by type or category. SHOULD be one of the following
12281232
* values, although other string values are permitted: '`commodity`', '`commodityIndex`',
@@ -1233,11 +1237,7 @@ export interface PurpleInstrumentClassification {
12331237
* '`privateCompany`', '`publicCompany`', '`publicCompanyIndex`', '`sovereignDebt`',
12341238
* '`structuredProduct`', '`unknown`'
12351239
*/
1236-
fdc3?: string;
1237-
/**
1238-
* FactSet classification for the instrument.
1239-
*/
1240-
FDS_TYPE?: string;
1240+
name?: string;
12411241
[property: string]: any;
12421242
}
12431243

@@ -2464,8 +2464,8 @@ const typeMap: any = {
24642464
),
24652465
OrganizationClassification: o(
24662466
[
2467-
{ json: 'fdc3', js: 'fdc3', typ: u(undefined, '') },
24682467
{ json: 'FDS_TYPE', js: 'FDS_TYPE', typ: u(undefined, '') },
2468+
{ json: 'name', js: 'name', typ: u(undefined, '') },
24692469
],
24702470
'any'
24712471
),
@@ -2765,8 +2765,8 @@ const typeMap: any = {
27652765
),
27662766
PurpleInstrumentClassification: o(
27672767
[
2768-
{ json: 'fdc3', js: 'fdc3', typ: u(undefined, '') },
27692768
{ json: 'FDS_TYPE', js: 'FDS_TYPE', typ: u(undefined, '') },
2769+
{ json: 'name', js: 'name', typ: u(undefined, '') },
27702770
],
27712771
'any'
27722772
),

packages/fdc3-context/schemas/context/instrument.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"description": "@experimental The `classification` map can be used to specify the categorization of the instrument and help achieve interoperability between disparate data sources.",
103103
"type": "object",
104104
"properties": {
105-
"fdc3": {
105+
"name": {
106106
"type": "string",
107107
"title": "FDC3 Instrument Classification Name",
108108
"description": "classification of the instrument by type or category. SHOULD be one of the following values, although other string values are permitted: '`commodity`', '`commodityIndex`', '`corporateDebt`', '`creditDefaultSwapIndex`', '`deal`', '`debt`', '`debtIndex`', '`etf`', '`fixedIncome`', '`future`', '`governmentBenchmarkDebt`', '`loan`', '`mortgageBackedSecurity`', '`municipalDebt`', '`mutualFund`', '`mutualFundIndex`', '`option`', '`otherDebt`', '`ownershipPrivateCompany`', '`pevcFirm`', '`pevcFund`', '`privateCompany`', '`publicCompany`', '`publicCompanyIndex`', '`sovereignDebt`', '`structuredProduct`', '`unknown`'"
@@ -134,7 +134,7 @@
134134
"MIC": "XNAS"
135135
},
136136
"classification": {
137-
"fdc3": "publicCompany"
137+
"name": "publicCompany"
138138
}
139139
}
140140
]

website/docs/context/ref/Instrument.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ The `market` map can be used to further specify the instrument and help achieve
179179
**Subproperties:**
180180

181181
<details>
182-
<summary><code>fdc3</code></summary>
182+
<summary><code>name</code></summary>
183183

184184
**type**: `string`
185185

@@ -215,7 +215,7 @@ FactSet classification for the instrument.
215215
"MIC": "XNAS"
216216
},
217217
"classification": {
218-
"fdc3": "publicCompany"
218+
"name": "publicCompany"
219219
}
220220
}
221221
```

0 commit comments

Comments
 (0)