@shdan/submesh 0.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.
Files changed (230) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +62 -0
  3. package/dist/contracts.d.ts +191 -0
  4. package/dist/contracts.d.ts.map +1 -0
  5. package/dist/contracts.js +2 -0
  6. package/dist/contracts.js.map +1 -0
  7. package/dist/drizzle/catalog-mapping-repository.d.ts +280 -0
  8. package/dist/drizzle/catalog-mapping-repository.d.ts.map +1 -0
  9. package/dist/drizzle/catalog-mapping-repository.js +62 -0
  10. package/dist/drizzle/catalog-mapping-repository.js.map +1 -0
  11. package/dist/drizzle/ensure-schema.d.ts +3 -0
  12. package/dist/drizzle/ensure-schema.d.ts.map +1 -0
  13. package/dist/drizzle/ensure-schema.js +100 -0
  14. package/dist/drizzle/ensure-schema.js.map +1 -0
  15. package/dist/drizzle/inbound-event-repository.d.ts +960 -0
  16. package/dist/drizzle/inbound-event-repository.d.ts.map +1 -0
  17. package/dist/drizzle/inbound-event-repository.js +148 -0
  18. package/dist/drizzle/inbound-event-repository.js.map +1 -0
  19. package/dist/drizzle/index.d.ts +40 -0
  20. package/dist/drizzle/index.d.ts.map +1 -0
  21. package/dist/drizzle/index.js +57 -0
  22. package/dist/drizzle/index.js.map +1 -0
  23. package/dist/drizzle/migrate.d.ts +11 -0
  24. package/dist/drizzle/migrate.d.ts.map +1 -0
  25. package/dist/drizzle/migrate.js +22 -0
  26. package/dist/drizzle/migrate.js.map +1 -0
  27. package/dist/drizzle/plan-repository.d.ts +497 -0
  28. package/dist/drizzle/plan-repository.d.ts.map +1 -0
  29. package/dist/drizzle/plan-repository.js +70 -0
  30. package/dist/drizzle/plan-repository.js.map +1 -0
  31. package/dist/drizzle/plugin-installation-repository.d.ts +26 -0
  32. package/dist/drizzle/plugin-installation-repository.d.ts.map +1 -0
  33. package/dist/drizzle/plugin-installation-repository.js +71 -0
  34. package/dist/drizzle/plugin-installation-repository.js.map +1 -0
  35. package/dist/drizzle/repository-set.d.ts +4 -0
  36. package/dist/drizzle/repository-set.d.ts.map +1 -0
  37. package/dist/drizzle/repository-set.js +19 -0
  38. package/dist/drizzle/repository-set.js.map +1 -0
  39. package/dist/drizzle/schema.d.ts +2370 -0
  40. package/dist/drizzle/schema.d.ts.map +1 -0
  41. package/dist/drizzle/schema.js +103 -0
  42. package/dist/drizzle/schema.js.map +1 -0
  43. package/dist/drizzle/subject-repository.d.ts +295 -0
  44. package/dist/drizzle/subject-repository.d.ts.map +1 -0
  45. package/dist/drizzle/subject-repository.js +76 -0
  46. package/dist/drizzle/subject-repository.js.map +1 -0
  47. package/dist/drizzle/subscription-repository.d.ts +60 -0
  48. package/dist/drizzle/subscription-repository.d.ts.map +1 -0
  49. package/dist/drizzle/subscription-repository.js +128 -0
  50. package/dist/drizzle/subscription-repository.js.map +1 -0
  51. package/dist/drizzle/summary-repository.d.ts +9 -0
  52. package/dist/drizzle/summary-repository.d.ts.map +1 -0
  53. package/dist/drizzle/summary-repository.js +25 -0
  54. package/dist/drizzle/summary-repository.js.map +1 -0
  55. package/dist/drizzle/types.d.ts +4 -0
  56. package/dist/drizzle/types.d.ts.map +1 -0
  57. package/dist/drizzle/types.js +2 -0
  58. package/dist/drizzle/types.js.map +1 -0
  59. package/dist/errors.d.ts +10 -0
  60. package/dist/errors.d.ts.map +1 -0
  61. package/dist/errors.js +13 -0
  62. package/dist/errors.js.map +1 -0
  63. package/dist/hooks.d.ts +24 -0
  64. package/dist/hooks.d.ts.map +1 -0
  65. package/dist/hooks.js +2 -0
  66. package/dist/hooks.js.map +1 -0
  67. package/dist/index.d.ts +11 -0
  68. package/dist/index.d.ts.map +1 -0
  69. package/dist/index.js +9 -0
  70. package/dist/index.js.map +1 -0
  71. package/dist/logger.d.ts +16 -0
  72. package/dist/logger.d.ts.map +1 -0
  73. package/dist/logger.js +8 -0
  74. package/dist/logger.js.map +1 -0
  75. package/dist/plugins/builtin-plugins.d.ts +3 -0
  76. package/dist/plugins/builtin-plugins.d.ts.map +1 -0
  77. package/dist/plugins/builtin-plugins.js +7 -0
  78. package/dist/plugins/builtin-plugins.js.map +1 -0
  79. package/dist/plugins/hash-payload.d.ts +2 -0
  80. package/dist/plugins/hash-payload.d.ts.map +1 -0
  81. package/dist/plugins/hash-payload.js +5 -0
  82. package/dist/plugins/hash-payload.js.map +1 -0
  83. package/dist/plugins/manual.d.ts +12 -0
  84. package/dist/plugins/manual.d.ts.map +1 -0
  85. package/dist/plugins/manual.js +87 -0
  86. package/dist/plugins/manual.js.map +1 -0
  87. package/dist/plugins/plan-provisioning.d.ts +18 -0
  88. package/dist/plugins/plan-provisioning.d.ts.map +1 -0
  89. package/dist/plugins/plan-provisioning.js +159 -0
  90. package/dist/plugins/plan-provisioning.js.map +1 -0
  91. package/dist/plugins/plugin-registry.d.ts +9 -0
  92. package/dist/plugins/plugin-registry.d.ts.map +1 -0
  93. package/dist/plugins/plugin-registry.js +18 -0
  94. package/dist/plugins/plugin-registry.js.map +1 -0
  95. package/dist/providers/apple/plugin/app-store-plan-sync.d.ts +4 -0
  96. package/dist/providers/apple/plugin/app-store-plan-sync.d.ts.map +1 -0
  97. package/dist/providers/apple/plugin/app-store-plan-sync.js +85 -0
  98. package/dist/providers/apple/plugin/app-store-plan-sync.js.map +1 -0
  99. package/dist/providers/apple/plugin/app-store.d.ts +20 -0
  100. package/dist/providers/apple/plugin/app-store.d.ts.map +1 -0
  101. package/dist/providers/apple/plugin/app-store.js +397 -0
  102. package/dist/providers/apple/plugin/app-store.js.map +1 -0
  103. package/dist/providers/apple/security/app-store-verification.d.ts +4 -0
  104. package/dist/providers/apple/security/app-store-verification.d.ts.map +1 -0
  105. package/dist/providers/apple/security/app-store-verification.js +100 -0
  106. package/dist/providers/apple/security/app-store-verification.js.map +1 -0
  107. package/dist/providers/apple/services/app-store-subscription-verification-service.d.ts +3 -0
  108. package/dist/providers/apple/services/app-store-subscription-verification-service.d.ts.map +1 -0
  109. package/dist/providers/apple/services/app-store-subscription-verification-service.js +155 -0
  110. package/dist/providers/apple/services/app-store-subscription-verification-service.js.map +1 -0
  111. package/dist/providers/google/plugin/play-plan-sync.d.ts +4 -0
  112. package/dist/providers/google/plugin/play-plan-sync.d.ts.map +1 -0
  113. package/dist/providers/google/plugin/play-plan-sync.js +270 -0
  114. package/dist/providers/google/plugin/play-plan-sync.js.map +1 -0
  115. package/dist/providers/google/plugin/play.d.ts +20 -0
  116. package/dist/providers/google/plugin/play.d.ts.map +1 -0
  117. package/dist/providers/google/plugin/play.js +460 -0
  118. package/dist/providers/google/plugin/play.js.map +1 -0
  119. package/dist/providers/google/security/oauth.d.ts +10 -0
  120. package/dist/providers/google/security/oauth.d.ts.map +1 -0
  121. package/dist/providers/google/security/oauth.js +116 -0
  122. package/dist/providers/google/security/oauth.js.map +1 -0
  123. package/dist/providers/google/security/pubsub-verification.d.ts +3 -0
  124. package/dist/providers/google/security/pubsub-verification.d.ts.map +1 -0
  125. package/dist/providers/google/security/pubsub-verification.js +229 -0
  126. package/dist/providers/google/security/pubsub-verification.js.map +1 -0
  127. package/dist/providers/google/services/play-subscription-verification-service.d.ts +3 -0
  128. package/dist/providers/google/services/play-subscription-verification-service.d.ts.map +1 -0
  129. package/dist/providers/google/services/play-subscription-verification-service.js +96 -0
  130. package/dist/providers/google/services/play-subscription-verification-service.js.map +1 -0
  131. package/dist/repositories/catalog-mapping-repository.d.ts +9 -0
  132. package/dist/repositories/catalog-mapping-repository.d.ts.map +1 -0
  133. package/dist/repositories/catalog-mapping-repository.js +2 -0
  134. package/dist/repositories/catalog-mapping-repository.js.map +1 -0
  135. package/dist/repositories/inbound-event-repository.d.ts +23 -0
  136. package/dist/repositories/inbound-event-repository.d.ts.map +1 -0
  137. package/dist/repositories/inbound-event-repository.js +2 -0
  138. package/dist/repositories/inbound-event-repository.js.map +1 -0
  139. package/dist/repositories/index.d.ts +30 -0
  140. package/dist/repositories/index.d.ts.map +1 -0
  141. package/dist/repositories/index.js +2 -0
  142. package/dist/repositories/index.js.map +1 -0
  143. package/dist/repositories/plan-repository.d.ts +10 -0
  144. package/dist/repositories/plan-repository.d.ts.map +1 -0
  145. package/dist/repositories/plan-repository.js +2 -0
  146. package/dist/repositories/plan-repository.js.map +1 -0
  147. package/dist/repositories/plugin-installation-repository.d.ts +13 -0
  148. package/dist/repositories/plugin-installation-repository.d.ts.map +1 -0
  149. package/dist/repositories/plugin-installation-repository.js +2 -0
  150. package/dist/repositories/plugin-installation-repository.js.map +1 -0
  151. package/dist/repositories/subject-repository.d.ts +10 -0
  152. package/dist/repositories/subject-repository.d.ts.map +1 -0
  153. package/dist/repositories/subject-repository.js +2 -0
  154. package/dist/repositories/subject-repository.js.map +1 -0
  155. package/dist/repositories/subscription-repository.d.ts +24 -0
  156. package/dist/repositories/subscription-repository.d.ts.map +1 -0
  157. package/dist/repositories/subscription-repository.js +2 -0
  158. package/dist/repositories/subscription-repository.js.map +1 -0
  159. package/dist/security/jwt.d.ts +22 -0
  160. package/dist/security/jwt.d.ts.map +1 -0
  161. package/dist/security/jwt.js +132 -0
  162. package/dist/security/jwt.js.map +1 -0
  163. package/dist/security/plugin-webhook-verification.d.ts +3 -0
  164. package/dist/security/plugin-webhook-verification.d.ts.map +1 -0
  165. package/dist/security/plugin-webhook-verification.js +44 -0
  166. package/dist/security/plugin-webhook-verification.js.map +1 -0
  167. package/dist/security/relay-signature.d.ts +12 -0
  168. package/dist/security/relay-signature.d.ts.map +1 -0
  169. package/dist/security/relay-signature.js +39 -0
  170. package/dist/security/relay-signature.js.map +1 -0
  171. package/dist/services/canonical-subscription-service.d.ts +4 -0
  172. package/dist/services/canonical-subscription-service.d.ts.map +1 -0
  173. package/dist/services/canonical-subscription-service.js +20 -0
  174. package/dist/services/canonical-subscription-service.js.map +1 -0
  175. package/dist/services/managed-subscription-service.d.ts +5 -0
  176. package/dist/services/managed-subscription-service.d.ts.map +1 -0
  177. package/dist/services/managed-subscription-service.js +24 -0
  178. package/dist/services/managed-subscription-service.js.map +1 -0
  179. package/dist/services/plan-provisioning-service.d.ts +5 -0
  180. package/dist/services/plan-provisioning-service.d.ts.map +1 -0
  181. package/dist/services/plan-provisioning-service.js +100 -0
  182. package/dist/services/plan-provisioning-service.js.map +1 -0
  183. package/dist/services/plan-resolution.d.ts +4 -0
  184. package/dist/services/plan-resolution.d.ts.map +1 -0
  185. package/dist/services/plan-resolution.js +33 -0
  186. package/dist/services/plan-resolution.js.map +1 -0
  187. package/dist/services/plugin-installation-service.d.ts +6 -0
  188. package/dist/services/plugin-installation-service.d.ts.map +1 -0
  189. package/dist/services/plugin-installation-service.js +19 -0
  190. package/dist/services/plugin-installation-service.js.map +1 -0
  191. package/dist/services/provider-subscription-sync-service.d.ts +4 -0
  192. package/dist/services/provider-subscription-sync-service.d.ts.map +1 -0
  193. package/dist/services/provider-subscription-sync-service.js +13 -0
  194. package/dist/services/provider-subscription-sync-service.js.map +1 -0
  195. package/dist/services/subject-resolution.d.ts +4 -0
  196. package/dist/services/subject-resolution.d.ts.map +1 -0
  197. package/dist/services/subject-resolution.js +48 -0
  198. package/dist/services/subject-resolution.js.map +1 -0
  199. package/dist/services/webhook-ingestion-service.d.ts +14 -0
  200. package/dist/services/webhook-ingestion-service.d.ts.map +1 -0
  201. package/dist/services/webhook-ingestion-service.js +149 -0
  202. package/dist/services/webhook-ingestion-service.js.map +1 -0
  203. package/dist/submesh.d.ts +265 -0
  204. package/dist/submesh.d.ts.map +1 -0
  205. package/dist/submesh.js +602 -0
  206. package/dist/submesh.js.map +1 -0
  207. package/dist/utils/canonical.d.ts +7 -0
  208. package/dist/utils/canonical.d.ts.map +1 -0
  209. package/dist/utils/canonical.js +8 -0
  210. package/dist/utils/canonical.js.map +1 -0
  211. package/dist/utils/parse.d.ts +42 -0
  212. package/dist/utils/parse.d.ts.map +1 -0
  213. package/dist/utils/parse.js +74 -0
  214. package/dist/utils/parse.js.map +1 -0
  215. package/dist/utils/records.d.ts +2 -0
  216. package/dist/utils/records.d.ts.map +1 -0
  217. package/dist/utils/records.js +7 -0
  218. package/dist/utils/records.js.map +1 -0
  219. package/dist/utils/time.d.ts +2 -0
  220. package/dist/utils/time.d.ts.map +1 -0
  221. package/dist/utils/time.js +4 -0
  222. package/dist/utils/time.js.map +1 -0
  223. package/dist/utils/validation.d.ts +10 -0
  224. package/dist/utils/validation.d.ts.map +1 -0
  225. package/dist/utils/validation.js +19 -0
  226. package/dist/utils/validation.js.map +1 -0
  227. package/drizzle/0000_cute_the_order.sql +94 -0
  228. package/drizzle/meta/0000_snapshot.json +559 -0
  229. package/drizzle/meta/_journal.json +13 -0
  230. package/package.json +54 -0
