@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.
- package/dist/_virtual/rolldown_runtime.js +1 -42
- package/dist/contracts/index.js +1 -484
- package/dist/entities/index.js +1 -198
- package/dist/events.js +1 -303
- package/dist/handlers/gmail-sync-handler.js +1 -9
- package/dist/handlers/index.js +1 -12
- package/dist/handlers/ping-job.js +1 -13
- package/dist/handlers/storage-document-handler.js +1 -14
- package/dist/index.js +1 -18
- package/dist/jobs.feature.js +1 -101
- package/dist/queue/gcp-cloud-tasks.js +1 -61
- package/dist/queue/gcp-pubsub.js +1 -47
- package/dist/queue/index.js +1 -9
- package/dist/queue/memory-queue.js +1 -140
- package/dist/queue/register-defined-job.js +1 -15
- package/dist/queue/scaleway-sqs-queue.js +1 -175
- package/dist/queue/types.js +1 -3
- package/dist/scheduler/index.js +1 -145
- package/package.json +23 -25
- package/dist/contracts/dist/capabilities/openbanking.js +0 -88
- package/dist/contracts/dist/client/index.js +0 -5
- package/dist/contracts/dist/client/react/feature-render.js +0 -2
- package/dist/contracts/dist/client/react/form-render.js +0 -4
- package/dist/contracts/dist/client/react/index.js +0 -4
- package/dist/contracts/dist/contract-registry/index.js +0 -1
- package/dist/contracts/dist/contract-registry/schemas.js +0 -60
- package/dist/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
- package/dist/contracts/dist/docs/index.js +0 -29
- package/dist/contracts/dist/docs/presentations.js +0 -71
- package/dist/contracts/dist/docs/registry.js +0 -44
- package/dist/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
- package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
- package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
- package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
- package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
- package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
- package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
- package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
- package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
- package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
- package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
- package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
- package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
- package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
- package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
- package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
- package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
- package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
- package/dist/contracts/dist/events.js +0 -10
- package/dist/contracts/dist/experiments/evaluator.js +0 -1
- package/dist/contracts/dist/index.js +0 -71
- package/dist/contracts/dist/install.js +0 -2
- package/dist/contracts/dist/integrations/contracts.js +0 -377
- package/dist/contracts/dist/integrations/index.js +0 -18
- package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
- package/dist/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
- package/dist/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
- package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
- package/dist/contracts/dist/integrations/openbanking/models.js +0 -242
- package/dist/contracts/dist/integrations/openbanking/telemetry.js +0 -13
- package/dist/contracts/dist/integrations/providers/elevenlabs.js +0 -52
- package/dist/contracts/dist/integrations/providers/gcs-storage.js +0 -75
- package/dist/contracts/dist/integrations/providers/gmail.js +0 -87
- package/dist/contracts/dist/integrations/providers/google-calendar.js +0 -66
- package/dist/contracts/dist/integrations/providers/index.js +0 -11
- package/dist/contracts/dist/integrations/providers/mistral.js +0 -68
- package/dist/contracts/dist/integrations/providers/postmark.js +0 -68
- package/dist/contracts/dist/integrations/providers/powens.js +0 -116
- package/dist/contracts/dist/integrations/providers/qdrant.js +0 -73
- package/dist/contracts/dist/integrations/providers/registry.js +0 -10
- package/dist/contracts/dist/integrations/providers/stripe.js +0 -83
- package/dist/contracts/dist/integrations/providers/twilio-sms.js +0 -61
- package/dist/contracts/dist/jobs/queue.js +0 -33
- package/dist/contracts/dist/jsonschema.js +0 -1
- package/dist/contracts/dist/knowledge/contracts.js +0 -306
- package/dist/contracts/dist/knowledge/index.js +0 -7
- package/dist/contracts/dist/knowledge/spaces/email-threads.js +0 -34
- package/dist/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
- package/dist/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
- package/dist/contracts/dist/knowledge/spaces/index.js +0 -6
- package/dist/contracts/dist/knowledge/spaces/product-canon.js +0 -34
- package/dist/contracts/dist/knowledge/spaces/support-faq.js +0 -37
- package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
- package/dist/contracts/dist/llm/exporters.js +0 -19
- package/dist/contracts/dist/llm/index.js +0 -2
- package/dist/contracts/dist/llm/prompts.js +0 -1
- package/dist/contracts/dist/onboarding-base.js +0 -196
- package/dist/contracts/dist/openapi.js +0 -1
- package/dist/contracts/dist/ownership.js +0 -21
- package/dist/contracts/dist/presentations.js +0 -1
- package/dist/contracts/dist/presentations.v2.js +0 -11
- package/dist/contracts/dist/prompt.js +0 -1
- package/dist/contracts/dist/promptRegistry.js +0 -1
- package/dist/contracts/dist/regenerator/index.js +0 -1
- package/dist/contracts/dist/regenerator/service.js +0 -6
- package/dist/contracts/dist/registry.js +0 -2
- package/dist/contracts/dist/resources.js +0 -1
- package/dist/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/contracts/dist/schema/dist/SchemaModel.js +0 -34
- package/dist/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/contracts/dist/schema/dist/index.js +0 -6
- package/dist/contracts/dist/server/graphql-pothos.js +0 -6
- package/dist/contracts/dist/server/index.js +0 -8
- package/dist/contracts/dist/server/mcp/createMcpServer.js +0 -4
- package/dist/contracts/dist/server/mcp/registerPresentations.js +0 -2
- package/dist/contracts/dist/server/mcp/registerPrompts.js +0 -1
- package/dist/contracts/dist/server/mcp/registerResources.js +0 -2
- package/dist/contracts/dist/server/mcp/registerTools.js +0 -1
- package/dist/contracts/dist/server/provider-mcp.js +0 -1
- package/dist/contracts/dist/server/rest-elysia.js +0 -1
- package/dist/contracts/dist/server/rest-express.js +0 -1
- package/dist/contracts/dist/server/rest-generic.js +0 -1
- package/dist/contracts/dist/server/rest-next-app.js +0 -1
- package/dist/contracts/dist/server/rest-next-pages.js +0 -1
- package/dist/contracts/dist/spec.js +0 -34
- package/dist/contracts/dist/telemetry/index.js +0 -1
- package/dist/contracts/dist/telemetry/tracker.js +0 -1
- package/dist/contracts/dist/tests/index.js +0 -1
- package/dist/contracts/dist/tests/runner.js +0 -2
- package/dist/contracts/dist/workflow/index.js +0 -1
- package/dist/contracts/dist/workflow/runner.js +0 -1
- package/dist/contracts/index.d.ts +0 -546
- package/dist/entities/index.d.ts +0 -144
- package/dist/events.d.ts +0 -387
- package/dist/handlers/gmail-sync-handler.d.ts +0 -9
- package/dist/handlers/index.d.ts +0 -9
- package/dist/handlers/ping-job.d.ts +0 -10
- package/dist/handlers/storage-document-handler.d.ts +0 -12
- package/dist/index.d.ts +0 -24
- package/dist/jobs.feature.d.ts +0 -11
- package/dist/queue/gcp-cloud-tasks.d.ts +0 -41
- package/dist/queue/gcp-pubsub.d.ts +0 -25
- package/dist/queue/index.d.ts +0 -15
- package/dist/queue/memory-queue.d.ts +0 -34
- package/dist/queue/register-defined-job.d.ts +0 -7
- package/dist/queue/scaleway-sqs-queue.d.ts +0 -38
- package/dist/queue/types.d.ts +0 -7
- package/dist/scheduler/index.d.ts +0 -92
- package/dist/schema/dist/EnumType.js +0 -2
- package/dist/schema/dist/FieldType.js +0 -49
- package/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/schema/dist/SchemaModel.js +0 -39
- package/dist/schema/dist/entity/defineEntity.js +0 -236
- package/dist/schema/dist/entity/index.js +0 -2
- package/dist/schema/dist/entity/types.js +0 -1
- package/dist/schema/dist/index.js +0 -6
package/dist/entities/index.d.ts
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import * as _lssm_lib_schema234 from "@lssm/lib.schema";
|
|
2
|
-
import { ModuleSchemaContribution } from "@lssm/lib.schema";
|
|
3
|
-
|
|
4
|
-
//#region src/entities/index.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Job status enum.
|
|
7
|
-
*/
|
|
8
|
-
declare const JobStatusEnum: _lssm_lib_schema234.EntityEnumDef;
|
|
9
|
-
/**
|
|
10
|
-
* Job entity - represents a single job execution.
|
|
11
|
-
*/
|
|
12
|
-
declare const JobEntity: _lssm_lib_schema234.EntitySpec<{
|
|
13
|
-
id: _lssm_lib_schema234.EntityScalarField;
|
|
14
|
-
type: _lssm_lib_schema234.EntityScalarField;
|
|
15
|
-
version: _lssm_lib_schema234.EntityScalarField;
|
|
16
|
-
payload: _lssm_lib_schema234.EntityScalarField;
|
|
17
|
-
status: _lssm_lib_schema234.EntityEnumField;
|
|
18
|
-
priority: _lssm_lib_schema234.EntityScalarField;
|
|
19
|
-
attempts: _lssm_lib_schema234.EntityScalarField;
|
|
20
|
-
maxRetries: _lssm_lib_schema234.EntityScalarField;
|
|
21
|
-
lastError: _lssm_lib_schema234.EntityScalarField;
|
|
22
|
-
lastErrorStack: _lssm_lib_schema234.EntityScalarField;
|
|
23
|
-
scheduledAt: _lssm_lib_schema234.EntityScalarField;
|
|
24
|
-
startedAt: _lssm_lib_schema234.EntityScalarField;
|
|
25
|
-
completedAt: _lssm_lib_schema234.EntityScalarField;
|
|
26
|
-
timeoutAt: _lssm_lib_schema234.EntityScalarField;
|
|
27
|
-
dedupeKey: _lssm_lib_schema234.EntityScalarField;
|
|
28
|
-
tenantId: _lssm_lib_schema234.EntityScalarField;
|
|
29
|
-
userId: _lssm_lib_schema234.EntityScalarField;
|
|
30
|
-
traceId: _lssm_lib_schema234.EntityScalarField;
|
|
31
|
-
metadata: _lssm_lib_schema234.EntityScalarField;
|
|
32
|
-
result: _lssm_lib_schema234.EntityScalarField;
|
|
33
|
-
createdAt: _lssm_lib_schema234.EntityScalarField;
|
|
34
|
-
updatedAt: _lssm_lib_schema234.EntityScalarField;
|
|
35
|
-
scheduledJob: _lssm_lib_schema234.EntityRelationField;
|
|
36
|
-
scheduledJobId: _lssm_lib_schema234.EntityScalarField;
|
|
37
|
-
executions: _lssm_lib_schema234.EntityRelationField;
|
|
38
|
-
}>;
|
|
39
|
-
/**
|
|
40
|
-
* ScheduledJob entity - recurring job definitions.
|
|
41
|
-
*/
|
|
42
|
-
declare const ScheduledJobEntity: _lssm_lib_schema234.EntitySpec<{
|
|
43
|
-
id: _lssm_lib_schema234.EntityScalarField;
|
|
44
|
-
name: _lssm_lib_schema234.EntityScalarField;
|
|
45
|
-
description: _lssm_lib_schema234.EntityScalarField;
|
|
46
|
-
cronExpression: _lssm_lib_schema234.EntityScalarField;
|
|
47
|
-
timezone: _lssm_lib_schema234.EntityScalarField;
|
|
48
|
-
jobType: _lssm_lib_schema234.EntityScalarField;
|
|
49
|
-
jobVersion: _lssm_lib_schema234.EntityScalarField;
|
|
50
|
-
payload: _lssm_lib_schema234.EntityScalarField;
|
|
51
|
-
maxRetries: _lssm_lib_schema234.EntityScalarField;
|
|
52
|
-
timeoutMs: _lssm_lib_schema234.EntityScalarField;
|
|
53
|
-
enabled: _lssm_lib_schema234.EntityScalarField;
|
|
54
|
-
lastRunAt: _lssm_lib_schema234.EntityScalarField;
|
|
55
|
-
nextRunAt: _lssm_lib_schema234.EntityScalarField;
|
|
56
|
-
tenantId: _lssm_lib_schema234.EntityScalarField;
|
|
57
|
-
createdAt: _lssm_lib_schema234.EntityScalarField;
|
|
58
|
-
updatedAt: _lssm_lib_schema234.EntityScalarField;
|
|
59
|
-
jobs: _lssm_lib_schema234.EntityRelationField;
|
|
60
|
-
}>;
|
|
61
|
-
/**
|
|
62
|
-
* JobExecution entity - individual execution attempts.
|
|
63
|
-
*/
|
|
64
|
-
declare const JobExecutionEntity: _lssm_lib_schema234.EntitySpec<{
|
|
65
|
-
id: _lssm_lib_schema234.EntityScalarField;
|
|
66
|
-
jobId: _lssm_lib_schema234.EntityScalarField;
|
|
67
|
-
attemptNumber: _lssm_lib_schema234.EntityScalarField;
|
|
68
|
-
startedAt: _lssm_lib_schema234.EntityScalarField;
|
|
69
|
-
completedAt: _lssm_lib_schema234.EntityScalarField;
|
|
70
|
-
durationMs: _lssm_lib_schema234.EntityScalarField;
|
|
71
|
-
success: _lssm_lib_schema234.EntityScalarField;
|
|
72
|
-
error: _lssm_lib_schema234.EntityScalarField;
|
|
73
|
-
errorStack: _lssm_lib_schema234.EntityScalarField;
|
|
74
|
-
result: _lssm_lib_schema234.EntityScalarField;
|
|
75
|
-
workerId: _lssm_lib_schema234.EntityScalarField;
|
|
76
|
-
job: _lssm_lib_schema234.EntityRelationField;
|
|
77
|
-
}>;
|
|
78
|
-
/**
|
|
79
|
-
* All job entities for schema composition.
|
|
80
|
-
*/
|
|
81
|
-
declare const jobEntities: (_lssm_lib_schema234.EntitySpec<{
|
|
82
|
-
id: _lssm_lib_schema234.EntityScalarField;
|
|
83
|
-
type: _lssm_lib_schema234.EntityScalarField;
|
|
84
|
-
version: _lssm_lib_schema234.EntityScalarField;
|
|
85
|
-
payload: _lssm_lib_schema234.EntityScalarField;
|
|
86
|
-
status: _lssm_lib_schema234.EntityEnumField;
|
|
87
|
-
priority: _lssm_lib_schema234.EntityScalarField;
|
|
88
|
-
attempts: _lssm_lib_schema234.EntityScalarField;
|
|
89
|
-
maxRetries: _lssm_lib_schema234.EntityScalarField;
|
|
90
|
-
lastError: _lssm_lib_schema234.EntityScalarField;
|
|
91
|
-
lastErrorStack: _lssm_lib_schema234.EntityScalarField;
|
|
92
|
-
scheduledAt: _lssm_lib_schema234.EntityScalarField;
|
|
93
|
-
startedAt: _lssm_lib_schema234.EntityScalarField;
|
|
94
|
-
completedAt: _lssm_lib_schema234.EntityScalarField;
|
|
95
|
-
timeoutAt: _lssm_lib_schema234.EntityScalarField;
|
|
96
|
-
dedupeKey: _lssm_lib_schema234.EntityScalarField;
|
|
97
|
-
tenantId: _lssm_lib_schema234.EntityScalarField;
|
|
98
|
-
userId: _lssm_lib_schema234.EntityScalarField;
|
|
99
|
-
traceId: _lssm_lib_schema234.EntityScalarField;
|
|
100
|
-
metadata: _lssm_lib_schema234.EntityScalarField;
|
|
101
|
-
result: _lssm_lib_schema234.EntityScalarField;
|
|
102
|
-
createdAt: _lssm_lib_schema234.EntityScalarField;
|
|
103
|
-
updatedAt: _lssm_lib_schema234.EntityScalarField;
|
|
104
|
-
scheduledJob: _lssm_lib_schema234.EntityRelationField;
|
|
105
|
-
scheduledJobId: _lssm_lib_schema234.EntityScalarField;
|
|
106
|
-
executions: _lssm_lib_schema234.EntityRelationField;
|
|
107
|
-
}> | _lssm_lib_schema234.EntitySpec<{
|
|
108
|
-
id: _lssm_lib_schema234.EntityScalarField;
|
|
109
|
-
name: _lssm_lib_schema234.EntityScalarField;
|
|
110
|
-
description: _lssm_lib_schema234.EntityScalarField;
|
|
111
|
-
cronExpression: _lssm_lib_schema234.EntityScalarField;
|
|
112
|
-
timezone: _lssm_lib_schema234.EntityScalarField;
|
|
113
|
-
jobType: _lssm_lib_schema234.EntityScalarField;
|
|
114
|
-
jobVersion: _lssm_lib_schema234.EntityScalarField;
|
|
115
|
-
payload: _lssm_lib_schema234.EntityScalarField;
|
|
116
|
-
maxRetries: _lssm_lib_schema234.EntityScalarField;
|
|
117
|
-
timeoutMs: _lssm_lib_schema234.EntityScalarField;
|
|
118
|
-
enabled: _lssm_lib_schema234.EntityScalarField;
|
|
119
|
-
lastRunAt: _lssm_lib_schema234.EntityScalarField;
|
|
120
|
-
nextRunAt: _lssm_lib_schema234.EntityScalarField;
|
|
121
|
-
tenantId: _lssm_lib_schema234.EntityScalarField;
|
|
122
|
-
createdAt: _lssm_lib_schema234.EntityScalarField;
|
|
123
|
-
updatedAt: _lssm_lib_schema234.EntityScalarField;
|
|
124
|
-
jobs: _lssm_lib_schema234.EntityRelationField;
|
|
125
|
-
}> | _lssm_lib_schema234.EntitySpec<{
|
|
126
|
-
id: _lssm_lib_schema234.EntityScalarField;
|
|
127
|
-
jobId: _lssm_lib_schema234.EntityScalarField;
|
|
128
|
-
attemptNumber: _lssm_lib_schema234.EntityScalarField;
|
|
129
|
-
startedAt: _lssm_lib_schema234.EntityScalarField;
|
|
130
|
-
completedAt: _lssm_lib_schema234.EntityScalarField;
|
|
131
|
-
durationMs: _lssm_lib_schema234.EntityScalarField;
|
|
132
|
-
success: _lssm_lib_schema234.EntityScalarField;
|
|
133
|
-
error: _lssm_lib_schema234.EntityScalarField;
|
|
134
|
-
errorStack: _lssm_lib_schema234.EntityScalarField;
|
|
135
|
-
result: _lssm_lib_schema234.EntityScalarField;
|
|
136
|
-
workerId: _lssm_lib_schema234.EntityScalarField;
|
|
137
|
-
job: _lssm_lib_schema234.EntityRelationField;
|
|
138
|
-
}>)[];
|
|
139
|
-
/**
|
|
140
|
-
* Module schema contribution for jobs.
|
|
141
|
-
*/
|
|
142
|
-
declare const jobsSchemaContribution: ModuleSchemaContribution;
|
|
143
|
-
//#endregion
|
|
144
|
-
export { JobEntity, JobExecutionEntity, JobStatusEnum, ScheduledJobEntity, jobEntities, jobsSchemaContribution };
|
package/dist/events.d.ts
DELETED
|
@@ -1,387 +0,0 @@
|
|
|
1
|
-
import * as _lssm_lib_schema138 from "@lssm/lib.schema";
|
|
2
|
-
import * as _lssm_lib_contracts6 from "@lssm/lib.contracts";
|
|
3
|
-
|
|
4
|
-
//#region src/events.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Emitted when a job is enqueued.
|
|
7
|
-
*/
|
|
8
|
-
declare const JobEnqueuedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
9
|
-
jobId: {
|
|
10
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
11
|
-
isOptional: false;
|
|
12
|
-
};
|
|
13
|
-
type: {
|
|
14
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
15
|
-
isOptional: false;
|
|
16
|
-
};
|
|
17
|
-
priority: {
|
|
18
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
19
|
-
isOptional: false;
|
|
20
|
-
};
|
|
21
|
-
scheduledAt: {
|
|
22
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
23
|
-
isOptional: true;
|
|
24
|
-
};
|
|
25
|
-
tenantId: {
|
|
26
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
27
|
-
isOptional: true;
|
|
28
|
-
};
|
|
29
|
-
enqueuedAt: {
|
|
30
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
31
|
-
isOptional: false;
|
|
32
|
-
};
|
|
33
|
-
}>>;
|
|
34
|
-
/**
|
|
35
|
-
* Emitted when a job starts processing.
|
|
36
|
-
*/
|
|
37
|
-
declare const JobStartedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
38
|
-
jobId: {
|
|
39
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
40
|
-
isOptional: false;
|
|
41
|
-
};
|
|
42
|
-
type: {
|
|
43
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
44
|
-
isOptional: false;
|
|
45
|
-
};
|
|
46
|
-
attempt: {
|
|
47
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
48
|
-
isOptional: false;
|
|
49
|
-
};
|
|
50
|
-
startedAt: {
|
|
51
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
52
|
-
isOptional: false;
|
|
53
|
-
};
|
|
54
|
-
}>>;
|
|
55
|
-
/**
|
|
56
|
-
* Emitted when a job completes successfully.
|
|
57
|
-
*/
|
|
58
|
-
declare const JobCompletedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
59
|
-
jobId: {
|
|
60
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
61
|
-
isOptional: false;
|
|
62
|
-
};
|
|
63
|
-
type: {
|
|
64
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
65
|
-
isOptional: false;
|
|
66
|
-
};
|
|
67
|
-
attempt: {
|
|
68
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
69
|
-
isOptional: false;
|
|
70
|
-
};
|
|
71
|
-
durationMs: {
|
|
72
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
73
|
-
isOptional: false;
|
|
74
|
-
};
|
|
75
|
-
completedAt: {
|
|
76
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
77
|
-
isOptional: false;
|
|
78
|
-
};
|
|
79
|
-
}>>;
|
|
80
|
-
/**
|
|
81
|
-
* Emitted when a job fails (single attempt).
|
|
82
|
-
*/
|
|
83
|
-
declare const JobFailedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
84
|
-
jobId: {
|
|
85
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
86
|
-
isOptional: false;
|
|
87
|
-
};
|
|
88
|
-
type: {
|
|
89
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
90
|
-
isOptional: false;
|
|
91
|
-
};
|
|
92
|
-
attempt: {
|
|
93
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
94
|
-
isOptional: false;
|
|
95
|
-
};
|
|
96
|
-
error: {
|
|
97
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
98
|
-
isOptional: false;
|
|
99
|
-
};
|
|
100
|
-
willRetry: {
|
|
101
|
-
type: _lssm_lib_schema138.FieldType<boolean, boolean>;
|
|
102
|
-
isOptional: false;
|
|
103
|
-
};
|
|
104
|
-
failedAt: {
|
|
105
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
106
|
-
isOptional: false;
|
|
107
|
-
};
|
|
108
|
-
}>>;
|
|
109
|
-
/**
|
|
110
|
-
* Emitted when a job is being retried.
|
|
111
|
-
*/
|
|
112
|
-
declare const JobRetryingEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
113
|
-
jobId: {
|
|
114
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
115
|
-
isOptional: false;
|
|
116
|
-
};
|
|
117
|
-
type: {
|
|
118
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
119
|
-
isOptional: false;
|
|
120
|
-
};
|
|
121
|
-
attempt: {
|
|
122
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
123
|
-
isOptional: false;
|
|
124
|
-
};
|
|
125
|
-
nextAttemptAt: {
|
|
126
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
127
|
-
isOptional: false;
|
|
128
|
-
};
|
|
129
|
-
backoffMs: {
|
|
130
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
131
|
-
isOptional: false;
|
|
132
|
-
};
|
|
133
|
-
}>>;
|
|
134
|
-
/**
|
|
135
|
-
* Emitted when a job is moved to dead letter queue.
|
|
136
|
-
*/
|
|
137
|
-
declare const JobDeadLetteredEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
138
|
-
jobId: {
|
|
139
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
140
|
-
isOptional: false;
|
|
141
|
-
};
|
|
142
|
-
type: {
|
|
143
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
144
|
-
isOptional: false;
|
|
145
|
-
};
|
|
146
|
-
attempts: {
|
|
147
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
148
|
-
isOptional: false;
|
|
149
|
-
};
|
|
150
|
-
lastError: {
|
|
151
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
152
|
-
isOptional: false;
|
|
153
|
-
};
|
|
154
|
-
deadLetteredAt: {
|
|
155
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
156
|
-
isOptional: false;
|
|
157
|
-
};
|
|
158
|
-
}>>;
|
|
159
|
-
/**
|
|
160
|
-
* Emitted when a job is cancelled.
|
|
161
|
-
*/
|
|
162
|
-
declare const JobCancelledEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
163
|
-
jobId: {
|
|
164
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
165
|
-
isOptional: false;
|
|
166
|
-
};
|
|
167
|
-
type: {
|
|
168
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
169
|
-
isOptional: false;
|
|
170
|
-
};
|
|
171
|
-
cancelledBy: {
|
|
172
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
173
|
-
isOptional: true;
|
|
174
|
-
};
|
|
175
|
-
cancelledAt: {
|
|
176
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
177
|
-
isOptional: false;
|
|
178
|
-
};
|
|
179
|
-
}>>;
|
|
180
|
-
/**
|
|
181
|
-
* Emitted when a scheduled job is triggered.
|
|
182
|
-
*/
|
|
183
|
-
declare const ScheduledJobTriggeredEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
184
|
-
scheduleName: {
|
|
185
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
186
|
-
isOptional: false;
|
|
187
|
-
};
|
|
188
|
-
jobId: {
|
|
189
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
190
|
-
isOptional: false;
|
|
191
|
-
};
|
|
192
|
-
jobType: {
|
|
193
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
194
|
-
isOptional: false;
|
|
195
|
-
};
|
|
196
|
-
triggeredAt: {
|
|
197
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
198
|
-
isOptional: false;
|
|
199
|
-
};
|
|
200
|
-
nextRunAt: {
|
|
201
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
202
|
-
isOptional: true;
|
|
203
|
-
};
|
|
204
|
-
}>>;
|
|
205
|
-
/**
|
|
206
|
-
* All job events.
|
|
207
|
-
*/
|
|
208
|
-
declare const JobEvents: {
|
|
209
|
-
JobEnqueuedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
210
|
-
jobId: {
|
|
211
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
212
|
-
isOptional: false;
|
|
213
|
-
};
|
|
214
|
-
type: {
|
|
215
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
216
|
-
isOptional: false;
|
|
217
|
-
};
|
|
218
|
-
priority: {
|
|
219
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
220
|
-
isOptional: false;
|
|
221
|
-
};
|
|
222
|
-
scheduledAt: {
|
|
223
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
224
|
-
isOptional: true;
|
|
225
|
-
};
|
|
226
|
-
tenantId: {
|
|
227
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
228
|
-
isOptional: true;
|
|
229
|
-
};
|
|
230
|
-
enqueuedAt: {
|
|
231
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
232
|
-
isOptional: false;
|
|
233
|
-
};
|
|
234
|
-
}>>;
|
|
235
|
-
JobStartedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
236
|
-
jobId: {
|
|
237
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
238
|
-
isOptional: false;
|
|
239
|
-
};
|
|
240
|
-
type: {
|
|
241
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
242
|
-
isOptional: false;
|
|
243
|
-
};
|
|
244
|
-
attempt: {
|
|
245
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
246
|
-
isOptional: false;
|
|
247
|
-
};
|
|
248
|
-
startedAt: {
|
|
249
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
250
|
-
isOptional: false;
|
|
251
|
-
};
|
|
252
|
-
}>>;
|
|
253
|
-
JobCompletedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
254
|
-
jobId: {
|
|
255
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
256
|
-
isOptional: false;
|
|
257
|
-
};
|
|
258
|
-
type: {
|
|
259
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
260
|
-
isOptional: false;
|
|
261
|
-
};
|
|
262
|
-
attempt: {
|
|
263
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
264
|
-
isOptional: false;
|
|
265
|
-
};
|
|
266
|
-
durationMs: {
|
|
267
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
268
|
-
isOptional: false;
|
|
269
|
-
};
|
|
270
|
-
completedAt: {
|
|
271
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
272
|
-
isOptional: false;
|
|
273
|
-
};
|
|
274
|
-
}>>;
|
|
275
|
-
JobFailedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
276
|
-
jobId: {
|
|
277
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
278
|
-
isOptional: false;
|
|
279
|
-
};
|
|
280
|
-
type: {
|
|
281
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
282
|
-
isOptional: false;
|
|
283
|
-
};
|
|
284
|
-
attempt: {
|
|
285
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
286
|
-
isOptional: false;
|
|
287
|
-
};
|
|
288
|
-
error: {
|
|
289
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
290
|
-
isOptional: false;
|
|
291
|
-
};
|
|
292
|
-
willRetry: {
|
|
293
|
-
type: _lssm_lib_schema138.FieldType<boolean, boolean>;
|
|
294
|
-
isOptional: false;
|
|
295
|
-
};
|
|
296
|
-
failedAt: {
|
|
297
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
298
|
-
isOptional: false;
|
|
299
|
-
};
|
|
300
|
-
}>>;
|
|
301
|
-
JobRetryingEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
302
|
-
jobId: {
|
|
303
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
304
|
-
isOptional: false;
|
|
305
|
-
};
|
|
306
|
-
type: {
|
|
307
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
308
|
-
isOptional: false;
|
|
309
|
-
};
|
|
310
|
-
attempt: {
|
|
311
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
312
|
-
isOptional: false;
|
|
313
|
-
};
|
|
314
|
-
nextAttemptAt: {
|
|
315
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
316
|
-
isOptional: false;
|
|
317
|
-
};
|
|
318
|
-
backoffMs: {
|
|
319
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
320
|
-
isOptional: false;
|
|
321
|
-
};
|
|
322
|
-
}>>;
|
|
323
|
-
JobDeadLetteredEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
324
|
-
jobId: {
|
|
325
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
326
|
-
isOptional: false;
|
|
327
|
-
};
|
|
328
|
-
type: {
|
|
329
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
330
|
-
isOptional: false;
|
|
331
|
-
};
|
|
332
|
-
attempts: {
|
|
333
|
-
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
334
|
-
isOptional: false;
|
|
335
|
-
};
|
|
336
|
-
lastError: {
|
|
337
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
338
|
-
isOptional: false;
|
|
339
|
-
};
|
|
340
|
-
deadLetteredAt: {
|
|
341
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
342
|
-
isOptional: false;
|
|
343
|
-
};
|
|
344
|
-
}>>;
|
|
345
|
-
JobCancelledEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
346
|
-
jobId: {
|
|
347
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
348
|
-
isOptional: false;
|
|
349
|
-
};
|
|
350
|
-
type: {
|
|
351
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
352
|
-
isOptional: false;
|
|
353
|
-
};
|
|
354
|
-
cancelledBy: {
|
|
355
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
356
|
-
isOptional: true;
|
|
357
|
-
};
|
|
358
|
-
cancelledAt: {
|
|
359
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
360
|
-
isOptional: false;
|
|
361
|
-
};
|
|
362
|
-
}>>;
|
|
363
|
-
ScheduledJobTriggeredEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
364
|
-
scheduleName: {
|
|
365
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
366
|
-
isOptional: false;
|
|
367
|
-
};
|
|
368
|
-
jobId: {
|
|
369
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
370
|
-
isOptional: false;
|
|
371
|
-
};
|
|
372
|
-
jobType: {
|
|
373
|
-
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
374
|
-
isOptional: false;
|
|
375
|
-
};
|
|
376
|
-
triggeredAt: {
|
|
377
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
378
|
-
isOptional: false;
|
|
379
|
-
};
|
|
380
|
-
nextRunAt: {
|
|
381
|
-
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
382
|
-
isOptional: true;
|
|
383
|
-
};
|
|
384
|
-
}>>;
|
|
385
|
-
};
|
|
386
|
-
//#endregion
|
|
387
|
-
export { JobCancelledEvent, JobCompletedEvent, JobDeadLetteredEvent, JobEnqueuedEvent, JobEvents, JobFailedEvent, JobRetryingEvent, JobStartedEvent, ScheduledJobTriggeredEvent };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { JobHandler } from "@lssm/lib.contracts/jobs/queue";
|
|
2
|
-
import { GmailIngestionAdapter } from "@lssm/lib.knowledge/ingestion/gmail-adapter";
|
|
3
|
-
import { EmailThreadListQuery } from "@lssm/lib.contracts/integrations/providers/email";
|
|
4
|
-
|
|
5
|
-
//#region src/handlers/gmail-sync-handler.d.ts
|
|
6
|
-
interface GmailSyncJobPayload extends EmailThreadListQuery {}
|
|
7
|
-
declare function createGmailSyncHandler(adapter: GmailIngestionAdapter): JobHandler<GmailSyncJobPayload>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { GmailSyncJobPayload, createGmailSyncHandler };
|
package/dist/handlers/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { GmailSyncJobPayload, createGmailSyncHandler } from "./gmail-sync-handler.js";
|
|
2
|
-
import { PING_JOB_TYPE, PingPayload, PingPayloadSchema, pingJob } from "./ping-job.js";
|
|
3
|
-
import { StorageDocumentJobPayload, createStorageDocumentHandler } from "./storage-document-handler.js";
|
|
4
|
-
import { JobQueue } from "@lssm/lib.contracts/jobs/queue";
|
|
5
|
-
|
|
6
|
-
//#region src/handlers/index.d.ts
|
|
7
|
-
declare function registerAllJobs(queue: JobQueue): void;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { GmailSyncJobPayload, PING_JOB_TYPE, PingPayload, PingPayloadSchema, StorageDocumentJobPayload, createGmailSyncHandler, createStorageDocumentHandler, pingJob, registerAllJobs };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as z$1 from "zod";
|
|
2
|
-
import { DefinedJob } from "@lssm/lib.contracts/jobs/define-job";
|
|
3
|
-
|
|
4
|
-
//#region src/handlers/ping-job.d.ts
|
|
5
|
-
declare const PING_JOB_TYPE: "core.ping";
|
|
6
|
-
declare const PingPayloadSchema: z$1.ZodObject<{}, z$1.core.$strip>;
|
|
7
|
-
type PingPayload = z$1.infer<typeof PingPayloadSchema>;
|
|
8
|
-
declare const pingJob: DefinedJob<PingPayload>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { PING_JOB_TYPE, PingPayload, PingPayloadSchema, pingJob };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { JobHandler } from "@lssm/lib.contracts/jobs/queue";
|
|
2
|
-
import { ObjectStorageProvider } from "@lssm/lib.contracts/integrations/providers/storage";
|
|
3
|
-
import { StorageIngestionAdapter } from "@lssm/lib.knowledge/ingestion/storage-adapter";
|
|
4
|
-
|
|
5
|
-
//#region src/handlers/storage-document-handler.d.ts
|
|
6
|
-
interface StorageDocumentJobPayload {
|
|
7
|
-
bucket: string;
|
|
8
|
-
key: string;
|
|
9
|
-
}
|
|
10
|
-
declare function createStorageDocumentHandler(storage: ObjectStorageProvider, adapter: StorageIngestionAdapter): JobHandler<StorageDocumentJobPayload>;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { StorageDocumentJobPayload, createStorageDocumentHandler };
|
package/dist/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { __export, __reExport } from "./_virtual/rolldown_runtime.js";
|
|
2
|
-
import { CancelJobContract, CreateScheduledJobContract, EnqueueJobContract, GetJobContract, GetQueueStatsContract, JobModel, ListScheduledJobsContract, QueueStatsModel, ScheduledJobModel, ToggleScheduledJobContract } from "./contracts/index.js";
|
|
3
|
-
import { JobEntity, JobExecutionEntity, JobStatusEnum, ScheduledJobEntity, jobEntities, jobsSchemaContribution } from "./entities/index.js";
|
|
4
|
-
import { JobCancelledEvent, JobCompletedEvent, JobDeadLetteredEvent, JobEnqueuedEvent, JobEvents, JobFailedEvent, JobRetryingEvent, JobStartedEvent, ScheduledJobTriggeredEvent } from "./events.js";
|
|
5
|
-
import { GmailSyncJobPayload, createGmailSyncHandler } from "./handlers/gmail-sync-handler.js";
|
|
6
|
-
import { PING_JOB_TYPE, PingPayload, PingPayloadSchema, pingJob } from "./handlers/ping-job.js";
|
|
7
|
-
import { StorageDocumentJobPayload, createStorageDocumentHandler } from "./handlers/storage-document-handler.js";
|
|
8
|
-
import { registerAllJobs } from "./handlers/index.js";
|
|
9
|
-
import { MemoryJobQueue, MemoryQueueOptions } from "./queue/memory-queue.js";
|
|
10
|
-
import { ScalewaySqsJobQueue, ScalewaySqsQueueConfig, ScalewaySqsQueueCredentials } from "./queue/scaleway-sqs-queue.js";
|
|
11
|
-
import { GcpCloudTasksQueue, GcpCloudTasksQueueOptions } from "./queue/gcp-cloud-tasks.js";
|
|
12
|
-
import { GcpPubSubQueue, GcpPubSubQueueOptions } from "./queue/gcp-pubsub.js";
|
|
13
|
-
import { registerDefinedJob } from "./queue/register-defined-job.js";
|
|
14
|
-
import { index_d_exports as index_d_exports$1 } from "./queue/index.js";
|
|
15
|
-
import { ActiveSchedule, JobScheduler, ScheduledJobConfig, createScheduler, defineSchedule } from "./scheduler/index.js";
|
|
16
|
-
import { JobsFeature } from "./jobs.feature.js";
|
|
17
|
-
export * from "@lssm/lib.contracts/jobs/queue";
|
|
18
|
-
|
|
19
|
-
//#region src/index.d.ts
|
|
20
|
-
declare namespace index_d_exports {
|
|
21
|
-
export { ActiveSchedule, CancelJobContract, CreateScheduledJobContract, EnqueueJobContract, GcpCloudTasksQueue, GcpCloudTasksQueueOptions, GcpPubSubQueue, GcpPubSubQueueOptions, GetJobContract, GetQueueStatsContract, GmailSyncJobPayload, JobCancelledEvent, JobCompletedEvent, JobDeadLetteredEvent, JobEnqueuedEvent, JobEntity, JobEvents, JobExecutionEntity, JobFailedEvent, JobModel, JobRetryingEvent, JobScheduler, JobStartedEvent, JobStatusEnum, JobsFeature, ListScheduledJobsContract, MemoryJobQueue, MemoryQueueOptions, PING_JOB_TYPE, PingPayload, PingPayloadSchema, QueueStatsModel, ScalewaySqsJobQueue, ScalewaySqsQueueConfig, ScalewaySqsQueueCredentials, ScheduledJobConfig, ScheduledJobEntity, ScheduledJobModel, ScheduledJobTriggeredEvent, StorageDocumentJobPayload, ToggleScheduledJobContract, createGmailSyncHandler, createScheduler, createStorageDocumentHandler, defineSchedule, jobEntities, jobsSchemaContribution, pingJob, registerAllJobs, registerDefinedJob };
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { ActiveSchedule, CancelJobContract, CreateScheduledJobContract, EnqueueJobContract, GcpCloudTasksQueue, GcpCloudTasksQueueOptions, GcpPubSubQueue, GcpPubSubQueueOptions, GetJobContract, GetQueueStatsContract, GmailSyncJobPayload, JobCancelledEvent, JobCompletedEvent, JobDeadLetteredEvent, JobEnqueuedEvent, JobEntity, JobEvents, JobExecutionEntity, JobFailedEvent, JobModel, JobRetryingEvent, JobScheduler, JobStartedEvent, JobStatusEnum, JobsFeature, ListScheduledJobsContract, MemoryJobQueue, MemoryQueueOptions, PING_JOB_TYPE, PingPayload, PingPayloadSchema, QueueStatsModel, ScalewaySqsJobQueue, ScalewaySqsQueueConfig, ScalewaySqsQueueCredentials, ScheduledJobConfig, ScheduledJobEntity, ScheduledJobModel, ScheduledJobTriggeredEvent, StorageDocumentJobPayload, ToggleScheduledJobContract, createGmailSyncHandler, createScheduler, createStorageDocumentHandler, defineSchedule, jobEntities, jobsSchemaContribution, pingJob, registerAllJobs, registerDefinedJob };
|
package/dist/jobs.feature.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FeatureModuleSpec } from "@lssm/lib.contracts";
|
|
2
|
-
|
|
3
|
-
//#region src/jobs.feature.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Jobs feature module that bundles job queue management,
|
|
7
|
-
* background processing, and scheduled task capabilities.
|
|
8
|
-
*/
|
|
9
|
-
declare const JobsFeature: FeatureModuleSpec;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { JobsFeature };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { types_d_exports } from "./types.js";
|
|
2
|
-
|
|
3
|
-
//#region src/queue/gcp-cloud-tasks.d.ts
|
|
4
|
-
interface CloudTasksClientLike {
|
|
5
|
-
createTask(request: {
|
|
6
|
-
parent: string;
|
|
7
|
-
task: {
|
|
8
|
-
httpRequest: {
|
|
9
|
-
httpMethod: number | string;
|
|
10
|
-
url: string;
|
|
11
|
-
body: Buffer;
|
|
12
|
-
headers?: Record<string, string>;
|
|
13
|
-
oidcToken?: {
|
|
14
|
-
serviceAccountEmail: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
scheduleTime?: {
|
|
18
|
-
seconds: number;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
}): Promise<unknown>;
|
|
22
|
-
}
|
|
23
|
-
interface GcpCloudTasksQueueOptions {
|
|
24
|
-
client: CloudTasksClientLike;
|
|
25
|
-
projectId: string;
|
|
26
|
-
location: string;
|
|
27
|
-
queue: string;
|
|
28
|
-
resolveUrl(jobType: string): string;
|
|
29
|
-
serviceAccountEmail?: string;
|
|
30
|
-
}
|
|
31
|
-
declare class GcpCloudTasksQueue implements types_d_exports.JobQueue {
|
|
32
|
-
private readonly options;
|
|
33
|
-
private readonly handlers;
|
|
34
|
-
constructor(options: GcpCloudTasksQueueOptions);
|
|
35
|
-
enqueue<TPayload>(jobType: string, payload: TPayload, options?: types_d_exports.EnqueueOptions): Promise<types_d_exports.Job<TPayload>>;
|
|
36
|
-
register<TPayload, TResult = void>(jobType: string, handler: types_d_exports.JobHandler<TPayload, TResult>): void;
|
|
37
|
-
start(): void;
|
|
38
|
-
stop(): Promise<void>;
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
export { GcpCloudTasksQueue, GcpCloudTasksQueueOptions };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { types_d_exports } from "./types.js";
|
|
2
|
-
|
|
3
|
-
//#region src/queue/gcp-pubsub.d.ts
|
|
4
|
-
interface PubSubClientLike {
|
|
5
|
-
topic(name: string): {
|
|
6
|
-
publishMessage(message: {
|
|
7
|
-
data: Buffer;
|
|
8
|
-
}): Promise<string>;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
interface GcpPubSubQueueOptions {
|
|
12
|
-
client: PubSubClientLike;
|
|
13
|
-
topicName: string;
|
|
14
|
-
}
|
|
15
|
-
declare class GcpPubSubQueue implements types_d_exports.JobQueue {
|
|
16
|
-
private readonly options;
|
|
17
|
-
private readonly handlers;
|
|
18
|
-
constructor(options: GcpPubSubQueueOptions);
|
|
19
|
-
enqueue<TPayload>(jobType: string, payload: TPayload, options?: types_d_exports.EnqueueOptions): Promise<types_d_exports.Job<TPayload>>;
|
|
20
|
-
register<TPayload, TResult = void>(jobType: string, handler: types_d_exports.JobHandler<TPayload, TResult>): void;
|
|
21
|
-
start(): void;
|
|
22
|
-
stop(): Promise<void>;
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
export { GcpPubSubQueue, GcpPubSubQueueOptions };
|