@@ -7,32 +7,32 @@ describe('toSimplifiedFieldInfo', function () {
7
7
const input = {
8
8
'user.name' : {
9
9
type : 'String' as const ,
10
- sample_values : [ 'John' ] ,
10
+ sampleValues : [ 'John' ] ,
11
11
probability : 1.0 ,
12
12
} ,
13
13
'user.age' : {
14
14
type : 'Number' as const ,
15
- sample_values : [ 25 , 30 ] ,
15
+ sampleValues : [ 25 , 30 ] ,
16
16
probability : 0.8 ,
17
17
} ,
18
18
'user.profile.bio' : {
19
19
type : 'String' as const ,
20
- sample_values : [ 'Software engineer' ] ,
20
+ sampleValues : [ 'Software engineer' ] ,
21
21
probability : 0.9 ,
22
22
} ,
23
23
'user.profile.isVerified' : {
24
24
type : 'Boolean' as const ,
25
- sample_values : [ true , false ] ,
25
+ sampleValues : [ true , false ] ,
26
26
probability : 0.7 ,
27
27
} ,
28
28
'metadata.createdAt' : {
29
29
type : 'Date' as const ,
30
- sample_values : [ new Date ( '2023-01-01' ) ] ,
30
+ sampleValues : [ new Date ( '2023-01-01' ) ] ,
31
31
probability : 1.0 ,
32
32
} ,
33
33
'metadata.objectId' : {
34
34
type : 'ObjectId' as const ,
35
- sample_values : [ '642d766b7300158b1f22e972' ] ,
35
+ sampleValues : [ '642d766b7300158b1f22e972' ] ,
36
36
probability : 1.0 ,
37
37
} ,
38
38
} ;
@@ -61,32 +61,32 @@ describe('toSimplifiedFieldInfo', function () {
61
61
const input = {
62
62
'tags[]' : {
63
63
type : 'String' as const ,
64
- sample_values : [ 'red' , 'blue' , 'green' ] ,
64
+ sampleValues : [ 'red' , 'blue' , 'green' ] ,
65
65
probability : 1.0 ,
66
66
} ,
67
67
'scores[]' : {
68
68
type : 'Number' as const ,
69
- sample_values : [ 85 , 92 , 78 ] ,
69
+ sampleValues : [ 85 , 92 , 78 ] ,
70
70
probability : 0.9 ,
71
71
} ,
72
72
'matrix[][]' : {
73
73
type : 'Number' as const ,
74
- sample_values : [ 1 , 2 , 3 , 4 ] ,
74
+ sampleValues : [ 1 , 2 , 3 , 4 ] ,
75
75
probability : 1.0 ,
76
76
} ,
77
77
'flags[]' : {
78
78
type : 'Boolean' as const ,
79
- sample_values : [ true , false ] ,
79
+ sampleValues : [ true , false ] ,
80
80
probability : 0.8 ,
81
81
} ,
82
82
'timestamps[]' : {
83
83
type : 'Date' as const ,
84
- sample_values : [ new Date ( '2023-01-01' ) , new Date ( '2023-06-15' ) ] ,
84
+ sampleValues : [ new Date ( '2023-01-01' ) , new Date ( '2023-06-15' ) ] ,
85
85
probability : 0.7 ,
86
86
} ,
87
87
'ids[]' : {
88
88
type : 'ObjectId' as const ,
89
- sample_values : [ '642d766b7300158b1f22e972' , '642d766b7300158b1f22e973' ] ,
89
+ sampleValues : [ '642d766b7300158b1f22e972' , '642d766b7300158b1f22e973' ] ,
90
90
probability : 1.0 ,
91
91
} ,
92
92
} ;
@@ -109,32 +109,32 @@ describe('toSimplifiedFieldInfo', function () {
109
109
const input = {
110
110
'items[].id' : {
111
111
type : 'Number' as const ,
112
- sample_values : [ 1 , 2 ] ,
112
+ sampleValues : [ 1 , 2 ] ,
113
113
probability : 1.0 ,
114
114
} ,
115
115
'items[].name' : {
116
116
type : 'String' as const ,
117
- sample_values : [ 'Item A' , 'Item B' ] ,
117
+ sampleValues : [ 'Item A' , 'Item B' ] ,
118
118
probability : 1.0 ,
119
119
} ,
120
120
'items[].metadata.createdBy' : {
121
121
type : 'String' as const ,
122
- sample_values : [ 'admin' , 'user' ] ,
122
+ sampleValues : [ 'admin' , 'user' ] ,
123
123
probability : 0.9 ,
124
124
} ,
125
125
'items[].metadata.tags[]' : {
126
126
type : 'String' as const ,
127
- sample_values : [ 'urgent' , 'review' , 'approved' ] ,
127
+ sampleValues : [ 'urgent' , 'review' , 'approved' ] ,
128
128
probability : 0.8 ,
129
129
} ,
130
130
'items[].price' : {
131
131
type : 'Decimal128' as const ,
132
- sample_values : [ 19.99 , 29.99 ] ,
132
+ sampleValues : [ 19.99 , 29.99 ] ,
133
133
probability : 0.95 ,
134
134
} ,
135
135
'items[].binary' : {
136
136
type : 'Binary' as const ,
137
- sample_values : [ 'dGVzdA==' ] ,
137
+ sampleValues : [ 'dGVzdA==' ] ,
138
138
probability : 0.3 ,
139
139
} ,
140
140
} ;
@@ -162,62 +162,62 @@ describe('toSimplifiedFieldInfo', function () {
162
162
const input = {
163
163
'cube[][][]' : {
164
164
type : 'Number' as const ,
165
- sample_values : [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ] ,
165
+ sampleValues : [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ] ,
166
166
probability : 1.0 ,
167
167
} ,
168
168
'matrix[][].x' : {
169
169
type : 'Number' as const ,
170
- sample_values : [ 1 , 3 ] ,
170
+ sampleValues : [ 1 , 3 ] ,
171
171
probability : 1.0 ,
172
172
} ,
173
173
'matrix[][].y' : {
174
174
type : 'Number' as const ,
175
- sample_values : [ 2 , 4 ] ,
175
+ sampleValues : [ 2 , 4 ] ,
176
176
probability : 1.0 ,
177
177
} ,
178
178
'teams[].members[]' : {
179
179
type : 'String' as const ,
180
- sample_values : [ 'Alice' , 'Bob' , 'Charlie' ] ,
180
+ sampleValues : [ 'Alice' , 'Bob' , 'Charlie' ] ,
181
181
probability : 1.0 ,
182
182
} ,
183
183
'teams[].name' : {
184
184
type : 'String' as const ,
185
- sample_values : [ 'Team A' , 'Team B' ] ,
185
+ sampleValues : [ 'Team A' , 'Team B' ] ,
186
186
probability : 1.0 ,
187
187
} ,
188
188
'complex[][].data[]' : {
189
189
type : 'Long' as const ,
190
- sample_values : [ 123456789 , 987654321 ] ,
190
+ sampleValues : [ 123456789 , 987654321 ] ,
191
191
probability : 0.9 ,
192
192
} ,
193
193
'complex[][].regex' : {
194
194
type : 'RegExp' as const ,
195
- sample_values : [ 'pattern' ] ,
195
+ sampleValues : [ 'pattern' ] ,
196
196
probability : 0.6 ,
197
197
} ,
198
198
'complex[][].code' : {
199
199
type : 'Code' as const ,
200
- sample_values : [ 'function() {}' ] ,
200
+ sampleValues : [ 'function() {}' ] ,
201
201
probability : 0.4 ,
202
202
} ,
203
203
'nested[][].symbols[]' : {
204
204
type : 'Symbol' as const ,
205
- sample_values : [ 'symbol1' , 'symbol2' ] ,
205
+ sampleValues : [ 'symbol1' , 'symbol2' ] ,
206
206
probability : 0.5 ,
207
207
} ,
208
208
'timestamps[][].created' : {
209
209
type : 'Timestamp' as const ,
210
- sample_values : [ 4294967297 ] ,
210
+ sampleValues : [ 4294967297 ] ,
211
211
probability : 0.8 ,
212
212
} ,
213
213
'keys[][].max' : {
214
214
type : 'MaxKey' as const ,
215
- sample_values : [ 'MaxKey' ] ,
215
+ sampleValues : [ 'MaxKey' ] ,
216
216
probability : 0.2 ,
217
217
} ,
218
218
'keys[][].min' : {
219
219
type : 'MinKey' as const ,
220
- sample_values : [ 'MinKey' ] ,
220
+ sampleValues : [ 'MinKey' ] ,
221
221
probability : 0.2 ,
222
222
} ,
223
223
} ;
0 commit comments