@lssm/lib.jobs 0.0.0-canary-20251217080011 → 1.41.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 (158) hide show
  1. package/dist/_virtual/rolldown_runtime.js +1 -42
  2. package/dist/contracts/index.js +1 -484
  3. package/dist/entities/index.js +1 -198
  4. package/dist/events.js +1 -303
  5. package/dist/handlers/gmail-sync-handler.js +1 -9
  6. package/dist/handlers/index.js +1 -12
  7. package/dist/handlers/ping-job.js +1 -13
  8. package/dist/handlers/storage-document-handler.js +1 -14
  9. package/dist/index.js +1 -18
  10. package/dist/jobs.feature.js +1 -101
  11. package/dist/queue/gcp-cloud-tasks.js +1 -61
  12. package/dist/queue/gcp-pubsub.js +1 -47
  13. package/dist/queue/index.js +1 -9
  14. package/dist/queue/memory-queue.js +1 -140
  15. package/dist/queue/register-defined-job.js +1 -15
  16. package/dist/queue/scaleway-sqs-queue.js +1 -175
  17. package/dist/queue/types.js +1 -3
  18. package/dist/scheduler/index.js +1 -145
  19. package/package.json +23 -25
  20. package/dist/contracts/dist/capabilities/openbanking.js +0 -88
  21. package/dist/contracts/dist/client/index.js +0 -5
  22. package/dist/contracts/dist/client/react/feature-render.js +0 -2
  23. package/dist/contracts/dist/client/react/form-render.js +0 -4
  24. package/dist/contracts/dist/client/react/index.js +0 -4
  25. package/dist/contracts/dist/contract-registry/index.js +0 -1
  26. package/dist/contracts/dist/contract-registry/schemas.js +0 -60
  27. package/dist/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  28. package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
  29. package/dist/contracts/dist/docs/index.js +0 -29
  30. package/dist/contracts/dist/docs/presentations.js +0 -71
  31. package/dist/contracts/dist/docs/registry.js +0 -44
  32. package/dist/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  33. package/dist/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  34. package/dist/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  35. package/dist/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  36. package/dist/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  37. package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  38. package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  39. package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
  40. package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  41. package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
  42. package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  43. package/dist/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
  44. package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
  45. package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  46. package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  47. package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
  48. package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
  49. package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  50. package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
  51. package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
  52. package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  53. package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  54. package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  55. package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  56. package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  57. package/dist/contracts/dist/events.js +0 -10
  58. package/dist/contracts/dist/experiments/evaluator.js +0 -1
  59. package/dist/contracts/dist/index.js +0 -71
  60. package/dist/contracts/dist/install.js +0 -2
  61. package/dist/contracts/dist/integrations/contracts.js +0 -377
  62. package/dist/contracts/dist/integrations/index.js +0 -18
  63. package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  64. package/dist/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  65. package/dist/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  66. package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  67. package/dist/contracts/dist/integrations/openbanking/models.js +0 -242
  68. package/dist/contracts/dist/integrations/openbanking/telemetry.js +0 -13
  69. package/dist/contracts/dist/integrations/providers/elevenlabs.js +0 -52
  70. package/dist/contracts/dist/integrations/providers/gcs-storage.js +0 -75
  71. package/dist/contracts/dist/integrations/providers/gmail.js +0 -87
  72. package/dist/contracts/dist/integrations/providers/google-calendar.js +0 -66
  73. package/dist/contracts/dist/integrations/providers/index.js +0 -11
  74. package/dist/contracts/dist/integrations/providers/mistral.js +0 -68
  75. package/dist/contracts/dist/integrations/providers/postmark.js +0 -68
  76. package/dist/contracts/dist/integrations/providers/powens.js +0 -116
  77. package/dist/contracts/dist/integrations/providers/qdrant.js +0 -73
  78. package/dist/contracts/dist/integrations/providers/registry.js +0 -10
  79. package/dist/contracts/dist/integrations/providers/stripe.js +0 -83
  80. package/dist/contracts/dist/integrations/providers/twilio-sms.js +0 -61
  81. package/dist/contracts/dist/jobs/queue.js +0 -33
  82. package/dist/contracts/dist/jsonschema.js +0 -1
  83. package/dist/contracts/dist/knowledge/contracts.js +0 -306
  84. package/dist/contracts/dist/knowledge/index.js +0 -7
  85. package/dist/contracts/dist/knowledge/spaces/email-threads.js +0 -34
  86. package/dist/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
  87. package/dist/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
  88. package/dist/contracts/dist/knowledge/spaces/index.js +0 -6
  89. package/dist/contracts/dist/knowledge/spaces/product-canon.js +0 -34
  90. package/dist/contracts/dist/knowledge/spaces/support-faq.js +0 -37
  91. package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
  92. package/dist/contracts/dist/llm/exporters.js +0 -19
  93. package/dist/contracts/dist/llm/index.js +0 -2
  94. package/dist/contracts/dist/llm/prompts.js +0 -1
  95. package/dist/contracts/dist/onboarding-base.js +0 -196
  96. package/dist/contracts/dist/openapi.js +0 -1
  97. package/dist/contracts/dist/ownership.js +0 -21
  98. package/dist/contracts/dist/presentations.js +0 -1
  99. package/dist/contracts/dist/presentations.v2.js +0 -11
  100. package/dist/contracts/dist/prompt.js +0 -1
  101. package/dist/contracts/dist/promptRegistry.js +0 -1
  102. package/dist/contracts/dist/regenerator/index.js +0 -1
  103. package/dist/contracts/dist/regenerator/service.js +0 -6
  104. package/dist/contracts/dist/registry.js +0 -2
  105. package/dist/contracts/dist/resources.js +0 -1
  106. package/dist/contracts/dist/schema/dist/EnumType.js +0 -2
  107. package/dist/contracts/dist/schema/dist/FieldType.js +0 -49
  108. package/dist/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
  109. package/dist/contracts/dist/schema/dist/SchemaModel.js +0 -34
  110. package/dist/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  111. package/dist/contracts/dist/schema/dist/entity/index.js +0 -2
  112. package/dist/contracts/dist/schema/dist/entity/types.js +0 -1
  113. package/dist/contracts/dist/schema/dist/index.js +0 -6
  114. package/dist/contracts/dist/server/graphql-pothos.js +0 -6
  115. package/dist/contracts/dist/server/index.js +0 -8
  116. package/dist/contracts/dist/server/mcp/createMcpServer.js +0 -4
  117. package/dist/contracts/dist/server/mcp/registerPresentations.js +0 -2
  118. package/dist/contracts/dist/server/mcp/registerPrompts.js +0 -1
  119. package/dist/contracts/dist/server/mcp/registerResources.js +0 -2
  120. package/dist/contracts/dist/server/mcp/registerTools.js +0 -1
  121. package/dist/contracts/dist/server/provider-mcp.js +0 -1
  122. package/dist/contracts/dist/server/rest-elysia.js +0 -1
  123. package/dist/contracts/dist/server/rest-express.js +0 -1
  124. package/dist/contracts/dist/server/rest-generic.js +0 -1
  125. package/dist/contracts/dist/server/rest-next-app.js +0 -1
  126. package/dist/contracts/dist/server/rest-next-pages.js +0 -1
  127. package/dist/contracts/dist/spec.js +0 -34
  128. package/dist/contracts/dist/telemetry/index.js +0 -1
  129. package/dist/contracts/dist/telemetry/tracker.js +0 -1
  130. package/dist/contracts/dist/tests/index.js +0 -1
  131. package/dist/contracts/dist/tests/runner.js +0 -2
  132. package/dist/contracts/dist/workflow/index.js +0 -1
  133. package/dist/contracts/dist/workflow/runner.js +0 -1
  134. package/dist/contracts/index.d.ts +0 -546
  135. package/dist/entities/index.d.ts +0 -144
  136. package/dist/events.d.ts +0 -387
  137. package/dist/handlers/gmail-sync-handler.d.ts +0 -9
  138. package/dist/handlers/index.d.ts +0 -9
  139. package/dist/handlers/ping-job.d.ts +0 -10
  140. package/dist/handlers/storage-document-handler.d.ts +0 -12
  141. package/dist/index.d.ts +0 -24
  142. package/dist/jobs.feature.d.ts +0 -11
  143. package/dist/queue/gcp-cloud-tasks.d.ts +0 -41
  144. package/dist/queue/gcp-pubsub.d.ts +0 -25
  145. package/dist/queue/index.d.ts +0 -15
  146. package/dist/queue/memory-queue.d.ts +0 -34
  147. package/dist/queue/register-defined-job.d.ts +0 -7
  148. package/dist/queue/scaleway-sqs-queue.d.ts +0 -38
  149. package/dist/queue/types.d.ts +0 -7
  150. package/dist/scheduler/index.d.ts +0 -92
  151. package/dist/schema/dist/EnumType.js +0 -2
  152. package/dist/schema/dist/FieldType.js +0 -49
  153. package/dist/schema/dist/ScalarTypeEnum.js +0 -236
  154. package/dist/schema/dist/SchemaModel.js +0 -39
  155. package/dist/schema/dist/entity/defineEntity.js +0 -236
  156. package/dist/schema/dist/entity/index.js +0 -2
  157. package/dist/schema/dist/entity/types.js +0 -1
  158. package/dist/schema/dist/index.js +0 -6