@@ -0,0 +1,960 @@
1
+ import type { InboundEventStatus } from "@shdan/submesh-core";
2
+ import type { InboundEventRepository } from "../repositories/inbound-event-repository.js";
3
+ import type { CreateInboundEventInput } from "../repositories/index.js";
4
+ import type { SubmeshDrizzleDatabase } from "./types.js";
5
+ export declare class DrizzleInboundEventRepository implements InboundEventRepository {
6
+ private readonly db;
7
+ constructor(db: SubmeshDrizzleDatabase);
8
+ list(limit?: number): Omit<import("drizzle-orm/pg-core").PgSelectBase<"inbound_events", {
9
+ id: import("drizzle-orm/pg-core").PgColumn<{
10
+ name: "id";
11
+ tableName: "inbound_events";
12
+ dataType: "string";
13
+ columnType: "PgText";
14
+ data: string;
15
+ driverParam: string;
16
+ notNull: true;
17
+ hasDefault: false;
18
+ isPrimaryKey: true;
19
+ isAutoincrement: false;
20
+ hasRuntimeDefault: false;
21
+ enumValues: [string, ...string[]];
22
+ baseColumn: never;
23
+ identity: undefined;
24
+ generated: undefined;
25
+ }, {}, {}>;
26
+ pluginKey: import("drizzle-orm/pg-core").PgColumn<{
27
+ name: "plugin_key";
28
+ tableName: "inbound_events";
29
+ dataType: "string";
30
+ columnType: "PgText";
31
+ data: string;
32
+ driverParam: string;
33
+ notNull: true;
34
+ hasDefault: false;
35
+ isPrimaryKey: false;
36
+ isAutoincrement: false;
37
+ hasRuntimeDefault: false;
38
+ enumValues: [string, ...string[]];
39
+ baseColumn: never;
40
+ identity: undefined;
41
+ generated: undefined;
42
+ }, {}, {}>;
43
+ eventKey: import("drizzle-orm/pg-core").PgColumn<{
44
+ name: "event_key";
45
+ tableName: "inbound_events";
46
+ dataType: "string";
47
+ columnType: "PgText";
48
+ data: string;
49
+ driverParam: string;
50
+ notNull: true;
51
+ hasDefault: false;
52
+ isPrimaryKey: false;
53
+ isAutoincrement: false;
54
+ hasRuntimeDefault: false;
55
+ enumValues: [string, ...string[]];
56
+ baseColumn: never;
57
+ identity: undefined;
58
+ generated: undefined;
59
+ }, {}, {}>;
60
+ eventType: import("drizzle-orm/pg-core").PgColumn<{
61
+ name: "event_type";
62
+ tableName: "inbound_events";
63
+ dataType: "string";
64
+ columnType: "PgText";
65
+ data: string;
66
+ driverParam: string;
67
+ notNull: true;
68
+ hasDefault: false;
69
+ isPrimaryKey: false;
70
+ isAutoincrement: false;
71
+ hasRuntimeDefault: false;
72
+ enumValues: [string, ...string[]];
73
+ baseColumn: never;
74
+ identity: undefined;
75
+ generated: undefined;
76
+ }, {}, {}>;
77
+ sourceRef: import("drizzle-orm/pg-core").PgColumn<{
78
+ name: "source_ref";
79
+ tableName: "inbound_events";
80
+ dataType: "string";
81
+ columnType: "PgText";
82
+ data: string;
83
+ driverParam: string;
84
+ notNull: false;
85
+ hasDefault: false;
86
+ isPrimaryKey: false;
87
+ isAutoincrement: false;
88
+ hasRuntimeDefault: false;
89
+ enumValues: [string, ...string[]];
90
+ baseColumn: never;
91
+ identity: undefined;
92
+ generated: undefined;
93
+ }, {}, {}>;
94
+ payload: import("drizzle-orm/pg-core").PgColumn<{
95
+ name: "payload";
96
+ tableName: "inbound_events";
97
+ dataType: "json";
98
+ columnType: "PgJsonb";
99
+ data: Record<string, unknown>;
100
+ driverParam: unknown;
101
+ notNull: true;
102
+ hasDefault: false;
103
+ isPrimaryKey: false;
104
+ isAutoincrement: false;
105
+ hasRuntimeDefault: false;
106
+ enumValues: undefined;
107
+ baseColumn: never;
108
+ identity: undefined;
109
+ generated: undefined;
110
+ }, {}, {
111
+ $type: Record<string, unknown>;
112
+ }>;
113
+ status: import("drizzle-orm/pg-core").PgColumn<{
114
+ name: "status";
115
+ tableName: "inbound_events";
116
+ dataType: "string";
117
+ columnType: "PgText";
118
+ data: InboundEventStatus;
119
+ driverParam: string;
120
+ notNull: true;
121
+ hasDefault: false;
122
+ isPrimaryKey: false;
123
+ isAutoincrement: false;
124
+ hasRuntimeDefault: false;
125
+ enumValues: [string, ...string[]];
126
+ baseColumn: never;
127
+ identity: undefined;
128
+ generated: undefined;
129
+ }, {}, {
130
+ $type: InboundEventStatus;
131
+ }>;
132
+ processedCount: import("drizzle-orm/pg-core").PgColumn<{
133
+ name: "processed_count";
134
+ tableName: "inbound_events";
135
+ dataType: "number";
136
+ columnType: "PgInteger";
137
+ data: number;
138
+ driverParam: string | number;
139
+ notNull: true;
140
+ hasDefault: false;
141
+ isPrimaryKey: false;
142
+ isAutoincrement: false;
143
+ hasRuntimeDefault: false;
144
+ enumValues: undefined;
145
+ baseColumn: never;
146
+ identity: undefined;
147
+ generated: undefined;
148
+ }, {}, {}>;
149
+ errorMessage: import("drizzle-orm/pg-core").PgColumn<{
150
+ name: "error_message";
151
+ tableName: "inbound_events";
152
+ dataType: "string";
153
+ columnType: "PgText";
154
+ data: string;
155
+ driverParam: string;
156
+ notNull: false;
157
+ hasDefault: false;
158
+ isPrimaryKey: false;
159
+ isAutoincrement: false;
160
+ hasRuntimeDefault: false;
161
+ enumValues: [string, ...string[]];
162
+ baseColumn: never;
163
+ identity: undefined;
164
+ generated: undefined;
165
+ }, {}, {}>;
166
+ processedAt: import("drizzle-orm/pg-core").PgColumn<{
167
+ name: "processed_at";
168
+ tableName: "inbound_events";
169
+ dataType: "string";
170
+ columnType: "PgText";
171
+ data: string;
172
+ driverParam: string;
173
+ notNull: false;
174
+ hasDefault: false;
175
+ isPrimaryKey: false;
176
+ isAutoincrement: false;
177
+ hasRuntimeDefault: false;
178
+ enumValues: [string, ...string[]];
179
+ baseColumn: never;
180
+ identity: undefined;
181
+ generated: undefined;
182
+ }, {}, {}>;
183
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
184
+ name: "created_at";
185
+ tableName: "inbound_events";
186
+ dataType: "string";
187
+ columnType: "PgText";
188
+ data: string;
189
+ driverParam: string;
190
+ notNull: true;
191
+ hasDefault: false;
192
+ isPrimaryKey: false;
193
+ isAutoincrement: false;
194
+ hasRuntimeDefault: false;
195
+ enumValues: [string, ...string[]];
196
+ baseColumn: never;
197
+ identity: undefined;
198
+ generated: undefined;
199
+ }, {}, {}>;
200
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
201
+ name: "updated_at";
202
+ tableName: "inbound_events";
203
+ dataType: "string";
204
+ columnType: "PgText";
205
+ data: string;
206
+ driverParam: string;
207
+ notNull: true;
208
+ hasDefault: false;
209
+ isPrimaryKey: false;
210
+ isAutoincrement: false;
211
+ hasRuntimeDefault: false;
212
+ enumValues: [string, ...string[]];
213
+ baseColumn: never;
214
+ identity: undefined;
215
+ generated: undefined;
216
+ }, {}, {}>;
217
+ }, "single", Record<"inbound_events", "not-null">, false, "orderBy" | "limit", {
218
+ id: string;
219
+ pluginKey: string;
220
+ eventKey: string;
221
+ eventType: string;
222
+ sourceRef: string | null;
223
+ payload: Record<string, unknown>;
224
+ status: InboundEventStatus;
225
+ processedCount: number;
226
+ errorMessage: string | null;
227
+ processedAt: string | null;
228
+ createdAt: string;
229
+ updatedAt: string;
230
+ }[], {
231
+ id: import("drizzle-orm/pg-core").PgColumn<{
232
+ name: "id";
233
+ tableName: "inbound_events";
234
+ dataType: "string";
235
+ columnType: "PgText";
236
+ data: string;
237
+ driverParam: string;
238
+ notNull: true;
239
+ hasDefault: false;
240
+ isPrimaryKey: true;
241
+ isAutoincrement: false;
242
+ hasRuntimeDefault: false;
243
+ enumValues: [string, ...string[]];
244
+ baseColumn: never;
245
+ identity: undefined;
246
+ generated: undefined;
247
+ }, {}, {}>;
248
+ pluginKey: import("drizzle-orm/pg-core").PgColumn<{
249
+ name: "plugin_key";
250
+ tableName: "inbound_events";
251
+ dataType: "string";
252
+ columnType: "PgText";
253
+ data: string;
254
+ driverParam: string;
255
+ notNull: true;
256
+ hasDefault: false;
257
+ isPrimaryKey: false;
258
+ isAutoincrement: false;
259
+ hasRuntimeDefault: false;
260
+ enumValues: [string, ...string[]];
261
+ baseColumn: never;
262
+ identity: undefined;
263
+ generated: undefined;
264
+ }, {}, {}>;
265
+ eventKey: import("drizzle-orm/pg-core").PgColumn<{
266
+ name: "event_key";
267
+ tableName: "inbound_events";
268
+ dataType: "string";
269
+ columnType: "PgText";
270
+ data: string;
271
+ driverParam: string;
272
+ notNull: true;
273
+ hasDefault: false;
274
+ isPrimaryKey: false;
275
+ isAutoincrement: false;
276
+ hasRuntimeDefault: false;
277
+ enumValues: [string, ...string[]];
278
+ baseColumn: never;
279
+ identity: undefined;
280
+ generated: undefined;
281
+ }, {}, {}>;
282
+ eventType: import("drizzle-orm/pg-core").PgColumn<{
283
+ name: "event_type";
284
+ tableName: "inbound_events";
285
+ dataType: "string";
286
+ columnType: "PgText";
287
+ data: string;
288
+ driverParam: string;
289
+ notNull: true;
290
+ hasDefault: false;
291
+ isPrimaryKey: false;
292
+ isAutoincrement: false;
293
+ hasRuntimeDefault: false;
294
+ enumValues: [string, ...string[]];
295
+ baseColumn: never;
296
+ identity: undefined;
297
+ generated: undefined;
298
+ }, {}, {}>;
299
+ sourceRef: import("drizzle-orm/pg-core").PgColumn<{
300
+ name: "source_ref";
301
+ tableName: "inbound_events";
302
+ dataType: "string";
303
+ columnType: "PgText";
304
+ data: string;
305
+ driverParam: string;
306
+ notNull: false;
307
+ hasDefault: false;
308
+ isPrimaryKey: false;
309
+ isAutoincrement: false;
310
+ hasRuntimeDefault: false;
311
+ enumValues: [string, ...string[]];
312
+ baseColumn: never;
313
+ identity: undefined;
314
+ generated: undefined;
315
+ }, {}, {}>;
316
+ payload: import("drizzle-orm/pg-core").PgColumn<{
317
+ name: "payload";
318
+ tableName: "inbound_events";
319
+ dataType: "json";
320
+ columnType: "PgJsonb";
321
+ data: Record<string, unknown>;
322
+ driverParam: unknown;
323
+ notNull: true;
324
+ hasDefault: false;
325
+ isPrimaryKey: false;
326
+ isAutoincrement: false;
327
+ hasRuntimeDefault: false;
328
+ enumValues: undefined;
329
+ baseColumn: never;
330
+ identity: undefined;
331
+ generated: undefined;
332
+ }, {}, {
333
+ $type: Record<string, unknown>;
334
+ }>;
335
+ status: import("drizzle-orm/pg-core").PgColumn<{
336
+ name: "status";
337
+ tableName: "inbound_events";
338
+ dataType: "string";
339
+ columnType: "PgText";
340
+ data: InboundEventStatus;
341
+ driverParam: string;
342
+ notNull: true;
343
+ hasDefault: false;
344
+ isPrimaryKey: false;
345
+ isAutoincrement: false;
346
+ hasRuntimeDefault: false;
347
+ enumValues: [string, ...string[]];
348
+ baseColumn: never;
349
+ identity: undefined;
350
+ generated: undefined;
351
+ }, {}, {
352
+ $type: InboundEventStatus;
353
+ }>;
354
+ processedCount: import("drizzle-orm/pg-core").PgColumn<{
355
+ name: "processed_count";
356
+ tableName: "inbound_events";
357
+ dataType: "number";
358
+ columnType: "PgInteger";
359
+ data: number;
360
+ driverParam: string | number;
361
+ notNull: true;
362
+ hasDefault: false;
363
+ isPrimaryKey: false;
364
+ isAutoincrement: false;
365
+ hasRuntimeDefault: false;
366
+ enumValues: undefined;
367
+ baseColumn: never;
368
+ identity: undefined;
369
+ generated: undefined;
370
+ }, {}, {}>;
371
+ errorMessage: import("drizzle-orm/pg-core").PgColumn<{
372
+ name: "error_message";
373
+ tableName: "inbound_events";
374
+ dataType: "string";
375
+ columnType: "PgText";
376
+ data: string;
377
+ driverParam: string;
378
+ notNull: false;
379
+ hasDefault: false;
380
+ isPrimaryKey: false;
381
+ isAutoincrement: false;
382
+ hasRuntimeDefault: false;
383
+ enumValues: [string, ...string[]];
384
+ baseColumn: never;
385
+ identity: undefined;
386
+ generated: undefined;
387
+ }, {}, {}>;
388
+ processedAt: import("drizzle-orm/pg-core").PgColumn<{
389
+ name: "processed_at";
390
+ tableName: "inbound_events";
391
+ dataType: "string";
392
+ columnType: "PgText";
393
+ data: string;
394
+ driverParam: string;
395
+ notNull: false;
396
+ hasDefault: false;
397
+ isPrimaryKey: false;
398
+ isAutoincrement: false;
399
+ hasRuntimeDefault: false;
400
+ enumValues: [string, ...string[]];
401
+ baseColumn: never;
402
+ identity: undefined;
403
+ generated: undefined;
404
+ }, {}, {}>;
405
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
406
+ name: "created_at";
407
+ tableName: "inbound_events";
408
+ dataType: "string";
409
+ columnType: "PgText";
410
+ data: string;
411
+ driverParam: string;
412
+ notNull: true;
413
+ hasDefault: false;
414
+ isPrimaryKey: false;
415
+ isAutoincrement: false;
416
+ hasRuntimeDefault: false;
417
+ enumValues: [string, ...string[]];
418
+ baseColumn: never;
419
+ identity: undefined;
420
+ generated: undefined;
421
+ }, {}, {}>;
422
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
423
+ name: "updated_at";
424
+ tableName: "inbound_events";
425
+ dataType: "string";
426
+ columnType: "PgText";
427
+ data: string;
428
+ driverParam: string;
429
+ notNull: true;
430
+ hasDefault: false;
431
+ isPrimaryKey: false;
432
+ isAutoincrement: false;
433
+ hasRuntimeDefault: false;
434
+ enumValues: [string, ...string[]];
435
+ baseColumn: never;
436
+ identity: undefined;
437
+ generated: undefined;
438
+ }, {}, {}>;
439
+ }>, "orderBy" | "limit">;
440
+ listByStatus(status: InboundEventStatus, limit?: number): Omit<import("drizzle-orm/pg-core").PgSelectBase<"inbound_events", {
441
+ id: import("drizzle-orm/pg-core").PgColumn<{
442
+ name: "id";
443
+ tableName: "inbound_events";
444
+ dataType: "string";
445
+ columnType: "PgText";
446
+ data: string;
447
+ driverParam: string;
448
+ notNull: true;
449
+ hasDefault: false;
450
+ isPrimaryKey: true;
451
+ isAutoincrement: false;
452
+ hasRuntimeDefault: false;
453
+ enumValues: [string, ...string[]];
454
+ baseColumn: never;
455
+ identity: undefined;
456
+ generated: undefined;
457
+ }, {}, {}>;
458
+ pluginKey: import("drizzle-orm/pg-core").PgColumn<{
459
+ name: "plugin_key";
460
+ tableName: "inbound_events";
461
+ dataType: "string";
462
+ columnType: "PgText";
463
+ data: string;
464
+ driverParam: string;
465
+ notNull: true;
466
+ hasDefault: false;
467
+ isPrimaryKey: false;
468
+ isAutoincrement: false;
469
+ hasRuntimeDefault: false;
470
+ enumValues: [string, ...string[]];
471
+ baseColumn: never;
472
+ identity: undefined;
473
+ generated: undefined;
474
+ }, {}, {}>;
475
+ eventKey: import("drizzle-orm/pg-core").PgColumn<{
476
+ name: "event_key";
477
+ tableName: "inbound_events";
478
+ dataType: "string";
479
+ columnType: "PgText";
480
+ data: string;
481
+ driverParam: string;
482
+ notNull: true;
483
+ hasDefault: false;
484
+ isPrimaryKey: false;
485
+ isAutoincrement: false;
486
+ hasRuntimeDefault: false;
487
+ enumValues: [string, ...string[]];
488
+ baseColumn: never;
489
+ identity: undefined;
490
+ generated: undefined;
491
+ }, {}, {}>;
492
+ eventType: import("drizzle-orm/pg-core").PgColumn<{
493
+ name: "event_type";
494
+ tableName: "inbound_events";
495
+ dataType: "string";
496
+ columnType: "PgText";
497
+ data: string;
498
+ driverParam: string;
499
+ notNull: true;
500
+ hasDefault: false;
501
+ isPrimaryKey: false;
502
+ isAutoincrement: false;
503
+ hasRuntimeDefault: false;
504
+ enumValues: [string, ...string[]];
505
+ baseColumn: never;
506
+ identity: undefined;
507
+ generated: undefined;
508
+ }, {}, {}>;
509
+ sourceRef: import("drizzle-orm/pg-core").PgColumn<{
510
+ name: "source_ref";
511
+ tableName: "inbound_events";
512
+ dataType: "string";
513
+ columnType: "PgText";
514
+ data: string;
515
+ driverParam: string;
516
+ notNull: false;
517
+ hasDefault: false;
518
+ isPrimaryKey: false;
519
+ isAutoincrement: false;
520
+ hasRuntimeDefault: false;
521
+ enumValues: [string, ...string[]];
522
+ baseColumn: never;
523
+ identity: undefined;
524
+ generated: undefined;
525
+ }, {}, {}>;
526
+ payload: import("drizzle-orm/pg-core").PgColumn<{
527
+ name: "payload";
528
+ tableName: "inbound_events";
529
+ dataType: "json";
530
+ columnType: "PgJsonb";
531
+ data: Record<string, unknown>;
532
+ driverParam: unknown;
533
+ notNull: true;
534
+ hasDefault: false;
535
+ isPrimaryKey: false;
536
+ isAutoincrement: false;
537
+ hasRuntimeDefault: false;
538
+ enumValues: undefined;
539
+ baseColumn: never;
540
+ identity: undefined;
541
+ generated: undefined;
542
+ }, {}, {
543
+ $type: Record<string, unknown>;
544
+ }>;
545
+ status: import("drizzle-orm/pg-core").PgColumn<{
546
+ name: "status";
547
+ tableName: "inbound_events";
548
+ dataType: "string";
549
+ columnType: "PgText";
550
+ data: InboundEventStatus;
551
+ driverParam: string;
552
+ notNull: true;
553
+ hasDefault: false;
554
+ isPrimaryKey: false;
555
+ isAutoincrement: false;
556
+ hasRuntimeDefault: false;
557
+ enumValues: [string, ...string[]];
558
+ baseColumn: never;
559
+ identity: undefined;
560
+ generated: undefined;
561
+ }, {}, {
562
+ $type: InboundEventStatus;
563
+ }>;
564
+ processedCount: import("drizzle-orm/pg-core").PgColumn<{
565
+ name: "processed_count";
566
+ tableName: "inbound_events";
567
+ dataType: "number";
568
+ columnType: "PgInteger";
569
+ data: number;
570
+ driverParam: string | number;
571
+ notNull: true;
572
+ hasDefault: false;
573
+ isPrimaryKey: false;
574
+ isAutoincrement: false;
575
+ hasRuntimeDefault: false;
576
+ enumValues: undefined;
577
+ baseColumn: never;
578
+ identity: undefined;
579
+ generated: undefined;
580
+ }, {}, {}>;
581
+ errorMessage: import("drizzle-orm/pg-core").PgColumn<{
582
+ name: "error_message";
583
+ tableName: "inbound_events";
584
+ dataType: "string";
585
+ columnType: "PgText";
586
+ data: string;
587
+ driverParam: string;
588
+ notNull: false;
589
+ hasDefault: false;
590
+ isPrimaryKey: false;
591
+ isAutoincrement: false;
592
+ hasRuntimeDefault: false;
593
+ enumValues: [string, ...string[]];
594
+ baseColumn: never;
595
+ identity: undefined;
596
+ generated: undefined;
597
+ }, {}, {}>;
598
+ processedAt: import("drizzle-orm/pg-core").PgColumn<{
599
+ name: "processed_at";
600
+ tableName: "inbound_events";
601
+ dataType: "string";
602
+ columnType: "PgText";
603
+ data: string;
604
+ driverParam: string;
605
+ notNull: false;
606
+ hasDefault: false;
607
+ isPrimaryKey: false;
608
+ isAutoincrement: false;
609
+ hasRuntimeDefault: false;
610
+ enumValues: [string, ...string[]];
611
+ baseColumn: never;
612
+ identity: undefined;
613
+ generated: undefined;
614
+ }, {}, {}>;
615
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
616
+ name: "created_at";
617
+ tableName: "inbound_events";
618
+ dataType: "string";
619
+ columnType: "PgText";
620
+ data: string;
621
+ driverParam: string;
622
+ notNull: true;
623
+ hasDefault: false;
624
+ isPrimaryKey: false;
625
+ isAutoincrement: false;
626
+ hasRuntimeDefault: false;
627
+ enumValues: [string, ...string[]];
628
+ baseColumn: never;
629
+ identity: undefined;
630
+ generated: undefined;
631
+ }, {}, {}>;
632
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
633
+ name: "updated_at";
634
+ tableName: "inbound_events";
635
+ dataType: "string";
636
+ columnType: "PgText";
637
+ data: string;
638
+ driverParam: string;
639
+ notNull: true;
640
+ hasDefault: false;
641
+ isPrimaryKey: false;
642
+ isAutoincrement: false;
643
+ hasRuntimeDefault: false;
644
+ enumValues: [string, ...string[]];
645
+ baseColumn: never;
646
+ identity: undefined;
647
+ generated: undefined;
648
+ }, {}, {}>;
649
+ }, "single", Record<"inbound_events", "not-null">, false, "orderBy" | "where" | "limit", {
650
+ id: string;
651
+ pluginKey: string;
652
+ eventKey: string;
653
+ eventType: string;
654
+ sourceRef: string | null;
655
+ payload: Record<string, unknown>;
656
+ status: InboundEventStatus;
657
+ processedCount: number;
658
+ errorMessage: string | null;
659
+ processedAt: string | null;
660
+ createdAt: string;
661
+ updatedAt: string;
662
+ }[], {
663
+ id: import("drizzle-orm/pg-core").PgColumn<{
664
+ name: "id";
665
+ tableName: "inbound_events";
666
+ dataType: "string";
667
+ columnType: "PgText";
668
+ data: string;
669
+ driverParam: string;
670
+ notNull: true;
671
+ hasDefault: false;
672
+ isPrimaryKey: true;
673
+ isAutoincrement: false;
674
+ hasRuntimeDefault: false;
675
+ enumValues: [string, ...string[]];
676
+ baseColumn: never;
677
+ identity: undefined;
678
+ generated: undefined;
679
+ }, {}, {}>;
680
+ pluginKey: import("drizzle-orm/pg-core").PgColumn<{
681
+ name: "plugin_key";
682
+ tableName: "inbound_events";
683
+ dataType: "string";
684
+ columnType: "PgText";
685
+ data: string;
686
+ driverParam: string;
687
+ notNull: true;
688
+ hasDefault: false;
689
+ isPrimaryKey: false;
690
+ isAutoincrement: false;
691
+ hasRuntimeDefault: false;
692
+ enumValues: [string, ...string[]];
693
+ baseColumn: never;
694
+ identity: undefined;
695
+ generated: undefined;
696
+ }, {}, {}>;
697
+ eventKey: import("drizzle-orm/pg-core").PgColumn<{
698
+ name: "event_key";
699
+ tableName: "inbound_events";
700
+ dataType: "string";
701
+ columnType: "PgText";
702
+ data: string;
703
+ driverParam: string;
704
+ notNull: true;
705
+ hasDefault: false;
706
+ isPrimaryKey: false;
707
+ isAutoincrement: false;
708
+ hasRuntimeDefault: false;
709
+ enumValues: [string, ...string[]];
710
+ baseColumn: never;
711
+ identity: undefined;
712
+ generated: undefined;
713
+ }, {}, {}>;
714
+ eventType: import("drizzle-orm/pg-core").PgColumn<{
715
+ name: "event_type";
716
+ tableName: "inbound_events";
717
+ dataType: "string";
718
+ columnType: "PgText";
719
+ data: string;
720
+ driverParam: string;
721
+ notNull: true;
722
+ hasDefault: false;
723
+ isPrimaryKey: false;
724
+ isAutoincrement: false;
725
+ hasRuntimeDefault: false;
726
+ enumValues: [string, ...string[]];
727
+ baseColumn: never;
728
+ identity: undefined;
729
+ generated: undefined;
730
+ }, {}, {}>;
731
+ sourceRef: import("drizzle-orm/pg-core").PgColumn<{
732
+ name: "source_ref";
733
+ tableName: "inbound_events";
734
+ dataType: "string";
735
+ columnType: "PgText";
736
+ data: string;
737
+ driverParam: string;
738
+ notNull: false;
739
+ hasDefault: false;
740
+ isPrimaryKey: false;
741
+ isAutoincrement: false;
742
+ hasRuntimeDefault: false;
743
+ enumValues: [string, ...string[]];
744
+ baseColumn: never;
745
+ identity: undefined;
746
+ generated: undefined;
747
+ }, {}, {}>;
748
+ payload: import("drizzle-orm/pg-core").PgColumn<{
749
+ name: "payload";
750
+ tableName: "inbound_events";
751
+ dataType: "json";
752
+ columnType: "PgJsonb";
753
+ data: Record<string, unknown>;
754
+ driverParam: unknown;
755
+ notNull: true;
756
+ hasDefault: false;
757
+ isPrimaryKey: false;
758
+ isAutoincrement: false;
759
+ hasRuntimeDefault: false;
760
+ enumValues: undefined;
761
+ baseColumn: never;
762
+ identity: undefined;
763
+ generated: undefined;
764
+ }, {}, {
765
+ $type: Record<string, unknown>;
766
+ }>;
767
+ status: import("drizzle-orm/pg-core").PgColumn<{
768
+ name: "status";
769
+ tableName: "inbound_events";
770
+ dataType: "string";
771
+ columnType: "PgText";
772
+ data: InboundEventStatus;
773
+ driverParam: string;
774
+ notNull: true;
775
+ hasDefault: false;
776
+ isPrimaryKey: false;
777
+ isAutoincrement: false;
778
+ hasRuntimeDefault: false;
779
+ enumValues: [string, ...string[]];
780
+ baseColumn: never;
781
+ identity: undefined;
782
+ generated: undefined;
783
+ }, {}, {
784
+ $type: InboundEventStatus;
785
+ }>;
786
+ processedCount: import("drizzle-orm/pg-core").PgColumn<{
787
+ name: "processed_count";
788
+ tableName: "inbound_events";
789
+ dataType: "number";
790
+ columnType: "PgInteger";
791
+ data: number;
792
+ driverParam: string | number;
793
+ notNull: true;
794
+ hasDefault: false;
795
+ isPrimaryKey: false;
796
+ isAutoincrement: false;
797
+ hasRuntimeDefault: false;
798
+ enumValues: undefined;
799
+ baseColumn: never;
800
+ identity: undefined;
801
+ generated: undefined;
802
+ }, {}, {}>;
803
+ errorMessage: import("drizzle-orm/pg-core").PgColumn<{
804
+ name: "error_message";
805
+ tableName: "inbound_events";
806
+ dataType: "string";
807
+ columnType: "PgText";
808
+ data: string;
809
+ driverParam: string;
810
+ notNull: false;
811
+ hasDefault: false;
812
+ isPrimaryKey: false;
813
+ isAutoincrement: false;
814
+ hasRuntimeDefault: false;
815
+ enumValues: [string, ...string[]];
816
+ baseColumn: never;
817
+ identity: undefined;
818
+ generated: undefined;
819
+ }, {}, {}>;
820
+ processedAt: import("drizzle-orm/pg-core").PgColumn<{
821
+ name: "processed_at";
822
+ tableName: "inbound_events";
823
+ dataType: "string";
824
+ columnType: "PgText";
825
+ data: string;
826
+ driverParam: string;
827
+ notNull: false;
828
+ hasDefault: false;
829
+ isPrimaryKey: false;
830
+ isAutoincrement: false;
831
+ hasRuntimeDefault: false;
832
+ enumValues: [string, ...string[]];
833
+ baseColumn: never;
834
+ identity: undefined;
835
+ generated: undefined;
836
+ }, {}, {}>;
837
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
838
+ name: "created_at";
839
+ tableName: "inbound_events";
840
+ dataType: "string";
841
+ columnType: "PgText";
842
+ data: string;
843
+ driverParam: string;
844
+ notNull: true;
845
+ hasDefault: false;
846
+ isPrimaryKey: false;
847
+ isAutoincrement: false;
848
+ hasRuntimeDefault: false;
849
+ enumValues: [string, ...string[]];
850
+ baseColumn: never;
851
+ identity: undefined;
852
+ generated: undefined;
853
+ }, {}, {}>;
854
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
855
+ name: "updated_at";
856
+ tableName: "inbound_events";
857
+ dataType: "string";
858
+ columnType: "PgText";
859
+ data: string;
860
+ driverParam: string;
861
+ notNull: true;
862
+ hasDefault: false;
863
+ isPrimaryKey: false;
864
+ isAutoincrement: false;
865
+ hasRuntimeDefault: false;
866
+ enumValues: [string, ...string[]];
867
+ baseColumn: never;
868
+ identity: undefined;
869
+ generated: undefined;
870
+ }, {}, {}>;
871
+ }>, "orderBy" | "where" | "limit">;
872
+ getById(id: string): Promise<{
873
+ id: string;
874
+ createdAt: string;
875
+ updatedAt: string;
876
+ pluginKey: string;
877
+ sourceRef: string | null;
878
+ status: InboundEventStatus;
879
+ eventKey: string;
880
+ eventType: string;
881
+ payload: Record<string, unknown>;
882
+ processedCount: number;
883
+ errorMessage: string | null;
884
+ processedAt: string | null;
885
+ } | undefined>;
886
+ getByEventKey(pluginKey: string, eventKey: string): Promise<{
887
+ id: string;
888
+ createdAt: string;
889
+ updatedAt: string;
890
+ pluginKey: string;
891
+ sourceRef: string | null;
892
+ status: InboundEventStatus;
893
+ eventKey: string;
894
+ eventType: string;
895
+ payload: Record<string, unknown>;
896
+ processedCount: number;
897
+ errorMessage: string | null;
898
+ processedAt: string | null;
899
+ } | undefined>;
900
+ markReceived(input: CreateInboundEventInput): Promise<{
901
+ event: {
902
+ id: string;
903
+ createdAt: string;
904
+ updatedAt: string;
905
+ pluginKey: string;
906
+ sourceRef: string | null;
907
+ status: InboundEventStatus;
908
+ eventKey: string;
909
+ eventType: string;
910
+ payload: Record<string, unknown>;
911
+ processedCount: number;
912
+ errorMessage: string | null;
913
+ processedAt: string | null;
914
+ };
915
+ claimed: boolean;
916
+ }>;
917
+ markProcessed(id: string, processedCount: number): Promise<{
918
+ id: string;
919
+ pluginKey: string;
920
+ eventKey: string;
921
+ eventType: string;
922
+ sourceRef: string | null;
923
+ payload: Record<string, unknown>;
924
+ status: InboundEventStatus;
925
+ processedCount: number;
926
+ errorMessage: string | null;
927
+ processedAt: string | null;
928
+ createdAt: string;
929
+ updatedAt: string;
930
+ }>;
931
+ markIgnored(id: string): Promise<{
932
+ id: string;
933
+ pluginKey: string;
934
+ eventKey: string;
935
+ eventType: string;
936
+ sourceRef: string | null;
937
+ payload: Record<string, unknown>;
938
+ status: InboundEventStatus;
939
+ processedCount: number;
940
+ errorMessage: string | null;
941
+ processedAt: string | null;
942
+ createdAt: string;
943
+ updatedAt: string;
944
+ }>;
945
+ markFailed(id: string, errorMessage: string): Promise<{
946
+ id: string;
947
+ pluginKey: string;
948
+ eventKey: string;
949
+ eventType: string;
950
+ sourceRef: string | null;
951
+ payload: Record<string, unknown>;
952
+ status: InboundEventStatus;
953
+ processedCount: number;
954
+ errorMessage: string | null;
955
+ processedAt: string | null;
956
+ createdAt: string;
957
+ updatedAt: string;
958
+ }>;
959
+ }
960
+ //# sourceMappingURL=inbound-event-repository.d.ts.map