@autofleet/sheilta 1.4.8-beta-2 → 1.4.8-beta-5
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/lib/formatter/index.d.ts +3 -3
- package/package.json +1 -1
package/lib/formatter/index.d.ts
CHANGED
|
@@ -12,14 +12,14 @@ type ConditionWithOperator = {
|
|
|
12
12
|
operator: string;
|
|
13
13
|
value: string;
|
|
14
14
|
};
|
|
15
|
-
export type ConditionValue = ConditionWithOperator | ConditionWithOperator[] | string | string[];
|
|
15
|
+
export type ConditionValue = ConditionWithOperator | ConditionWithOperator[] | string | string[] | number | number[] | boolean | boolean[];
|
|
16
16
|
/**
|
|
17
17
|
* Generates replacements for the given conditions.
|
|
18
18
|
*
|
|
19
19
|
* @param conditions - The conditions to generate replacements for.
|
|
20
20
|
* @returns The replacements object.
|
|
21
21
|
*/
|
|
22
|
-
export declare const generateFilterReplacements: (conditions: Record<string, ConditionValue>) => Record<string,
|
|
22
|
+
export declare const generateFilterReplacements: (conditions: Record<string, ConditionValue>) => Record<string, ConditionValue>;
|
|
23
23
|
/**
|
|
24
24
|
* Generates replacements for the given order array.
|
|
25
25
|
*
|
|
@@ -47,7 +47,7 @@ declare const formatPayload: ({ order, page, perPage, include, query, attributes
|
|
|
47
47
|
include: any;
|
|
48
48
|
scopes: (string | {
|
|
49
49
|
method: (string | {
|
|
50
|
-
replacementsMap: Record<string,
|
|
50
|
+
replacementsMap: Record<string, ConditionValue>;
|
|
51
51
|
scopeValue: any;
|
|
52
52
|
})[];
|
|
53
53
|
})[];
|
package/package.json
CHANGED