|
14 | 14 | * See the License for the specific language governing permissions and |
15 | 15 | * limitations under the License. |
16 | 16 | */ |
17 | | - |
18 | | -import { BsonBinaryData } from './bson_binary_data'; |
19 | | -import { BsonObjectId } from './bson_object_Id'; |
20 | | -import { BsonTimestamp } from './bson_timestamp_value'; |
21 | 17 | import { FieldValue } from './field_value'; |
22 | | -import { Int32Value } from './int32_value'; |
23 | | -import { MaxKey } from './max_key'; |
24 | | -import { MinKey } from './min_key'; |
25 | | -import { RegexValue } from './regex_value'; |
26 | 18 | import { |
27 | 19 | ArrayRemoveFieldValueImpl, |
28 | 20 | ArrayUnionFieldValueImpl, |
@@ -116,85 +108,3 @@ export function increment(n: number): FieldValue { |
116 | 108 | export function vector(values?: number[]): VectorValue { |
117 | 109 | return new VectorValue(values); |
118 | 110 | } |
119 | | - |
120 | | -/** |
121 | | - * Creates a new `Int32Value` constructed with the given number. |
122 | | - * |
123 | | - * @param value - The 32-bit number to be used for constructing the Int32Value |
124 | | - * |
125 | | - * @returns A new `Int32Value` constructed with the given number. |
126 | | - */ |
127 | | -export function int32(value: number): Int32Value { |
128 | | - return new Int32Value(value); |
129 | | -} |
130 | | - |
131 | | -/** |
132 | | - * Creates a new `RegexValue` constructed with the given pattern and options. |
133 | | - * |
134 | | - * @param subtype - The subtype of the BSON binary data. |
135 | | - * @param data - The data to use for the BSON binary data. |
136 | | - * |
137 | | - * @returns A new `RegexValue` constructed with the given pattern and options. |
138 | | - */ |
139 | | -export function regex(pattern: string, options: string): RegexValue { |
140 | | - return new RegexValue(pattern, options); |
141 | | -} |
142 | | - |
143 | | -/** |
144 | | - * Creates a new `BsonBinaryData` constructed with the given subtype and data. |
145 | | - * |
146 | | - * @param subtype - Create a `BsonBinaryData` instance with the given subtype. |
147 | | - * @param data - Create a `BsonBinaryData` instance with a copy of this array of numbers. |
148 | | - * |
149 | | - * @returns A new `BsonBinaryData` constructed with the given subtype and data. |
150 | | - */ |
151 | | -export function bsonBinaryData( |
152 | | - subtype: number, |
153 | | - data: Uint8Array |
154 | | -): BsonBinaryData { |
155 | | - return new BsonBinaryData(subtype, data); |
156 | | -} |
157 | | - |
158 | | -/** |
159 | | - * Creates a new `BsonObjectId` constructed with the given string. |
160 | | - * |
161 | | - * @param value - The 24-character hex string representing the ObjectId. |
162 | | - * |
163 | | - * @returns A new `BsonObjectId` constructed with the given string. |
164 | | - */ |
165 | | -export function bsonObjectId(value: string): BsonObjectId { |
166 | | - return new BsonObjectId(value); |
167 | | -} |
168 | | - |
169 | | -/** |
170 | | - * Creates a new `BsonTimestamp` constructed with the given seconds and increment. |
171 | | - * |
172 | | - * @param seconds - The underlying unsigned 32-bit integer for seconds. |
173 | | - * @param seconds - The underlying unsigned 32-bit integer for increment. |
174 | | - * |
175 | | - * @returns A new `BsonTimestamp` constructed with the given seconds and increment. |
176 | | - */ |
177 | | -export function bsonTimestamp( |
178 | | - seconds: number, |
179 | | - increment: number |
180 | | -): BsonTimestamp { |
181 | | - return new BsonTimestamp(seconds, increment); |
182 | | -} |
183 | | - |
184 | | -/** |
185 | | - * Creates or returns a `MinKey` instance. |
186 | | - * |
187 | | - * @returns A `MinKey` instance. |
188 | | - */ |
189 | | -export function minKey(): MinKey { |
190 | | - return MinKey.instance(); |
191 | | -} |
192 | | - |
193 | | -/** |
194 | | - * Creates or returns a `MaxKey` instance. |
195 | | - * |
196 | | - * @returns A `MaxKey` instance. |
197 | | - */ |
198 | | -export function maxKey(): MaxKey { |
199 | | - return MaxKey.instance(); |
200 | | -} |
0 commit comments