@lssm/lib.jobs 0.0.0-canary-20251216035145 → 0.0.0-canary-20251216062412

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/index.js CHANGED
@@ -1 +1 @@
1
- import{__export as e,__reExport as t}from"./_virtual/rolldown_runtime.js";import{JobCancelledEvent as n,JobCompletedEvent as r,JobDeadLetteredEvent as i,JobEnqueuedEvent as a,JobEvents as o,JobFailedEvent as s,JobRetryingEvent as c,JobStartedEvent as l,ScheduledJobTriggeredEvent as u}from"./events.js";import{JobEntity as d,JobExecutionEntity as f,JobStatusEnum as p,ScheduledJobEntity as m,jobEntities as h,jobsSchemaContribution as g}from"./entities/index.js";import{MemoryJobQueue as _}from"./queue/memory-queue.js";import{ScalewaySqsJobQueue as v}from"./queue/scaleway-sqs-queue.js";import{GcpCloudTasksQueue as y}from"./queue/gcp-cloud-tasks.js";import{GcpPubSubQueue as b}from"./queue/gcp-pubsub.js";import{registerDefinedJob as x}from"./queue/register-defined-job.js";import{queue_exports as S}from"./queue/index.js";import{PING_JOB_TYPE as C,PingPayloadSchema as w,pingJob as T}from"./handlers/ping-job.js";import{createGmailSyncHandler as E}from"./handlers/gmail-sync-handler.js";import{createStorageDocumentHandler as D}from"./handlers/storage-document-handler.js";import{registerAllJobs as O}from"./handlers/index.js";import{JobScheduler as k,createScheduler as A,defineSchedule as j}from"./scheduler/index.js";import{CancelJobContract as M,CreateScheduledJobContract as N,EnqueueJobContract as P,GetJobContract as F,GetQueueStatsContract as I,JobModel as L,ListScheduledJobsContract as R,QueueStatsModel as z,ScheduledJobModel as B,ToggleScheduledJobContract as V}from"./contracts/index.js";export*from"@lssm/lib.contracts/jobs/queue";t(e({CancelJobContract:()=>M,CreateScheduledJobContract:()=>N,EnqueueJobContract:()=>P,GcpCloudTasksQueue:()=>y,GcpPubSubQueue:()=>b,GetJobContract:()=>F,GetQueueStatsContract:()=>I,JobCancelledEvent:()=>n,JobCompletedEvent:()=>r,JobDeadLetteredEvent:()=>i,JobEnqueuedEvent:()=>a,JobEntity:()=>d,JobEvents:()=>o,JobExecutionEntity:()=>f,JobFailedEvent:()=>s,JobModel:()=>L,JobRetryingEvent:()=>c,JobScheduler:()=>k,JobStartedEvent:()=>l,JobStatusEnum:()=>p,ListScheduledJobsContract:()=>R,MemoryJobQueue:()=>_,PING_JOB_TYPE:()=>C,PingPayloadSchema:()=>w,QueueStatsModel:()=>z,ScalewaySqsJobQueue:()=>v,ScheduledJobEntity:()=>m,ScheduledJobModel:()=>B,ScheduledJobTriggeredEvent:()=>u,ToggleScheduledJobContract:()=>V,createGmailSyncHandler:()=>E,createScheduler:()=>A,createStorageDocumentHandler:()=>D,defineSchedule:()=>j,jobEntities:()=>h,jobsSchemaContribution:()=>g,pingJob:()=>T,registerAllJobs:()=>O,registerDefinedJob:()=>x}),S);export{M as CancelJobContract,N as CreateScheduledJobContract,P as EnqueueJobContract,y as GcpCloudTasksQueue,b as GcpPubSubQueue,F as GetJobContract,I as GetQueueStatsContract,n as JobCancelledEvent,r as JobCompletedEvent,i as JobDeadLetteredEvent,a as JobEnqueuedEvent,d as JobEntity,o as JobEvents,f as JobExecutionEntity,s as JobFailedEvent,L as JobModel,c as JobRetryingEvent,k as JobScheduler,l as JobStartedEvent,p as JobStatusEnum,R as ListScheduledJobsContract,_ as MemoryJobQueue,C as PING_JOB_TYPE,w as PingPayloadSchema,z as QueueStatsModel,v as ScalewaySqsJobQueue,m as ScheduledJobEntity,B as ScheduledJobModel,u as ScheduledJobTriggeredEvent,V as ToggleScheduledJobContract,E as createGmailSyncHandler,A as createScheduler,D as createStorageDocumentHandler,j as defineSchedule,h as jobEntities,g as jobsSchemaContribution,T as pingJob,O as registerAllJobs,x as registerDefinedJob};
1
+ import{__export as e,__reExport as t}from"./_virtual/rolldown_runtime.js";import{JobCancelledEvent as n,JobCompletedEvent as r,JobDeadLetteredEvent as i,JobEnqueuedEvent as a,JobEvents as o,JobFailedEvent as s,JobRetryingEvent as c,JobStartedEvent as l,ScheduledJobTriggeredEvent as u}from"./events.js";import{JobEntity as d,JobExecutionEntity as f,JobStatusEnum as p,ScheduledJobEntity as m,jobEntities as h,jobsSchemaContribution as g}from"./entities/index.js";import{MemoryJobQueue as _}from"./queue/memory-queue.js";import{ScalewaySqsJobQueue as v}from"./queue/scaleway-sqs-queue.js";import{GcpCloudTasksQueue as y}from"./queue/gcp-cloud-tasks.js";import{GcpPubSubQueue as b}from"./queue/gcp-pubsub.js";import{registerDefinedJob as x}from"./queue/register-defined-job.js";import{queue_exports as S}from"./queue/index.js";import{PING_JOB_TYPE as C,PingPayloadSchema as w,pingJob as T}from"./handlers/ping-job.js";import{createGmailSyncHandler as E}from"./handlers/gmail-sync-handler.js";import{createStorageDocumentHandler as D}from"./handlers/storage-document-handler.js";import{registerAllJobs as O}from"./handlers/index.js";import{JobScheduler as k,createScheduler as A,defineSchedule as j}from"./scheduler/index.js";import{CancelJobContract as M,CreateScheduledJobContract as N,EnqueueJobContract as P,GetJobContract as F,GetQueueStatsContract as I,JobModel as L,ListScheduledJobsContract as R,QueueStatsModel as z,ScheduledJobModel as B,ToggleScheduledJobContract as V}from"./contracts/index.js";import{JobsFeature as H}from"./jobs.feature.js";export*from"@lssm/lib.contracts/jobs/queue";t(e({CancelJobContract:()=>M,CreateScheduledJobContract:()=>N,EnqueueJobContract:()=>P,GcpCloudTasksQueue:()=>y,GcpPubSubQueue:()=>b,GetJobContract:()=>F,GetQueueStatsContract:()=>I,JobCancelledEvent:()=>n,JobCompletedEvent:()=>r,JobDeadLetteredEvent:()=>i,JobEnqueuedEvent:()=>a,JobEntity:()=>d,JobEvents:()=>o,JobExecutionEntity:()=>f,JobFailedEvent:()=>s,JobModel:()=>L,JobRetryingEvent:()=>c,JobScheduler:()=>k,JobStartedEvent:()=>l,JobStatusEnum:()=>p,JobsFeature:()=>H,ListScheduledJobsContract:()=>R,MemoryJobQueue:()=>_,PING_JOB_TYPE:()=>C,PingPayloadSchema:()=>w,QueueStatsModel:()=>z,ScalewaySqsJobQueue:()=>v,ScheduledJobEntity:()=>m,ScheduledJobModel:()=>B,ScheduledJobTriggeredEvent:()=>u,ToggleScheduledJobContract:()=>V,createGmailSyncHandler:()=>E,createScheduler:()=>A,createStorageDocumentHandler:()=>D,defineSchedule:()=>j,jobEntities:()=>h,jobsSchemaContribution:()=>g,pingJob:()=>T,registerAllJobs:()=>O,registerDefinedJob:()=>x}),S);export{M as CancelJobContract,N as CreateScheduledJobContract,P as EnqueueJobContract,y as GcpCloudTasksQueue,b as GcpPubSubQueue,F as GetJobContract,I as GetQueueStatsContract,n as JobCancelledEvent,r as JobCompletedEvent,i as JobDeadLetteredEvent,a as JobEnqueuedEvent,d as JobEntity,o as JobEvents,f as JobExecutionEntity,s as JobFailedEvent,L as JobModel,c as JobRetryingEvent,k as JobScheduler,l as JobStartedEvent,p as JobStatusEnum,H as JobsFeature,R as ListScheduledJobsContract,_ as MemoryJobQueue,C as PING_JOB_TYPE,w as PingPayloadSchema,z as QueueStatsModel,v as ScalewaySqsJobQueue,m as ScheduledJobEntity,B as ScheduledJobModel,u as ScheduledJobTriggeredEvent,V as ToggleScheduledJobContract,E as createGmailSyncHandler,A as createScheduler,D as createStorageDocumentHandler,j as defineSchedule,h as jobEntities,g as jobsSchemaContribution,T as pingJob,O as registerAllJobs,x as registerDefinedJob};
@@ -0,0 +1 @@
1
+ const e={meta:{key:`jobs`,title:`Background Jobs`,description:`Background job processing, scheduling, and queue management`,domain:`platform`,owners:[`@platform.jobs`],tags:[`jobs`,`queue`,`background`,`scheduler`],stability:`stable`},operations:[{name:`jobs.enqueue`,version:1},{name:`jobs.cancel`,version:1},{name:`jobs.get`,version:1},{name:`jobs.stats`,version:1},{name:`jobs.schedule.create`,version:1},{name:`jobs.schedule.toggle`,version:1},{name:`jobs.schedule.list`,version:1}],events:[{name:`job.enqueued`,version:1},{name:`job.started`,version:1},{name:`job.completed`,version:1},{name:`job.failed`,version:1},{name:`job.retrying`,version:1},{name:`job.dead_lettered`,version:1},{name:`job.cancelled`,version:1},{name:`scheduler.job_triggered`,version:1}],presentations:[],opToPresentation:[],presentationsTargets:[],capabilities:{provides:[{key:`jobs`,version:1},{key:`scheduler`,version:1}],requires:[]}};export{e as JobsFeature};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/lib.jobs",
3
- "version": "0.0.0-canary-20251216035145",
3
+ "version": "0.0.0-canary-20251216062412",
4
4
  "description": "Background jobs and scheduler module for ContractSpec applications",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -38,6 +38,7 @@
