Skip to content

Commit

Permalink
feat(date): adding matching at or before a specific date and time (da…
Browse files Browse the repository at this point in the history
…teLessThanEquals)
  • Loading branch information
roggervalf committed May 29, 2021
1 parent 3c6a7fe commit e359440
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 6 deletions.
48 changes: 48 additions & 0 deletions dist/main.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main.es.js.map

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/conditionOperators/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {bool} from './boolean/bool';
import {dateEquals} from './date/dateEquals';
import {dateLessThan} from './date/dateLessThan';
import {dateLessThanEquals} from './date/dateLessThanEquals';
import {dateNotEquals} from './date/dateNotEquals';
import {numericEquals} from './numeric/numericEquals';
import {numericGreaterThan} from './numeric/numericGreaterThan';
Expand All @@ -18,6 +19,7 @@ export const operators: Record<string, unknown>={
bool,
dateEquals,
dateLessThan,
dateLessThanEquals,
dateNotEquals,
numericEquals,
numericGreaterThan,
Expand Down
10 changes: 6 additions & 4 deletions www/src/docs/en.md
Original file line number Diff line number Diff line change
Expand Up @@ -707,10 +707,12 @@ Boolean conditions let you construct **condition** elements that restrict access

Date conditions let you construct **condition** elements that restrict access based on comparing a key to **date/time** value.

| Name | First Parameter | Expected Parameter | Description |
| --------------- | --------------- | ------------------ | ------------------------- |
| `dateEquals` | Date or string | Date or string | Matching a specific date. |
| `dateNotEquals` | Date or string | Date or string | Negated matching. |
| Name | First Parameter | Expected Parameter | Description |
| -------------------- | --------------- | ------------------ | ----------------------------------------------- |
| `dateEquals` | Date or string | Date or string | Matching a specific date. |
| `dateNotEquals` | Date or string | Date or string | Negated matching. |
| `dateLessThan` | Date or string | Date or string | Matching before a specific date and time. |
| `dateLessThanEquals` | Date or string | Date or string | Matching at or before a specific date and time. |

### Numeric condition operators

Expand Down

0 comments on commit e359440

Please sign in to comment.