gps-global-types 1.1.0 → 1.2.8

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.
@@ -13,4 +13,4 @@ export type Hex = RegexMatchedString<'#\d{6}'>;
13
13
  export type Rgb = RegexMatchedString<'rgb\([1-256],[1-256],[1-256]\)'>;
14
14
  export type Color = Hex | Rgb | string;
15
15
  export type DateType = string | Date;
16
- export type TableViewTypes = 'isolate' | 'amr' | 'kleborate' | 'cluster';
16
+ export type TableViewTypes = 'isolate' | 'amr' | 'kleborate' | 'cluster' | 'kaptive';
@@ -24,6 +24,30 @@ export declare const KlebFields: {
24
24
  Col_mutations: StringConstructor;
25
25
  Flq_mutations: StringConstructor;
26
26
  };
27
+ export declare const KaptiveFields: {
28
+ assembly: StringConstructor;
29
+ bestMatchLocus: StringConstructor;
30
+ bestMatchType: StringConstructor;
31
+ matchConfidence: StringConstructor;
32
+ problems: StringConstructor;
33
+ identity: StringConstructor;
34
+ coverage: StringConstructor;
35
+ lengthDiscrepancy: StringConstructor;
36
+ expectedGenesInLocus: StringConstructor;
37
+ expectedGenesInLocusDetails: StringConstructor;
38
+ missingExpectedGenes: StringConstructor;
39
+ otherGenesInLocus: NumberConstructor;
40
+ otherGenesInLocusDetails: StringConstructor;
41
+ expectedGenesOutsideLocus: StringConstructor;
42
+ expectedGenesOutsideLocusDetails: StringConstructor;
43
+ otherGenesOutsideLocus: NumberConstructor;
44
+ otherGenesOutsideLocusDetails: StringConstructor;
45
+ truncatedGenes: StringConstructor;
46
+ extraGenes: StringConstructor;
47
+ kaptiveType: StringConstructor;
48
+ locus: StringConstructor;
49
+ databaseVersion: StringConstructor;
50
+ };
27
51
  export declare const IsolateFields: {
28
52
  _id: StringConstructor;
29
53
  mrsnId: StringConstructor;
@@ -131,12 +155,45 @@ export declare const IsolateFields: {
131
155
  isRepresentative: BooleanConstructor;
132
156
  username: StringConstructor;
133
157
  uploadDate: DateConstructor;
134
- tier: NumberConstructor;
135
- allele: StringConstructor;
136
- alleles: ArrayConstructor;
137
- projectCode: ArrayConstructor;
138
- mrsnSuperFamily: StringConstructor;
139
- expectedPhenotype: StringConstructor;
158
+ kleborate: {
159
+ Yersiniabactin: StringConstructor;
160
+ Colibactin: StringConstructor;
161
+ Aerobactin: StringConstructor;
162
+ Salmochelin: StringConstructor;
163
+ RmpADC: StringConstructor;
164
+ rmpA2: StringConstructor;
165
+ K_locus: StringConstructor;
166
+ O_locus: StringConstructor;
167
+ O_type: StringConstructor;
168
+ SHV_mutations: StringConstructor;
169
+ Omp_mutations: StringConstructor;
170
+ Col_mutations: StringConstructor;
171
+ Flq_mutations: StringConstructor;
172
+ };
173
+ kaptive: {
174
+ assembly: StringConstructor;
175
+ bestMatchLocus: StringConstructor;
176
+ bestMatchType: StringConstructor;
177
+ matchConfidence: StringConstructor;
178
+ problems: StringConstructor;
179
+ identity: StringConstructor;
180
+ coverage: StringConstructor;
181
+ lengthDiscrepancy: StringConstructor;
182
+ expectedGenesInLocus: StringConstructor;
183
+ expectedGenesInLocusDetails: StringConstructor;
184
+ missingExpectedGenes: StringConstructor;
185
+ otherGenesInLocus: NumberConstructor;
186
+ otherGenesInLocusDetails: StringConstructor;
187
+ expectedGenesOutsideLocus: StringConstructor;
188
+ expectedGenesOutsideLocusDetails: StringConstructor;
189
+ otherGenesOutsideLocus: NumberConstructor;
190
+ otherGenesOutsideLocusDetails: StringConstructor;
191
+ truncatedGenes: StringConstructor;
192
+ extraGenes: StringConstructor;
193
+ kaptiveType: StringConstructor;
194
+ locus: StringConstructor;
195
+ databaseVersion: StringConstructor;
196
+ };
140
197
  };
141
198
  export interface RowDataType extends Record<string, any> {
142
199
  _id: ObjectId;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IsolateFields = exports.KlebFields = void 0;
3
+ exports.IsolateFields = exports.KaptiveFields = exports.KlebFields = void 0;
4
4
  exports.KlebFields = {
5
5
  'Yersiniabactin': String,
6
6
  'Colibactin': String,
@@ -16,6 +16,30 @@ exports.KlebFields = {
16
16
  "Col_mutations": String,
17
17
  "Flq_mutations": String,
18
18
  };
19
+ exports.KaptiveFields = {
20
+ "assembly": String,
21
+ "bestMatchLocus": String,
22
+ "bestMatchType": String,
23
+ "matchConfidence": String,
24
+ "problems": String || NaN,
25
+ "identity": String,
26
+ "coverage": String,
27
+ "lengthDiscrepancy": String,
28
+ "expectedGenesInLocus": String,
29
+ "expectedGenesInLocusDetails": String,
30
+ "missingExpectedGenes": String || NaN,
31
+ "otherGenesInLocus": Number,
32
+ "otherGenesInLocusDetails": String || NaN,
33
+ "expectedGenesOutsideLocus": String || NaN,
34
+ "expectedGenesOutsideLocusDetails": String || NaN,
35
+ "otherGenesOutsideLocus": Number,
36
+ "otherGenesOutsideLocusDetails": String || NaN,
37
+ "truncatedGenes": String || NaN,
38
+ "extraGenes": String || NaN,
39
+ "kaptiveType": String,
40
+ "locus": String,
41
+ "databaseVersion": String,
42
+ };
19
43
  exports.IsolateFields = {
20
44
  "_id": String,
21
45
  "mrsnId": String,
@@ -123,12 +147,6 @@ exports.IsolateFields = {
123
147
  "isRepresentative": Boolean,
124
148
  "username": String,
125
149
  "uploadDate": Date,
126
- // $addFields with the intent of unpacking objects (amr + projects)
127
- "tier": Number,
128
- "allele": String,
129
- "alleles": Array,
130
- "projectCode": Array,
131
- "mrsnSuperFamily": String,
132
- "expectedPhenotype": String,
133
- // "kleborate": [KlebSchema]
150
+ "kleborate": exports.KlebFields,
151
+ "kaptive": exports.KaptiveFields
134
152
  };
@@ -7,7 +7,7 @@ export interface ModelSnapshotProps {
7
7
  legend: SnapshotType['legend'];
8
8
  nodes: SnapshotType['nodes'];
9
9
  }
10
- export declare const colorFields: readonly ["armordPatientId", "mlst", "sampleType", "armordFacility", "country", "beforeAndAfter", "custom color"];
10
+ export declare const colorFields: readonly ["armordPatientId", "mlst", "sampleType", "projectCode", "armordFacility", "country", "beforeAndAfter", "custom color"];
11
11
  export declare const dateFields: readonly ["armordCultureDate", "month", "quarter", "year"];
12
12
  export declare const labelFields: readonly ["armordMrsnIdLBL", "mrsnIdLBL", "armordAccessionNumberLBL", "armordPatientIdLBL", "custom label"];
13
13
  export type colorKey = typeof colorFields[number];
package/dist/mst.types.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ValidSchemesArr = exports.labelFields = exports.dateFields = exports.colorFields = void 0;
4
- exports.colorFields = ['armordPatientId', 'mlst', 'sampleType', 'armordFacility', 'country', 'beforeAndAfter', 'custom color']; //no :string[] ! removes 'const'
4
+ exports.colorFields = ['armordPatientId', 'mlst', 'sampleType', "projectCode", 'armordFacility', 'country', 'beforeAndAfter', 'custom color']; //no :string[] ! removes 'const'
5
5
  exports.dateFields = ['armordCultureDate', 'month', 'quarter', 'year'];
6
6
  exports.labelFields = ['armordMrsnIdLBL', 'mrsnIdLBL', 'armordAccessionNumberLBL', 'armordPatientIdLBL', 'custom label'];
7
7
  exports.ValidSchemesArr = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gps-global-types",
3
- "version": "1.1.0",
3
+ "version": "1.2.8",
4
4
  "description": "types shared between front-end and back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",