38
38
  "./handlers/gmail-sync-handler": "./src/handlers/gmail-sync-handler.ts",
39
39
  "./handlers/ping-job": "./src/handlers/ping-job.ts",
40
40
  "./handlers/storage-document-handler": "./src/handlers/storage-document-handler.ts",
41
+ "./jobs.feature": "./src/jobs.feature.ts",
41
42
  "./queue": "./src/queue/index.ts",
42
43
  "./queue/gcp-cloud-tasks": "./src/queue/gcp-cloud-tasks.ts",
43
44
  "./queue/gcp-pubsub": "./src/queue/gcp-pubsub.ts",
@@ -64,6 +65,7 @@
64
65
  "./handlers/gmail-sync-handler": "./dist/handlers/gmail-sync-handler.js",
65
66
  "./handlers/ping-job": "./dist/handlers/ping-job.js",
66
67
  "./handlers/storage-document-handler": "./dist/handlers/storage-document-handler.js",
68
+ "./jobs.feature": "./dist/jobs.feature.js",
67
69
  "./queue": "./dist/queue/index.js",
68
70
  "./queue/gcp-cloud-tasks": "./dist/queue/gcp-cloud-tasks.js",
69
71
  "./queue/gcp-pubsub": "./dist/queue/gcp-pubsub.js",