@ampsec/platform-client 84.1.2 → 84.2.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.
@@ -103,6 +103,104 @@ export declare const _DateMatcher: z.ZodObject<{
103
103
  $gte?: string | undefined;
104
104
  }>;
105
105
  export type DateMatcher = z.infer<typeof _DateMatcher>;
106
+ export declare const _OrQueryMatcher: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
107
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
110
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ $eq?: string | null | undefined;
113
+ $ne?: string | null | undefined;
114
+ $in?: (string | null)[] | undefined;
115
+ $nin?: (string | null)[] | undefined;
116
+ }, {
117
+ $eq?: string | null | undefined;
118
+ $ne?: string | null | undefined;
119
+ $in?: (string | null)[] | undefined;
120
+ $nin?: (string | null)[] | undefined;
121
+ }>, z.ZodObject<{
122
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
+ $lt: z.ZodOptional<z.ZodString>;
125
+ $gt: z.ZodOptional<z.ZodString>;
126
+ $lte: z.ZodOptional<z.ZodString>;
127
+ $gte: z.ZodOptional<z.ZodString>;
128
+ $like: z.ZodOptional<z.ZodString>;
129
+ $nlike: z.ZodOptional<z.ZodString>;
130
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
131
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ $eq?: string | null | undefined;
134
+ $in?: (string | null)[] | undefined;
135
+ $nin?: (string | null)[] | undefined;
136
+ $neq?: string | null | undefined;
137
+ $lt?: string | undefined;
138
+ $gt?: string | undefined;
139
+ $lte?: string | undefined;
140
+ $gte?: string | undefined;
141
+ $like?: string | undefined;
142
+ $nlike?: string | undefined;
143
+ }, {
144
+ $eq?: string | null | undefined;
145
+ $in?: (string | null)[] | undefined;
146
+ $nin?: (string | null)[] | undefined;
147
+ $neq?: string | null | undefined;
148
+ $lt?: string | undefined;
149
+ $gt?: string | undefined;
150
+ $lte?: string | undefined;
151
+ $gte?: string | undefined;
152
+ $like?: string | undefined;
153
+ $nlike?: string | undefined;
154
+ }>, z.ZodObject<{
155
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
156
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
157
+ $lt: z.ZodOptional<z.ZodNumber>;
158
+ $gt: z.ZodOptional<z.ZodNumber>;
159
+ $lte: z.ZodOptional<z.ZodNumber>;
160
+ $gte: z.ZodOptional<z.ZodNumber>;
161
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
162
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ $eq?: number | null | undefined;
165
+ $in?: (number | null)[] | undefined;
166
+ $nin?: (number | null)[] | undefined;
167
+ $neq?: number | null | undefined;
168
+ $lt?: number | undefined;
169
+ $gt?: number | undefined;
170
+ $lte?: number | undefined;
171
+ $gte?: number | undefined;
172
+ }, {
173
+ $eq?: number | null | undefined;
174
+ $in?: (number | null)[] | undefined;
175
+ $nin?: (number | null)[] | undefined;
176
+ $neq?: number | null | undefined;
177
+ $lt?: number | undefined;
178
+ $gt?: number | undefined;
179
+ $lte?: number | undefined;
180
+ $gte?: number | undefined;
181
+ }>, z.ZodObject<{
182
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
184
+ $lt: z.ZodOptional<z.ZodString>;
185
+ $gt: z.ZodOptional<z.ZodString>;
186
+ $lte: z.ZodOptional<z.ZodString>;
187
+ $gte: z.ZodOptional<z.ZodString>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ $eq?: string | null | undefined;
190
+ $neq?: string | null | undefined;
191
+ $lt?: string | undefined;
192
+ $gt?: string | undefined;
193
+ $lte?: string | undefined;
194
+ $gte?: string | undefined;
195
+ }, {
196
+ $eq?: string | null | undefined;
197
+ $neq?: string | null | undefined;
198
+ $lt?: string | undefined;
199
+ $gt?: string | undefined;
200
+ $lte?: string | undefined;
201
+ $gte?: string | undefined;
202
+ }>, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodUndefined]>>;
203
+ export type OrQueryMatcher = z.infer<typeof _OrQueryMatcher>;
106
204
  export type SortOptions = {
107
205
  [key: string]: 'ASC' | 'DESC';
108
206
  };
