@dcupl/common 2.0.0-beta.20 → 2.0.0-beta.22
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.
- package/dist/esm/helper.d.ts +10 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +506 -331
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/query-builder.d.ts +13 -3
- package/dist/esm/queryData.d.ts +51 -1
- package/dist/esm/redact-url.d.ts +9 -0
- package/dist/esm/types/facets.types.d.ts +8 -0
- package/dist/esm/types/list.types.d.ts +5 -0
- package/dist/esm/types/query.types.d.ts +98 -12
- package/dist/esm/types/suggestion.types.d.ts +5 -0
- package/dist/node/index.cjs +2 -2
- package/dist/node/index.cjs.map +1 -1
- package/package.json +1 -1
package/dist/esm/helper.d.ts
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { DateFilterOptions, NumberFilterOptions } from './types/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Reads a slash-delimited regex literal (`/pattern/`), the form `find` and `suggest`
|
|
4
|
+
* take a pattern in. Flags come separately (`regexFlags`), never from the value, so
|
|
5
|
+
* `'/docs/sum'` or `'/shop/i'` stays an exact match. Returns `undefined` for any
|
|
6
|
+
* other value. A lone `/` is an empty pattern, as it always was.
|
|
7
|
+
*/
|
|
8
|
+
export declare const parseRegexLiteral: (value: unknown, flags?: string) => {
|
|
9
|
+
pattern: string;
|
|
10
|
+
flags: string;
|
|
11
|
+
} | undefined;
|
|
2
12
|
export declare const getFilterEntryId: (filterItemId: string, value?: string) => string;
|
|
3
13
|
export declare const getNumberConstraintUid: (options: NumberFilterOptions) => string;
|
|
4
14
|
export declare const getDateConstraintUid: (options: DateFilterOptions) => string;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './property-parser.js';
|
|
|
17
17
|
export * from './query-builder.js';
|
|
18
18
|
export * from './query.helper.js';
|
|
19
19
|
export * from './queryData.js';
|
|
20
|
+
export * from './redact-url.js';
|
|
20
21
|
export * from './resource-id.js';
|
|
21
22
|
export * from './scheduling.js';
|
|
22
23
|
export * from './script.controller.js';
|