@mongodb-js/mql-typescript 0.7.17 → 0.7.20

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.
Files changed (2) hide show
  1. package/out/schema.d.ts +10 -35
  2. package/package.json +4 -4
package/out/schema.d.ts CHANGED
@@ -1319,9 +1319,7 @@ export namespace Aggregation.Expression {
1319
1319
  * The beginning date, in UTC, for the addition operation. The startDate can be any expression that resolves to a Date, a Timestamp, or an ObjectID.
1320
1320
  */
1321
1321
  startDate:
1322
- | ResolvesToDate<S>
1323
- | ResolvesToTimestamp<S>
1324
- | ResolvesToObjectId<S>;
1322
+ ResolvesToDate<S> | ResolvesToTimestamp<S> | ResolvesToObjectId<S>;
1325
1323
 
1326
1324
  /**
1327
1325
  * The unit used to measure the amount of time added to the startDate.
@@ -1351,17 +1349,13 @@ export namespace Aggregation.Expression {
1351
1349
  * The start of the time period. The startDate can be any expression that resolves to a Date, a Timestamp, or an ObjectID.
1352
1350
  */
1353
1351
  startDate:
1354
- | ResolvesToDate<S>
1355
- | ResolvesToTimestamp<S>
1356
- | ResolvesToObjectId<S>;
1352
+ ResolvesToDate<S> | ResolvesToTimestamp<S> | ResolvesToObjectId<S>;
1357
1353
 
1358
1354
  /**
1359
1355
  * The end of the time period. The endDate can be any expression that resolves to a Date, a Timestamp, or an ObjectID.
1360
1356
  */
1361
1357
  endDate:
1362
- | ResolvesToDate<S>
1363
- | ResolvesToTimestamp<S>
1364
- | ResolvesToObjectId<S>;
1358
+ ResolvesToDate<S> | ResolvesToTimestamp<S> | ResolvesToObjectId<S>;
1365
1359
 
1366
1360
  /**
1367
1361
  * The time measurement unit between the startDate and endDate
@@ -1504,9 +1498,7 @@ export namespace Aggregation.Expression {
1504
1498
  * The beginning date, in UTC, for the addition operation. The startDate can be any expression that resolves to a Date, a Timestamp, or an ObjectID.
1505
1499
  */
1506
1500
  startDate:
1507
- | ResolvesToDate<S>
1508
- | ResolvesToTimestamp<S>
1509
- | ResolvesToObjectId<S>;
1501
+ ResolvesToDate<S> | ResolvesToTimestamp<S> | ResolvesToObjectId<S>;
1510
1502
 
1511
1503
  /**
1512
1504
  * The unit used to measure the amount of time added to the startDate.
@@ -4815,13 +4807,7 @@ export namespace Aggregation.Search {
4815
4807
  equals: {
4816
4808
  path: SearchPath<S>;
4817
4809
  value:
4818
- | bson.Binary
4819
- | boolean
4820
- | Date
4821
- | bson.ObjectId
4822
- | null
4823
- | Number
4824
- | string;
4810
+ bson.Binary | boolean | Date | bson.ObjectId | null | Number | string;
4825
4811
  score?: SearchScore;
4826
4812
  doesNotAffect?: string | unknown[];
4827
4813
  };
@@ -6625,9 +6611,7 @@ export type Int = number | bson.Int32 | { $numberInt: string };
6625
6611
  export type Double = number | bson.Double | { $numberDouble: string };
6626
6612
  export type Decimal = bson.Decimal128 | { $numberDecimal: string };
6627
6613
  export type Regex =
6628
- | RegExp
6629
- | bson.BSONRegExp
6630
- | { pattern: string; options?: string };
6614
+ RegExp | bson.BSONRegExp | { pattern: string; options?: string };
6631
6615
  export type Long = bigint | bson.Long | { $numberLong: string };
6632
6616
  export type Javascript = bson.Code | Function | string;
6633
6617
  export type Geometry<S> =
@@ -6655,13 +6639,9 @@ export type BsonPrimitive =
6655
6639
  | Javascript
6656
6640
  | bson.Timestamp;
6657
6641
  export type SearchPath<S> =
6658
- | UnprefixedFieldPath<S>
6659
- | UnprefixedFieldPath<S>[]
6660
- | { wildcard: string };
6642
+ UnprefixedFieldPath<S> | UnprefixedFieldPath<S>[] | { wildcard: string };
6661
6643
  export type BitwiseOperation =
6662
- | { and: Int | Long }
6663
- | { or: Int | Long }
6664
- | { xor: Int | Long };
6644
+ { and: Int | Long } | { or: Int | Long } | { xor: Int | Long };
6665
6645
  export type SearchScore = unknown;
6666
6646
  export type Granularity = string;
6667
6647
  export type TimeGranularity = 'seconds' | 'minutes' | 'hours';
@@ -6962,9 +6942,7 @@ export type ResolvesToDate<S> =
6962
6942
  export type ResolvesToNull<S> = ResolvesToAny<S> | NullFieldPath<S> | null;
6963
6943
  export type ResolvesToRegex<S> = ResolvesToAny<S> | RegexFieldPath<S> | Regex;
6964
6944
  export type ResolvesToJavascript<S> =
6965
- | ResolvesToAny<S>
6966
- | JavascriptFieldPath<S>
6967
- | Javascript;
6945
+ ResolvesToAny<S> | JavascriptFieldPath<S> | Javascript;
6968
6946
  export type ResolvesToInt<S> =
6969
6947
  | ResolvesToAny<S>
6970
6948
  | IntFieldPath<S>
@@ -7006,10 +6984,7 @@ export type ResolvesToInt<S> =
7006
6984
  | Aggregation.Expression.$week<S>
7007
6985
  | Aggregation.Expression.$year<S>;
7008
6986
  export type ResolvesToTimestamp<S> =
7009
- | ResolvesToAny<S>
7010
- | TimestampFieldPath<S>
7011
- | bson.Timestamp
7012
- | '$clusterTime';
6987
+ ResolvesToAny<S> | TimestampFieldPath<S> | bson.Timestamp | '$clusterTime';
7013
6988
  export type ResolvesToLong<S> =
7014
6989
  | ResolvesToAny<S>
7015
6990
  | LongFieldPath<S>
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "email": "compass@mongodb.com"
14
14
  },
15
15
  "homepage": "https://github.com/mongodb-js/devtools-shared",
16
- "version": "0.7.17",
16
+ "version": "0.7.20",
17
17
  "repository": {
18
18
  "type": "git",
19
19
  "url": "git+https://github.com/mongodb-js/devtools-shared.git"
@@ -71,9 +71,9 @@
71
71
  },
72
72
  "devDependencies": {
73
73
  "@mongodb-js/eslint-config-devtools": "^0.11.13",
74
- "@mongodb-js/mongodb-schema": "^12.7.15",
74
+ "@mongodb-js/mongodb-schema": "^12.7.18",
75
75
  "@mongodb-js/prettier-config-devtools": "^1.0.6",
76
- "@mongodb-js/shell-bson-parser": "^1.6.1",
76
+ "@mongodb-js/shell-bson-parser": "^1.6.2",
77
77
  "@mongodb-js/tsconfig-devtools": "^1.1.5",
78
78
  "@types/chai": "^4.2.21",
79
79
  "@types/js-yaml": "^4.0.9",
@@ -95,5 +95,5 @@
95
95
  "bson": "^7.3.3",
96
96
  "mongodb": "^7.6.0"
97
97
  },
98
- "gitHead": "b785c78ab3645240343c9d86f7804ffc4f335077"
98
+ "gitHead": "fc2ac66da2ef7e189b9ac2cf73bef214a45accca"
99
99
  }