|
11 | 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | 12 | // See the License for the specific language governing permissions and |
13 | 13 | // limitations under the License. |
14 | | -// export interface NitricEvent< |
15 | | -// T extends Record<string, any> = Record<string, any> |
16 | | -// > { |
17 | | -// /** |
18 | | -// * Uniquely identifies the event. |
19 | | -// * |
20 | | -// * Within your app you must ensure the ID is unique. |
21 | | -// * Subscribers can assume events with the same ID are duplicates and avoid reprocessing them |
22 | | -// */ |
23 | | -// id?: string; |
24 | | -// /** |
25 | | -// * An optional description of the event type. |
26 | | -// * |
27 | | -// * Can be useful for de-serialization, routing or observability. The format of this value is determined by the producer. |
28 | | -// */ |
29 | | -// payloadType?: string; |
30 | | -// /** |
31 | | -// * The event's payload data, with details of the event. |
32 | | -// */ |
33 | | -// payload: T; |
34 | | -// } |
35 | 14 |
|
36 | 15 | export class NitricEvent<T extends Record<string, any> = Record<string, any>> { |
37 | 16 | public readonly payload: T; |
@@ -65,31 +44,6 @@ export class NitricTask<T extends Record<string, any> = Record<string, any>> { |
65 | 44 | } |
66 | 45 | } |
67 | 46 |
|
68 | | -// export interface Task<T extends Record<string, any> = Record<string, any>> { |
69 | | -// /** |
70 | | -// * Uniquely identifies the task. |
71 | | -// * |
72 | | -// * Within your app you must ensure the ID is unique. |
73 | | -// */ |
74 | | -// id?: string; |
75 | | -// /** |
76 | | -// * The ID for the current lease of this task. |
77 | | -// * |
78 | | -// * A task may be leased multiple times, resulting in new lease IDs. |
79 | | -// */ |
80 | | -// leaseId?: string; |
81 | | -// /** |
82 | | -// * An optional description of the task type. |
83 | | -// * |
84 | | -// * Can be useful for de-serialization, routing or observability. The format of this value is determined by the producer. |
85 | | -// */ |
86 | | -// payloadType?: string; |
87 | | -// /** |
88 | | -// * The task's payload data, with details of the task or work to be done. |
89 | | -// */ |
90 | | -// payload?: Record<string, any>; |
91 | | -// } |
92 | | - |
93 | 47 | export type WhereQueryOperator = |
94 | 48 | | '<' |
95 | 49 | | '<=' |
|
0 commit comments