@ampsec/platform-client 13.5.0 → 13.7.0

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.
@@ -1,20 +1,63 @@
1
+ type OptionalStringValue = string | null;
2
+ type OptionalNumberValue = number | null;
3
+ export type IdMatcher = {
4
+ $eq?: OptionalStringValue;
5
+ $ne?: OptionalStringValue;
6
+ $in?: OptionalStringValue[];
7
+ $nin?: OptionalStringValue[];
8
+ };
9
+ export type StringMatcher = {
10
+ $eq?: OptionalStringValue;
11
+ $neq?: OptionalStringValue;
12
+ $lt?: string;
13
+ $gt?: string;
14
+ $lte?: string;
15
+ $gte?: string;
16
+ $like?: string;
17
+ $nlike?: string;
18
+ $in?: OptionalStringValue[];
19
+ $nin?: OptionalStringValue[];
20
+ };
21
+ export type NumberMatcher = {
22
+ $eq?: OptionalNumberValue;
23
+ $neq?: OptionalNumberValue;
24
+ $lt?: number;
25
+ $gt?: number;
26
+ $lte?: number;
27
+ $gte?: number;
28
+ $in?: OptionalNumberValue[];
29
+ $nin?: OptionalNumberValue[];
30
+ };
31
+ export type DateMatcher = {
32
+ $eq?: OptionalStringValue;
33
+ $neq?: OptionalStringValue;
34
+ $lt?: string;
35
+ $gt?: string;
36
+ };
1
37
  export type FilterCriteria = {
2
38
  /** Number of records to return. */
3
39
  limit?: number;
4
40
  /** Number of records to skip before capturing results. */
5
41
  offset?: number;
6
42
  /** Tenant ID */
7
- tid?: string;
43
+ tid?: string | IdMatcher;
8
44
  /** Connector ID */
9
- cid?: string;
45
+ cid?: string | IdMatcher | null;
10
46
  /** Organization name. Defaults to `*` which matches all organizations. */
11
- organization?: '*' | 'EXTERNAL' | string;
47
+ organization?: '*' | 'EXTERNAL' | string | IdMatcher | null;
12
48
  /** Department name. Defaults to `*` which matches all departments. */
13
- department?: '*' | string;
49
+ department?: '*' | string | IdMatcher | null;
14
50
  /** User ID */
15
- uid?: string;
51
+ uid?: string | IdMatcher | null;
16
52
  /** Asset ID */
17
- aid?: string;
53
+ aid?: string | IdMatcher | null;
54
+ /** Created at Date */
55
+ createdAt?: DateMatcher;
56
+ /** Updated at Date */
57
+ updatedAt?: DateMatcher;
58
+ /** Deleted at Date. `null` if not deleted */
59
+ deletedAt?: DateMatcher | null;
18
60
  /** catch all bucket for other fields */
19
- [key: string]: string | number | boolean | undefined;
61
+ [key: string]: string | StringMatcher | number | NumberMatcher | boolean | null | undefined;
20
62
  };
63
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "13.5.0",
3
+ "version": "13.7.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -1,20 +1,64 @@
1
+ type OptionalStringValue = string | null;
2
+ type OptionalNumberValue = number | null;
3
+
4
+ export type IdMatcher = {
5
+ $eq?: OptionalStringValue;
6
+ $ne?: OptionalStringValue;
7
+ $in?: OptionalStringValue[];
8
+ $nin?: OptionalStringValue[];
9
+ };
10
+ export type StringMatcher = {
11
+ $eq?: OptionalStringValue;
12
+ $neq?: OptionalStringValue;
13
+ $lt?: string;
14
+ $gt?: string;
15
+ $lte?: string;
16
+ $gte?: string;
17
+ $like?: string;
18
+ $nlike?: string;
19
+ $in?: OptionalStringValue[];
20
+ $nin?: OptionalStringValue[];
21
+ };
22
+ export type NumberMatcher = {
23
+ $eq?: OptionalNumberValue;
24
+ $neq?: OptionalNumberValue;
25
+ $lt?: number;
26
+ $gt?: number;
27
+ $lte?: number;
28
+ $gte?: number;
29
+ $in?: OptionalNumberValue[];
30
+ $nin?: OptionalNumberValue[];
31
+ };
32
+ export type DateMatcher = {
33
+ $eq?: OptionalStringValue;
34
+ $neq?: OptionalStringValue;
35
+ $lt?: string;
36
+ $gt?: string;
37
+ };
38
+
1
39
  export type FilterCriteria = {
2
40
  /** Number of records to return. */
3
41
  limit?: number;
4
42
  /** Number of records to skip before capturing results. */
5
43
  offset?: number;
6
44
  /** Tenant ID */
7
- tid?: string;
45
+ tid?: string | IdMatcher;
8
46
  /** Connector ID */
9
- cid?: string;
47
+ cid?: string | IdMatcher | null;
10
48
  /** Organization name. Defaults to `*` which matches all organizations. */
11
- organization?: '*' | 'EXTERNAL' | string;
49
+ organization?: '*' | 'EXTERNAL' | string | IdMatcher | null;
12
50
  /** Department name. Defaults to `*` which matches all departments. */
13
- department?: '*' | string;
51
+ department?: '*' | string | IdMatcher | null;
14
52
  /** User ID */
15
- uid?: string;
53
+ uid?: string | IdMatcher | null;
16
54
  /** Asset ID */
17
- aid?: string;
55
+ aid?: string | IdMatcher | null;
56
+ /** Created at Date */
57
+ createdAt?: DateMatcher;
58
+ /** Updated at Date */
59
+ updatedAt?: DateMatcher;
60
+ /** Deleted at Date. `null` if not deleted */
61
+ deletedAt?: DateMatcher | null;
18
62
  /** catch all bucket for other fields */
19
- [key: string]: string | number | boolean | undefined;
63
+ [key: string]: string | StringMatcher | number | NumberMatcher | boolean | null | undefined;
20
64
  };