@@ -1,34 +0,0 @@
1
- //#region ../contracts/dist/spec.js
2
- /**
3
- * Helper to define a Command (write operation).
4
- * Sets `kind: 'command'` and defaults `idempotent: false`.
5
- */
6
- const defineCommand = (spec) => ({
7
- ...spec,
8
- meta: {
9
- ...spec.meta,
10
- kind: "command"
11
- },
12
- policy: {
13
- ...spec.policy,
14
- idempotent: spec.policy?.["policy"]?.idempotent ?? false
15
- }
16
- });
17
- /**
18
- * Helper to define a Query (read-only operation).
19
- * Sets `kind: 'query'` and forces `idempotent: true`.
20
- */
21
- const defineQuery = (spec) => ({
22
- ...spec,
23
- meta: {
24
- ...spec.meta,
25
- kind: "query"
26
- },
27
- policy: {
28
- ...spec.policy,
29
- idempotent: true
30
- }
31
- });
32
-
33
- //#endregion
34
- export { defineCommand, defineQuery };
@@ -1 +0,0 @@
1
- import "./tracker.js";
@@ -1 +0,0 @@
1
- import "crypto";
@@ -1 +0,0 @@
1
- import "./runner.js";
@@ -1,2 +0,0 @@
1
- import "../index.js";
2
- import "node:assert";
@@ -1 +0,0 @@
1
- import "./runner.js";
@@ -1 +0,0 @@
1
- import { randomUUID } from "node:crypto";
@@ -1,546 +0,0 @@
1
- import * as _lssm_lib_schema0 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
3
-
4
- //#region src/contracts/index.d.ts
5
- declare const JobModel: _lssm_lib_schema0.SchemaModel<{
6
- id: {
7
- type: _lssm_lib_schema0.FieldType<string, string>;
8
- isOptional: false;
9
- };
10
- type: {
11
- type: _lssm_lib_schema0.FieldType<string, string>;
12
- isOptional: false;
13
- };
14
- version: {
15
- type: _lssm_lib_schema0.FieldType<number, number>;
16
- isOptional: false;
17
- };
18
- payload: {
19
- type: _lssm_lib_schema0.FieldType<unknown, unknown>;
20
- isOptional: false;
21
- };
22
- status: {
23
- type: _lssm_lib_schema0.FieldType<string, string>;
24
- isOptional: false;
25
- };
26
- priority: {
27
- type: _lssm_lib_schema0.FieldType<number, number>;
28
- isOptional: false;
29
- };
30
- attempts: {
31
- type: _lssm_lib_schema0.FieldType<number, number>;
32
- isOptional: false;
33
- };
34
- maxRetries: {
35
- type: _lssm_lib_schema0.FieldType<number, number>;
36
- isOptional: false;
37
- };
38
- createdAt: {
39
- type: _lssm_lib_schema0.FieldType<Date, string>;
40
- isOptional: false;
41
- };
42
- updatedAt: {
43
- type: _lssm_lib_schema0.FieldType<Date, string>;
44
- isOptional: false;
45
- };
46
- scheduledAt: {
47
- type: _lssm_lib_schema0.FieldType<Date, string>;
48
- isOptional: true;
49
- };
50
- startedAt: {
51
- type: _lssm_lib_schema0.FieldType<Date, string>;
52
- isOptional: true;
53
- };
54
- completedAt: {
55
- type: _lssm_lib_schema0.FieldType<Date, string>;
56
- isOptional: true;
57
- };
58
- lastError: {
59
- type: _lssm_lib_schema0.FieldType<string, string>;
60
- isOptional: true;
61
- };
62
- }>;
63
- declare const ScheduledJobModel: _lssm_lib_schema0.SchemaModel<{
64
- id: {
65
- type: _lssm_lib_schema0.FieldType<string, string>;
66
- isOptional: false;
67
- };
68
- name: {
69
- type: _lssm_lib_schema0.FieldType<string, string>;
70
- isOptional: false;
71
- };
72
- description: {
73
- type: _lssm_lib_schema0.FieldType<string, string>;
74
- isOptional: true;
75
- };
76
- cronExpression: {
77
- type: _lssm_lib_schema0.FieldType<string, string>;
78
- isOptional: false;
79
- };
80
- timezone: {
81
- type: _lssm_lib_schema0.FieldType<string, string>;
82
- isOptional: false;
83
- };
84
- jobType: {
85
- type: _lssm_lib_schema0.FieldType<string, string>;
86
- isOptional: false;
87
- };
88
- enabled: {
89
- type: _lssm_lib_schema0.FieldType<boolean, boolean>;
90
- isOptional: false;
91
- };
92
- lastRunAt: {
93
- type: _lssm_lib_schema0.FieldType<Date, string>;
94
- isOptional: true;
95
- };
96
- nextRunAt: {
97
- type: _lssm_lib_schema0.FieldType<Date, string>;
98
- isOptional: true;
99
- };
100
- createdAt: {
101
- type: _lssm_lib_schema0.FieldType<Date, string>;
102
- isOptional: false;
103
- };
104
- }>;
105
- declare const QueueStatsModel: _lssm_lib_schema0.SchemaModel<{
106
- pending: {
107
- type: _lssm_lib_schema0.FieldType<number, number>;
108
- isOptional: false;
109
- };
110
- running: {
111
- type: _lssm_lib_schema0.FieldType<number, number>;
112
- isOptional: false;
113
- };
114
- completed: {
115
- type: _lssm_lib_schema0.FieldType<number, number>;
116
- isOptional: false;
117
- };
118
- failed: {
119
- type: _lssm_lib_schema0.FieldType<number, number>;
120
- isOptional: false;
121
- };
122
- deadLetter: {
123
- type: _lssm_lib_schema0.FieldType<number, number>;
124
- isOptional: false;
125
- };
126
- }>;
127
- /**
128
- * Enqueue a job.
129
- */
130
- declare const EnqueueJobContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
131
- type: {
132
- type: _lssm_lib_schema0.FieldType<string, string>;
133
- isOptional: false;
134
- };
135
- payload: {
136
- type: _lssm_lib_schema0.FieldType<unknown, unknown>;
137
- isOptional: false;
138
- };
139
- delaySeconds: {
140
- type: _lssm_lib_schema0.FieldType<number, number>;
141
- isOptional: true;
142
- };
143
- dedupeKey: {
144
- type: _lssm_lib_schema0.FieldType<string, string>;
145
- isOptional: true;
146
- };
147
- maxRetries: {
148
- type: _lssm_lib_schema0.FieldType<number, number>;
149
- isOptional: true;
150
- };
151
- priority: {
152
- type: _lssm_lib_schema0.FieldType<number, number>;
153
- isOptional: true;
154
- };
155
- timeoutMs: {
156
- type: _lssm_lib_schema0.FieldType<number, number>;
157
- isOptional: true;
158
- };
159
- }>, _lssm_lib_schema0.SchemaModel<{
160
- id: {
161
- type: _lssm_lib_schema0.FieldType<string, string>;
162
- isOptional: false;
163
- };
164
- type: {
165
- type: _lssm_lib_schema0.FieldType<string, string>;
166
- isOptional: false;
167
- };
168
- version: {
169
- type: _lssm_lib_schema0.FieldType<number, number>;
170
- isOptional: false;
171
- };
172
- payload: {
173
- type: _lssm_lib_schema0.FieldType<unknown, unknown>;
174
- isOptional: false;
175
- };
176
- status: {
177
- type: _lssm_lib_schema0.FieldType<string, string>;
178
- isOptional: false;
179
- };
180
- priority: {
181
- type: _lssm_lib_schema0.FieldType<number, number>;
182
- isOptional: false;
183
- };
184
- attempts: {
185
- type: _lssm_lib_schema0.FieldType<number, number>;
186
- isOptional: false;
187
- };
188
- maxRetries: {
189
- type: _lssm_lib_schema0.FieldType<number, number>;
190
- isOptional: false;
191
- };
192
- createdAt: {
193
- type: _lssm_lib_schema0.FieldType<Date, string>;
194
- isOptional: false;
195
- };
196
- updatedAt: {
197
- type: _lssm_lib_schema0.FieldType<Date, string>;
198
- isOptional: false;
199
- };
200
- scheduledAt: {
201
- type: _lssm_lib_schema0.FieldType<Date, string>;
202
- isOptional: true;
203
- };
204
- startedAt: {
205
- type: _lssm_lib_schema0.FieldType<Date, string>;
206
- isOptional: true;
207
- };
208
- completedAt: {
209
- type: _lssm_lib_schema0.FieldType<Date, string>;
210
- isOptional: true;
211
- };
212
- lastError: {
213
- type: _lssm_lib_schema0.FieldType<string, string>;
214
- isOptional: true;
215
- };
216
- }>, {
217
- name: string;
218
- version: number;
219
- when: string;
220
- payload: _lssm_lib_schema0.SchemaModel<{
221
- jobId: {
222
- type: _lssm_lib_schema0.FieldType<string, string>;
223
- isOptional: false;
224
- };
225
- type: {
226
- type: _lssm_lib_schema0.FieldType<string, string>;
227
- isOptional: false;
228
- };
229
- priority: {
230
- type: _lssm_lib_schema0.FieldType<number, number>;
231
- isOptional: false;
232
- };
233
- scheduledAt: {
234
- type: _lssm_lib_schema0.FieldType<Date, string>;
235
- isOptional: true;
236
- };
237
- tenantId: {
238
- type: _lssm_lib_schema0.FieldType<string, string>;
239
- isOptional: true;
240
- };
241
- enqueuedAt: {
242
- type: _lssm_lib_schema0.FieldType<Date, string>;
243
- isOptional: false;
244
- };
245
- }>;
246
- }[]>;
247
- /**
248
- * Get job by ID.
249
- */
250
- declare const GetJobContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
251
- jobId: {
252
- type: _lssm_lib_schema0.FieldType<string, string>;
253
- isOptional: false;
254
- };
255
- }>, _lssm_lib_schema0.SchemaModel<{
256
- id: {
257
- type: _lssm_lib_schema0.FieldType<string, string>;
258
- isOptional: false;
259
- };
260
- type: {
261
- type: _lssm_lib_schema0.FieldType<string, string>;
262
- isOptional: false;
263
- };
264
- version: {
265
- type: _lssm_lib_schema0.FieldType<number, number>;
266
- isOptional: false;
267
- };
268
- payload: {
269
- type: _lssm_lib_schema0.FieldType<unknown, unknown>;
270
- isOptional: false;
271
- };
272
- status: {
273
- type: _lssm_lib_schema0.FieldType<string, string>;
274
- isOptional: false;
275
- };
276
- priority: {
277
- type: _lssm_lib_schema0.FieldType<number, number>;
278
- isOptional: false;
279
- };
280
- attempts: {
281
- type: _lssm_lib_schema0.FieldType<number, number>;
282
- isOptional: false;
283
- };
284
- maxRetries: {
285
- type: _lssm_lib_schema0.FieldType<number, number>;
286
- isOptional: false;
287
- };
288
- createdAt: {
289
- type: _lssm_lib_schema0.FieldType<Date, string>;
290
- isOptional: false;
291
- };
292
- updatedAt: {
293
- type: _lssm_lib_schema0.FieldType<Date, string>;
294
- isOptional: false;
295
- };
296
- scheduledAt: {
297
- type: _lssm_lib_schema0.FieldType<Date, string>;
298
- isOptional: true;
299
- };
300
- startedAt: {
301
- type: _lssm_lib_schema0.FieldType<Date, string>;
302
- isOptional: true;
303
- };
304
- completedAt: {
305
- type: _lssm_lib_schema0.FieldType<Date, string>;
306
- isOptional: true;
307
- };
308
- lastError: {
309
- type: _lssm_lib_schema0.FieldType<string, string>;
310
- isOptional: true;
311
- };
312
- }>, undefined>;
313
- /**
314
- * Cancel a job.
315
- */
316
- declare const CancelJobContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
317
- jobId: {
318
- type: _lssm_lib_schema0.FieldType<string, string>;
319
- isOptional: false;
320
- };
321
- }>, _lssm_lib_schema0.SchemaModel<{
322
- success: {
323
- type: _lssm_lib_schema0.FieldType<boolean, boolean>;
324
- isOptional: false;
325
- };
326
- }>, {
327
- name: string;
328
- version: number;
329
- when: string;
330
- payload: _lssm_lib_schema0.SchemaModel<{
331
- jobId: {
332
- type: _lssm_lib_schema0.FieldType<string, string>;
333
- isOptional: false;
334
- };
335
- }>;
336
- }[]>;
337
- /**
338
- * Get queue statistics.
339
- */
340
- declare const GetQueueStatsContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.AnySchemaModel, _lssm_lib_schema0.SchemaModel<{
341
- pending: {
342
- type: _lssm_lib_schema0.FieldType<number, number>;
343
- isOptional: false;
344
- };
345
- running: {
346
- type: _lssm_lib_schema0.FieldType<number, number>;
347
- isOptional: false;
348
- };
349
- completed: {
350
- type: _lssm_lib_schema0.FieldType<number, number>;
351
- isOptional: false;
352
- };
353
- failed: {
354
- type: _lssm_lib_schema0.FieldType<number, number>;
355
- isOptional: false;
356
- };
357
- deadLetter: {
358
- type: _lssm_lib_schema0.FieldType<number, number>;
359
- isOptional: false;
360
- };
361
- }>, undefined>;
362
- /**
363
- * Create a scheduled job.
364
- */
365
- declare const CreateScheduledJobContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
366
- name: {
367
- type: _lssm_lib_schema0.FieldType<string, string>;
368
- isOptional: false;
369
- };
370
- description: {
371
- type: _lssm_lib_schema0.FieldType<string, string>;
372
- isOptional: true;
373
- };
374
- cronExpression: {
375
- type: _lssm_lib_schema0.FieldType<string, string>;
376
- isOptional: false;
377
- };
378
- timezone: {
379
- type: _lssm_lib_schema0.FieldType<string, string>;
380
- isOptional: true;
381
- };
382
- jobType: {
383
- type: _lssm_lib_schema0.FieldType<string, string>;
384
- isOptional: false;
385
- };
386
- payload: {
387
- type: _lssm_lib_schema0.FieldType<unknown, unknown>;
388
- isOptional: true;
389
- };
390
- maxRetries: {
391
- type: _lssm_lib_schema0.FieldType<number, number>;
392
- isOptional: true;
393
- };
394
- enabled: {
395
- type: _lssm_lib_schema0.FieldType<boolean, boolean>;
396
- isOptional: true;
397
- };
398
- }>, _lssm_lib_schema0.SchemaModel<{
399
- id: {
400
- type: _lssm_lib_schema0.FieldType<string, string>;
401
- isOptional: false;
402
- };
403
- name: {
404
- type: _lssm_lib_schema0.FieldType<string, string>;
405
- isOptional: false;
406
- };
407
- description: {
408
- type: _lssm_lib_schema0.FieldType<string, string>;
409
- isOptional: true;
410
- };
411
- cronExpression: {
412
- type: _lssm_lib_schema0.FieldType<string, string>;
413
- isOptional: false;
414
- };
415
- timezone: {
416
- type: _lssm_lib_schema0.FieldType<string, string>;
417
- isOptional: false;
418
- };
419
- jobType: {
420
- type: _lssm_lib_schema0.FieldType<string, string>;
421
- isOptional: false;
422
- };
423
- enabled: {
424
- type: _lssm_lib_schema0.FieldType<boolean, boolean>;
425
- isOptional: false;
426
- };
427
- lastRunAt: {
428
- type: _lssm_lib_schema0.FieldType<Date, string>;
429
- isOptional: true;
430
- };
431
- nextRunAt: {
432
- type: _lssm_lib_schema0.FieldType<Date, string>;
433
- isOptional: true;
434
- };
435
- createdAt: {
436
- type: _lssm_lib_schema0.FieldType<Date, string>;
437
- isOptional: false;
438
- };
439
- }>, undefined>;
440
- /**
441
- * List scheduled jobs.
442
- */
443
- declare const ListScheduledJobsContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.AnySchemaModel, _lssm_lib_schema0.SchemaModel<{
444
- schedules: {
445
- type: _lssm_lib_schema0.SchemaModel<{
446
- id: {
447
- type: _lssm_lib_schema0.FieldType<string, string>;
448
- isOptional: false;
449
- };
450
- name: {
451
- type: _lssm_lib_schema0.FieldType<string, string>;
452
- isOptional: false;
453
- };
454
- description: {
455
- type: _lssm_lib_schema0.FieldType<string, string>;
456
- isOptional: true;
457
- };
458
- cronExpression: {
459
- type: _lssm_lib_schema0.FieldType<string, string>;
460
- isOptional: false;
461
- };
462
- timezone: {
463
- type: _lssm_lib_schema0.FieldType<string, string>;
464
- isOptional: false;
465
- };
466
- jobType: {
467
- type: _lssm_lib_schema0.FieldType<string, string>;
468
- isOptional: false;
469
- };
470
- enabled: {
471
- type: _lssm_lib_schema0.FieldType<boolean, boolean>;
472
- isOptional: false;
473
- };
474
- lastRunAt: {
475
- type: _lssm_lib_schema0.FieldType<Date, string>;
476
- isOptional: true;
477
- };
478
- nextRunAt: {
479
- type: _lssm_lib_schema0.FieldType<Date, string>;
480
- isOptional: true;
481
- };
482
- createdAt: {
483
- type: _lssm_lib_schema0.FieldType<Date, string>;
484
- isOptional: false;
485
- };
486
- }>;
487
- isArray: true;
488
- isOptional: false;
489
- };
490
- }>, undefined>;
491
- /**
492
- * Toggle scheduled job enabled state.
493
- */
494
- declare const ToggleScheduledJobContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
495
- name: {
496
- type: _lssm_lib_schema0.FieldType<string, string>;
497
- isOptional: false;
498
- };
499
- enabled: {
500
- type: _lssm_lib_schema0.FieldType<boolean, boolean>;
501
- isOptional: false;
502
- };
503
- }>, _lssm_lib_schema0.SchemaModel<{
504
- id: {
505
- type: _lssm_lib_schema0.FieldType<string, string>;
506
- isOptional: false;
507
- };
508
- name: {
509
- type: _lssm_lib_schema0.FieldType<string, string>;
510
- isOptional: false;
511
- };
512
- description: {
513
- type: _lssm_lib_schema0.FieldType<string, string>;
514
- isOptional: true;
515
- };
516
- cronExpression: {
517
- type: _lssm_lib_schema0.FieldType<string, string>;
518
- isOptional: false;
519
- };
520
- timezone: {
521
- type: _lssm_lib_schema0.FieldType<string, string>;
522
- isOptional: false;
523
- };
524
- jobType: {
525
- type: _lssm_lib_schema0.FieldType<string, string>;
526
- isOptional: false;
527
- };
528
- enabled: {
529
- type: _lssm_lib_schema0.FieldType<boolean, boolean>;
530
- isOptional: false;
531
- };
532
- lastRunAt: {
533
- type: _lssm_lib_schema0.FieldType<Date, string>;
534
- isOptional: true;
535
- };
536
- nextRunAt: {
537
- type: _lssm_lib_schema0.FieldType<Date, string>;
538
- isOptional: true;
539
- };
540
- createdAt: {
541
- type: _lssm_lib_schema0.FieldType<Date, string>;
542
- isOptional: false;
543
- };
544
- }>, undefined>;
545
- //#endregion
546
- export { CancelJobContract, CreateScheduledJobContract, EnqueueJobContract, GetJobContract, GetQueueStatsContract, JobModel, ListScheduledJobsContract, QueueStatsModel, ScheduledJobModel, ToggleScheduledJobContract };