@futdevpro/fsm-dynamo 1.20.198 → 1.20.199
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.
|
@@ -47,21 +47,25 @@ export type DyFM_DBFilterExpressions<T> = {
|
|
|
47
47
|
*/
|
|
48
48
|
$eq?: T;
|
|
49
49
|
/**
|
|
50
|
-
* Matches values that are Greater Than a specified value
|
|
50
|
+
* Matches values that are Greater Than a specified value: the field's own type, a number, a Date or an
|
|
51
|
+
* ObjectId (BFR-AM-035: e.g. the `_id` key-set paging `{ _id: { $gt: lastId } }`).
|
|
51
52
|
*/
|
|
52
|
-
$gt?:
|
|
53
|
+
$gt?: DyFM_DBComparable<T>;
|
|
53
54
|
/**
|
|
54
|
-
* Matches values that are Greater Than OR Equal to a specified value
|
|
55
|
+
* Matches values that are Greater Than OR Equal to a specified value: the field's own type, a number, a Date or an
|
|
56
|
+
* ObjectId (BFR-AM-035: e.g. the `_id` key-set paging `{ _id: { $gt: lastId } }`).
|
|
55
57
|
*/
|
|
56
|
-
$gte?:
|
|
58
|
+
$gte?: DyFM_DBComparable<T>;
|
|
57
59
|
/**
|
|
58
|
-
* Matches values that are Less Than a specified value
|
|
60
|
+
* Matches values that are Less Than a specified value: the field's own type, a number, a Date or an
|
|
61
|
+
* ObjectId (BFR-AM-035: e.g. the `_id` key-set paging `{ _id: { $gt: lastId } }`).
|
|
59
62
|
*/
|
|
60
|
-
$lt?:
|
|
63
|
+
$lt?: DyFM_DBComparable<T>;
|
|
61
64
|
/**
|
|
62
|
-
* Matches values that are Less Than or Equal to a specified value
|
|
65
|
+
* Matches values that are Less Than or Equal to a specified value: the field's own type, a number, a Date or an
|
|
66
|
+
* ObjectId (BFR-AM-035: e.g. the `_id` key-set paging `{ _id: { $gt: lastId } }`).
|
|
63
67
|
*/
|
|
64
|
-
$lte?:
|
|
68
|
+
$lte?: DyFM_DBComparable<T>;
|
|
65
69
|
/**
|
|
66
70
|
* Matches all values that are Not Equal to a specified value.
|
|
67
71
|
*/
|
|
@@ -113,6 +117,23 @@ export type DyFM_DBFilterExpressions<T> = {
|
|
|
113
117
|
*/
|
|
114
118
|
$all?: DyFM_DBAll<T>;
|
|
115
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* The value of a comparison operator (`$gt` / `$gte` / `$lt` / `$lte`). BFR-AM-035.
|
|
122
|
+
*
|
|
123
|
+
* Mongo compares in the BSON order of the value, so besides a number and a Date (the earlier, only types) the
|
|
124
|
+
* field's OWN type is valid too (a string field compares strings), and an ObjectId: the `_id` key-set paging
|
|
125
|
+
* `{ _id: { $gt: <the last _id of the previous batch> } }` needs it. The schema cast of the model `find` turns a
|
|
126
|
+
* 24-hex string into an ObjectId on an ObjectId field, so a string `_id` works as well.
|
|
127
|
+
*/
|
|
128
|
+
export type DyFM_DBComparable<T> = T | number | Date | DyFM_DBObjectIdLike;
|
|
129
|
+
/**
|
|
130
|
+
* An ObjectId, by its shape: the fsm-dynamo has no mongoose / bson dependency (it runs in the browser too), and the
|
|
131
|
+
* bson `ObjectId` (the mongoose `Types.ObjectId`) has this method. BFR-AM-035.
|
|
132
|
+
*/
|
|
133
|
+
export type DyFM_DBObjectIdLike = {
|
|
134
|
+
/** The 24-character hex form of the id. */
|
|
135
|
+
toHexString(): string;
|
|
136
|
+
};
|
|
116
137
|
/** The `$regex` value of a string (or string array) field: a pattern (`never` for other fields). BFR-AM-032. */
|
|
117
138
|
export type DyFM_DBRegex<T> = T extends string | readonly string[] ? RegExp | string : never;
|
|
118
139
|
/** The `$all` value of an array field: a list of its ELEMENTS (`never` for a non-array field). BFR-HELOCIA-003. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-filter.type.d.ts","sourceRoot":"","sources":["../../../src/_models/types/db-filter.type.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IACzB,mBAAmB,CAAC,CAAC,CAAC,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AG,MAAM,GAAG,KAAK,CAAC;AAE7F,mHAAmH;AACnH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC;AAEzE;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAC5D,CAAC,CAAC,SAAS,MAAM,GAAG,mBAAmB,CAAC,CAAC,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC,GACzE,KAAK,CAAC;AAEV;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAChC;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;CAChC,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;IAC/B;;OAEG;IACH,GAAG,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;CAC/B,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futdevpro/fsm-dynamo",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.199",
|
|
4
4
|
"description": "Full Stack Model Collection for Dynamic (NodeJS-Typescript) Framework called Dynamo, by Future Development Ltd.",
|
|
5
5
|
"DyBu_settings": {
|
|
6
6
|
"packageType": "full-stack-package",
|