@ampsec/platform-client 57.6.0 → 57.6.1
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.
|
@@ -39,13 +39,13 @@ export type DateMatcher = {
|
|
|
39
39
|
export type SortOptions = {
|
|
40
40
|
[key: string]: 'ASC' | 'DESC';
|
|
41
41
|
};
|
|
42
|
-
type
|
|
43
|
-
$and:
|
|
42
|
+
export type FC_AllCondition = {
|
|
43
|
+
$and: FC_FilterableCriteria[];
|
|
44
44
|
};
|
|
45
|
-
type
|
|
46
|
-
$or:
|
|
45
|
+
export type FC_AnyCondition = {
|
|
46
|
+
$or: FC_FilterableCriteria[];
|
|
47
47
|
};
|
|
48
|
-
type
|
|
48
|
+
export type FC_FilterConstraints = {
|
|
49
49
|
/** Entity ID */
|
|
50
50
|
id?: string | IdMatcher;
|
|
51
51
|
/** Tenant ID */
|
|
@@ -69,8 +69,8 @@ type FilterConstraints = {
|
|
|
69
69
|
/** catch all bucket for other fields */
|
|
70
70
|
[key: string]: string | string[] | StringMatcher | number | NumberMatcher | boolean | null | undefined;
|
|
71
71
|
};
|
|
72
|
-
type
|
|
73
|
-
export type FilterCriteria =
|
|
72
|
+
export type FC_FilterableCriteria = FC_FilterConstraints | FC_AllCondition | FC_AnyCondition;
|
|
73
|
+
export type FilterCriteria = FC_FilterableCriteria & {
|
|
74
74
|
/** Number of records to return. */
|
|
75
75
|
limit?: number;
|
|
76
76
|
/** Number of records to skip before capturing results. */
|
package/package.json
CHANGED
package/src/FilterCriteria.ts
CHANGED
|
@@ -42,15 +42,15 @@ export type SortOptions = {
|
|
|
42
42
|
[key: string]: 'ASC' | 'DESC';
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
type
|
|
46
|
-
$and:
|
|
45
|
+
export type FC_AllCondition = {
|
|
46
|
+
$and: FC_FilterableCriteria[];
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
type
|
|
50
|
-
$or:
|
|
49
|
+
export type FC_AnyCondition = {
|
|
50
|
+
$or: FC_FilterableCriteria[];
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
type
|
|
53
|
+
export type FC_FilterConstraints = {
|
|
54
54
|
/** Entity ID */
|
|
55
55
|
id?: string | IdMatcher;
|
|
56
56
|
/** Tenant ID */
|
|
@@ -75,9 +75,9 @@ type FilterConstraints = {
|
|
|
75
75
|
[key: string]: string | string[] | StringMatcher | number | NumberMatcher | boolean | null | undefined;
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
type
|
|
78
|
+
export type FC_FilterableCriteria = FC_FilterConstraints | FC_AllCondition | FC_AnyCondition;
|
|
79
79
|
|
|
80
|
-
export type FilterCriteria =
|
|
80
|
+
export type FilterCriteria = FC_FilterableCriteria & {
|
|
81
81
|
/** Number of records to return. */
|
|
82
82
|
limit?: number;
|
|
83
83
|
/** Number of records to skip before capturing results. */
|