@ampsec/platform-client 22.0.0 → 22.1.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.
@@ -36,6 +36,9 @@ export type DateMatcher = {
36
36
  $lte?: string;
37
37
  $gte?: string;
38
38
  };
39
+ export type SortOptions = {
40
+ [key: string]: 'ASC' | 'DESC';
41
+ };
39
42
  export type FilterCriteria = {
40
43
  /** Number of records to return. */
41
44
  limit?: number;
@@ -59,6 +62,8 @@ export type FilterCriteria = {
59
62
  updatedAt?: DateMatcher;
60
63
  /** Deleted at Date. `null` if not deleted */
61
64
  deletedAt?: DateMatcher | null;
65
+ /** Sort Criteria */
66
+ sort?: SortOptions;
62
67
  /** catch all bucket for other fields */
63
68
  [key: string]: string | StringMatcher | number | NumberMatcher | boolean | null | undefined;
64
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "22.0.0",
3
+ "version": "22.1.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -38,6 +38,10 @@ export type DateMatcher = {
38
38
  $gte?: string;
39
39
  };
40
40
 
41
+ export type SortOptions = {
42
+ [key: string]: 'ASC' | 'DESC';
43
+ };
44
+
41
45
  export type FilterCriteria = {
42
46
  /** Number of records to return. */
43
47
  limit?: number;
@@ -61,6 +65,8 @@ export type FilterCriteria = {
61
65
  updatedAt?: DateMatcher;
62
66
  /** Deleted at Date. `null` if not deleted */
63
67
  deletedAt?: DateMatcher | null;
68
+ /** Sort Criteria */
69
+ sort?: SortOptions;
64
70
  /** catch all bucket for other fields */
65
71
  [key: string]: string | StringMatcher | number | NumberMatcher | boolean | null | undefined;
66
72
  };