@ampsec/platform-client 84.1.1 → 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.
- package/build/src/FilterCriteria.d.ts +101 -1
- package/build/src/FilterCriteria.js +2 -1
- package/build/src/FilterCriteria.js.map +1 -1
- package/build/src/dto/customActions.dto.d.ts +34 -34
- package/build/src/dto/customActions.dto.js +1 -1
- package/build/src/dto/customActions.dto.js.map +1 -1
- package/build/src/dto/platform/platform.customActions.dto.d.ts +18 -18
- package/package.json +1 -1
- package/src/FilterCriteria.ts +9 -1
- package/src/dto/customActions.dto.ts +1 -1
|
@@ -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,CAAC,MAAM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E;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"}
|
|
@@ -19,15 +19,15 @@ export declare const _CustomRestActionMetaDto: z.ZodObject<{
|
|
|
19
19
|
payload: z.ZodOptional<z.ZodObject<{
|
|
20
20
|
kind: z.ZodLiteral<"TEMPLATE">;
|
|
21
21
|
format: z.ZodUnion<[z.ZodLiteral<"JSON">, z.ZodLiteral<"XML">]>;
|
|
22
|
-
value: z.ZodString
|
|
22
|
+
value: z.ZodOptional<z.ZodString>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
value: string;
|
|
25
24
|
kind: "TEMPLATE";
|
|
26
25
|
format: "JSON" | "XML";
|
|
26
|
+
value?: string | undefined;
|
|
27
27
|
}, {
|
|
28
|
-
value: string;
|
|
29
28
|
kind: "TEMPLATE";
|
|
30
29
|
format: "JSON" | "XML";
|
|
30
|
+
value?: string | undefined;
|
|
31
31
|
}>>;
|
|
32
32
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
33
33
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -36,9 +36,9 @@ export declare const _CustomRestActionMetaDto: z.ZodObject<{
|
|
|
36
36
|
url: string;
|
|
37
37
|
params?: Record<string, string> | undefined;
|
|
38
38
|
payload?: {
|
|
39
|
-
value: string;
|
|
40
39
|
kind: "TEMPLATE";
|
|
41
40
|
format: "JSON" | "XML";
|
|
41
|
+
value?: string | undefined;
|
|
42
42
|
} | undefined;
|
|
43
43
|
headers?: Record<string, string> | undefined;
|
|
44
44
|
}, {
|
|
@@ -46,9 +46,9 @@ export declare const _CustomRestActionMetaDto: z.ZodObject<{
|
|
|
46
46
|
url: string;
|
|
47
47
|
params?: Record<string, string> | undefined;
|
|
48
48
|
payload?: {
|
|
49
|
-
value: string;
|
|
50
49
|
kind: "TEMPLATE";
|
|
51
50
|
format: "JSON" | "XML";
|
|
51
|
+
value?: string | undefined;
|
|
52
52
|
} | undefined;
|
|
53
53
|
headers?: Record<string, string> | undefined;
|
|
54
54
|
}>;
|
|
@@ -59,9 +59,9 @@ export declare const _CustomRestActionMetaDto: z.ZodObject<{
|
|
|
59
59
|
url: string;
|
|
60
60
|
params?: Record<string, string> | undefined;
|
|
61
61
|
payload?: {
|
|
62
|
-
value: string;
|
|
63
62
|
kind: "TEMPLATE";
|
|
64
63
|
format: "JSON" | "XML";
|
|
64
|
+
value?: string | undefined;
|
|
65
65
|
} | undefined;
|
|
66
66
|
headers?: Record<string, string> | undefined;
|
|
67
67
|
};
|
|
@@ -72,9 +72,9 @@ export declare const _CustomRestActionMetaDto: z.ZodObject<{
|
|
|
72
72
|
url: string;
|
|
73
73
|
params?: Record<string, string> | undefined;
|
|
74
74
|
payload?: {
|
|
75
|
-
value: string;
|
|
76
75
|
kind: "TEMPLATE";
|
|
77
76
|
format: "JSON" | "XML";
|
|
77
|
+
value?: string | undefined;
|
|
78
78
|
} | undefined;
|
|
79
79
|
headers?: Record<string, string> | undefined;
|
|
80
80
|
};
|
|
@@ -111,15 +111,15 @@ declare const _CustomRestActionDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
111
111
|
payload: z.ZodOptional<z.ZodObject<{
|
|
112
112
|
kind: z.ZodLiteral<"TEMPLATE">;
|
|
113
113
|
format: z.ZodUnion<[z.ZodLiteral<"JSON">, z.ZodLiteral<"XML">]>;
|
|
114
|
-
value: z.ZodString
|
|
114
|
+
value: z.ZodOptional<z.ZodString>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
value: string;
|
|
117
116
|
kind: "TEMPLATE";
|
|
118
117
|
format: "JSON" | "XML";
|
|
118
|
+
value?: string | undefined;
|
|
119
119
|
}, {
|
|
120
|
-
value: string;
|
|
121
120
|
kind: "TEMPLATE";
|
|
122
121
|
format: "JSON" | "XML";
|
|
122
|
+
value?: string | undefined;
|
|
123
123
|
}>>;
|
|
124
124
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
125
125
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -128,9 +128,9 @@ declare const _CustomRestActionDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
128
128
|
url: string;
|
|
129
129
|
params?: Record<string, string> | undefined;
|
|
130
130
|
payload?: {
|
|
131
|
-
value: string;
|
|
132
131
|
kind: "TEMPLATE";
|
|
133
132
|
format: "JSON" | "XML";
|
|
133
|
+
value?: string | undefined;
|
|
134
134
|
} | undefined;
|
|
135
135
|
headers?: Record<string, string> | undefined;
|
|
136
136
|
}, {
|
|
@@ -138,9 +138,9 @@ declare const _CustomRestActionDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
138
138
|
url: string;
|
|
139
139
|
params?: Record<string, string> | undefined;
|
|
140
140
|
payload?: {
|
|
141
|
-
value: string;
|
|
142
141
|
kind: "TEMPLATE";
|
|
143
142
|
format: "JSON" | "XML";
|
|
143
|
+
value?: string | undefined;
|
|
144
144
|
} | undefined;
|
|
145
145
|
headers?: Record<string, string> | undefined;
|
|
146
146
|
}>;
|
|
@@ -151,9 +151,9 @@ declare const _CustomRestActionDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
151
151
|
url: string;
|
|
152
152
|
params?: Record<string, string> | undefined;
|
|
153
153
|
payload?: {
|
|
154
|
-
value: string;
|
|
155
154
|
kind: "TEMPLATE";
|
|
156
155
|
format: "JSON" | "XML";
|
|
156
|
+
value?: string | undefined;
|
|
157
157
|
} | undefined;
|
|
158
158
|
headers?: Record<string, string> | undefined;
|
|
159
159
|
};
|
|
@@ -164,9 +164,9 @@ declare const _CustomRestActionDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
164
164
|
url: string;
|
|
165
165
|
params?: Record<string, string> | undefined;
|
|
166
166
|
payload?: {
|
|
167
|
-
value: string;
|
|
168
167
|
kind: "TEMPLATE";
|
|
169
168
|
format: "JSON" | "XML";
|
|
169
|
+
value?: string | undefined;
|
|
170
170
|
} | undefined;
|
|
171
171
|
headers?: Record<string, string> | undefined;
|
|
172
172
|
};
|
|
@@ -185,9 +185,9 @@ declare const _CustomRestActionDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
185
185
|
url: string;
|
|
186
186
|
params?: Record<string, string> | undefined;
|
|
187
187
|
payload?: {
|
|
188
|
-
value: string;
|
|
189
188
|
kind: "TEMPLATE";
|
|
190
189
|
format: "JSON" | "XML";
|
|
190
|
+
value?: string | undefined;
|
|
191
191
|
} | undefined;
|
|
192
192
|
headers?: Record<string, string> | undefined;
|
|
193
193
|
};
|
|
@@ -213,9 +213,9 @@ declare const _CustomRestActionDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
213
213
|
url: string;
|
|
214
214
|
params?: Record<string, string> | undefined;
|
|
215
215
|
payload?: {
|
|
216
|
-
value: string;
|
|
217
216
|
kind: "TEMPLATE";
|
|
218
217
|
format: "JSON" | "XML";
|
|
218
|
+
value?: string | undefined;
|
|
219
219
|
} | undefined;
|
|
220
220
|
headers?: Record<string, string> | undefined;
|
|
221
221
|
};
|
|
@@ -261,15 +261,15 @@ export declare const _CustomActionDto: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
261
261
|
payload: z.ZodOptional<z.ZodObject<{
|
|
262
262
|
kind: z.ZodLiteral<"TEMPLATE">;
|
|
263
263
|
format: z.ZodUnion<[z.ZodLiteral<"JSON">, z.ZodLiteral<"XML">]>;
|
|
264
|
-
value: z.ZodString
|
|
264
|
+
value: z.ZodOptional<z.ZodString>;
|
|
265
265
|
}, "strip", z.ZodTypeAny, {
|
|
266
|
-
value: string;
|
|
267
266
|
kind: "TEMPLATE";
|
|
268
267
|
format: "JSON" | "XML";
|
|
268
|
+
value?: string | undefined;
|
|
269
269
|
}, {
|
|
270
|
-
value: string;
|
|
271
270
|
kind: "TEMPLATE";
|
|
272
271
|
format: "JSON" | "XML";
|
|
272
|
+
value?: string | undefined;
|
|
273
273
|
}>>;
|
|
274
274
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
275
275
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -278,9 +278,9 @@ export declare const _CustomActionDto: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
278
278
|
url: string;
|
|
279
279
|
params?: Record<string, string> | undefined;
|
|
280
280
|
payload?: {
|
|
281
|
-
value: string;
|
|
282
281
|
kind: "TEMPLATE";
|
|
283
282
|
format: "JSON" | "XML";
|
|
283
|
+
value?: string | undefined;
|
|
284
284
|
} | undefined;
|
|
285
285
|
headers?: Record<string, string> | undefined;
|
|
286
286
|
}, {
|
|
@@ -288,9 +288,9 @@ export declare const _CustomActionDto: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
288
288
|
url: string;
|
|
289
289
|
params?: Record<string, string> | undefined;
|
|
290
290
|
payload?: {
|
|
291
|
-
value: string;
|
|
292
291
|
kind: "TEMPLATE";
|
|
293
292
|
format: "JSON" | "XML";
|
|
293
|
+
value?: string | undefined;
|
|
294
294
|
} | undefined;
|
|
295
295
|
headers?: Record<string, string> | undefined;
|
|
296
296
|
}>;
|
|
@@ -301,9 +301,9 @@ export declare const _CustomActionDto: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
301
301
|
url: string;
|
|
302
302
|
params?: Record<string, string> | undefined;
|
|
303
303
|
payload?: {
|
|
304
|
-
value: string;
|
|
305
304
|
kind: "TEMPLATE";
|
|
306
305
|
format: "JSON" | "XML";
|
|
306
|
+
value?: string | undefined;
|
|
307
307
|
} | undefined;
|
|
308
308
|
headers?: Record<string, string> | undefined;
|
|
309
309
|
};
|
|
@@ -314,9 +314,9 @@ export declare const _CustomActionDto: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
314
314
|
url: string;
|
|
315
315
|
params?: Record<string, string> | undefined;
|
|
316
316
|
payload?: {
|
|
317
|
-
value: string;
|
|
318
317
|
kind: "TEMPLATE";
|
|
319
318
|
format: "JSON" | "XML";
|
|
319
|
+
value?: string | undefined;
|
|
320
320
|
} | undefined;
|
|
321
321
|
headers?: Record<string, string> | undefined;
|
|
322
322
|
};
|
|
@@ -335,9 +335,9 @@ export declare const _CustomActionDto: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
335
335
|
url: string;
|
|
336
336
|
params?: Record<string, string> | undefined;
|
|
337
337
|
payload?: {
|
|
338
|
-
value: string;
|
|
339
338
|
kind: "TEMPLATE";
|
|
340
339
|
format: "JSON" | "XML";
|
|
340
|
+
value?: string | undefined;
|
|
341
341
|
} | undefined;
|
|
342
342
|
headers?: Record<string, string> | undefined;
|
|
343
343
|
};
|
|
@@ -363,9 +363,9 @@ export declare const _CustomActionDto: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
363
363
|
url: string;
|
|
364
364
|
params?: Record<string, string> | undefined;
|
|
365
365
|
payload?: {
|
|
366
|
-
value: string;
|
|
367
366
|
kind: "TEMPLATE";
|
|
368
367
|
format: "JSON" | "XML";
|
|
368
|
+
value?: string | undefined;
|
|
369
369
|
} | undefined;
|
|
370
370
|
headers?: Record<string, string> | undefined;
|
|
371
371
|
};
|
|
@@ -395,15 +395,15 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
|
|
|
395
395
|
payload: z.ZodOptional<z.ZodObject<{
|
|
396
396
|
kind: z.ZodLiteral<"TEMPLATE">;
|
|
397
397
|
format: z.ZodUnion<[z.ZodLiteral<"JSON">, z.ZodLiteral<"XML">]>;
|
|
398
|
-
value: z.ZodString
|
|
398
|
+
value: z.ZodOptional<z.ZodString>;
|
|
399
399
|
}, "strip", z.ZodTypeAny, {
|
|
400
|
-
value: string;
|
|
401
400
|
kind: "TEMPLATE";
|
|
402
401
|
format: "JSON" | "XML";
|
|
402
|
+
value?: string | undefined;
|
|
403
403
|
}, {
|
|
404
|
-
value: string;
|
|
405
404
|
kind: "TEMPLATE";
|
|
406
405
|
format: "JSON" | "XML";
|
|
406
|
+
value?: string | undefined;
|
|
407
407
|
}>>;
|
|
408
408
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
409
409
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -412,9 +412,9 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
|
|
|
412
412
|
url: string;
|
|
413
413
|
params?: Record<string, string> | undefined;
|
|
414
414
|
payload?: {
|
|
415
|
-
value: string;
|
|
416
415
|
kind: "TEMPLATE";
|
|
417
416
|
format: "JSON" | "XML";
|
|
417
|
+
value?: string | undefined;
|
|
418
418
|
} | undefined;
|
|
419
419
|
headers?: Record<string, string> | undefined;
|
|
420
420
|
}, {
|
|
@@ -422,9 +422,9 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
|
|
|
422
422
|
url: string;
|
|
423
423
|
params?: Record<string, string> | undefined;
|
|
424
424
|
payload?: {
|
|
425
|
-
value: string;
|
|
426
425
|
kind: "TEMPLATE";
|
|
427
426
|
format: "JSON" | "XML";
|
|
427
|
+
value?: string | undefined;
|
|
428
428
|
} | undefined;
|
|
429
429
|
headers?: Record<string, string> | undefined;
|
|
430
430
|
}>;
|
|
@@ -435,9 +435,9 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
|
|
|
435
435
|
url: string;
|
|
436
436
|
params?: Record<string, string> | undefined;
|
|
437
437
|
payload?: {
|
|
438
|
-
value: string;
|
|
439
438
|
kind: "TEMPLATE";
|
|
440
439
|
format: "JSON" | "XML";
|
|
440
|
+
value?: string | undefined;
|
|
441
441
|
} | undefined;
|
|
442
442
|
headers?: Record<string, string> | undefined;
|
|
443
443
|
};
|
|
@@ -448,9 +448,9 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
|
|
|
448
448
|
url: string;
|
|
449
449
|
params?: Record<string, string> | undefined;
|
|
450
450
|
payload?: {
|
|
451
|
-
value: string;
|
|
452
451
|
kind: "TEMPLATE";
|
|
453
452
|
format: "JSON" | "XML";
|
|
453
|
+
value?: string | undefined;
|
|
454
454
|
} | undefined;
|
|
455
455
|
headers?: Record<string, string> | undefined;
|
|
456
456
|
};
|
|
@@ -479,9 +479,9 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
|
|
|
479
479
|
url: string;
|
|
480
480
|
params?: Record<string, string> | undefined;
|
|
481
481
|
payload?: {
|
|
482
|
-
value: string;
|
|
483
482
|
kind: "TEMPLATE";
|
|
484
483
|
format: "JSON" | "XML";
|
|
484
|
+
value?: string | undefined;
|
|
485
485
|
} | undefined;
|
|
486
486
|
headers?: Record<string, string> | undefined;
|
|
487
487
|
};
|
|
@@ -507,9 +507,9 @@ export declare const _CustomActionUpsertDto: z.ZodObject<{
|
|
|
507
507
|
url: string;
|
|
508
508
|
params?: Record<string, string> | undefined;
|
|
509
509
|
payload?: {
|
|
510
|
-
value: string;
|
|
511
510
|
kind: "TEMPLATE";
|
|
512
511
|
format: "JSON" | "XML";
|
|
512
|
+
value?: string | undefined;
|
|
513
513
|
} | undefined;
|
|
514
514
|
headers?: Record<string, string> | undefined;
|
|
515
515
|
};
|
|
@@ -22,7 +22,7 @@ exports._CustomRestActionMetaDto = zod_1.z.object({
|
|
|
22
22
|
.object({
|
|
23
23
|
kind: zod_1.z.literal('TEMPLATE'),
|
|
24
24
|
format: zod_1.z.union([zod_1.z.literal('JSON'), zod_1.z.literal('XML')]),
|
|
25
|
-
value: zod_1.z.string(),
|
|
25
|
+
value: zod_1.z.string().optional(),
|
|
26
26
|
})
|
|
27
27
|
.optional(),
|
|
28
28
|
headers: zod_1.z.record(zod_1.z.string()).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customActions.dto.js","sourceRoot":"","sources":["../../../src/dto/customActions.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AAExC,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACnC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IACvB,aAAa,EAAE,kCAA0B,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;QAClB,OAAO,EAAE,OAAC;aACP,MAAM,CAAC;YACN,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU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
kind: z.ZodLiteral<"TEMPLATE">;
|
|
32
32
|
format: z.ZodUnion<[z.ZodLiteral<"JSON">, z.ZodLiteral<"XML">]>;
|
|
33
|
-
value: z.ZodString
|
|
33
|
+
value: z.ZodOptional<z.ZodString>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
value: string;
|
|
36
35
|
kind: "TEMPLATE";
|
|
37
36
|
format: "JSON" | "XML";
|
|
37
|
+
value?: string | undefined;
|
|
38
38
|
}, {
|
|
39
|
-
value: string;
|
|
40
39
|
kind: "TEMPLATE";
|
|
41
40
|
format: "JSON" | "XML";
|
|
41
|
+
value?: string | undefined;
|
|
42
42
|
}>>;
|
|
43
43
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
44
44
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -47,9 +47,9 @@ export declare const _PlatformCustomActionDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
47
47
|
url: string;
|
|
48
48
|
params?: Record<string, string> | undefined;
|
|
49
49
|
payload?: {
|
|
50
|
-
value: string;
|
|
51
50
|
kind: "TEMPLATE";
|
|
52
51
|
format: "JSON" | "XML";
|
|
52
|
+
value?: string | undefined;
|
|
53
53
|
} | undefined;
|
|
54
54
|
headers?: Record<string, string> | undefined;
|
|
55
55
|
}, {
|
|
@@ -57,9 +57,9 @@ export declare const _PlatformCustomActionDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
57
57
|
url: string;
|
|
58
58
|
params?: Record<string, string> | undefined;
|
|
59
59
|
payload?: {
|
|
60
|
-
value: string;
|
|
61
60
|
kind: "TEMPLATE";
|
|
62
61
|
format: "JSON" | "XML";
|
|
62
|
+
value?: string | undefined;
|
|
63
63
|
} | undefined;
|
|
64
64
|
headers?: Record<string, string> | undefined;
|
|
65
65
|
}>;
|
|
@@ -70,9 +70,9 @@ export declare const _PlatformCustomActionDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
70
70
|
url: string;
|
|
71
71
|
params?: Record<string, string> | undefined;
|
|
72
72
|
payload?: {
|
|
73
|
-
value: string;
|
|
74
73
|
kind: "TEMPLATE";
|
|
75
74
|
format: "JSON" | "XML";
|
|
75
|
+
value?: string | undefined;
|
|
76
76
|
} | undefined;
|
|
77
77
|
headers?: Record<string, string> | undefined;
|
|
78
78
|
};
|
|
@@ -83,9 +83,9 @@ export declare const _PlatformCustomActionDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
83
83
|
url: string;
|
|
84
84
|
params?: Record<string, string> | undefined;
|
|
85
85
|
payload?: {
|
|
86
|
-
value: string;
|
|
87
86
|
kind: "TEMPLATE";
|
|
88
87
|
format: "JSON" | "XML";
|
|
88
|
+
value?: string | undefined;
|
|
89
89
|
} | undefined;
|
|
90
90
|
headers?: Record<string, string> | undefined;
|
|
91
91
|
};
|
|
@@ -107,9 +107,9 @@ export declare const _PlatformCustomActionDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
107
107
|
url: string;
|
|
108
108
|
params?: Record<string, string> | undefined;
|
|
109
109
|
payload?: {
|
|
110
|
-
value: string;
|
|
111
110
|
kind: "TEMPLATE";
|
|
112
111
|
format: "JSON" | "XML";
|
|
112
|
+
value?: string | undefined;
|
|
113
113
|
} | undefined;
|
|
114
114
|
headers?: Record<string, string> | undefined;
|
|
115
115
|
};
|
|
@@ -136,9 +136,9 @@ export declare const _PlatformCustomActionDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
136
136
|
url: string;
|
|
137
137
|
params?: Record<string, string> | undefined;
|
|
138
138
|
payload?: {
|
|
139
|
-
value: string;
|
|
140
139
|
kind: "TEMPLATE";
|
|
141
140
|
format: "JSON" | "XML";
|
|
141
|
+
value?: string | undefined;
|
|
142
142
|
} | undefined;
|
|
143
143
|
headers?: Record<string, string> | undefined;
|
|
144
144
|
};
|
|
@@ -168,15 +168,15 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<z.objectUtil.ex
|
|
|
168
168
|
payload: z.ZodOptional<z.ZodObject<{
|
|
169
169
|
kind: z.ZodLiteral<"TEMPLATE">;
|
|
170
170
|
format: z.ZodUnion<[z.ZodLiteral<"JSON">, z.ZodLiteral<"XML">]>;
|
|
171
|
-
value: z.ZodString
|
|
171
|
+
value: z.ZodOptional<z.ZodString>;
|
|
172
172
|
}, "strip", z.ZodTypeAny, {
|
|
173
|
-
value: string;
|
|
174
173
|
kind: "TEMPLATE";
|
|
175
174
|
format: "JSON" | "XML";
|
|
175
|
+
value?: string | undefined;
|
|
176
176
|
}, {
|
|
177
|
-
value: string;
|
|
178
177
|
kind: "TEMPLATE";
|
|
179
178
|
format: "JSON" | "XML";
|
|
179
|
+
value?: string | undefined;
|
|
180
180
|
}>>;
|
|
181
181
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
182
182
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -185,9 +185,9 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<z.objectUtil.ex
|
|
|
185
185
|
url: string;
|
|
186
186
|
params?: Record<string, string> | undefined;
|
|
187
187
|
payload?: {
|
|
188
|
-
value: string;
|
|
189
188
|
kind: "TEMPLATE";
|
|
190
189
|
format: "JSON" | "XML";
|
|
190
|
+
value?: string | undefined;
|
|
191
191
|
} | undefined;
|
|
192
192
|
headers?: Record<string, string> | undefined;
|
|
193
193
|
}, {
|
|
@@ -195,9 +195,9 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<z.objectUtil.ex
|
|
|
195
195
|
url: string;
|
|
196
196
|
params?: Record<string, string> | undefined;
|
|
197
197
|
payload?: {
|
|
198
|
-
value: string;
|
|
199
198
|
kind: "TEMPLATE";
|
|
200
199
|
format: "JSON" | "XML";
|
|
200
|
+
value?: string | undefined;
|
|
201
201
|
} | undefined;
|
|
202
202
|
headers?: Record<string, string> | undefined;
|
|
203
203
|
}>;
|
|
@@ -208,9 +208,9 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<z.objectUtil.ex
|
|
|
208
208
|
url: string;
|
|
209
209
|
params?: Record<string, string> | undefined;
|
|
210
210
|
payload?: {
|
|
211
|
-
value: string;
|
|
212
211
|
kind: "TEMPLATE";
|
|
213
212
|
format: "JSON" | "XML";
|
|
213
|
+
value?: string | undefined;
|
|
214
214
|
} | undefined;
|
|
215
215
|
headers?: Record<string, string> | undefined;
|
|
216
216
|
};
|
|
@@ -221,9 +221,9 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<z.objectUtil.ex
|
|
|
221
221
|
url: string;
|
|
222
222
|
params?: Record<string, string> | undefined;
|
|
223
223
|
payload?: {
|
|
224
|
-
value: string;
|
|
225
224
|
kind: "TEMPLATE";
|
|
226
225
|
format: "JSON" | "XML";
|
|
226
|
+
value?: string | undefined;
|
|
227
227
|
} | undefined;
|
|
228
228
|
headers?: Record<string, string> | undefined;
|
|
229
229
|
};
|
|
@@ -255,9 +255,9 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<z.objectUtil.ex
|
|
|
255
255
|
url: string;
|
|
256
256
|
params?: Record<string, string> | undefined;
|
|
257
257
|
payload?: {
|
|
258
|
-
value: string;
|
|
259
258
|
kind: "TEMPLATE";
|
|
260
259
|
format: "JSON" | "XML";
|
|
260
|
+
value?: string | undefined;
|
|
261
261
|
} | undefined;
|
|
262
262
|
headers?: Record<string, string> | undefined;
|
|
263
263
|
};
|
|
@@ -284,9 +284,9 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<z.objectUtil.ex
|
|
|
284
284
|
url: string;
|
|
285
285
|
params?: Record<string, string> | undefined;
|
|
286
286
|
payload?: {
|
|
287
|
-
value: string;
|
|
288
287
|
kind: "TEMPLATE";
|
|
289
288
|
format: "JSON" | "XML";
|
|
289
|
+
value?: string | undefined;
|
|
290
290
|
} | undefined;
|
|
291
291
|
headers?: Record<string, string> | undefined;
|
|
292
292
|
};
|
package/package.json
CHANGED
package/src/FilterCriteria.ts
CHANGED
|
@@ -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
|
};
|
|
@@ -22,7 +22,7 @@ export const _CustomRestActionMetaDto = z.object({
|
|
|
22
22
|
.object({
|
|
23
23
|
kind: z.literal('TEMPLATE'),
|
|
24
24
|
format: z.union([z.literal('JSON'), z.literal('XML')]),
|
|
25
|
-
value: z.string(),
|
|
25
|
+
value: z.string().optional(),
|
|
26
26
|
})
|
|
27
27
|
.optional(),
|
|
28
28
|
headers: z.record(z.string()).optional(),
|