@@ -859,6 +957,8 @@ export type FilterCriteria = {
859
957
  updatedAt?: DateMatcher;
860
958
  /** Deleted at Date. `null` if not deleted */
861
959
  deletedAt?: DateMatcher | null;
960
+ /** Generates OR filter, meant to be used with platform-specific logic, not for general use */
961
+ $or?: OrQueryMatcher | null;
862
962
  /** catch all bucket for other fields */
863
- [key: string]: string | string[] | StringMatcher | number | NumberMatcher | boolean | null | undefined | SortOptions;
963
+ [key: string]: string | string[] | StringMatcher | number | NumberMatcher | boolean | null | undefined | SortOptions | OrQueryMatcher;
864
964
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._FilterCriteria = exports._BaseFilter = exports._SortFilter = exports._PaginationFilter = exports._DateMatcher = exports._NumberMatcher = exports._StringMatcher = exports._IdMatcher = void 0;
3
+ exports._FilterCriteria = exports._BaseFilter = exports._SortFilter = exports._PaginationFilter = exports._OrQueryMatcher = exports._DateMatcher = exports._NumberMatcher = exports._StringMatcher = exports._IdMatcher = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const _OptionalStringValue = zod_1.z.string().nullable();
6
6
  const _OptionalNumberValue = zod_1.z.number().nullable();
@@ -40,6 +40,7 @@ exports._DateMatcher = zod_1.z.object({
40
40
  $lte: zod_1.z.string().optional(),
41
41
  $gte: zod_1.z.string().optional(),
42
42
  });
43
+ exports._OrQueryMatcher = zod_1.z.record(zod_1.z.string(), zod_1.z.union([exports._IdMatcher, exports._StringMatcher, exports._NumberMatcher, exports._DateMatcher, zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean(), zod_1.z.null(), zod_1.z.undefined()]));
43
44
  exports._PaginationFilter = zod_1.z.object({
44
45
  limit: zod_1.z.number().int().min(1).optional(),
45
46
  offset: zod_1.z.number().int().min(0).optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"FilterCriteria.js","sourceRoot":"","sources":["../../src/FilterCriteria.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAEtB,MAAM,oBAAoB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;AACnD,MAAM,oBAAoB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;AAEtC,QAAA,UAAU,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,GAAG,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACpC,GAAG,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACpC,GAAG,EAAE,OAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,QAAQ,EAAE;IAC7C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAGU,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,GAAG,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACpC,IAAI,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACrC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,GAAG,EAAE,OAAC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GAAG,mBAAW;KACvC,KAAK,CACJ,OAAC,CAAC,MAAM,CAAC;IACP,gBAAgB;IAChB,EAAE,EAAE,kBAAU,CAAC,QAAQ,EAAE;IACzB,gBAAgB;IAChB,GAAG,EAAE,kBAAU,CAAC,QAAQ,EAAE;IAC1B,mBAAmB;IACnB,GAAG,EAAE,kBAAU,CAAC,QAAQ,EAAE;IAC1B,0EAA0E;IAC1E,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,sEAAsE;IACtE,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc;IACd,GAAG,EAAE,kBAAU,CAAC,QAAQ,EAAE;IAC1B,eAAe;IACf,GAAG,EAAE,kBAAU,CAAC,QAAQ,EAAE;IAC1B,sBAAsB;IACtB,SAAS,EAAE,oBAAY,CAAC,QAAQ,EAAE;IAClC,sBAAsB;IACtB,SAAS,EAAE,oBAAY,CAAC,QAAQ,EAAE;IAClC,6CAA6C;IAC7C,SAAS,EAAE,oBAAY,CAAC,QAAQ,EAAE;CACnC,CAAC,CACH;KACA,QAAQ,CACP,OAAC,CAAC,MAAM,CACN,OAAC,CAAC,KAAK,CAAC;IACN,OAAC,CAAC,MAAM,EAAE;IACV,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;IACvB,sBAAc;IACd,OAAC,CAAC,MAAM,EAAE;IACV,sBAAc;IACd,OAAC,CAAC,OAAO,EAAE;IACX,OAAC,CAAC,IAAI,EAAE;IACR,OAAC,CAAC,SAAS,EAAE;IACb,mBAAW;CACZ,CAAC,CACH,CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "84.1.2",
3
+ "version": "84.2.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -47,6 +47,12 @@ export const _DateMatcher = z.object({
47
47
  });
48
48
  export type DateMatcher = z.infer<typeof _DateMatcher>;
49
49
 
50
+ export const _OrQueryMatcher = z.record(
51
+ z.string(),
52
+ z.union([_IdMatcher, _StringMatcher, _NumberMatcher, _DateMatcher, z.string(), z.number(), z.boolean(), z.null(), z.undefined()])
53
+ );
54
+ export type OrQueryMatcher = z.infer<typeof _OrQueryMatcher>;
55
+
50
56
  export type SortOptions = {
51
57
  [key: string]: 'ASC' | 'DESC';
52
58
  };
@@ -134,6 +140,8 @@ export type FilterCriteria = {
134
140
  updatedAt?: DateMatcher;
135
141
  /** Deleted at Date. `null` if not deleted */
136
142
  deletedAt?: DateMatcher | null;
143
+ /** Generates OR filter, meant to be used with platform-specific logic, not for general use */
144
+ $or?: OrQueryMatcher | null;
137
145
  /** catch all bucket for other fields */
138
- [key: string]: string | string[] | StringMatcher | number | NumberMatcher | boolean | null | undefined | SortOptions;
146
+ [key: string]: string | string[] | StringMatcher | number | NumberMatcher | boolean | null | undefined | SortOptions | OrQueryMatcher;
139
147
  };