@trigger.dev/core 0.0.0-svelte-test-20231206141434 → 0.0.0-v3-canary-20240321105132

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.
@@ -0,0 +1,133 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const stringPatternMatchers: readonly [z.ZodObject<{
4
+ $endsWith: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ $endsWith: string;
7
+ }, {
8
+ $endsWith: string;
9
+ }>, z.ZodObject<{
10
+ $startsWith: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ $startsWith: string;
13
+ }, {
14
+ $startsWith: string;
15
+ }>, z.ZodObject<{
16
+ $ignoreCaseEquals: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ $ignoreCaseEquals: string;
19
+ }, {
20
+ $ignoreCaseEquals: string;
21
+ }>];
22
+ declare const EventMatcherSchema: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodBoolean, "many">, z.ZodArray<z.ZodUnion<[z.ZodObject<{
23
+ $endsWith: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ $endsWith: string;
26
+ }, {
27
+ $endsWith: string;
28
+ }>, z.ZodObject<{
29
+ $startsWith: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ $startsWith: string;
32
+ }, {
33
+ $startsWith: string;
34
+ }>, z.ZodObject<{
35
+ $ignoreCaseEquals: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ $ignoreCaseEquals: string;
38
+ }, {
39
+ $ignoreCaseEquals: string;
40
+ }>, z.ZodObject<{
41
+ $exists: z.ZodBoolean;
42
+ }, "strip", z.ZodTypeAny, {
43
+ $exists: boolean;
44
+ }, {
45
+ $exists: boolean;
46
+ }>, z.ZodObject<{
47
+ $isNull: z.ZodBoolean;
48
+ }, "strip", z.ZodTypeAny, {
49
+ $isNull: boolean;
50
+ }, {
51
+ $isNull: boolean;
52
+ }>, z.ZodObject<{
53
+ $anythingBut: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ $anythingBut: string | number | boolean;
56
+ }, {
57
+ $anythingBut: string | number | boolean;
58
+ }>, z.ZodObject<{
59
+ $anythingBut: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodBoolean, "many">]>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ $anythingBut: (string[] | number[] | boolean[]) & (string[] | number[] | boolean[] | undefined);
62
+ }, {
63
+ $anythingBut: (string[] | number[] | boolean[]) & (string[] | number[] | boolean[] | undefined);
64
+ }>, z.ZodObject<{
65
+ $gt: z.ZodNumber;
66
+ }, "strip", z.ZodTypeAny, {
67
+ $gt: number;
68
+ }, {
69
+ $gt: number;
70
+ }>, z.ZodObject<{
71
+ $lt: z.ZodNumber;
72
+ }, "strip", z.ZodTypeAny, {
73
+ $lt: number;
74
+ }, {
75
+ $lt: number;
76
+ }>, z.ZodObject<{
77
+ $gte: z.ZodNumber;
78
+ }, "strip", z.ZodTypeAny, {
79
+ $gte: number;
80
+ }, {
81
+ $gte: number;
82
+ }>, z.ZodObject<{
83
+ $lte: z.ZodNumber;
84
+ }, "strip", z.ZodTypeAny, {
85
+ $lte: number;
86
+ }, {
87
+ $lte: number;
88
+ }>, z.ZodObject<{
89
+ $between: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ $between: [number, number];
92
+ }, {
93
+ $between: [number, number];
94
+ }>, z.ZodObject<{
95
+ $includes: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ $includes: string | number | boolean;
98
+ }, {
99
+ $includes: string | number | boolean;
100
+ }>, z.ZodObject<{
101
+ $not: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ $not: string | number | boolean;
104
+ }, {
105
+ $not: string | number | boolean;
106
+ }>]>, "many">]>;
107
+ type EventMatcher = z.infer<typeof EventMatcherSchema>;
108
+ /** A filter for matching against data */
109
+ type EventFilter = {
110
+ [key: string]: EventMatcher | EventFilter;
111
+ };
112
+ declare const EventFilterSchema: z.ZodType<EventFilter>;
113
+ declare const EventRuleSchema: z.ZodObject<{
114
+ event: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
115
+ source: z.ZodString;
116
+ payload: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
117
+ context: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ event: (string | string[]) & (string | string[] | undefined);
120
+ source: string;
121
+ payload?: EventFilter | undefined;
122
+ context?: EventFilter | undefined;
123
+ }, {
124
+ event: (string | string[]) & (string | string[] | undefined);
125
+ source: string;
126
+ payload?: EventFilter | undefined;
127
+ context?: EventFilter | undefined;
128
+ }>;
129
+ type EventRule = z.infer<typeof EventRuleSchema>;
130
+
131
+ declare function eventFilterMatches(payload: any, filter: EventFilter): boolean;
132
+
133
+ export { type EventFilter as E, EventFilterSchema as a, EventRuleSchema as b, type EventRule as c, eventFilterMatches as e, stringPatternMatchers as s };
@@ -0,0 +1,133 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const stringPatternMatchers: readonly [z.ZodObject<{
4
+ $endsWith: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ $endsWith: string;
7
+ }, {
8
+ $endsWith: string;
9
+ }>, z.ZodObject<{
10
+ $startsWith: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ $startsWith: string;
13
+ }, {
14
+ $startsWith: string;
15
+ }>, z.ZodObject<{
16
+ $ignoreCaseEquals: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ $ignoreCaseEquals: string;
19
+ }, {
20
+ $ignoreCaseEquals: string;
21
+ }>];
22
+ declare const EventMatcherSchema: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodBoolean, "many">, z.ZodArray<z.ZodUnion<[z.ZodObject<{
23
+ $endsWith: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ $endsWith: string;
26
+ }, {
27
+ $endsWith: string;
28
+ }>, z.ZodObject<{
29
+ $startsWith: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ $startsWith: string;
32
+ }, {
33
+ $startsWith: string;
34
+ }>, z.ZodObject<{
35
+ $ignoreCaseEquals: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ $ignoreCaseEquals: string;
38
+ }, {
39
+ $ignoreCaseEquals: string;
40
+ }>, z.ZodObject<{
41
+ $exists: z.ZodBoolean;
42
+ }, "strip", z.ZodTypeAny, {
43
+ $exists: boolean;
44
+ }, {
45
+ $exists: boolean;
46
+ }>, z.ZodObject<{
47
+ $isNull: z.ZodBoolean;
48
+ }, "strip", z.ZodTypeAny, {
49
+ $isNull: boolean;
50
+ }, {
51
+ $isNull: boolean;
52
+ }>, z.ZodObject<{
53
+ $anythingBut: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ $anythingBut: string | number | boolean;
56
+ }, {
57
+ $anythingBut: string | number | boolean;
58
+ }>, z.ZodObject<{
59
+ $anythingBut: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodBoolean, "many">]>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ $anythingBut: (string[] | number[] | boolean[]) & (string[] | number[] | boolean[] | undefined);
62
+ }, {
63
+ $anythingBut: (string[] | number[] | boolean[]) & (string[] | number[] | boolean[] | undefined);
64
+ }>, z.ZodObject<{
65
+ $gt: z.ZodNumber;
66
+ }, "strip", z.ZodTypeAny, {
67
+ $gt: number;
68
+ }, {
69
+ $gt: number;
70
+ }>, z.ZodObject<{
71
+ $lt: z.ZodNumber;
72
+ }, "strip", z.ZodTypeAny, {
73
+ $lt: number;
74
+ }, {
75
+ $lt: number;
76
+ }>, z.ZodObject<{
77
+ $gte: z.ZodNumber;
78
+ }, "strip", z.ZodTypeAny, {
79
+ $gte: number;
80
+ }, {
81
+ $gte: number;
82
+ }>, z.ZodObject<{
83
+ $lte: z.ZodNumber;
84
+ }, "strip", z.ZodTypeAny, {
85
+ $lte: number;
86
+ }, {
87
+ $lte: number;
88
+ }>, z.ZodObject<{
89
+ $between: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ $between: [number, number];
92
+ }, {
93
+ $between: [number, number];
94
+ }>, z.ZodObject<{
95
+ $includes: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ $includes: string | number | boolean;
98
+ }, {
99
+ $includes: string | number | boolean;
100
+ }>, z.ZodObject<{
101
+ $not: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ $not: string | number | boolean;
104
+ }, {
105
+ $not: string | number | boolean;
106
+ }>]>, "many">]>;
107
+ type EventMatcher = z.infer<typeof EventMatcherSchema>;
108
+ /** A filter for matching against data */
109
+ type EventFilter = {
110
+ [key: string]: EventMatcher | EventFilter;
111
+ };
112
+ declare const EventFilterSchema: z.ZodType<EventFilter>;
113
+ declare const EventRuleSchema: z.ZodObject<{
114
+ event: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
115
+ source: z.ZodString;
116
+ payload: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
117
+ context: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ event: (string | string[]) & (string | string[] | undefined);
120
+ source: string;
121
+ payload?: EventFilter | undefined;
122
+ context?: EventFilter | undefined;
123
+ }, {
124
+ event: (string | string[]) & (string | string[] | undefined);
125
+ source: string;
126
+ payload?: EventFilter | undefined;
127
+ context?: EventFilter | undefined;
128
+ }>;
129
+ type EventRule = z.infer<typeof EventRuleSchema>;
130
+
131
+ declare function eventFilterMatches(payload: any, filter: EventFilter): boolean;
132
+
133
+ export { type EventFilter as E, EventFilterSchema as a, EventRuleSchema as b, type EventRule as c, eventFilterMatches as e, stringPatternMatchers as s };